/* 070 白樫の杜レジデンス ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f3eee6;
  --c-paper: #faf7f2;
  --c-dark: #2a231d;
  --c-main: #3b3026;
  --c-accent: #b08d62;
  --c-accent-text: #7a5732;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #ddd2c1;
  --font: "Noto Sans JP", sans-serif;
  --font-ja: "Hina Mincho", serif;
  --font-en: "Tenor Sans", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 2; letter-spacing: .05em; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.en { font-family: var(--font-en); font-size: 16px; letter-spacing: .24em; color: var(--c-accent-text); margin-bottom: 20px; }
.en--light { color: var(--c-accent); }
.title { font-family: var(--font-ja); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.6; letter-spacing: .12em; color: var(--c-main); margin-bottom: 28px; }
.title--sm { font-size: clamp(26px, 2.6vw, 34px); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; text-decoration: none; letter-spacing: .14em; white-space: nowrap; flex: none; border-radius: 999px; transition: background-color .5s, color .5s; }
.btn--accent { background: var(--c-accent); color: var(--c-dark); }
.btn--accent:hover { background: #c6a57b; }
.btn--line { border: 1px solid currentColor; }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 17px; }

/* ===== ヘッダー（いつも砂岩色の板。横の旅の間も読める） ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: rgba(243, 238, 230, .94); color: var(--c-main); border-bottom: 1px solid var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); padding: 0 20px; }
.logo { display: flex; flex-direction: column; justify-content: center; min-height: 48px; text-decoration: none; white-space: nowrap; flex: none; line-height: 1.3; }
.logo__ja { font-family: var(--font-ja); font-size: 19px; letter-spacing: .14em; }
.logo__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .26em; color: var(--c-accent-text); }
@media (max-width: 599px) { .logo__en { display: none; } .logo__ja { font-size: 17px; letter-spacing: .08em; } .header__btn { padding: 0 16px; letter-spacing: .06em; } .header__inner { gap: 10px; padding: 0 12px 0 16px; } }
.gnav { display: none; }
.header__btn { margin-left: auto; }
@media (min-width: 1080px) {
  :root { --header-h: 84px; }
  .header__inner { padding: 0 48px; gap: 32px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; letter-spacing: .14em; }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; }
}

/* スマホのメニュー（JSが無くても開閉できる details） */
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 1px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-paper); padding: 8px 20px 24px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(42, 35, 29, .14); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-family: var(--font-ja); border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 縦並び（スマホ・JSなし・動きを減らす設定）が基本 ===== */
.panel { position: relative; padding: 96px 20px; }
.ribbon { display: none; }
/* 区切りごとの短いリボン（縦並びのとき。横の旅では1本の長い帯に替わる） */
.ribbon-piece { display: block; width: 46%; max-width: 360px; height: 18px; border-radius: 999px; margin-bottom: 40px; background: linear-gradient(90deg, #e3cfae, #b08d62 60%, #6f4f33); }

/* 1. メインビジュアル：完成形は余白のある角丸のカード */
.hero { padding: calc(var(--header-h) + 12px) 12px 56px; }
.hero__media { position: relative; height: 78vh; min-height: 520px; border-radius: 24px; overflow: hidden; background: var(--c-dark); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 35, 29, .6) 0%, rgba(42, 35, 29, 0) 65%), linear-gradient(180deg, rgba(42, 35, 29, .05) 30%, rgba(42, 35, 29, .78) 100%); }
.hero__copy { position: absolute; z-index: 2; left: 36px; right: 28px; bottom: 96px; color: #fff; }
.hero__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; margin-bottom: 12px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero__title { font-family: var(--font-ja); font-size: clamp(36px, 6.4vw, 92px); line-height: 1.45; letter-spacing: .1em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero__lead { margin: 20px 0 28px; font-size: 16px; color: #f6f0e6; max-width: 30em; }
.hero__hint { display: none; }

.concept__photo { margin-top: 48px; }
.concept__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.concept__photo figcaption { margin-top: 10px; font-size: 15px; color: var(--c-sub); }
.concept__text p + p { margin-top: 18px; }

.map { width: 100%; max-width: 520px; margin: 8px 0 24px; }
.map__road { fill: none; stroke: var(--c-line); stroke-width: 10; stroke-linecap: round; }
.map__forest { fill: #d9e0cf; }
.map__line { stroke: var(--c-accent); stroke-width: 1.5; stroke-dasharray: 4 6; }
.map__dot { fill: var(--c-paper); stroke: var(--c-accent-text); stroke-width: 2; }
.map__home { fill: var(--c-accent-text); }
.dist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; max-width: 520px; }
.dist div { padding: 12px 0; border-bottom: 1px solid var(--c-line); min-width: 0; }
.dist dt { font-family: var(--font-ja); color: var(--c-main); font-size: 17px; }
.dist dd { font-family: var(--font-en); color: var(--c-accent-text); font-size: 18px; letter-spacing: .1em; }

.view { padding: 0; background: var(--c-dark); }
.view__photo { position: relative; overflow: hidden; }
.view__photo img { width: 100%; height: 72vh; min-height: 440px; object-fit: cover; }
.view__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 12, .78) 0%, rgba(20, 16, 12, .2) 70%); }
.view__cap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 40px; display: flex; flex-direction: column; color: #fff; }
.view__title { font-family: var(--font-ja); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.6; letter-spacing: .12em; }
.view__note { margin-top: 16px; font-size: 15px; color: #e9e1d4; max-width: 30em; line-height: 1.8; }

.shared__head p:last-child { max-width: 30em; }
.shared__list { display: grid; gap: 28px; margin-top: 40px; }
.shared__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.shared__item--tall img { aspect-ratio: 4 / 5; }
.shared__item p { margin-top: 12px; font-family: var(--font-ja); color: var(--c-main); font-size: 18px; display: flex; flex-direction: column; line-height: 1.6; }
.shared__item .en { margin: 0; font-size: 15px; }

.plans { display: grid; gap: 20px; }
.planc { min-width: 0; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 16px; padding: 28px; }
.planc svg { width: 100%; max-width: 260px; display: block; margin-bottom: 20px; fill: none; stroke: var(--c-accent-text); stroke-width: 1.5; }
.planc__type { font-family: var(--font-en); font-size: 44px; line-height: 1; color: var(--c-main); }
.planc__type span { font-size: 16px; letter-spacing: .2em; margin-left: 8px; color: var(--c-accent-text); }
.planc__spec { margin-top: 12px; font-family: var(--font-ja); color: var(--c-main); font-size: 17px; }
.planc__price { font-size: 15px; color: var(--c-sub); }

.request { background: var(--c-dark); color: #eee6da; text-align: center; padding: 120px 20px; }
.request__title { font-family: var(--font-ja); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.6; letter-spacing: .12em; color: #fff; margin-bottom: 24px; }
.request__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 40px 0 24px; }
.request .btn--line { color: #fff; }
.request__tel { font-size: 15px; }

.outline { padding: 96px 20px; background: var(--c-paper); }
.outline__inner { max-width: 960px; margin: 0 auto; }
.info div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-family: var(--font-ja); color: var(--c-main); }
@media (min-width: 768px) {
  .info div { grid-template-columns: 10em 1fr; gap: 24px; }
  .panel { padding: 120px 48px; }
  .hero { padding: calc(var(--header-h) + 16px) 24px 64px; }
  .hero__copy { left: 72px; bottom: 120px; }
  .shared__list { grid-template-columns: 1fr 1fr; }
  .shared__item--tall { grid-row: span 2; }
  .shared__item--tall img { height: 100%; aspect-ratio: auto; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .dist { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .view__cap { left: 56px; bottom: 64px; }
}

.footer { background: var(--c-dark); color: #eee6da; padding: 72px 20px 40px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-ja); font-size: 24px; letter-spacing: .2em; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 24px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 16px; }

/* PCでJSが無いとき（縦並びのまま）：写真が大きくなりすぎないよう2列に */
@media (min-width: 1080px) {
  html:not(.is-h) .concept, html:not(.is-h) .location, html:not(.is-h) .shared, html:not(.is-h) .plan { max-width: 1280px; margin: 0 auto; }
  html:not(.is-h) .concept { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
  html:not(.is-h) .concept .ribbon-piece { grid-column: 1 / -1; }
  html:not(.is-h) .concept__photo { margin: 0; }
  html:not(.is-h) .location { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: center; }
  html:not(.is-h) .location .ribbon-piece, html:not(.is-h) .location .dist { grid-column: 1 / -1; }
  html:not(.is-h) .shared__item--tall img { max-height: 80vh; }
}

.hstatus, .hbar { display: none; }

/* ===== 横の旅（PC・JSあり。script.js が html に .is-h を付ける） ===== */
@media (min-width: 1080px) {
  .is-h .hwrap { height: 100vh; overflow: hidden; }
  .is-h .htrack { position: relative; display: flex; height: 100vh; width: max-content; }
  .is-h .panel { flex: none; height: 100vh; padding: calc(var(--header-h) + 40px) 5vw 180px; display: flex; align-items: center; gap: 4vw; }
  .is-h .ribbon-piece { display: none; }
  .is-h .ribbon { display: block; position: absolute; left: 0; bottom: 0; height: 100vh; pointer-events: none; z-index: 0; }
  .is-h .panel { z-index: 1; }

  .is-h .hero { width: 100vw; padding: 0; display: block; }
  .is-h .hero__media { position: absolute; inset: 0; height: auto; min-height: 0; border-radius: 0; }
  .is-h .hero__copy { left: 10vw; bottom: 22vh; }
  .is-h .hero__hint { display: flex; align-items: center; gap: 12px; position: absolute; z-index: 2; right: 5vw; bottom: 6vh; color: #fff; font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; }
  .is-h .hero__hint span { width: 64px; height: 1px; background: #fff; }

  .is-h .concept { width: 92vw; }
  .is-h .concept__text { width: 30vw; flex: none; }
  .is-h .concept__photo { margin: 0; flex: 1; }
  .is-h .concept__photo img { height: 56vh; aspect-ratio: auto; }

  .is-h .location { width: 86vw; }
  .is-h .location__head { flex: none; width: 22vw; }
  .is-h .map { width: 30vw; flex: none; margin: 0; }
  .is-h .dist { grid-template-columns: 1fr; width: 20vw; flex: none; }

  .is-h .view { width: 78vw; padding: calc(var(--header-h) + 24px) 0 130px; background: transparent; }
  .is-h .view__photo { height: 100%; width: 100%; border-radius: 20px; }
  .is-h .view__photo img { height: 100%; min-height: 0; }

  .is-h .shared { width: 124vw; }
  .is-h .shared__head { flex: none; width: 24vw; }
  .is-h .shared__list { display: flex; gap: 2.4vw; margin: 0; align-items: flex-end; }
  .is-h .shared__item { width: 26vw; }
  .is-h .shared__item--tall { width: 22vw; }
  .is-h .shared__item img { height: 40vh; aspect-ratio: auto; }
  .is-h .shared__item--tall img { height: 56vh; }

  .is-h .plan { width: 112vw; }
  .is-h .plan__head { flex: none; width: 20vw; }
  .is-h .plans { display: flex; gap: 2vw; }
  .is-h .planc { width: 21vw; padding: 2.6vh 2vw; }
  .is-h .planc svg { max-height: 22vh; }

  .is-h .request { width: 100vw; justify-content: center; padding-bottom: 120px; }

  .is-h .hstatus { display: flex; align-items: baseline; gap: 10px; position: fixed; z-index: 55; left: 48px; bottom: 26px; font-family: var(--font-en); color: var(--c-main); letter-spacing: .14em; transition: opacity .4s; }
  .is-h .hstatus__no { font-size: 30px; }
  .is-h .hstatus__all { font-size: 16px; color: var(--c-sub); }
  .is-h .hstatus__name { margin-left: 16px; font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); }
  .is-h .hbar { display: block; position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(176, 141, 98, .2); transition: opacity .4s; }
  .is-h .hbar span { display: block; height: 100%; width: 100%; background: var(--c-accent-text); transform-origin: left; transform: scaleX(0); }
  .is-h.is-hdone .hstatus, .is-h.is-hdone .hbar { opacity: 0; }
  .is-h.is-hdark .hstatus { color: #fff; }
  .is-h.is-hdark .hstatus__all { color: #e9e1d4; }
  .is-h.is-hdark .hstatus__name { color: var(--c-accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
