/* ==========================================================
   出張はりきゅう 周作 LP スタイル
   トーン: 生成り・墨色・深緑の落ち着いた和のトーン
   モバイルファースト設計
   ========================================================== */

/* ---------- デザイントークン ---------- */
:root {
  /* カラー */
  --color-bg: #f7f4ee;          /* 生成り */
  --color-bg-alt: #efeae0;      /* 生成り 濃 */
  --color-ink: #2b2b28;         /* 墨色 */
  --color-ink-soft: #55534d;    /* 墨色 薄 */
  /* ロゴ（訪問鍼灸 潤・太極図マーク）の深緑に合わせたアクセントカラー */
  --color-green: #1d5c3a;       /* 深緑（メインアクセント） */
  --color-green-dark: #164a2e;
  --color-green-pale: #e2ede6;
  --color-gold: #b08d57;        /* 金茶（サブアクセント） */
  --color-line: #06c755;        /* LINEブランドカラー */
  --color-white: #ffffff;
  --color-border: #ddd6c8;

  /* タイポグラフィ */
  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;

  /* レイアウト */
  --width-content: 1080px;
  --header-h: 64px;
  --mobile-cta-h: 60px;
}

/* ---------- リセット・ベース ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* スマホ追従CTAに隠れないよう下部に余白 */
  padding-bottom: var(--mobile-cta-h);
}

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

a {
  color: var(--color-green);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

.pc-only {
  display: none;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

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

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-ghost {
  border-color: var(--color-green);
  color: var(--color-green);
  background: transparent;
}

.btn-ghost-light {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}

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

/* 濃色背景の上で使う反転ボタン（CTAセクションのWeb予約用） */
.btn-invert {
  background: var(--color-white);
  color: var(--color-green-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.btn-invert:hover {
  opacity: 1;
  background: var(--color-bg);
}

.btn-large {
  font-size: 1.05rem;
  padding: 1em 2em;
}

.btn-block {
  display: block;
  width: 100%;
}

/* FAQ内などで使う小さめのボタン */
.btn-small {
  font-size: 0.88rem;
  padding: 0.6em 1.4em;
  border-width: 1.5px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
  color: var(--color-ink);
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  display: none;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
  /* 項目内で折り返さない（項目数が多いため） */
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-green);
}

.btn-header {
  font-size: 0.85rem;
  padding: 0.6em 1.4em;
  white-space: nowrap;
}

/* ---------- ハンバーガーメニュー ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--color-border);
  background: rgba(247, 244, 238, 0.98);
  display: grid;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-link {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* キャッチコピー部分はスマホでは省略（折り返し防止） */
.logo-sub-tagline {
  display: none;
}

/* ---------- 写真プレースホルダー ---------- */
/* 写真受領後は .ph-image を img タグに置換するだけで済む構造 */
.ph-image {
  background:
    repeating-linear-gradient(
      45deg,
      var(--color-bg-alt),
      var(--color-bg-alt) 12px,
      #e7e1d4 12px,
      #e7e1d4 24px
    );
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ph-label {
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.08em;
  background: rgba(247, 244, 238, 0.85);
  padding: 8px 16px;
  border-radius: 8px;
}

/* 差し替え済み写真の共通スタイル（プレースホルダーと同じ見た目に揃える） */
.hero-visual img,
.service-visual img,
.profile-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.profile-visual img {
  max-width: 320px;
  margin: 0 auto;
}

.ph-hero {
  aspect-ratio: 4 / 3;
}

.ph-service {
  aspect-ratio: 4 / 3;
}

.ph-profile {
  aspect-ratio: 3 / 4;
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: 48px 16px 56px;
}

.hero-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 6.5vw, 3rem);
  line-height: 1.45;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero-lead {
  color: var(--color-ink-soft);
  margin-bottom: 20px;
}

.hero-points {
  margin-bottom: 28px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--color-gold);
  border-bottom: 2.5px solid var(--color-gold);
  transform: rotate(-45deg);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 64px 16px;
}

.section-inner {
  max-width: var(--width-content);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 18px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

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

/* ---------- 概要ボックス ---------- */
.section-summary {
  padding: 40px 16px;
  background: var(--color-bg);
}

.summary-box {
  max-width: 880px;
  margin: 0 auto;
  background: var(--color-white);
  border-left: 4px solid var(--color-green);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(43, 43, 40, 0.05);
}

.summary-box p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.summary-box strong {
  color: var(--color-green-dark);
}

/* 概要の定義リスト（ラベル＋内容） */
.summary-lead {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 0;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.summary-item dt {
  flex-shrink: 0;
  min-width: 5.5em;
  padding: 2px 10px;
  background: var(--color-green-pale);
  color: var(--color-green-dark);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin-top: 2px;
}

.summary-item dd {
  margin: 0;
}

.summary-item a {
  color: inherit;
  text-decoration: none;
}

/* 括弧書きの途中で改行させない */
.summary-nowrap {
  white-space: nowrap;
}

/* ご予約方法の「※詳しくはこちら」（ページ下部のご予約・ご相談へ移動） */
.summary-item a.summary-more {
  color: var(--color-green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .summary-list {
    grid-template-columns: 1fr;
  }
}

.section-mechanism {
  background: var(--color-white);
}

/* ---------- こんなお悩みの方に ---------- */
.section-worries {
  background: var(--color-white);
}

.worry-list {
  max-width: 640px;
  margin: 0 auto 28px;
  display: grid;
  gap: 14px;
}

.worry-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 600;
}

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-green);
  position: relative;
  margin-top: 0.3em;
}

.check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg);
}

.worry-note {
  text-align: center;
  color: var(--color-ink-soft);
}

/* ---------- 選ばれる理由 ---------- */
.reason-grid {
  display: grid;
  gap: 20px;
}

.reason-card {
  background: var(--color-white);
  border-radius: 14px;
  padding: 28px 24px;
  border-top: 4px solid var(--color-green);
  box-shadow: 0 2px 12px rgba(43, 43, 40, 0.06);
}

.reason-num {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.reason-title {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.reason-text {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

/* 番号を見出しの左に並べ、番号のあとの改行をなくす（全画面幅共通） */
.reason-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 10px;
  align-items: center;
  /* 行の高さを揃えたカードでも見出し行が伸びないよう上詰めにする */
  align-content: start;
}

.reason-num {
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.reason-title {
  margin-bottom: 0;
}

.reason-text {
  grid-column: 1 / -1;
}

/* スマホは見出しを1行に収める（番号の横に最長約16文字の見出しが入るよう文字サイズを可変にする） */
@media (max-width: 767px) {
  /* 見出しの幅を確保するため、カードの左右余白を少し詰める */
  .reason-card {
    padding: 24px 20px;
  }

  .reason-title {
    font-size: clamp(0.85rem, calc((100vw - 112px) / 16.5), 1.15rem);
    white-space: nowrap;
  }

  .reason-title br {
    display: none;
  }
}

/* タブレット・PCは番号を大きくし、見出しは2行のまま横に並べる */
@media (min-width: 768px) {
  .reason-card {
    column-gap: 14px;
  }

  .reason-num {
    font-size: 1.6rem;
  }
}

/* 実績の但し書き（時点表記） */
.reason-asof {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
}

/* ---------- 施術内容 ---------- */
.section-service {
  background: var(--color-bg);
}

.service-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.service-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--color-gold);
}

.service-text p {
  margin-bottom: 14px;
}

.service-notes {
  background: var(--color-green-pale);
  border-radius: 10px;
  padding: 18px 22px;
}

.service-notes li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: 6px;
}

.service-notes li:last-child {
  margin-bottom: 0;
}

.service-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

/* ---------- このようなお悩み・ケースに ---------- */
.section-cases {
  background: var(--color-bg);
}

.cases-lead {
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-ink-soft);
}

.case-grid {
  display: grid;
  gap: 20px;
}

.case-card {
  /* 3枚のカードを同じ高さに揃え、補足ボックスを下端に固定する */
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(43, 43, 40, 0.06);
}

.case-image {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: var(--color-bg);
}

/* クライアント提供画像を配置するまでの空枠 */
.case-image-ph {
  aspect-ratio: 4 / 3;
  max-width: 240px;
  margin: 0 auto 16px;
  border-radius: 10px;
}

.case-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--color-gold);
}

.case-text {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  margin-bottom: 12px;
}

.case-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: 6px;
}

.case-list li:last-child {
  margin-bottom: 0;
}

.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

.case-list {
  margin-bottom: 16px;
}

.case-note-inline {
  /* 残りの高さを吸収して各カードの下端をそろえる */
  margin-top: auto;
  font-size: 0.88rem;
  background: var(--color-green-pale);
  padding: 10px 14px;
  border-radius: 8px;
}

.case-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* ---------- 鍼灸治療の仕組み ---------- */
.mechanism-body {
  max-width: 800px;
  margin: 0 auto;
}

.mechanism-body p {
  margin-bottom: 16px;
}

.mechanism-methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mechanism-methods li {
  padding: 12px 16px;
  background: var(--color-bg);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

.mechanism-methods strong {
  color: var(--color-green-dark);
}

/* 施術方法の「続きを読む」（details で開閉） */
.method-more {
  margin-top: 8px;
}

.method-more summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--color-green-dark);
}

.method-more summary::-webkit-details-marker {
  display: none;
}

.method-more summary::before {
  content: "＋";
  margin-right: 4px;
}

.method-more[open] summary::before {
  content: "−";
}

.method-more-close,
.method-more[open] .method-more-open {
  display: none;
}

.method-more[open] .method-more-close {
  display: inline;
}

.method-more p {
  margin: 8px 0 0;
}

.method-more-figure {
  max-width: 360px;
  margin: 12px auto 4px;
}

.method-more-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--color-white);
}

.method-more-caption {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
}

.mechanism-note {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.mechanism-figure {
  max-width: 800px;
  margin: 28px auto 0;
}

/* SVG図は横幅に合わせて縮小（縦横比は width/height 属性から維持される） */
.mechanism-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
}

/* クライアント提供画像に差し替えるまで比較図と同じ縦横比の空枠を表示 */
.mechanism-image-ph {
  aspect-ratio: 1000 / 382;
  border-radius: 12px;
}

.mechanism-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* ---------- 料金 ---------- */
.section-price {
  background: var(--color-green-pale);
}

.price-card {
  max-width: 480px;
  margin: 0 auto 24px;
  background: var(--color-white);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  border: 2px solid var(--color-green);
  box-shadow: 0 4px 16px rgba(46, 94, 78, 0.12);
}

.price-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.price-amount {
  color: var(--color-green);
  margin-bottom: 10px;
}

.price-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-unit {
  font-size: 1.05rem;
  font-weight: 700;
  margin-left: 4px;
}

.price-note {
  display: inline-block;
  background: var(--color-bg);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}

.price-table {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  table-layout: fixed;
  font-size: 0.85rem;
}

.price-table th,
.price-table td {
  padding: 12px 10px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.price-table th {
  text-align: left;
}

.price-table thead th {
  background: var(--color-bg);
}

/* 金額列は見出しも右寄せにそろえる */
.price-table thead th:last-child {
  text-align: right;
}

.price-table tbody th,
.price-table tbody td {
  border-top: 1px solid var(--color-border);
}

.price-table td {
  text-align: right;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-green);
}

.price-table small {
  font-family: var(--font-base);
  font-size: 0.75rem;
  color: var(--color-ink-soft);
}

.price-table th .price-row-note {
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

/* 回数券は小さな画面でもプランごとに折り返して表示する */
.price-ticket {
  max-width: 480px;
  margin: 0 auto 24px;
  padding: 24px 20px;
  background: var(--color-white);
  border: 2px solid var(--color-green);
  border-radius: 16px;
}

.price-ticket-title {
  margin-bottom: 20px;
  text-align: center;
  color: var(--color-green);
  font-size: 1.2rem;
}

.ticket-image-ph {
  aspect-ratio: 2 / 1;
  max-width: 360px;
  margin: 0 auto 20px;
}

.ticket-plans {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  list-style: none;
}

.ticket-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.ticket-plan-name {
  font-weight: 700;
}

.ticket-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.ticket-plan-price strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-green);
}

.ticket-plan-regular {
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  text-decoration: line-through;
}

.ticket-plan-save {
  padding: 2px 10px;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.ticket-notes {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  list-style: disc;
  padding-left: 1.2em;
}

.price-remarks {
  max-width: 480px;
  margin: 0 auto;
}

.price-remarks li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  margin-bottom: 4px;
}

.price-remarks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

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

.area-lead {
  text-align: center;
  margin-bottom: 28px;
}

.area-lead strong {
  color: var(--color-green);
}

.area-table-wrap {
  max-width: 640px;
  margin: 0 auto 20px;
  overflow-x: auto;
}

.area-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.area-table th,
.area-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.area-table thead th {
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.area-table tbody tr:last-child th,
.area-table tbody tr:last-child td {
  border-bottom: none;
}

.area-days {
  font-weight: 700;
  white-space: nowrap;
  background: var(--color-bg);
}

.area-closed {
  color: var(--color-ink-soft);
}

.area-cities {
  max-width: 640px;
  margin: 0 auto 16px;
  background: var(--color-green-pale);
  border-radius: 10px;
  padding: 16px 22px;
  font-size: 0.92rem;
  line-height: 2;
}

.area-cities strong {
  color: var(--color-green-dark);
}

/* エリアマップ（SVG）は中央寄せ・最大480px */
.area-map {
  max-width: 480px;
  margin: 0 auto 20px;
}

.area-map img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.area-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

/* ---------- 施術の流れ ---------- */
.flow-list {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.flow-item {
  position: relative;
  padding: 0 0 32px 44px;
}

/* 縦のつなぎ線 */
.flow-item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.flow-item:last-child::before {
  display: none;
}

/* ステップの丸 */
.flow-item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-green);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-green);
}

.flow-step {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin-bottom: 2px;
}

.flow-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.flow-text {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

/* ---------- プロフィール ---------- */
.section-profile {
  background: var(--color-white);
}

.profile-grid {
  display: grid;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* 氏名の上に小さく表示するふりがな */
.profile-name rt {
  font-size: 0.42em;
  color: var(--color-ink-soft);
  letter-spacing: 0.08em;
}

.profile-license {
  display: inline-block;
  background: var(--color-green-pale);
  color: var(--color-green-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.profile-bio p {
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.profile-history {
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
}

.profile-history-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.profile-history-row dt {
  font-weight: 700;
  color: var(--color-green);
  font-size: 0.9rem;
}

.profile-history-row dd {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-q {
  cursor: pointer;
  padding: 16px 44px 16px 48px;
  font-weight: 700;
  position: relative;
  list-style: none;
  /* background-color のみアニメーション対象にする。
     background 全体を対象にすると、閉じる際に開閉アイコンの縦棒
     （background-image で描画）の position/size まで補間され、
     横からスライドして出現するように見えてしまう */
  transition: background-color 0.2s ease;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  background-color: var(--color-bg);
}

/* Qマーク */
.faq-q::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-serif);
  color: var(--color-green);
  font-weight: 700;
}

/* 開閉アイコン（＋/−をCSSで描画） */
.faq-q::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--color-green);
  transform: translateY(-50%);
}

/* 閉じている時は縦棒を重ねて＋にする */
.faq-item:not([open]) .faq-q {
  background-image: linear-gradient(var(--color-green), var(--color-green));
  background-repeat: no-repeat;
  background-size: 2px 12px;
  background-position: right 23px top 50%;
}

.faq-a {
  padding: 0 20px 18px 48px;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  position: relative;
}

.faq-a::before {
  content: "A";
  position: absolute;
  left: 16px;
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-weight: 700;
}

.faq-action {
  padding: 0 20px 18px 48px;
}

/* ---------- モーダル（ネイティブ dialog） ---------- */
.modal {
  /* 余白は .modal-inner 側に持たせ、dialog自体へのクリックを背景クリック判定に使う */
  padding: 0;
  border: none;
  border-radius: 16px;
  /* width:100% だと margin:auto が効かず中央寄せにならないため、幅を直接指定する */
  width: min(440px, calc(100vw - 32px));
  margin: auto;
  background: var(--color-bg);
  color: var(--color-ink);
  box-shadow: 0 12px 40px rgba(43, 43, 40, 0.28);
}

.modal::backdrop {
  background: rgba(43, 43, 40, 0.55);
}

.modal-inner {
  padding: 28px 24px 24px;
  text-align: center;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.modal-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.modal-text {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  text-align: left;
  margin-bottom: 20px;
}

.modal-close {
  width: 100%;
}

/* ---------- CTA（予約） ---------- */
.section-contact {
  background: linear-gradient(160deg, var(--color-green-dark) 0%, var(--color-green) 100%);
}

.contact-lead {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 36px;
  opacity: 0.92;
}

/* 画像ボタンに依存しない案内文（テキストのみで連絡手段が伝わるようにする） */
.contact-text {
  color: var(--color-white);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 32px;
  opacity: 0.92;
}

.contact-grid {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}

.contact-card-title {
  color: var(--color-white);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.contact-card-text {
  color: var(--color-white);
  opacity: 0.85;
  font-size: 0.9rem;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 48px 16px 32px;
}

.footer-inner {
  max-width: var(--width-content);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.footer-logo-kana {
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.footer-tel {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-info {
  max-width: 640px;
  margin-bottom: 32px;
}

.footer-info-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(247, 244, 238, 0.15);
  font-size: 0.88rem;
}

.footer-info-row dt {
  color: var(--color-gold);
  font-weight: 700;
}

.footer-info-row dd {
  opacity: 0.85;
}

.footer-updated {
  font-size: 0.78rem;
  opacity: 0.55;
  text-align: center;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

/* ---------- スマホ追従CTAバー ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  height: var(--mobile-cta-h);
  box-shadow: 0 -2px 12px rgba(43, 43, 40, 0.18);
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.mobile-cta-reserve {
  background: var(--color-green);
}

.mobile-cta-line {
  background: var(--color-line);
}

.mobile-cta-tel {
  background: var(--color-gold);
}

/* ==========================================================
   タブレット以上（768px〜）
   ========================================================== */
@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }

  .sp-only {
    display: none;
  }

  .nav-link {
    display: inline;
  }

  /* 幅が足りないタブレット領域では、ナビは3項目に絞る */
  .nav-link-wide {
    display: none;
  }

  .hero {
    padding: 72px 24px 80px;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .hero-cta {
    flex-direction: row;
    align-items: stretch;
    max-width: none;
  }

  .hero-cta .btn {
    white-space: nowrap;
    font-size: 1.05rem;
  }

  .section {
    padding: 88px 24px;
  }

  /* 理由カードは6枚なので2列×3行（番号を横に並べるため、3列では見出しが窮屈になる） */
  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .case-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .profile-grid {
    grid-template-columns: 320px 1fr;
    gap: 44px;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* PCでは追従バーを非表示にし、下部余白も解除 */
  .mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ==========================================================
   デスクトップ（1024px〜）
   ========================================================== */
@media (min-width: 1024px) {
  .nav-toggle,
  .mobile-menu {
    display: none;
  }

  /* 理由カードは6枚なので3列×2行 */
  .reason-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ナビ7項目＋予約ボタンが収まる幅から全項目を表示。
     項目数が多いため、この幅では間隔と文字サイズを詰める */
  .header-nav {
    gap: 13px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .nav-link-wide {
    display: inline;
  }

  /* キャッチコピーはハンバーガーと共存できる幅（1024px以上）でのみ表示 */
  .logo-sub-tagline {
    display: inline;
  }
}

/* 追加イラストは縦横比を維持し、切り抜かずに表示する */
.case-image { display: block; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; }
.ticket-image { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 8px; border-radius: 10px; }
.image-note { text-align: center; font-size: .8rem; color: var(--color-ink-soft); margin: 0 0 20px; }

/* 施術券内の案内文を読みやすく表示する */
.ticket-image { max-width: 560px; }

/* 比較図の明るい背景をページの生成り色になじませる */
.mechanism-figure { isolation: isolate; background: var(--color-bg); }
.mechanism-figure .mechanism-image { mix-blend-mode: darken; }

/* ---------- お悩みセクション内のケース小見出し ---------- */
.cases-sub {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.cases-sub-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 8px;
}

/* ---------- セクション内の中間CTA ---------- */
.section-cta {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  text-align: center;
}

.section-cta-text {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  margin-bottom: 16px;
}

.section-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .section-cta-buttons .btn {
    width: 100%;
  }
}

/* ---------- 日本語の折り返し ---------- */
/* src/phrase.js が文節の切れ目に <wbr> を入れ、対象の要素に .phrase を付ける。
   言葉の途中では行を変えず、文節の切れ目だけで折り返す */
.phrase {
  word-break: keep-all;
  overflow-wrap: anywhere;
  /* 最後の行に1〜2文字だけ残るのを避ける。
     text-wrap の一括指定は white-space: nowrap を打ち消すため、折り返し方だけを指定する */
  text-wrap-style: pretty;
}

/* 表のセルは、言葉が入る幅を列に確保させる（狭い列で言葉の途中が切れるのを防ぐ） */
:is(th, td).phrase {
  overflow-wrap: break-word;
}

/* 見出しと短い項目名は、行の長さをそろえて折り返す */
:is(h1, h2, h3, h4, dt).phrase {
  text-wrap-style: balance;
}

/* 括弧書きや数字の範囲など、途中で行を変えたくない部分 */
.u-nowrap {
  white-space: nowrap;
}

/* ボタンの文字は、指定した切れ目（<wbr>）だけで折り返す */
.btn-label {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ヘッダーの屋号とふりがなは途中で行を変えない（1024px以上はキャッチコピーが続くため対象外） */
@media (max-width: 1023px) {
  .logo-main,
  .logo-sub {
    white-space: nowrap;
  }
}

/* スマホ幅では、ふりがなが1行に収まるようヘッダーの余白と字間を詰める */
@media (max-width: 480px) {
  .header-inner {
    gap: 8px;
  }

  .header-nav {
    gap: 10px;
  }

  .btn-header {
    padding: 0.6em 1.1em;
  }

  .logo-sub {
    font-size: clamp(0.56rem, 2.6vw, 0.68rem);
    letter-spacing: 0.02em;
  }
}

/* ごく狭い画面（340px未満）では、ヘッダーが横にはみ出さないよう余白をさらに詰める */
@media (max-width: 340px) {
  .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .btn-header {
    padding: 0.6em 0.8em;
  }
}

/* 幅いっぱいのボタンは左右の余白を詰め、文字が1行に収まる幅を確保する */
.btn-block {
  padding-left: 0.8em;
  padding-right: 0.8em;
}

/* 理由カードの番号（01〜06）は途中で行を変えない */
.reason-num {
  white-space: nowrap;
}

/* ---------- 予約金（キャンセル料）の説明 ---------- */
/* 料金カード内: 「約60分が目安・出張費込み」の下に置く */
.price-deposit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
  /* カードのほかの要素に合わせて中央ぞろえにし、各行の長さをそろえて折り返す */
  text-align: center;
  text-wrap-style: balance;
}

.price-deposit strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: var(--color-green-dark);
  text-align: center;
}

/* 料金表の一番下: お支払いの説明（金額のセルと違い、左寄せの本文として読ませる） */
.price-table td.price-table-pay {
  padding: 14px 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-base);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-ink-soft);
  text-align: left;
}

.price-table td.price-table-pay strong {
  color: var(--color-green-dark);
}

/* スマホでは「Webで予約する（24時間受付）」を1行に収める
   （ボタンの左右の余白を詰め、画面の幅に合わせて字を少し小さくする） */
@media (max-width: 767px) {
  .section-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-cta-buttons .btn,
  .hero-cta .btn {
    padding-left: 0.75em;
    padding-right: 0.75em;
    font-size: clamp(0.85rem, 4.4vw, 1.05rem);
  }
}

/* 冒頭の2つのボタン（タブレット・PC）: <wbr> は white-space: nowrap の中でも折れるため、
   PCではボタンを縮ませずに1行を保ち、幅の足りないタブレットでは縦に並べる */
@media (min-width: 1024px) {
  /* ボタン2つ分の幅を列に確保させ、右の写真に重ならないようにする */
  .hero-cta {
    min-width: max-content;
  }

  .hero-cta .btn {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-cta {
    flex-direction: column;
    max-width: 360px;
  }
}

/* 文字の入った図解は、字が読めるよう通常の画像（360px）より広く表示する */
.method-more-figure-wide {
  max-width: 640px;
}
