/* ==========================================================================
   Project: STRUX Top Page
   Description: トップページ専用スタイル (PC/SP統合・BEM記法)
   ========================================================================== */

/* ベースラッパーの設定 */
.p-top {
  width: 100%;
  overflow: hidden;
  background-color: transparent;
}

@media (max-width: 899px) {

  /*
    修正: 900px未満のときは元サイト同様に最大幅480pxで中央寄せする
    左右にはbodyの方眼紙グリッド背景が綺麗に表示されます
  */
  .p-top {
    min-width: 350px;
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    /* 画面中央のカード感を美しく演出 */
  }

  .p-top-hero,
  .p-top-trainer,
  .p-top-focus,
  .p-top-why,
  .p-top-interview,
  .p-top-principal,
  .p-top-element {
    background-color: #ffffff;
  }
}

/* ===============================
   1. メインビジュアル (Hero)
================================== */
.p-top-hero {
  width: 100%;
  background-color: transparent;
  padding-top: 60px;
  /* SP固定ヘッダー分 */
}

@media (min-width: 768px) {
  .p-top-hero {
    margin-top: 120px;
    /* PC固定ヘッダー分 */
    padding-top: 0;
  }
}

/* ① メインビジュアルエリア（背景写真） */
.p-top-hero__visual {
  width: 100%;
  position: relative;
  background-color: #ffffff;
}

@media (min-width: 900px) {
  .p-top-hero__visual {
    background-image: url("../../../images/top_renewal/hero_bg_pc.jpg");
    background-image: -webkit-image-set(url("../../../images/top_renewal/hero_bg_pc.jpg") 1x,
        url("../../../images/top_renewal/hero_bg_pc@2x.jpg") 2x);
    background-image: image-set(url("../../../images/top_renewal/hero_bg_pc.jpg") 1x,
        url("../../../images/top_renewal/hero_bg_pc@2x.jpg") 2x);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    /* 写真の比率に合わせて手元・机までしっかり映る高さを確保 */
    height: 42vw;
    min-height: 480px;
    max-height: 600px;
    display: flex;
    align-items: stretch;
  }
}

/* SP用画像 */
.p-top-hero__sp-img {
  width: 100%;
}

.p-top-hero__sp-img img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 900px) {
  .p-top-hero__sp-img {
    display: none;
  }
}

/* PC専用コンテンツ（キャッチコピー ＆ CVパネル） */
.p-top-hero__inner {
  display: none;
}

@media (min-width: 900px) {
  .p-top-hero__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 上下にバランスよく中央寄せ */
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px 30px;
    box-sizing: border-box;
  }
}

/* 左側：キャッチコピーエリア */
@media (min-width: 900px) {
  .p-top-hero__catch-area {
    width: 35vw;
    min-width: 320px;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .p-top-hero__main-catch {
    margin: 0 0 14px 0;
  }

  .p-top-hero__main-catch img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }

  .p-top-hero__sub-catch {
    font-size: clamp(16px, 2.2vw, 32px);
    color: #ffffff;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-shadow:
      0 1px 3px #000a46,
      0 3px 8px rgba(0, 10, 70, 0.95),
      0 0 16px rgba(0, 10, 70, 0.9),
      0 0 32px rgba(0, 10, 70, 0.8),
      0 0 55px rgba(0, 50, 140, 0.6);
    margin: 0;
  }

  .p-top-hero__sub-catch-highlight {
    color: #ffff00;
  }
}

/* ===============================
   右側：CVパネル（完成デザイン再現）
================================== */
@media (min-width: 900px) {
  .p-top-hero__cv-panel {
    width: 25vw;
    min-width: 300px;
    max-width: 345px;
    /* 背景透過 ＋ box-shadow（borderは撤廃） */
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    /* ヘッダーの角丸をパネル上端に追従 */
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    backdrop-filter: blur(4px);
    /* 背景写真を美しくすりガラス化 */
  }

  /* 上部ヘッダー（余白なしで全幅ピタ付け） */
  .p-top-hero__cv-header {
    background-color: #000a46;
    color: #ffffff;
    font-size: clamp(15px, 1.8vw, 22px);
    font-weight: bold;
    line-height: 1.35;
    padding: 16px 10px;
    margin: 0;
    letter-spacing: 0.04em;
    border-radius: 0;
  }

  /* ヘッダー以下の本文コンテナ */
  .p-top-hero__cv-body {
    padding: 16px 28px 20px;
    box-sizing: border-box;
  }

  .p-top-hero__cv-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    text-align: left;
  }

  .p-top-hero__cv-list li {
    font-size: clamp(13px, 1.55vw, 22px);
    font-weight: bold;
    color: #000a46;
    line-height: 1.4;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    letter-spacing: -0.02em;
  }

  /* FontAwesome チェックアイコン */
  .p-top-hero__cv-icon {
    color: #000a46;
    background: radial-gradient(circle at center, #ffff00 65%, transparent 68%);
    font-size: 1.25em;
    margin-right: 8px;
    margin-top: 1px;
    flex-shrink: 0;
    line-height: 1;
    display: inline-block;
  }

  .p-top-hero__cv-thumb {
    margin-bottom: 16px;
    padding: 0;
  }

  .p-top-hero__cv-thumb img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .p-top-hero__cv-btn-wrap {
    margin-bottom: 10px;
  }

    /* 無料体験ボタン（buttonタグ対応・完成版） */
    .p-top-hero__cv-btn {
      display: block;
      width: 100%;
      /* ボタンタグで幅いっぱいに広げる */
      border: none;
      /* ブラウザ標準の枠線を削除 */
      outline: none;
      cursor: pointer;
      /* ホバー時に指マークにする */
      font-family: inherit;
      /* フォント設定を引き継ぐ */
      background: linear-gradient(180deg, #ff0f1b 0%, #d4000d 50%, #b3000a 100%);
      color: #ffffff;
      font-size: clamp(17px, 1.35vw, 20px);
      font-weight: bold;
      text-decoration: none;
      padding: 15px 0;
      border-radius: 40px;
      line-height: 1.2;
      letter-spacing: 0.03em;
      box-shadow: none;
      text-align: center;
      transition: opacity 0.2s, transform 0.1s;
    }

    .p-top-hero__cv-btn:hover {
      opacity: 0.9;
    }

  .p-top-hero__cv-note {
    font-size: 10px;
    font-weight: bold;
    color: #222222;
    line-height: 1.4;
    margin: 0;
  }

  .p-top-hero__cv-note--notice {
    font-size: 14px;
  }
}

/* ===============================
   ② 3つのメリット帯 (PC専用・デザイン完全一致)
================================== */
.p-top-hero__benefits {
  display: none;
}

@media (min-width: 900px) {
  .p-top-hero__benefits {
    display: block;
    width: 100%;
    background-color: transparent;
    border: none;
    position: relative;
    z-index: 2;
  }

  .p-top-hero__benefits-inner {
    width: 100%;
    /* デザインの幅に合わせて適正化 */
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 15px;
    box-sizing: border-box;
  }

  /* 3つのボックス共通 */
  .p-top-hero__benefit-item {
    width: 32%;
    border-left: 6px solid #e60012 !important;
    border-right: none !important;
    padding-left: 14px !important;
    /* 赤線から文字までの距離を14pxに統一 */
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  /* 通常フレーズ（中サイズ：16.5px / 太字） */
  .p-top-hero__benefit-item p {
    margin: 0;
    font-size: clamp(16.5px, 1.8vw, 24px);
    font-weight: bolder;
    color: #000a46;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }

  /* 強調フレーズ（大サイズ：22px / 極太900） */
  .p-top-hero__benefit-item p span {
    display: inline-block;
    font-size: clamp(22px, 2.4vw, 36px);
    font-weight: 900;
    color: #000a46;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }
}

/* ③ 合格実績バナー（背景ピンク） */
.p-top-hero__achieve {
  width: 100%;
  position: relative;
  z-index: 2;
  background-color: #fce4e7;
  padding: 0;
}

@media (min-width: 900px) {
  .p-top-hero__achieve {
    padding: 10px 0 100px;
  }
}

.p-top-hero__image--achieve {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.p-top-hero__image--achieve img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==============================================
   ④ 特徴セクション（元CSS完全準拠・BEM設計）
=============================================== */
.p-top-hero__features {
  width: 100%;
  margin: 0;
  padding: 0;
  /* ピンクの余白原因を全排除 */
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* 黄色ハイライト */
.p-top-hero__features-highlight {
  color: #ffff00;
}

/* ---------------------------------
   PC版（900px以上：2つの領域に美しく跨座させる）
------------------------------------ */
.p-top-hero__features-pc {
  display: none;
}

@media (min-width: 900px) {
  .p-top-hero__achieve {
    padding-bottom: 20px;
    background-color: #fce4e7;
  }

  .p-top-hero__features-pc {
    display: block;
    width: 100%;
    background-color: #fce4e7;
    margin: 0;
    padding: 0;
    position: relative;
  }

  .p-top-hero__features-pc-bar {
    width: 100%;
    max-width: 1008px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }

  .p-top-hero__features-pc-catch {
    background-color: #000a46;
    width: 100%;
    margin-top: -5.5vw;
    padding-top: calc(5.5vw + 24px);
    padding-bottom: 22px;
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    font-size: clamp(36px, 3vw, 42px);
    line-height: 1.42;
    letter-spacing: -0.04em;
    font-weight: bold;
    box-sizing: border-box;
  }
}

/* ---------------------------------
   SP版（899px以下）
------------------------------------ */
.p-top-hero__features-sp {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .p-top-hero__features-sp {
    display: none;
  }
}

.p-top-hero__features-grid {
  position: relative;
  width: 100%;
  background-color: #ffffff;
}

/* 中央の丸アイコン (元common.css: 108px) */
.p-top-hero__features-center {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: -webkit-linear-gradient(0deg, #cd0011, #005897);
  background: linear-gradient(0deg, #cd0011, #005897);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-top-hero__features-center-text {
  font-size: 19px;
  line-height: 1.21;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  margin: 0;
}

/* 2×2の行 */
.p-top-hero__features-row {
  display: flex;
  width: 100%;
}

/* 各写真パネル (元common.css: height 128px) */
.p-top-hero__features-item {
  width: 50%;
  height: 128px;
  position: relative;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* 元CSS通りの背景画像と青い境界線 */
.p-top-hero__features-item--1 {
  background-image: url("../../images/hero/2.png");
  border-right: 1px solid #1a2c78;
  border-bottom: 1px solid #1a2c78;
}

.p-top-hero__features-item--2 {
  background-image: url("../../images/hero/3.png");
  border-bottom: 1px solid #1a2c78;
}

.p-top-hero__features-item--3 {
  background-image: url("../../images/hero/4.png");
  border-right: 1px solid #1a2c78;
}

.p-top-hero__features-item--4 {
  background-image: url("../../images/hero/5.png");
}

/* 写真上の文字 (元common.cssの多重text-shadowを完全再現) */
.p-top-hero__features-item-text {
  position: absolute;
  bottom: 0;
  margin: 0;
  padding: 10px;
  font-size: 16px;
  line-height: 1.3075;
  letter-spacing: -0.02em;
  color: #1a2c78;
  font-weight: bold;
  text-shadow:
    0 0 3px #ffffff, 0 0 3px #ffffff, 0 0 3px #ffffff, 0 0 3px #ffffff,
    0 0 3px #ffffff, 0 0 3px #ffffff, 0 0 3px #ffffff, 0 0 3px #ffffff;
}

/* 左列（1・3）：中央の丸を避けて左下寄せ */
.p-top-hero__features-item--1 .p-top-hero__features-item-text,
.p-top-hero__features-item--3 .p-top-hero__features-item-text {
  left: 0;
  text-align: left;
}

/* 右列（2・4）：中央の丸を避けて右下寄せ */
.p-top-hero__features-item--2 .p-top-hero__features-item-text,
.p-top-hero__features-item--4 .p-top-hero__features-item-text {
  right: 0;
  text-align: right;
}

/* SP用：濃紺メッセージ帯 (元common.cssの#point>h2の完全移植) */
.p-top-hero__features-banner {
  text-align: center;
  position: relative;
  background-color: #000a46;
  padding: 25px 10px 18px 10px;
  margin: 0;
}

.p-top-hero__features-banner-text {
  margin: 0;
  font-size: 20px;
  line-height: 1.42;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-weight: bold;
}

/* 下部逆三角形 (元CSSの::afterによる実装) */
.p-top-hero__features-banner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  width: 0px;
  height: 0px;
  margin: auto;
  border-style: solid;
  border-color: #000a46 transparent transparent transparent;
  border-width: 15px 15px 0 15px;
  z-index: 3;
}


/* ===============================
   2. トレーナーの必要性 (Trainer)
================================== */
.p-top-trainer {
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
}

@media (min-width: 900px) {
  .p-top-trainer {
    width: 1000px;
    background-color: #fff;
  }
}

.p-top-trainer__intro {
  padding: 23px 13px 0 14px;
  display: flex;
  align-items: flex-start;
  background-color: #ffffff;
}

@media (min-width: 900px) {
  .p-top-trainer__intro {
    display: block;
    background-image: url("../../images/hero/15.png");
    height: 270px;
    background-size: cover;
    background-position: center;
    padding: 0;
    position: relative;
  }
}

.p-top-trainer__sp-img {
  width: 125px;
  height: auto;
  display: block;
}

@media (min-width: 900px) {
  .p-top-trainer__sp-img {
    display: none;
  }
}

.p-top-trainer__intro-text {
  padding-left: 10px;
  flex: 1;
}

@media (min-width: 900px) {
  .p-top-trainer__intro-text {
    width: 600px;
    margin-left: 400px;
    text-align: center;
    padding-top: 1em;
  }
}

.p-top-trainer__intro-title {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: #000a46;
  font-weight: bold;
  display: inline;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-trainer__intro-title {
    display: block;
    font-size: 1.8rem;
    line-height: 1.5;
    text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff;
  }
}

.p-top-trainer__br-pc {
  display: none;
}

@media (min-width: 900px) {
  .p-top-trainer__br-pc {
    display: block;
  }
}

.p-top-trainer__intro-desc {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: #000a46;
  font-weight: bold;
  display: inline;
  margin: 0;
  padding: 0 20px;
}

@media (min-width: 900px) {
  .p-top-trainer__intro-desc {
    display: block;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 2em;
    text-align: center;
  }
}

.p-top-trainer__message {
  width: 100%;
  height: 350px;
  background-image: url("../../images/hero/8.png");
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  padding-top: 28px;
  margin-top: 20px;
  background-color: #ffffff;
}

@media (min-width: 900px) {
  .p-top-trainer__message {
    height: 900px;
    background-image: url("../../images/hero/16.png");
    background-size: cover;
    background-position: top;
    padding-top: 0;
    margin-top: 0;
  }
}

.p-top-trainer__message-arrow {
  height: 150px;
  background-image: url("../../images/hero/7.png");
  background-position: center 60px;
  background-repeat: no-repeat;
  background-size: auto 60%;
  text-align: center;
}

@media (min-width: 900px) {
  .p-top-trainer__message-arrow {
    background-size: auto 80%;
    background-position: center;
  }
}

.p-top-trainer__message-text {
  font-size: 31px;
  color: #000a46;
  font-weight: bold;
  line-height: 1.3;
}

@media (min-width: 900px) {
  .p-top-trainer__message-text {
    padding-top: 20px;
    font-size: 2.6rem;
  }
}

.p-top-trainer__message-text span {
  color: #ce0000;
}


/* ===============================
   3. 勉強に集中できる理由 (Focus: 画像3の完全再現)
================================== */
.p-top-focus {
  width: 100%;
  /* 修正: SP時は元コード通り高さ690pxを確保して女子生徒の配置を固定 */
  height: 690px;
  background-image: url("../../images/hero/11.png");
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-color: #ffffff;
  padding-bottom: 0;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-focus {
    width: 1000px;
    margin: 0 auto;
    height: 750px;
    background-image: url("../../images/hero/17.png");
    background-size: cover;
    background-position: bottom;
    position: relative;
    padding-bottom: 0;
    text-align: center;
    display: flow-root;
  }
}

.p-top-focus__main {
  padding: 14px 0 12px;
}

@media (min-width: 900px) {
  .p-top-focus__main {
    display: inline-block;
    width: 95%;
    margin: -40% 2.5% 0;
    padding: .1px 0;
    box-sizing: border-box;
    background-color: #827030;
    background: linear-gradient(to right, rgb(228, 196, 63) 48%, rgb(216, 215, 138) 51%, rgb(175, 128, 33) 74%, rgb(170, 128, 55) 83%);
  }
}

.p-top-focus__box {
  text-align: center;
}

@media (min-width: 900px) {
  .p-top-focus__box {
    background-color: #000a46;
    margin: 7.5px;
    padding: 30px 0;
  }
}

.p-top-focus__box-text {
  font-size: 19px;
  line-height: 1.78;
  letter-spacing: -0.04em;
  color: #000a46;
  font-weight: bold;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-focus__box-text {
    color: #fff;
    font-size: 2em;
    line-height: 1.5;
  }
}

.p-top-focus__highlight {
  font-size: 26px;
  color: #ce0000;
}

@media (min-width: 900px) {
  .p-top-focus__highlight {
    font-size: 1.5em;
    color: #ffff00;
  }
}

/* 「だから」の赤い下矢印 */
.p-top-focus__redarrow {
  width: 237px;
  height: 50px;
  background-image: url("../../images/hero/9.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  position: relative;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .p-top-focus__redarrow {
    width: 237px;
    height: 100px;
    background-size: contain;
    margin: 20px auto 0;
  }
}

.p-top-focus__redarrow p {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin-top: -10px;
}

@media (min-width: 900px) {
  .p-top-focus__redarrow p {
    font-size: 2.2em;
    margin-top: -15px;
  }
}

/* 「＼ 勉強法でもう迷わない！ ／」 */
.p-top-focus__pop {
  padding: 6px 0 0;
  background-image: url("../../images/hero/10.png");
  background-position: center 6px;
  background-repeat: no-repeat;
  background-size: auto 85%;
  text-align: center;
  margin: 10px auto 0;
}

@media (min-width: 900px) {
  .p-top-focus__pop {
    background-position: center 15px;
    background-size: auto 70%;
    background-color: transparent;
    padding: 6px 0 0 0;
    margin: 0 auto;
  }
}

.p-top-focus__pop p {
  font-size: 31px;
  letter-spacing: -0.04em;
  color: #000a46;
  font-weight: bold;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-focus__pop p {
    font-size: 3em;
  }
}

/* 4つの丸（元デザイン通りの位置関係を再現） */
.p-top-focus__circles {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-focus__circles {
    width: 1000px;
    margin: 0 auto;
    padding: 0;
  }
}

/* 1行目：中央から左右両端へ寄せて顔への被りを解消 */
.p-top-focus__circles-row:nth-child(1) {
  padding: 10px 10px 0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
}

.p-top-focus__circles-row:nth-child(1) .p-top-focus__circle:first-child {
  margin-right: 0;
}

@media (min-width: 900px) {
  .p-top-focus__circles-row:nth-child(1) {
    padding: 23px 0 0;
    display: block;
    text-align: center;
  }

  .p-top-focus__circles-row:nth-child(1) .p-top-focus__circle:first-child {
    margin-right: 300px;
  }
}

/* 2行目：女子生徒の両脇（肩の外側）に配置 */
.p-top-focus__circles-row:nth-child(2) {
  padding: 0 5px;
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .p-top-focus__circles-row:nth-child(2) {
    margin-top: -30px;
  }

  .p-top-focus__circles-row:nth-child(2) .p-top-focus__circle {
    margin: 0 100px;
  }
}

.p-top-focus__circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(84, 169, 215, 0.2);
  display: inline-block;
  position: relative;
  z-index: 5;
}

@media (min-width: 900px) {
  .p-top-focus__circle {
    width: 130px;
    height: 130px;
  }
}

.p-top-focus__circle p {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: #005890;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
  margin: 0;
}


/* ===============================
   4. CTAエリア（無料体験を申し込む）
================================== */
.p-top-cta {
  /* 修正: SP時はwidth: 100%にし、はみ出しバグを解消 */
  width: 100%;
  margin: 0 auto;
  padding: 20px 10px;
  text-align: center;
  box-sizing: border-box;
  background-color: #fff;
}

@media (min-width: 900px) {
  .p-top-cta {
    width: 1000px;
    padding: 40px 0 30px;
  }
}

.p-top-cta__inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: transparent;
}

.p-top-cta__btn-wrap {
  width: 100%;
  max-width: 500px;
  height: 140px;
  margin: 0 auto;
  background-image: url("../../images/hero/12.png");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
}

.p-top-cta__btn {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  height: auto;
  border: none !important;
  outline: none !important;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  background: linear-gradient(to right, #cd0011, #005897);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 900px) {
  .p-top-cta__btn-wrap {
    max-width: 600px;
    height: 100px;
    background-image: url("../../images/hero/22.png");
    background-size: contain;
    background-position: center;
  }

  .p-top-cta__btn {
    position: static;
    height: 100%;
    font-size: 2.1em;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.p-top-cta__btn span{
  font-size: 14px;
  display: block;
  margin-top: 4px;
}

@media (min-width: 900px) {
  .p-top-cta__btn span {
    font-size: 18px;
  }
}

.p-top-cta__note {
  font-size: 10px;
  margin-top: 15px;
  color: #333;
}

@media (min-width: 900px) {
  .p-top-cta__note {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* ===============================
   5. なぜSTRUXで合格できるのか (Why)
================================== */
.p-top-why {
  width: 100%;
  padding: 64px 0 24px;
}

@media (min-width: 900px) {
  .p-top-why {
    /* PC時: 幅1000pxに絞って中央配置し、水色の背景を敷く（左右にグリッド背景が見える） */
    width: 1000px;
    margin: 0 auto;
    padding: 0;
    background-color: #D2ECF9;
  }
}

.p-top-why__inner {
  width: 100%;
  box-sizing: border-box;
}

/* セクション大見出し */
.p-top-why__heading {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-align: center;
  background-image: radial-gradient(circle, #636888 0%, #000a46 30%);
  padding: 13.5px 0;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-why__heading {
    background-image: none;
    background-color: #1A2C78;
    letter-spacing: 0.02em;
    position: relative;
    padding: 20px 0;
  }

  /* PC時の下向き三角形 */
  .p-top-why__heading::after {
    display: block;
    content: "";
    border-style: solid;
    border-width: 30px;
    border-color: #1A2C78 transparent transparent transparent;
    position: absolute;
    bottom: -60px;
    left: 50%;
    margin-left: -30px;
  }
}

.p-top-why__heading-nobr {
  display: block;
}

@media (min-width: 900px) {
  .p-top-why__heading-nobr {
    display: inline;
  }
}

.p-top-why__heading-highlight {
  color: #ffff00;
}

/* 各特徴アイテム (01, 02, 03) */
.p-top-why__item {
  padding: 10px 15px 0;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-why__item {
    padding: 0 40px;
    margin-bottom: 30px;
  }
}

/* 丸数字バッジ（SP用） */
.p-top-why__badge {
  display: inline-block;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #000a46;
  position: relative;
  text-align: center;
}

@media (min-width: 900px) {
  .p-top-why__badge {
    display: none;
  }
}

.p-top-why__badge-num {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #ffffff;
  position: absolute;
  left: 0;
  top: 7px;
  width: 90px;
  font-weight: bold;
}

/* タイトル見出し */
.p-top-why__title-wrap {
  margin: -60px 0 0 0;
  position: relative;
  z-index: 4;
}

@media (min-width: 900px) {
  .p-top-why__title-wrap {
    margin-top: 45px;
  }
}

.p-top-why__title {
  padding: 6px 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffff00;
  background: #000a46;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-why__title {
    font-size: 1.3em;
    line-height: 2em;
    background-color: #1A2C78;
  }
}

.p-top-why__title-nobr {
  display: block;
}

@media (min-width: 900px) {
  .p-top-why__title-nobr {
    display: inline;
  }
}

/* 白枠カード */
.p-top-why__card {
  border: 3px solid #000a46;
  background-color: #fff;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-why__card {
    border-color: #1A2C78;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px 0;
  }
}

.p-top-why__card-image {
  padding: 9px 10px 0 10px;
}

.p-top-why__card-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 900px) {
  .p-top-why__card-image {
    width: 50%;
    padding: 0 20px;
    box-sizing: border-box;
  }
}

.p-top-why__card-content {
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-why__card-content {
    width: 50%;
    padding: 10px 20px;
    text-align: left;
  }
}

.p-top-why__card-summary {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: -0.01em;
  color: #000a46;
  padding: 14px 10px 0;
  font-weight: bold;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-why__card-summary {
    border-top: 2px solid #000a46;
    border-bottom: 2px solid #000a46;
    padding: 15px 0;
    margin: 10px 0 20px;
    font-size: 1.3em;
    line-height: 1.7em;
  }
}

.p-top-why__card-detail {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: #000a46;
  padding: 10px;
  text-align: left;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-why__card-detail {
    font-size: 1.1em;
    letter-spacing: 0.08em;
    padding: 0;
    line-height: 1.7;
  }
}

/* ==========================================================================
   「さらに」の赤い矢印の修正
   ========================================================================== */
.p-top-why__arrow {
  width: 237px;
  /* 元コード通り237px固定 */
  height: 50px;
  background-image: url("../../images/hero/9.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  position: relative;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .p-top-why__arrow {
    width: 237px;
    /* PC時も237pxを維持 */
    height: 100px;
    background-size: contain;
    /* 修正: カードの底辺に半分だけ綺麗に乗るように引き上げ（文字には被らない） */
    margin-top: -65px;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
  }
}

.p-top-why__arrow-text {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin: -5px 0 0;
}

@media (min-width: 900px) {
  .p-top-why__arrow-text {
    font-size: 2.2em;
    margin-top: -15px;
  }
}

/* オンライン自習室 */
.p-top-why__extra {
  margin-top: -10px;
  padding: 0 15px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-why__extra {
    margin-top: 20px;
    padding: 0 40px;
  }
}

.p-top-why__extra-box {
  background-image: url("../../images/why/5.png");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 0 12px 15px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-why__extra-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px;
  }
}

.p-top-why__extra-title {
  padding: 24px 0 0;
  font-size: 23px;
  line-height: 1.37;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: center;
  margin: 0;
  width: 100%;
}

@media (min-width: 900px) {
  .p-top-why__extra-title {
    color: #ffff00;
    font-size: 2em;
    margin-bottom: 20px;
  }
}

.p-top-why__extra-highlight {
  color: #ffff00;
}

@media (min-width: 900px) {
  .p-top-why__extra-highlight {
    color: #ffff00;
  }
}

.p-top-why__extra-image {
  padding: 8px 0;
  width: 100%;
}

.p-top-why__extra-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 900px) {
  .p-top-why__extra-image {
    width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

.p-top-why__extra-detail {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-why__extra-detail {
    width: 50%;
    padding: 0 20px;
    box-sizing: border-box;
    font-weight: bold;
    font-size: 1.3em;
    text-align: left;
  }
}

/* 動画エリア */
.p-top-why__movie {
  margin: 20px 15px 0;
}

@media (min-width: 900px) {
  .p-top-why__movie {
    margin: 40px 50px 0;
    padding-bottom: 50px;
  }
}

.p-top-why__movie-title {
  font-size: 17.5px;
  line-height: 2.14;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: linear-gradient(to right, #cd0011, #005897);
  text-align: center;
  box-shadow: 0 0 5px grey;
  margin: 0;
  font-weight: bold;
}

@media (min-width: 900px) {
  .p-top-why__movie-title {
    font-size: 1.8em;
    line-height: 2.4em;
  }
}

.p-top-why__movie-frame iframe {
  width: 100%;
  vertical-align: bottom;
  box-shadow: 0 0 5px grey;
}

@media (min-width: 900px) {
  .p-top-why__movie-frame iframe {
    height: 500px;
  }
}

/* ===============================
   6. 合格実績・インタビュー (Interview)
================================== */
.p-top-interview {
  width: 100%;
  padding-top: 13px;
  background-image: url("../../images/interview/1.png");
  background-repeat: repeat;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-interview {
    /* PC時: 幅1000pxで左右にグリッド背景を見せる */
    width: 1000px;
    margin: 0 auto;
    background-size: cover;
    padding-top: 40px;
  }
}

.p-top-interview__inner {
  width: 100%;
  box-sizing: border-box;
  padding: 0 18.5px;
}

@media (min-width: 900px) {
  .p-top-interview__inner {
    padding: 0 42.5px;
  }
}

/* タイトル見出し */
.p-top-interview__title-wrap {
  text-align: center;
}

.p-top-interview__title {
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: -0.04em;
  color: #c33262;
  font-weight: bold;
  margin: 0 0 20px;
}

@media (min-width: 900px) {
  .p-top-interview__title {
    color: #ED488C;
    font-size: 3.6em;
    margin-bottom: 40px;
  }
}

.p-top-interview__title-sub {
  font-size: 18.5px;
  display: inline-block;
}

@media (min-width: 900px) {
  .p-top-interview__title-sub {
    font-size: 0.5em;
  }
}

/* カード全体 */
.p-top-interview__card {
  padding-top: 15px;
  margin-bottom: 25px;
}

@media (min-width: 900px) {
  .p-top-interview__card {
    padding-top: 25px;
    margin-bottom: 40px;
  }
}

/* カードヘッダー（ピンク背景部分） */
.p-top-interview__card-head {
  background-color: #d14278;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 3px grey;
  height: 84.5px;
  padding: 8px 0 0 16px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-interview__card-head {
    background-color: #ED488C;
    height: 120px;
    padding-left: 40px;
  }
}

.p-top-interview__card-thumb img {
  height: 68px;
  width: auto;
  display: block;
}

@media (min-width: 900px) {
  .p-top-interview__card-thumb img {
    height: 110px;
  }
}

.p-top-interview__card-lead {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-weight: bold;
  padding-left: 12px;
}

@media (min-width: 900px) {
  .p-top-interview__card-lead {
    font-size: 1.4em;
    padding-left: 20px;
  }
}

.p-top-interview__card-school {
  font-size: 28px;
  font-weight: bold;
}

@media (min-width: 900px) {
  .p-top-interview__card-school {
    font-size: 1.6em;
  }
}

.p-top-interview__card-name {
  font-size: 13.5px;
  font-weight: normal;
  padding-top: 3px;
}

@media (min-width: 900px) {
  .p-top-interview__card-name {
    font-size: 0.8em;
  }
}

/* カード本文エリア（白背景） */
.p-top-interview__card-body {
  padding: 20px 10px 12px;
  border: 2.5px solid #d14278;
  background-color: #ffffff;
  box-shadow: 0 2px 3px grey;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-interview__card-body {
    border-color: #ED488C;
    padding: 25px 30px;
    position: relative;
    /* 回り込み（float）解除用 */
    display: flow-root;
  }
}

/* 画像のPC/SP出し分け */
.p-top-interview__card-img--pc {
  display: none;
}

@media (min-width: 900px) {
  .p-top-interview__card-img--pc {
    display: block;
    float: right;
    width: 40%;
    margin: 0 0 15px 20px;
  }

  .p-top-interview__card-img--pc img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.p-top-interview__card-img--sp {
  display: block;
  padding-top: 15px;
}

.p-top-interview__card-img--sp img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 900px) {
  .p-top-interview__card-img--sp {
    display: none;
  }
}

.p-top-interview__card-text {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.03em;
  font-weight: bold;
  text-align: justify;
}

@media (min-width: 900px) {
  .p-top-interview__card-text {
    font-size: 1.15em;
    line-height: 1.75;
  }
}

.p-top-interview__card-question {
  color: #d14278;
}

@media (min-width: 900px) {
  .p-top-interview__card-question {
    color: #ED488C;
  }
}

/* ===============================
   インタビュー内 CTAボタン
================================== */
.p-top-interview__cta {
  padding: 25px 0 10px;
  text-align: center;
}

.p-top-interview__cta-btn-wrap {
  width: 100%;
  max-width: 500px;
  height: 88px;
  margin: 0 auto;
  background-image: url("../../images/hero/12.png");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
}

@media (min-width: 900px) {
  .p-top-interview__cta-btn-wrap {
    max-width: 550px;
    height: 100px;
    background-image: url("../../images/interview/8.png");
    background-size: contain;
    background-position: center;
  }
}

.p-top-interview__cta-btn {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  height: auto;
  border: none !important;
  outline: none !important;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  background: linear-gradient(to right, #cd0011, #005897);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 900px) {
  .p-top-interview__cta-btn {
    position: static;
    height: 100%;
    font-size: 1.9em;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.p-top-interview__cta-btn span {
  font-size: 14px;
  display: block;
  margin-top: 4px;
}

@media (min-width: 900px) {
  .p-top-interview__cta-btn span {
    font-size: 16px;
  }
}

.p-top-interview__cta-note {
  font-size: 10px;
  line-height: 1.5;
  margin-top: 10px;
  color: #333;
}

@media (min-width: 900px) {
  .p-top-interview__cta-note {
    font-size: 13px;
    margin-top: 15px;
  }
}
/* ===============================
   7. 塾長紹介・合格の要素 (Principal)
================================== */
.p-top-principal {
  width: 100%;
}

@media (min-width: 900px) {
  .p-top-principal {
    width: 1000px;
    margin: 0 auto;
  }
}

/* 斜め見出し帯 */
.p-top-principal__heading-wrap {
  position: relative;
  width: 100%;
  padding: 0;
  background: linear-gradient(to bottom, #f7e5e5 0%, #f7e5e5 45%, #ffffff 45%, #ffffff 100%);
  overflow: visible;
  z-index: 1;
}

.p-top-principal__heading-bg img {
  width: 100%;
  height: auto;
  display: block;
}

/* 修正: 固定マージンを廃止し、背景画像の帯中心に完全吸着 */
.p-top-principal__heading {
  position: absolute;
  top: 46%;
  /* 斜めリボンの上下中央に配置 */
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  width: 92%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-weight: bold;
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-size: clamp(18px, 4.8vw, 25px);
  z-index: 2;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .p-top-principal__heading {
    top: 48%;
    font-size: clamp(32px, 3.2vw, 42px);
    width: 100%;
  }
}

.p-top-principal__heading-highlight {
  color: #ffff00;
}

/* コンテンツ本体 */
.p-top-principal__body {
  background-color: #ffffff;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .p-top-principal__body {
    padding: 0 50px;
  }
}

/* 塾長プロフィール */
.p-top-principal__profile {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* 写真・文字を下端揃え */
  position: relative;
  max-width: 520px;
  /* 中間幅での写真肥大化を防止 */
  margin: 0 auto;
}

@media (min-width: 900px) {
  .p-top-principal__profile {
    max-width: 100%;
    margin-bottom: 40px;
  }
}

.p-top-principal__profile-text {
  width: 50%;
  padding: 20px 0 20px 10px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-principal__profile-text {
    width: 55%;
    padding: 0 0 20px 20px;
  }
}

.p-top-principal__profile-name {
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.25;
  text-align: left;
  margin: 0 0 10px;
  font-weight: bold;
  color: #000a46;
}

@media (min-width: 900px) {
  .p-top-principal__profile-name {
    font-size: 2em;
    margin-bottom: 15px;
  }
}

.p-top-principal__profile-detail {
  font-size: clamp(13px, 2.8vw, 15px);
  line-height: 1.65;
  letter-spacing: -0.015em;
  text-align: justify;
  color: #000a46;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-principal__profile-detail {
    font-size: 1.25em;
    line-height: 1.75;
  }
}

/* 写真コンテナ（帯の前面に浮かせて食い込ませる） */
.p-top-principal__profile-image {
  width: 48%;
  max-width: 250px;
  display: block;
  position: relative;
  z-index: 5;
  /* 見出し帯背景より前面に出して頭のマスクを防止 */
  margin-top: -36px;
  /* 三角突起の横に自然に食い込ませる */
}

@media (min-width: 900px) {
  .p-top-principal__profile-image {
    width: 40%;
    max-width: 380px;
    margin-top: -90px;
  }
}

.p-top-principal__profile-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 4つの合格要素ナビゲーションリンク */
.p-top-principal__nav {
  list-style: none;
  padding: 0 0 25px;
  margin: 0;
}

.p-top-principal__nav-item:not(:first-child) {
  padding-top: 6px;
}

.p-top-principal__nav-link {
  display: flex;
  align-items: center;
  background-image: url("../../images/principal/9.png");
  background-size: 100% 100%;
  height: 60px;
  position: relative;
  text-decoration: none;
  color: #ffffff;
  padding: 0 10px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-principal__nav-link {
    height: 120px;
    padding: 0 20px;
  }
}

.p-top-principal__nav-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 25px;
  background: url("../../images/principal/10.png") center no-repeat;
  background-size: contain;
}

@media (min-width: 900px) {
  .p-top-principal__nav-link::after {
    background-image: url("../../images/principal/10_pc.png");
    width: 30px;
    height: 50px;
    right: 20px;
  }
}

.p-top-principal__nav-icon img {
  display: block;
  height: 45px;
  width: auto;
}

@media (min-width: 900px) {
  .p-top-principal__nav-icon img {
    height: 90px;
  }
}

.p-top-principal__nav-text {
  padding-left: 8px;
}

@media (min-width: 900px) {
  .p-top-principal__nav-text {
    padding-left: 20px;
  }
}

.p-top-principal__nav-num {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  display: block;
}

@media (min-width: 900px) {
  .p-top-principal__nav-num {
    font-size: 1.4em;
    line-height: 1.5;
  }
}

.p-top-principal__nav-title {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

@media (max-width: 374px) {
  .p-top-principal__nav-title {
    font-size: 22px;
  }
}

@media (min-width: 900px) {
  .p-top-principal__nav-title {
    font-size: 2.8em;
    line-height: 1.2;
    letter-spacing: 0;
  }
}

/* SP時のみ横幅あふれを防ぐ文字幅調整 */
@media (max-width: 899px) {
  .p-top-principal__nav-item:nth-of-type(2) .p-top-principal__nav-title {
    font-size: clamp(18px, 6vw, 25px);
  }

  .p-top-principal__nav-item:nth-of-type(3) .p-top-principal__nav-title {
    font-size: clamp(18px, 6vw, 25px);
  }
}

/* ==========================================================================
   合格の要素 共通コンポーネント (Element ❶〜❹)
   ========================================================================== */
.p-top-element {
  width: 100%;
  background-color: #ffffff;
  padding-bottom: 30px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-element {
    width: 1000px;
    margin: 0 auto;
    background-color: #ffffff !important;
    padding-bottom: 50px;
  }
}

/* ヘッダー帯 (グラデーション) */
.p-top-element__header {
  width: 100%;
  background: linear-gradient(to right, #cd0011, #005897);
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  padding: 15px 0 20px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-element__header {
    min-height: 194px;
    height: auto;
    padding: 25px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.p-top-element__header-num {
  font-size: 16px;
  line-height: 1.125;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.p-top-element__header-num::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 20px;
  height: 2px;
  transform: translateX(-50%);
  background-color: #ffffff;
}

@media (min-width: 900px) {
  .p-top-element__header-num {
    font-size: 1.2em;
    padding-top: 20px;
  }

  .p-top-element__header-num::before {
    bottom: -15px;
    width: 30px;
    height: 3px;
  }
}

.p-top-element__header-title {
  font-size: 20px;
  line-height: 1.52;
  letter-spacing: -0.02em;
  color: #ffffff;
  padding: 17.5px 0 0 0;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-element__header-title {
    font-size: 2em;
    margin-top: 20px;
    line-height: 1.2em;
    padding: 0;
  }
}

.p-top-element__header-sub {
  display: block;
  padding: 10px 0 0 0;
}

.p-top-element__header-nobr {
  display: block;
}

@media (min-width: 900px) {
  .p-top-element__header-nobr {
    display: inline;
  }
}

/* ボディ（Q&Aエリア） */
.p-top-element__body {
  padding: 10px 15px;
  box-sizing: border-box;
  background-color: #ffffff;
}

@media (min-width: 900px) {
  .p-top-element__body {
    padding: 0 15px;
  }
}

.p-top-element__qa {
  padding-top: 20px;
}

@media (min-width: 900px) {
  .p-top-element__qa {
    padding-top: 40px;
  }
}

/* Qの吹き出し */
.p-top-element__q-text {
  background-color: #0a1a4d;
  font-size: 16px;
  line-height: 1.7;
  color: #ffffff;
  padding: 12.5px 15px;
  font-weight: bold;
  border-radius: 10px;
  position: relative;
  margin: 0;
}

.p-top-element__q-text::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 155px;
  width: 0;
  height: 0;
  margin: auto;
  border-style: solid;
  border-color: #0a1a4d transparent transparent transparent;
  border-width: 17px 0 0 25px;
  transform: rotate(-7deg);
}

@media (min-width: 900px) {
  .p-top-element__q-text {
    font-size: 1.4em;
    padding: 22.5px 30px;
    letter-spacing: 1px;
    margin: 0;
  }

  .p-top-element__q-text::after {
    left: auto;
    right: 65px;
  }
}

.p-top-element__highlight-yellow {
  color: #ffff00 !important;
}

.p-top-element__highlight-red {
  color: #ce0000 !important;
}

/* Aのエリア */
.p-top-element__a {
  padding: 25px 0 0 0;
}

@media (min-width: 900px) {
  .p-top-element__a {
    width: 77%;
    margin-left: 18%;
    border: 2px solid #C0C0C0;
    border-radius: 5px;
    /* 修正: 25px → 45px に広げ、顔写真の飛び出し(22px)としっぽの干渉を完全に解消 */
    margin-top: 45px;
    padding: 20px 25px;
    position: relative;
    box-sizing: border-box;
    background-color: #ffffff;
  }

  .p-top-element__a::before {
    content: "";
    display: block;
    border-color: transparent #C0C0C0 transparent transparent;
    border-width: 30px;
    border-style: solid;
    transform: scale(1, 0.5);
    position: absolute;
    top: 10px;
    left: -60px;
  }

  .p-top-element__a::after {
    content: "";
    display: block;
    border-color: transparent #fff transparent transparent;
    border-width: 30px;
    border-style: solid;
    transform: scale(1, 0.5);
    position: absolute;
    top: 10px;
    left: -57px;
  }

  /* 回答枠が連続する場合のマージン（こちらも維持） */
  .p-top-element__a+.p-top-element__a {
    margin-top: 55px;
  }
}

.p-top-element__a-row {
  padding: 0 0 14.5px 0;
}

@media (min-width: 900px) {
  .p-top-element__a-row {
    position: relative;
  }
}

.p-top-element__a-img {
  float: left;
  margin: 0 10px 0 0;
}

.p-top-element__a-img img {
  width: 70px;
}

@media (min-width: 900px) {
  .p-top-element__a-img {
    float: none;
    margin: 0;
  }

  .p-top-element__a-img img {
    position: absolute;
    width: 130px;
    left: -190px;
    top: -18px;
    z-index: 3;
  }
}

.p-top-element__a-text {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: #000a46;
  text-align: justify;
  padding: 0 0 14.5px 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .p-top-element__a-text {
    font-size: 1.3em;
    line-height: 1.5;
    letter-spacing: 0.01em;
    overflow: visible;
  }
}

/* ダイアグラム */
.p-top-element__diagram {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 25px;
}

.p-top-element__diagram-title {
  padding: 9px 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #ffffff;
  background-color: #1a2c78;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-element__diagram-title {
    font-size: 1.8em;
    line-height: 1.5;
    padding: 15px 0;
    margin-top: 30px;
  }
}

.p-top-element__diagram-box {
  border: 2px solid #1a2c78;
  color: #1a2c78;
  font-weight: bold;
  padding: 15px 10px 20px;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-element__diagram-box {
    padding: 25px 20px 25px;
    margin-bottom: 30px;
  }
}

.p-top-element__diagram-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.p-top-element__diagram-col {
  width: 48%;
}

.p-top-element__diagram-col-title {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #1a2c78;
  padding: 0 0 7px 0;
}

@media (min-width: 900px) {
  .p-top-element__diagram-col-title {
    font-size: 1.3em;
    line-height: 1.4;
    padding-bottom: 12px;
  }
}

.p-top-element__diagram-col-img img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
}

@media (min-width: 900px) {
  .p-top-element__diagram-col-img img {
    max-width: 240px;
  }
}

.p-top-element__diagram-batsu {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.p-top-element__diagram-batsu img {
  width: 40px;
  display: block;
}

@media (min-width: 900px) {
  .p-top-element__diagram-batsu {
    top: 175px;
  }

  .p-top-element__diagram-batsu img {
    width: 75px;
  }
}

.p-top-element__diagram-arrow {
  margin: 15px auto 0;
  position: relative;
  z-index: 2;
  text-align: center;
}

.p-top-element__diagram-arrow img {
  width: 35px;
  display: block;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .p-top-element__diagram-arrow {
    margin: 15px auto 0;
  }

  .p-top-element__diagram-arrow img {
    width: 45px;
  }
}

.p-top-element__diagram-detail {
  font-size: 18px;
  line-height: 1.4;
  margin: 10px auto 0;
  padding: 15px 0 5px;
  color: #1a2c78;
  font-weight: bold;
  text-align: center;
}

@media (min-width: 900px) {
  .p-top-element__diagram-detail {
    font-size: 2.1em;
    line-height: 1.5;
    margin: 15px auto 0;
  }
}

/* 図・キャプション */
.p-top-element__figure {
  text-align: center;
  margin-top: 25px;
}

.p-top-element__figure-img img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .p-top-element__figure-img img {
    width: 80%;
    margin: 20px auto 0;
  }
}

.p-top-element__figure-caption {
  padding: 8px 0 25px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: #222;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-element__figure-caption {
    font-size: 1.2em;
    padding-bottom: 20px;
  }
}

/* 比較セクション */
.p-top-element__comparison {
  margin: 30px auto 25px;
  text-align: center;
}

@media (min-width: 900px) {
  .p-top-element__comparison {
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
    margin: 45px auto 20px;
    width: 100%;
    max-width: 920px;
    gap: 50px;
  }
}

.p-top-element__comparison-item {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
}

@media (min-width: 900px) {
  .p-top-element__comparison-item {
    width: 410px;
    flex: 0 0 410px;
    padding: 16px 20px 20px;
  }
}

.p-top-element__comparison-item--before {
  background-image: url('../../images/principal/15.png');
  background-repeat: repeat;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
  margin-top: 20px;
}

@media (min-width: 900px) {
  .p-top-element__comparison-item--before {
    margin-top: 0;
  }
}

.p-top-element__comparison-item--after {
  background-color: #0a1a4d;
  border-left: 4px solid #cd0011;
  border-right: 4px solid #005897;
  box-shadow: -2px 0 6px rgba(205, 0, 17, 0.4), 2px 0 6px rgba(0, 88, 151, 0.4);
  color: #ffffff;
  margin-top: 20px;
  padding: 15px 12px;
  box-sizing: border-box;
}

.p-top-element__comparison-item--after::before,
.p-top-element__comparison-item--after::after {
  display: none !important;
}

@media (min-width: 900px) {
  .p-top-element__comparison-item--after {
    margin-top: 0;
    box-shadow: -4px 0 8px #ffff00, 4px 0 8px #ffff00;
    background-color: rgb(0, 88, 150);
    background-image: repeating-linear-gradient(135deg, transparent, transparent 4px, rgb(49, 91, 163) 4px, rgb(49, 91, 163) 8px);
    border: none;
    padding: 16px 20px 20px;
  }
}

.p-top-element__comparison-item--after .p-top-element__comparison-caption {
  font-size: 18px;
  line-height: 1.5;
  font-weight: bold;
  text-align: center;
  padding-top: 14px;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-element__comparison-item--after .p-top-element__comparison-caption {
    font-size: 1.35em;
    line-height: 1.6;
  }
}

.p-top-element__comparison-title {
  font-size: 17.5px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: bold;
  padding: 0 0 10px 0;
  margin: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .p-top-element__comparison-title {
    font-size: 1.5em;
    padding-bottom: 12px;
    height: 35px;
  }
}

.p-top-element__comparison-item--after .p-top-element__comparison-title {
  color: #ffffff;
}

.p-top-element__comparison-img-wrap {
  width: 100%;
}

.p-top-element__comparison-img {
  width: 100%;
  height: auto;
  display: block;
}

.p-top-element__comparison-caption {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  text-align: justify;
  padding-top: 14px;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .p-top-element__comparison-caption {
    font-size: 1.35em;
    font-weight: bold;
    text-align: center;
    line-height: 1.6;
  }
}

.p-top-element__comparison-arrow {
  margin: 10px auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.p-top-element__comparison-arrow img {
  width: 35px;
  display: block;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .p-top-element__comparison-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }

  .p-top-element__comparison-arrow img {
    width: 48px;
  }
}

/* セクション内 CTAエリア */
.p-top-element__cta {
  padding: 15px 10px 10px;
  text-align: center;
}

@media (min-width: 900px) {
  .p-top-element__cta {
    padding: 50px 0 20px;
  }
}

.p-top-element__cta-btn-wrap {
  width: 100%;
  max-width: 500px;
  height: 88px;
  margin: 0 auto;
  background-image: url("../../images/hero/12.png");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
}

@media (min-width: 900px) {
  .p-top-element__cta-btn-wrap {
    max-width: 600px;
    height: 100px;
    background-image: url("../../images/hero/22.png");
    background-size: contain;
    background-position: center;
  }
}

.p-top-element__cta-btn {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  height: auto;
  border: none !important;
  outline: none !important;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  background: linear-gradient(to right, #cd0011, #005897);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 900px) {
  .p-top-element__cta-btn {
    position: static;
    height: 100%;
    font-size: 2.1em;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.p-top-element__cta-btn span {
  font-size: 15px;
  display: block;
  margin-top: 4px;
}

@media (min-width: 900px) {
  .p-top-element__cta-btn span {
    font-size: 18px;
  }
}

.p-top-element__cta-note {
  font-size: 10px;
  margin-top: 15px;
  color: #333;
}

@media (min-width: 900px) {
  .p-top-element__cta-note {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* ==========================================================================
   合格の要素❸ (Support) 特有スタイル：3つの柱ダイアグラム
   ========================================================================== */
.p-top-element__pillar {
  width: 100%;
  max-width: 360px;
  height: 320px;
  margin: 30px auto 25px;
  position: relative;
}

@media (min-width: 900px) {
  .p-top-element__pillar {
    max-width: 380px;
    height: 330px;
    margin: 40px auto 30px;
  }
}

/* 中央のベース (27.png) */
.p-top-element__pillar-base {
  width: 229px;
  height: 198px;
  background-image: url("../../images/principal/27.png");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 50%;
  top: 160px;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.p-top-element__pillar-base-text {
  font-size: 31px;
  font-weight: bold;
  line-height: 1.25;
  color: #1a2c78;
  position: absolute;
  left: 0;
  top: 60%;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
  text-shadow: 0 0 3px #ffffff, 0 0 3px #ffffff, 0 0 3px #ffffff, 0 0 3px #ffffff;
  margin: 0;
}

/* 3つの円 (34.png) 共通 */
.p-top-element__pillar-item {
  width: 123px;
  height: 123px;
  background-image: url("../../images/principal/34.png");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  z-index: 2;
}

.p-top-element__pillar-item-text {
  font-size: 27px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #ffffff;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
  margin: 0;
}

/* 上：勉強計画 */
.p-top-element__pillar-item--plan {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* 左下：科目指導 */
.p-top-element__pillar-item--instruction {
  top: 190px;
  left: 5px;
}

@media (min-width: 900px) {
  .p-top-element__pillar-item--instruction {
    left: 10px;
  }
}

/* 右下：学習管理 */
.p-top-element__pillar-item--management {
  top: 190px;
  right: 5px;
}

@media (min-width: 900px) {
  .p-top-element__pillar-item--management {
    right: 10px;
  }
}

/* ==========================================================================
   12. リンクリスト (Links)
   ========================================================================== */
.p-top-links {
  width: 100%;
  background-color: #f7fdff;
  padding: 30px 15px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-links {
    width: 1000px;
    margin: 0 auto;
    padding: 50px 40px;
  }
}

.p-top-links__inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.p-top-links__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}

@media (min-width: 900px) {
  .p-top-links__list {
    gap: 25px 30px;
  }
}

.p-top-links__item {
  width: 100%;
}

@media (min-width: 600px) {
  .p-top-links__item {
    width: calc(50% - 15px);
  }
}

.p-top-links__link {
  display: block;
  transition: opacity 0.2s;
}

.p-top-links__link:hover {
  opacity: 0.8;
}

.p-top-links__link img {
  width: 100%;
  height: auto;
  display: block;
}


/* ==========================================================================
   13. 校舎案内 (School)
   ========================================================================== */
.p-top-school {
  width: 100%;
  background-color: #ffffff;
  padding: 40px 15px 30px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-school {
    width: 1000px;
    margin: 0 auto;
    padding: 60px 50px 50px;
  }
}

.p-top-school__inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.p-top-school__heading {
  font-size: 24px;
  font-weight: bold;
  color: #222222;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-school__heading {
    font-size: 28px;
  }
}

.p-top-school__underline {
  display: block;
  width: 80px;
  margin: 15px auto 30px;
}

.p-top-school__map iframe {
  width: 100%;
  display: block;
}

.p-top-school__info {
  margin: 25px auto 30px;
  text-align: left;
}

.p-top-school__info-title {
  font-size: 18px;
  font-weight: bold;
  color: #222222;
  border-bottom: 1px solid #222222;
  padding-bottom: 6px;
  margin: 0 0 10px 0;
}

.p-top-school__info-text {
  font-size: 15px;
  line-height: 1.6;
  color: #222222;
  margin: 0;
}

/* 道順リスト */
.p-top-school__route {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  text-align: left;
}

@media (min-width: 900px) {
  .p-top-school__route {
    gap: 20px 2%;
  }
}

.p-top-school__route-item {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .p-top-school__route-item {
    width: 48%;
  }
}

@media (min-width: 900px) {
  .p-top-school__route-item {
    width: 32%;
  }
}

.p-top-school__route-img {
  width: 100%;
  height: auto;
  display: block;
}

.p-top-school__route-text {
  font-size: 13px;
  line-height: 1.5;
  color: #222222;
  margin: 8px 0 0 0;
}

/* 校舎詳細ボタン */
.p-top-school__btn-wrap {
  margin: 35px 0 10px;
}

.p-top-school__btn {
  display: block;
  margin: 0 auto;
  width: 280px;
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  text-align: center;
  background-color: #0058a8;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.p-top-school__btn:hover {
  opacity: 0.85;
}


/* ==========================================================================
   14. 関連メディア・書籍 (Media)
   ========================================================================== */
.p-top-media {
  width: 100%;
  background-color: #f5f5f5;
  padding: 40px 15px 40px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .p-top-media {
    width: 1000px;
    margin: 0 auto;
    padding: 60px 40px 60px;
  }
}

.p-top-media__inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.p-top-media__heading {
  font-size: 24px;
  font-weight: bold;
  color: #222222;
  margin: 0;
}

@media (min-width: 900px) {
  .p-top-media__heading {
    font-size: 28px;
  }
}

.p-top-media__underline {
  display: block;
  width: 80px;
  margin: 15px auto 40px;
}

.p-top-media__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px 20px;
}

.p-top-media__card {
  width: 100%;
  background-color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .p-top-media__card {
    width: calc(50% - 15px);
  }
}

.p-top-media__card-head {
  min-height: 55px;
}

.p-top-media__card-title {
  font-size: 16px;
  line-height: 1.4;
  color: #222222;
  border-left: 8px solid #0058A8;
  border-bottom: 1px solid #0058A8;
  padding: 0 0 4px 10px;
  margin: 0;
}

.p-top-media__card-title--gakken {
  border-left-color: #009944;
  border-bottom-color: #009944;
}

.p-top-media__card-img-wrap {
  margin: 15px 0;
  text-align: center;
}

.p-top-media__card-img-wrap img {
  max-width: 100%;
  max-height: 200px;
  height: auto;
  display: inline-block;
}

.p-top-media__card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #333333;
  margin: 0 0 20px 0;
  flex-grow: 1;
  /* 下部のボタンを綺麗に揃える */
}

.p-top-media__card-btn-wrap {
  margin-top: auto;
}

.p-top-media__card-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  padding: 10px 0;
  background-color: #0058A8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin: 0 auto;
  transition: opacity 0.2s;
}

.p-top-media__card-btn:hover {
  opacity: 0.85;
}

.p-top-media__card-btn--gakken {
  background-color: #009944;
}

/* ポートフォリオ画像 */
.p-top-media__portfolio {
  margin-top: 20px;
}

.p-top-media__portfolio img {
  width: 100%;
  height: auto;
  display: block;
}

/* ポートフォリオ画像 */
.p-top-media__award {
  margin-top: 20px;
}

.p-top-media__award img {
  width: 100%;
  height: auto;
  display: block;
}