/*
 * assets/renewal/study-lounge.css
 * MY PORT STUDY LOUNGE 専用ページ(固定ページ study-lounge)だけで読み込む追加CSS。
 * functions.php の myport_study_lounge_enqueue() が、このページのときだけ styles.css の後に読み込む。
 * 既存ページに影響させないため、すべて body.page-study-lounge 配下に限定する。
 * 見出し・表・ボタンなどは styles.css の既存の部品(hero / lower-section / extra-head / price-table / message / button)をそのまま使い、
 * ここでは、その部品で足りない部分(写真の説明文、2列の表、注意事項の一覧、問い合わせ欄)だけを整える。
 */

/* ---------- 配色(2026-11-25 追加):本文のアクセントを紺色ベースに ----------
   先生のブログのラウンジバナーの紺に合わせる。ヘッダー・パンくず・フッター・下部の共通CTA(バナー含む)は既存の配色のまま。
   本文の各セクションの中だけ、既存CSSの変数 --green / --green-soft を紺・淡いブルーグレーに置き換える
   (既存の部品は var(--green) で色を付けているので、見出し上の英字・表の項目名などがまとめて紺になる)。
   変数を使っていない既存の色(表の罫線・偶数行・ボタンの枠など)は、下で個別に上書きする。 */
body.page-study-lounge main > section:not(.cta) {
  --green: #0e2f57;        /* 紺(アクセント) */
  --green-soft: #e9eef4;   /* 淡いブルーグレー */
  --sl-soft: #f1f4f8;      /* 淡いブルーグレーの背景 */
  --sl-line: #d8e0ea;      /* 枠線 */
  --sl-line-2: #e3e8ef;    /* 表の罫線 */
  --sl-muted: #586577;     /* 補足の文字(青みのグレー) */
}

/* 既存の料金表(.price-table)の緑系の固定色 → ブルーグレー系 */
body.page-study-lounge .sl-table th,
body.page-study-lounge .sl-table td {
  border-bottom-color: var(--sl-line-2);
}

body.page-study-lounge .price-table-scroll {
  border-color: var(--sl-line);
}

body.page-study-lounge .sl-table tbody tr:nth-child(even) {
  background: var(--sl-soft);
}

body.page-study-lounge .price-table-note {
  color: var(--sl-muted);
}

/* 既存の枠線ボタン(.button.ghost、緑の枠と文字) → 紺 */
body.page-study-lounge .sl-contact .button.ghost {
  color: var(--green);
  border-color: #9fb0c6;
}

body.page-study-lounge .sl-contact .button.ghost:hover,
body.page-study-lounge .sl-contact .button.ghost:focus-visible {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

@media (max-width: 640px) {
  /* SPのカード表示:項目名の帯・枠 */
  body.page-study-lounge .sl-table tbody tr {
    border-color: var(--sl-line);
  }

  body.page-study-lounge .sl-table th[scope="row"] {
    background: var(--green-soft);
    border-bottom-color: var(--sl-line);
  }

  body.page-study-lounge .sl-table td {
    border-bottom-color: var(--sl-line-2);
  }

}

/* ---------- FV ---------- */
body.page-study-lounge .hero h1 {
  letter-spacing: 0.02em;
}

body.page-study-lounge .hero h1 .sl-hero-kana {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  /* 既存の .hero h1 span(SPで font-size:1.08em !important)より優先させる */
  font-size: 0.42em !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body.page-study-lounge .sl-hero-tagline {
  color: var(--green);
  font-weight: 700;
}

/* FVの写真の注記「※イメージ」(写真の下辺、角の丸みにかからない位置) */
body.page-study-lounge .hero-visual .sl-hero-note {
    color: #333;
    line-height: 1.5;
    letter-spacing: 0.04em;
    white-space: nowrap;
    position: absolute;
    right: 20px;
    bottom: 16px;
    left: auto;
    transform: none;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 11px;
    font-weight: 400;
}

@media (max-width: 767px) {
  body.page-study-lounge .hero-visual .sl-hero-note {
        left: 24%;
        padding: 2px 8px;
        right: 24px;
        bottom: 20px;
        font-size: 10px;
        color: #fff;
    }
}

/* ---------- リード文(コンセプトメッセージ)と教室の写真 ----------
   PC:センター寄せ、段落の間を広めに。SP:長い行が中央揃えだと読みにくいので左揃え */
body.page-study-lounge .sl-intro {
  max-width: 900px;
}

body.page-study-lounge .sl-intro-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

body.page-study-lounge .sl-intro-text p {
  margin: 0 0 2.2em;
  color: var(--ink);
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 0.04em;
}

body.page-study-lounge .sl-intro-text p:last-child {
  margin-bottom: 0;
}

body.page-study-lounge .sl-intro-text .sl-intro-open {
  color: var(--green);
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 700;
  line-height: 1.9;
}

@media (max-width: 640px) {
  body.page-study-lounge .sl-intro-text {
    text-align: left;
  }

  body.page-study-lounge .sl-intro-text p {
    margin-bottom: 1.8em;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.02em;
  }

  body.page-study-lounge .sl-intro-text .sl-intro-open {
    font-size: 17px;
    line-height: 1.8;
  }
}

body.page-study-lounge .sl-photo {
  margin: 40px 0 0;
}

body.page-study-lounge .sl-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(14, 47, 87, 0.12);
}

body.page-study-lounge .sl-photo figcaption {
  margin-top: 12px;
  color: var(--sl-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- ラウンジについて ---------- */
body.page-study-lounge .sl-about .sl-body {
  max-width: 900px;
  margin: 0 auto;
}

body.page-study-lounge .sl-body p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 2;
}

body.page-study-lounge .sl-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-study-lounge .sl-notes {
  margin: 24px 0 0;
  padding: 20px 24px;
  list-style: none;
  border-radius: 16px;
  background: var(--sl-soft);
}

body.page-study-lounge .sl-notes li {
  color: #333;
  font-size: 14px;
  line-height: 1.9;
}

body.page-study-lounge .sl-boxed {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--sl-line);
  border-radius: 18px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 安心の仕組み ---------- */
body.page-study-lounge .sl-safety .message-copy p {
  line-height: 2;
}

/* ---------- ご利用にあたって ---------- */
body.page-study-lounge .sl-rule-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

body.page-study-lounge .sl-rule-list li {
  position: relative;
  padding: 18px 22px 18px 52px;
  border: 1px solid var(--sl-line);
  border-radius: 16px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.85;
}

body.page-study-lounge .sl-rule-list li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 22px;
  width: 14px;
  height: 8px;
  border-bottom: 3px solid var(--green);
  border-left: 3px solid var(--green);
  transform: rotate(-45deg);
}

@media (max-width: 640px) {
  body.page-study-lounge .sl-rule-list li {
    padding: 16px 16px 16px 46px;
    font-size: 14px;
  }

  body.page-study-lounge .sl-rule-list li::before {
    top: 24px;
    left: 18px;
  }
}

/* ---------- 下部の共通CTAのバナー ----------
   このページでは template-parts/cta.php がラウンジバナーを出さない(2枚)。2枚を、3枚のときと同じ幅で中央に並べる。SPは既存どおり1列 */
body.page-study-lounge .top-promo-banners.top-promo-banners--lounge {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(740px, calc(100% - 40px));
}

@media (max-width: 767px) {
  body.page-study-lounge .top-promo-banners.top-promo-banners--lounge {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }
}

/* ---------- FVタイトル:行ごとに紺の座布団+白文字(2026-11-25) ----------
   既存の .hero h1 > span(緑・block)と SPの .hero h1 span(1.08em !important)を、このページのタイトル行だけ上書き */
body.page-study-lounge .hero h1 > .sl-title-line {
  display: inline-block;
  margin: 0 0 0.14em;
  padding: 0.04em 0.3em 0.08em;
  color: #fff;
  background: #0e2f57;
  font-size: inherit !important;
  line-height: 1.25;
  text-shadow: none;
}

/* ---------- 表:小学生コースの料金表の形(紺のヘッダー行・白と薄いグレーの交互・料金は紺の太字) ---------- */
body.page-study-lounge .price-section .price-table-block {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

body.page-study-lounge .sl-table thead th {
  color: #fff;
  background: #0e2f57;
}

body.page-study-lounge .sl-table tbody tr {
  background: #fff;
}

body.page-study-lounge .sl-table tbody tr:nth-child(even) {
  background: #f3f5f8;
}

body.page-study-lounge .sl-table tbody th[scope="row"] {
  width: 30%;
  color: #333;
  font-weight: 700;
}

body.page-study-lounge .sl-table td {
  line-height: 1.8;
}

body.page-study-lounge .sl-table .sl-price {
  width: 22%;
  color: #0e2f57;
  font-size: 1.1em;
  font-weight: 700;
  white-space: nowrap;
}

body.page-study-lounge .sl-table--fee .sl-price {
  width: auto;
}

body.page-study-lounge .sl-campaign {
  margin: 12px 0 0;
}

body.page-study-lounge .sl-campaign span {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  color: #fff;
  background: #0e2f57;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

body.page-study-lounge .extra-head h2 .tax {
  font-size: 0.55em;
  font-weight: 600;
}

/* SP:既存どおりカード表示(ヘッダー行は隠れる)。各セルの前の見出しをこのページの表に合わせる */
@media (max-width: 640px) {
  body.page-study-lounge .sl-table tbody th[scope="row"] {
    width: auto;
    color: #0e2f57;
  }

  body.page-study-lounge .sl-table tbody tr:nth-child(even) {
    background: #fff;
  }

  body.page-study-lounge .sl-table td {
    color: #333;
    font-size: 14px;
    font-weight: 400;
  }

  body.page-study-lounge .sl-table--info td,
  body.page-study-lounge .sl-table--price td:nth-child(2) {
    display: block;
    text-align: left;
  }

  body.page-study-lounge .sl-table--info td::before,
  body.page-study-lounge .sl-table--fee td::before {
    content: none !important;
  }

  body.page-study-lounge .sl-table--price td:nth-child(2)::before {
    display: block;
    margin-bottom: 2px;
    content: "ご利用内容";
    font-size: 12px;
  }

  body.page-study-lounge .sl-table--option td:nth-child(2)::before {
    content: "内容";
  }

  body.page-study-lounge .sl-table--price td.sl-price::before {
    content: "月額（税込）";
    font-size: 12px;
    font-weight: 600;
  }

  body.page-study-lounge .sl-table--option td.sl-price::before {
    content: "料金";
  }

  body.page-study-lounge .sl-table .sl-price,
  body.page-study-lounge .sl-table td.sl-price {
    width: auto;
    color: #0e2f57;
    font-size: 16px;
    font-weight: 700;
    align-items: center;
  }
}

/* ---------- 大きな薄い英字の透かし(サポート校ページの透かしと同じ書式) ---------- */
body.page-study-lounge #sl-about::before,
body.page-study-lounge #sl-info::before,
body.page-study-lounge #sl-price::before,
body.page-study-lounge #sl-rules::before,
body.page-study-lounge #sl-contact::before,
body.page-study-lounge .sl-safety .message-copy::before {
  position: absolute;
  left: 0;
  right: 0;
  top: -0.2em;
  z-index: -1;
  color: rgba(7, 24, 51, 0.035);
  font-family: Georgia, serif;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

body.page-study-lounge #sl-price::before {
  top: 0.1em; /* 既存の .price-section の上余白(64px)のぶん下げる */
}

body.page-study-lounge #sl-info::before {
  top: 0.3em;
}

body.page-study-lounge #sl-about::before {
  content: "ABOUT";
  font-size: min(clamp(96px, 15vw, 150px), calc((100vw - 48px) / 3.6));
}

body.page-study-lounge #sl-info::before {
  content: "INFORMATION";
  font-size: min(clamp(80px, 12vw, 130px), calc((100vw - 48px) / 7.8));
}

body.page-study-lounge #sl-price::before {
  content: "PRICE";
  font-size: min(clamp(96px, 15vw, 150px), calc((100vw - 48px) / 3.5));
}

body.page-study-lounge .sl-safety .message-copy {
  position: relative;
}

body.page-study-lounge .sl-safety .message-copy::before {
  content: "SAFETY";
  right: auto;
  text-align: left;
  font-size: min(clamp(96px, 15vw, 130px), calc((100vw - 48px) / 4.3));
}

body.page-study-lounge #sl-rules::before {
  content: "RULES";
  font-size: min(clamp(96px, 15vw, 150px), calc((100vw - 48px) / 3.5));
}

body.page-study-lounge #sl-contact::before {
  content: "CONTACT";
  font-size: min(clamp(96px, 15vw, 140px), calc((100vw - 48px) / 5));
}

/* ---------- お申し込み・お問い合わせ:電話とWEBを中心に(PC横並び・SP縦並び) ---------- */
/* ========================================
   お申し込み・お問い合わせ
======================================== */

.sl-contact-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* 電話・WEB共通 */
.sl-contact .sl-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px;
  min-height: 0;
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 12px;
  color: #0e2f57;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .3s, border-color .3s;
}

.sl-contact .sl-contact-card:hover {
  background: #f5f7fa;
  border-color: #0e2f57;
  opacity: 1;
  transform: none;
}

/* アイコン・ラベル */
.sl-contact-card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0e2f57;
  letter-spacing: .08em;
}

/* 電話番号 */
.sl-contact-tel {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
  color: #0e2f57;
}

.sl-contact-card-note {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

/* WEBフォーム */
.sl-contact-web {
  display: none;
}

.sl-contact .sl-contact-card-button {
  display: block;
  width: 100%;
  max-width: 280px;
  padding: 12px 20px;
  border-radius: 50px;
  background: #0e2f57;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* 見学・ブログ案内 */
.sl-contact-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.sl-contact .sl-contact-sub-item {
  padding: 16px 0;
  background: none;
  border: none;
  border-top: 1px solid #d4dce6;
  border-radius: 0;
  box-shadow: none;
}

.sl-contact-sub-title {
  margin: 0 0 8px;
  color: #0e2f57;
  font-size: 14px;
  font-weight: 700;
}

.sl-contact-sub-item p {
  font-size: 14px;
  line-height: 1.8;
}

.sl-contact-blog {
  color: #0e2f57;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sl-ext {
  font-size: 11px;
  font-weight: 400;
}

/* SP */
@media (max-width: 767px) {
  .sl-contact-main,
  .sl-contact-sub {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sl-contact .sl-contact-card {
    padding: 22px 16px;
    gap: 10px;
  }

  .sl-contact-sub {
    margin-top: 20px;
  }

  .sl-contact .sl-contact-sub-item {
    padding: 14px 0;
  }
}
body.page-study-lounge .sl-table td span {
    font-weight: normal;
    color: #333;
    font-size: 14px;
    float: right;
}
@media (max-width: 640px) {
  body.page-study-lounge .sl-contact-main,
  body.page-study-lounge .sl-contact-sub {
    grid-template-columns: 1fr;
  }

  body.page-study-lounge .sl-contact-card {
    min-height: 0;
    padding: 24px 18px;
  }
body.page-study-lounge  .hero .lead {
        text-align: center;
}
body.page-study-lounge .sl-table td span {
    float: none !important;
    display: block;
    margin-top: 8px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
}
}
