/* 株式会社サンプル デモサイト 案08「ホテルライク」 */

:root {
  --navy: #1C2A4A;
  --navy-deep: #152039;
  --navy-soft: #3D4A68;
  --lilac: #CFC4E3;
  --lilac-pale: #ECE8F4;
  --mist: #F6F5F9;
  --ink: #1A1D26;
  --muted: #4F5670;
  --rule: #DCD6E7;
  --white: #FFFFFF;
  --mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "BIZ UDMincho", serif;
  --gothic: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --hh: 84px;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--hh);
}
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--gothic);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .04em;
  line-break: strict;
  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; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }

.w { display: inline-block; }
.center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- 本文へ移動 ---------- */
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 18px;
  background: var(--navy); color: var(--white);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; outline-color: var(--lilac); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hh);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
  transition: background-color .45s ease, border-color .45s ease;
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: clamp(20px, 3.2vw, 56px);
  align-items: center;
  padding-inline: var(--gutter);
}
.brand {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 2;
  display: flex; align-items: center;
  min-height: 44px; padding: 4px;
  transition: opacity .45s ease, visibility .45s;
}
.brand-logo { display: block; height: 30px; width: auto; max-width: none; }

#site-nav {
  grid-column: 1 / -1; grid-row: 1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
}
.nav-list { display: flex; align-items: center; gap: clamp(2px, 1vw, 16px); }
.nav-a { grid-column: 1; justify-self: end; }
.nav-b { grid-column: 3; justify-self: start; }
.nav-home { display: none; }

#site-nav a {
  position: relative;
  display: flex; align-items: center;
  min-height: 44px;
  padding: 0 clamp(6px, .8vw, 12px);
  color: var(--navy);
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .45s ease;
}
#site-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 6px;
  width: 18px; height: 1px;
  margin-left: -9px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s ease;
}
#site-nav a:hover::after,
#site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle { display: none; }

/* TOPの写真の上では透明に */
.site-header.is-clear:not(.menu-open) {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.is-clear:not(.menu-open) .brand { opacity: 0; visibility: hidden; }
.site-header.is-clear:not(.menu-open) #site-nav a,
.site-header.is-clear:not(.menu-open) .menu-toggle { color: var(--white); }
.site-header.is-clear:not(.menu-open) :focus-visible { outline-color: var(--white); }

@media (max-width: 1100px) {
  #site-nav a { font-size: 13px; letter-spacing: .06em; padding: 0 6px; }
  .nav-list { gap: 2px; }
  .brand-logo { height: 28px; }
}

/* ---------- スマートフォン：メニュー ---------- */
@media (max-width: 800px) {
  :root { --hh: 64px; }
  .header-inner { column-gap: 8px; }
  .brand-logo { height: 28px; }

  .menu-toggle {
    grid-column: 3; grid-row: 1; justify-self: end;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 7px;
    min-width: 48px; min-height: 48px;
    margin-right: -6px;
    padding: 4px 6px;
    background: none; border: 0;
    color: var(--navy);
    font-family: var(--mincho); font-weight: 600; font-size: 11px; line-height: 1;
    letter-spacing: .08em;
    white-space: nowrap;
    cursor: pointer;
    transition: color .45s ease;
  }
  .menu-icon { position: relative; display: block; width: 26px; height: 8px; }
  .menu-icon::before, .menu-icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px;
    background: currentColor;
    transition: transform .3s ease, top .3s ease;
  }
  .menu-icon::before { top: 0; }
  .menu-icon::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 4px; transform: rotate(25deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 4px; transform: rotate(-25deg); }

  #site-nav {
    position: fixed; inset: var(--hh) 0 0 0;
    display: block;
    padding: 36px var(--gutter) 56px;
    background: var(--white);
    overflow-y: auto;
    visibility: hidden; opacity: 0;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .menu-open #site-nav { visibility: visible; opacity: 1; transition: opacity .3s ease; }
  .nav-list { display: block; width: 100%; max-width: 360px; margin: 0 auto; justify-self: stretch; }
  .nav-home { display: block; }
  #site-nav li { border-bottom: 1px solid var(--rule); }
  .nav-a li:first-child { border-top: 1px solid var(--rule); }
  #site-nav a {
    justify-content: center;
    min-height: 60px;
    font-size: 16px; letter-spacing: .16em;
    padding: 0 12px;
  }
  #site-nav a::after { display: none; }
  #site-nav a[aria-current="page"] { background: var(--mist); }
}

/* ---------- 共通の見出し・リンク ---------- */
.eyebrow {
  margin-bottom: 12px;
  color: var(--navy-soft);
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: .16em;
  line-height: 1.6;
}
.h-page, .h-sec, .trio-title, .entry-title, .contact-title, .hero-title {
  font-family: var(--mincho);
  font-weight: 600;
  color: var(--navy);
  text-wrap: balance;
}
.h-page { font-size: clamp(26px, 3vw, 38px); letter-spacing: .18em; line-height: 1.6; }
.h-sec { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: .16em; line-height: 1.7; }

.lead {
  max-width: 34em;
  margin: 28px auto 0;
  color: var(--muted);
  text-wrap: pretty;
}
.diamond {
  display: block;
  width: 7px; height: 7px;
  margin: 26px auto 0;
  border: 1px solid var(--navy);
  transform: rotate(45deg);
}

.more { margin-top: clamp(40px, 5vw, 56px); }
.text-link {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--navy);
  font-family: var(--mincho); font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  background: linear-gradient(var(--navy), var(--navy)) left calc(100% - 6px) / 100% 1px no-repeat;
  transition: background-size .35s ease;
}
.text-link:hover { background-size: 40% 1px; background-position: center calc(100% - 6px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  margin-top: 36px;
  padding: 8px 44px;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white);
  font-family: var(--mincho); font-weight: 600;
  letter-spacing: .16em; line-height: 1.6;
  text-decoration: none;
  transition: background-color .3s ease;
}
.btn:hover { background: var(--navy-deep); }

/* ---------- セクション ---------- */
.section { padding: clamp(88px, 11vw, 150px) var(--gutter); text-align: center; }
.section-tight { padding: 0 var(--gutter) clamp(88px, 10vw, 140px); }
.tint { background: var(--mist); }

.page-head {
  padding: calc(var(--hh) + clamp(64px, 9vw, 128px)) var(--gutter) clamp(56px, 7vw, 96px);
  text-align: center;
}

/* ---------- 写真スロット ---------- */
.img-slot { position: relative; margin: 0; overflow: hidden; background: var(--lilac-pale); }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { position: absolute; inset: 0; background: linear-gradient(165deg, #E9E4F1 0%, #D6DAE6 100%); }
.img-slot[data-slot^="biz-"] { aspect-ratio: 3 / 4; }
.img-slot[data-slot^="project-"] { aspect-ratio: 4 / 3; }
.img-slot[data-slot="satellite"] { aspect-ratio: 16 / 9; }

.ai-cap {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  padding: 1px 8px;
  background: rgba(26, 29, 38, .62);
  color: var(--white);
  font-size: 11px; line-height: 1.7; letter-spacing: .06em;
}
.sample-tag {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  padding: 2px 10px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px; line-height: 1.7; letter-spacing: .1em;
}
.photo-note {
  max-width: 1160px;
  margin: 40px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.note-wrap { padding: 32px var(--gutter) 40px; }
.note-wrap .photo-note { margin-top: 0; }

/* ---------- TOP：ヒーロー ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid; place-items: center;
  height: 100svh; min-height: 560px; max-height: 1000px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.hero .img-slot { position: absolute; inset: 0; background: #2A3553; }
.hero .ph { background: linear-gradient(170deg, #4A5575 0%, #2C3654 100%); }
.hero { --veil: .46; }
.hero-veil { position: absolute; inset: 0; background: var(--navy); opacity: var(--veil); }
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 180px;
  background: linear-gradient(rgba(21, 32, 57, .42), rgba(21, 32, 57, 0));
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: clamp(22px, 2.6vw, 34px);
  padding: var(--hh) var(--gutter) 48px;
}
.hero-logo { height: clamp(44px, 5vw, 70px); }
.hero-title {
  color: var(--white);
  font-size: clamp(19px, 2.2vw, 28px);
  letter-spacing: .26em;
  line-height: 1.9;
  padding-left: .26em;
  text-shadow: 0 1px 20px rgba(21, 32, 57, .45);
}
.hero-biz {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 0;
  font-size: 13px; letter-spacing: .14em; line-height: 1.8;
  text-shadow: 0 1px 12px rgba(21, 32, 57, .5);
}
.hero-biz li { display: flex; align-items: center; white-space: nowrap; }
.hero-biz li + li::before {
  content: ""; width: 1px; height: 11px; margin: 0 16px;
  background: rgba(255, 255, 255, .7);
}
.hero-line {
  position: absolute; left: 50%; bottom: 0; z-index: 1;
  width: 1px; height: clamp(48px, 7vw, 80px);
  background: rgba(255, 255, 255, .8);
}
.hero .ai-cap { right: 12px; bottom: 12px; }

/* 初回表示の演出：暗幕が明けてロゴとコピーが現れる（一度だけ） */
.hero.is-intro .hero-veil { animation: veil-open 1.8s cubic-bezier(.45, 0, .2, 1) both; }
.hero.is-intro .hero-inner { animation: rise-in 1.2s .6s cubic-bezier(.2, .6, .2, 1) both; }
.hero.is-intro .hero-line { animation: fade-in .8s 1.2s ease both; }
@keyframes veil-open { from { opacity: 1; } to { opacity: var(--veil); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- TOP：イントロ ---------- */
.intro { padding-top: 0; }
.intro::before {
  content: ""; display: block;
  width: 1px; height: clamp(64px, 8vw, 104px);
  margin: 0 auto clamp(40px, 5vw, 64px);
  background: var(--lilac);
}

/* ---------- 3事業 ---------- */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  max-width: 1200px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  text-align: center;
}
.trio-page { margin-top: 0; }
.trio-en {
  margin-top: 28px;
  color: var(--navy-soft);
  font-family: var(--mincho); font-size: 13px; letter-spacing: .12em; line-height: 1.6;
}
.trio-title { margin-top: 6px; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: .14em; line-height: 1.6; }
.trio-text { max-width: 22em; margin: 14px auto 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }

.pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 40px);
  max-width: 1100px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}

/* ---------- TOP：サテライトオフィスの帯 ---------- */
.band {
  position: relative;
  display: grid; place-items: center;
  padding: clamp(96px, 11vw, 160px) var(--gutter);
  text-align: center;
}
.band .img-slot[data-slot="satellite"] { position: absolute; inset: 0; aspect-ratio: auto; }
.band .img-slot[data-slot="satellite"] img { object-position: 50% 85%; }
.band-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 540px;
  padding: clamp(44px, 5vw, 64px) clamp(28px, 5vw, 72px);
  background: var(--white);
}
.band-text { margin-top: 18px; color: var(--muted); }

/* ---------- お問い合わせの帯 ---------- */
.cta {
  padding: clamp(72px, 9vw, 120px) var(--gutter);
  background: var(--lilac);
  color: var(--ink);
  text-align: center;
}
.cta p { margin-top: 14px; }

/* ---------- 物件・施工事例 ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.filter {
  min-height: 44px;
  padding: 0 22px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--navy);
  font-family: var(--mincho); font-weight: 600; font-size: 14px; letter-spacing: .12em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.catalog {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(56px, 6vw, 88px) clamp(24px, 3.5vw, 56px);
  max-width: 1160px;
  margin: 0 auto;
}
.entry { text-align: center; }
.frame-empty {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  outline: 1px solid var(--rule); outline-offset: -16px;
}
.frame-text { color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.entry-cat { margin-top: 26px; color: var(--navy-soft); font-size: 13px; letter-spacing: .14em; line-height: 1.6; }
.entry-title { margin-top: 4px; font-size: clamp(17px, 1.6vw, 20px); letter-spacing: .1em; line-height: 1.6; }
.entry-spec {
  max-width: 340px;
  margin: 20px auto 0;
  border-top: 1px solid var(--rule);
  font-size: 13.5px; line-height: 1.7;
}
.entry-spec div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--rule);
}
.entry-spec dt { color: var(--navy); white-space: nowrap; }
.entry-spec dd { color: var(--muted); text-align: right; }

/* ---------- 表（会社概要など） ---------- */
.table-wrap { max-width: 760px; margin: 0 auto; }
.section .table-wrap { margin-top: clamp(40px, 5vw, 56px); }
.table-gap { margin-top: clamp(56px, 7vw, 88px); }
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  text-align: left;
}
.info-table th, .info-table td {
  padding: 22px 8px;
  vertical-align: top;
  font-weight: 500;
}
.info-table tr + tr th, .info-table tr + tr td { border-top: 1px solid var(--rule); }
.info-table th {
  width: 12em;
  color: var(--navy);
  font-family: var(--mincho); font-weight: 600;
  letter-spacing: .1em;
}
.tbd { color: var(--muted); }

/* ---------- サテライトオフィス ---------- */
.wide { max-width: 1160px; margin: 0 auto; }

/* ---------- お問い合わせ ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 960px;
  margin: 0 auto;
}
.contact-card {
  padding: clamp(44px, 5vw, 64px) clamp(24px, 4vw, 48px);
  background: var(--mist);
  border-top: 2px solid var(--lilac);
  text-align: center;
}
.contact-title { font-size: clamp(20px, 2vw, 24px); letter-spacing: .16em; line-height: 1.6; }
.contact-text { margin: 14px auto 0; max-width: 20em; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.btn-off {
  width: 100%; max-width: 320px;
  padding: 10px 20px;
  background: var(--white);
  border-color: var(--rule);
  color: var(--muted);
  font-size: 14px; letter-spacing: .08em;
  cursor: not-allowed;
}
.btn-off:hover { background: var(--white); }
.contact-note { margin-top: 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- フッター ---------- */
.site-footer {
  padding: clamp(64px, 8vw, 96px) var(--gutter) 28px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.site-footer :focus-visible { outline-color: var(--lilac); }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; padding: 4px; }
.footer-brand .brand-logo { height: 34px; }
.footer-biz {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px;
  margin-top: 16px;
  color: var(--lilac);
  font-size: 13px; letter-spacing: .12em;
}
.footer-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 clamp(6px, 1.8vw, 24px);
  margin-top: 32px;
}
.footer-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 8px;
  color: var(--white);
  font-size: 13px; letter-spacing: .1em;
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-meta {
  max-width: 1160px;
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(207, 196, 227, .3);
  color: var(--lilac);
  font-size: 12px; line-height: 1.9; letter-spacing: .06em;
}
.copy { margin-top: 4px; }
.copy small { font-size: 12px; }
.noscript { padding: 120px var(--gutter); text-align: center; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 800px) {
  body { font-size: 15px; }
  .trio { grid-template-columns: 1fr; gap: 64px; max-width: 440px; }
  .pair { grid-template-columns: 1fr; max-width: 520px; }
  .catalog { grid-template-columns: 1fr; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; max-width: 520px; }

  .band { display: block; padding: 0; }
  .band .img-slot[data-slot="satellite"] { position: relative; aspect-ratio: 4 / 3; }
  .band .img-slot[data-slot="satellite"] img { object-position: 50% 50%; }
  .hero { --veil: .54; }
  .band-panel { max-width: none; padding: 56px var(--gutter) 72px; }

  .hero-title { letter-spacing: .2em; padding-left: .2em; }
}

@media (max-width: 340px) {
  .header-inner .brand-logo { height: 24px; }
}

/* 事業名が1行に収まらない幅では、区切り線をやめて縦に並べる */
@media (max-width: 380px) {
  .hero-biz { flex-direction: column; align-items: center; gap: 2px; }
  .hero-biz li + li::before { display: none; }
}

@media (max-width: 400px) {
  .filters { gap: 6px; }
  .filter { padding: 0 13px; font-size: 13px; letter-spacing: .06em; }
}

@media (max-width: 600px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: auto; }
  .info-table th { padding: 18px 4px 0; }
  .info-table td { padding: 2px 4px 18px; }
  .info-table tr + tr td { border-top: 0; }
  .footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; max-width: 320px; margin-inline: auto; }
  .footer-nav a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !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(--navy); }
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; }

/* デモバーと上端固定ヘッダーの重なり回避 */
.site-header { top: var(--tt-bar-offset, 0px); }
@media (max-width: 800px) { #site-nav { top: calc(var(--hh) + var(--tt-bar-offset, 0px)); } }

/* ─── 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; } }
