@charset "UTF-8";

/* Google Fonts 読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Sans:wght@100..900&family=Zen+Kaku+Gothic+New&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

/* =========================================
   Base & Variables
   ========================================= */
:root {
  --color-sho-main: #1F7DD9;
  --color-sho-sub: #2F8AE3;
  --color-black: #333333;
  --color-bg-light: #EAF5FD;
  --color-bg-yellow: #FFFEEA;
  --color-border: #dddddd;
  --color-arrow: #1F7DD9;
}

/* Reset-like styles */
.self-main * {
  box-sizing: border-box;
}

.self-main img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* =========================================
   Common Layout (Base)
   ========================================= */

/* 大枠 */
.self-main {
  width: 100%;
  background-color: #fff;
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", "Noto Sans JP", "Noto Sans", sans-serif;
}

/* インナーコンテナ */
.self-main__inner {
  margin: 0 auto;
}

/* KVエリア */
.self-main__kv {
  line-height: 0;
}

/* イントロダクションテキスト */
.self-main__intro {
  width: 100%;
  padding: 5.3333vw 0vw;
  text-align: center;
}

.self-main__text {
  color: var(--color-sho-sub);
  font-weight: 700;
  margin: 0;
}

/* =========================================
   Section 1: Grade Section
   ========================================= */
.self-grade {
  width: 100%;
  background-color: var(--color-bg-light);
  /* ▼ 変更: SPパディング 40px = 10.66667vw */
  padding: 10.66667vw 0;
}

.self-grade__header {
  text-align: center;
  margin-bottom: 8vw;
}

/* 見出し（大きい方） */
.self-grade__title {
  color: var(--color-sho-sub);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 5.3333vw;
  font-size: 10.13333vw; /* 38px / 375px */
}

/* 見出し（小さい方） */
.self-grade__title-sub {
  color: var(--color-sho-sub);
  display: inline-block;
  font-weight: 700;
  font-size: 8vw; /* 30px / 375px */
}

.self-grade__desc {
  color: var(--color-black);
  margin: 0;
}

/* カードスタイル */
.self-grade__card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* ▼ 変更: SP幅 343px = 91.46667vw */
  width: 91.46667vw;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Tab Navigation */
.self-grade__tab-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-bottom: 2px solid #eee;
}

.self-grade__tab-item {
  flex: 1;
  text-align: center;
}

.self-grade__tab-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 0;
  color: #999;
  cursor: pointer;
  position: relative;
  font-weight: 700;
  transition: color 0.3s;
  font-family: inherit;
  font-size: 5.33333vw;
}

.self-grade__tab-btn:hover {
  color: var(--color-sho-sub);
}

.self-grade__tab-btn.is-active {
  color: var(--color-sho-sub);
}

.self-grade__tab-btn.is-active::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background-color: var(--color-sho-main);
  position: absolute;
  bottom: -2px;
  left: 0;
}

/* Tab Content */
.js-tab-target {
  display: none;
}

.js-tab-target.is-active {
  display: block;
  animation: selfFadeIn 0.5s ease forwards;
}

.self-grade__kv {
  border-radius: 6px;
  overflow: hidden;
}

/* Link List (Grade Section) */
.self-grade__link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.self-grade__link-item {
  border-bottom: 1px solid var(--color-border);
}

.self-grade__link-item a {
  display: block;
  padding: 16px 40px 16px 0;
  color: var(--color-sho-main);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: opacity 0.3s;
  font-size: 6.4vw;
}

.self-grade__link-item a:hover {
  opacity: 0.7;
}

.self-grade__link-item a::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--color-sho-sub);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='10 17 15 12 10 7' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px auto;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================
   Section 2: Tips Section
   ========================================= */
.self-tips {
  width: 100%;
  background-color: var(--color-bg-yellow);
  /* ▼ 変更: SPパディング 80px = 21.33333vw */
  padding: 0 0 21.3333vw;
}

.self-tips__item {
  margin: 0 auto 16vw;
}
.self-tips__item:last-child{
  margin-bottom: 0px;
}

.self-tips__header {
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  padding: 0;
  position: relative;
  text-align: center; /* SP:中央揃え */
  background-position: right 0%;
}
.self-tips__header-inner{
  padding-top: 22vw;
  margin-bottom: 8px;
}
.self-tips__header.self-tips__header--01{
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url(/kyouiku/selfstudy/_assets/img/251225_3734_LP_section02_h2_bg_sp.png);
}
.self-tips__header.self-tips__header--02{
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url(/kyouiku/selfstudy/_assets/img/251225_3734_LP_section03_h2_bg_sp.png);
}
.self-tips__header.self-tips__header--03{
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url(/kyouiku/selfstudy/_assets/img/251225_3734_LP_section04_h2_bg_sp.png);
}

/* バッジ */
.self-tips__badge {
  display: inline-block;
  background-color: var(--color-sho-sub);
  color: #fff;
  font-size: 6.4vw;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* タイトル全体 */
.self-tips__title {
  color: #333;
  line-height: 1.4;
  margin: 0 0 16px;
  font-size: 10.13333vw; 
  font-weight: 900;
}

.self-tips__title-sub {
  font-size: 8vw;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 4px;
}

.self-tips__desc {
  line-height: 1.6;
  color: #333;
  margin: 0;
  text-shadow: 0 0 5px rgba(255,255,255,0.8);
  font-size: 4.26667vw;
  font-weight: 400;
}

.self-tips__link-list {
  list-style: none;
  padding: 0 16px 0px;
  margin: 0;
}

.self-tips__link-item {
  border-bottom: 1px solid #ddd;
}

.self-tips__link-item a {
  display: block;
  padding: 16px 40px 16px 0;
  color: var(--color-sho-main);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: opacity 0.3s;
  font-size: 6.4vw; 
}

.self-tips__link-item a:hover {
  opacity: 0.7;
}

.self-tips__link-item a::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--color-sho-sub);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='10 17 15 12 10 7' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px auto;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================
   Section 3: Guardian Section
   ========================================= */
.self-guardian {
  width: 100%;
  background-color: #fff;
  margin-top: -5px;
  padding-bottom: 21.3333vw;
}

.self-guardian__inner {
  width: 100%;
  background-color: var(--color-sho-sub);
  border-radius: 12px;
  color: #fff;
  padding: 10.6667vw 16px 10.6667vw; 
}

.self-guardian__header {
  text-align: center;
  margin-bottom: 10.6667vw; 
}

.self-guardian__subtitle {
  font-size: 4vw;
  font-weight: 700;
}

.self-guardian__title {
  font-size: 6.93333vw;
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

.self-guardian__desc {
  font-size: 4.2667vw;
  line-height: 1.6;
  margin: 0;
}

/* リストアイテム */
.self-guardian__item {
  display: flex;
  flex-direction: column;
  margin-bottom: 10.6667vw;
}
.self-guardian__item a{
  text-decoration: none;
  color: inherit;
  display: contents;
}

.self-guardian__item:last-child {
  margin-bottom: 0px;
}

.self-guardian__text-area {
  margin-bottom: 5.3333vw;
  text-align: center;
}

.self-guardian__item-title {
  font-size: 6.4vw;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.self-guardian__item-title__sub{
  font-size: 5.3333vw;
  font-weight: 500;
  margin-bottom: 2.1333vw;
  display: inline-block;
}

.self-guardian__img-area img {
  border-radius: 6px;
  width: 100%;
}

/* プロフィール */
.self-guardian__profile {
  background-color: #fff;
  color: #333;
  border-radius: 8px;
  padding: 14px;
  margin-top: 10.6667vw;
  font-family: "Noto Sans JP", sans-serif;
}

.self-guardian__profile-header {
  font-size: 5.3333vw;
  font-weight: 350;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.self-guardian__profile-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.self-guardian__profile-img {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  margin-right: 8px;
}

.self-guardian__profile-img img {
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.self-guardian__profile-content {
  flex: 1;
}

.self-guardian__profile-name {
  font-size: 3.7333vw;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.4;
}

.self-guardian__profile-affiliation{
  font-size: 3.2vw;
  font-weight: 400;
  margin-bottom: 10px;
}

.self-guardian__profile-desc {
  font-size: 3.7333vw;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* =========================================
   Section 4: Tools Section
   ========================================= */
.self-tools {
  width: 100%;
  background-color: #fff;
  padding: 0px 16px 21.3333vw;
}

.self-tools__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* .self-tools__title {
  color: var(--color-sho-main);
  font-size: 7.46667vw;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 24px;
} */

/* 見出し（大きい方） */
.self-tools__title {
  color: var(--color-sho-sub);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 5.3333vw;
  font-size: 10.13333vw; /* 38px / 375px */
}

/* 見出し（小さい方） */
.self-tools__title-sub {
  color: var(--color-sho-sub);
  display: inline-block;
  font-weight: 700;
  font-size: 8vw; /* 30px / 375px */
}

/* .self-tools__desc {
  color: #333;
  font-size: 3.73333vw;
  line-height: 1.8;
  margin: 0 0 40px;
} */

.self-tools__desc {
  color: var(--color-black);
  margin-bottom: 5.3333vw;
}

.self-tools__banner{
  width: 100%;
}

.self-tools__banner img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes selfFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Media Query: PC (min-width: 741px)
   ========================================= */
@media (min-width: 741px) {
  
  /* Common Layout */
  .self-main__inner {
    width: 100%;
  }

  .self-main__intro {
    padding: 40px 0px;
  }

  .self-main__text {
    font-size: 16px;
    line-height: 1.8;
  }

  /* Section 1 */
  .self-grade {
    padding: 80px 0;
  }

  .self-grade__header {
    margin-bottom: 40px;
  }
  
  .self-grade__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .self-grade__title {
    font-size: 46px;
    margin-bottom: 20px;
  }

  .self-grade__title-sub {
    font-size: 36px;
  }

  .self-grade__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
  }

  /* .self-grade__kv {
    margin-bottom: 16px;
  } */

  .self-grade__card {
    width: 100%;
    max-width: 720px;
    padding: 40px;
  }

  .self-grade__tab-btn {
    font-size: 26px;
    padding: 16px 0;
    font-weight: 700;
  }

  .self-grade__link-item a {
    font-size: 24px;
    padding: 20px 50px 20px 0;
  }

  /* Section 2: Tips */
  .self-tips {
    padding: 80px 0;
  }

  .self-tips__item {
    max-width: 720px;
    margin: 0 auto 80px;
  }

  .self-tips__header {
    height: auto;
    padding: 0;
    display: block;
    text-align: left; /* PC:左揃え */
    background-position: right center;
  }

  .self-tips__header-inner{
    padding-top: 0px;
    margin-bottom: 0px;
  }

  .self-tips__header.self-tips__header--01{
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
      url(/kyouiku/selfstudy/_assets/img/251225_3734_LP_section02_h2_bg_pc.png);
  }

  .self-tips__header.self-tips__header--02{
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
      url(/kyouiku/selfstudy/_assets/img/251225_3734_LP_section03_h2_bg_pc.png);
  }

  .self-tips__header.self-tips__header--03{
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
      url(/kyouiku/selfstudy/_assets/img/251225_3734_LP_section04_h2_bg_pc.png);
  }

  .self-tips__badge {
    font-size: 24px; /* PC:24px 700 */
  }

  .self-tips__title {
    font-size: 38px; /* PC:下テキスト38px 900 */
  }

  .self-tips__title-sub {
    font-size: 30px; /* PC:上テキスト30px 700 */
  }

  .self-tips__desc {
    font-size: 16px; /* PC:16px 400 */
  }

  .self-tips__link-list {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .self-tips__link-item {
    width: 100%;
    border-bottom: 1px solid #ddd;
  }
  
  .self-tips__link-item a {
    font-size: 24px;
    padding: 24px 50px 24px 0;
  }

  /* Section 3: Guardian Section (PC) */
  .self-guardian {
    padding: 80px 0;
    margin-top: 0px;
  }

  .self-guardian__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 40px;
  }

  .self-guardian__header {
    margin-bottom: 40px;
  }

  .self-guardian__subtitle {
    font-size: 30px;
  }

  .self-guardian__title {
    font-size: 38px;
  }

  .self-guardian__desc {
    font-size: 16px;
  }

  .self-guardian__item {
    flex-direction: row; /* PCは横並び */
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
  }
  .self-guardian__item:hover{
    opacity: 0.7;
  }

  .self-guardian__text-area {
    width: 44%;
    margin-bottom: 0;
    text-align: left;
  }

  .self-guardian__item-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
  }
  .self-guardian__item-title__sub{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
  }

  .self-guardian__img-area {
    width: 53.90625%;
  }

  .self-guardian__profile {
    padding: 15px;
    margin-top: 40px;
  }

  .self-guardian__profile-header {
    font-size: 20px;
    font-weight: 350;
    margin-bottom: 24px;
  }

  .self-guardian__profile-img {
    width: 82px;
    height: 82px;
    margin-right: 20px;
  }

  .self-guardian__profile-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .self-guardian__profile-affiliation{
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 10px;
  }

  .self-guardian__profile-desc {
    font-size: 14px;
    font-weight: 300;
  }

  /* Section 4: Tools Section (PC) */
  .self-tools {
    padding: 0px 0 80px;
  }

  /* .self-tools__title {
    font-size: 40px;
    margin-bottom: 32px;
  } */

  .self-tools__title {
    font-size: 46px;
    margin-bottom: 20px;
  }

  .self-tools__title-sub {
    font-size: 36px;
  }

  /* .self-tools__desc {
    font-size: 16px;
    margin-bottom: 48px;
  } */

  .self-tools__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .self-tools__banner{
    width: 345px;
    margin: 0 auto;
  }

  .self-tools__banner a:hover{
    opacity: 0.7;
  }
}

/* =========================================
    (PC/SP Switch)
   ========================================= */

/* デフォルト: SP要素を非表示 */
.u-view-sp {
  display: none !important;
}
.u-view-pc {
  display: block !important; 
}

/* SP時 (740px以下) */
@media (max-width: 740px) {
  .u-view-pc {
    display: none !important;
  }
  .u-view-sp {
    display: block !important;
  }
}