:root {
  --ink: #1a1a1a;
  --sub: #5c5c5c;
  --faint: #9a9a96;
  --line: #e4e4e2;
  --gray: #f3f3f2;
  --bg: #ffffff;
  --jp: 'Zen Kaku Gothic New', 'Hiragino Sans', system-ui, sans-serif;
  --en: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--jp); line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ヘッダー：左にロゴ、右に淡い丸い帯のナビ */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 40px); pointer-events: none; }
.hd > * { pointer-events: auto; }
.hd-logo { font-family: var(--en); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.hd-nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 13px; font-weight: 500; background: rgba(243,243,242,.92); padding: 9px 22px; border-radius: 999px; backdrop-filter: blur(6px); }
.hd-nav a:hover { color: var(--sub); }
@media (max-width: 860px) { .hd-nav { display: none; } }

/* 街（スクロールでカメラが動く） */
.town { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.world img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
/* 寄った絵の縁をぼかして、親の絵とのあいだに継ぎ目を出さない */
.world img.nested { opacity: 0; visibility: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.progress { position: absolute; left: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); bottom: 14px; height: 2px; background: var(--line); }
.progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 0; transform: scaleX(0); }

.captions { position: absolute; inset: 0; pointer-events: none; }
.cap { position: absolute; opacity: 0; visibility: hidden; }
/* JS が動かないときは、札を絵の下に並べて読めるようにする */
.stage:not(.ready) { position: static; height: auto; }
.stage:not(.ready) .world, .stage:not(.ready) .progress { display: none; }
.stage:not(.ready) .captions { position: static; display: grid; gap: 16px; padding: 96px 16px 40px; }
.stage:not(.ready) .cap { position: static; opacity: 1; visibility: visible; transform: none; width: auto; }
.cap-title { left: clamp(16px, 4vw, 56px); bottom: clamp(36px, 9vh, 88px); }
.cap-title h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.25; font-weight: 700; letter-spacing: .03em; }
.cap-card { left: clamp(16px, 4vw, 56px); bottom: clamp(28px, 7vh, 72px); width: min(460px, calc(100vw - 32px)); background: #fff; border-radius: 22px; padding: 26px 30px 28px; box-shadow: 0 12px 40px rgba(0,0,0,.08); font-size: 14px; color: var(--sub); }
.cap-card .label { margin-bottom: 10px; }
.cap-lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.6; font-weight: 700; color: var(--ink); margin-bottom: 10px; text-wrap: balance; }
.cap-card .pill { margin-top: 14px; pointer-events: auto; }
.cap-card .cap-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cap-card .cap-hd .label { margin: 0; }
.cap-card .cap-hd img { height: 26px; width: auto; }
.stage.portrait .cap-card { left: 12px; right: 12px; bottom: 14px; width: auto; padding: 18px 20px 20px; border-radius: 18px; max-height: 41vh; overflow: auto; font-size: 13px; }
.stage.portrait .cap-lead { font-size: 17px; margin-bottom: 6px; }
.stage.portrait .cap-card .pill { margin-top: 10px; min-width: 0; padding-block: 8px; }
.stage.portrait .cap-tag { top: 64px; font-size: 12px; }
.stage.portrait .cap-title { bottom: auto; top: 58vh; }
.cap-tag { left: 50%; top: 104px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 5px 16px; border-radius: 999px; white-space: nowrap; }

/* 小さな英字の見出し（点つき） */
.label { display: flex; align-items: center; gap: 8px; font-family: var(--en); font-size: 13px; font-weight: 500; color: var(--ink); }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* 丸い矢印つきのボタン */
.pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 240px; background: var(--gray); border-radius: 999px; padding: 12px 12px 12px 26px; font-size: 14px; font-weight: 500; transition: background .2s; }
.pill::after { content: "→"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-family: var(--en); }
.pill:hover { background: #e9e9e7; }
.pill-dark { background: var(--ink); color: #fff; min-width: 280px; padding-block: 16px; font-size: 15px; }
.pill-dark::after { background: #fff; color: var(--ink); }
.pill-dark:hover { background: #333; }
.pill:focus-visible, .card:focus-visible, .hd a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ふつうのスクロールの区画 */
.sec { padding: clamp(80px, 12vh, 132px) clamp(16px, 6vw, 96px); }
.band { background: var(--gray); }
.sec-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.45; margin: 12px 0 40px; text-wrap: balance; }
.lead-s { color: var(--sub); margin: -24px 0 36px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: block; background: var(--gray); border-radius: 22px; padding: 14px 14px 24px; transition: transform .3s; }
.card:hover { transform: translateY(-3px); }
.card img { border-radius: 16px; background: #fff; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-hd { display: flex; align-items: center; gap: 14px; margin: 18px 10px 4px; }
.num { font-family: var(--en); font-size: 13px; font-weight: 600; border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 12px; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { font-size: 14px; color: var(--sub); margin: 0 10px; }

.rows { list-style: none; max-width: 900px; margin-bottom: 32px; }
.rows li { display: flex; gap: 40px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows .k { font-family: var(--en); color: var(--faint); font-weight: 600; flex: none; width: 3.5em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.news { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.news li { display: flex; gap: 28px; background: #fff; border-radius: 14px; padding: 16px 22px; font-size: 15px; }
.news time { font-family: var(--en); color: var(--faint); flex: none; width: 6em; }
@media (max-width: 520px) { .news li { flex-direction: column; gap: 2px; } }

.members { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; margin-bottom: 40px; text-align: center; font-weight: 700; }
.members .ph { display: block; width: min(128px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #ececea; margin: 0 auto 12px; }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.contact-title { font-family: var(--en); font-size: clamp(56px, 9vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.contact-lead { font-size: 17px; font-weight: 500; margin-top: 10px; }

.ft { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 28px clamp(16px, 6vw, 96px); font-size: 12px; color: var(--sub); }
.ft-tag { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; color: var(--ink); }

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

/* 読み上げ・エージェント向けにだけ置く文 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card .card-logo { height: 24px; width: auto; aspect-ratio: auto; border-radius: 0; background: none; margin-left: auto; }
.news li { padding: 0; }
.news li a { display: flex; gap: 28px; padding: 16px 22px; width: 100%; }
.news li a:hover .t { text-decoration: underline; }
.news .cat { display: none; }
@media (max-width: 520px) { .news li a { flex-direction: column; gap: 2px; } }
.members small { display: block; font-weight: 400; font-size: 12px; color: var(--sub); }
.ft { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 28px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.ft-nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .ft { grid-template-columns: minmax(0, 1fr); } .ft-nav { justify-content: flex-start; } }

/* ズームの札の写真・画像（assets/brand/ の同じ名前のファイルで差し替える） */
.cap-card.has-pic { padding: 0; overflow: hidden; width: min(480px, calc(100vw - 32px)); }
.cap-card .cap-pic { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 0; background: var(--gray); }
.cap-card.has-pic .cap-txt { padding: 20px 28px 26px; }
.cap-card .cap-hd img.cap-logo { height: 24px; width: auto; }
@media (max-height: 760px) and (min-aspect-ratio: 9/10) { .cap-card .cap-pic { aspect-ratio: 21 / 9; } }
.stage.portrait .cap-card.has-pic { padding: 0; }
.stage.portrait .cap-card .cap-pic { aspect-ratio: 3 / 1; }
.stage.portrait .cap-card .cap-txt > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stage.portrait .cap-card { max-height: 48vh; }
.stage.portrait .cap-card.has-pic .cap-txt { padding: 14px 18px 18px; }
.stage:not(.ready) .cap-card .cap-pic { max-width: 480px; }

/* スマホのメニュー（860px より狭いとき） */
.hd-menu { display: none; position: relative; }
.hd-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; background: rgba(243,243,242,.95); display: grid; place-content: center; gap: 6px; }
.hd-menu summary::-webkit-details-marker { display: none; }
.hd-menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.hd-menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.hd-menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.hd-menu nav { position: absolute; right: 0; top: 52px; display: grid; min-width: 200px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.hd-menu nav a { padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.hd-menu nav a:hover, .hd-menu nav a:focus-visible { background: var(--gray); }
@media (max-width: 860px) { .hd-menu { display: block; } }

/* 札の中のリンクは小さく（大きな丸ボタンは、ページの区画の出口だけに使う） */
.cap-card .pill { min-width: 0; background: none; padding: 0; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 700; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding-bottom: 2px; }
.cap-card .pill::after { width: auto; height: auto; background: none; color: var(--ink); font-size: 13px; }
.cap-card .pill:hover { background: none; opacity: .7; }
.stage.portrait .cap-card .pill { margin-top: 8px; padding-block: 0 2px; }
