/* hitone.jp の見た目（案C「あたたかい暮らし」）。トップ（index.html）と下のページで共通 */
:root { --bg: #f1ece2; --bg2: #e6dfd1; --ink: #2b3127; --sub: #66695d; --moss: #4f6b4a; --clay: #c0794f; --card: #fbf8f1; --line: #d9d1c1; }
/* 明るさ: 何も選んでいなければ端末の設定に合わせ、右上のボタンで選んだらそちら（theme.js が html に data-theme を付ける） */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #171a15; --bg2: #1f231c; --ink: #e9e6dc; --sub: #a3a596; --moss: #9dbd8f; --clay: #e09a70; --card: #22261f; --line: #353a30; } }
:root[data-theme="dark"] { --bg: #171a15; --bg2: #1f231c; --ink: #e9e6dc; --sub: #a3a596; --moss: #9dbd8f; --clay: #e09a70; --card: #22261f; --line: #353a30; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans JP", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .maru { font-family: "Zen Maru Gothic", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(92%, 2000px); margin: 0 auto; }
@media (max-width: 860px) { .wrap { width: auto; padding: 0 20px; } }

header { position: fixed; inset: 16px 16px auto; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: color-mix(in srgb, var(--card) 78%, transparent); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); width: min(92%, 2000px); margin: 0 auto; box-sizing: border-box; }
.logo { display: flex; gap: 9px; align-items: center; font-family: "Zen Maru Gothic"; font-weight: 900; letter-spacing: .12em; text-decoration: none; }
.logo img { width: 26px; }
nav { display: flex; gap: 22px; font-size: 13.5px; }
nav a { text-decoration: none; color: var(--sub); }
.hd-right { display: flex; align-items: center; gap: 8px; }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme svg { width: 18px; height: 18px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: block; } }
.cta { background: var(--moss); color: #fff; text-decoration: none; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0) } to { transform: scale(1.12) translate(-2%, -1%) } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,16,.1) 30%, rgba(20,22,16,.72)); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 72px; color: #fff; }
.hero .tag { display: inline-block; font-size: 13px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 7vw, 88px); line-height: 1.22; margin: 0 0 22px; letter-spacing: .01em; }
.hero p { max-width: 560px; font-size: 16px; line-height: 2; margin: 0 0 30px; color: rgba(255,255,255,.88); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--clay); color: #fff; text-decoration: none; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-family: "Zen Maru Gothic"; font-size: 15.5px; }
.btn.light { background: #fff; color: #2b3127; margin-left: 8px; }

.marquee { overflow: hidden; background: var(--end, #4f6b4a); color: #f1ece2; padding: 16px 0; }
.marquee div { display: flex; gap: 48px; width: max-content; animation: slide 36s linear infinite; font-family: "Zen Maru Gothic"; font-weight: 700; font-size: 20px; }
.marquee span::after { content: '・'; margin-left: 48px; opacity: .5; }
@keyframes slide { to { transform: translateX(-50%) } }

section { padding: 120px 0 0; }
.label { font-family: "Zen Maru Gothic"; font-weight: 700; color: var(--clay); font-size: 14px; margin-bottom: 12px; }
h2 { font-weight: 900; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.35; margin: 0 0 18px; }
.sub { color: var(--sub); font-size: 16px; line-height: 2; max-width: 620px; margin: 0; }

/* スクロールで 図面 → 家 → 中 と入れ替わる */
.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; margin-top: 56px; }
.story .texts > div { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s; }
.story .texts > div.on { opacity: 1; }
.story .no { font-family: "Zen Maru Gothic"; font-weight: 900; font-size: 56px; color: var(--moss); line-height: 1; margin-bottom: 14px; }
.story h3 { font-size: 28px; margin: 0 0 12px; }
.story p { color: var(--sub); line-height: 2; margin: 0; }
.story .pics { position: sticky; top: 14vh; height: 72vh; border-radius: 32px; overflow: hidden; background: var(--bg2); }
.story .pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s, transform 1.2s; transform: scale(1.05); }
.story .pics img.on { opacity: 1; transform: none; }

.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.use { background: var(--card); border-radius: 28px; padding: 30px 28px; border: 1px solid var(--line); }
.use .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--bg2); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.use small { color: var(--clay); font-weight: 500; }
.use h3 { font-size: 22px; margin: 6px 0 10px; }
.use p { color: var(--sub); line-height: 1.95; margin: 0; font-size: 14.5px; }

.price-wrap { background: var(--card); border-radius: 36px; padding: 56px; margin-top: 48px; border: 1px solid var(--line); }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.p { padding: 0 24px; border-left: 1px solid var(--line); }
.p:first-child { border-left: none; padding-left: 0; }
.p h3 { font-size: 17px; margin: 0 0 8px; }
.p p { color: var(--sub); font-size: 13.5px; line-height: 1.85; margin: 0 0 20px; min-height: 76px; }
.p .yen { font-family: "Zen Maru Gothic"; font-weight: 900; font-size: 46px; line-height: 1; color: var(--moss); }
.p .yen span { font-size: 15px; font-weight: 700; margin-left: 2px; }
.p small { display: block; color: var(--sub); margin-top: 8px; font-size: 12.5px; }
.p .tax { color: var(--sub); font-size: 13.5px; margin-top: 6px; }
.p.hl .yen { color: var(--clay); }
.fine { color: var(--sub); font-size: 13px; line-height: 2; margin: 34px 0 0; padding: 22px 0 0 1.2em; border-top: 1px dashed var(--line); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
a.use { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.use img { border-radius: 18px; margin: -10px -8px 18px; width: calc(100% + 16px); aspect-ratio: 16 / 10; object-fit: cover; }
.use .more { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--clay); }

.end { margin: 130px 0 0; background: var(--end, #4f6b4a); color: #f6f2e8; border-radius: 40px; padding: 80px 40px; text-align: center; position: relative; overflow: hidden; }
.end::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.06); right: -160px; top: -200px; }
.end h2 { margin: 0 0 14px; } .end p { margin: 0 0 30px; opacity: .85; line-height: 1.9; }
/* お問い合わせ: 左に文、右下に HITONE の子（下の縁から顔を出す） */
.end { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; text-align: left; padding: 0 0 0 64px; }
.end-text { padding: 90px 0; }
.listener { position: relative; width: 250px; height: 345px; margin-right: 6%; }
.listener img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.listener .shut { opacity: 0; }
.listener.blink .shut { opacity: 1; }
.listener.blink img:first-child { opacity: 0; }

footer { padding: 46px 0 52px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--sub); }
footer nav { gap: 18px; flex-wrap: wrap; }

.rise { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.rise.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } .hero > img, .marquee div { animation: none; } }

@media (max-width: 860px) {
  header { inset: 10px 10px auto; } nav.main { display: none; }
  .hero .wrap { padding-bottom: 44px; }
  .btn.light { margin: 10px 0 0; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story .pics { top: 76px; height: 42vh; border-radius: 22px; z-index: 2; }
  .story .texts > div { min-height: 60vh; }
  .uses, .duo, .prices { grid-template-columns: 1fr; }
  .p { border-left: none; padding: 22px 0; border-top: 1px solid var(--line); } .p:first-child { border-top: none; }
  .p p { min-height: 0; }
  .price-wrap { padding: 30px 24px; border-radius: 26px; }
  .end { grid-template-columns: 1fr; padding: 0 24px; text-align: center; }
  .end-text { padding: 56px 0 8px; }
  .listener { width: 200px; height: 276px; margin: 0 auto; }
}
/* ---- 下のページ（会社概要・表記・規約） ---- */
.page { padding-top: 130px; } /* 横の余白は .wrap のもの（スマホは 20px）を使う */
.page section.doc { padding-top: 0; }
.page h1 { font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 30px; }
.page .lead { color: var(--sub); line-height: 2; margin: -12px 0 30px; max-width: 760px; }
.doc { max-width: 900px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; }
.doc p, .doc li { line-height: 2; color: var(--ink); }
.doc ol, .doc ul { padding-left: 1.4em; }
.facts { width: 100%; max-width: 900px; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.facts th, .facts td { padding: 16px 22px; text-align: left; vertical-align: top; line-height: 1.9; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: none; }
.facts th { width: 28%; background: var(--bg2); font-weight: 500; color: var(--sub); }
.todo { background: #fff0b8; color: #6b5200; border-radius: 4px; padding: 0 4px; }
.note { color: var(--sub); font-size: 13px; }
@media (max-width: 860px) { .facts th { width: 34%; } .facts th, .facts td { padding: 12px 14px; } .page { padding-top: 96px; } }

/* 見本の家（埋め込み） */
.walk { position: relative; margin-top: 48px; aspect-ratio: 16 / 9; border-radius: 32px; overflow: hidden; background: #0d0f0c; }
.walk iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.walk-start { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; }
.walk-start img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s; }
.walk-start:hover img { transform: scale(1.03); }
.walk-go { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--clay); color: #fff; font: 700 18px "Zen Maru Gothic"; padding: 18px 34px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.walk-start { z-index: 1; }
.walk-prep { position: absolute; left: 50%; top: calc(50% + 46px); transform: translateX(-50%); color: #fff; font: 700 13px "Zen Maru Gothic"; background: rgba(20,22,18,.55); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.walk-prep[hidden] { display: none; }
.walk.in .walk-start { display: none; }
.walk-bar { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.walk-bar button, .walk-bar a { font: 700 13.5px "Zen Maru Gothic"; background: rgba(20,22,18,.72); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); }
.walk.in .walk-bar { right: auto; left: 50%; bottom: auto; top: 12px; transform: translateX(-50%); }
.walk:fullscreen { border-radius: 0; aspect-ratio: auto; }
.walk.full { position: fixed; inset: 0; z-index: 1000; margin: 0; border-radius: 0; aspect-ratio: auto; }
body.walk-lock { overflow: hidden; }
.walk-note { color: var(--sub); font-size: 13.5px; margin: 14px 4px 0; }
.walk-bar > * { white-space: nowrap; }
@media (max-width: 860px) {
  .walk { aspect-ratio: 4 / 5; border-radius: 22px; overflow: visible; margin-bottom: 56px; }
  .walk iframe, .walk-start { border-radius: 22px; overflow: hidden; }
  .walk-go { font-size: 16px; padding: 15px 26px; }
  /* スマホは家の画面の操作と重ならないよう、ボタンを枠の下に出す */
  .walk .walk-bar, .walk.in .walk-bar { top: calc(100% + 10px); bottom: auto; left: 0; right: 0; transform: none; justify-content: center; }
  .walk-bar button, .walk-bar a { background: var(--ink); color: var(--bg); }
  .walk.full .walk-bar, .walk:fullscreen .walk-bar { top: auto; bottom: 86px; }
  .walk.full iframe { border-radius: 0; }
}
