

/* .sec-inner {
  background-color: #E9EDFA;
} */

.background {
  /* background-color: #E9EDFA; */
}

.sec-inner {
  background-color: #F0F5FF;
  padding: 60px 0 50px;
}

/* 20251114_takeuchi*/
.sec-inner_cs {
  padding: 20px 0 20px;
}

.image_center {
  text-align: center;
  width: auto;
}

.title1 {
font-size: 40px;
font-weight: bold;
text-align: center;
}

.title_image {
text-align: right;
}

.sub_title {

  border-bottom: 1px solid #0556cc;
  color: #0556cc;
  font-size: calc(24.8px + .375vw);
  padding-bottom: 10px;
  margin-top: 40px;
  font-weight: bold;
}

.flex {
  display: flex; /*横並び*/
}

.flex .gaiyou_detail {
  font-size: 32px;
  margin: 70px 10px 20px 20px;
  /* 下線をつける */
  /* text-decoration: underline; */
  font-weight:600;
}

.flex .add_gaiyo {
  margin-top: 140px;
}

.omoi_image {
  width: 30%;
  height: auto;
  
}

.container1 {
  display: grid;
  grid-template-areas:
    "top-left top-right"
    "center center"
    "bottom-left bottom-right";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100px 10px 10px;
  position: relative;
  width: 100%;
  height: 440px;
  text-align: center;
  justify-items: center;
  align-items: center;
  margin-bottom: 20px; /* 例: 固定間隔 */
}

.center-image {
  grid-area: center;
  max-width: 600px;
  z-index: 1;
  position: relative;
  transform: translateY(70px);
}

.text {
  position: relative;
  max-width: 400px;
  padding: 10px;
  
  border-radius: 8px;
  z-index: 2;
}

.top-left {
  grid-area: top-left;
  align-self: start;
  justify-self: start;
  text-align: left;
  max-width: 455px;
}

.top-right {
  grid-area: top-right;
  align-self: start;
  justify-self: end;
  position: relative;
  text-align: right;
  transform: translateY(70px);
}

.bottom-left {
  grid-area: bottom-left;
  align-self: end;
  justify-self: start;
  position: relative;
  text-align: left;
  transform: translateY(calc(290px + 5vh));
  max-width: 430px;
}
  max-width: 430px;
}

.bottom-right {
  grid-area: bottom-right;
  align-self: end;
  justify-self: end;
  
}

.container2 {
  display: grid;
  grid-template-areas:
    "top-left top-right"
    "center center"
    "bottom-left bottom-right";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100px 10px 10px;
  position: relative;
  width: 100%;
  height: 260px;
  text-align: center;
  justify-items: center;
  align-items: center;
  margin-top: 0; /* 必要に応じて調整 */
}

.top-left2 {
  grid-area: top-left;
  align-self: start;
  justify-self: start;
  text-align: left;
  transform: translateY(40px);
}

.top-right2 {
  grid-area: top-right;
  align-self: start;
  justify-self: end;
  position: relative;
  text-align: right;
  transform: translateY(40px);
}

.center-image2 {
  grid-area: center;
  max-width: 600px;
  z-index: 1;
  position: relative;
  transform: translateY(40px);
}

.pc_only {
  display: inline;
}

p.text {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  width: 625px;
}

ul.omoi_image2 {
  width: 70%;
  height: auto;
  /* 画像を横並び */
  display: flex;
  justify-content: center;
  /* 真ん中に表示 */
  margin: 0 auto;

}

ul.omoi_image2 li{
  list-style: none;
}

ul.omoi_image2 li:nth-child(2) {
  margin: 0 60px;
}

.container3{
  margin-top: 100px;
}

.container3 p {
  margin: 20px 0;  
}

.top-center3{
  font-size: 28px;
  font-weight: bold;
  grid-area: top-center;
  align-self: start;
  justify-self: center;
  text-align: center;
  /* max-width: 370px; */
  margin-top: 30px;
}

.omoi3_text {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  /* width: 625px; */
  text-align: center;
}

.tokuten_main_image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;

}

.link-button {
  margin: 40px 40px;
  text-align: center;

}

.link-button a {
  width: auto;
  font-size: 36px;
  text-decoration: none;
  border: 2px solid #000;
  padding: 10px;
  border-radius: 10px;
  width: 720px;
  background-color: #1C3EA4;
  color: #fff;
  border: none;
}

.link-button a:hover {
  color: #fff;
}

.row-container {
  display: flex;
  justify-content: space-around; /* コンテンツ間のスペースを均等に */
  align-items: flex-start; /* 上揃えにする */
  flex-wrap: wrap; /* コンテンツが画面幅を超えた場合は折り返す */
  gap: 20px; /* 要素間の間隔を調整 */
  margin: 20px 0;
}

.student-points-container {
  /* background-color: #fff; */
  /* border: 2px solid #000; */
  border-radius: 20px; /* 丸みを強化 */
  padding: 40px 20px 20px; /* 上部余白を増加 */
  position: relative;
  text-align: center;
  width: 350px;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.title_tokuten {
  position: absolute;
  top: -25px; /* 枠の外に出す */
  left: 50%;
  transform: translateX(-50%);
  /*ackground-color: #fff; */
  padding: 0 10px;
  font-size: 24px;
  font-weight: bold;
  width: 100%;
  margin-top : 40px;
  margin-bottom: 40px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -40px; /* 画像を枠に重ねるため調整 */
}

.student-image {
  max-width: 100px;
  position: relative;
  z-index: 2; /* 画像を枠の上に表示 */
  /* background-color: #fff; 背景色で調整 */
  margin-bottom: -200px; /* 枠と画像が重なるようにマイナスマージンを追加 */
}

.points {
  /* background-color: #fff; */
  /* border: 2px solid #000; */
  border-radius: 20px; /* 丸みを強化 */
  padding: 20px;
  padding-top: 40px; /* 上部余白を増加 */
  width: 470px;
  box-sizing: border-box;
  position: relative;
  z-index: 1; /* 枠を画像の下に配置 */
  margin-top: 120px;
  background-color: #fff;
}

.points ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.points li {
  margin-bottom: 10px;
  text-align: left;
  font-size: 24px;
  line-height: 1.5;
  word-wrap: break-word; /* テキストが指定幅を超えた場合に折り返す */
  line-height: 1.5; /* 行間の調整 */
  text-indent: -1em; /* 最初の行のインデントを左にずらす */
  padding-left: 1em; /* 2行目以降を右にインデント */
}

.end_follow {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {

  .sec-inner {
    padding:  40px 0 50px;
  }

  .title1 {
    font-size: 24px;
  }

  .title_image {
    text-align: center;
  }

  .sub_title {
    font-size: 20px;
  }

  .flex img {
    width: 60%;
    /* 画像の位置を中央に配置 */
    margin: auto;
    display: block;
  }

  .flex .gaiyou_detail {
    font-size: 20px;
    margin: 3px 3px 3px 3px;
    /* 上下の文字の幅を狭める */
    line-height: 1.0;
    font-size: 18px;
  }

  .flex, .flex2 {
    display: flex;
    flex-direction: column; /* 縦に並べる */
}

/* .flex内の順序を指定（文字 → 画像） */
.flex .gaiyou_detail {
    order: 1; /* 最初に表示 */
}

.flex picture {
    order: 2; /* 次に表示 */
    /* 画像サイズを70％に縮小 */
}

/* .flex2内の順序を指定（文字 → 画像） */
.flex2 .gaiyou_detail {
    order: 1; /* 最初に表示 */
}

.flex2 .gaiyo_images {
    order: 2; /* 次に表示 */
}

/* 画像や文字の見栄え調整 */
.flex img, .flex2 img {
    width: 70%; /* 画像を画面幅に合わせる */
    margin: 10px auto; /* 上下に余白を追加 */
}

.flex .gaiyou_detail, .flex2 .gaiyou_detail {
    margin: 10px 0; /* 上下に余白を追加 */
    font-size: 16px; /* モバイル向けの文字サイズ調整 */
    line-height: 1.5; /* 読みやすくするための行間調整 */
}

  .link-button {
    margin: 12px 0px;
  }

  .container1 {
    all: unset;
  }

  .omoi_image {
    margin: 0 auto;
  }

  .container1 .center-image {
    transform: translateY(0px);
  }

  .container1 .center-image .img {
    /* width: 30%; */
    display: block;
  }

  .container1 .text {
    font-size: 12px;
    padding: 2px;
  }

  .top-right {
    transform: translateY(10px);
    text-align: left;
  }

  .bottom-left {
    transform: translateY(20px);
    text-align: left;
  }

  .container1 .top-left {
    text-align: left;
  }

  .top-left h3,
  .top-right h3,
  .bottom-left h3 {
    font-size: 16px;
  }

  p.text {
    font-size: 16px;
    width: auto;
  }

  .container2 {
    all: unset;
  }

  .container2 .text {
    font-size: 12px;
    padding: 2px;
  }

  .center-image2 {
    transform: translateY(-100px);
  }

  .top-left2 {
    transform: translateY(150px);
    text-align: left;
  }

  .top-right2 {
    transform: translateY(160px);
    text-align: left;
  }

  .top-left2 h3,
  .top-right2 h3 {
    font-size: 16px;
  }

  .top-center3 {
    font-size: calc(20.8px + .375vw);
    margin-top: 80px;
    text-align: left;
    /* 文字の縦の隙間の設定 */
    line-height: 1.3;
    font-size: 16px;
  }

  .omoi3_text {
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
    font-size: 12px;
  }

  .tokuten_main_image img {
    width: 60%;
    height: auto;
  }

  .pc_only {
    display: none; /* 改行を無効化 */
  }

  .link-button a {
    font-size: 24px;
    width: 320px;
    text-align: center;
  }

  .points {
    padding-top: 15px;
  }

  .points li {
    font-size: 16px;
    margin: 0px 30px;
  }

  .row-container {
    /* display: inline; */
    text-align: left;
  }

  .row-container .content img {
    width: 100px;
  }
}