/* ==========================================================================
   TOPページ専用スタイル（/index.php のみが読み込む）
   共通レイアウト（top-renewal.css）・右固定カラムには影響させないこと。
   すべて .top-page 配下にスコープする。
   ========================================================================== */

/* --- 共通セクション --- */
.top-page .tp-section {
  padding: 30px 20px;
  border-bottom: 1px solid #ebebeb;
}

.top-page .tp-section-lead {
  margin: -6px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.top-page .tp-br-pc {
  display: none;
}

.top-page .tp-br-sp {
  display: inline;
}

/* --- ボタン --- */
.top-page .tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
}

/* 申込フォームへのCTA専用のオレンジ */
.top-page .tp-btn-primary {
  color: var(--btn-order-text);
  background: var(--btn-order-bg);
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.25);
}

/* 申込以外のボタンは白で統一 */
.top-page .tp-btn-secondary {
  color: var(--btn-plain-text);
  border: 1px solid var(--btn-plain-border);
  background: var(--btn-plain-bg);
}

.top-page .tp-btn-large {
  min-height: 54px;
  padding: 0 34px;
  font-size: 1rem;
}

.top-page .tp-btn:focus-visible,
.top-page a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* --- 1. MV --- */
.top-page .tp-hero {
  padding: 20px 20px 28px;
}

.top-page .tp-hero-inner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(45, 52, 54, 0.1);
}

.top-page .tp-hero-visual {
  position: absolute;
  inset: 0;
}

.top-page .tp-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.top-page .tp-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 26%, rgba(255, 255, 255, 0.46) 45%, rgba(255, 255, 255, 0.1) 62%, rgba(255, 255, 255, 0) 76%);
}

.top-page .tp-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 70%;
  min-height: 278px;
  padding: 0 0 0 18px;
  text-align: left;
}

.top-page .tp-hero-title {
  position: relative;
  top: -6px;
  margin: 0 0 8px;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.45;
}

.top-page .tp-hero-lead {
  position: relative;
  top: -6px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

.top-page .tp-hero-actions {
  position: relative;
  top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 7px;
  width: 100%;
}

.top-page .tp-hero-actions .tp-btn {
  min-height: 42px;
  padding: 0 8px;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* --- 2. 合宿免許を探す --- */
.top-page .tp-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.top-page .tp-search-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(45, 52, 54, 0.04);
  text-align: center;
}

.top-page .tp-search-icon {
  font-size: 1.7rem;
}

.top-page .tp-search-card strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.top-page .tp-search-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

/* --- 3. NEXTが大切にしていること --- */
.top-page .tp-brand {
  text-align: center;
}

.top-page .tp-brand h2 {
  margin: 0;
}

.top-page .tp-brand-kicker {
  margin: 0 0 8px;
  color: #1f7a8c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.top-page .tp-brand-road {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin: 26px auto 22px;
}

.top-page .tp-brand-road-line {
  position: absolute;
  top: 26px;
  right: 14%;
  left: 14%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--yellow) 50%, var(--pink));
}

.top-page .tp-brand-stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.top-page .tp-brand-stop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(45, 52, 54, 0.1);
}

.top-page .tp-brand-stop-icon--mint {
  background: var(--mint);
}

.top-page .tp-brand-stop-icon--yellow {
  background: var(--yellow);
}

.top-page .tp-brand-stop-icon--pink {
  background: var(--pink);
}

.top-page .tp-brand-stop strong {
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.5;
}

.top-page .tp-brand-core {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: 12px;
  background: rgba(255, 183, 197, 0.16);
}

.top-page .tp-brand-core-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.top-page .tp-brand-core-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.top-page .tp-brand-support {
  margin: 18px auto 0;
  font-size: 0.86rem;
  line-height: 1.9;
}

@media (max-width: 390px) {
  .top-page .tp-brand-road {
    margin-top: 22px;
  }

  .top-page .tp-brand-stop-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .top-page .tp-brand-stop strong {
    font-size: 0.74rem;
  }
}

/* --- 4. こどもミュージアムプロジェクト --- */
.top-page .tp-kmp-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef8fa;
}

.top-page .tp-kmp-visual {
  position: absolute;
  inset: 0;
}

.top-page .tp-kmp-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 2% center;
}

.top-page .tp-kmp-project-logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 52px;
  height: 52px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(45, 52, 54, 0.16);
}

.top-page .tp-kmp-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(238, 248, 250, 0.98) 0%, rgba(238, 248, 250, 0.94) 50%, rgba(238, 248, 250, 0.62) 72%, rgba(238, 248, 250, 0.06) 100%);
}

.top-page .tp-kmp-copy {
  position: relative;
  z-index: 1;
  margin-left: 38%;
  min-height: 326px;
  padding: 24px 14px 24px 0;
}

.top-page .tp-kmp-tag {
  margin: 0 0 8px;
  color: #1f7a8c;
  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1.55;
}

.top-page .tp-kmp-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.48;
}

.top-page .tp-kmp-text {
  margin: 8px 0 0;
  font-size: 0.74rem;
  line-height: 1.72;
}

@media (max-width: 767px) {
  .top-page .tp-kmp-visual {
    bottom: auto;
    height: 210px;
  }

  .top-page .tp-kmp-inner::after {
    bottom: auto;
    height: 210px;
    background: linear-gradient(270deg, rgba(238, 248, 250, 0.92) 0%, rgba(238, 248, 250, 0.8) 26%, rgba(238, 248, 250, 0.44) 45%, rgba(238, 248, 250, 0.1) 62%, rgba(238, 248, 250, 0) 76%);
  }

  .top-page .tp-kmp-copy {
    margin-left: 0;
    min-height: 0;
    padding: 0;
  }

  .top-page .tp-kmp-heading {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 210px;
    margin-left: 40%;
    padding: 18px 14px 26px 0;
  }

  .top-page .tp-kmp-body {
    position: relative;
    z-index: 1;
    padding: 18px 16px 20px;
    border-top: 1px solid rgba(31, 122, 140, 0.12);
    background: #eef8fa;
  }

  .top-page .tp-kmp-body .tp-kmp-text {
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.78;
  }

  .top-page .tp-kmp-body .tp-kmp-text:first-child {
    margin-top: 0;
  }
}

/* --- 5. 体験レビュー --- */
.top-page .tp-review-list {
  display: grid;
  gap: 12px;
}

.top-page .tp-review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(45, 52, 54, 0.04);
}

.top-page .tp-review-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.9;
}

.top-page .tp-review-school {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  font-weight: 700;
}

.top-page .tp-review-school a {
  color: var(--orange);
}

.top-page .tp-review-school a::after {
  content: " ›";
}

/* --- 6. 教習所ピックアップ --- */
.top-page .tp-pickup-list {
  display: grid;
  gap: 14px;
}

.top-page .tp-pickup-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(45, 52, 54, 0.04);
}

.top-page .tp-pickup-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 330 / 220;
  object-fit: cover;
}

.top-page .tp-pickup-info {
  padding: 16px;
}

.top-page .tp-pickup-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.5;
}

.top-page .tp-pickup-info h3 a {
  color: inherit;
}

.top-page .tp-pickup-area {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.top-page .tp-pickup-features {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.top-page .tp-pickup-features li {
  position: relative;
  margin-top: 4px;
  padding-left: 15px;
  line-height: 1.65;
}

.top-page .tp-pickup-features li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.top-page .tp-pickup-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

/* --- 7. 条件別検索 --- */
.top-page .tp-conditions-group {
  margin-top: 26px;
}

.top-page .tp-conditions-group:first-of-type {
  margin-top: 0;
}

.top-page .tp-conditions-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 900;
}

.top-page .tp-conditions-more {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.top-page .tp-conditions-more a {
  color: var(--orange);
}

/* --- 8. 合宿免許を知る --- */
.top-page .tp-learn-list {
  display: grid;
  gap: 10px;
}

.top-page .tp-learn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 12px 40px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(45, 52, 54, 0.04);
}

.top-page .tp-learn-item::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--muted);
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  transform: translateY(-50%);
}

.top-page .tp-learn-item strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.top-page .tp-learn-item small {
  color: var(--muted);
  font-size: 0.75rem;
}

/* --- 9. 最終CTA --- */
.top-page .tp-final-cta {
  border-bottom: 0;
}

.top-page .tp-final-cta-card {
  padding: 30px 20px;
  border: 1px solid rgba(255, 183, 197, 0.5);
  border-radius: 14px;
  background: rgba(255, 183, 197, 0.14);
  text-align: center;
}

.top-page .tp-final-cta-card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.65;
}

.top-page .tp-final-cta-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ==========================================================================
   タブレット以上（メインカラムが760pxで固定される帯域）
   ========================================================================== */
@media (min-width: 768px) {
  .top-page .tp-br-pc {
    display: inline;
  }

  .top-page .tp-br-sp {
    display: none;
  }

  /* MV: 写真の左側余白にコピーを重ねる */
  .top-page .tp-hero-visual img {
    object-position: right center;
  }

  .top-page .tp-hero-inner::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 32%, rgba(255, 255, 255, 0) 62%);
  }

  .top-page .tp-hero-copy {
    width: 58%;
    min-height: 420px;
    padding: 0 0 0 36px;
  }

  .top-page .tp-hero-title {
    top: auto;
    font-size: 2rem;
    line-height: 1.5;
  }

  .top-page .tp-hero-lead {
    top: auto;
    font-size: 0.95rem;
  }

  .top-page .tp-hero-actions {
    top: auto;
    display: flex;
    gap: 12px;
  }

  .top-page .tp-hero-actions .tp-btn {
    min-height: 48px;
    padding: 0 20px;
    font-size: 0.92rem;
  }

  /* 検索4カードを1行に */
  .top-page .tp-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* KMP: 画像右側の余白にテキストを配置 */
  .top-page .tp-kmp-main-image {
    object-position: left center;
  }

  .top-page .tp-kmp-project-logo {
    right: 18px;
    bottom: 18px;
    width: 72px;
    height: 72px;
  }

  .top-page .tp-kmp-inner::after {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.62) 38%, rgba(255, 255, 255, 0) 60%);
  }

  .top-page .tp-kmp-copy {
    margin-left: 42%;
    min-height: 0;
    padding: 34px 30px 34px 0;
  }

  .top-page .tp-kmp-tag {
    margin-bottom: 10px;
    font-size: 0.78rem;
    line-height: normal;
  }

  .top-page .tp-kmp-title {
    margin-bottom: 12px;
    font-size: 1.05rem;
    letter-spacing: -0.035em;
    line-height: 1.55;
    white-space: nowrap;
  }

  .top-page .tp-kmp-title-break {
    display: none;
  }

  .top-page .tp-kmp-text {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.9;
  }

  .top-page .tp-kmp-body .tp-kmp-text:last-child {
    width: calc(100% - 90px);
  }

  /* レビューカードは読みやすい縦並び */
  .top-page .tp-review-list {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  /* ピックアップ: 画像＋情報の横並び */
  .top-page .tp-pickup-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .top-page .tp-pickup-visual img {
    height: 100%;
    aspect-ratio: auto;
  }

  .top-page .tp-pickup-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }

  /* 合宿免許を知るを2列に */
  .top-page .tp-learn-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-page .tp-final-cta-card {
    padding: 38px 28px;
  }
}

/* ==========================================================================
   PC（2カラムレイアウト帯域）: 左右余白を他セクションと揃える
   ========================================================================== */
@media (min-width: 980px) {
  .top-page .tp-section {
    padding-right: 32px;
    padding-left: 32px;
  }
}

/* ==========================================================================
   小さいSP
   ========================================================================== */
@media (max-width: 390px) {
  .top-page .tp-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .top-page .tp-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .top-page .tp-hero-title {
    font-size: 1.34rem;
  }

  .top-page .tp-hero-copy {
    width: 72%;
    min-height: 270px;
    padding-left: 14px;
  }

  .top-page .tp-kmp-visual,
  .top-page .tp-kmp-inner::after {
    height: 204px;
  }

  .top-page .tp-kmp-heading {
    min-height: 204px;
    margin-left: 38%;
    padding: 16px 12px 24px 0;
  }

  .top-page .tp-search-grid {
    gap: 8px;
  }

  .top-page .tp-search-card {
    min-height: 108px;
  }
}
