/* --- RESET & BASIC SETUP --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

*:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
*:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* タップハイライト・ユーザー編集：不要ベンダープレフィックスを削除（Phase 4 #49） */

:root {
  --brand-navy: #0f172a;
  --brand-gold: #B89A6C;
  --brand-gold-hover: #A38558;
  --warm-beige: #f9f8f4;
  --pure-white: #ffffff;
  --text-main: #2c2c2c;
  --text-muted: #555555;
  --accent-blue: #0066cc;
  --hero-blue: #60a5fa;
  /* Brand Colors */
  --color-primary: #3282D2;
  --color-accent: #B89A6C;
  /* Champagne Bronze */
  --color-accent-hover: #A38558;

  --color-bg-white: #FFFFFF;
  --color-bg-midnight: #0F172A;

  /* Utility Colors */
  --color-border: #E2E8F0;
  --color-text-muted: #94A3B8;

  /* Phase 3 追加変数 */
  --color-border-subtle: #eee;    /* 細いボーダー（CSS内15+箇所） */
  --color-border-medium: #ddd;    /* 中程度のボーダー・区切り線 */
  --color-text-secondary: #666;   /* サブテキスト・注記 */
  --color-bg-subtle: #f9f9f9;     /* 薄いグレー背景 */
  --color-bg-highlight: #eaf4ff;  /* Air Luggage強調列の背景 */

  /* Luxury Texture (Organic Marble/Washi SVG Fractal Noise) */
  --bg-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='texture'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' result='noise' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.35 0' in='noise' result='coloredNoise'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23texture)'/%3E%3C/svg%3E");

  /* Spacing Scale */
  --g1: 8px;
  --g2: 16px;
  --g3: 24px;
  --g4: 32px;
  --g5: 40px;
  --g6: 48px;
  --g8: 64px;
  --g10: 80px;
  --g15: 120px;

  /* Layout */
  --container-max: 1120px;
  --container-fluid: 92%;
  --header-height: 80px;

  /* Motion */
  --transition-base: all 0.3s ease;
  --transition-luxury: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

  /* Phase 4 Font Size Scale */
  --fs-xs:   0.8rem;   /* 極小：注記・バッジ・フッター */
  --fs-sm:   0.85rem;  /* 小：サブテキスト・ラベル */
  --fs-md:   0.9rem;   /* 中小：テーブル・UI補助 */
  --fs-base: 0.95rem;  /* 基本：本文・カード */
  --fs-lg:   1.05rem;  /* 中：やや強調テキスト */
  --fs-xl:   1.1rem;   /* 中大：リード文 */
  --fs-2xl:  1.3rem;   /* 大：リード見出し */
  --fs-3xl:  1.5rem;   /* 特大：h3・計算式 */
  --fs-4xl:  2rem;     /* 見出し：h2・スライド */
  --fs-5xl:  2.4rem;   /* ヒーロータイトル */
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* 固定ヘッダー分のオフセット */
}

body {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  color: var(--text-main);
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0;
  background-color: var(--warm-beige);
  padding-top: var(--header-height);
  padding-bottom: 100px;
  /* スマホ用: 固定フッター分の余白 */
  position: relative;
  height: 100%;
}

/* --- UTILITY CLASSES --- */
.sp-only {
  display: none;
}

.sp-br {
  display: none;
}

.no-balance {
  text-wrap: wrap !important;
}

.section-beige {
  background-color: var(--warm-beige);
}

.bg-white {
  background-color: var(--pure-white);
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ゴシック体適用クラス */
.font-gothic,
.btn,
.btn_header,
.mobile-cta-btn,
.num-highlight,
.comparison-table,
.step-num,
.road-year,
.calc-formula,
.calc-part,
.calc-part strong,
.calc-operator,
.calc-result,
.calc-result strong,
.sys-badge,
.sp-only-calc {
  font-family: "Noto Sans JP", sans-serif !important;
}

/* H2 Design */
h2 {
  font-size: 2rem;
  color: var(--brand-navy);
  text-align: center;
  margin-bottom: 60px;
}

h2 .text-prime {
  color: var(--accent-blue);
}

/* H3, H4 Design */
h3,
h4 {
  font-size: 1.5rem;
  color: var(--brand-navy);
  margin-bottom: 25px;
  border-bottom: 3px solid var(--accent-blue);
  padding-bottom: 8px;
  display: inline-block;
}

.text-prime {
  color: var(--accent-blue);
  font-weight: bold;
}

.text-gold {
  color: var(--brand-gold);
}

.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: bold;
}

.h3-center-wrapper {
  text-align: center;
  margin-bottom: 30px;
  display: block;
  width: 100%;
}

/* --- LAYOUT UTILS --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.section {
  padding: 100px 0;
}

/* --- HEADER (Sticky) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--pure-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logo img {
  height: 40px;
  /* padding分少し小さくしてバランス調整 */
  width: auto;
  display: block;
}

.header-cta-group {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-btn {
  padding: 10px 20px;
  font-size: var(--fs-sm);
  height: auto;
  min-width: 160px;
  text-align: center;
}

/* --- GLOBAL NAVIGATION (#41 Phase 6) --- */
.header-nav {
  display: flex;
  align-items: center;
}

.header-nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.header-nav-link {
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brand-navy);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
}

/* --- ハンバーガーボタン（SP専用） --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 開いた状態：× 形 */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- MOBILE FIXED CTA --- */
.mobile-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--color-border-medium);
  padding: 15px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 2000;
}

.mobile-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-cta-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  font-size: var(--fs-base);
  font-family: "Noto Sans JP", sans-serif;
}

/* --- BUTTONS --- */
.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn_header {
  display: inline-block;
  padding: 16px 35px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
}

.btn {
  display: inline-block;
  padding: 20px 90px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}

.btn-gold {
  background: var(--brand-gold);
  color: white;
  border: 1px solid var(--brand-gold);
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
  background-color: var(--brand-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(184, 154, 108, 0.3);
}

.btn-sub {
  background: white;
  color: var(--brand-navy);
  border: 1px solid var(--brand-navy);
}

.btn-sub:hover {
  background: var(--brand-navy);
  color: white;
}

/* --- HERO (KV) --- */
.hero-wrapper {
  position: relative;
  width: 100%;
}

.hero-visual {
  /* #13 Phase 5: WebP対応（フォールバック→image-set()の順でカスケード） */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/Airport_to_hotel.jpeg");
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    image-set(
      url("../img/Airport_to_hotel.webp") type("image/webp"),
      url("../img/Airport_to_hotel.jpeg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
  background-attachment: fixed; /* parallax */
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-title-accent {
  color: var(--brand-gold);
}

.hero-content {
  max-width: 1100px;
  padding: 0 20px;
  width: 100%;
}

.hero-tagline {
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
  display: block;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 40px;
  display: inline-block;
  border-bottom: 1px solid var(--brand-gold);
  padding-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.hero-lead-text {
  font-size: 1.6rem;
  line-height: 2.2;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.hero-highlight {
  color: var(--hero-blue);
  font-weight: 700;
}

/* --- HERO TEXT AREA --- */
.hero-text-area {
  background-color: var(--pure-white);
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border-subtle);
}

.hero-text-area::after {
  content: "";
  display: block;
  width: 1px;
  height: 60px;
  background: var(--brand-gold);
  margin: 60px auto 0;
}

.hero-message-lead {
  font-size: 1.3rem;
  line-height: 2.2;
  color: var(--brand-navy);
  margin-bottom: 40px;
}

.hero-message-main {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 20px;
}

/* --- SLIDER --- */
.slider-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-content {
  background: rgba(255, 255, 255, 0.92);
  padding: 50px;
  max-width: 550px;
  margin-left: 10%;
  border-left: 5px solid var(--brand-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
  .slide-content {
    background: rgba(255, 255, 255, 0.92);
    padding: 50px;
    max-width: 250px;
    margin-left: 10%;
    border-left: 5px solid var(--brand-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

.slide h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--brand-navy);
  text-align: left;
}

.slide p {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: #444;
  margin-bottom: 0;
}

.slide:nth-child(1) {
  background-image: url("../img/AdobeStock_72130274_ref.jpeg");
  background-image: image-set(
    url("../img/AdobeStock_72130274_ref.webp") type("image/webp"),
    url("../img/AdobeStock_72130274_ref.jpeg") type("image/jpeg")
  );
}

.slide:nth-child(2) {
  background-image: url("../img/32095499_m.jpg");
  background-image: image-set(
    url("../img/32095499_m.webp") type("image/webp"),
    url("../img/32095499_m.jpg") type("image/jpeg")
  );
}

.slide:nth-child(3) {
  background-image: url("../img/AdobeStock_101085882_2.jpg");
  background-image: image-set(
    url("../img/AdobeStock_101085882_2.webp") type("image/webp"),
    url("../img/AdobeStock_101085882_2.jpg") type("image/jpeg")
  );
}

.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 20;
}

.progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-fill {
  height: 100%;
  background: var(--accent-blue);
  width: 0%;
}

/* カスタムボタンのスタイル（スライダー外側下部） */
.slider-controls-wrapper {
  background: #fff;
  padding: 20px 0;
  text-align: center;
}

.slider-controls {
  display: inline-flex;
  gap: 15px;
  justify-content: center;
}

.slide-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
}

/* #36 Phase 6: タッチターゲット 48×48px確保（視覚サイズはそのまま） */
.slide-btn::after {
  content: '';
  position: absolute;
  inset: -17px;
}

.slide-btn:hover {
  background: #aaa;
}

.slide-btn.active {
  background: var(--brand-gold);
  transform: scale(1.3);
}

/* --- CONTENT BOXES --- */
.experience-box {
  margin-bottom: 80px;
  text-align: center;
}

.experience-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 2;
}

.value-list {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.value-item {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.value-icon {
  color: var(--brand-gold);
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
  text-align: center;
}

.road-year {
  display: block;
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: 5px;
  font-size: var(--fs-sm);
}

.road-title {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--brand-navy);
}

.road-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

.usp-box {
  background: white;
  padding: 60px;
  border-radius: 8px;
  border: 1px solid var(--color-border-subtle);
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.usp-grid {
  display: flex;
  align-items: flex-start; /* 2列：画像 | 比較カード（上辺揃え） */
  gap: 40px;
  margin-top: 40px;
}

.usp-img {
  flex: 1;
}

.usp-img picture {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0; /* picture内の謎の余白防止 */
}

.usp-img img {
  width: 100%;
  height: auto; /* HTMLのheight属性固定値を上書き、アス比維持 */
  display: block;
  border-radius: 2px;
  box-shadow: 15px 15px 0 var(--warm-beige);
}

.usp-desc {
  margin-top: var(--g4); /* 32px */
  padding: 0 var(--g6); /* 左右48px */
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--text-muted);
  text-align: center;
}

.usp-list {
  margin: 20px 0;
  padding-left: 0;
}

.usp-list li {
  list-style: none;
  margin-bottom: 20px;
  font-size: var(--fs-base);
}

.usp-list li strong {
  color: var(--brand-navy);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 8px;
}

/* --- USP COMPARISON CARDS --- */
.usp-compare {
  flex: 1;               /* 右列：比較カード縦積み */
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.usp-compare-item {
  display: flex;
  flex-direction: column;
  justify-content: center; /* バッジ＋テキストを垂直センター */
  padding: 24px 18px;
  border-left: 4px solid;
  border-radius: 0 4px 4px 0;
  line-height: 1.7;
}

.usp-compare-other {
  border-left-color: #bbb;
  background: #f5f5f5;
}

.usp-compare-air {
  border-left-color: var(--accent-blue);
  background: var(--color-bg-highlight);
}

.usp-compare-label {
  display: inline-block;
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  font-family: "Noto Sans JP", sans-serif;
}

.usp-compare-other .usp-compare-label {
  background: #ddd;
  color: #888;
}

.usp-compare-air .usp-compare-label {
  background: var(--accent-blue);
  color: #fff;
}

.usp-compare-item p {
  font-size: var(--fs-base);
  margin: 0;
}

.usp-compare-other p {
  color: var(--text-muted);
}

.usp-compare-air p {
  color: var(--accent-blue);
  font-weight: 700;
}

/* --- COST SECTION --- */
.cost-wrapper {
  background: white;
  padding: 60px;
  border-radius: 8px;
  border: 1px solid var(--color-border-subtle);
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}

.cost-wrapper::before {
  content: "COST MERIT";
  position: absolute;
  top: 0;
  left: 0;
  background: var(--brand-navy);
  color: white;
  padding: 8px 15px;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
}

.cost-lead {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 40px;
  color: var(--brand-navy);
  font-weight: bold;
}

.cost-grid {
  display: flex;
  gap: 30px;
  align-items: stretch;
  justify-content: center;
}

.cost-scenario {
  flex: 1;
  max-width: 400px;
  padding: var(--g5);
  background: #f8f8f8;
  text-align: center;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--color-border-subtle);
}

.cost-scenario.airluggage {
  background: var(--color-bg-highlight);
  border: 2px solid var(--accent-blue);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* .cost-scenario.airluggage::before was removed to clean up the layout */

.cost-scenario.normal {
  opacity: 0.9;
}

.scenario-total {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 15px 0;
  color: var(--brand-navy);
}

/* Make the first column of the table body bold to match its header */
.comparison-table tbody td:first-child {
  font-weight: bold;
}

.badge-free {
  background: var(--brand-navy);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: var(--fs-xs);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.1em;
  white-space: nowrap;
  /* スマホ等の狭い画面での意図せぬ改行（インクル/ード）を防ぐ */
}

/* --- BUSINESS MODEL --- */
.business-model-box {
  margin-top: var(--g10);
  background: #f5f7fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: var(--g5);
  text-align: left;
}

.business-model-content {
  font-size: var(--fs-base);
  color: #444;
  line-height: 1.8;
}

.business-model-grid {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.business-model-item {
  flex: 1;
  background: white;
  padding: 25px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-subtle);
}

.business-model-item strong {
  color: var(--accent-blue);
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* --- USAGE FLOW --- */
.flow-grid {
  display: flex;
  gap: 20px;
  margin-top: 50px;
}

.flow-step {
  flex: 1;
  background: white;
  padding: 30px 20px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  border-top: 3px solid var(--color-border-subtle);
  text-align: center;
}

.flow-step::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-border-medium);
  font-size: 1.2rem;
}

.flow-step:last-child::after {
  content: none;
}

.step-num {
  font-size: 2.5rem;
  color: #f0f0f0;
  position: absolute;
  top: 10px;
  right: 15px;
  font-weight: bold;
}

.step-icon {
  font-size: 2rem;
  color: var(--brand-navy);
  margin-bottom: 15px;
  display: block;
}

/* --- BENEFITS --- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.benefit-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-border-subtle);
}

.benefit-img {
  /* #17/#46 Phase 5: aspect-ratioでCLS防止（旧: height: 200px固定） */
  /* 素材比率に合わせて3:2に変更（32939623_m / AdobeStock_343061820 / IMG_3916） */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.benefit-img picture {
  display: block;
  width: 100%;
  height: 100%;
}

.benefit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.benefit-body {
  padding: 30px;
}

.benefit-body h3 {
  margin-bottom: 15px;
}

.benefit-body p {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
}

/* --- SOCIAL IMPACT --- */
.social-wrapper {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.social-chart {
  flex: 1;
  max-width: 350px;
  height: 350px;
  position: relative;
  text-align: center;
}

.sanpo-circle {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 1;
}

.sanpo-circle h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--brand-navy);
  border-bottom: none;
  display: block;
  padding-bottom: 0;
}

.sanpo-circle span {
  font-size: var(--fs-xs);
  line-height: 1.2;
  color: var(--color-text-secondary);
}

.sc-guest {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.sc-hotel {
  bottom: 0;
  left: 0;
}

.sc-society {
  bottom: 0;
  right: 0;
}

.sc-center {
  width: 100px;
  height: 100px;
  background: var(--brand-navy);
  color: white;
  border-radius: 50%;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 2;
  border: 5px solid rgba(255, 255, 255, 0.8);
}

.social-text {
  flex: 1.5;
}

/* --- COMPARISON --- */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  min-width: 800px;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  border-bottom: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  text-align: center;
  vertical-align: middle;
  font-size: var(--fs-md);
}

.comparison-table th {
  background: var(--brand-navy);
  color: white;
}

.col-air {
  background: var(--color-bg-highlight);
  font-weight: 700;
  color: var(--brand-navy);
  position: relative;
  font-family: "Shippori Mincho", "Noto Serif JP", serif !important;
}

/* --- ECONOMY --- */
.calc-wrapper {
  background: white;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid var(--color-border-subtle);
}

.calc-formula {
  display: flex;
  align-items: stretch;  /* 全枠を最大高に揃える */
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.calc-part {
  background: var(--warm-beige);
  padding: 20px 15px;
  border-radius: 4px;
  border: 1px dashed #ccc;
  flex: 0 0 160px;
  width: 160px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.calc-part strong {
  display: block;
  font-size: 1.3rem;
  color: var(--brand-navy);
  margin-top: 8px;
}

.calc-operator {
  font-size: 1.5rem;
  color: #ccc;
  align-self: center; /* stretch の影響を受けず中央に留まる */
}

.calc-result {
  background: var(--brand-navy);
  color: white;
  padding: 20px 15px;
  border-radius: 4px;
  flex: 0 0 160px;
  width: 160px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.calc-result strong {
  display: block;
  font-size: 1.5rem; /* 2.2rem→1.5rem：枠高を揃えるためQ数縮小 */
  margin-top: 6px;
}

.unit-sm {
  font-size: 0.6em; /* 「億円」は特に小さく（約0.9rem） */
  vertical-align: baseline;
}

.calc-notes {
  text-align: left;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.calc-notes ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* --- TRUST --- */
.trust-row {
  display: block;
}

.trust-content {
  width: 100%;
}

.trust-content h2 {
  text-align: center;
}

.trust-bottom-imgs {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.trust-bottom-imgs > img,
.trust-bottom-imgs picture {
  width: calc(33.333% - 13.33px);
  display: block;
  flex-shrink: 0;
}

/* pictureなしの直接img（外部URL画像） */
.trust-bottom-imgs > img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

/* pictureコンテナ側でアス比を管理（素材比率に合わせて3:2） */
.trust-bottom-imgs picture {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
}

.trust-bottom-imgs picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.system-badges {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.sys-badge {
  background: #e2e8f0;
  color: var(--brand-navy);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: bold;
}

/* --- ROADMAP --- */
.roadmap-container {
  margin-top: 60px;
  position: relative;
  padding: 20px 0;
}

.roadmap-line-bg {
  position: absolute;
  top: 200px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.roadmap-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 20px;
}

.road-step {
  background: white;
  padding: 30px 20px;
  width: 22%;
  text-align: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border-top: 4px solid var(--accent-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.road-icon-box {
  width: 60px;
  height: 60px;
  background: #f0f6fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: var(--accent-blue);
  font-size: 1.5rem;
}

/* --- HOTELS & VOICES --- */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.hotel-card {
  background: white;
  border: 1px solid var(--color-border-subtle);
}

.hotel-img {
  width: 100%;
  /* #46 Phase 5: aspect-ratioでCLS防止（ホテル画像は3:2比率） */
  aspect-ratio: 3 / 2;
  display: block;
  overflow: hidden;
}

.hotel-img picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hotel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-info {
  padding: 20px;
  text-align: center;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--g5);
}

.voice-card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-subtle);
}

.voice-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 15px;
}

.voice-img {
  width: 60px;
  height: 60px;
  background: var(--color-border-medium);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.voice-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-comment h5 {
  color: var(--accent-blue);
  margin-bottom: 10px;
  font-size: 1rem;
  border-bottom: none;
  display: block;
}

.voice-comment p {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: #444;
}

/* --- PHASE 3: デザインシステム整備クラス --- */
.table-scroll-hint {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--g1); /* 8px */
  text-align: center;
}

.dx-img-wrapper {
  max-width: 800px;
  margin: 0 auto var(--g8); /* 64px ≒ 60px、8px gridに揃え */
}

.voice-section-title {
  margin-top: var(--g10);  /* 80px */
  margin-bottom: var(--g5); /* 40px */
}

.cost-unit {
  font-size: 1rem;
}

.sp-only-calc {
  text-align: left;
  background: var(--color-bg-subtle);
  padding: var(--g3);    /* 24px（元20px→8pxグリッドに揃え） */
  border-radius: 4px;
  margin-top: var(--g3); /* 24px（元20px→8pxグリッドに揃え） */
}

/* --- ページローディングインジケーター (#44 Phase 6) --- */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--warm-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.loader-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border-subtle);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

/* --- SCROLL ANIMATIONS (js-enabled で制御 / JS無効時は通常表示) --- */
.js-enabled .js-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-enabled .js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.u-delay-2 { transition-delay: 0.15s; }
.u-delay-3 { transition-delay: 0.30s; }

/* --- CTA --- */
.cta-box {
  background-color: var(--brand-navy);
  color: white;
  text-align: center;
  padding: 100px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

.cta-lead {
  font-size: 1.15rem;
  line-height: 2;
  margin-bottom: var(--g5);
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   BREAKPOINT 定義（Phase 4 #34 統一）
   --bp-md : 1024px  タブレット以下
   --bp-sm : 768px   スマートフォン
   ※ CSS変数はメディアクエリ内で使用不可のため
      値を直接記載し、コメントで一元管理する
   ========================================= */

/* =========================================
           TABLET BREAKPOINT (〜1024px)
           ========================================= */
@media (max-width: 1024px) {
  /* グローバルナビ：タブレット以下でgap縮小 */
  .header-nav-list {
    gap: 20px;
  }
  .header-nav-link {
    font-size: 0.8rem;
  }

  /* ベネフィットカードを早めに縦積み */
  .benefit-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* parallax: タブレット以下は固定解除（iOS対策含む） */
  .hero-visual {
    background-attachment: scroll;
  }

  /* USPグリッド：1024px以下で縦積み・中央揃え */
  .usp-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .usp-img,
  .usp-compare {
    width: 100%;
  }
}

/* =========================================
           RESPONSIVE STYLES (MOBILE OPTIMIZATION)
           ========================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  /* グローバルナビ：ハンバーガーメニュー（SP） */
  .nav-toggle {
    display: flex;
  }

  /* ヘッダーCTA：SP非表示（mobile-fixed-ctaが代替） */
  .header-cta-group {
    display: none;
  }

  .header-nav {
    display: none; /* デフォルト非表示 */
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--pure-white);
    border-top: 1px solid var(--color-border-subtle);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 998;
  }

  .header-nav.is-open {
    display: block;
  }

  .header-nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .header-nav-link {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
    border-bottom: none;
  }

  .header-nav-link:hover {
    background: var(--warm-beige);
    border-bottom-color: transparent;
  }

  /* ① .sp-only 表示切り替え */
  div.sp-only {
    display: block;
  }

  .sp-only {
    display: inline;
  }

  /* ② .sp-br 改行制御 */
  .sp-br {
    display: block;
  }

  /* PC要素を非表示 */
  .pc-only {
    display: none !important;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  /* TYPOGRAPHY MOBILE: 小さくして可読性確保 */
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.35rem;
    margin-bottom: 40px;
  }

  h3,
  h4 {
    font-size: 1.2rem;
  }

  .hero-lead-text {
    font-size: var(--fs-base);
    line-height: 2;
  }

  .header-logo img {
    height: 36px;
  }

  .btn_header {
    padding: 10px 15px;
    font-size: var(--fs-sm);
    min-width: 100px;
    min-height: 48px; /* #36 Phase 6: タッチターゲット確保 */
  }

  /*.header-cta-group {
    display: none;
  }*/

  .mobile-fixed-cta {
    display: block;
  }

  .hero-wrapper {
    height: auto;
    /*padding: 80px 0 60px;*/
  }

  .hero-visual {
    height: 450px;
    background-position: left center;
  }

  .hero-title {
    font-size: 1.5rem;
    border-bottom-width: 1px;
    padding-bottom: 10px;
    margin-bottom: 30px;
  }

  /* HERO TEXT AREA: スマホでも余白確保 */
  .hero-text-area {
    padding: 60px 20px;
  }

  .hero-text-area::after {
    height: 40px;
    margin: 40px auto 0;
  }

  .hero-message-lead {
    font-size: 1rem;
    text-align: left;
    line-height: 1.8;
  }

  .hero-message-main {
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.6;
  }

  .btn-group.sp-hide {
    display: none;
  }

  .slider-section {
    height: 400px;
  }

  .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.75);
    border-left: none;
    border-top: 4px solid var(--brand-gold);
    height: 100%;
  }

  .slide h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .slide p {
    font-size: var(--fs-sm);
  }

  .slide:nth-child(1) {
    background-position: right;
  }

  .value-list,
  .usp-grid,
  .cost-grid,
  .business-model-grid,
  .flow-grid,
  .benefit-grid,
  .social-wrapper,
  .trust-row,
  .voice-grid,
  .calc-formula {
    flex-direction: column;
    display: flex;
  }

  .social-wrapper img {
    width: 100%;
    height: auto;
  }

  .value-item {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .usp-img img {
    margin-bottom: 20px;
  }

  /* COST & BUSINESS MODEL FIX */
  .cost-wrapper {
    padding: 40px 20px;
  }

  .cost-scenario {
    margin-bottom: 30px;
  }

  .cost-scenario.airluggage {
    transform: none;
    border-width: 2px;
  }

  .business-model-box {
    margin-top: 40px;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
  }

  .business-model-item {
    padding: 20px;
  }

  /* 矢印ズレ防止 */
  .flow-step {
    margin-bottom: 30px;
  }

  .flow-step::after {
    content: "\f054";
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(90deg);
    margin-top: 8px;
  }

  .flow-step:last-child::after {
    display: none;
  }

  .social-chart {
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
  }

  .calc-operator {
    transform: rotate(90deg);
    margin: 8px 0;
  }

  /* Roadmap Styles Mobile */
  .roadmap-container {
    padding-left: 20px;
  }

  .roadmap-line-bg {
    display: none;
  }

  .roadmap-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .road-step {
    padding: 15px;
    margin-bottom: 0;
    width: 100% !important;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--accent-blue) !important;
    text-align: left;
  }

  .road-step>div:not(.road-icon-box) {
    display: grid;
    grid-template-areas:
      "year desc"
      "title desc";
    grid-template-columns: auto 1fr;
    gap: 0 15px;
    align-items: center;
    width: 100%;
  }

  .road-icon-box {
    display: none;
  }

  .road-year {
    grid-area: year;
    font-size: var(--fs-xs);
    margin-bottom: 2px;
  }

  .road-title {
    grid-area: title;
    font-size: var(--fs-base);
    margin-bottom: 0;
  }

  .road-desc {
    grid-area: desc;
    font-size: var(--fs-xs);
    border-left: 1px solid var(--color-border-medium);
    padding-left: 15px;
    margin-bottom: 0;
    color: var(--text-muted);
  }

  .usp-box {
    padding: 30px 20px;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
  }

  .usp-grid {
    gap: 20px; /* SP：flex-direction: column は一括ルールで適用済み */
  }

  .usp-desc {
    margin-top: var(--g3); /* SP：32px → 24px */
    padding: 0; /* SP：usp-box の padding で十分なため解除 */
    text-align: left; /* SP：左揃えの方が読みやすい */
  }

  .trust-content h2 {
    font-size: 1.3rem;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 25px;
  }


  .trust-bottom-imgs {
    display: none !important;
  }

  .hotel-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hotel-card {
    display: flex;
    align-items: center;
    max-height: 90px;
    overflow: hidden;
  }

  .hotel-img {
    flex: 0 0 40%;
    height: 90px;
  }

  .hotel-img img {
    height: 100%;
    object-fit: cover;
  }

  .hotel-info {
    flex: 0 0 60%;
    text-align: left;
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .system-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sys-badge {
    font-size: var(--fs-xs);
    padding: 8px 12px;
  }

  .voice-card {
    padding: 25px;
  }

  .voice-head {
    flex-direction: column;
    text-align: center;
  }

  /* Webkitブラウザ用 (iOS Safari等) */
  .table-scroll::-webkit-scrollbar {
    -webkit-appearance: none;
    height: 5px;
    /* バーの高さ */
  }

  .table-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    /* バーの色 */
    border-radius: 10px;
  }
}

footer {
  background: #111;
  color: #777;
  padding: 50px 0;
  text-align: center;
  font-size: var(--fs-xs);
  width: 100%;
  position: absolute;
  bottom: 0;
}

/* C 10 p-footer */
/* -------------------------------------------------------------------------- */
.l-container {
  max-width: var(--container-max);
  width: var(--container-fluid);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.p-footer {
  padding: var(--g10) 0 var(--g6);
  margin-bottom: -100px;
  background-color: var(--color-bg-midnight);
  color: #FFFFFF;
  position: relative;
  font-family: "Noto Sans JP", sans-serif !important;
}

.p-footer__brand {
  text-align: center;
  margin-bottom: var(--g6);
  position: relative;
  z-index: 1;
}

.p-footer__logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.p-footer__notice {
  max-width: 800px;
  margin: 0 auto var(--g8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: var(--g4);
  text-align: center;
  position: relative;
  z-index: 1;
}

.p-footer__notice-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--g1);
  letter-spacing: 0.1em;
}

.p-footer__notice-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.p-footer__nav {
  margin-bottom: var(--g8);
  position: relative;
  z-index: 1;
}

.p-footer__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--g5);
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* wp_nav_menu() ãŒå‡ºåŠ›ã™ã‚‹ li (.p-footer__link-item ãŒãªã„å ´åˆã‚‚å¯¾å¿œ) */
.p-footer__link-item,
.p-footer__links li {
  list-style: none;
}

.p-footer__link-item a,
.p-footer__links li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition-base);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.p-footer__link-item a:hover,
.p-footer__links li a:hover {
  color: #FFFFFF;
  border-bottom-color: var(--color-accent);
}

.p-footer__copy {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--g4);
  position: relative;
  z-index: 1;
}

.p-footer__copy p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .p-footer__links {
    flex-direction: column;
    align-items: center;
    gap: var(--g4);
  }
}

@media (max-width: 768px) {
  footer {
    position: relative;
    bottom: auto;
  }
}

/* =========================================
   CONTACT PAGE (contact.html)
   - コンパクトヒーロー + HubSpot Form Wrapper
   - サイトのラグジュアリー基準（明朝/ゴールド/8pxグリッド）に整合
   ========================================= */
.contact-hero {
  background-color: var(--brand-navy);
  background-image:
    linear-gradient(135deg, rgba(184, 154, 108, 0.08) 0%, rgba(15, 23, 42, 0) 50%, rgba(184, 154, 108, 0.08) 100%),
    var(--bg-texture);
  color: var(--pure-white);
  text-align: center;
  padding: calc(var(--header-height) + var(--g10)) 0 var(--g10);
  position: relative;
}

.contact-hero::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--brand-gold);
  margin: var(--g5) auto 0;
}

.contact-hero-tagline {
  display: block;
  font-family: var(--font-sans, "Noto Sans JP", sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--brand-gold);
  margin-bottom: var(--g3);
}

.contact-hero-title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  margin: 0 0 var(--g4);
  color: var(--pure-white);
}

.contact-hero-lead {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  line-height: 2;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto;
}

.contact-hero-emphasis {
  color: var(--brand-gold);
  font-weight: 500;
}

.contact-form-section {
  background-color: var(--warm-beige);
  padding: var(--g15) 0;
}

.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--pure-white);
  padding: clamp(var(--g5), 4vw + 16px, var(--g10)) clamp(var(--g3), 3vw + 8px, var(--g8));
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  border-top: 3px solid var(--brand-gold);
}

.contact-form-note {
  font-family: var(--font-sans, "Noto Sans JP", sans-serif);
  font-size: 0.85rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 var(--g4);
  padding-bottom: var(--g3);
  border-bottom: 1px solid var(--color-border);
}

.contact-form-note span[aria-hidden] {
  color: #d04848;
  font-weight: 700;
  margin-right: 2px;
}

/* HubSpot iframe ラッパー（外側装飾のみ。内部スタイルはHubSpot管理画面で制御） */
.contact-form-wrapper .hs-form-frame {
  width: 100%;
}

/* タブレット以下 */
@media (max-width: 1024px) {
  .contact-hero {
    padding: calc(var(--header-height) + var(--g8)) 0 var(--g8);
  }
  .contact-form-section {
    padding: var(--g10) 0;
  }
}

/* スマートフォン */
@media (max-width: 768px) {
  .contact-hero {
    padding: calc(var(--header-height) + var(--g6)) 0 var(--g6);
  }
  .contact-hero::after {
    margin-top: var(--g4);
  }
  .contact-hero-title {
    letter-spacing: 0.08em;
  }
  .contact-form-section {
    padding: var(--g8) 0;
  }
  .contact-form-wrapper {
    padding: var(--g5) var(--g3);
    border-radius: 6px;
  }
}