/* ============================================
   ケアプラン彩心 LP
   トップ（ヘッダー・ヒーロー）: 1518版
   それ以下のセクション: 168版
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* 1518版（ヘッダー・ヒーロー用） */
  --primary-color: #C73E3A;   /* Akabeni - Deep Red for "Iroha"/"Ichigo" */
  --secondary-color: #F8F4E6; /* Off-white/Beige for warmth */
  --accent-color: #D6A485;    /* Soft earth tone */
  --text-color: #333333;
  --light-text: #666666;
  --font-top: 'Zen Kaku Gothic New', sans-serif;

  /* 本文セクション用（1518版の紅色×ベージュトーン） */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F4E6;
  --color-bg-warm: #F9F9F9;
  --color-accent: #C73E3A;
  --color-accent-light: #D66360;
  --color-accent-pale: #FAECEB;
  --color-gold: #C73E3A;
  --color-gold-light: #D6A485;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-white: #FFFFFF;
  --color-emphasis: #C73E3A;
  --color-border: #E0E0E0;
  --color-line: #06C755;

  --font-serif: 'Zen Kaku Gothic New', sans-serif;
  --font-sans: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --font-en: 'Cormorant Garamond', serif;

  --fs-xs: 0.875rem;    /* 14px */
  --fs-sm: 1rem;         /* 16px */
  --fs-base: 1.125rem;   /* 18px - 本文基準（40歳以上向け） */
  --fs-md: 1.25rem;      /* 20px */
  --fs-lg: 1.5rem;       /* 24px */
  --fs-xl: 1.75rem;      /* 28px */
  --fs-2xl: 2rem;        /* 32px */
  --fs-3xl: 2.5rem;      /* 40px */

  --lh-tight: 1.5;
  --lh-base: 1.8;
  --lh-loose: 2.0;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);

  --header-h: 70px;
  --footer-bar-h: 64px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--footer-bar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

/* 日本語見出しを文節単位で折り返す（対応ブラウザのみ） */
@supports (word-break: auto-phrase) {
  .section-title,
  .hero-title,
  .hero-sub,
  .mid-cta-text,
  .contact-title,
  .free-banner-main,
  .strength-title,
  .timeline-title,
  .faq-question span:first-child {
    word-break: auto-phrase;
  }
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.sp-only { display: inline; }

.text-accent { color: var(--color-emphasis); }

/* --- Section Common --- */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-label {
  text-align: center;
  margin-bottom: var(--space-xs);
}

.section-label-en {
  font-family: var(--font-en);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5.8vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  text-wrap: balance;
}

/* ============================================
   HEADER（1518版）
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  font-family: var(--font-top);
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sub-logo {
  font-size: 0.8rem;
  color: var(--text-color);
  font-weight: 500;
  margin-top: 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s linear;
  border-radius: 2px;
}

.nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
}

.nav a:hover {
  opacity: 0.7;
}

.btn-nav {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
}

/* ============================================
   1. HERO（1518版）
   ============================================ */
.hero {
  position: relative;
  height: 80vh;
  height: 80svh; /* モバイルのアドレスバー変動に追従 */
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-h);
  font-family: var(--font-top);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./assets/images/hero-sunset.jpg?v=20260723e');
  background-size: cover;
  background-position: center top;
  z-index: -1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* キャッチコピーは画像内に含まれるため、テキストはスクリーンリーダー向けにのみ残す */
.hero-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-sub {
  font-size: clamp(0.875rem, 3.8vw, 1rem);
  color: var(--primary-color);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.hero-title {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.4;
  margin-bottom: clamp(20px, 6vw, 30px);
  font-weight: 700;
  color: var(--text-color);
}

.hero-desc {
  font-size: 1rem;
  line-height: var(--lh-base);
  color: var(--text-color);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  font-size: var(--fs-base);
  padding: 18px 28px;
  min-height: 60px;
}

.btn-xl {
  font-size: var(--fs-md);
  padding: 20px 32px;
  min-height: 68px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(199, 62, 58, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(199, 62, 58, 0.35);
  color: var(--color-white);
}

.btn-line {
  background: var(--color-line);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.25);
}

.btn-line:hover {
  box-shadow: 0 6px 24px rgba(6, 199, 85, 0.35);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  color: var(--color-accent);
}

.btn-tel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.btn-tel-text small {
  font-size: var(--fs-xs);
  font-weight: 500;
}

/* ============================================
   2. THOUGHT (私たちの想い)
   ============================================ */
.section-thought {
  background: var(--color-bg-alt);
}

.thought-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.thought-photo {
  text-align: center;
  padding: var(--space-xl) var(--space-lg) var(--space-sm);
}

.thought-photo-banner {
  position: relative;
  margin: var(--space-lg) 0 var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-family: var(--font-top);
}

.thought-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.thought-banner-body {
  position: relative;
  z-index: 1;
  padding: var(--space-sm) var(--space-md) 90px;
  text-align: center;
}

.thought-banner-label {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.thought-banner-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
}

.thought-banner-sub {
  font-size: clamp(0.875rem, 3.8vw, 1rem);
  color: var(--primary-color);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.thought-banner-title {
  font-size: clamp(1.5rem, 7vw, 2.25rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 16px;
}

.thought-banner-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--text-color);
}

.thought-img-wrap {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-lg);
}

.thought-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
}

.thought-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thought-name-title {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.thought-name-main {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-text);
}

.thought-name-main small {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.thought-message {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.thought-quote p {
  margin-bottom: var(--space-md);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
}

.thought-quote p:last-child {
  margin-bottom: 0;
}

.thought-quote strong {
  color: var(--color-emphasis);
  font-weight: 700;
}

.thought-closing {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-emphasis);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  margin-top: var(--space-lg) !important;
}

/* ============================================
   3. SERVICE (サービス内容)
   ============================================ */
.section-service {
  background: var(--color-white);
}

.service-intro {
  background: var(--color-bg-warm);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.service-intro-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.service-intro-text {
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: var(--lh-base);
}

.free-banner {
  background: linear-gradient(135deg, var(--color-accent-pale) 0%, var(--color-bg-alt) 100%);
  border: 2px solid var(--color-emphasis);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.free-banner-main {
  font-size: var(--fs-base);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.free-banner-price {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.free-banner-price span {
  font-size: clamp(2rem, 9vw, 2.5rem);
  font-weight: 700;
  color: var(--color-emphasis);
}

.free-banner-note {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-base);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg) 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon {
  margin-bottom: var(--space-sm);
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-tight);
}

.service-card-text {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  line-height: var(--lh-base);
  text-align: left;
}

/* ============================================
   4. FLOW (ご利用の流れ)
   ============================================ */
.section-flow {
  background: var(--color-bg-alt);
}

.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-accent) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: -48px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: var(--fs-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(199, 62, 58, 0.25);
}

.timeline-body {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.timeline-body p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-base);
}

/* ご利用の流れ：スタート／分岐 */
.flow-start {
  text-align: center;
  background: var(--color-accent-pale);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.flow-start-label {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.flow-start-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  text-decoration: none;
}

.flow-start-tel svg {
  width: 22px;
  height: 22px;
}

.flow-arrow {
  width: 0;
  height: 0;
  margin: 14px auto;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 13px solid var(--color-accent-light);
}

.flow-branch {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.flow-branch-col {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.flow-branch-head {
  font-weight: 700;
  text-align: center;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
}

.flow-branch-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.flow-mini {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.flow-mini h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.flow-mini p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-base);
}

.flow-note {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--space-sm);
}

.flow-merge {
  display: table;
  margin: 0 auto var(--space-lg);
  text-align: center;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-pale);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: var(--fs-sm);
}

@media (min-width: 600px) {
  .flow-branch {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ============================================
   5. STRENGTH (選ばれる理由)
   ============================================ */
.section-strength {
  background: var(--color-bg-warm);
  /* 和紙テクスチャ風 */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(199, 62, 58, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(214, 164, 133, 0.06) 0%, transparent 50%);
}

.strength-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.strength-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.strength-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
}

.strength-num {
  font-family: var(--font-en);
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.strength-icon-wrap {
  margin-bottom: var(--space-md);
}

.strength-title {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-sm);
}

.strength-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-base);
  text-align: left;
}

/* ============================================
   MID CTA
   ============================================ */
.section-mid-cta {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.mid-cta-box {
  background: linear-gradient(135deg, var(--color-accent) 0%, #A22F2C 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.mid-cta-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 5.6vw, 1.5rem);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-tight);
}

.mid-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mid-cta-buttons .btn-primary {
  background: var(--color-white);
  color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   6. AREA (対応エリア)
   ============================================ */
.section-area {
  background: var(--color-white);
}

.area-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.area-map iframe {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
}

.area-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-sm);
}

.area-badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.area-badge-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.area-note {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ============================================
   7. FAQ (よくある質問)
   ============================================ */
.section-faq {
  background: var(--color-bg-alt);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--space-md);
  text-align: left;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--lh-tight);
  cursor: pointer;
  transition: background 0.2s ease;
  min-height: 60px;
}

.faq-question:hover {
  background: rgba(245, 245, 245, 0.7);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: var(--radius-full);
  background: var(--color-accent-pale);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 var(--space-md) var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-base);
}

/* ============================================
   8. OVERVIEW (事業所概要)
   ============================================ */
.section-overview {
  background: var(--color-white);
}

.overview-dl {
  border-top: 2px solid var(--color-accent);
}

.overview-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-border);
}

.overview-row dt {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
  padding: var(--space-md) 0 4px;
  letter-spacing: 0.05em;
}

.overview-row dd {
  font-size: var(--fs-base);
  color: var(--color-text);
  padding-bottom: var(--space-md);
  line-height: var(--lh-base);
}

.overview-row dd a {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-accent);
}

.overview-row dd small {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ============================================
   9. CONTACT CTA
   ============================================ */
.section-contact {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/images/hero.png');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.7);
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(199, 62, 58, 0.78) 0%,
    rgba(154, 44, 41, 0.9) 100%
  );
}

.contact-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 6.4vw, 1.75rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}

.contact-text {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--lh-base);
  margin-bottom: var(--space-xl);
  max-width: 30em;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--space-md);
}

.contact-hours {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   10. FOOTER
   ============================================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 calc(var(--space-xl) + var(--footer-bar-h) + env(safe-area-inset-bottom));
  text-align: center;
}

.footer-brand {
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-white);
}

.footer-logo small {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.footer-corp {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.footer-info {
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  margin-bottom: var(--space-md);
}

.footer-info a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-nav a {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
}

.footer-copy {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FIXED FOOTER BAR
   ============================================ */
.fixed-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  height: calc(var(--footer-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--color-white);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
  transform: translate3d(0, 100%, 0);
  transition: transform 0.3s ease;
  /* iOS Safari でスクロール中に固定要素が消えるのを防ぐ（GPUレイヤーに固定） */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.fixed-footer-bar.visible {
  transform: translate3d(0, 0, 0);
}

.fixed-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.fixed-bar-tel {
  background: var(--color-accent);
  color: var(--color-white);
}

.fixed-bar-line {
  background: var(--color-line);
  color: var(--color-white);
}

/* ============================================
   SCROLL TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: calc(var(--footer-bar-h) + env(safe-area-inset-bottom) + 16px);
  right: 16px;
  z-index: 997;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Stagger children */
.service-grid .service-card:nth-child(1) { transition-delay: 0s; }
.service-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.service-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.service-grid .service-card:nth-child(4) { transition-delay: 0.3s; }
.service-grid .service-card:nth-child(5) { transition-delay: 0.4s; }
.service-grid .service-card:nth-child(6) { transition-delay: 0.5s; }

.strength-list .strength-card:nth-child(1) { transition-delay: 0s; }
.strength-list .strength-card:nth-child(2) { transition-delay: 0.15s; }
.strength-list .strength-card:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   MOBILE（max-width: 768px）ヘッダー・ヒーロー
   ============================================ */
@media (max-width: 768px) {
  .header-inner {
    padding: 10px 20px;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.98);
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header.nav-open .nav {
    right: 0;
  }

  /* Hamburger Animation when open */
  .header.nav-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.nav-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav a {
    font-size: 1.2rem;
    display: block;
    padding: 10px;
  }

  .btn-nav {
    padding: 15px 40px;
  }

  .hero {
    margin-top: 62px;
    /* 引きの構図: 高さを抑えて動画の左右を広く見せる（馬の疾走エリアまで表示） */
    height: 40svh;
    min-height: 300px;
  }
}

/* ============================================
   SMALL MOBILE（max-width: 374px）
   ============================================ */
@media (max-width: 374px) {
  .container {
    padding: 0 16px;
  }

  .mid-cta-text {
    font-size: 1.125rem;
  }

  .mid-cta-box {
    padding: var(--space-xl) var(--space-md);
  }

  .logo {
    font-size: 1.05rem;
  }

  .sub-logo {
    font-size: 0.7rem;
  }

  .service-grid {
    gap: 10px;
  }

  .service-card-title {
    font-size: 0.9375rem;
  }

  .btn-lg {
    padding: 16px 20px;
  }

  .btn-xl {
    font-size: var(--fs-base);
    padding: 18px 20px;
  }

  .timeline {
    padding-left: 44px;
  }

  .timeline-number {
    left: -44px;
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   DESKTOP (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 32px;
  }

  .sp-only { display: none; }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }

  .contact-cta {
    flex-direction: row;
    justify-content: center;
  }

  .mid-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .overview-row {
    flex-direction: row;
  }

  .overview-row dt {
    width: 140px;
    flex-shrink: 0;
    padding: var(--space-md) 0;
  }

  .overview-row dd {
    padding: var(--space-md) 0;
  }

  /* デスクトップでは固定フッターバーを非表示 */
  .fixed-footer-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .scroll-top {
    bottom: 24px;
    right: 24px;
  }
}
