/* hibi select
   色を変えるときは :root と、ジャンルごとの .g-power / .g-hammock / .g-green を直す */

:root {
  --main: #2f4a3f;
  --tint: #ebefe9;       /* ジャンル冒頭の背景 */
  --cta: #b5562f;        /* 購入ボタン */
  --cta-text: #fff;
  --mark: #f6dfa8;       /* 蛍光ペン */
  --text: #2a2723;
  --muted: #6f6a62;
  --bg: #faf8f4;
  --surface: #fff;
  --line: #e3ddd2;
  --kraft: #f1e4cf;      /* トップと店主欄の背景（クラフト紙の色） */
  --deep: #26392f;       /* フッター */
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
}

/* 遺影は静かな色。写真グッズは温かい色。名入れタグは緑 */
.g-memorial { --main: #4a4866; --tint: #e9e7f1; --cta: #55537a; --cta-text: #fff;    --mark: #ddd8ee; }
.g-photo    { --main: #8a4b2a; --tint: #f3e3d4; --cta: #b5562f; --cta-text: #fff;    --mark: #f3d6bd; }
.g-tag      { --main: #2f5a42; --tint: #dcead6; --cta: #2f6b4a; --cta-text: #fff;    --mark: #d5e8c6; }
.g-power   { --main: #1f3550; --tint: #dbe5f0; --cta: #d9952f; --cta-text: #1d1a15; --mark: #f9dfa4; }
.g-hammock { --main: #7a4f2c; --tint: #f2e1cd; --cta: #b5562f; --cta-text: #fff;    --mark: #f3d6bd; }
.g-green   { --main: #2f5a42; --tint: #dcead6; --cta: #b5562f; --cta-text: #fff;    --mark: #d5e8c6; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--main); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.prose { max-width: 35em; }   /* 文章は1行35字くらいまで */

h1, h2, h3 { line-height: 1.45; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 5.4vw, 2.1rem); margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 0 0 12px; }
p { margin: 0 0 1em; }

mark, .mark {
  background: linear-gradient(transparent 58%, var(--mark) 58%);
  color: inherit; padding: 0 2px;
}

/* ヘッダー */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.logo { font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; text-decoration: none; color: var(--text); }
header.site nav { display: flex; gap: 18px; font-size: .85rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--text); }

/* ボタン */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  background: var(--cta); color: var(--cta-text);
  font-weight: 700; font-size: 1.02rem;
  padding: 14px 28px; border-radius: 8px;
}
.btn:hover { filter: brightness(.95); }
.btn.block { display: block; width: 100%; }
.btn.ghost { background: none; color: var(--text); border: 1px solid var(--text); }

/* トップ */
.top { padding: 56px 0 64px; }
.catch {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 7.4vw, 3.1rem); line-height: 1.5; letter-spacing: .03em;
  margin: 0 0 20px;
}
.top .concept { color: var(--muted); max-width: 30em; }
.toc { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); max-width: 560px; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 14px 4px; text-decoration: none; color: var(--text); }
.toc a b { color: var(--main); min-width: 8.5em; }
.toc a span { color: var(--muted); font-size: .92rem; }
.toc a:hover b { text-decoration: underline; }

/* ジャンル */
.genre-intro { background: var(--tint); border-top: 4px solid var(--main); padding: 48px 0 52px; }
.genre-label { font-size: .88rem; font-weight: 700; color: var(--main); margin: 0 0 10px; }
.genre-intro h2 { font-size: clamp(1.65rem, 6.2vw, 2.4rem); }
.genre-intro .lead { color: #4d4841; max-width: 30em; margin: 0; }
.intro-grid { display: grid; gap: 28px; }
.photo {
  margin: 0; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: .85rem;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

.genre-body { padding: 44px 20px 72px; }
.part { margin-top: 48px; }
.part:first-child { margin-top: 0; }
.part > h3 { font-size: clamp(1.15rem, 4.2vw, 1.35rem); }

ul.dash { list-style: none; padding: 0; margin: 0; }
ul.dash li { position: relative; padding-left: 1.2em; margin-bottom: 6px; }
ul.dash li::before { content: "―"; position: absolute; left: 0; color: var(--muted); font-size: .8em; top: .25em; }

/* 比較表 */
table.compare { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.compare thead th { background: var(--tint); font-size: .88rem; }
table.compare tbody th { width: 22%; font-weight: 700; }
table.compare .us { background: color-mix(in srgb, var(--tint) 45%, var(--surface)); }
table.compare small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.6; margin-top: 2px; }
.lv { font-weight: 700; }
.lv.no { color: var(--muted); font-weight: 400; }
.table-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.conclusion { font-size: 1.08rem; margin-top: 20px; }

/* チェックリスト */
ol.checklist { list-style: none; padding: 0; margin: 0; }
ol.checklist li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px dashed var(--line); }
ol.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 16px; height: 16px;
  border: 1.5px solid var(--muted); border-radius: 3px; background: var(--surface);
}
ol.checklist li:last-child { border-bottom: 0; }

/* 間取り図 */
.floor { max-width: 520px; }
.floor svg { width: 100%; height: auto; display: block; }
.floor .wall { fill: var(--surface); stroke: #6a6359; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.floor path.wall { fill: none; }
.floor .window { fill: var(--bg); stroke: #6a6359; stroke-width: 2; }
.floor .furn { fill: var(--tint); stroke: #a39b8f; stroke-width: 1.5; }
.floor text { font-family: var(--sans); font-size: 11px; fill: var(--muted); text-anchor: middle; }
.floor .spot circle { fill: var(--main); }
.floor .spot text { fill: #fff; font-size: 13px; font-weight: 700; }
ol.spots { padding-left: 1.4em; margin: 16px 0 0; }
ol.spots li { margin-bottom: 8px; padding-left: 4px; }
ol.spots li::marker { font-weight: 700; color: var(--main); }

/* 仕様（開閉） */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; }
details > :not(summary) { padding: 0 16px 16px; margin: 0; }
details > p { color: #4d4841; }
.spec-block + .spec-block { margin-top: 20px; }
.spec-block h4 { margin: 8px 0 8px; font-size: .95rem; }
table.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.spec th, table.spec td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.spec th { width: 34%; color: var(--muted); font-weight: 500; }

/* 購入 */
.products { display: grid; gap: 14px; scroll-margin-top: 80px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px; }
.product h4 { font-size: 1.1rem; margin: 0 0 4px; }
.product .desc { color: var(--muted); font-size: .9rem; margin: 0; }
.product .first { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--main); margin-bottom: 4px; }
.price { font-size: 1.7rem; font-weight: 700; margin: 12px 0 14px; }
.price small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.ship-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* 店主より */
.owner { padding: 72px 0; border-top: 1px solid var(--line); }
.owner .note { background: var(--surface); border: 1px solid var(--line); padding: 24px 22px; max-width: 35em; }

/* 流れ */
.flow-sec { padding: 64px 0; border-top: 1px solid var(--line); }
ol.flow { padding-left: 1.4em; margin: 0; max-width: 35em; }
ol.flow li { margin-bottom: 14px; padding-left: 4px; }
ol.flow li::marker { font-weight: 700; }
ol.flow b { display: block; }

/* よくある質問 */
.faq-sec { padding: 64px 0 80px; border-top: 1px solid var(--line); }
.faq-group { font-size: .95rem; color: var(--muted); margin: 28px 0 10px; }
.faq-group:first-of-type { margin-top: 8px; }

/* 文章ページ */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); margin: 0 0 28px; }
.doc h2 { font-size: 1.15rem; margin: 40px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc table.spec { background: var(--surface); border-top: 1px solid var(--line); }

/* フッター */
footer.site { background: #24211d; color: #cdc6ba; padding: 44px 0 32px; font-size: .85rem; }
footer.site .logo { color: #fff; display: inline-block; margin-bottom: 18px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
footer.site a { color: #cdc6ba; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site small { color: #8b847a; }

/* スマホ下部の購入ボタン */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
  transition: transform .25s ease;
}
.sticky-cta.hide { transform: translateY(110%); }
.has-cta footer.site { padding-bottom: 100px; }

/* 未確定の箇所。公開前にすべて埋める */
.todo { background: #fff1a6; color: #6b5800; padding: 0 4px; border-radius: 3px; font-style: normal; }

/* スマホ：比較表を行ごとのブロックに組み替える */
@media (max-width: 639px) {
  header.site nav .wide { display: none; }
  table.compare th, table.compare td { padding: 10px; font-size: .88rem; line-height: 1.65; }
  table.compare tbody th { width: 5.5em; }
  table.compare.stack thead { display: none; }
  table.compare.stack, table.compare.stack tbody, table.compare.stack tr,
  table.compare.stack th, table.compare.stack td { display: block; width: 100%; }
  table.compare.stack { background: none; }
  table.compare.stack tr { background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
  table.compare.stack th, table.compare.stack td { border: 0; }
  table.compare.stack tbody th { background: var(--tint); padding: 10px 14px; }
  table.compare.stack td { padding: 8px 14px; border-top: 1px solid var(--line); }
  table.compare.stack td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); }
}

@media (min-width: 640px) {
  .intro-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
  .genre-intro { padding: 72px 0 64px; }
  .genre-body { padding: 64px 20px 96px; }
  .part { margin-top: 64px; }
  .products { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .sticky-cta { display: none; }
  .has-cta footer.site { padding-bottom: 32px; }
  .top { padding: 88px 0 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
}

/* ---------- 色づかい ---------- */
.top { background: var(--kraft); }
.top .concept { color: #5e5446; }
.toc { border-top-color: #d9c8ad; }
.toc li { border-bottom-color: #d9c8ad; }
.toc a b { display: inline-flex; align-items: center; gap: 10px; }
.toc a b::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--main); flex: none; }

.genre-label {
  display: inline-block; background: var(--main); color: #fff;
  padding: 2px 10px; border-radius: 3px; font-size: .82rem;
}
.genre-intro h2 { color: var(--main); }
.photo {
  background: color-mix(in srgb, var(--main) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--main) 22%, transparent);
  color: var(--main);
}
.part > h3 { color: var(--main); }
ul.dash li::before { color: var(--main); }

table.compare thead th { background: var(--main); color: #fff; border-color: var(--main); }
table.compare thead th:first-child { background: var(--surface); border-color: var(--line); }
table.compare tbody th { background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
table.compare .us { background: var(--tint); }
table.compare thead th.us { background: var(--cta); color: var(--cta-text); border-color: var(--cta); }
.lv { color: var(--main); }

ol.checklist li::before { border-color: var(--main); border-width: 2px; }

.products { background: var(--tint); padding: 20px; border-radius: 10px; }
.product { border-color: transparent; }
.product .first { background: var(--cta); color: var(--cta-text); padding: 1px 8px; border-radius: 3px; }
.price { color: var(--main); }
.price small { color: var(--muted); }

.owner { background: var(--kraft); border-top: 0; }
.owner h2 { color: #7a4f2c; }
.owner .note { border-color: #d9c8ad; }

.flow-sec h2, .faq-sec h2 { color: var(--deep); }
ol.flow li::marker { color: #b5562f; }
.faq-group { color: var(--main); }
details[open] > summary { color: var(--main); }

footer.site { background: var(--deep); color: #d3dcd5; }
footer.site a { color: #d3dcd5; }
footer.site small { color: #93a39a; }

@media (max-width: 639px) {
  table.compare.stack tbody th { background: var(--main); color: #fff; }
  table.compare.stack td.us { background: var(--tint); }
  table.compare.stack td::before { color: var(--main); font-weight: 700; }
}

/* ---------- 差別化（判断材料） ---------- */
/* SNSから来た人向けの要約 */
.entry-note {
  margin: 18px 0 0; max-width: 30em; font-size: .92rem;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--main) 25%, transparent);
  border-radius: 6px; padding: 12px 14px;
}

/* 選び方の表：最後の行はページ内リンク */
table.compare tr.pick th, table.compare tr.pick td { background: var(--surface); }
table.compare tr.pick a { font-weight: 700; }

/* 買う前に確かめてください */
.before-buy {
  background: var(--surface); border: 1px dashed color-mix(in srgb, var(--main) 40%, transparent);
  border-radius: 8px; padding: 20px 20px 14px;
}
.before-buy h3 { font-size: 1.05rem; }
.before-buy li { margin-bottom: 10px; }

/* 2枚セットの購入ボタン（2つ並び） */
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-pair .btn { padding: 14px 8px; font-size: .95rem; }

/* 購入前の質問窓口 */
.ask { margin-top: 28px; max-width: 35em; border-top: 1px solid var(--line); padding-top: 18px; font-size: .92rem; }
.ask p { margin-bottom: 6px; }

/* 天井の高さとの比較 */
.height { max-width: 440px; }
.height svg { width: 100%; height: auto; display: block; }
.height .ceil { stroke: #6a6359; stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; }
.height .floorline { stroke: #6a6359; stroke-width: 3.5; stroke-linecap: round; }
.height .pot { fill: #c9b79c; stroke: #6a6359; stroke-width: 2; }
.height .stem { stroke: #6a6359; stroke-width: 3; stroke-linecap: round; }
.height .leaf { fill: var(--tint); stroke: var(--main); stroke-width: 2.5; }
.height .lab { font-family: var(--sans); font-size: 12px; fill: var(--text); text-anchor: middle; }
.height .lab.start { text-anchor: start; }
@media (max-width: 639px) {
  table.compare.stack tr.pick th { display: none; }
}
.price + .price { margin-top: -6px; }
.price .kind { display: block; font-size: .8rem; color: var(--muted); font-weight: 700; }

/* 商品写真（public/images/ に置くと表示される） */
.photo.has-img { border: 0; background: none; overflow: hidden; border-radius: 6px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-pair .photo { aspect-ratio: 3 / 4; font-size: .78rem; text-align: center; padding: 8px; }

/* ---------- お店全体のLP（選ばれる理由・お得・商品一覧） ---------- */
.sp { display: inline; }
.sec-lead { color: var(--muted); max-width: 35em; margin-bottom: 32px; }
.fine { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

/* トップの3つの約束 */
.promise { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; max-width: 640px; }
.promise li {
  background: var(--surface); border: 1px solid #d9c8ad; border-radius: 8px;
  padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
}
.promise b { color: #8a4b2a; font-size: 1.05rem; }
.promise span { color: var(--muted); font-size: .88rem; }
.top-cta { margin-top: 28px; }

/* 選ばれる理由 */
.why { padding: 64px 0; }
.why h2 { color: var(--deep); }
.merits { display: grid; gap: 14px; }
.merit {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px 20px 20px 64px;
}
.merit .num {
  position: absolute; left: 18px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--deep); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}
.merit h3 { color: var(--deep); font-size: 1.08rem; margin-bottom: 8px; }
.merit p { margin: 0; color: #4d4841; font-size: .95rem; }
.merit p.fine { margin-top: 8px; }

/* お得に買う方法 */
.deal { padding: 64px 0; background: var(--kraft); }
.deal h2 { color: #7a4f2c; }
.deals { display: grid; gap: 16px; }
.deal-card { background: var(--surface); border-radius: 10px; padding: 24px 20px; border: 1px solid #d9c8ad; }
.deal-label {
  display: inline-block; background: #b5562f; color: #fff; font-size: .8rem; font-weight: 700;
  padding: 2px 10px; border-radius: 3px; margin: 0 0 10px;
}
.deal-card h3 { font-size: 1.15rem; color: #7a4f2c; }
.deal-card p { color: #4d4841; font-size: .95rem; }
table.calc { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 6px 0 12px; }
table.calc th, table.calc td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.calc th { font-weight: 500; color: var(--muted); }
table.calc tr.us th, table.calc tr.us td { font-weight: 700; color: var(--text); background: #fbf1e6; }
.save { font-size: 1.05rem; margin: 0 0 4px; }
.save strong { font-size: 1.5rem; color: #b5562f; }
.deal-card .btn { margin-top: 16px; background: #b5562f; color: #fff; }

/* 商品一覧 */
.items { padding: 64px 0 72px; border-top: 1px solid var(--line); scroll-margin-top: 54px; }
.items h2 { color: var(--deep); }
.item-grid { display: grid; gap: 16px; }
.item {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--main);
  border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 70px;
}
.item .photo { aspect-ratio: 4 / 3; border: 0; border-radius: 0; }
.item-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.item-body h3 { color: var(--main); margin-bottom: 6px; }
.item-body .desc { color: var(--muted); font-size: .9rem; margin: 0; }
.item-body .price { margin: 12px 0 0; font-size: 1.5rem; }
.item-body .price + .price { margin-top: 6px; }
.item-body .btn, .item-body .btn-pair { margin-top: auto; }
.item-body .price:last-of-type { margin-bottom: 14px; }
.badge {
  align-self: flex-start; background: var(--cta); color: var(--cta-text);
  font-size: .76rem; font-weight: 700; padding: 1px 8px; border-radius: 3px; margin-bottom: 6px;
}
details.specs { margin-top: 20px; }
details.specs table.spec th { width: 7.5em; }

.note-sec { padding: 0 0 64px; }
.last-cta { padding: 64px 0 72px; background: var(--kraft); text-align: center; }
.catch-sm { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 5vw, 1.8rem); line-height: 1.6; margin: 0 0 24px; }

@media (min-width: 640px) {
  .sp { display: none; }
  .promise { grid-template-columns: repeat(3, 1fr); }
  .promise li { flex-direction: column; gap: 2px; }
  .merits { grid-template-columns: repeat(2, 1fr); }
  .deals { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .why, .deal { padding: 88px 0; }
}
@media (min-width: 960px) {
  .merits { grid-template-columns: repeat(3, 1fr); }
  .item-grid { grid-template-columns: repeat(4, 1fr); }
}
