/* 配色はここだけ変えれば全体が変わります */
:root {
  --accent: #9d6f62;      /* アクセント（MARIKAのくすみローズ）。深緑にするなら #2d5a4a */
  --bg: #ffffff;          /* 白ベース */
  --bg-alt: #f7f3f0;      /* 薄いベージュ */
  --text: #333333;
  --sub: #777777;
  --line: #e8e2dd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* ヒーロー */
/* スマホ：写真が上、文字が下。パソコン：左に文字、右に写真 */
.hero {
  --hero-bg: #2f2724;
  background: var(--hero-bg);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
}
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; }
/* 写真の下側を背景色になじませる */
.hero-photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(47, 39, 36, 0), var(--hero-bg));
}
.hero-inner { padding: 8px 24px 56px; text-align: left; }
.hero-label { letter-spacing: 0.4em; font-size: 12px; margin-bottom: 8px; }
.hero-title { font-size: 44px; font-weight: 500; letter-spacing: 0.25em; margin-bottom: 20px; }
.hero-copy { font-size: 20px; letter-spacing: 0.08em; }
.hero-sub { font-size: 14px; letter-spacing: 0.15em; margin: 6px 0 32px; opacity: 0.9; }

/* ボタン */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 40px;
  letter-spacing: 0.06em;
  font-size: 15px;
}
.btn:hover { opacity: 0.88; }
.btn:focus-visible, a:focus-visible { outline: 3px solid #d9b8ac; outline-offset: 3px; }

/* セクション共通 */
.section { padding: 72px 20px; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 960px; margin: 0 auto; }
.narrow { max-width: 640px; }
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 36px;
  color: var(--accent);
}
.section p { margin-bottom: 1.2em; }
.center { text-align: center; }
.note { font-size: 13px; color: var(--sub); }

/* メニューカード */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
}
.card h3 { font-size: 18px; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.card-text { font-size: 13.5px; line-height: 1.8; margin-bottom: 14px !important; }
.card-price { font-size: 17px; font-weight: 500; margin-bottom: 0 !important; }
.card-price span { display: block; font-size: 12px; font-weight: 400; color: var(--sub); }

/* 院内の写真 */
.wide-photo { margin-bottom: 24px; }
.wide-photo img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; }
.wide-photo figcaption { text-align: center; font-size: 12.5px; color: var(--sub); margin-top: 8px; }

/* アクセス */
.access-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.access {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.access img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.access-body { padding: 16px 18px 6px; }
.access-body h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.area { font-size: 12px; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 2px !important; }
.access-body p { font-size: 14px; margin-bottom: 0.8em; }

/* フッター */
.footer { text-align: center; padding: 40px 20px 32px; background: #2f2724; color: #e9e0db; font-size: 13px; }
.footer-name { font-size: 16px; letter-spacing: 0.15em; margin-bottom: 8px; }
.footer-note { font-size: 12px; opacity: 0.75; margin-bottom: 10px; }
.copyright { font-size: 12px; opacity: 0.6; }

/* スマホ */
@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-copy { font-size: 17px; }
  .section { padding: 56px 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .access-list { grid-template-columns: 1fr; }
}

/* パソコン：左に文字、右に写真 */
@media (min-width: 769px) {
  .hero {
    grid-template-columns: 5fr 6fr;
    min-height: 82vh;
    align-items: stretch;
  }
  .hero-inner {
    order: 1;
    align-self: center;
    padding: 64px 40px 64px max(40px, calc((100vw - 960px) / 2));
  }
  .hero-photo { order: 2; }
  .hero-photo img { height: 100%; object-fit: cover; object-position: center top; }
  /* 写真の左端を、文字側の背景になじませる */
  .hero-photo::after {
    top: 0; left: 0; right: auto; bottom: 0;
    width: 22%; height: auto;
    background: linear-gradient(to right, var(--hero-bg), rgba(47, 39, 36, 0));
  }
}

/* ストーリー部分（共感・考え方・不安・相談など） */
.story { text-align: center; }
.story p { margin-bottom: 1.5em; letter-spacing: 0.03em; }
.story .note { text-align: center; }
.em { font-size: 18px; line-height: 2; color: var(--accent); }
.section-title { line-height: 1.7; text-wrap: balance; }
.sub-title { text-align: center; font-size: 17px; font-weight: 500; letter-spacing: 0.1em; margin: 28px 0 20px; color: var(--text); }
.small-label { font-size: 12px; letter-spacing: 0.2em; color: var(--sub); margin-bottom: 2px !important; }
.name { font-size: 22px; letter-spacing: 0.25em; color: var(--text); margin-bottom: 1.2em !important; }

/* 箇条書き（中央に置いて、文字は左そろえ） */
.list { list-style: none; display: table; margin: 0 auto 1.6em; text-align: left; }
.list li { position: relative; padding: 4px 0 4px 1.2em; }
.list li::before { content: ""; position: absolute; left: 0; top: 1.2em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* よくある質問 */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; position: relative; padding: 16px 28px 16px 0; line-height: 1.8; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 12px; color: var(--accent); font-size: 22px; }
details[open] summary::after { content: "−"; }
details .a { padding: 0 0 16px; font-size: 14.5px; }
details .a p { margin: 0 !important; }
summary:focus-visible { outline: 3px solid #d9b8ac; outline-offset: 2px; border-radius: 6px; }

/* 最後のご案内 */
.final .btn { padding: 16px 36px; }

/* ===== コンパクト化（離脱を減らす） ===== */
.hero-note { font-size: 12px; opacity: 0.8; margin-top: 10px; }

/* 予約の流れ（3ステップ） */
.steps { list-style: none; counter-reset: s; display: table; margin: 0 auto 1.6em; text-align: left; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 48px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.steps b { display: block; font-weight: 500; }
.steps span { display: block; font-size: 13.5px; color: var(--sub); line-height: 1.7; }

.addr { font-size: 12.5px !important; line-height: 1.7; color: var(--sub); }

/* スマホ：余白と大きさを詰める＋下にボタンを固定 */
.sticky-bar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 76px; }
  .section { padding: 44px 20px; }
  .section-title { font-size: 21px; margin-bottom: 24px; }
  .story p { margin-bottom: 1.2em; }
  .em { font-size: 17px; }

  /* 施術場所：2列でコンパクトに */
  .access-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .access img { aspect-ratio: 4 / 3; }
  .access-body { padding: 10px 12px 2px; }
  .access-body h3 { font-size: 14.5px; margin-bottom: 4px; }
  .access-body p { font-size: 12.5px; margin-bottom: 0.6em; }
  .area { font-size: 11px; }

  details .a { font-size: 14px; }

  .sticky-bar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--line);
  }
  .sticky-bar .btn { display: block; text-align: center; padding: 14px 12px; font-size: 15px; }
}

/* ===== メニューを押すと、プランが出る（JavaScriptなし） ===== */
.tab-hint { text-align: center; font-size: 13px; color: var(--sub); margin: 8px 0 12px !important; }
.plan-tabs { max-width: 640px; margin: 0 auto 8px; }
.tab-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tab-labels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.tab-labels label {
  display: block; text-align: center; cursor: pointer;
  padding: 14px 8px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  font-size: 16px; letter-spacing: 0.08em;
  transition: background .2s, color .2s, border-color .2s;
}
.tab-labels label:hover { border-color: var(--accent); }
.plan-panel { display: none; }
.plan-panel .plan { margin-bottom: 12px; }

#tab-brow:checked ~ .tab-labels label[for="tab-brow"],
#tab-lip:checked ~ .tab-labels label[for="tab-lip"],
#tab-eye:checked ~ .tab-labels label[for="tab-eye"],
#tab-scalp:checked ~ .tab-labels label[for="tab-scalp"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
#tab-brow:checked ~ .plan-panels #panel-brow,
#tab-lip:checked ~ .plan-panels #panel-lip,
#tab-eye:checked ~ .plan-panels #panel-eye,
#tab-scalp:checked ~ .plan-panels #panel-scalp { display: block; }
.tab-input:focus-visible ~ .tab-labels label { outline: 0; }
#tab-brow:focus-visible ~ .tab-labels label[for="tab-brow"],
#tab-lip:focus-visible ~ .tab-labels label[for="tab-lip"],
#tab-eye:focus-visible ~ .tab-labels label[for="tab-eye"],
#tab-scalp:focus-visible ~ .tab-labels label[for="tab-scalp"] { outline: 3px solid #d9b8ac; outline-offset: 2px; }

.plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 8px; text-align: left; }
.plan h4 { font-size: 16.5px; font-weight: 500; color: var(--accent); margin-bottom: 4px; }
.plan-desc { font-size: 13.5px; color: var(--sub); line-height: 1.8; margin-bottom: 8px !important; }
.price-rows .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.price-rows .v { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 500; white-space: nowrap; }
.plan-cta { text-align: center; margin: 14px 0 0 !important; }
.plan-cta .btn { padding: 13px 26px; font-size: 14.5px; }

@media (min-width: 560px) {
  .tab-labels { grid-template-columns: repeat(4, 1fr); }
}

/* ===== パソコンで見たとき：金額の代わりに、LINEへのご案内 ===== */
.pc-note { display: none; }
@media (min-width: 769px) and (hover: hover) {
  .price-rows { display: none; }
  .plan { padding-bottom: 14px; }
  .plan-cta { display: none; }
  .pc-note {
    display: block; max-width: 640px; margin: 18px auto 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 24px 26px; text-align: center;
  }
  .pc-note-title { font-size: 18px; font-weight: 500; color: var(--accent); margin-bottom: 8px !important; }
  .pc-note-text { font-size: 14.5px; margin-bottom: 18px !important; }
  .pc-note-body { display: flex; align-items: center; justify-content: center; gap: 24px; text-align: left; }
  .pc-note-body img { width: 132px; height: 132px; border: 1px solid var(--line); border-radius: 8px; }
  .pc-note-sub { font-size: 13.5px; color: var(--sub); margin-bottom: 12px !important; }
}

/* ===== Ver.3：2つの導線（予約したい人／迷っている人） ===== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ファーストビューの文字と、直下の2つのボタン */
.hero-copy-main { font-size: 26px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.6; margin: 4px 0 14px; }
.hero-sub2 { font-size: 14px; line-height: 1.9; letter-spacing: 0.06em; opacity: 0.92; margin-bottom: 8px; }
.hero-cta { display: grid; gap: 10px; margin-top: 18px; max-width: 360px; }
.hero-cta .btn { text-align: center; padding: 15px 20px; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.75); }
.btn-outline { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { opacity: 1; background: #f7efe9; }
@media (min-width: 769px) { .hero-copy-main { font-size: 32px; } .hero-cta { grid-template-columns: 1fr; max-width: 340px; } .hero-cta .btn { white-space: nowrap; } }

/* 小見出し（同じセクション内の次のステップ） */
.sub-h { margin-top: 44px; }

/* 予約ページ */
.reserve-top { padding-top: 56px; }
.page-title { font-size: 34px; font-weight: 500; letter-spacing: 0.2em; line-height: 1.5; margin-bottom: 14px; color: var(--text); }
.page-title span { display: block; font-size: 16px; letter-spacing: 0.15em; color: var(--accent); margin-top: 6px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 6px; margin-bottom: 14px; }
.box h3 { font-size: 15.5px; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.small-list { display: block; text-align: left; margin: 0 0 1em; }
.small-list li { font-size: 14px; line-height: 1.8; }
.small-p { font-size: 13px; color: var(--sub); line-height: 1.8; margin-bottom: 1em !important; }

/* スマホ下部の固定ボタン（左：相談・詳しく知る／右：予約する） */
.sticky2 { display: none; }
@media (max-width: 768px) {
  .sticky2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  }
  .sticky2 .btn { display: block; text-align: center; padding: 13px 6px; font-size: 15px; }
  .hero-copy-main { font-size: 24px; }
}

/* スマホ：ヘッダー写真を少し低くして、2つのボタンが固定ボタンに隠れないようにする */
@media (max-width: 768px) {
  .hero-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 12%; }
}
