@charset "UTF-8";
/* ============================================================
   Nuwel — One Line
   一本の線がページを貫く。部屋（Scene）は線の左右に交互に現れ、
   展示物は線に吊るされた「図面」として描かれる。
   影ゼロ・写真ゼロ・単一アクセント（セージグリーン）。終室のみ暗転。
   ============================================================ */

:root {
  color-scheme: light;

  /* surfaces */
  --canvas: #F4F7EE;
  --surface: #FFFFFF;
  --ink-room: #1F392A;

  /* text on light */
  --ink: #1F392A;
  --ink-2: #2C4A36;
  --muted: rgba(75, 111, 56, .75);
  --subtle: rgba(75, 111, 56, .55);

  /* text on dark */
  --on-ink: #FFFFFF;
  --on-ink-2: #C4D3B5;
  --on-ink-link: #A9C888;
  --on-ink-muted: #7E838C;

  /* accent */
  --accent: #4B6F38;
  --accent-ink: #3D5C2E;
  --accent-hover: #1F392A;

  /* lines */
  --hairline: #E2E8D6;
  --hairline-strong: #CFDAC0;

  --focus: #4B6F38;

  --font-sans: "Inter", "Noto Sans JP", -apple-system, "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { word-break: normal; overflow-wrap: normal; line-break: strict; }

svg { display: block; }
a { color: inherit; }

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* 共通コンテナ：全部屋がこの左端に揃う */
.wrap {
  width: min(1160px, calc(100% - 12vw));
  margin-inline: auto;
}

/* ---------- ロゴタイプ ---------- */
.brand {
  position: fixed;
  top: 30px; left: max(6vw, calc((100vw - 1160px) / 2));
  z-index: 40;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
  transition: color .4s var(--ease-out);
}
.brand__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}
.brand--on-dark { color: var(--on-ink); }

/* ============================================================
   Scene / Corridor（廊下——線が通るための静けさ）
   ============================================================ */
main { position: relative; }

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12vh 0;
}

.corridor { height: 46vh; }
.corridor--short { height: 36vh; }
.corridor--long { height: 56vh; }

/* 線より上に浮く「壁」。背景が線を静かに隠す */
.mount { position: relative; z-index: 10; background: var(--canvas); }
.mount--dark { background: var(--ink-room); }

/* 室番号 */
.room-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.room-label::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.room-label--dark { color: var(--on-ink-muted); }

/* 見出し（palt＝約物を詰めた和文組み） */
.scene-title {
  margin-top: 30px;
  font-size: clamp(26px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: .015em;
  font-feature-settings: "palt" 1;
  text-spacing-trim: trim-start;
}
.mask { display: block; overflow: hidden; }
.mask__inner { display: block; }

.room-body {
  margin-top: 6vh;
  max-width: 34em;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--ink-2);
}
.room-body p + p { margin-top: 1.8em; }

.quiet-cta { margin-top: 7vh; }
.quiet-cta a,
.contact-mail a {
  color: var(--accent-ink);
  font-size: 15px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color .15s var(--ease-out);
}
.quiet-cta a:hover { color: var(--accent-hover); }

/* 部屋の配置バリエーション */
.room--left { max-width: 620px; margin-right: auto; padding: 4vh 3vw 4vh 0; }
.room--center { text-align: center; margin-inline: auto; padding: 3vh 3vw; }
.room--center .room-label { justify-content: center; }
.room--center .room-body { margin-inline: auto; }

/* ============================================================
   Scene 01 — Hero
   ============================================================ */
.scene--hero {
  min-height: 100svh;
  justify-content: center;
  padding: 0;
}
.hero-inner { position: relative; z-index: 10; }
.hero-title {
  font-size: clamp(30px, 9vw, 132px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  font-feature-settings: "palt" 1;
  text-spacing-trim: trim-start;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line__inner { display: inline-block; }
.hero-title .ch { display: inline-block; }

.cue {
  position: absolute;
  bottom: 6vh; left: 50%;
  width: 1px; height: 44px;
  background: linear-gradient(180deg, rgba(17,17,17,0), var(--ink));
  transform: translateX(-50%);
  transition: opacity .5s var(--ease-out);
}
html.scrolled .cue { opacity: 0 !important; }

/* ============================================================
   Scene 02 — Vision
   ============================================================ */
.scene--vision { min-height: 100vh; }

/* ============================================================
   Scene 03 — Workflow（線がそのまま工程軸になる）
   ============================================================ */
.scene--workflow { padding-bottom: 6vh; }
.scene--workflow .room--center { margin-bottom: 4vh; }

.journey {
  list-style: none;
  width: 100%;
}
.station {
  position: relative;
  height: 21vh;
  min-height: 150px;
}
.station__dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--canvas);
  z-index: 10;
}
.station__body {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--canvas);
  padding: 4px 10px;
  line-height: 1.35;
}
.station--r .station__body { left: calc(50% + 46px); text-align: left; }
.station--l .station__body { right: calc(50% + 46px); text-align: right; }
/* 点と札を結ぶ短い罫（図面の引出線） */
.station__body::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px; height: 1px;
  background: var(--hairline-strong);
}
.station--r .station__body::before { left: -36px; }
.station--l .station__body::before { right: -36px; }

.station__en {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .06em;
}
.station__ja {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* モーション時のみ未点灯から始める（既定＝最終状態） */
html.motion-live .station { opacity: .25; transition: opacity .6s var(--ease-out); }
html.motion-live .station.is-lit { opacity: 1; }
html.motion-live .station.is-lit .station__dot {
  border-color: var(--accent);
  background: var(--accent);
}

/* ============================================================
   Scene 04 / 05 — 図面（technical drawing）
   ============================================================ */
.scene--exhibit, .scene--works { min-height: 108vh; }

.exhibit__fig svg { width: min(540px, 90vw); height: auto; }
.exhibit__fig, .work-fig { padding: 24px 8px; }
.work-fig svg { width: min(660px, 90vw); height: auto; }

/* 製図の線種 */
.s-ink  { stroke: var(--ink); stroke-width: 1.5; fill: none;
          stroke-linecap: round; stroke-linejoin: round; }
.s-w1   { stroke-width: 1; }
.s-w2   { stroke-width: 1.8; }
.s-thin { stroke: var(--muted); stroke-width: .8; fill: none; stroke-linecap: round; }
.s-dash { stroke: var(--subtle); stroke-width: .8; fill: none;
          stroke-dasharray: 6 5; }
.s-cl   { stroke: var(--subtle); stroke-width: .7; fill: none;
          stroke-dasharray: 16 5 2.5 5; }
.s-acc  { stroke: var(--accent); stroke-width: 2.4; fill: none;
          stroke-linecap: round; stroke-linejoin: round; }
.t-note { font-family: var(--font-sans); font-size: 11.5px; font-weight: 500;
          letter-spacing: .14em; fill: var(--muted); }
.t-fig  { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700;
          letter-spacing: .18em; fill: var(--ink); }

/* 壁の札（キャプション）：線の左右に振り分ける */
.exhibit__caption {
  width: min(384px, 86vw);
  margin-top: 5vh;
  padding: 20px 0;
}
.exhibit__caption--r { align-self: flex-start; margin-left: calc(50% + 44px); }
.exhibit__caption--l {
  align-self: flex-end;
  margin-right: calc(50% + 44px);
  margin-left: auto;
}

.exhibit__title {
  margin-top: 18px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
}
.exhibit__desc {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--muted);
  text-wrap: pretty;
}
.work-meta {
  margin-top: 18px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--subtle);
}

/* 図面の注記（検証方針など、キャプション内の補足） */
.evidence-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--muted);
  text-wrap: pretty;
}
.exhibit__caption .quiet-cta { margin-top: 26px; }

/* Works — 実績スタット */
.works-stat {
  margin: 8px 0 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.works-stat__num {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.works-stat__plus {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
}
.works-stat__label {
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* Works — 実績リスト（図面の部品表） */
.works-list {
  list-style: none;
  width: min(920px, calc(100% - 12vw));
  margin: 10vh auto 0;
  border-top: 1px solid var(--hairline-strong);
}
.works-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  column-gap: 28px;
  align-items: baseline;
  padding: 26px 6px;
  border-bottom: 1px solid var(--hairline);
}
.works-item__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--subtle);
}
.works-item__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
}
.works-item__desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  text-wrap: pretty;
}
.works-item__aside { text-align: right; }
.works-item__meta {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--subtle);
}
.works-item__year {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Scene 06 — Contact（暗室）
   ============================================================ */
.scene--contact {
  min-height: 100svh;
  background: var(--ink-room);
  color: var(--on-ink);
  padding: 16vh 6vw 12vh;
}
.contact-title { color: var(--on-ink); }
.contact-lead {
  margin-top: 6vh;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--on-ink-2);
}
.contact-mail { margin-top: 22px; }
.contact-mail a {
  color: var(--on-ink-link);
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: .1em;
}
.contact-mail a:hover { color: var(--on-ink); }
/* 暗色ルーム内の quiet-cta（お問い合わせフォーム導線 2026-07-18）— 既定の accent-ink は
   dark-on-dark でコントラスト不足になるため on-ink 系へ上書き */
.scene--contact .quiet-cta { margin-top: 5vh; }
.scene--contact .quiet-cta a { color: var(--on-ink-link); }
.scene--contact .quiet-cta a:hover { color: var(--on-ink); }
.scene--contact a:focus-visible {
  box-shadow: 0 0 0 2px var(--ink-room), 0 0 0 4px var(--on-ink-link);
}

/* 運営者情報 */
.company {
  width: min(560px, 100%);
  margin: 10vh auto 0;
  text-align: left;
}
.company__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--on-ink-muted);
}
.company__list {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.company__row {
  display: flex;
  gap: 20px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .04em;
}
.company__row dt { flex: none; width: 6.5em; color: var(--on-ink-muted); }
.company__row dd { color: var(--on-ink-2); }
.company__row a {
  color: var(--on-ink-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.company__row a:hover { color: var(--on-ink); }

.colophon {
  position: absolute;
  bottom: 28px; left: 6vw; right: 6vw;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--on-ink-muted);
}

/* ============================================================
   Spine（背骨の線）
   ============================================================ */
#spine {
  display: none;
  position: absolute;
  top: 0; left: 0;
  z-index: 5;
  pointer-events: none;
}
html.spine-ready #spine { display: block; }

#spine-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}
#spine-tip { opacity: 0; }
html:not(.motion-live) #spine-tip { display: none; }
#spine-dot { fill: var(--accent); }
#spine-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .35; }
/* 線の終止符：暗室で一つの点として結ぶ */
#spine-period { fill: var(--accent); }

/* ============================================================
   Motion 初期状態（motion-live 時のみ隠す。既定＝最終状態）
   ============================================================ */
html.motion-live .hero-title .ch { transform: translateY(116%); }
html.motion-live .cue { opacity: 0; }
html.motion-live .mask__inner { transform: translateY(114%); }
html.motion-live .fade { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .brand { top: 22px; }

  .corridor { height: 32vh; }
  .corridor--short { height: 26vh; }
  .corridor--long { height: 42vh; }

  .scene { padding: 9vh 0; }

  .hero-title { line-height: 1.26; }

  .room--left { padding-right: 0; }
  .room-body { font-size: 15px; }

  .station { height: 18vh; min-height: 128px; }
  .station--r .station__body { left: calc(50% + 30px); }
  .station--l .station__body { right: calc(50% + 30px); }
  .station__body::before { width: 16px; }
  .station--r .station__body::before { left: -24px; }
  .station--l .station__body::before { right: -24px; }
  .station__en { font-size: 16px; }

  .exhibit__caption--r,
  .exhibit__caption--l {
    align-self: center;
    margin: 40px auto 0;
    width: min(520px, 88vw);
  }

  .colophon { font-size: 10.5px; letter-spacing: .08em; }

  .works-list { width: min(920px, calc(100% - 10vw)); margin-top: 8vh; }
  .works-item { grid-template-columns: 1fr; row-gap: 8px; padding: 22px 2px; }
  .works-item__num { display: none; }
  .works-item__aside { display: flex; align-items: baseline; gap: 16px; text-align: left; }
  .works-item__year { margin-top: 0; }

  .company { margin-top: 8vh; }
  .company__row { flex-direction: column; gap: 2px; }
  .company__row dt { width: auto; }
}

/* 暗室 footer の法定リンク（index / product 共通）。
   room（不透明な暗色背景）が伸びて重なっても描画・クリックが footer 側に残るよう z-index を持つ */
.legal-links {
  position: absolute;
  bottom: 58px; left: 6vw; right: 6vw;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 11px;
  letter-spacing: .08em;
}
.legal-links a { color: var(--on-ink-muted); text-decoration: none; }
.legal-links a:hover { color: var(--on-ink-2); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .legal-links { flex-direction: column; gap: 8px; align-items: center; bottom: 64px; }
  /* リンクが2段になるぶん（bottom 64px + 2行 ≒ 114px）、room の内容が
     法定リンク域に食い込まないよう暗室の下余白を確保する */
  .scene--contact { padding-bottom: 160px; }
}
