/* Layout: a quiet, photo-first outdoor brand site. White ground, black type, hairlines, English section titles with Japanese subtitles. Each entrance page puts the visitor's view beside a spec-sheet of the channel design. Deliberately single (light) theme, like a brand catalogue. */
:root {
  color-scheme: light;
  --white: #FFFFFF;
  --ground: #F5F5F3;
  --ink: #111111;
  --ink-2: #6B6B6B;
  --ink-3: #9A9A9A;
  --hair: #E3E3E0;
  --hair-2: #CFCFCB;
  --olive: #4E5A3E;
  --sand: #F3EFE6;
  --f-latin: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-weight: 400; font-size: 15px; line-height: 1.9; letter-spacing: .04em;
  line-break: strict; word-break: auto-phrase; text-wrap: pretty;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
p, h1, h2, h3, dl, dd, ol { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.45; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.jp { word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance; }
.line { display: block; white-space: nowrap; }
.ib { display: inline-block; }
.nw { white-space: nowrap; }
.muted { color: var(--ink-2); }

/* header */
.bar { background: var(--white); border-bottom: 1px solid var(--hair); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.logo { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.logo b { font-family: var(--f-latin); font-weight: 500; letter-spacing: .32em; font-size: 18px; padding-right: .1em; }
.logo span { font-size: 11px; color: var(--ink-2); letter-spacing: .3em; }
.nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.nav a { font-family: var(--f-latin); font-size: 12px; letter-spacing: .2em; text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--ink-2); }
.demo-badge { font-size: 11px; color: var(--ink-2); letter-spacing: .1em; white-space: nowrap; }
@media (max-width: 760px) { .nav a { display: none; } }

/* photos */
.photo { position: relative; background: #8E9488; overflow: hidden; max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo .ph { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; color: #fff; opacity: .8; letter-spacing: .06em; }
.photo img + .ph { display: none; }

/* hero */
.hero { position: relative; color: #fff; background: #3A4036; min-height: 460px; display: grid; align-items: end; }
.hero .photo { position: absolute; inset: 0; }
.hero .photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.hero .wrap { position: relative; width: 100%; padding-block: clamp(120px, 18vw, 240px) clamp(36px, 5vw, 64px); display: grid; gap: 22px; }
.wordmark { font-family: var(--f-latin); font-weight: 300; letter-spacing: .3em; line-height: 1; font-size: clamp(36px, 8.4vw, 104px); padding-right: .1em; }
.hero-sub { font-size: 12px; letter-spacing: .3em; opacity: .92; }
.hero-lead { font-size: clamp(17px, 3.2vw, 28px); font-weight: 400; line-height: 1.7; letter-spacing: .08em; }
.hero-note { font-size: 13px; max-width: 36em; opacity: .9; line-height: 1.9; }

/* sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section.ground { background: var(--ground); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .en-title { font-family: var(--f-latin); font-weight: 300; font-size: clamp(28px, 4vw, 44px); letter-spacing: .24em; line-height: 1.1; text-transform: uppercase; }
.sec-head .ja-title { font-size: 14px; letter-spacing: .16em; color: var(--ink-2); }
.sec-head .lead { max-width: 40em; color: var(--ink-2); margin-top: 8px; }

/* entrance grid */
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
@media (max-width: 980px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .entries { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.entry-card { display: grid; gap: 16px; text-decoration: none; align-content: start; }
.entry-card .photo { aspect-ratio: 3 / 2; }
.entry-card:hover .photo img { transform: scale(1.04); }
.entry-card .meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-latin); font-size: 11px; letter-spacing: .2em; color: var(--ink-2); text-transform: uppercase; }
.entry-card .meta span:first-child { font-family: var(--f-body); letter-spacing: .16em; }
.entry-card h3 { font-size: 18px; letter-spacing: .08em; }
.entry-card .role { font-size: 13px; color: var(--ink-2); letter-spacing: .1em; }
.entry-card .desc { font-size: 14px; line-height: 1.9; }
.more { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-latin); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.more::after { content: ""; width: 36px; height: 1px; background: currentColor; transition: width .3s; }
.entry-card:hover .more::after { width: 56px; }

/* persona */
.persona { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .persona { grid-template-columns: minmax(0, 1fr); } }
.persona .photo { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .persona .photo { aspect-ratio: 3 / 2; } }
.nameplate { display: grid; gap: 6px; padding-block: 0 28px; border-bottom: 1px solid var(--hair-2); margin-bottom: 8px; }
.nameplate b { font-size: 20px; font-weight: 500; letter-spacing: .1em; }
.nameplate p { font-size: 14px; color: var(--ink-2); }
.rule { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--hair); }
.rule b { font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--ink-2); padding-top: 2px; }
.rule p { font-size: 14px; }
.avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }

/* flow */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; border-top: 1px solid var(--ink); counter-reset: step; column-gap: 20px; }
@media (max-width: 980px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.flow li { list-style: none; padding: 20px 0 24px; display: grid; gap: 6px; align-content: start; border-bottom: 1px solid var(--hair); }
.flow li::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-latin); font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }
.flow b { font-size: 15px; font-weight: 500; }
.flow span { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.exits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip { border: 1px solid var(--ink); padding: 6px 16px; font-size: 13px; letter-spacing: .08em; }

/* footer */
.foot { background: #151515; color: #E8E8E5; padding-block: 56px 48px; font-size: 12px; }
.foot .wrap { display: grid; gap: 18px; }
.foot .logo b { color: #fff; }
.foot .logo span { color: #A8A8A3; }
.foot p { color: #A8A8A3; line-height: 1.9; max-width: 48em; }

/* ===== entrance page ===== */
.crumb { padding-block: 22px 0; font-family: var(--f-latin); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.crumb a { text-decoration: none; color: var(--ink); }
.crumb span { font-family: var(--f-body); letter-spacing: .14em; }
.page-hero { margin-top: 18px; }
.page-hero .photo { width: 100%; aspect-ratio: 21 / 8; min-height: 200px; }
.page-head { padding-block: 36px 40px; display: grid; gap: 12px; border-bottom: 1px solid var(--hair); margin-bottom: 40px; }
.page-head .num { font-family: var(--f-latin); font-size: 12px; letter-spacing: .24em; color: var(--ink-2); }
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: .1em; }
.page-head .role { font-size: 15px; letter-spacing: .12em; color: var(--ink-2); }
.page-head .purpose { max-width: 42em; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: 72px; }
@media (max-width: 940px) { .split { grid-template-columns: minmax(0, 1fr); } }
.front { display: grid; gap: 28px; min-width: 0; }
.label { font-family: var(--f-latin); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.label span { font-family: var(--f-body); letter-spacing: .12em; text-transform: none; }

.mock { border: 1px solid var(--hair-2); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; background: var(--white); max-width: 460px; }
.mock .eyebrow { font-family: var(--f-latin); font-size: 11px; letter-spacing: .22em; color: var(--ink-2); text-transform: uppercase; }
.mock h3 { font-size: 18px; letter-spacing: .06em; }
.receipt { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.8; background: #FCFCFA; border-style: dashed; letter-spacing: 0; max-width: 360px; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed var(--hair-2); margin: 2px 0; width: 100%; }
.receipt .r-c { text-align: center; }
.qrbox { display: flex; align-items: center; gap: 14px; }
.qr { width: 80px; height: 80px; flex: none; background: #fff; padding: 4px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qrbox p { font-family: var(--f-body); font-size: 12.5px; line-height: 1.7; letter-spacing: .04em; }
.pop { background: var(--ink); color: #fff; border-color: var(--ink); max-width: 360px; }
.pop .eyebrow { color: #BDBDB8; }
.pop .price { font-family: var(--f-latin); font-weight: 400; font-size: 26px; letter-spacing: .08em; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; font-size: 13.5px; }
.kv dt { color: var(--ink-2); }
.timeline { display: grid; padding: 0; }
.timeline li { list-style: none; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 13.5px; line-height: 1.7; }
.timeline li b { font-family: var(--f-latin); font-weight: 400; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-2); padding-top: 2px; }
.timeline li.now b, .timeline li.now span { color: var(--olive); font-weight: 500; }
.richmenu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair-2); border: 1px solid var(--hair-2); }
.richmenu span { background: #fff; text-align: center; padding: 14px 4px; font-size: 12.5px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.steps span { font-size: 11.5px; text-align: center; padding: 6px 2px; background: var(--ground); color: var(--ink-2); }
.steps span.done { background: var(--ink); color: #fff; }
.btn { font: inherit; font-size: 12px; letter-spacing: .16em; padding: 10px 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; border-radius: 0; justify-self: start; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.pop .btn, .mock .btn { pointer-events: none; }

/* phone + chat */
.phone-wrap { display: grid; gap: 14px; justify-items: start; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; }
.phone { width: min(100%, 400px); border: 1px solid var(--hair-2); border-radius: 26px; background: #fff; overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.phone-top b { font-size: 13px; font-weight: 500; }
.phone-top small { display: block; font-size: 10.5px; color: var(--ink-2); font-family: var(--f-mono); letter-spacing: 0; }
.chat { display: grid; gap: 12px; padding: 18px 14px 22px; min-height: 120px; background: #FAFAF8; }
.msg { display: grid; gap: 4px; max-width: 88%; min-width: 0; animation: rise .35s ease both; }
.msg .who { font-size: 10.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; letter-spacing: .06em; }
.bubble { border-radius: 14px; padding: 9px 13px; font-size: 13.5px; line-height: 1.75; letter-spacing: .02em; }
.msg.ai .bubble { background: #fff; border: 1px solid var(--hair); border-top-left-radius: 3px; }
.msg.staff .bubble { background: var(--sand); border-top-left-radius: 3px; }
.msg.user { justify-self: end; }
.msg.user .bubble { background: var(--ink); color: #fff; border-top-right-radius: 3px; }
.msg.sys, .msg.exit, .msg.task { justify-self: center; max-width: 100%; text-align: center; }
.msg.sys .bubble { color: var(--ink-2); font-family: var(--f-mono); font-size: 11px; line-height: 1.6; padding: 3px 8px; border-radius: 0; letter-spacing: 0; }
.msg.task .bubble { background: #fff; border: 1px solid var(--ink); font-size: 12.5px; border-radius: 0; text-align: left; }
.msg.task .bubble::before { content: "DONE"; font-family: var(--f-latin); font-size: 10px; letter-spacing: .2em; color: var(--olive); display: block; }
.msg.exit .bubble { background: var(--olive); color: #fff; font-size: 12.5px; border-radius: 0; padding: 7px 16px; letter-spacing: .08em; }
.mark-chip { justify-self: start; font-family: var(--f-body); font-size: 10.5px; color: var(--ink-2); border: 0; border-bottom: 1px solid var(--hair-2); background: transparent; padding: 0 0 1px; cursor: pointer; letter-spacing: .06em; }
.msg.user .mark-chip { justify-self: end; }
.msg.sys .mark-chip, .msg.exit .mark-chip, .msg.task .mark-chip { justify-self: center; }
.mark-chip:hover { color: var(--ink); border-color: var(--ink); }
.typing { justify-self: start; display: flex; gap: 4px; padding: 11px 13px; background: #fff; border: 1px solid var(--hair); border-radius: 14px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); opacity: .4; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg, .typing i { animation: none; } .photo img, .more::after { transition: none; } }

/* backstage spec sheet */
.back { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); display: grid; gap: 14px; min-width: 0; }
@media (max-width: 940px) { .back { position: static; } }
.panel { border-top: 1px solid var(--ink); }
.panel-head { padding: 16px 0 14px; display: grid; gap: 2px; border-bottom: 1px solid var(--hair-2); }
.panel-head b { font-size: 16px; font-weight: 500; letter-spacing: .08em; }
.panel-head small { font-size: 11.5px; color: var(--ink-2); }
.rows > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; padding: 13px 10px 13px 0; border-bottom: 1px solid var(--hair); transition: background .25s, padding .25s; }
@media (max-width: 420px) { .rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.rows dt { font-size: 11.5px; color: var(--ink-2); letter-spacing: .08em; padding-top: 2px; }
.rows dd { margin: 0; font-size: 13.5px; line-height: 1.8; }
.rows code { font-family: var(--f-mono); font-size: 12px; background: var(--ground); padding: 1px 6px; overflow-wrap: anywhere; letter-spacing: 0; }
.rows > div.lit { background: var(--sand); padding-left: 10px; }
.rows > div.lit dt { color: var(--ink); font-weight: 500; }
.note { font-size: 12px; color: var(--ink-2); line-height: 1.8; }

.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--hair-2); margin-bottom: 80px; }
.pager a { text-decoration: none; padding: 26px 0; display: grid; gap: 4px; min-width: 0; }
.pager a + a { border-left: 1px solid var(--hair); padding-left: 24px; }
.pager small { font-family: var(--f-latin); font-size: 11px; letter-spacing: .22em; color: var(--ink-2); text-transform: uppercase; }
.pager b { font-size: 15px; font-weight: 500; letter-spacing: .08em; }
.pager a.next { text-align: right; }
.pager a:hover b { color: var(--ink-2); }
