/* 美人矯正 柱ページ 共通スタイル
   色と書体は「共通デザイン仕様書」と同じ値です。WebSite X5側もこの値に合わせます。 */
:root {
  --michi: #BF5317;       /* 道しるべの札（白い文字が読める濃さ） */
  --michi-edge: #E9AC80;  /* 道しるべのカードの縁と厚み */
  --michi-deep: #8E3A0E;  /* 道しるべの丸い矢印の厚み */
  --ink: #1C1C19;        /* 本文の文字 */
  --ink-soft: #4A4A40;   /* 補足の文字 */
  --olive: #647F20;      /* 見出し・リンク */
  --olive-dark: #4E6418; /* リンクのホバー */
  --lime: #A6C84F;       /* 罫線・枠・小さなボタン */
  --lime-pale: #EEF4DC;  /* 薄い黄緑の面 */
  --cream: #FAF0CD;      /* 帯の地 */
  --paper: #FFFFFF;      /* ページの地 */
  --line: #DCE3C0;       /* 細い罫線 */
  --orange: #D9601A;     /* 「悩みから、えらぶ」だけに使う色 */
  --orange-dark: #B24C13;
  --serif: "Shippori Mincho", "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", "YuMincho", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --measure: 38rem;
  --gutter: 20px;
  /* 押せるもののしるし（矢印）。白と濃いオリーブの2色 */
  --chev-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chev-w-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chev-o: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23647F20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --card-edge: #CBDB9A;  /* 押せるカードの下の厚み */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--olive-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
a, button, summary { -webkit-tap-highlight-color: rgba(166, 200, 79, 0.28); }

/* =========================================================
   押せるものと、読むものの区別（全ページ共通の決まり）
   1. ページを移るカードは、白く浮いたカード＋右下の「開く」ボタン
   2. 小さなカードは、右端の丸い矢印ボタン
   3. 文中のリンクは、必ず下線
   4. 押せない囲みは、影も矢印もない平らな注記
   ========================================================= */
.index-list a, .spaces a, .door, .exits a, .related li a, .case-nav a {
  position: relative; background: var(--paper); color: var(--ink); text-decoration: none;
  border: 1px solid var(--card-edge); border-radius: 12px;
  box-shadow: 0 3px 0 var(--card-edge), 0 8px 20px rgba(78, 100, 24, 0.08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.index-list a:active, .spaces a:active, .door:active, .exits a:active, .related li a:active, .case-nav a:active {
  transform: translateY(3px); background: #FBFDF4;
  box-shadow: 0 0 0 var(--card-edge), 0 2px 6px rgba(78, 100, 24, 0.10);
}
@media (hover: hover) {
  .index-list a:hover, .spaces a:hover, .door:hover, .exits a:hover, .related li a:hover, .case-nav a:hover {
    border-color: var(--lime); background: var(--paper);
    box-shadow: 0 3px 0 var(--lime), 0 12px 26px rgba(78, 100, 24, 0.14);
  }
  a:hover .go { background: var(--olive-dark); }
}

/* 「開く」ボタン（カードの中の、押す場所のしるし） */
.go {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 40px; padding: 5px 5px 5px 16px; border-radius: 999px;
  background: var(--olive); color: #fff;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.2; white-space: nowrap;
}
.go::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2) var(--chev-w) center / 15px no-repeat;
}

/* 丸い矢印ボタン（小さなカード用） */
.exits a::after, .related li a::after, .case-nav .cn-next::after, .case-nav .cn-prev::before {
  content: ""; position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  background: var(--olive) var(--chev-w) center / 16px no-repeat;
}
.exits a::after, .related li a::after, .case-nav .cn-next::after { right: 14px; }
.case-nav .cn-prev::before { left: 14px; background-image: var(--chev-w-left); }

/* 文中のリンクは、必ず下線 */
.prose p a:not([class]), .prose li a:not([class]), .prose td a:not([class]), .disclosure a, .answer a:not([class]) {
  text-decoration: underline; text-decoration-thickness: 1.5px; font-weight: 500;
}
.prose a[target="_blank"]:not([class])::after { content: "↗"; font-size: 0.8em; margin-left: 2px; text-decoration: none; display: inline-block; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { text-decoration: none; color: var(--olive); display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.12em; }
.brand-sub { font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.global-nav a {
  display: block; padding: 8px 12px; text-decoration: none; color: var(--ink);
  font-size: 15px; border-bottom: 2px solid transparent;
}
.global-nav a:hover, .global-nav a[aria-current="page"], .global-nav a.is-here { border-bottom-color: var(--lime); color: var(--olive); }
.global-nav .nav-tel a { color: var(--olive); font-weight: 700; letter-spacing: 0.04em; }
.menu-btn {
  display: inline-block; flex: none; background: var(--lime-pale); border: 1px solid var(--lime); border-radius: 8px;
  min-height: 44px; padding: 8px 12px; color: var(--olive); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 0 var(--card-edge);
}
.menu-btn:active { transform: translateY(2px); box-shadow: none; }
.menu-btn .bars { display: inline-block; width: 18px; height: 12px; position: relative; vertical-align: -1px; margin-right: 6px; }
.menu-btn .bars::before, .menu-btn .bars::after, .menu-btn .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--olive); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars span { top: 5px; } .menu-btn .bars::after { bottom: 0; }

.global-nav { margin-left: auto; }
.drawer {
  display: block; position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 60;
  width: min(440px, 100%);
  background: var(--paper); overflow-y: auto; padding: 16px var(--gutter) 120px;
  transform: translateX(100%); transition: transform .25s ease, box-shadow .25s ease; visibility: hidden;
  box-shadow: 0 0 0 100vmax rgba(40, 48, 20, 0);
}
.drawer.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(40, 48, 20, 0.28); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer h2 { font-family: var(--serif); color: var(--olive); font-size: 18px; margin: 24px 0 4px; font-weight: 600; }
.drawer ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.drawer li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px;
  padding: 10px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.drawer li a::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--lime-pale) var(--chev-o) center / 14px no-repeat;
}
.drawer li a:active { background: var(--lime-pale); }
@media (hover: hover) { .drawer li a:hover { background: #FAFCF4; color: var(--olive); } }
@media (max-width: 1080px) { .global-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

/* ---------- hero (top page) ---------- */
.hero {
  position: relative; min-height: min(86vh, 760px); color: #fff;
  display: flex; align-items: flex-end;
  background-color: #6d6a5c;
  background-image: linear-gradient(180deg, rgba(20,20,15,0.10) 0%, rgba(20,20,15,0.25) 45%, rgba(20,20,15,0.62) 100%), var(--hero-img);
  background-size: cover; background-position: 50% 30%;
}
.hero-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 48px var(--gutter) 56px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; margin: 0;
  font-size: clamp(34px, 6.4vw, 64px); line-height: 1.35; letter-spacing: 0.08em;
  color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero .hero-sub {
  margin: 14px 0 28px; font-size: clamp(16px, 2.2vw, 20px); letter-spacing: 0.14em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.pathfinder {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: min(100%, 340px); min-height: 72px; padding: 12px 28px;
  background: var(--orange); color: #fff; text-decoration: none; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(80,30,0,0.28);
}
.pathfinder:hover { background: var(--orange-dark); color: #fff; }
.pathfinder:active { transform: translateY(2px); box-shadow: 0 2px 6px rgba(80,30,0,0.28); }
.pathfinder .pf-main { font-size: 20px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; }
.pathfinder .pf-sub { font-size: 13px; opacity: 0.92; letter-spacing: 0.08em; line-height: 1.4; }
.hero-secondary { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hero-secondary a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 18px;
  background: rgba(255,255,255,0.94); color: var(--olive); text-decoration: none; border-radius: 6px;
  font-size: 15px; font-weight: 700; border: 1px solid var(--lime); box-shadow: 0 3px 0 rgba(0,0,0,0.18);
}
.hero-secondary a::after { content: ""; width: 14px; height: 14px; margin-left: 6px; background: var(--chev-o) center / 14px no-repeat; }
.hero-secondary a:hover { background: #fff; color: var(--olive-dark); }
.hero-secondary a:active { transform: translateY(2px); box-shadow: none; }
@media (max-width: 600px) {
  .hero { min-height: 80vh; min-height: 80svh; }
  .hero-inner { text-align: center; padding-bottom: 84px; }
  .pathfinder { width: 100%; }
  .hero-secondary { justify-content: center; }
  .hero-secondary a { flex: 1 1 0; padding: 6px 8px; font-size: 14px; }
}

/* ---------- sections ---------- */
.band { padding: 72px var(--gutter); }
.band.cream { background: var(--cream); }
.band.pale { background: var(--lime-pale); }
.wrap { max-width: var(--measure); margin: 0 auto; }
.wrap-wide { max-width: 1040px; margin: 0 auto; }
@media (max-width: 600px) { .band { padding: 52px var(--gutter); } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--olive); letter-spacing: 0.06em; line-height: 1.55; }
.section-title { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 28px; }
.section-title.center { text-align: center; }
.prose h2 { font-size: 24px; margin: 56px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--lime); }
.prose h3 { font-size: 19px; margin: 36px 0 10px; color: var(--ink); }
.prose h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--lime); border-radius: 50%; margin-right: 10px; vertical-align: 2px; }
.prose p { margin: 0 0 1.2em; text-indent: 1em; }
.prose p.noindent, .prose .lead, .prose li p { text-indent: 0; }
.prose .lead { font-family: var(--serif); font-size: 20px; color: var(--olive); line-height: 1.8; margin-bottom: 1.4em; }
.prose ul.dots { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose ul.dots li { margin-bottom: 0.4em; }
.prose ul.dots li::marker { color: var(--lime); }
.prose .poem { font-family: var(--serif); font-size: 21px; line-height: 2.1; color: var(--ink); text-indent: 0; text-align: center; margin: 0 0 32px; }
.prose .closing { font-family: var(--serif); font-size: 21px; color: var(--olive); text-indent: 0; text-align: center; margin: 40px 0; line-height: 1.9; }
.note { font-size: 14px; color: var(--ink-soft); }
.prose p.note { text-indent: 0; }
.signature { text-align: right; text-indent: 0 !important; font-family: var(--serif); }

/* 「〜へ」の小さなボタン（白地に黄緑の縁、右に丸い矢印） */
.more-link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin: 6px 0 0;
  padding: 7px 7px 7px 20px; border: 1.5px solid var(--lime); border-radius: 26px;
  background: var(--paper); color: var(--olive); text-decoration: none; text-indent: 0;
  font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; box-shadow: 0 3px 0 var(--card-edge);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.more-link::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--olive) var(--chev-w) center / 15px no-repeat;
}
.more-link.back { padding: 7px 20px 7px 7px; }
.more-link.back::after { display: none; }
.more-link.back::before {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--olive) var(--chev-w-left) center / 15px no-repeat;
}
.more-link:active { transform: translateY(3px); box-shadow: none; background: var(--lime-pale); }
@media (hover: hover) { .more-link:hover { background: var(--lime-pale); color: var(--olive-dark); } }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--cream); padding: 28px var(--gutter) 40px; border-bottom: 1px solid var(--line); }
.page-head .wrap { max-width: 1040px; }
.crumbs { font-size: 13px; color: var(--ink-soft); margin: 0 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--lime); }
.crumbs a { color: var(--ink-soft); display: inline-block; padding: 6px 0; }
.page-head .space-name { font-size: 14px; color: var(--olive); letter-spacing: 0.12em; margin: 0 0 4px; }
.page-head h1 { font-size: clamp(28px, 4.6vw, 42px); margin: 0; }
.page-head .page-lead { font-family: var(--serif); font-size: clamp(17px, 2.4vw, 21px); margin: 12px 0 0; color: var(--ink); }

/* ---------- welcome / steps ---------- */
.steps { list-style: none; margin: 8px 0 24px; padding: 0; position: relative; }
.steps li { position: relative; padding: 0 0 26px 76px; min-height: 64px; }
.steps li::before { content: ""; position: absolute; left: 27px; top: 54px; bottom: 0; width: 2px; background: var(--lime); }
.steps li:last-child::before { display: none; }
.steps .step-no {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--lime); color: var(--olive);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-family: var(--serif); font-size: 12px; line-height: 1.1; letter-spacing: 0.06em;
}
.steps .step-no b { font-size: 20px; font-weight: 700; }
.steps h3 { margin: 6px 0 2px; font-size: 19px; color: var(--ink); }
.steps h3::before { display: none; }
.steps p { margin: 0; text-indent: 0; }

/* ---------- three spaces / link lists ---------- */
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spaces a { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 22px 18px; }
.spaces .sp-name { font-family: var(--serif); font-size: 23px; color: var(--olive); font-weight: 600; letter-spacing: 0.08em; }
.spaces .sp-lead { display: block; margin: 6px 0 16px; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.spaces .go { margin-top: auto; align-self: flex-end; }
@media (max-width: 760px) {
  .spaces { grid-template-columns: 1fr; gap: 14px; }
  .spaces a { padding: 18px 16px 14px 18px; }
  .spaces .sp-name { font-size: 21px; }
}

/* 一覧（棚、記録、入口など）：1件ずつ浮いたカードにして、すき間をあける */
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.index-list li { margin: 0; }
.index-list a {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name go" "desc go";
  column-gap: 24px; row-gap: 4px; align-items: center; padding: 20px 18px 20px 22px;
}
.index-list .il-name { grid-area: name; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--olive); line-height: 1.55; }
.index-list .il-desc { grid-area: desc; font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.index-list .go { grid-area: go; }
@media (max-width: 640px) {
  .index-list a { grid-template-columns: 1fr; grid-template-areas: "name" "desc" "go"; padding: 16px 14px 14px 18px; }
  .index-list .il-name { font-size: 19px; }
  .index-list .go { justify-self: end; margin-top: 10px; }
}

/* ---------- the five doors ---------- */
.doors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 12px 0 8px; }
.door {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 2px solid var(--lime); border-bottom-width: 6px;
  border-radius: 999px 999px 10px 10px;
  padding: 40px 12px 20px; min-height: 340px;
}
.door::after {  /* ドアノブ */
  content: ""; position: absolute; right: 9px; top: 62%; width: 9px; height: 9px; border-radius: 50%; background: var(--lime);
}
.door .d-no { font-family: var(--serif); font-size: 15px; color: var(--olive); letter-spacing: 0.2em; }
.door .d-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--olive); margin: 12px 0 14px; line-height: 1.5; writing-mode: horizontal-tb; }
.door .d-voice { font-size: 13px; line-height: 1.9; color: var(--ink-soft); }
.door .go { margin-top: auto; font-size: 13px; letter-spacing: 0.04em; padding-left: 12px; gap: 6px; }
.door .go::after { width: 26px; height: 26px; background-size: 13px; }
@media (min-width: 1001px) and (max-width: 1120px) { .door .go { font-size: 12px; padding-left: 10px; } }
@media (max-width: 1000px) {
  .doors { grid-template-columns: 1fr; gap: 14px; }
  .door {
    display: grid; grid-template-columns: 56px 1fr; text-align: left; align-items: center;
    min-height: 0; padding: 16px 14px 14px 12px; border-radius: 12px; border-width: 1px; border-left-width: 6px; border-left-color: var(--lime);
    column-gap: 14px;
  }
  .door::before { /* 小さな扉のしるし */
    content: ""; grid-row: 1 / 4; width: 40px; height: 56px; border: 2px solid var(--lime); border-radius: 999px 999px 3px 3px; justify-self: center;
  }
  .door::after { display: none; }
  .door .d-no { grid-column: 2; }
  .door .d-name { grid-column: 2; margin: 2px 0 4px; font-size: 19px; }
  .door .d-voice { grid-column: 2; font-size: 14px; }
  .door .go { grid-column: 1 / 3; justify-self: end; margin-top: 10px; font-size: 14px; padding-left: 16px; gap: 10px; }
  .door .go::after { width: 30px; height: 30px; background-size: 15px; }
  .door br.pc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .index-list a, .spaces a, .door, .exits a, .related li a, .case-nav a, .more-link { transition: none; }
}

.exits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.exits a { display: block; padding: 16px 62px 18px 18px; }
.exits .ex-verb { display: block; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.08em; }
.exits .ex-name { display: block; font-family: var(--serif); font-size: 19px; color: var(--olive); font-weight: 600; margin-top: 2px; }
@media (max-width: 760px) { .exits { grid-template-columns: 1fr; } }

/* ---------- boxes ---------- */
/* 押せない囲み：影も角丸の枠もない、左の帯だけの注記 */
.box { border: 0; border-left: 4px solid var(--lime); background: #F6F8EE; border-radius: 0 8px 8px 0; padding: 20px 22px; margin: 24px 0; box-shadow: none; }
.box.cream { background: var(--cream); border-left-color: #D9C266; }
.box h3 { margin-top: 0 !important; }
.box p:last-child { margin-bottom: 0; }

.fee-figure { text-align: center; margin: 18px 0 26px; text-indent: 0 !important; }
.fee-figure .yen { font-family: var(--serif); font-size: clamp(28px, 5vw, 38px); color: var(--olive); font-weight: 700; letter-spacing: 0.04em; display: block; }
.fee-figure .tax { font-size: 15px; color: var(--ink-soft); }

table.facts { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
table.facts th, table.facts td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; line-height: 1.75; }
table.facts th { width: 8.5em; color: var(--olive); font-weight: 500; white-space: nowrap; }
@media (max-width: 520px) { table.facts th { width: 6.5em; white-space: normal; } }

.faq { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--lime); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 58px 18px 2.4em; position: relative; min-height: 64px;
  font-family: var(--serif); font-size: 19px; color: var(--ink); font-weight: 600; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 16px; font-family: var(--serif); color: var(--olive); font-size: 22px; }
.faq summary::after {  /* 開け閉めのボタン */
  content: "＋"; position: absolute; right: 4px; top: 50%; width: 38px; height: 38px; margin-top: -19px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--olive); color: #fff; font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "－"; background: var(--paper); color: var(--olive); border: 2px solid var(--olive); }
.faq summary:active { background: var(--lime-pale); }
@media (hover: hover) { .faq summary:hover { background: #FAFCF4; } }
.faq .answer { padding: 0 0 12px 2.4em; }

.call-box { text-align: center; }
.call-box .tel-big {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(28px, 5vw, 36px); color: var(--olive);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; font-weight: 700; letter-spacing: 0.06em;
}
.call-box .tel-big::before {
  content: ""; width: 0.9em; height: 0.9em; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23647F20' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 22px;
  border-radius: 6px; text-decoration: none; font-weight: 700; letter-spacing: 0.06em;
  background: var(--olive); color: #fff; box-shadow: 0 3px 0 #3E4F12;
}
.btn:hover { background: var(--olive-dark); color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn.ghost { background: var(--paper); color: var(--olive); border: 1.5px solid var(--lime); box-shadow: 0 3px 0 var(--card-edge); }
.btn.ghost:hover { background: var(--lime-pale); color: var(--olive-dark); }

.map-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--lime-pale); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 760px) { .map-frame { aspect-ratio: 16 / 9; } }

.figure-photo { margin: 8px 0 28px; }
.figure-photo img { border-radius: 6px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.figure-photo figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- disclosure ---------- */
.disclosure { border-top: 1px solid var(--line); padding: 40px var(--gutter) 48px; background: var(--paper); }
.disclosure .wrap { max-width: 1040px; }
.disclosure h2 { font-size: 17px; margin: 0 0 12px; color: var(--olive); letter-spacing: 0.08em; }
.disclosure dl { display: grid; grid-template-columns: 9em 1fr; gap: 6px 16px; margin: 0; font-size: 14px; line-height: 1.8; }
.disclosure dt { color: var(--olive); font-weight: 500; }
.disclosure dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .disclosure dl { grid-template-columns: 1fr; } .disclosure dd { margin-bottom: 8px; } }

/* ---------- related ---------- */
.related { padding: 48px var(--gutter) 56px; background: var(--lime-pale); }
.related .wrap { max-width: 1040px; }
.related h2 { font-size: 20px; margin: 0 0 16px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related li a { display: block; height: 100%; min-height: 72px; padding: 14px 62px 16px 16px; }
.related .r-name { display: block; font-family: var(--serif); color: var(--olive); font-weight: 600; font-size: 17px; }
.related .r-note { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin-top: 2px; }
@media (max-width: 760px) { .related ul { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- footer ---------- */
.site-footer { background: #3E4A17; color: #F4F2E4; padding: 48px var(--gutter) 110px; font-size: 14px; line-height: 1.9; }
.site-footer a { color: #F4F2E4; }
.footer-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer .f-brand { font-family: var(--serif); font-size: 22px; letter-spacing: 0.12em; margin: 0 0 6px; color: #fff; }
.site-footer h2 { font-family: var(--serif); font-size: 15px; color: var(--lime); margin: 0 0 8px; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul a { display: inline-block; padding: 5px 0; }
.site-footer .f-legal { max-width: 1040px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 12px; color: #D9DCC4; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }

/* 携帯の画面下に出る電話の帯 */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,0.97); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .callbar a { flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; }
  .callbar .cb-tel { background: var(--olive); color: #fff; box-shadow: 0 3px 0 #3E4F12; }
  .callbar .cb-map { background: var(--paper); color: var(--olive); border: 1.5px solid var(--lime); box-shadow: 0 3px 0 var(--card-edge); }
  .callbar a:active { transform: translateY(3px); box-shadow: none; }
}

@media print {
  .site-header, .callbar, .drawer, .related { display: none !important; }
  .hero { min-height: 0; color: var(--ink); background: none; }
}

/* ---------- 症例のページ ---------- */
mark.todo { background: #FFF1A8; color: #6A4B00; padding: 0 2px; border-radius: 2px; }
.case-sheet { margin: 0 0 8px; display: grid; grid-template-columns: 11em 1fr; border-top: 1px solid var(--lime); }
.case-sheet dt, .case-sheet dd { margin: 0; padding: 16px 8px 4px; border-bottom: 1px solid var(--line); }
.case-sheet dt { font-family: var(--serif); color: var(--olive); font-weight: 600; font-size: 17px; line-height: 1.6; }
.case-sheet dt small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.case-sheet dd p { margin-bottom: 0.8em; }
@media (max-width: 640px) {
  .case-sheet { grid-template-columns: 1fr; }
  .case-sheet dt { border-bottom: 0; padding-bottom: 0; }
}
.case-photos { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 12px 0 32px; }
.case-photo { margin: 0; }
.case-photo img { width: 100%; max-width: 640px; margin: 0 auto; border-radius: 4px; background: var(--lime-pale); }
.case-photo figcaption { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.case-photo figcaption b { color: var(--olive); font-weight: 500; }
.case-photo figcaption .pair { display: block; font-size: 13px; margin-top: 2px; }
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 22px; }
.case-nav a { display: block; min-height: 72px; padding: 12px 14px; color: var(--olive); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.case-nav a span { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 2px; letter-spacing: 0.02em; }
.case-nav .cn-prev { padding-left: 62px; }
.case-nav .cn-next { padding-right: 62px; text-align: right; }
@media (max-width: 520px) {
  .case-nav { grid-template-columns: 1fr; }
  .case-nav .cn-next { text-align: left; }
}

/* ---------- 院内の写真 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--cream); border-radius: 4px; }
.gallery figcaption { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 4px; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.page-head h1.long { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.5; }
@media (max-width: 520px) { .case-nav > span:empty { display: none; } }
.btn-row.start { justify-content: flex-start; }
/* 大事な一歩のボタン（矢印つき、スマホでは横いっぱい） */
.btn-go { gap: 12px; padding-right: 10px; min-height: 54px; font-size: 17px; }
.btn-go::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2) var(--chev-w) center / 15px no-repeat; }
@media (max-width: 600px) { .btn-row.start .btn-go { width: 100%; justify-content: space-between; padding-left: 22px; } }
.prose .btn-row + p.note { margin-top: 10px; }
/* 見出しやボタンの文字を、言葉の切れ目で折り返す（対応するブラウザのみ） */
h1, h2, h3, .il-name, .sp-name, .d-name, .ex-name, .r-name, .more-link, .faq summary { word-break: auto-phrase; text-wrap: balance; }

/* ---------- 動画（カウンセリングの前に） ---------- */
.prose h2 small { font-size: 0.68em; color: var(--ink-soft); font-weight: 500; margin-left: 4px; letter-spacing: 0.04em; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 14px 0 6px; border-radius: 12px; overflow: hidden; background: #1C1C19; box-shadow: 0 8px 22px rgba(30, 30, 20, 0.18); }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.video-play::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.45)); }
.play-btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--olive); box-shadow: 0 4px 0 #3E4F12, 0 8px 22px rgba(0,0,0,0.35); transition: transform .12s ease, box-shadow .12s ease; }
.play-btn::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.play-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,0.95); color: var(--olive); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,0.2); }
.video-play:active .play-btn { transform: translateY(3px); box-shadow: 0 1px 0 #3E4F12, 0 3px 8px rgba(0,0,0,0.3); }
@media (hover: hover) { .video-play:hover .play-btn { background: var(--olive-dark); } }
.video-sub { text-align: right; margin: 0 0 18px; }
.prose h3.ch-head { margin-top: 18px; font-size: 17px; }
.chapters { list-style: none; margin: 6px 0 44px; padding: 0; border-top: 1px solid var(--line); }
.chapters a {
  display: grid; grid-template-columns: 3.6em 1fr 30px; align-items: center; gap: 12px; min-height: 54px;
  padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.6; font-size: 16px;
}
.chapters a::after {
  content: ""; width: 30px; height: 30px; border-radius: 50%;
  background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l11 7-11 7z' fill='%23fff'/%3E%3C/svg%3E") 55% center / 13px no-repeat;
}
.ch-time { font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums; background: var(--lime-pale); border-radius: 6px; text-align: center; padding: 2px 0; font-size: 14px; }
.chapters a:active { background: var(--lime-pale); }
@media (hover: hover) { .chapters a:hover { background: #FAFCF4; } }
.prose .chapters li a { text-decoration: none; font-weight: 400; }
/* 扉から症例の棚へ */
.section-lead { margin: -14px 0 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; max-width: 46em; }
.door-records .link-row { margin-top: 20px; }
.link-row.jump { margin: -4px 0 26px; }
.more-link.down::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ===== 道しるべ =====
   オレンジの札は「次の一歩」の印。オレンジは道しるべにだけ使う。 */
.mk { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 14px; border-radius: 999px;
  background: var(--michi); color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 700;
  letter-spacing: 0.12em; line-height: 1.3; text-indent: 0; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(150, 60, 10, 0.24); }
.mk::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32); }
p.mk { display: flex; width: fit-content; margin: 0 0 20px; }

/* カードに掛ける札 */
.mk.tab { position: absolute; top: -19px; left: 16px; z-index: 2; padding: 7px 17px 7px 12px; font-size: 15px; }
.spaces a { padding-top: 34px; }
.spaces a.primary, .index-list a.has-tab { border: 2px solid var(--michi-edge); box-shadow: 0 4px 0 var(--michi-edge), 0 16px 34px rgba(150, 60, 10, 0.14); }
.index-list a.has-tab { padding-top: 36px; }
.spaces a.primary .go, .index-list a.has-tab .go { background: var(--michi); }
.spaces a.primary:active, .index-list a.has-tab:active { box-shadow: 0 0 0 var(--michi-edge), 0 4px 10px rgba(150, 60, 10, 0.14); }
@media (hover: hover) {
  .spaces a.primary:hover, .index-list a.has-tab:hover { border-color: var(--michi); box-shadow: 0 4px 0 var(--michi), 0 18px 38px rgba(150, 60, 10, 0.18); }
  .spaces a.primary:hover .go, .index-list a.has-tab:hover .go { background: var(--michi-deep); }
}

/* ページの終わりの道しるべ */
.michi { padding: 56px var(--gutter) 60px; background: var(--cream); border-top: 1px solid var(--line); }
.michi .wrap { max-width: 680px; }
.michi p.mk { position: relative; z-index: 2; margin: 0 auto -21px; }
.michi-go { position: relative; display: block; padding: 38px 100px 26px 28px; background: var(--paper); color: var(--ink); text-decoration: none;
  border: 2px solid var(--michi-edge); border-radius: 16px; box-shadow: 0 4px 0 var(--michi-edge), 0 18px 38px rgba(150, 60, 10, 0.14); }
.michi-go::after { content: ""; position: absolute; top: 50%; right: 22px; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%;
  background: var(--michi) var(--chev-w) center / 22px no-repeat; box-shadow: 0 3px 0 var(--michi-deep); }
.michi-go.tel::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.9.6 2.8.7a2 2 0 0 1 1.7 2z' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 24px; }
.michi-go .mg-name { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--olive); line-height: 1.45; letter-spacing: 0.04em; }
.michi-go .mg-tel { display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--olive); letter-spacing: 0.04em; line-height: 1.35; white-space: nowrap; }
.michi-go .mg-note { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.michi-go:active { transform: translateY(3px); box-shadow: 0 0 0 var(--michi-edge), 0 4px 10px rgba(150, 60, 10, 0.14); }
@media (hover: hover) {
  .michi-go:hover { border-color: var(--michi); box-shadow: 0 4px 0 var(--michi), 0 22px 42px rgba(150, 60, 10, 0.18); }
  .michi-go:hover::after { background-color: var(--michi-deep); }
}
.michi-lost { margin: 22px 0 0; font-size: 15px; line-height: 1.8; text-indent: 0; }
.michi .michi-lost { text-align: center; }
.michi-lost a { color: var(--olive); font-weight: 700; text-underline-offset: 4px; }
.michi-lost a + a { margin-left: 1.8em; }
.door-records .michi-lost { margin-top: 24px; }

/* 道のり（いまどこにいるか） */
.michi-route { list-style: none; margin: 0 auto 40px; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); max-width: 600px; }
.michi-route li { position: relative; margin: 0; text-align: center; }
.michi-route li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--card-edge); }
.michi-route li:first-child::before { display: none; }
.michi-route li.done::before, .michi-route li.now::before { background: var(--olive); }
.michi-route .r-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-soft); font-size: 13px; letter-spacing: 0.04em; line-height: 1.3; }
.michi-route .r-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--card-edge); }
.michi-route .done .r-dot { background: var(--olive); border-color: var(--olive); }
.michi-route .now .r-dot { background: var(--michi); border-color: var(--michi); box-shadow: 0 0 0 6px rgba(191, 83, 23, 0.18); }
.michi-route .now .r-label { color: var(--michi); font-weight: 700; }
.michi-route .next .r-dot { border-color: var(--michi); border-width: 3px; }
@media (hover: hover) { .michi-route a.r-in:hover .r-label { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; } }

@media (max-width: 600px) {
  .spaces a { padding-top: 30px; }
  .michi { padding: 44px var(--gutter) 48px; }
  .mk { font-size: 15px; padding: 8px 18px 8px 13px; }
  .michi-go { padding: 34px 78px 22px 20px; }
  .michi-go::after { right: 16px; width: 48px; height: 48px; margin-top: -24px; background-size: 19px; }
  .michi-go.tel::after { background-size: 21px; }
  .michi-go .mg-name { font-size: 21px; }
  .michi-go .mg-tel { font-size: 27px; }
  .michi-route { margin-bottom: 34px; }
  .michi-route .r-in { font-size: 11.5px; letter-spacing: 0; }
}
@media print { .michi-route { display: none; } }
 
/* 道のり（ページの頭）と、その中の細かな位置 */
.michi-top { margin: 28px 0 0; max-width: 600px; }
.michi-top .michi-route { margin: 0; max-width: none; }
.route-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.michi-sub { position: relative; margin: 20px 0 0; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 16px rgba(78, 100, 24, 0.06); }
.michi-sub::before { content: ""; position: absolute; top: -8px; left: calc((var(--at) - 0.5) * 12.5% - 7px); width: 14px; height: 14px; background: var(--paper); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.ms-path { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.7; text-indent: 0; }
.ms-path a { color: var(--olive); text-underline-offset: 3px; }
.ms-path .ms-sep { margin: 0 8px; color: var(--lime); }
.ms-path b { color: var(--michi); font-weight: 700; }
.ms-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.ms-dots { position: relative; display: inline-flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ms-dots::before { content: ""; position: absolute; top: 50%; left: 18px; right: 18px; height: 2px; margin-top: -1px; background: var(--card-edge); }
.ms-dots li { position: relative; margin: 0; }
.ms-dots a, .ms-dots span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.ms-dots a { background: var(--paper); border: 2px solid var(--card-edge); color: var(--olive); }
.ms-dots .now span { background: var(--michi); color: #fff; box-shadow: 0 0 0 5px rgba(191, 83, 23, 0.18); }
@media (hover: hover) { .ms-dots a:hover { border-color: var(--olive); background: var(--lime-pale); } }
.ms-count { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 600px) {
  .michi-top { margin-top: 22px; }
  .michi-sub { padding: 12px 14px; }
  .ms-path { font-size: 13px; }
}
@media print { .michi-top { display: none; } }
