@charset "UTF-8";
/* =========================================================================
   Dentalflow — common.css（全7ページ共通の土台）
   - 基準：PC 1440px で 1rem = 10px（≥1024px は 100vw/144、上限キャップなし）
           SP（<1024px）は min(100vw/37.5, 10px)
   - 値は Figma（fileKey JP6Dl8CIhMJf7p9fhbe1P6）の実値。px ÷ 10 = rem。
   - 使い方・クラス一覧は assets/css/README-foundation.md
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens（Figma 変数を 1:1 で写したもの＋役割名の裸値）
   ------------------------------------------------------------------------- */
:root {
  /* Form input (shared by blog / contact) — Figma effect style Neutral/BS Small = 0 1 3 #1F2F541A */
  --color-input-border: #e9edf3;
  --shadow-input: 0 0.1rem 0.3rem rgba(31, 47, 84, 0.1);
  /* Color — Figma variables */
  --color-primary-100: #c399ff;   /* Primary Colors/100 */
  --color-primary-200: #d7baff;   /* Primary Colors/200 */
  --color-primary-300: #f8f2ff;   /* Primary Colors/300 */
  --color-primary-400: #aa6eff;   /* Primary Colors/400 */
  --color-neutral-100: #ffffff;   /* Neutrals Colors/100 */
  --color-neutral-200: #d1d9e7;   /* Neutrals Colors/200 */
  --color-neutral-400: #757f95;   /* Neutrals Colors/400 */
  --color-neutral-600: #3d527a;   /* Neutrals Colors/600 */
  --color-neutral-700: #2d3c5a;   /* Neutrals Colors/700 */
  --color-neutral-800: #1d273f;   /* Neutrals Colors/800 */
  --color-secondary-100: #f7f7f0; /* Secondary Colors/100（ページ地色） */

  /* Color — role tokens (Figma raw values without a variable) */
  --color-page-bg: var(--color-secondary-100);
  --color-heading: var(--color-neutral-800);
  --color-text: var(--color-neutral-700);
  --color-text-on-dark: var(--color-neutral-200);
  --color-accent-em: var(--color-primary-400);        /* 見出し強調（明背景） */
  --color-accent-em-dark: var(--color-primary-100);   /* 見出し強調（暗背景） */
  --color-rating-text: #1d3741;                       /* ヒーロー評価ピルの文字 */
  --color-header-btn-dark: #505c77;                   /* Header V1 予約ボタン地 */
  --color-header-btn-border-dark: rgba(255, 255, 255, 0.09);
  --color-header-line-dark: rgba(255, 255, 255, 0.16);
  --color-header-line-light: #c8cdd8;
  --color-newsletter-bg: #f7f6f9;
  --color-newsletter-placeholder: #74809c;
  --color-photo-placeholder: #d8d8d8;
  --color-faq-icon-bg: #dee3ed;

  /* Typography */
  --font-primary: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ls-default: -0.01em; /* Figma letterSpacing -1% */

  --fs-h1: 6rem;     --lh-h1: 6.2rem;    /* T-H1 60/62 */
  --fs-h2: 4.6rem;   --lh-h2: 4.8rem;    /* T-H2 46/48 */
  --fs-h3: 2.4rem;   --lh-h3: 3rem;      /* T-H3 24/30 */
  --fs-card: 2.2rem; --lh-card: 2.6rem;  /* T-CARD 22/26 */
  --fs-lead: 2rem;   --lh-lead: 2.5rem;  /* Display 5 20/25 */
  --fs-sub: 1.8rem;  --lh-sub: 1.8rem;   /* Display 4 18/18 */
  --fs-body: 1.6rem; --lh-body: 2.4rem;  /* T-BODY 16/24 */
  --fs-btn: 1.6rem;  --lh-btn: 1.8rem;   /* T-BTN 16/18 */
  --fs-small: 1.4rem; --lh-small: 2.2rem;/* Paragraph Small 14/22 */
  --fs-tag: 1.4rem;  --lh-tag: 1.25;     /* T-TAG 14/1.25 */
  --fs-logo: 2.1704rem; --lh-logo: 2.3513rem;

  /* Radius */
  --radius-btn: 1.2rem;
  --radius-card: 1.6rem;
  --radius-card-lg: 2rem;
  --radius-section: 2.8rem;
  --radius-icon: 0.8471rem;

  /* Spacing (layout scale used between sections) */
  --space-section: 12rem;      /* Figma：セクション間の標準 120px */
  --container: 106.8rem;       /* コンテンツ列 186〜1254 */
  --sp-gutter: 2rem;           /* SP の左右余白 */
}

/* -------------------------------------------------------------------------
   2. rem system（フルレスポンシブ vw 比例）
   ------------------------------------------------------------------------- */
html { font-size: calc(100vw / 144); }                 /* ≥1024：1440基準、上限なし */
@media (max-width: 1023px) {
  html { font-size: min(calc(100vw / 37.5), 10px); }  /* SP：375基準・10px頭打ち */
}

/* -------------------------------------------------------------------------
   3. Reset / normalize
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address, cite, em, i { font-style: normal; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
input { margin: 0; }

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-default);
  color: var(--color-text);
  background: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Figma の letterSpacing -1% は「各要素の自分の font-size の -1%」。em は宣言要素で絶対値化されて継承されるため、
   全要素に直接当てる（詳細度0の :where で、個別指定があればそちらが勝つ） */
:where(*) { letter-spacing: var(--ls-default); }
:where(.ls-0, .ls-0 *) { letter-spacing: 0; }

:focus-visible { outline: 2px solid var(--color-primary-400); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* -------------------------------------------------------------------------
   4. Typography helpers
   ------------------------------------------------------------------------- */
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 500; color: var(--color-heading); }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 500; color: var(--color-heading); }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; color: var(--color-heading); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; color: var(--color-text); }
/* 見出しの強調語（Medium Italic） */
.em { font-style: italic; font-weight: 500; color: var(--color-accent-em); }
.em--light { color: var(--color-accent-em-dark); }
.em--white { color: var(--color-neutral-100); }
.is-dark .t-h1, .is-dark .t-h2 { color: var(--color-neutral-100); }

.l-container { width: var(--container); margin-inline: auto; }

/* -------------------------------------------------------------------------
   5. Buttons（Primary / Secondary）
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  border-radius: var(--radius-btn);
  font-size: var(--fs-btn); line-height: var(--lh-btn); font-weight: 600; letter-spacing: var(--ls-default);
  white-space: nowrap; flex-shrink: 0;
  transition: background-color .2s, border-color .2s, color .2s;
}
/* Primary：左に紺カレンダー(34)、右に↓(20)。余白 4/20/4/4、地 #C399FF */
.btn--primary {
  padding: 0.4rem 2rem 0.4rem 0.4rem;
  background: var(--color-primary-100); color: var(--color-neutral-800);
}
.btn--primary .btn__cal { width: 3.4rem; height: 3.4rem; }
.btn--primary .btn__arrow { width: 2rem; height: 2rem; }
.btn--primary:hover { background: var(--color-primary-200); }
.btn--primary.btn--soft { background: var(--color-primary-300); }   /* フッター用 #F8F2FF */
.btn--primary.btn--soft:hover { background: var(--color-neutral-100); }
/* Secondary：枠線のみ。明背景＝枠#D1D9E7・紺文字／暗背景＝枠#757F95・白文字 */
.btn--secondary {
  padding: 1.1rem 1.9rem; border: 1px solid var(--color-neutral-200); /* Figma padding 12/20 includes the inner 1px border */ color: var(--color-neutral-800);
}
.btn--secondary:hover { border-color: var(--color-primary-100); }
.btn--secondary.btn--on-dark { border-color: var(--color-neutral-400); color: var(--color-neutral-100); }
.btn--secondary.btn--on-dark:hover { border-color: var(--color-primary-100); }
.btn-group { display: flex; align-items: center; gap: 1rem; }

/* 矢印の正方形ボタン（46×46・角丸12） */
.arrow-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4.6rem; height: 4.6rem; border-radius: 1.2rem; flex-shrink: 0;
}
.arrow-btn img { width: 2.4508rem; height: 2.4508rem; }
.arrow-btn--white { background: var(--color-neutral-100); }
.arrow-btn--purple { background: var(--color-primary-400); }

/* -------------------------------------------------------------------------
   6. Header（assets/js/partials.js が挿入。V1=dark / V2=light）
      1065×85、ヒーロー（パネル）の上端に置く
   ------------------------------------------------------------------------- */
.site-header {
  position: relative; z-index: 20;
  width: 106.5rem; height: 8.5rem; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1.5px solid var(--header-line);
  color: var(--header-text);
  --header-text: var(--color-neutral-100);
  --header-line: var(--color-header-line-dark);
}
.site-header--light { --header-text: var(--color-neutral-800); --header-line: var(--color-header-line-light); }

.site-header__logo {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.33rem;
  font-size: var(--fs-logo); line-height: var(--lh-logo); font-weight: 700;
  color: var(--header-text);
}
.site-header__logo, .site-header__logo *, .footer-brand__logo, .footer-brand__logo * { letter-spacing: 0; }
/* ロゴマーク：見た目 17.935×13.09、SVG は線のはみ出し込み 20.03×15.18 */
.logo-mark { width: 2.0029rem; height: 1.5184rem; margin: 0 -0.1047rem; flex-shrink: 0; }

.site-header__nav { display: flex; align-items: center; gap: 1.6rem; }
.site-header__nav a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: var(--fs-btn); line-height: var(--lh-btn); font-weight: 500; color: var(--header-text);
}
.site-header__nav a:hover { color: var(--color-primary-100); }
.site-header--light .site-header__nav a:hover { color: var(--color-primary-400); }
.site-header__chevron { width: 0.9795rem; height: 0.5378rem; }

.site-header__cta {
  justify-self: end; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem; padding-right: 1rem; border-radius: 1rem; border: 1px solid transparent;
  font-size: 1.4rem; line-height: 1.6rem; font-weight: 600; white-space: nowrap;
}
.site-header__cta img { width: 1.3rem; height: 1.3rem; padding: 0.02rem; }
.site-header--dark .site-header__cta { background: var(--color-header-btn-dark); border-color: var(--color-header-btn-border-dark); color: var(--color-neutral-100); }
.site-header--light .site-header__cta { background: var(--color-primary-100); color: var(--color-neutral-800); }
.site-header__toggle { display: none; }
.site-header__menu { display: contents; }
.site-header__menu-cta { display: none; }

/* -------------------------------------------------------------------------
   7. Footer（Footer V1・全ページ共通。assets/js/partials.js が挿入）
   ------------------------------------------------------------------------- */
.site-footer { background: var(--color-secondary-100); padding: 0 3.27rem 3.86rem; }
.site-footer__box {
  background: var(--color-neutral-100); border-radius: var(--radius-card);
  padding: 10.03rem 0 10rem;
}
.footer-cta {
  width: 107rem; min-height: 22.5074rem; margin-inline: auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0 2.78rem 0 4.07rem;
  background: url("../img/common/footer-cta-bg.svg") center / 100% 100% no-repeat;
  border-radius: var(--radius-card);
}
.footer-cta__title {
  align-self: center; width: 44.73rem; margin-top: 0.9rem;
  font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 500; color: var(--color-neutral-100);
}
.footer-cta__title .em { color: var(--color-neutral-100); }
.footer-cta .btn { margin-top: 8.46rem; }

.footer-main { width: 107rem; margin: 5.11rem auto 0; display: flex; align-items: flex-start; }
.footer-brand { width: 37.32rem; flex-shrink: 0; }
.footer-brand__logo {
  display: flex; width: fit-content; align-items: center; gap: 0.33rem;
  font-size: var(--fs-logo); line-height: var(--lh-logo); font-weight: 700; letter-spacing: 0; color: var(--color-neutral-800);
}
.footer-brand__copy {
  width: 30rem; margin: 2.45rem 0 0 0.206rem; white-space: pre-wrap; /* Figma x = 12.99% of the footer = 187.06 (2.06px right of the column edge) */
  font-size: 1.6rem; line-height: 2.2rem; font-weight: 400; letter-spacing: 0; color: var(--color-neutral-700);
}
.footer-brand__copy strong { font-weight: 500; letter-spacing: 0; }
.newsletter {
  position: relative; width: 30rem; height: 4rem; margin: 5.6rem 0 0 0.206rem; /* same 187.06 as the copyright */
  background: var(--color-newsletter-bg); border-radius: 0.8rem;
}
.newsletter input {
  width: 100%; height: 100%; border: 0; background: transparent; padding: 0 4.4rem 0 1.08rem;
  font-size: 1.6rem; line-height: 2rem; letter-spacing: 0; color: var(--color-neutral-800);
}
.newsletter input::placeholder { color: var(--color-newsletter-placeholder); opacity: 1; }
.newsletter button {
  position: absolute; top: 0.3rem; right: 0.3rem; width: 3.4rem; height: 3.4rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-100); border-radius: 0.8rem;
}
.newsletter button img { width: 2rem; height: 2rem; }

.footer-col__title { font-size: 1.6rem; line-height: 2.4rem; font-weight: 600; color: var(--color-neutral-800); }
.footer-pages { width: 49.7rem; flex-shrink: 0; padding-top: 0.3rem; }
.footer-pages__cols { display: flex; margin-top: 2.4rem; }
.footer-pages__cols ul:nth-child(1) { width: 14.8rem; }
.footer-pages__cols ul:nth-child(2) { width: 15.2rem; }
.footer-links { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-links a { font-size: 1.6rem; line-height: 2.4rem; font-weight: 400; color: var(--color-neutral-400); }
.footer-links a:hover { color: var(--color-primary-400); }
.footer-utility { padding-top: 0.3rem; }
.footer-utility .footer-links { margin-top: 2.4rem; }
.footer-links a.footer-links__more {
  display: block; width: 20.3rem; font-size: 1.8rem; line-height: 2.2rem; color: var(--color-neutral-600);
  text-decoration: underline; text-underline-position: from-font; text-decoration-skip-ink: none; letter-spacing: 0;
}

/* -------------------------------------------------------------------------
   8. Shared components
   ------------------------------------------------------------------------- */

/* 8-1. Profile Card（ドクター紹介カード 343.317×416.648） */
.profile-card {
  position: relative; width: 34.3317rem; padding: 1.39rem 1.39rem 1.94rem;
  background: var(--color-neutral-100); border-radius: var(--radius-card-lg);
  filter: drop-shadow(0 0.4rem 0.25rem rgba(92, 92, 92, 0.1));
}
.profile-card__photo { position: relative; width: 31.5508rem; height: 33.8857rem; border-radius: 1.2rem; overflow: hidden; background: var(--color-primary-300); }
.profile-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card__text { position: absolute; top: 3.546rem; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; }
.profile-card__role {
  background: var(--color-neutral-100); border-radius: 0.4rem; padding: 0.3rem 0.6rem;
  box-shadow: 0 0.1rem 0.4rem rgba(108, 66, 170, 0.13);
  font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 500; letter-spacing: 0; color: var(--color-neutral-800); white-space: nowrap;
}
.profile-card__name { margin-top: 0.549rem; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; color: var(--color-neutral-800); text-align: center; }
.profile-card__foot { display: flex; align-items: center; justify-content: space-between; height: 2.5rem; margin-top: 1.95rem; }
.profile-card__sns { display: flex; gap: 0.8rem; }
.profile-card__sns a, .profile-card__sns img { width: 2rem; height: 2rem; }
.plus-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.8rem; background: var(--color-neutral-800); flex-shrink: 0; }
.plus-btn img { width: 1.5rem; height: 1.5rem; }

/* 8-2. Article card（524.145×300・白・角丸16。写真 230×240.184 角丸12） */
.article-card {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start;
  width: 52.4145rem; height: 30rem; padding: 2.996rem 2.4375rem 0 2.52rem;
  background: var(--color-neutral-100); border-radius: var(--radius-card);
}
.article-card__body { width: 21.97rem; padding-top: 2.304rem; }
.article-card__date {
  display: inline-flex; padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: var(--color-neutral-100);
  box-shadow: 0 0.1rem 0.4rem rgba(108, 66, 170, 0.13);
  font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--color-primary-400); white-space: nowrap;
}
.article-card__title { margin-top: 2.604rem; font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 500; color: var(--color-neutral-800); }
.article-card__title a:hover { color: var(--color-primary-400); }
.article-card__excerpt { margin-top: 0.8rem; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-neutral-700); }
.article-card__img { width: 23rem; height: 24.0184rem; border-radius: 1.2rem; overflow: hidden; flex-shrink: 0; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; }

/* 8-3. Before / After（Component 1・1069.969×503.156。index / contact） */
.before-after { width: 106.9969rem; margin-inline: auto; }
.before-after__title { width: 45.16rem; margin-inline: auto; text-align: center; }
.before-after__desc { width: 44.84rem; margin: 1.4rem auto 0; text-align: center; }
.before-after__images { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 1.579rem; }
.before-after__item { position: relative; width: 52.4027rem; border-radius: 1.2rem; overflow: hidden; }
.before-after__item img { width: 100%; height: 100%; object-fit: cover; }
.before-after__item--before { height: 26.2014rem; }
.before-after__item--after { height: 26.0656rem; margin-top: 0.068rem; }
.before-after__label {
  position: absolute; left: 1.32rem; top: 21.07rem;
  padding: 0.6rem 1.2rem; border-radius: 0.6rem; background: var(--color-neutral-100);
  font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 500; color: var(--color-neutral-800);
}
.before-after__item--after .before-after__label { top: 21.0rem; }
.before-after__nav { display: flex; justify-content: space-between; margin-top: 2.136rem; }
/* Before/After arrows: the Figma render shows a soft shadow under the white buttons (not in the node data; same value as about's FAQ arrows) */
.before-after__nav .arrow-btn--white { box-shadow: 0 0.4rem 0.5rem rgba(92, 92, 92, 0.1); }

/* 8-4. Locations slider + contact rows（about / contact）
   Figma：Group 1000010244（1702.054×544.227）。about 16070:26154 / contact 16069:22042 で実測（2026-09-23 検証済み）
   - トラック左端はページ x=-14.94（about）。カード 406.054×476.227・角丸26・間隔 25.915（ステップ 431.97）
   - ラベル 377×62・角丸14・カード内 (14.53, 398.42)、内側 11px、国旗40＋gap 8＋都市名、＋ボタンはラベル右端から 22.7
   - 選ばれていないカードは写真・ラベル（＋ボタン含む）とも opacity .7
   - 連絡先の行：カード下端から 32、コンテナ左端（186）から +5.56 で左揃え、項目の間隔 70・アイコン36と文字の間 11 */
.locations { overflow-x: clip; }
.locations__track { display: flex; gap: 2.5915rem; width: max-content; margin-left: -1.494rem; }
.location-card { position: relative; width: 40.6054rem; height: 47.6227rem; flex-shrink: 0; border-radius: 2.6rem; overflow: hidden; }
.location-card__img { width: 100%; height: 100%; object-fit: cover; }
.location-card:not(.is-active) .location-card__img { opacity: 0.7; }
/* Inactive card label: Figma keeps the white background solid and fades only the contents (flag, city, +) to 70% (label text = navy at 70% over white = #61687A) */
.location-card:not(.is-active) .location-card__label { color: rgb(29 39 63 / 0.7); }
.location-card:not(.is-active) .location-card__flag,
.location-card:not(.is-active) .location-card__label .plus-btn { opacity: 0.7; }
.location-card__label {
  position: absolute; left: 1.453rem; top: 39.842rem; width: 37.7rem; height: 6.2rem;
  display: flex; align-items: center; gap: 0.8rem; padding: 0 2.27rem 0 1.1rem;
  background: var(--color-neutral-100); border-radius: 1.4rem;
  font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 600; color: var(--color-neutral-800); white-space: nowrap;
}
.location-card__flag { width: 4rem; height: 4rem; border-radius: 50%; flex-shrink: 0; }
.location-card__label .plus-btn { margin-left: auto; }
.contact-rows { display: flex; align-items: center; gap: 7rem; width: var(--container); margin: 3.2rem auto 0; padding-left: 0.556rem; }
.contact-row { display: flex; align-items: center; gap: 1.1rem; font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 600; color: var(--color-neutral-800); white-space: nowrap; }
.contact-row__icon { display: flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; border-radius: var(--radius-icon); background: var(--color-primary-100); flex-shrink: 0; }
.contact-row__icon img { width: 2.5rem; height: 2.5rem; margin: -0.072rem 0 0 -0.076rem; }
/* 項目の開始位置を Figma（アイコン x=191.56 / 670.56 / 1037.56）に固定：ブラウザの字幅差で後ろの項目がずれないように */
.contact-row:nth-child(1) { min-width: 40.9rem; }
.contact-row:nth-child(2) { min-width: 29.7rem; }

/* 8-5. FAQ accordion（contact 型。閉 570×100.875 / 開 570×170・白・角丸16）
   Figma：contact 16069:22043 内 Group 1000005899〜5906 で実測（2026-09-23 検証済み）
   - 閉：質問は上下 37.43 の中央・左 29.53、幅 440.5（右 99.98）。アイコン32 は右から 29.18、縦中央（34.44）
   - 開：質問 top 40.66、アイコン top 34.66（質問より 6 上）、回答は質問の 8 下・2行・下 47.34 */
.faq-list { display: flex; flex-direction: column; gap: 1.6rem; }
.faq-item { width: 57rem; background: var(--color-neutral-100); border-radius: var(--radius-card); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 3.882rem; width: 100%;
  padding: 3.743rem 2.918rem 3.744rem 2.953rem; text-align: left;
  font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 500; color: var(--color-neutral-800);
}
.faq-item__icon { width: 3.2rem; height: 3.2rem; flex-shrink: 0; margin-block: -0.3rem; }
.faq-item__icon--minus { display: none; }
.faq-item.is-open .faq-item__icon--plus { display: none; }
.faq-item.is-open .faq-item__icon--minus { display: block; }
.faq-item.is-open .faq-item__q { align-items: flex-start; padding-top: 4.066rem; padding-bottom: 0; }
.faq-item.is-open .faq-item__icon { margin-block: -0.6rem 0; }
.faq-item__a { display: none; padding: 0.8rem 9.998rem 4.734rem 2.953rem; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-neutral-700); }
.faq-item.is-open .faq-item__a { display: block; }

/* 8-6. Horizontal “static slider” section: 1440でFigmaのはみ出し状態を再現し、ページ横スクロールは出さない */
.is-clip { overflow-x: clip; }

/* =========================================================================
   SP（<1024px）— Figma に SP カンプなし：1カラム化・ハンバーガー・横スクロール
   ========================================================================= */
@media (max-width: 1023px) {
  :root {
    --container: calc(100% - var(--sp-gutter) * 2);
    /* SP の左右インセット：375付近は 2rem、広いSP幅(〜1023)では本文列を 72rem に収めて中央寄せ */
    --sp-inset: max(var(--sp-gutter), calc((100vw - 72rem) / 2));
  }
  .l-container { width: auto; max-width: 72rem; margin-inline: var(--sp-gutter); }
  @supports (margin-inline: max(1px, 2px)) {
    .l-container { margin-inline: max(var(--sp-gutter), calc((100% - 72rem) / 2)); }
  }
  :root {
    --fs-h1: 3.8rem; --lh-h1: 4.2rem;
    --fs-h2: 3.2rem; --lh-h2: 3.6rem;
    --fs-h3: 2.2rem; --lh-h3: 2.8rem;
    --fs-card: 2rem; --lh-card: 2.5rem;
    --fs-lead: 1.8rem; --lh-lead: 2.4rem;
    --fs-sub: 1.6rem; --lh-sub: 2rem;
    --space-section: 6.4rem;
  }
  .btn-group { flex-wrap: wrap; }

  /* Header（SP）：ロゴ＋ハンバーガー、メニューはパネル */
  .site-header { width: auto; height: 6.4rem; margin-inline: var(--sp-gutter); display: flex; justify-content: space-between; }
  .site-header__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 0.5rem;
    width: 4.4rem; height: 4.4rem; padding: 0 1rem; border-radius: 1rem; border: 1px solid var(--header-line);
  }
  .site-header__toggle span { display: block; height: 2px; border-radius: 1px; background: var(--header-text); transition: transform .2s, opacity .2s; }
  .site-header.is-open .site-header__toggle span:nth-child(1) { transform: translateY(0.7rem) rotate(45deg); }
  .site-header.is-open .site-header__toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .site-header__toggle span:nth-child(3) { transform: translateY(-0.7rem) rotate(-45deg); }
  .site-header__menu {
    display: none; position: absolute; top: calc(100% + 0.8rem); left: 0; right: 0;
    flex-direction: column; gap: 2rem; padding: 2.4rem 2rem;
    border-radius: 1.6rem; box-shadow: 0 1rem 3rem rgba(29, 39, 63, 0.25);
  }
  .site-header--dark .site-header__menu { background: var(--color-neutral-800); border: 1px solid var(--color-header-line-dark); }
  .site-header--light .site-header__menu { background: var(--color-neutral-100); }
  .site-header.is-open .site-header__menu { display: flex; }
  .site-header__nav { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .site-header__nav a { font-size: 1.8rem; line-height: 2.4rem; }
  .site-header__cta { display: none; }
  .site-header__menu-cta { display: inline-flex; align-self: flex-start; }

  /* Footer（SP） */
  .site-footer { padding: 0 1.2rem 2.4rem; }
  .site-footer__box { padding: 1.2rem 1.2rem 4rem; }
  .footer-cta { width: auto; min-height: 0; flex-direction: column; gap: 2.4rem; padding: 3.2rem 2.4rem; background-size: cover; }
  .footer-cta__title { width: auto; align-self: flex-start; }
  .footer-cta .btn { margin-top: 0; }
  .footer-main { width: auto; margin: 4rem 1.2rem 0; flex-direction: column; gap: 4rem; }
  .footer-brand, .footer-pages { width: 100%; }
  .footer-brand__copy { width: auto; max-width: 30rem; margin-left: 0; }
  .newsletter { width: 100%; max-width: 36rem; margin-top: 2.4rem; margin-left: 0; }
  .footer-pages__cols { flex-wrap: wrap; row-gap: 1.2rem; }
  .footer-pages__cols ul { width: 50% !important; }
  .footer-pages__cols ul:nth-child(3) { margin-top: 0; }

  /* Profile card（SP）：幅は親に追従、比率維持 */
  .profile-card { width: 100%; max-width: 34.3317rem; }
  .profile-card__photo { width: 100%; height: auto; aspect-ratio: 315.508 / 338.857; }

  /* Article card（SP）：縦積み */
  .article-card { width: 100%; height: auto; flex-direction: column; gap: 2rem; padding: 2rem; }
  .article-card__body { width: auto; padding-top: 0; }
  .article-card__title { margin-top: 1.6rem; }
  .article-card__title br { display: none; } /* Figma's forced line breaks are for PC width; on SP let the text wrap naturally */
  .article-card__img { width: 100%; height: auto; aspect-ratio: 230 / 240.184; order: -1; }

  /* Before/After（SP） */
  .before-after { width: auto; }
  .before-after__title, .before-after__desc { width: auto; }
  .before-after__images { flex-direction: column; gap: 1.6rem; margin-top: 2.4rem; }
  .before-after__item { width: 100%; height: auto !important; aspect-ratio: 524.027 / 262.014; margin-top: 0 !important; }
  .before-after__label { top: auto !important; bottom: 1.2rem; left: 1.2rem; font-size: 1.8rem; line-height: 2.2rem; padding: 0.5rem 1rem; }
  .before-after__nav { margin-top: 1.6rem; }

  /* Locations（SP）：横スクロール */
  .locations { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sp-gutter); -webkit-overflow-scrolling: touch; }
  .locations__track { gap: 1.2rem; margin-left: 0; padding-inline: var(--sp-inset); width: max-content; }
  .location-card { width: 28rem; height: 32.8rem; scroll-snap-align: center; }
  .location-card__label { left: 1rem; right: 1rem; top: auto; bottom: 1rem; width: auto; height: 5.2rem; font-size: 1.8rem; }
  .contact-rows { flex-direction: column; align-items: flex-start; gap: 1.6rem; width: auto; margin-inline: var(--sp-inset); padding-left: 0; }
  .contact-row { white-space: normal; min-width: 0 !important; }
  .contact-row { font-size: 1.8rem; line-height: 2.4rem; }

  /* FAQ（SP） */
  .faq-item { width: 100%; }
  .faq-item__q, .faq-item.is-open .faq-item__q { gap: 1.6rem; padding: 2rem; font-size: 1.8rem; line-height: 2.4rem; }
  .faq-item.is-open .faq-item__q { padding-bottom: 0; }
  .faq-item.is-open .faq-item__icon { margin-block: -0.4rem 0; }
  .faq-item__a { padding: 0.8rem 2rem 2rem; }
}

/* ---------- SP: widen tap targets to about 32px or more (no visual change; enlarges only the invisible hit area) ---------- */
@media (max-width: 1023px) {
  .profile-card__sns a, .tm-profile__sns a, a.plus-btn, button.plus-btn,
  .footer-links a, .topbar a { position: relative; }
  .profile-card__sns a::after, .tm-profile__sns a::after { content: ""; position: absolute; inset: -0.6rem -0.4rem; }
  a.plus-btn::after, button.plus-btn::after { content: ""; position: absolute; inset: -0.6rem; }
  .footer-links a::after, .topbar a::after { content: ""; position: absolute; inset: -0.6rem 0; }
}
