/* 訪問美容サービス 手とて — 共通スタイル
   方針: 文字は大きめ・コントラスト高め・温かいトーン。家族世代〜高齢の方がスマホで読む前提。 */

:root {
  --bg: #fbf7f2;          /* 生成り */
  --surface: #ffffff;
  --surface-warm: #f4ece2;
  --fg: #3a2e26;          /* こげ茶（本文） */
  --fg-muted: #6b5a4e;
  --accent: #b5543c;      /* テラコッタ（見出し・リンク） */
  --accent-strong: #96402b;
  --line: #00833e;        /* LINEボタン（白文字で読めるよう公式色より濃く） */
  --border: #e6dbcf;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(58, 46, 38, .08);
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --maxw: 1080px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  padding-bottom: var(--bar-h); /* 下部固定バーの分 */
}
@media (min-width: 900px) {
  body { font-size: 18px; padding-bottom: 0; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.45; margin: 0 0 .6em; }
h2 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--warm { background: var(--surface-warm); }
.section__lead { color: var(--fg-muted); margin-bottom: 28px; }
.eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: .08em;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}

/* ── ヘッダー ── */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px;
}
.logo { text-decoration: none; color: var(--fg); font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
.logo small { display: block; font-size: .72rem; color: var(--fg-muted); font-weight: 500; }
.logo span { font-size: 1.35rem; }
.global-nav { display: none; }
.global-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.global-nav a { color: var(--fg); text-decoration: none; font-size: .95rem; }
.global-nav a:hover { color: var(--accent); }
.header-tel {
  display: none; text-decoration: none; color: var(--accent-strong);
  font-weight: 700; font-size: 1.15rem; white-space: nowrap;
}
@media (min-width: 900px) {
  .global-nav, .header-tel { display: block; }
}

/* ── ボタン ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; line-height: 1.3;
  border: 2px solid transparent;
}
.btn--tel { background: var(--accent); color: #fff; }
.btn--tel:hover { background: var(--accent-strong); }
.btn--line { background: var(--line); color: #fff; }
.btn--form { background: var(--surface); color: var(--accent-strong); border-color: var(--accent); }
.btn small { display: block; font-size: .78rem; font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── ヒーロー ── */
.hero { padding: 36px 0 48px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(1.4rem, 6vw, 2.5rem); margin-bottom: .5em; }
.phrase { display: inline-block; } /* 文節の途中で折り返さない */
.hero__sub { font-size: 1.05rem; }
.hero__area {
  display: inline-block; background: var(--surface-warm); border-radius: 999px;
  padding: 4px 14px; font-size: .9rem; font-weight: 700; margin-bottom: 14px;
}
.hero__photo { position: relative; max-width: 520px; justify-self: center; margin: 0; }
.hero__photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__photo figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92);
  border-radius: 10px; padding: 6px 12px; font-size: .85rem; line-height: 1.5;
}
.hero__price { margin-top: 18px; font-size: .95rem; color: var(--fg-muted); }
.hero__price strong { color: var(--fg); font-size: 1.15rem; }
.hero__sub-link { font-size: .95rem; margin: 8px 0 0; }
.btn-link { align-self: center; font-weight: 700; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}

/* ── 入口カード（どなたのご相談ですか？） ── */
.entry-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .entry-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 600px) and (max-width: 899px) { .entry-card:last-child { grid-column: span 2; } }
@media (min-width: 900px) {
  /* 上段: ご自宅・施設の2枚、下段: 着付け・撮影・ウィッグの3枚 */
  .entry-grid { grid-template-columns: repeat(6, 1fr); }
  .entry-card { grid-column: span 2; }
  .entry-card--main { grid-column: span 3; }
}
.entry-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.entry-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.entry-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.entry-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.entry-card p { margin: 0; font-size: .9rem; color: var(--fg-muted); line-height: 1.6; }
.entry-card--main { border-width: 2px; border-color: var(--accent); }
.entry-card__arrow { color: var(--accent); font-weight: 700; font-size: .9rem; }

/* ── 5つの安心 ── */
.promise-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .promise-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .promise-list { grid-template-columns: repeat(3, 1fr); } }
.promise-list li {
  background: var(--surface); border-radius: var(--radius); padding: 18px 20px;
  border-left: 5px solid var(--accent);
}
.promise-list h3 { margin-bottom: 4px; }
.promise-list p { margin: 0; font-size: .95rem; }

/* ── 流れ ── */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 12px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px 16px 64px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; display: grid; place-items: center; font-family: var(--font-head);
}
.steps h3 { margin: 0 0 2px; font-size: 1.05rem; }
.steps p { margin: 0; font-size: .92rem; line-height: 1.7; }

/* ── 料金 ── */
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.price-table td { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.note { font-size: .9rem; color: var(--fg-muted); margin-top: 14px; }
.note-box {
  background: var(--surface); border: 1px dashed var(--accent); border-radius: var(--radius);
  padding: 16px 20px; margin-top: 18px;
}
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ── 担当者・エリア ── */
.profile { display: grid; gap: 24px; align-items: center; }
.profile img { max-width: min(320px, 100%); justify-self: center; }
@media (min-width: 800px) { .profile { grid-template-columns: .7fr 1.3fr; } }
.profile img { border-radius: var(--radius); box-shadow: var(--shadow); }
.profile__name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; margin: 0; }
.profile__role { color: var(--fg-muted); font-size: .92rem; margin-bottom: 14px; }

/* ── FAQ ── */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; padding: 0 18px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; color: var(--accent); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 16px; }

/* ── お問い合わせ ── */
.contact { text-align: center; }
.contact .btn-row { justify-content: center; }
.contact__tel { font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 700; font-family: var(--font-head); }
.contact__tel a { text-decoration: none; }

/* ── フッター ── */
.site-footer { background: var(--fg); color: #f4ece2; padding: 40px 0 28px; font-size: .92rem; }
.site-footer a { color: #f4ece2; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer small { display: block; margin-top: 18px; opacity: .8; }

/* ── 下部固定バー（スマホのみ） ── */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; height: var(--bar-h);
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(58, 46, 38, .1);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; font-size: .85rem; line-height: 1.3; color: #fff;
}
.action-bar__icon { font-size: 1.25rem; line-height: 1; }
.action-bar .is-tel { background: var(--accent); }
.action-bar .is-line { background: var(--line); }
.action-bar .is-form { background: var(--surface); color: var(--accent-strong); }
@media (min-width: 900px) { .action-bar { display: none; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.price-sale { color: var(--accent-strong); }

/* ── スマホ用メニュー（details の開閉。JavaScript不要） ── */
.mobile-nav { position: relative; }
.mobile-nav summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: .95rem;
  border: 2px solid var(--accent); color: var(--accent-strong); border-radius: 999px; padding: 6px 16px;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--accent); color: #fff; }
.mobile-nav nav {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(80vw, 300px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 6px 0; }
.mobile-nav a { display: block; padding: 12px 20px; color: var(--fg); text-decoration: none; }
.mobile-nav a[aria-current="page"], .global-nav a[aria-current="page"] { color: var(--accent-strong); font-weight: 700; }
@media (min-width: 900px) { .mobile-nav { display: none; } }

/* ── 下層ページ共通 ── */
.breadcrumb { font-size: .85rem; color: var(--fg-muted); padding-top: 14px; }
.breadcrumb a { color: var(--fg-muted); }
.page-hero { padding: 28px 0 48px; }
.page-hero h1 { font-size: clamp(1.55rem, 5.5vw, 2.2rem); }
.page-hero__lead { font-size: 1.05rem; max-width: 46em; }
.page-hero .btn-row { margin-top: 20px; }
.page-hero__img { max-width: min(360px, 100%); justify-self: center; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col > img.rounded { max-width: min(420px, 100%); justify-self: center; }
.stack { display: grid; gap: 14px; }
.stack .note-box { margin-top: 0; }
.note-box p { margin: 6px 0 0; }
.narrow { max-width: 680px; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { padding-left: 1.6em; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* 施設向け: 要点4つ */
.fact-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact-grid li { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.fact-grid__label { font-size: .85rem; color: var(--fg-muted); }
.fact-grid strong { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.5; }

/* 着付け: 料金表を3列 */
.price-columns { display: grid; gap: 24px; }
@media (min-width: 900px) { .price-columns { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.price-columns h3 { margin-bottom: 10px; }

/* 撮影: プランカード */
.plan-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-width: 0; }
.plan--main { border: 2px solid var(--accent); }
.plan__price { font-size: 1rem; color: var(--fg-muted); line-height: 1.6; }
.plan__price strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--fg); }
.plan__price .price-sale { color: var(--accent-strong); }
.photo-sample { margin: 0; justify-self: center; max-width: min(360px, 100%); position: relative; }
.photo-sample img { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-sample figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92);
  border-radius: 8px; padding: 2px 10px; font-size: .8rem;
}

/* ウィッグ: 写真2枚・比較表 */
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.compare-wrap, .compare-table { width: 100%; }
.compare-table { border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--surface-warm); }

/* お問い合わせ */
.contact-ways { display: grid; gap: 16px; }
@media (min-width: 700px) { .contact-ways { grid-template-columns: 1fr 1fr; } }
.contact-way { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; text-align: center; }
.contact-way .contact__tel { margin: 0; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.req { font-size: .75rem; background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--fg); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.two-col > * { min-width: 0; }
.form-status { margin: 0; font-size: .95rem; color: var(--accent-strong); }
.form-done { background: var(--surface-warm); border-radius: var(--radius); padding: 22px 24px; }
.form-done[hidden] { display: none; }
.contact-form[hidden] { display: none; }
