/* 全体の設定 */
a:hover {
  color: darkgreen;
}

a {
  color: darkgreen;
}

/* 横並びにするために追加2023.5.16 */
.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.w-33 {
  width: 33%;
}

.w-67 {
  width: 67%;
}

/* ３つのコースの吹き出し **********************************************************************************/
/* 吹き出し本体の背景色用 */
.sample-border-balloon {
  position: relative;
  display: inline-block;
  background: #fff;
  border-radius: 30px;
  padding: 16px;
  font-weight: bold;
  color: #000;
  border: 4px solid #d5d5d5;
  box-sizing: border-box;
}

/* 吹き出しのしっぽ：本体の背景色用 */
.sample-border-balloon:before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  border: 12px solid transparent;
  border-top: 12px solid #fff;
  z-index: 2;
}

/* 吹き出しのしっぽ：枠線の色用 */
.balloon {
  position: relative;
  display: inline-block;
  margin: 1.5em 0;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  background: #FFF;
  border: solid 3px darkgreen;
  box-sizing: border-box;
  border-radius: 30px;
  background-color: darkgreen;
}

.balloon:before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  margin-left: -15px;
  border: 12px solid transparent;
  border-top: 12px solid darkgreen;
  /* z-index: 2; */
}

.balloon:after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  margin-left: -17px;
  border: 14px solid transparent;
  border-top: 14px solid darkgreen;
  /* z-index: 1; */
}

.balloon p {
  margin: 0;
  padding: 0;
}

.balloon2 {
  position: relative;
  display: inline-block;
  margin: 1.5em 0;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  background: #FFF;
  border: solid 3px gray;
  box-sizing: border-box;
  border-radius: 30px;
  background-color: gray;
}

.balloon2:before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  margin-left: -15px;
  border: 12px solid transparent;
  border-top: 12px solid gray;
  /* z-index: 2; */
}

.balloon2:after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  margin-left: -17px;
  border: 14px solid transparent;
  border-top: 14px solid gray;
  /* z-index: 1; */
}

.balloon2 p {
  margin: 0;
  padding: 0;
}


.balloon3 {
  position: relative;
  display: inline-block;
  margin: 1.5em 0;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  background: #FFF;
  border: solid 3px #9c5e31;
  box-sizing: border-box;
  border-radius: 30px;
  background-color: #9c5e31;
}

.balloon3:before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  margin-left: -15px;
  border: 12px solid transparent;
  border-top: 12px solid #9c5e31;
  /* z-index: 2; */
}

.balloon3:after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  margin-left: -17px;
  border: 14px solid transparent;
  border-top: 14px solid #9c5e31;
  /* z-index: 1; */
}

.balloon3 p {
  margin: 0;
  padding: 0;
}

.underline {
  position: relative;
  padding: 0.25em 0;
}
.underline:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, green, transparent);
  background: linear-gradient(to right, green, transparent);
}

.underline2 {
  position: relative;
  padding: 0.25em 0;
}
.underline2:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, gray, transparent);
  background: linear-gradient(to right, gray, transparent);
}

.underline3 {
  position: relative;
  padding: 0.25em 0;
}
.underline3:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, #9c5e31, transparent);
  background: linear-gradient(to right, #9c5e31, transparent);
}

/* カードの高さを大きなものにあわせる設定 */
.parents-container {
  display: flex;
  flex-wrap: wrap;
}



/* ３つのコースのモーダル内のカード */
.card2 {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px;
  width: 95%;
  height: 95%;
  background-color: white;
  text-align:center;
}

/* ３つのコースのモーダル内のカードのボタン */
.card2 .card-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
/* .card2 .card-button {
  bottom: 20px;
  margin: 0 auto;
} */
.card2 .card-button:hover {
  color:rgb(237, 237, 237);
}


/* 基本クラス ************************************************************************************/
.hukidashi1 {
  position: relative;/*相対位置*/
  padding-left: 1.2em;/*アイコン分のスペース*/
  line-height: 1.4;/*行高*/
}

.hukidashi1:before {
  font-family: "Font Awesome 5 Free";
  content: "\f075";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1em;/*サイズ*/
  left: 0;/*アイコンの位置*/
  top: 0;/*アイコンの位置*/
  color: green; /*アイコン色*/
}

.hukidashi2 {
  position: relative;/*相対位置*/
  padding-left: 1.2em;/*アイコン分のスペース*/
  line-height: 1.4;/*行高*/
}

.hukidashi2:before {
  font-family: "Font Awesome 5 Free";
  content: "\f075";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1em;/*サイズ*/
  left: 0;/*アイコンの位置*/
  top: 0;/*アイコンの位置*/
  color: goldenrod; /*アイコン色*/
}

.hukidashi3 {
  position: relative;/*相対位置*/
  padding-left: 1.2em;/*アイコン分のスペース*/
  line-height: 1.4;/*行高*/
}

.hukidashi3:before {
  font-family: "Font Awesome 5 Free";
  content: "\f075";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1em;/*サイズ*/
  left: 0;/*アイコンの位置*/
  top: 0;/*アイコンの位置*/
  color: gray; /*アイコン色*/
}

.hukidashi4 {
  position: relative;/*相対位置*/
  padding-left: 1.2em;/*アイコン分のスペース*/
  line-height: 1.4;/*行高*/
}

.hukidashi4:before {
  font-family: "Font Awesome 5 Free";
  content: "\f075";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1em;/*サイズ*/
  left: 0;/*アイコンの位置*/
  top: 0;/*アイコンの位置*/
  color: #9c5e31; /*アイコン色*/
}


/* レギュラークラス ************************************************************************************/
.regular{
  margin: 30px 0;
  padding: 20px 0 30px;
  font-size:20px; 
  background-color:whitesmoke;
  min-height:550px;
}

img {
  max-width: 100%;
  height: auto;
}



/* 質問 ********************************************************************************************************/ 
.polkadots{
    /* background-color: green; */
    padding: 30px 0;
    background-image: radial-gradient(white, green 1px, transparent 1px, transparent);
    background-size: 20px 20px;
    background-position: 0 0;
}

/* 質問ボタン */
.gradient-btn {
  background: linear-gradient(90deg, #CFD8DC, #F48FB1);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gradient-btn:hover {
  background: linear-gradient(90deg, #F48FB1, #CFD8DC);
  transform: translateY(-2px);
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.gradient-btn:active {
  transform: translateY(5px);
  box-shadow: none;
}

.gradient-green {
  background: linear-gradient(90deg, darkgreen, rgb(134, 193, 134));
  color: white;
  font-size: 24px;
  font-weight: bold;
  border: none;
  border-radius: 80px;
  padding: 10px 30px;
  margin: 20px 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.green-btn {
  /* background: linear-gradient(90deg, #48A9A6, #A8DADC); */
  background: linear-gradient(90deg, rgb(134, 193, 134), darkgreen);

}

.gradient-green:hover {
  /* background: linear-gradient(90deg, #48A9A6, #A8DADC); */
  background: linear-gradient(90deg, rgb(134, 193, 134), darkgreen);

  transform: translateY(-5px);
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.gradient-green:active {
  transform: translateY(5px);
  box-shadow: none;
}


.gradient-brown {
  background: linear-gradient(90deg, #7D532C, #B28151);
  color: white;
  font-size: 24px;
  font-weight: bold;
  border: none;
  border-radius: 80px;
  padding: 10px 30px;
  margin: 20px 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.brown-btn {
  background: linear-gradient(90deg, #B28151, #7D532C);
}

.gradient-brown:hover {
  background: linear-gradient(90deg, #B28151, #7D532C);
  transform: translateY(-5px);
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.gradient-brown:active {
  transform: translateY(5px);
  box-shadow: none;
}


/* ポップアップ***************** */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  min-height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  }

.modal-content{
  background-color: white;
  width: 85%;
  min-height: 100%;
  margin:  auto;

  background-image: radial-gradient(white, gray 1px, transparent 1px, transparent);
  background-size: 20px 20px;
  background-position: 0 0;
}


.modalMb {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  min-height: 100%;
  max-height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  }

  .modal-contentMb{
    background-color: white;
    width: 85%;
    min-height: 100%;
    margin:  auto;
    overflow-y: auto; /* コンテンツがモーダルよりも高さが大きい場合にスクロールできるようにする */
    
    background-image: radial-gradient(white, gray 1px, transparent 1px, transparent);
    background-size: 20px 20px;
    background-position: 0 0;
  }

/*可愛いボタングレー*/
.btn-gray {
  position: relative;
  display: inline-block;
  padding: 0.25em 0.5em;
  text-decoration: none;
  color: #FFF;
  background: gray;/*色*/
  border-radius: 4px;/*角の丸み*/
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
  font-weight: bold;
  border: solid 2px gray;/*線色*/
}

.btn-gray:active {
  /*押したとき*/
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.30);
}

/*可愛いボタン緑*/
.btn-green {
  position: relative;
  display: inline-block;
  padding: 0.25em 0.5em;
  text-decoration: none;
  color: #FFF;
  background: green;/*色*/
  border-radius: 4px;/*角の丸み*/
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
  font-weight: bold;
  border: solid 2px green;/*線色*/
}

.btn-green:active {
  /*押したとき*/
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.30);
}

/*可愛いボタン茶色*/
.btn-brown {
  position: relative;
  display: inline-block;
  padding: 0.25em 0.5em;
  text-decoration: none;
  color: #FFF;
  background: #9c5e31;/*色*/
  border-radius: 4px;/*角の丸み*/
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
  font-weight: bold;
  border: solid 2px #9c5e31;/*線色*/
}

.btn-brown:active {
  /*押したとき*/
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.30);
}

.rounded-btn {
  background-color: white;
  color: #1565C0;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #1565C0;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.blue-btn {
  color: white;
  background-color: #1565C0;
}

.rounded-btn:hover {
  background-color: #1565C0;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.rounded-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* トップ画面の文字を流れるように変更 */
section{
  position:relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

section div{
  position:relative;
  width: 50%;
  /* background: #1c6d2f; background: #1c6d2f; */
  overflow: hidden;
}

section div:nth-child(1){
  /* position:relative; */
  width: 50%;
  background: url('/img/top/header.jpg');
  background-size: cover;
  /* overflow: hidden; */
  box-sizing: border-box;
}


section div h2
{
	position: absolute;
	white-space: nowrap;
	font-size: 88px
}
section div:nth-child(1) h2
{
	left: 100%;
	animation: animate 60s linear infinite;
	-webkit-text-stroke: 2px;
	-webkit-text-stroke-color: darkgreen;
	-webkit-text-fill-color: transparent;

}
section div:nth-child(2) h2
{
	left: 0;
	color: darkgreen;
	animation: animate 60s linear infinite;
}
section div h2
{
	line-height: 100vh;
}
@keyframes animate
{
	0%
	{
		transform: translateX(0);
	}
/*	50%
	{
		transform: translateX(-100%);
	}*/
	100%
	{
		transform: translateX(-100%);
	}
}



/* モーダル内のパソコンと携帯で文字の大きさを変更する */
/* パソコン向けのスタイル */
@media screen and (min-width: 768px) {
  .modal-body {
      font-size: 20px;
  }
}

/* 携帯向けのスタイル */
@media screen and (max-width: 767px) {
  .modal-body {
      font-size: 16px;
  }
}

/* モバイル用 ****************************************************/
.card3 {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px;
  width: 100%;
  padding:10px 5px;
  color: white;
  background-color: white;
  text-align:center;
}

/* ３つのコースを表示 */
.course-container {
  background-color: green;
  color: white;
  padding: 20px 0 10px;
  text-align: center;
}

.course-content {
  display: flex;
  justify-content: space-between;
  /* border-top: 1px solid gray; */
  border-bottom: 1px solid gray;
  padding: 10px 10px 20px;
}

.course-content-section {
  flex-basis: calc(33.3333% - 20px); /* 20pxはpaddingの分 */
  box-sizing: border-box;
}