/* 色・書体・余白の値は tokens.css。ここでは直接の色を書かない */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--f-body); /* 端末に入っている書体 */
  font-size: 16px;
  line-height: 1.85;
  color: var(--koge);
  background: var(--white);
  padding-bottom: 64px; /* 画面下の3ボタンの分 */
}
.num { font-variant-numeric: tabular-nums; } /* 数字は本文と同じ書体で、桁の幅だけそろえる */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); }
.wrap-narrow { max-width: 760px; }
.center { text-align: center; }
/* 見出しはDela Gothic One（太さは1種類。太字の指定を外して疑似太字を防ぐ。22px未満では使わない） */
h1, h2, h3 { word-break: auto-phrase; font-family: var(--f-head); font-weight: 400; letter-spacing: .02em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yamabuki-deep); outline-offset: 2px; }

/* 素案の目印（公開前に消す） */
.soan { background: var(--koge); color: var(--white); font-size: 13px; padding: 6px var(--s4); text-align: center; }
.kakunin { background: var(--yamabuki-soft); color: var(--koge); outline: 1px dashed var(--yamabuki-deep); padding: 0 3px; }
.memo { font-size: 14px; color: var(--mute); }

/* 英字の小見出し：白・生成りの上は濃い山吹、写真・こげ茶の上は山吹 */
.en { font-family: var(--f-en); font-style: italic; font-stretch: 125%; font-weight: 800; letter-spacing: .04em; font-size: 15px; margin: 0 0 var(--s1); color: var(--yamabuki-deep); text-transform: uppercase; }
.en-y { color: var(--yamabuki); }
.en-s { display: block; font-size: 12px; }

/* ヘッダー（白地・こげ茶のロゴ） */
.hd { position: sticky; top: 0; z-index: 30; background: var(--white); color: var(--koge); box-shadow: 0 1px 0 var(--line); }
.hd-in { display: flex; align-items: center; gap: var(--s5); height: 60px; }
.hd-logo img { width: 130px; }
.hd-nav { display: flex; gap: 20px; font-size: 14px; flex: 1; justify-content: flex-end; }
.hd-nav a { text-decoration: none; white-space: nowrap; }
.hd-nav a:hover { color: var(--yamabuki-deep); }
.hd-btn { background: var(--yamabuki); color: var(--koge); text-decoration: none; font-weight: 700; font-size: 14px; padding: var(--s2) var(--s4); border-radius: var(--radius); white-space: nowrap; }

/* ファーストビュー（写真にこげ茶の暗幕） */
.hero { position: relative; background: var(--koge); color: var(--white); overflow: hidden; }
.hero-img { width: 100%; height: min(86vh, 760px); min-height: 520px; object-fit: cover; opacity: .5; }
@media (max-width: 700px) { .hero-img { object-position: 72% center; } }
.hero-txt { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 6px 0 18px; font-size: clamp(28px, 5vw, 56px); line-height: 1.35; }
.hero .hl { color: var(--yamabuki); }
.hero-lead { margin: 0; font-size: 17px; max-width: 40em; }
.hero-scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--f-en); font-style: italic; font-stretch: 125%; font-weight: 800; letter-spacing: .08em; font-size: 12px; color: var(--kinari); text-decoration: none; padding-bottom: 36px; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 30px; background: var(--yamabuki); }

/* 実績の数字の帯 */
.stats { background: var(--yamabuki); }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 22px var(--s4); }
.stats-in > div + div { border-left: 1px solid rgba(35, 24, 21, .2); }
.stats-in p { margin: 0; font-size: 14px; }
.stats-n { font-size: 38px !important; font-weight: 700; line-height: 1.2; }
.stats-n small { font-size: 16px; margin-left: 2px; }

/* セクション：白と生成りを交互に。山吹の面は数字の帯と法人の方へだけ */
.sec { padding: var(--s8) 0; }
.sec-alt { background: var(--kinari); }
.sec-y { background: var(--yamabuki); }
.sec-y .en { color: var(--koge); }
.h2 { font-size: 32px; margin: 0 0 var(--s6); line-height: 1.35; }
.h3 { font-size: 22px; margin: var(--s7) 0 20px; }
.lead { font-size: 20px; font-weight: 700; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.two > * { min-width: 0; }

.ph-slot { aspect-ratio: 3/2; border: 2px dashed var(--field); border-radius: var(--radius); display: grid; place-content: center; text-align: center; color: var(--mute); background: var(--kinari); }
.ph-slot p { margin: var(--s1); }
.about-ph { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); }

/* 選ばれる理由 */
.reason { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason-i { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reason-i img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.reason-t { padding: 20px 22px var(--s5); }
.reason-n { margin: 0; font-size: 36px; font-weight: 700; color: var(--yamabuki-deep); line-height: 1; }
.reason-i h3 { font-size: 24px; margin: var(--s3) 0; line-height: 1.5; letter-spacing: .04em; }

.merit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.merit li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.merit li small { font-weight: 400; font-size: 12px; align-self: flex-start; }
.merit-n { width: 30px; height: 30px; border-radius: 50%; background: var(--yamabuki); color: var(--koge); display: grid; place-items: center; font-size: 15px; }

/* サービス */
.notice { border: 2px solid var(--koge); padding: 18px var(--s5); margin-bottom: 36px; border-radius: var(--radius); }
.notice p { margin: 0; }
.notice-t { font-weight: 700; font-size: 18px; margin-bottom: 6px !important; }
.notice-t::before { content: "予約制"; background: var(--koge); color: var(--yamabuki); font-size: 13px; padding: 2px var(--s2); border-radius: 4px; margin-right: 10px; vertical-align: 2px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); }
.tile { position: relative; aspect-ratio: 16/9; background: var(--koge); background-size: cover; background-position: center; color: var(--white); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(35, 24, 21, .5); transition: background .2s; }
.tile:not(.tile-ph)::before { background: linear-gradient(135deg, var(--koge-2), var(--koge)); }
.tile:hover::before { background: rgba(35, 24, 21, .3); }
.tile > span { position: relative; }
.tile-en { font-family: var(--f-en); font-style: italic; font-stretch: 125%; font-weight: 900; letter-spacing: .02em; font-size: 22px; }
.tile-ja { font-size: 14px; margin-top: 2px; border-top: 2px solid var(--yamabuki); padding-top: var(--s1); }

.svc { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.svc-h { font-size: 24px; margin: 0 0 var(--s4); }
.flow { list-style: none; counter-reset: f; margin: 0; padding: 0; }
.flow li { counter-increment: f; position: relative; padding: 10px 0 10px 52px; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--yamabuki); font-variant-numeric: tabular-nums; font-weight: 700; display: grid; place-items: center; }
.flow strong { display: block; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tags li { background: var(--kinari); border-radius: 999px; padding: var(--s1) 14px; font-size: 14px; }

/* 料金 */
.price { width: 100%; max-width: 760px; border-collapse: collapse; background: var(--white); margin: 20px 0 var(--s2); }
.price th, .price td { padding: 14px var(--s4); border-bottom: 1px solid var(--line); text-align: left; }
.price thead th { background: var(--koge); color: var(--white); font-size: 14px; }
.price td:last-child { text-align: right; white-space: nowrap; font-weight: 700; width: 11em; }

/* エリア */
.area { display: flex; align-items: center; justify-content: center; gap: var(--s5); flex-wrap: wrap; }
.area-main { width: 160px; height: 160px; border-radius: 50%; background: var(--yamabuki); display: grid; place-items: center; font-size: 26px; font-weight: 700; margin: 0; }
.area-sub { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.area-sub li { border: 2px solid var(--koge); border-radius: 999px; padding: 6px 20px; font-weight: 700; }

/* 実績 */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.works-i { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.works-ph { aspect-ratio: 4/3; display: grid; place-content: center; text-align: center; color: var(--mute); background: repeating-linear-gradient(45deg, var(--kinari-2) 0 12px, var(--kinari) 12px 24px); }
.works-i dl { display: grid; grid-template-columns: 4em 1fr; margin: 0; padding: var(--s4) 20px; font-size: 14px; gap: var(--s1) 0; }
.works-i dt { color: var(--yamabuki-deep); font-weight: 700; }
.works-i dd { margin: 0; }

/* ボタン：主（山吹）は1画面に1つ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn-line-dark { border: 2px solid var(--koge); background: var(--white); }
.btn-line-dark:hover { background: var(--koge); color: var(--white); }
.btn-send { background: var(--yamabuki); color: var(--koge); width: 100%; font-size: 18px; margin-top: var(--s2); min-height: 56px; }
.btn-send:disabled { opacity: .5; cursor: wait; }

/* よくある質問 */
details { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
summary { cursor: pointer; font-weight: 700; }
summary::marker { color: var(--yamabuki-deep); }
details p { margin: 10px 0 0; }

/* 店舗情報 */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: var(--s3); text-align: left; vertical-align: top; }
.tbl th { width: 7em; background: var(--kinari-2); white-space: nowrap; }
.info-ph { border-radius: var(--radius); margin-bottom: var(--s3); }

/* お問い合わせ */
.contact3 { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin-bottom: 20px; }
.c3 { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 22px; line-height: 1.3; }
.c3 small { font-size: 13px; font-weight: 400; }
.c3-tel { background: var(--white); color: var(--koge); border: 2px solid var(--koge); }
.c3-line { background: var(--line-green); color: var(--koge); } /* 白文字は2.26:1で読めない */
.fm { margin-top: var(--s5); }
.fm-r { display: block; margin: 0 0 18px; border: 0; padding: 0; }
.fm-l { display: block; font-weight: 700; margin-bottom: 6px; }
.fm-l em { font-style: normal; font-size: 12px; background: var(--tel); color: var(--white); border-radius: 4px; padding: 1px 6px; margin-left: var(--s2); }
.fm input[type=text], .fm input[type=tel], .fm input[type=email], .fm select, .fm textarea {
  width: 100%; font: inherit; padding: var(--s3); border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--koge); }
.fm input:focus, .fm select:focus, .fm textarea:focus { outline: 3px solid var(--yamabuki); border-color: var(--koge); }
.fm-c { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.fm-agree { margin: var(--s1) 0 var(--s4); }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: var(--s2); }
.fm-msg { min-height: 1.5em; font-weight: 700; }
.fm-msg.ok { color: var(--ok); }
.fm-msg.ng { color: var(--tel); }
/* 送信の結果は大きく枠で示す */
.fm-msg.ok, .fm-msg.ng { font-size: 18px; line-height: 1.6; padding: 14px 16px; border-radius: var(--radius); border: 2px solid currentColor; background: var(--white); }
.fm[hidden], .fm-done[hidden] { display: none; }
.fm-done { margin-top: var(--s5); padding: 40px 20px; text-align: center; background: var(--white); border: 4px solid var(--ok); border-radius: var(--radius); }
.fm-done:focus { outline: none; }
.fm-done p { margin: 0 0 14px; }
.fm-done .fm-done-mark { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok); color: var(--white); font-size: 52px; line-height: 84px; font-weight: 700; }
.fm-done .fm-done-t { font-size: 34px; font-weight: 700; color: var(--ok); line-height: 1.3; }
.fm-done .fm-done-s { font-size: 19px; font-weight: 700; }
.fm-done .fm-done-h { font-size: 16px; }
.fm-done .fm-done-n { font-size: 16px; margin-top: 24px; margin-bottom: 8px; }
.fm-done-tel { display: inline-block; min-width: 260px; padding: 14px 24px; border: 2px solid var(--koge); border-radius: var(--radius); color: var(--koge); text-decoration: none; font-size: 28px; font-weight: 700; }
.fm-done-again { display: block; margin: 24px auto 0; background: none; border: 0; text-decoration: underline; color: var(--koge); font: inherit; font-size: 15px; cursor: pointer; }
.privacy { margin-top: var(--s5); font-size: 14px; }

.ft { background: var(--koge); color: var(--ft-text); padding: 40px 0 var(--s6); font-size: 14px; }
.ft img { width: 120px; margin-bottom: var(--s3); }
.ft a { color: var(--white); }
.ft-c { color: var(--ft-mute); }

/* 画面下の3ボタン（電話・フォーム・LINEの順で固定） */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.2fr 1fr; height: 64px; box-shadow: 0 -2px 10px rgba(35, 24, 21, .2); }
.bar-i { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; line-height: 1.25; font-size: 17px; }
.bar-i small { font-size: 11px; font-weight: 400; }
.bar-tel { background: var(--koge); color: var(--white); }
.bar-tel > .num { font-size: 22px; color: var(--yamabuki); }
.bar-form { background: var(--yamabuki); color: var(--koge); }
.bar-line { background: var(--line-green); color: var(--koge); opacity: .75; }

@media (max-width: 960px) {
  .hd-nav { display: none; }
  .hd-in { justify-content: space-between; }
  .reason, .works { grid-template-columns: 1fr; }
  .merit { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 32/9; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .sec { padding: var(--s7) 0; }
  .h2 { font-size: 25px; }
  .hero-lead { font-size: 15px; }
  .hero-lead br { display: none; }
  .stats-n { font-size: 28px !important; }
  .stats-in p { font-size: 12px; }
  .tile-en { font-size: 13px; letter-spacing: 0; white-space: nowrap; }
  .tile-ja { font-size: 12px; }
  .contact3 { grid-template-columns: 1fr; }
  .price td:last-child { width: auto; }
  .bar { grid-template-columns: 1.25fr 1fr; }
  .bar-i { font-size: 13px; }
  .bar-tel > .num { font-size: 15px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile::before { transition: none; }
}

@media (max-width: 700px) { .stats-n small { display: block; font-size: 12px; margin: 0; } .stats-in p { padding: 0 4px; } }
