/* =========================================================
   株式会社サンプル デモサイト 案04「シネマ（映像と字幕）」
   地：映写室のスレート／文字：スクリーンの白／差し色：映写機の光（ごく少量）
   ========================================================= */

:root {
  --slate: #1D232B;      /* 地 */
  --deep: #171C22;       /* レターボックス帯・スクリーン周り（黒ではない濃いスレート） */
  --panel: #222932;
  --line: #36404B;
  --line-soft: #2A323C;
  --screen: #F2F1EC;     /* スクリーンの白 */
  --text: #DCDDDD;
  --gray: #8A929B;       /* 補助（地の上の14px以上のみ） */
  --gray-hi: #AEB4BB;    /* 小さい補助文字用 */
  --light: #E6C79C;      /* 映写機の光：再生位置・フォーカス・現在地のみ */

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 76rem;
  --font: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
  --mono: "Consolas", "Menlo", monospace;
  --hh: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--slate);
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--slate);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .03em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* 文節単位の改行（短い見出しで1〜2文字だけ落ちるのを防ぐ） */
.nb { display: inline-block; }

:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}
main:focus { outline: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- スキップリンク・デモ表記 ---------- */
.skip {
  position: absolute;
  top: .5rem;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--screen);
  color: var(--slate);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.demo-note {
  padding: .35rem var(--gutter);
  background: var(--deep);
  color: var(--gray-hi);
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .06em;
  text-align: center;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--slate);
  border-bottom: 1px solid var(--line-soft);
}
/* 再生位置の線（スクロール量） */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--light);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--hh);
  padding-inline: var(--gutter);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: var(--screen);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .24em;
}
.brand-sub {
  color: var(--gray-hi);
  font-size: .78rem;
  letter-spacing: .14em;
}

#site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.4rem);
}
#site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--gray-hi);
  font-size: .92rem;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
#site-nav a:hover { color: var(--screen); }
#site-nav a[aria-current="page"] { color: var(--screen); }
#site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--light);
}
.nav-home { display: none; }
.menu-toggle { display: none; }

@media (max-width: 800px) {
  .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 .95rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--screen);
    font: inherit;
    font-size: .9rem;
    letter-spacing: .08em;
    white-space: nowrap;
    cursor: pointer;
  }
  .menu-label { min-width: 4.4em; text-align: left; }
  .menu-icon {
    position: relative;
    flex: none;
    width: 18px;
    height: 12px;
  }
  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s ease, top .2s ease, bottom .2s ease;
  }
  .menu-icon::before { top: 2px; }
  .menu-icon::after { bottom: 2px; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 5.25px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { bottom: 5.25px; transform: rotate(-45deg); }

  #site-nav {
    position: fixed;
    top: var(--nav-top, 4rem);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: .75rem var(--gutter) 2.5rem;
    overflow-y: auto;
    background: var(--slate);
    border-top: 1px solid var(--line-soft);
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .site-header.is-open #site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity .2s ease;
  }
  #site-nav ul { flex-direction: column; gap: 0; }
  .nav-home { display: block; }
  #site-nav a {
    min-height: 3.6rem;
    color: var(--text);
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line-soft);
  }
  #site-nav a[aria-current="page"]::after {
    right: auto;
    bottom: -1px;
    width: 2.75rem;
  }
}

/* 狭い画面：ブランドとメニューボタンを1行に収める */
@media (max-width: 380px) {
  .header-inner { gap: .75rem; }
  .brand { gap: .4rem; }
  .brand-mark { font-size: 1rem; letter-spacing: .16em; }
  .brand-sub { font-size: .7rem; letter-spacing: .08em; }
  .menu-toggle { gap: .45rem; padding: 0 .7rem; font-size: .85rem; }
  .menu-label { min-width: 0; }
}

/* ---------- 映像枠（スクリーン） ---------- */
.screen { position: relative; }
.screen--bleed { background: var(--deep); }

.frame {
  position: relative;
  overflow: hidden;
}
.screen--bleed .frame {
  width: min(100%, calc((100svh - 11rem) * 2.39));
  margin-inline: auto;
}

/* 画像スロット：あとで中身を <img> に置き換えるだけで収まる */
.img-slot {
  position: relative;
  margin: 0;
  aspect-ratio: 2.39 / 1;
  overflow: hidden;
  background: #2A323C;
}
.img-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-slot .ph-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slot-label {
  position: absolute;
  top: .7rem;
  left: .7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  max-width: calc(100% - 1.4rem);
  padding: .2rem .6rem;
  background: rgba(23, 28, 34, .78);
  color: #D5D8DB;
  font-size: .72rem;
  line-height: 1.6;
  letter-spacing: .04em;
}

/* 字幕を読みやすくする薄い暗幕 */
.scrim {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72%;
  background: linear-gradient(to top, rgba(18, 22, 28, .86) 0%, rgba(18, 22, 28, .58) 38%, rgba(18, 22, 28, 0) 100%);
  pointer-events: none;
}

/* レターボックス帯（TOP初回のみ開く） */
.band {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 50.5%;
  background: var(--deep);
  transform: scaleY(0);
  pointer-events: none;
}
.band--top { top: 0; transform-origin: center top; }
.band--bottom { bottom: 0; transform-origin: center bottom; }

/* 字幕 */
.subtitle {
  position: absolute;
  right: 0;
  bottom: clamp(1rem, 6%, 3.25rem);
  left: 0;
  z-index: 3;
  padding-inline: var(--gutter);
  color: var(--screen);
  text-align: center;
}
.subtitle,
.subtitle * {
  text-shadow: 0 1px 2px rgba(16, 20, 25, .85), 0 0 14px rgba(16, 20, 25, .5);
}
.speaker {
  margin-bottom: .3rem;
  color: #E4E2DC;
  font-size: clamp(.8rem, .74rem + .22vw, .95rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .16em;
}
.line {
  color: var(--screen);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.45rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
}
.line-sub {
  margin-top: .35rem;
  color: #ECEAE4;
  font-size: clamp(.95rem, .86rem + .35vw, 1.15rem);
  font-weight: 600;
  letter-spacing: .08em;
}

.is-intro .band { animation: band-open 1.25s cubic-bezier(.7, 0, .25, 1) .3s both; }
.is-intro .subtitle { animation: subtitle-in .8s ease-out 1.35s both; }
@keyframes band-open {
  from { transform: scaleY(.84); }
  to { transform: scaleY(0); }
}
@keyframes subtitle-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* スマホ：映像は16:9、字幕は映像の下の帯に置く */
@media (max-width: 600px) {
  .img-slot { aspect-ratio: 16 / 9; }
  .scrim { display: none; }
  .screen--bleed .frame { width: 100%; }
  .subtitle {
    position: static;
    padding: 1.1rem var(--gutter) 1.35rem;
    background: var(--deep);
  }
  .subtitle,
  .subtitle * { text-shadow: none; }
}

/* ---------- 共通ブロック ---------- */
.after-open {
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
  text-align: center;
}
.lede {
  color: var(--text);
  font-size: clamp(1rem, .92rem + .45vw, 1.3rem);
  line-height: 2.15;
  letter-spacing: .06em;
}
.note {
  margin-top: 1rem;
  color: var(--gray-hi);
  font-size: .88rem;
  line-height: 1.9;
}

.block { padding-block: clamp(3rem, 8vw, 7rem); }
.block-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.block-title {
  color: var(--screen);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
}
.block-lead {
  margin-top: .5rem;
  color: var(--gray-hi);
}

.more {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .25rem;
  color: var(--screen);
  letter-spacing: .08em;
  text-decoration: underline;
  text-decoration-color: var(--gray);
  text-decoration-thickness: 1px;
  text-underline-offset: .5em;
}
.text-link:hover { text-decoration-color: var(--light); }

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.75rem;
  border: 1px solid var(--gray);
  color: var(--screen);
  letter-spacing: .08em;
  text-decoration: none;
  transition: border-color .2s ease;
}
.btn-link:hover { border-color: var(--light); }

/* TOP：三つの仕事 */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.trio h3 {
  margin-top: 1.1rem;
  color: var(--screen);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
}
.trio p {
  margin-top: .15rem;
  color: var(--gray-hi);
  font-size: .92rem;
  text-align: center;
}

.frame-note {
  margin-top: 1.1rem;
  color: var(--gray-hi);
  font-size: .88rem;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4.5vw, 4.5rem);
  align-items: center;
}
.split-text .block-title { text-align: left; }
.split-text p { margin-top: .75rem; }
.split-text .more { text-align: left; margin-top: 1.25rem; }

/* 終わりの字幕カード */
.endcard {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  aspect-ratio: 2.39 / 1;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  background: var(--deep);
  border: 1px solid var(--line-soft);
  text-align: center;
}
.endcard .line { font-size: clamp(1.35rem, 1rem + 1.5vw, 2.25rem); }
.endcard--short { aspect-ratio: 3.2 / 1; }
.endcard .note { margin-top: 0; }
.endcard .btn-link { margin-top: .75rem; }

@media (max-width: 800px) {
  .trio { grid-template-columns: 1fr; gap: 2.5rem; }
  .split { grid-template-columns: 1fr; }
  .split-text { text-align: center; }
  .split-text .block-title,
  .split-text .more { text-align: center; }
  .endcard { aspect-ratio: auto; }
}

/* ---------- 物件・施工事例 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.filters button {
  min-height: 44px;
  padding: 0 1.3rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--gray-hi);
  font: inherit;
  font-size: .92rem;
  letter-spacing: .08em;
  cursor: pointer;
}
.filters button:hover { color: var(--screen); }
.filters button[aria-pressed="true"] {
  color: var(--screen);
  border-color: var(--gray);
  box-shadow: inset 0 -2px 0 var(--light);
}
.filter-status {
  margin-top: .9rem;
  color: var(--gray-hi);
  font-size: .85rem;
  text-align: center;
}

.reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.75rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.sample-tag {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  z-index: 2;
  padding: .15rem .6rem;
  background: var(--screen);
  color: var(--slate);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .08em;
}
.reel-cap { padding-top: 1.1rem; }
.reel-kind {
  color: var(--gray-hi);
  font-size: .8rem;
  letter-spacing: .14em;
}
.reel-title {
  margin-top: .1rem;
  color: var(--screen);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .06em;
}
.reel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.5rem;
  margin-top: .5rem;
  font-size: .85rem;
}
.reel-meta div { display: flex; gap: .6rem; }
.reel-meta dt { color: var(--gray-hi); }
.reel-meta dd { color: var(--text); }

@media (max-width: 800px) {
  .reels { grid-template-columns: 1fr; }
}

/* ---------- 事業紹介 ---------- */
.scene { padding-block: clamp(2.5rem, 6vw, 5rem); }
.scene-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
}
.scene-body > p { max-width: 34em; }
.facts > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 1rem;
  padding-block: .75rem;
  border-top: 1px solid var(--line-soft);
}
.facts > div:last-child { border-bottom: 1px solid var(--line-soft); }
.facts dt {
  color: var(--gray-hi);
  font-size: .88rem;
}
.facts dd { font-size: .95rem; }
.tbd { color: var(--gray-hi); }

@media (max-width: 800px) {
  .scene-body { grid-template-columns: 1fr; }
}

/* ---------- 会社概要・サテライト：エンドロール ---------- */
.credits {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  text-align: center;
}
.credits-title {
  color: var(--gray-hi);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .24em;
}
.roll {
  max-width: 46rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.roll > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2.75rem;
  padding-block: .6rem;
}
.roll > div.gap { margin-top: 2.25rem; }
.roll dt {
  color: var(--gray-hi);
  font-size: .9rem;
  text-align: right;
  padding-top: .1em;
}
.roll dd {
  color: var(--screen);
  text-align: left;
}
.roll dd.tbd { color: var(--gray-hi); }
.roll dd .text-link {
  min-height: 0;
  margin-block: -.6rem;
  padding: .6rem 0;
  line-height: 1.9;
  text-underline-offset: .35em;
}

.portrait {
  display: grid;
  place-items: center;
  width: min(11rem, 60%);
  aspect-ratio: 4 / 5;
  margin: clamp(3.5rem, 7vw, 5rem) auto 0;
  padding: 1rem;
  background: var(--deep);
  border: 1px dashed #4A545F;
  color: var(--gray-hi);
  font-size: .8rem;
  line-height: 1.7;
}
.portrait-cap {
  margin-top: 1.1rem;
  color: var(--screen);
  letter-spacing: .12em;
}
.portrait-cap .role {
  display: block;
  color: var(--gray-hi);
  font-size: .82rem;
}
.credits .note { margin-top: .6rem; }
.fin {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  color: var(--gray-hi);
  font-size: .85rem;
  letter-spacing: .24em;
}

.map-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2.39 / 1;
  max-width: 46rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  overflow: hidden;
  background: var(--deep);
  border: 1px dashed #4A545F;
  color: var(--gray-hi);
  font-size: .9rem;
}
.map-slot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-label {
  position: relative;
  max-width: calc(100% - 2rem);
  padding: .4rem 1rem;
  background: var(--deep);
  text-align: center;
}

@media (max-width: 600px) {
  .roll > div {
    grid-template-columns: 1fr;
    row-gap: .05rem;
  }
  .roll dt,
  .roll dd { text-align: center; }
  .roll dt:empty { display: none; }
  .roll > div:has(> dt:empty) { padding-top: 0; }
  .roll > div.gap { margin-top: 1.5rem; }
  .map-slot { aspect-ratio: 4 / 3; }
}

/* ---------- お問い合わせ ---------- */
.contact-page { padding-block: clamp(1.5rem, 4vw, 3.5rem) 0; }
.contact-page .endcard { margin-inline: auto; }
.endcard--final { gap: 0; }
.endcard--final .line-sub { margin-top: .5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(100%, 46rem);
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
}
.contact-opt {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-opt h2 {
  color: var(--screen);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .12em;
}
.contact-opt p {
  margin-top: .3rem;
  color: var(--gray-hi);
  font-size: .92rem;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  width: 100%;
  max-width: 22rem;
  min-height: 4.75rem;
  margin: 1.35rem auto 0;
  padding: .9rem 1rem;
  background: transparent;
  border: 1px dashed #5A646F;
  border-radius: 0;
  color: #C9CDD2;
  font: inherit;
  cursor: not-allowed;
}
.contact-btn .btn-main {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.contact-btn .btn-main svg { width: 1.15rem; height: 1.15rem; }
.contact-btn .btn-note {
  color: var(--gray-hi);
  font-size: .8rem;
  letter-spacing: .04em;
}
.contact-notes {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.contact-notes p { color: var(--gray-hi); font-size: .9rem; }

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- 次の場面 ---------- */
.next-scene {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line-soft);
}
.next-scene a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--screen);
  text-decoration: none;
}
.next-label {
  color: var(--gray-hi);
  font-size: .8rem;
  letter-spacing: .18em;
}
.next-title {
  position: relative;
  padding-bottom: .55rem;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: .1em;
}
.next-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2.5rem;
  height: 1px;
  background: var(--gray);
  transform: translateX(-50%);
  transition: width .3s ease, background-color .3s ease;
}
.next-scene a:hover .next-title::after,
.next-scene a:focus-visible .next-title::after {
  width: 100%;
  background: var(--light);
}

/* ---------- フッター ---------- */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--deep);
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}
.footer-brand {
  color: var(--screen);
  font-weight: 600;
  letter-spacing: .16em;
}
.footer-biz { color: var(--gray-hi); font-size: .85rem; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--gray-hi);
  font-size: .88rem;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--screen); }
.footer-note {
  color: var(--gray-hi);
  font-size: .75rem;
  line-height: 1.8;
}

.noscript { padding: 4rem var(--gutter); text-align: center; }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── モバイルメニュー：閉じる／HOME（TATEURI 必須・メニューを開いている間だけ表示） ─── */
.mobile-nav-extra { display: none; }
html.tt-nav-open #site-nav .mobile-nav-extra {
  position: relative; z-index: 5; display: flex; flex: 0 0 auto; align-self: stretch; align-items: center; justify-content: space-between; gap: 16px;
  box-sizing: border-box; width: 100%; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid rgba(128, 128, 128, .35);
}
html.tt-nav-open #site-nav a.mobile-nav-home,
html.tt-nav-open #site-nav button.mobile-nav-close {
  display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 44px; margin: 0; padding: 0 2px;
  font: inherit; font-size: 14px; line-height: 1; letter-spacing: .12em; color: inherit; text-decoration: none;
  background: none; border: 0; border-radius: 0; box-shadow: none; opacity: 1; transform: none; cursor: pointer;
}
html.tt-nav-open #site-nav a.mobile-nav-home { font-weight: 700; letter-spacing: .2em; box-shadow: inset 0 -3px 0 var(--light); }
html.tt-nav-open #site-nav a.mobile-nav-home::before, html.tt-nav-open #site-nav a.mobile-nav-home::after,
html.tt-nav-open #site-nav button.mobile-nav-close::before, html.tt-nav-open #site-nav button.mobile-nav-close::after { content: none; display: none; }
html.tt-nav-open #site-nav button.mobile-nav-close svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* メニューを開いている間、デモバーが画面に見えていれば一時的に外す（各案のメニュー位置は元のまま） */
html.tt-bar-hide #demo-bar { display: none; }

/* ─── 横スクロール防止（TATEURI 規則。sticky を壊さないよう hidden ではなく clip） ─── */
html, body { overflow-x: clip; }

/* ─── DEMO BAR（TATEURI 共通・通常フローに置く） ─── */
#demo-bar { position: relative; z-index: 1200; background: #101215; border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 7px 16px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.demo-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-size: 12px; line-height: 1.5; letter-spacing: .02em; color: rgba(255, 255, 255, .55); }
.demo-badge { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: rgba(200, 168, 92, .18); color: #C8A85C; padding: 3px 10px; flex-shrink: 0; }
.demo-link { display: inline-block; padding: 4px 0; color: #C8A85C; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.demo-copy { color: rgba(255, 255, 255, .3); font-size: 11px; }
@media (max-width: 640px) { .demo-copy { display: none; } }
