/* 127 いろのは — K05 ページ全体が横に進む。色と書体は共通の13変数だけ（:root と区切りの上書き以外に色を書かない） */
:root {
  --c-bg: #f4f6f1;
  --c-bg-alt: #e3eadf;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #aebfaa;
  --c-accent: #7f9d84;
  --c-accent-text: #3f6b4f;
  --c-on-accent: #14261d;
  --c-2: #c9d6c4;
  --c-3: #1f3a2e;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-head: "Kaisei Decol", "Noto Sans JP", serif;
  --font-en: "Italiana", "Noto Sans JP", serif;
  --header-h: 64px;
}
/* 地の色が変わる区切り：変数を全部上書きする */
.p-white, [data-tone="p-white"] {
  --c-bg: #f4f6f1; --c-bg-alt: #e3eadf; --c-text: #374151; --c-sub: #4b5563; --c-line: #aebfaa;
  --c-accent: #7f9d84; --c-accent-text: #3f6b4f; --c-on-accent: #14261d; --c-2: #c9d6c4; --c-3: #1f3a2e;
}
.p-grass, [data-tone="p-grass"] {
  --c-bg: #e3eadf; --c-bg-alt: #f4f6f1; --c-text: #374151; --c-sub: #4b5563; --c-line: #9db39a;
  --c-accent: #7f9d84; --c-accent-text: #3f6b4f; --c-on-accent: #14261d; --c-2: #c9d6c4; --c-3: #1f3a2e;
}
.p-sage, [data-tone="p-sage"] {
  --c-bg: #c9d6c4; --c-bg-alt: #e3eadf; --c-text: #2f3a48; --c-sub: #3f4a58; --c-line: #8aa086;
  --c-accent: #3f6b4f; --c-accent-text: #1f3a2e; --c-on-accent: #f4f6f1; --c-2: #e3eadf; --c-3: #1f3a2e;
}
.p-forest, [data-tone="p-forest"] {
  --c-bg: #1f3a2e; --c-bg-alt: #2a4a3b; --c-text: #e7efe6; --c-sub: #c5d3c4; --c-line: #54735f;
  --c-accent: #a9c7ae; --c-accent-text: #b8d4be; --c-on-accent: #14261d; --c-2: #54735f; --c-3: #f4f6f1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 2; overflow-x: hidden; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dd, dt, li { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; font-weight: inherit; }
ul, ol { list-style: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; background: var(--c-accent); color: var(--c-on-accent); font-family: var(--font-ja); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; border: 0; border-radius: 999px; }
.btn--lg { min-height: 56px; padding: 0 34px; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 8px 0 20px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); color: var(--c-text); }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--c-3); white-space: nowrap; flex: none; min-height: 44px; align-items: center; }
.logo__ja { font-family: var(--font-head); font-size: 22px; }
.logo__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); }
@media (max-width: 480px) { .logo__en { display: none; } .header__btn { padding: 0 14px !important; } }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; color: var(--c-3); }
.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-bg); border-bottom: 1px solid var(--c-line); padding: 4px 20px 12px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; color: var(--c-3); border-bottom: 1px solid var(--c-line); }
.spmenu__nav a:last-child { border-bottom: 0; }

/* ===== 面（スマホ・JSなし：縦に並ぶ） ===== */
.hz__ui { display: none; }
.panel { background: var(--c-bg); color: var(--c-text); padding: 64px 20px; border-top: 1px solid var(--c-line); }
.panel__in { max-width: 40em; margin: 0 auto; }
.eyebrow { font-family: var(--font-en); font-size: 17px; letter-spacing: .32em; color: var(--c-accent-text); margin-bottom: 14px; }
.h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 7.6vw, 52px); line-height: 1.45; color: var(--c-3); margin-bottom: 24px; letter-spacing: .04em; }
.lead { font-size: clamp(16px, 4.2vw, 19px); }
.fz { font-family: var(--font-ja); }

/* はじめ */
.panel--hero { display: flex; flex-direction: column; gap: 8px; padding-top: 40px; border-top: 0; overflow: hidden; }
.hero__w { font-family: var(--font-head); font-weight: 400; font-size: clamp(88px, 30vw, 160px); line-height: 1.02; color: var(--c-3); letter-spacing: .02em; white-space: nowrap; }
.hero__w2 { align-self: flex-end; color: var(--c-accent-text); }
.hero__photo { align-self: center; width: min(62%, 280px); margin: -12px 0 8px; }
.hero__h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.6; color: var(--c-3); margin-bottom: 14px; }
.hero__text > p { margin-bottom: 22px; }
.hero__hint { display: none; }

.facts { margin-top: 28px; border-top: 1px solid var(--c-line); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.facts dt { font-family: var(--font-en); font-size: 17px; letter-spacing: .2em; color: var(--c-accent-text); }
.facts dd { font-family: var(--font-head); font-size: 20px; color: var(--c-3); text-align: right; }

.seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.season { min-width: 0; }
.season__sw { aspect-ratio: 16 / 7; overflow: hidden; background: var(--c-bg-alt); margin-bottom: 8px; border: 1px solid var(--c-line); }
.season__sw img { width: 100%; height: 100%; object-fit: cover; }
.season h3 { font-family: var(--font-head); font-size: 20px; color: var(--c-3); line-height: 1.5; }
.season p { font-size: 15px; color: var(--c-sub); line-height: 1.7; }

.flow__mirror { width: 180px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 8px 0 28px; border: 1px solid var(--c-line); }
.flow__mirror img { width: 100%; height: 100%; object-fit: cover; }
.flow li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--c-line); }
.flow__no { grid-row: 1 / 3; font-family: var(--font-en); font-size: 44px; line-height: 1; color: var(--c-accent-text); }
.flow h3 { font-family: var(--font-head); font-size: 21px; color: var(--c-3); }
.flow p { font-size: 15px; color: var(--c-sub); line-height: 1.8; }

.menu { border-top: 1px solid var(--c-line); }
.menu > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.menu dt { color: var(--c-3); }
.menu dd { flex: none; font-weight: 700; color: var(--c-accent-text); }
.note { margin-top: 14px; font-size: 15px; color: var(--c-sub); }
.info { margin-top: 32px; border-top: 1px solid var(--c-line); }
.info > div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.info dt { color: var(--c-accent-text); font-weight: 700; }
.fiction { margin-top: 28px; font-size: 15px; color: var(--c-sub); }

/* ===== PC：JS が is-hz を付けたときだけ、横に進む ===== */
@media (min-width: 1080px) {
  .is-hz .header { position: fixed; left: 0; right: 0; top: 0; padding: 0 56px; }
  .is-hz .spmenu { display: none; }
  .is-hz .header__btn { margin-left: auto; }
  .is-hz .hz { height: 100svh; overflow: hidden; position: relative; }
  .is-hz .hz__track { display: flex; width: max-content; height: 100%; will-change: transform; }
  .is-hz .panel { flex: 0 0 100vw; width: 100vw; height: 100svh; padding: calc(var(--header-h) + 24px) 7vw 40px; border-top: 0; display: flex; align-items: center; overflow: hidden; position: relative; }
  .is-hz .panel--wide { flex-basis: 150vw; width: 150vw; }
  .is-hz .panel__in { margin: 0; max-width: 46em; }
  .is-hz .panel__in--wide { max-width: none; width: 100%; }
  .is-hz .panel__in--row { max-width: none; display: flex; align-items: center; gap: 6vw; width: 100%; }
  .is-hz .h2 { font-size: clamp(34px, 3.6vw, 56px); }
  .is-hz .flow__head { flex: none; width: 24vw; }
  .is-hz .flow { display: flex; gap: 2vw; flex: 1 1 auto; }
  .is-hz .flow li { display: block; flex: 1 1 0; min-width: 0; padding: 20px 0 0; border-top: 2px solid var(--c-accent); }
  .is-hz .flow__no { display: block; font-size: 72px; margin-bottom: 14px; }
  .is-hz .flow__mirror { width: 15vw; margin-bottom: 0; }
  .is-hz .seasons { grid-template-columns: repeat(4, 1fr); gap: 2vw; }
  .is-hz .season__sw { aspect-ratio: 4 / 3; }

  /* 1枚目：巨大な文字（A08）と布見本 */
  .is-hz .panel--hero { display: block; padding: 0; }
  .is-hz .hero__w { position: absolute; font-size: min(27svh, 17vw); line-height: 1; margin: 0; }
  .is-hz .hero__w1 { left: 5vw; top: calc(var(--header-h) + 3svh); }
  .is-hz .hero__w2 { right: 5vw; bottom: 3svh; align-self: auto; }
  .is-hz .hero__photo { position: absolute; left: 50%; top: 50%; width: min(31svh, 22vw); transform: translate(-50%, -48%); margin: 0; z-index: 3; }
  .is-hz .hero__text { position: absolute; left: 5vw; top: 46%; width: 29vw; z-index: 2; }
  .is-hz .hero__h1 { font-size: clamp(20px, 1.9vw, 28px); }
  .is-hz .hero__hint { display: block; font-size: 15px; color: var(--c-sub); margin: 18px 0 0; }
  .is-hz .hero__text { padding-bottom: 0; }

  /* 進み具合 */
  .is-hz .hz__ui { display: flex; align-items: center; gap: 14px; position: fixed; left: 56px; bottom: 28px; z-index: 35; padding: 8px 16px; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-line); border-radius: 999px; font-family: var(--font-en); font-size: 17px; letter-spacing: .2em; }
  .hz__bar { position: relative; width: 120px; height: 1px; background: var(--c-line); display: block; }
  .hz__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--c-accent-text); transform-origin: left; transform: scaleX(0); display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
