/*
Theme Name: 高野山高校 LPtop（ドメイントップ）
Theme URI: https://koyasan-hs.com/
Author: Koyasan High School
Author URI: https://www.koyasan-h.ed.jp/
Description: 高野山高校 ドメイントップページ。「寺院後継者」「進路探求」「宗教科」の3つのLPへ、興味に合わせて誘導するゲートウェイページ。既存LP（koyasanテーマ）とデザイントーンを統一。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: lptop
Tags: landing-page, japanese, buddhist, education
*/

/* ============================================================
   CSS Variables / Design Tokens
   （既存LP「koyasan」テーマと共通のトークンに統一）
   ============================================================ */
:root {
  /* ベースカラー（ベージュ） */
  --color-base-1: #FBF9F4;
  --color-base-2: #F4EFE6;
  --color-base-3: #FDFBF7;

  /* メインカラー（紺） */
  --color-main-1: #1E293B;
  --color-main-2: #1A2E40;
  --color-main-3: #2A3439;

  /* アクセントカラー（金） */
  --color-accent-1: #D4AF37;
  --color-accent-2: #C5A059;
  --color-accent-3: #E5C158;

  /* テキスト */
  --color-text-primary: #1E293B;
  --color-text-secondary: #4A5568;
  --color-text-light: #718096;
  --color-white: #FFFFFF;

  /* フォント */
  --font-mincho: "Noto Serif JP", "BIZ UDP明朝", "ヒラギノ明朝 ProN W3", "MS P明朝", serif;
  --font-gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;

  /* 余白 */
  --spacing-outer-normal: 96px;
  --spacing-outer-dense: 128px;
  --spacing-inner: 32px;

  /* ブレイクポイント */
  --bp-tablet: 1024px;
  --bp-sp: 768px;

  /* シャドウ */
  --shadow-card: 0 2px 12px rgba(30, 41, 59, 0.08), 0 1px 4px rgba(30, 41, 59, 0.04);
  --shadow-card-hover: 0 8px 32px rgba(30, 41, 59, 0.14), 0 2px 8px rgba(30, 41, 59, 0.08);

  /* ボーダーラジアス */
  --radius-card: 8px;
  --radius-btn: 6px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-gothic);
  color: var(--color-text-primary);
  background-color: var(--color-base-1);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 40px;
}

.section {
  padding-block: var(--spacing-outer-normal);
}

.section--dense {
  padding-block: var(--spacing-outer-dense);
}

.section--odd { background-color: var(--color-base-1); }

/* ============================================================
   Section Heading
   ============================================================ */
.section-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-main-1);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-3));
  margin-top: 16px;
}

.section-header .section-title::after {
  margin-inline: auto;
}

.section-lead {
  font-family: var(--font-gothic);
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-lead {
  margin-inline: auto;
}

/* ============================================================
   Header / Navigation（既存LPと同一デザイン）
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-main-1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-block: 16px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-logo span {
  color: var(--color-accent-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-gothic);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--color-accent-3);
}

@media (min-width: 1025px) and (max-width: 1250px) {
  .site-logo { font-size: calc(1.05rem - 2px); }
  .site-nav a { font-size: calc(0.85rem - 2px); }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   ① Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--color-main-1);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(42, 52, 57, 0.8) 0%, transparent 50%);
  z-index: 1;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-accent-1) 0px,
    var(--color-accent-1) 1px,
    transparent 1px,
    transparent 20px
  );
  z-index: 1;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.28;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 720px;
}

.hero__title {
  font-family: var(--font-mincho);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero__lead {
  font-family: var(--font-gothic);
  font-size: 1.02rem;
  color: rgba(255,255,255,0.78);
  line-height: 2;
  margin-bottom: 36px;
  max-width: 560px;
}

/* ============================================================
   ② About Section - 高野山高校について
   ============================================================ */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.about-stat {
  background: var(--color-white);
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.about-stat__title {
  font-family: var(--font-mincho);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-main-1);
  margin-bottom: 10px;
}

.about-stat__text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

/* ============================================================
   ③ Courses Section - 3つの学びの道（CTAカード）
   ============================================================ */
.cta-section {
  background: var(--color-main-1);
  padding-block: var(--spacing-outer-dense);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.1), transparent 70%);
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.06), transparent 70%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .section-title { color: var(--color-white); }

.cta-section .section-title::after {
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-3));
}

.cta-section .section-lead { color: rgba(255,255,255,0.75); }

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}

.cta-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-card);
  padding: 0;
  text-align: center;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(9, 18, 34, 0.12);
  transition: background 0.2s, border-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 18, 34, 0.24), rgba(9, 18, 34, 0.82));
  z-index: 1;
}

.cta-card:hover,
.cta-card:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212, 175, 55, 0.5);
  transform: scale(1.02);
  box-shadow: 0 18px 36px rgba(9, 18, 34, 0.2);
}

.cta-card__media {
  grid-area: 1 / 1;
  z-index: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.cta-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cta-card__body {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 32px 28px;
}

.cta-card__tag {
  font-family: var(--font-gothic);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent-3);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
}

.cta-card__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.45;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.42), 0 6px 18px rgba(0, 0, 0, 0.32);
  margin-bottom: 8px;
}

.cta-card__link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-main-1);
  background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
  padding: 8px 18px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.cta-note {
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 32px;
}

/* ============================================================
   ④ Document Request Section - 資料請求フォーム
   （既存LP「koyasan」テーマの資料請求フォームデザインを踏襲）
   ============================================================ */
#document-request {
  scroll-margin-top: 96px;
}

.cta-form {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.cta-form .wpcf7-form {
  display: block;
}

.cta-form .form-row {
  border-top: 1px solid #e5e5e5;
}

.cta-form .form-row:last-of-type {
  border-bottom: 1px solid #e5e5e5;
}

/* ラベル｜入力欄の2カラム（functions.php の wpcf7_form_elements フィルタで
   生成される .form-row__field と組み合わせて表組み風に見せる） */
.cta-form .form-row > p:first-child {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.cta-form .form-row > p:first-child > br {
  display: none;
}

.cta-form .form-row label {
  flex: 0 0 168px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #f4f4f4;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #333;
}

.cta-form .form-row__field {
  flex: 1 1 auto;
  display: block;
  padding: 16px 20px;
  background: var(--color-white);
}

/* お問い合わせ項目のように補足文・textareaがラベル無しで続く行 */
.cta-form .form-row > p:not(:first-child) {
  margin: 0;
  padding: 0 20px 16px 188px;
  background: var(--color-white);
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  color: #888;
}

.cta-form .form-row__field .note,
.cta-form .form-row > p:not(:first-child) {
  font-size: 0.78rem;
  color: #999;
}

/* お問い合わせ項目：チェックボックス〜テキスト入力欄までの縦幅いっぱいに
   ラベルを伸ばし、その中央に「お問い合わせ項目」を配置する */
.cta-form .form-row:has([data-name="inquiry-type"]) {
  display: grid;
  grid-template-columns: 168px 1fr;
}

.cta-form .form-row:has([data-name="inquiry-type"]) > p:first-child {
  display: contents;
}

.cta-form .form-row:has([data-name="inquiry-type"]) label {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: stretch;
  justify-content: center;
  text-align: center;
}

.cta-form .form-row:has([data-name="inquiry-type"]) .form-row__field,
.cta-form .form-row:has([data-name="inquiry-type"]) > p:not(:first-child) {
  grid-column: 2;
  padding-left: 20px;
}

.cta-form .wpcf7-form-control {
  width: 100%;
  font-family: var(--font-gothic);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  background: var(--color-white);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 12px;
  transition: border-color 0.2s ease;
}

.cta-form .wpcf7-form-control.short {
  width: 90px;
}

.cta-form .wpcf7-form-control::placeholder {
  color: #aaa;
}

.cta-form .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--color-accent-2);
}

.cta-form textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

/* チェックボックス・ラジオボタン：枠なし、丸/四角＋テキストのみ */
.cta-form [data-name="course"] .wpcf7-form-control,
.cta-form [data-name="inquiry-type"] .wpcf7-form-control {
  display: grid;
  gap: 10px 20px;
  width: auto;
  border: none;
  padding: 0;
  background: none;
}

.cta-form [data-name="course"] .wpcf7-form-control {
  grid-template-columns: repeat(2, 1fr);
}

.cta-form [data-name="inquiry-type"] .wpcf7-form-control {
  grid-template-columns: repeat(3, 1fr);
}

.cta-form .wpcf7-list-item {
  margin: 0;
}

.cta-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 0;
  background: none;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-text-primary);
}

.cta-form .wpcf7-list-item input[type="checkbox"],
.cta-form .wpcf7-list-item input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent-2);
  flex: none;
}

.cta-form select.wpcf7-form-control {
  background: var(--color-white);
  color: var(--color-text-primary);
}

.cta-form .wpcf7-submit-wrap,
.cta-form .wpcf7-form > p:last-of-type {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 20px;
}

/* JSが挿入するスピナーが中央揃えの基準をずらさないよう、
   通常のフローから外して送信ボタンだけを中央に固定する */
.cta-form .wpcf7-spinner {
  position: absolute;
}

.cta-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 100%);
  color: var(--color-main-1);
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

.cta-form .wpcf7-not-valid-tip {
  color: #d64545;
  font-size: 0.8rem;
  margin-top: 4px;
}

.cta-form .wpcf7-response-output {
  margin: 16px 20px 20px !important;
  color: var(--color-text-primary);
  border-radius: var(--radius-btn);
}

@media (max-width: 768px) {
  :root {
    --spacing-outer-normal: 64px;
    --spacing-outer-dense: 80px;
  }

  html { font-size: 14px; }

  .container { padding-inline: 20px; }

  .hero { min-height: 82vh; padding-block: 60px 80px; }

  .hero__title { font-size: 1.9rem; }

  .site-footer .container { grid-template-columns: 1fr; }

  .cta-form .form-row > p:first-child {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-form .form-row label {
    flex: none;
    width: 100%;
    white-space: nowrap;
  }

  .cta-form .form-row:has([data-name="inquiry-type"]) {
    display: block;
  }

  .cta-form .form-row:has([data-name="inquiry-type"]) label {
    grid-row: auto;
    grid-column: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .cta-form .form-row:has([data-name="inquiry-type"]) .form-row__field,
  .cta-form .form-row:has([data-name="inquiry-type"]) > p:not(:first-child) {
    grid-column: auto;
    padding-left: 20px;
  }

  .cta-form [data-name="course"] .wpcf7-form-control,
  .cta-form [data-name="inquiry-type"] .wpcf7-form-control {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   追従CTA（PC: 右サイド固定 / SP: 画面下部固定）
   既存LPと同一デザイン
   ============================================================ */
.sticky-cta {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 10px 10px 10px;
  background: #141c25;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(5, 10, 18, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-cta:hover,
.sticky-cta:focus-within {
  transform: translate(-6px, -50%);
  box-shadow: 0 22px 40px rgba(5, 10, 18, 0.4);
}

.sticky-cta__icon-frame {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding: 12px;
  transform: translate(-50%, -50%);
}

.sticky-cta__icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  border: none !important;
  outline: none !important;
}

.sticky-cta__btn {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, var(--color-accent-1), var(--color-accent-2));
  color: var(--color-main-1);
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 20px 20px;
  border-radius: 8px;
  border: 1px solid rgba(229, 193, 88, 0.8);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: block;
}

.sticky-cta__btn--sub {
  background: linear-gradient(180deg, #f2e8ca, #d9c287);
}

.sticky-cta__btn:hover {
  background: linear-gradient(180deg, #e5c158, #d4af37);
  border-color: rgba(255, 228, 145, 0.95);
}

.sticky-cta__btn--sub:hover {
  background: linear-gradient(180deg, #f6edd5, #e2cea0);
  border-color: rgba(255, 236, 179, 0.95);
}

/* ============================================================
   Footer（既存LPと同一デザイン）
   ============================================================ */
.site-footer {
  background: #141C25;
  padding-block: 48px 32px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.85fr 1.35fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand__logo {
  font-family: var(--font-mincho);
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand__text {
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
}

.footer-nav__title {
  font-family: var(--font-gothic);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav ul a {
  font-family: var(--font-gothic);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-nav ul a:hover {
  color: var(--color-accent-3);
}

.footer-map { min-width: 0; }

.footer-map__frame {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.footer-map__frame iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.12) contrast(1.02);
}

.footer-map__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.footer-map__link:hover { color: var(--color-accent-3); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-gothic);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.35s; }

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive - Tablet (~1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --spacing-outer-normal: 80px;
    --spacing-outer-dense: 100px;
  }

  .container { padding-inline: 32px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-main-1);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
    border-top: 1px solid rgba(212,175,55,0.2);
  }

  .site-nav.is-open { display: flex; }

  .hamburger { display: flex; }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .cta-cards {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map { grid-column: 1 / -1; }

  .pc-only { display: none; }

  /* 追従CTA → 画面下部固定（タブレットもスマホと同様に） */
  .sticky-cta {
    position: fixed;
    right: 0;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 18px 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-radius: 18px 18px 0 0;
  }

  .sticky-cta:hover,
  .sticky-cta:focus-within {
    transform: translateX(-6px);
  }

  .sticky-cta__icon-frame {
    top: 0;
    left: 13px;
    width: 70px;
    height: 70px;
    padding: 8px;
    transform: translateY(0%);
  }

  .sticky-cta__btn {
    writing-mode: horizontal-tb;
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 500px) {
  .sticky-cta__icon-frame {
    top: 0;
    left: 8px;
    width: 65px;
    height: 65px;
    padding: 8px;
    transform: translateY(4%);
  }
}

@media (max-width: 400px) {
  .sticky-cta__icon-frame {
    top: 0;
    left: 10px;
    width: 50px;
    height: 50px;
    padding: 8px;
    transform: translateY(32%);
  }
}
