/* ========================================
   KARADA RELATE LP - Mobile First Stylesheet
   White base + gold/yellow accents, elegant typography
   Target: 40+ Women / Chronic Pain / Self-pay
   ======================================== */

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

:root {
  /* 明るいレモン〜キャナリーイエロー（黄土色寄りを避ける） */
  --brand: #FFEB7A;
  --brand-dark: #FFE234;
  --brand-muted: #FFD93D;
  --brand-light: #FFFCE8;
  --brand-glow: rgba(255, 235, 100, .45);
  --brand-rgb: 255, 235, 120;
  --on-brand: #2E2A1F;
  /* 白背景上のゴールド文字・線（黄土より黄みが強い） */
  --brand-ink: #9A8800;
  --brand-border: #E8D545;
  --cta: #FFE566;
  --cta-dark: #FFD93D;
  --cta-shadow: rgba(255, 217, 61, .4);
  --line-green: #06c755;
  --line-green-dark: #05a847;
  --dark: #2C2924;
  --dark-bg: #3D3A35;
  --text: #3F3C37;
  --text-light: #6E6A62;
  --bg: #ffffff;
  --bg-gray: #F7F6F3;
  --bg-warm: #FBFAF7;
  --border: #E8E5DE;
  --shadow-sm: 0 1px 3px rgba(44,41,36,.05);
  --shadow-md: 0 4px 20px rgba(44,41,36,.07);
  --shadow-lg: 0 12px 40px rgba(44,41,36,.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Shippori Mincho', 'Noto Serif JP', serif;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  /* スクロール表示（参考: 企業LP系の fade-up） */
  --reveal-duration: 1s;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-y: 56px;
}

/* Elegant stroke icons (replace emoji) */
.lp-icon {
  display: block;
  flex-shrink: 0;
  color: var(--brand-ink);
}
.lp-icon--sm { width: 18px; height: 18px; }
.lp-icon--md { width: 22px; height: 22px; }
.lp-icon--lg { width: 28px; height: 28px; }
.problems__card-icon .lp-icon,
.flow__step-icon .lp-icon,
.menu__card-icon .lp-icon { margin: 0 auto; }
.problems__card-icon,
.flow__step-icon,
.menu__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.flow__step-icon { margin-bottom: 0; }
@media (min-width: 768px) {
  .flow__step-icon { margin-bottom: 6px; }
}

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.74;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 64px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.sp-only { display: inline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; line-height: 1.8; }
  .container { padding: 0 24px; }
  .sp-only { display: none; }
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header__label {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--brand-ink);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.42;
}

.section-header__desc {
  margin-top: 14px;
  font-size: .84rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--light .section-header__label { color: rgba(255,255,255,.7); }
.section-header--light .section-header__title { color: #fff; }

@media (min-width: 768px) {
  .section-header { margin-bottom: 48px; }
  .section-header__title { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.45; }
  .section-header__desc { font-size: .88rem; line-height: 2; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.btn--lg { padding: 14px 24px; font-size: .88rem; width: 100%; }
.btn--xl { padding: 16px 28px; font-size: .92rem; width: 100%; }

.btn--cta {
  background: var(--brand-dark);
  color: var(--on-brand);
  border: 1px solid rgba(46, 42, 31, .08);
  box-shadow: 0 4px 16px var(--cta-shadow);
}
.btn--cta:hover {
  background: var(--cta-dark);
  color: var(--on-brand);
  box-shadow: 0 6px 24px rgba(255, 213, 50, .5);
}

.btn--outline {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn--outline:hover { background: rgba(255,255,255,.25); border-color: #fff; }

.btn--white {
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--white:hover { border-color: rgba(var(--brand-rgb), .65); }

.btn--line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 199, 85, .35);
}
.btn--line:hover { background: var(--line-green-dark); }
.btn--line svg { flex-shrink: 0; }

.btn--phone {
  background: var(--dark-bg);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 53, 48, .35);
}

.btn--pulse { animation: pulse 2.5s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px var(--cta-shadow); }
  50% { box-shadow: 0 4px 28px rgba(255, 220, 60, .55); }
}

.btn__icon { display: flex; align-items: center; font-size: 1.2em; }

@media (min-width: 768px) {
  .btn--lg { padding: 16px 32px; font-size: 1rem; width: auto; white-space: nowrap; }
  .btn--xl { padding: 20px 40px; font-size: 1.1rem; width: auto; white-space: nowrap; }
  .btn--cta:hover, .btn--white:hover, .btn--phone:hover { transform: translateY(-2px); }
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header--scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
}

.header__logo a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}
.header__logo span { font-weight: 500; font-size: .8em; color: var(--text-light); }

.header__nav { display: none; }
.header__cta-btn { display: none; }

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.header__nav.active {
  display: block;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px;
}
.header__nav.active ul { display: flex; flex-direction: column; gap: 0; }
.header__nav.active a {
  font-size: .95rem;
  display: block;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
}

@media (min-width: 900px) {
  .header__inner { padding: 0 24px; height: 64px; }
  .header__logo a { font-size: 1.15rem; }
  .header__nav { display: block; }
  .header__nav ul { display: flex; gap: 28px; }
  .header__nav a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    padding: 0;
    border: none;
  }
  .header__nav a:hover { color: var(--brand-ink); }
  .header__cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--brand-dark);
    color: var(--on-brand);
    font-size: .85rem;
    font-weight: 600;
    border-radius: 60px;
    transition: var(--transition);
    border: 1px solid rgba(46, 42, 31, .08);
  }
  .header__cta-btn:hover { background: var(--cta-dark); }
  .header__hamburger { display: none; }
  .header__nav.active { position: static; background: none; border: none; box-shadow: none; padding: 0; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 0 56px;
  min-height: auto;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    min-height: min(88vh, 780px);
  }
}

/* 背景スライド用ラッパー（スマホは本文の下の帯のみ／PCは inner 全面に広げる） */
.hero__slideshow-wrap {
  position: relative;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* トップ背景スライド（script.js が .hero__slide--active を切替／写真は img、未読込時はトーングラデ） */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.06) 100%
  );
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.15s ease-in-out;
  background-size: cover;
  background-position: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  filter: brightness(1.08) saturate(0.92);
}

.hero__slide--active img {
  -webkit-animation: hero-slide-ken 6.5s ease-out forwards;
  animation: hero-slide-ken 6.5s ease-out forwards;
}

@-webkit-keyframes hero-slide-ken {
  from { -webkit-transform: scale(1.08) translateZ(0); transform: scale(1.08) translateZ(0); }
  to { -webkit-transform: scale(1) translateZ(0); transform: scale(1) translateZ(0); }
}

@keyframes hero-slide-ken {
  from { -webkit-transform: scale(1.08) translateZ(0); transform: scale(1.08) translateZ(0); }
  to { -webkit-transform: scale(1) translateZ(0); transform: scale(1) translateZ(0); }
}

/* スマホ: ズームは弱め（帯いっぱいに cover で表示） */
@-webkit-keyframes hero-slide-ken-mobile {
  from { -webkit-transform: scale(1.03) translateZ(0); transform: scale(1.03) translateZ(0); }
  to { -webkit-transform: scale(1) translateZ(0); transform: scale(1) translateZ(0); }
}
@keyframes hero-slide-ken-mobile {
  from { -webkit-transform: scale(1.03) translateZ(0); transform: scale(1.03) translateZ(0); }
  to { -webkit-transform: scale(1) translateZ(0); transform: scale(1) translateZ(0); }
}

@media (max-width: 767px) {
  .hero__slide--active img {
    -webkit-animation-name: hero-slide-ken-mobile;
    animation-name: hero-slide-ken-mobile;
  }
}

/* オフライン・画像エラー時も色が切り替わってスライドが分かる（白〜アイボリー基調） */
.hero__slide--tone1 { background-image: linear-gradient(145deg, #faf8f4 0%, #f2efe8 50%, #ebe6dc 100%); }
.hero__slide--tone2 { background-image: linear-gradient(155deg, #f7f5f0 0%, #efeae2 50%, #e5dfd4 100%); }
.hero__slide--tone3 { background-image: linear-gradient(135deg, #faf9f6 0%, #f0ece4 50%, #e8e2d8 100%); }
.hero__slide--tone4 { background-image: linear-gradient(165deg, #f8f6f1 0%, #efe9e0 50%, #e4ddd2 100%); }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(var(--brand-rgb), .22) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(var(--brand-rgb), .14) 0%, transparent 55%);
  z-index: 2;
  pointer-events: none;
}

/* スライド上の白み（ラッパー内＝スマホは帯のみ／PCは全面） */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255, 254, 252, 0.9) 0%,
    rgba(255, 253, 250, 0.74) 36%,
    rgba(255, 251, 246, 0.42) 58%,
    rgba(255, 249, 242, 0.2) 82%,
    rgba(255, 247, 238, 0.08) 100%
  );
}

@media (max-width: 767px) {
  /* 帯は Unsplash を主役に（上から薄いトーンで馴染ませるだけ） */
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 254, 252, 0.58) 0%,
      rgba(255, 253, 250, 0.22) 42%,
      rgba(255, 250, 244, 0.06) 78%,
      transparent 100%
    );
  }
  .hero__slideshow-wrap .hero__slideshow::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.05) 48%,
      transparent 100%
    );
  }
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding: 0 18px;
}

.hero__text--lead,
.hero__text--tail {
  position: relative;
  z-index: 2;
  text-align: center;
}

@media (max-width: 767px) {
  .hero__inner {
    gap: 0;
  }
  .hero__text--lead {
    order: 1;
  }
  .hero__slideshow-wrap {
    order: 2;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 28px;
    flex: 0 0 auto;
    min-height: min(36vh, 280px);
    max-height: min(42vh, 320px);
  }
  .hero__text--tail {
    order: 3;
  }
  .hero__photo {
    order: 4;
    margin-top: 24px;
  }
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--brand-light);
  border: 1px solid rgba(var(--brand-rgb), .45);
  border-radius: 60px;
  font-size: .7rem;
  font-weight: 500;
  color: var(--brand-ink);
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.42;
  margin-bottom: 14px;
}
.hero__title em {
  font-style: normal;
  color: var(--brand-ink);
  display: block;
}

.hero__subtitle {
  font-size: .84rem;
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero__subtitle-footnote,
.women-banner__text-footnote {
  display: block;
  margin-top: 0.5em;
  line-height: 1.65;
}

.hero__offer-box {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 20px;
  background: #fff;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero__offer-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.hero__offer-plan {
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.hero__offer-label {
  padding: 2px 10px;
  background: var(--brand-dark);
  color: var(--on-brand);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  border-radius: 60px;
}
.hero__offer-price {
  font-size: .9rem;
  color: var(--dark);
}
.hero__offer-price s { opacity: .5; font-size: .85em; }
.hero__offer-price strong { font-size: 1.3em; color: var(--brand-ink); }
.hero__offer-price small {
  font-size: .88em;
  font-weight: 500;
  color: var(--text);
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__note {
  margin-top: 12px;
  font-size: .72rem;
  color: var(--text-light);
}

.hero__photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__photo-frame {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  border: 2px solid var(--brand);
}

.hero__photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 5 / 6;
}

.hero__photo-placeholder {
  width: 100%;
  aspect-ratio: 5 / 6;
  background: var(--bg-gray);
  border: 1px dashed rgba(var(--brand-rgb), .4);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-light);
  font-size: .82rem;
}
.hero__photo-placeholder small { font-size: .65rem; opacity: .6; }

@media (min-width: 768px) {
  /* inner がコンテンツ高さだけだと背景スライドも低くなる → ビューポート基準で確保 */
  .hero { min-height: 100vh; padding: 88px 0 64px; }
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    gap: clamp(28px, 3.5vw, 48px);
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 160px);
    min-height: calc(100svh - 160px);
  }
  /* copy 内にあったため写真列の下に隠れていた → inner 直下で最背面 */
  .hero__slideshow-wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    z-index: 0;
    margin: 0;
    min-height: calc(100vh - 160px);
    min-height: calc(100svh - 160px);
    max-height: none;
  }
  .hero__text--lead {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    text-align: left;
  }
  .hero__text--tail {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    text-align: left;
  }
  /* 左は読みやすくトーンを残し、右は Unsplash をほぼフルに */
  .hero__slideshow::after {
    background: linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.46) 0%,
      rgba(255, 255, 255, 0.1) 34%,
      transparent 52%
    );
  }
  .hero__overlay {
    background: linear-gradient(
      105deg,
      rgba(255, 254, 252, 0.97) 0%,
      rgba(255, 254, 252, 0.9) 18%,
      rgba(255, 252, 248, 0.52) 34%,
      rgba(255, 250, 244, 0.14) 48%,
      rgba(255, 248, 240, 0.03) 62%,
      transparent 78%
    );
  }
  .hero::before {
    opacity: 0.7;
  }
  .hero__slide img {
    filter: brightness(1.04) saturate(1);
  }
  /* 施術枠はカードサイズに抑え、列の余白には Unsplash が見える */
  .hero__photo {
    grid-column: 2;
    grid-row: 1 / -1;
    justify-self: center;
    align-self: center;
    width: min(400px, 94%);
    max-width: none;
    position: relative;
    z-index: 2;
  }
  .hero__badge { font-size: .8rem; padding: 8px 24px; }
  .hero__title { font-size: clamp(1.8rem, 4vw, 3rem); }
  .hero__subtitle { font-size: clamp(.85rem, 2vw, 1.05rem); }
  .hero__cta-group { flex-direction: row; gap: 12px; }
  .hero__photo-frame {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.07);
    border-width: 2px;
  }
}

/* ---------- SOCIAL PROOF ---------- */
.social-proof {
  padding: 28px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.social-proof__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.social-proof__number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-ink);
  line-height: 1;
}

.social-proof__number-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-ink);
  line-height: 1;
}

.social-proof__unit { font-size: .85rem; font-weight: 600; color: var(--brand-ink); }
.social-proof__icon { display: flex; justify-content: center; margin-bottom: 2px; }
.social-proof__icon .lp-icon { margin: 0 auto; color: var(--brand-ink); }
.social-proof__label { display: block; font-size: .68rem; color: var(--text-light); margin-top: 2px; }
.social-proof__divider { display: none; }

/* ---------- WOMEN-ONLY BANNER ---------- */
.women-banner {
  padding: 48px 0;
  background: var(--brand-light);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.women-banner__eyebrow {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--brand-ink);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.women-banner__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.women-banner__text {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.78;
  max-width: 460px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .women-banner { padding: 48px 0; }
  .women-banner__title { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
}

@media (min-width: 768px) {
  .social-proof { padding: 32px 0; }
  .social-proof__items { display: flex; align-items: center; justify-content: center; gap: 32px; }
  .social-proof__item { min-width: 120px; }
  .social-proof__number { font-size: 2rem; }
  .social-proof__divider { display: block; width: 1px; height: 40px; background: var(--border); }
}

/* ---------- PROBLEMS ---------- */
.problems { padding: 64px 0; background: var(--bg); }

.problems__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problems__card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  transition: var(--transition);
}

.problems__card h3 {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.problems__card p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.76;
}

.problems__arrow { text-align: center; margin-top: 36px; }

.problems__arrow-shape {
  width: 8px;
  height: 8px;
  margin: 0 auto 10px;
  border-right: 1.5px solid var(--brand-ink);
  border-bottom: 1.5px solid var(--brand-ink);
  transform: rotate(45deg);
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.problems__arrow-text { font-size: .95rem; color: var(--dark); }
.problems__arrow-text strong { color: var(--brand-ink); }

@media (min-width: 768px) {
  .problems { padding: 80px 0; }
  .problems__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .problems__card { padding: 28px 24px; }
  .problems__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
}

@media (min-width: 1024px) {
  .problems__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- FEATURES ---------- */
.features {
  padding: 64px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.features__list { display: flex; flex-direction: column; gap: 22px; }

.features__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.features__item--reverse { direction: ltr; }

.features__item-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand-ink);
  opacity: .28;
  line-height: 1;
}

.features__item-content h3 {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.features__item-content p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.76;
}

.features__item-image {
  width: 100%;
  height: 160px;
  order: -1;
  overflow: hidden;
  background: transparent;
}

.features__item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.features__item-image--staff-duo { height: 200px; }

.features__item-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-gray);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .78rem;
}

@media (min-width: 768px) {
  .features { padding: 80px 0; }
  .features__list { gap: 48px; }
  .features__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .features__item:hover { transform: translateY(-4px); }
  .features__item--reverse { direction: rtl; }
  .features__item--reverse > * { direction: ltr; }
  .features__item-number { font-size: 3rem; }
  .features__item-content h3 { font-size: 1.2rem; }
  .features__item-image { width: 200px; height: 150px; order: 0; }
  .features__item-image--staff-duo {
    width: min(300px, 34vw);
    height: 230px;
  }
}

/* ---------- OFFER ---------- */
.offer {
  padding: 64px 0;
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
}

.offer__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--brand);
}

.offer__badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--brand-dark);
  color: var(--on-brand);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 60px;
  margin-bottom: 12px;
}

.offer__plan-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.4;
}
.offer__plan-name small {
  font-size: .72em;
  font-weight: 500;
  color: var(--text-light);
}

.offer__plan-price {
  display: block;
  margin-top: 12px;
  line-height: 1.15;
}
.offer__plan-price small {
  font-size: .75rem;
  color: var(--text);
  font-weight: 500;
  margin-left: 6px;
  vertical-align: 0.15em;
}

.offer__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.48;
}

.offer__price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.offer__desc {
  font-size: .84rem;
  color: var(--text-light);
  line-height: 1.76;
  margin-bottom: 24px;
  text-align: center;
}

.offer__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.offer__notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .75rem;
  color: var(--text-light);
}
.offer__notes li { text-align: center; position: relative; padding-left: 0; }
.offer__notes li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-ink);
  margin-right: 8px;
  vertical-align: middle;
  opacity: .75;
}

@media (min-width: 768px) {
  .offer { padding: 80px 0; }
  .offer__inner { padding: 48px 40px; }
  .offer__title { font-size: 1.5rem; }
  .offer__price-amount { font-size: 3.5rem; }
  .offer__ctas { flex-direction: row; justify-content: center; gap: 12px; }
}

/* ---------- FLOW ---------- */
.flow { padding: 64px 0; background: var(--bg); }

.flow__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.flow__step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.flow__step-num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-ink);
  opacity: .45;
  line-height: 1;
  align-self: center;
}

.flow__step-icon {
  grid-row: 1 / 3;
  font-size: 1.4rem;
  align-self: center;
}

.flow__step h3 {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.flow__step p {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.74;
}

@media (min-width: 768px) {
  .flow { padding: 80px 0; }
  .flow__steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
  }
  .flow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    padding: 24px 16px;
  }
  .flow__step-icon .lp-icon { width: 32px; height: 32px; }
}

/* ---------- AI HEARING ---------- */
.ai-hearing { padding: 64px 0; background: var(--bg-gray); border-top: 1px solid var(--border); }

.ai-hearing .section-header {
  margin-bottom: 28px;
}

.ai-hearing__lead-copy {
  line-height: 1.78;
  font-size: .84rem;
}

.ai-hearing__desc-highlight {
  display: inline-block;
  margin-top: 0.15em;
  font-weight: 600;
  color: var(--brand-ink);
}

.ai-hearing__policy-note {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-top: 8px;
}

.ai-hearing__chat-container {
  max-width: 700px;
  margin: 8px auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.ai-hearing__chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 2px solid var(--brand);
  color: var(--dark);
  font-size: .78rem;
  font-weight: 500;
}

.ai-hearing__chat-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-green);
  flex-shrink: 0;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.ai-hearing__chat-embed {
  background: #fff;
  display: flex;
  flex-direction: column;
  height: min(520px, 72vh);
  min-height: 360px;
  min-width: 0;
  overflow: hidden;
}

.lp-chat__messages {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-gray);
}

.lp-chat__messages::-webkit-scrollbar { width: 4px; }
.lp-chat__messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.lp-chat__msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
  animation: lpChatFadeIn .3s ease;
}

@keyframes lpChatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lp-chat__msg--bot { align-self: flex-start; }
.lp-chat__msg--user { align-self: flex-end; flex-direction: row-reverse; }

.lp-chat__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-ink);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-chat__avatar--brand {
  background: transparent;
  padding: 0;
  overflow: visible;
}

.lp-chat__avatar--brand .lp-chat__avatar-svg {
  width: 32px;
  height: 32px;
  display: block;
}

.lp-chat__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  word-break: break-word;
  white-space: pre-wrap;
  font-size: .88rem;
  line-height: 1.65;
}

.lp-chat__msg--bot .lp-chat__bubble {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}

.lp-chat__msg--user .lp-chat__bubble {
  background: linear-gradient(165deg, #fff9d4 0%, #ffef8a 38%, #ffe566 100%);
  color: var(--on-brand);
  font-weight: 600;
  border: 1px solid var(--brand-border);
  border-top-right-radius: 4px;
  box-shadow: 0 1px 3px rgba(154, 136, 0, 0.12);
}

.lp-chat__line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: var(--line-green);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
  transition: background .2s;
  text-decoration: none;
}
.lp-chat__line-btn:hover { background: var(--line-green-dark); }
.lp-chat__line-btn svg { flex-shrink: 0; }

.lp-chat__typing { display: flex; gap: 4px; padding: 12px 16px; align-items: center; }
.lp-chat__typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  animation: lpTypingBounce 1.4s infinite ease-in-out;
}
.lp-chat__typing-dot:nth-child(2) { animation-delay: .2s; }
.lp-chat__typing-dot:nth-child(3) { animation-delay: .4s; }

@keyframes lpTypingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.lp-chat__quick-replies {
  flex-shrink: 0;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  max-height: min(240px, 42vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.lp-chat__quick-replies:empty { display: none; padding: 0; border: none; max-height: none; overflow: visible; }

.lp-chat__quick-btn {
  padding: 7px 8px;
  border: 1.5px solid var(--brand);
  border-radius: 16px;
  background: #fff;
  color: var(--dark);
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
  font-family: var(--font-sans);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}
.lp-chat__quick-btn:hover { background: var(--brand-light); border-color: var(--brand-ink); }
.lp-chat__quick-btn:active { background: var(--brand-dark); color: var(--on-brand); }

@media (min-width: 480px) {
  .lp-chat__quick-replies {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lp-chat__toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px 16px;
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
}

.lp-chat__tool-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-light);
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.lp-chat__tool-btn:hover:not(:disabled) {
  border-color: var(--brand-ink);
  color: var(--brand-ink);
  background: var(--brand-light);
}

.lp-chat__tool-btn:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.lp-chat__input-area {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #fff;
  min-width: 0;
}

.lp-chat__input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: .9rem;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--dark);
  resize: none;
  outline: none;
  transition: border-color .2s;
  max-height: 80px;
  overflow-y: auto;
}
.lp-chat__input::placeholder {
  color: #5c574d;
  opacity: 1;
}
.lp-chat__input:focus { border-color: var(--brand); }

.lp-chat__send-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--brand-ink);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s;
  flex-shrink: 0;
}
.lp-chat__send-btn:disabled { opacity: .4; cursor: not-allowed; }
.lp-chat__send-btn:not(:disabled):hover { background: #7A6A00; }

.ai-hearing__cta { text-align: center; margin-top: 24px; }
.ai-hearing__cta p { font-size: .85rem; color: var(--text-light); margin-bottom: 10px; }

@media (min-width: 768px) {
  .ai-hearing { padding: 80px 0; }
  .ai-hearing .section-header { margin-bottom: 48px; }
  .ai-hearing__lead-copy { font-size: .88rem; line-height: 1.95; }
  .ai-hearing__chat-container { border-radius: var(--radius-lg); margin-top: 0; }
}

/* ---------- MENU ---------- */
.menu { padding: 64px 0; background: var(--bg); }

.menu__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-gray);
  border-radius: 60px;
  padding: 4px;
}

.menu__tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 60px;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.menu__tab--active {
  background: var(--brand-dark);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 42, 31, .06);
}

.menu__content--hidden { display: none; }

.menu__offer-banner {
  padding: 12px 16px;
  background: var(--brand-light);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: .85rem;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.6;
}
.menu__offer-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--brand);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: 60px;
  margin-right: 6px;
}

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

.menu__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  transition: var(--transition);
  position: relative;
}

/* 鍼メニュー以外はブランドの黄色枠で統一 */
.menu .menu__cards > .menu__card:not(.menu__card--hari) {
  border: 2px solid var(--brand-border);
}
.menu .menu__cards > .menu__card.menu__card--hari {
  border: 1px solid var(--border);
}

.menu__card--premium {
  background: var(--bg);
}

.menu__card-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 2px 12px;
  background: var(--brand-dark);
  color: var(--on-brand);
  font-size: .68rem;
  font-weight: 600;
  border-radius: 60px;
}

.menu__card-badge--premium { background: var(--brand-dark); }
/* 保険タブのバッジ（保険適用・自賠責）を同じ視認サイズに */
.menu__card-badge--tab-emphasis {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  -webkit-font-smoothing: antialiased;
}
.menu__card-badge--jibai {
  background: #0f3554;
  color: #fff;
}

/* 交通事故カード：説明文・注記に「自賠責保険」が含まれるため本文も読みやすく */
.menu__card:has(.menu__card-badge--jibai) .menu__card-desc {
  color: var(--text);
}
.menu__card:has(.menu__card-badge--jibai) .menu__card-price-note {
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
}

.menu__card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.menu__card-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 2px;
}

.menu__card-desc {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.9;
}

.menu__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.menu__card-tags span {
  padding: 2px 10px;
  background: var(--brand-light);
  color: var(--brand-ink);
  font-size: .68rem;
  font-weight: 500;
  border-radius: 60px;
}

.menu__card-price table { width: 100%; font-size: .78rem; color: var(--text); }
.menu__card-price td { padding: 3px 0; }
.menu__card-price td:first-child { font-weight: 600; width: 72px; color: var(--text-light); }

.menu__card-price-highlight { text-align: center; }

.menu__card-price-big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}
.menu__card-price-big + .menu__card-price-big {
  margin-top: 6px;
  font-size: 1.15rem;
}
.menu__card-price-big small { font-size: .72em; font-weight: 500; color: var(--text); }

.menu__card-price-note {
  display: block;
  font-size: .72rem;
  color: var(--text-light);
  margin-top: 4px;
}

@media (min-width: 768px) {
  .menu { padding: 80px 0; }
  .menu__tabs { max-width: 400px; margin-left: auto; margin-right: auto; margin-bottom: 36px; }
  .menu__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
  .menu__card { padding: 28px 24px; }
  .menu__card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .menu__card-price-big { font-size: 1.4rem; }
}

/* ---------- MID CTA ---------- */
.mid-cta {
  padding: 52px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mid-cta__inner { text-align: center; max-width: 600px; margin: 0 auto; }

.mid-cta__inner h2,
.mid-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw + 0.65rem, 1.85rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.mid-cta__inner p { font-size: .84rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.78; }

.mid-cta__buttons { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 768px) {
  .mid-cta { padding: 60px 0; }
  .mid-cta__inner h2,
  .mid-cta__title {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    letter-spacing: 0;
    line-height: 1.4;
  }
  .mid-cta__buttons { flex-direction: row; justify-content: center; gap: 12px; }
}

/* ---------- STAFF ---------- */
.staff { padding: 64px 0; background: var(--bg-gray); }

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

.staff__card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.staff__card-image {
  height: 340px;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.staff__card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.staff__card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ink);
  font-size: .82rem;
  font-weight: 500;
}

.staff__card-body { padding: 20px 16px; }

.staff__card-role {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: .06em;
  margin-bottom: 6px;
  padding: 5px 12px;
  background: var(--brand-light);
  border: 1px solid rgba(var(--brand-rgb), .4);
  border-radius: 6px;
  line-height: 1.3;
}

.staff__card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.staff__card-qualification {
  font-size: .75rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.staff__card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.staff__card-tags span {
  padding: 3px 10px;
  background: var(--brand-light);
  color: var(--brand-ink);
  font-size: .7rem;
  font-weight: 500;
  border-radius: 60px;
}

.staff__card-message {
  font-size: .85rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 8px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--brand);
}
.staff__card-message + .staff__card-message {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 1px solid var(--border);
}

.staff__card-career h4 { font-size: .75rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }

.staff__card-career ul { display: flex; flex-direction: column; gap: 3px; }

.staff__card-career li {
  font-size: .75rem;
  color: var(--text-light);
  padding-left: 14px;
  position: relative;
}
.staff__card-career li::before { content: '•'; position: absolute; left: 0; color: var(--brand); }

@media (min-width: 768px) {
  .staff { padding: 80px 0; }
  .staff__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .staff__card-image { height: 400px; }
  .staff__card-body { padding: 28px; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 64px 0; background: var(--bg); }

.testimonials__grid { display: flex; flex-direction: column; gap: 18px; }

.testimonials__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
}

.testimonials__card-stars {
  font-family: var(--font-display);
  color: var(--brand-ink);
  font-size: .72rem;
  letter-spacing: .35em;
  margin-bottom: 10px;
  opacity: .85;
}

.testimonials__card-text {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.82;
  margin-bottom: 12px;
}

.testimonials__card-author { display: flex; align-items: center; gap: 10px; }

.testimonials__card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonials__card-author strong { display: block; font-size: .8rem; color: var(--dark); }
.testimonials__card-author span { font-size: .7rem; color: var(--text-light); }

.testimonials__note { text-align: center; margin-top: 16px; font-size: .75rem; color: var(--text-light); }

@media (min-width: 768px) {
  .testimonials { padding: 80px 0; }
  .testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonials__card { padding: 28px; }
  .testimonials__card:hover { box-shadow: var(--shadow-md); }
}

/* ---------- FAQ ---------- */
.faq { padding: 64px 0; background: var(--bg-gray); }

.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item[open] { border-color: var(--brand); }

.faq__question {
  padding: 16px 44px 16px 16px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  position: relative;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; content: ''; }

.faq__question::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--brand);
  font-weight: 400;
  transition: var(--transition);
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__answer {
  padding: 0 16px 16px;
}

.faq__answer p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 2;
}

@media (min-width: 768px) {
  .faq { padding: 80px 0; }
  .faq__question { padding: 20px 52px 20px 24px; font-size: .95rem; }
  .faq__answer { padding: 0 24px 20px; }
}

/* ---------- ACCESS ---------- */
.access { padding: 64px 0; background: var(--bg); }

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

.access__info-card {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.access__info-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.access__table { width: 100%; font-size: .85rem; }

.access__table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  padding: 6px 12px 6px 0;
  vertical-align: top;
  width: 72px;
}

.access__table td { padding: 6px 0; color: var(--text); }
.access__table a { color: var(--brand-ink); font-weight: 600; }

.access__schedule {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1px solid var(--border);
}

.access__schedule h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.access__schedule-table { width: 100%; text-align: center; font-size: .8rem; margin-bottom: 10px; }
.access__schedule-table th { padding: 6px 2px; font-weight: 600; color: var(--text-light); }
.access__schedule-table td { padding: 6px 2px; color: var(--text); }
.access__schedule-label { font-weight: 600; color: var(--brand-ink) !important; }
.access__schedule-note { font-size: .75rem; color: var(--text-light); margin-top: 4px; }

.access__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.access__map-iframe iframe { display: block; }

.access__map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  margin-top: 8px;
  background: var(--brand-dark);
  color: var(--on-brand);
  font-size: .88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(46, 42, 31, .08);
}
.access__map-btn .lp-icon { color: var(--on-brand); }
.access__map-btn:hover { background: var(--cta-dark); }

@media (min-width: 768px) {
  .access { padding: 80px 0; }
  .access__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .access__info-card { padding: 28px; }
  .access__schedule { padding: 28px; }
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  padding: 64px 0 56px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
}
.final-cta::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--brand);
  margin: 0 auto 20px;
}

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

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.2vw, 1.85rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.final-cta__subtitle {
  font-size: clamp(0.82rem, 2.4vw + 0.55rem, 0.92rem);
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.85;
  max-width: min(100%, 34rem);
  padding: 0 6px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.final-cta__subtitle-lead {
  display: block;
  text-align: center;
}
.final-cta__subtitle-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.final-cta__web-badge {
  display: inline-block;
  padding: 5px 16px;
  background: var(--brand-dark);
  color: var(--on-brand);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: 60px;
}
.final-cta__subtitle-action {
  display: block;
  text-align: center;
  font-size: clamp(0.8rem, 2.2vw + 0.52rem, 0.95rem);
  line-height: 1.55;
  letter-spacing: -0.025em;
}
.final-cta__subtitle-action small {
  font-size: .82em;
  color: var(--text);
  font-weight: 500;
}
.final-cta__price {
  color: var(--brand-ink);
  font-weight: 700;
}

.final-cta__options { display: flex; flex-direction: column; gap: 20px; }

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

.final-cta__option-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.final-cta__option p {
  margin-top: 8px;
  font-size: .75rem;
  color: var(--text-light);
  line-height: 1.5;
}

.final-cta__option-divider { display: none; }

@media (min-width: 768px) {
  .final-cta { padding: 80px 0; }
  .final-cta__title {
    font-size: clamp(1.45rem, 3.2vw, 2.5rem);
    letter-spacing: 0;
  }
  .final-cta__subtitle { margin-bottom: 48px; font-size: 0.92rem; }
  .final-cta__subtitle-action { font-size: 0.95rem; letter-spacing: 0; }
  .final-cta__options { flex-direction: row; align-items: flex-start; justify-content: center; gap: 32px; }
  .final-cta__option { min-width: 200px; }
  .final-cta__option-divider { display: flex; align-items: center; padding-top: 36px; }
  .final-cta__option-divider span { font-size: .85rem; color: var(--text-light); font-weight: 500; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 32px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text);
}

.footer__inner { text-align: center; }

.footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.footer__logo span { font-weight: 500; font-size: .85em; color: var(--text-light); }
.footer__address { font-size: .75rem; margin-bottom: 6px; color: var(--text-light); }
.footer__copyright { font-size: .65rem; color: var(--text-light); opacity: .85; }

/* ---------- FLOATING CTA (Mobile) ---------- */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
  padding: 6px 8px;
  gap: 6px;
}

.floating-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 4px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  min-height: 48px;
}

.floating-cta__phone {
  background: var(--brand-dark);
  color: var(--on-brand) !important;
  border: 1px solid rgba(46, 42, 31, .08);
}
.floating-cta__line { background: var(--line-green); color: #fff !important; }
.floating-cta__chat { background: var(--dark); color: #fff !important; }
.floating-cta a .lp-icon { color: inherit; }

@media (min-width: 768px) {
  .floating-cta { display: none; }
}

/* ---------- ANIMATIONS ---------- */
/* script.js が <html> に .js-ready を付与。未対応時はそのまま表示 */
/* 企業LPで多い「下からゆっくりフェードイン」に近い挙動 */
.js-ready .fade-in,
.js-ready .reveal-up {
  opacity: 0;
  -webkit-transform: translate3d(0, var(--reveal-y), 0);
  transform: translate3d(0, var(--reveal-y), 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    -webkit-transform var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}
.js-ready .fade-in.visible,
.js-ready .reveal-up.visible,
.fade-in.visible,
.reveal-up.visible {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  will-change: auto;
}

@media (min-width: 768px) {
  .js-ready .fade-in,
  .js-ready .reveal-up {
    filter: blur(6px);
  }
}

/* ヒーロー：テキスト→写真の順に少しずれて表示 */
.js-ready .hero__text--lead.reveal-up,
.js-ready .hero__text--tail.reveal-up { transition-delay: 0.05s; }
.js-ready .hero__photo.reveal-up { transition-delay: 0.22s; }

/* お悩みカード：順にずらして表示 */
.js-ready .problems__grid .fade-in:nth-child(1) { transition-delay: 0s; }
.js-ready .problems__grid .fade-in:nth-child(2) { transition-delay: 0.12s; }
.js-ready .problems__grid .fade-in:nth-child(3) { transition-delay: 0.24s; }
.js-ready .problems__grid .fade-in:nth-child(4) { transition-delay: 0.36s; }
.js-ready .problems__grid .fade-in:nth-child(n + 5) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none !important;
    opacity: 0 !important;
    animation: none !important;
  }
  .hero__slide:first-child {
    opacity: 1 !important;
  }
  .hero__slide img,
  .hero__slide--active img {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    transform: none !important;
    filter: none !important;
  }

  .js-ready .fade-in,
  .js-ready .reveal-up {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    filter: none !important;
    transition: none;
    will-change: auto;
  }
}
