/* 株式会社サンプル デモサイト 10「ミッドナイト」
   ネイビー #1C2A4A と薄紫 #CFC4E3。夜の窓の明かりのように、写真を重ねて見せる。 */

:root {
  --navy: #1C2A4A;
  --deep: #121C33;
  --navy-2: #26365C;
  --lilac: #CFC4E3;
  --lilac-soft: #E3DCEF;
  --mist: #EEEAF5;
  --paper: #F4F2F8;
  --paper-2: rgba(244, 242, 248, .8);
  --line: rgba(207, 196, 227, .34);
  --line-dark: rgba(28, 42, 74, .22);
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --header-h: 64px;
  --font: "Hiragino Sans", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.ph { display: inline-block; }

.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(--lilac); outline-offset: 3px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--lilac); color: var(--navy);
  padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.noscript { padding: 40px var(--gutter); }

/* ---------- 共通の枠 ---------- */
.wrap {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { position: relative; overflow: hidden; }
.band-navy { background: var(--navy); }
.band-deep { background: var(--deep); }
.band-light { background: var(--mist); color: var(--navy); }

/* 薄紫の淡い光（背景に1〜2か所だけ） */
.glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(207, 196, 227, .34) 0%,
    rgba(207, 196, 227, .14) 38%,
    rgba(207, 196, 227, 0) 68%);
  filter: blur(18px);
}

/* ---------- デモ表示とヘッダー ---------- */
.demo-note {
  margin: 0;
  padding: 5px var(--gutter);
  background: var(--deep);
  color: var(--paper-2);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .04em;
  text-align: center;
  border-bottom: 1px solid rgba(207, 196, 227, .16);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 28, 51, .94);
  border-bottom: 1px solid rgba(207, 196, 227, .14);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}
.brand-logo { height: 32px; width: auto; }
.site-footer .brand-logo { height: 40px; }

#site-nav ul { display: flex; align-items: center; }
#site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--paper-2);
  transition: color .2s;
}
#site-nav a:hover { color: var(--paper); }
#site-nav a[aria-current="page"] { color: var(--paper); }
#site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--lilac);
}

.menu-toggle { display: none; }

@media (max-width: 1100px) and (min-width: 801px) {
  #site-nav a { padding-inline: 9px; font-size: 13px; }
  #site-nav a[aria-current="page"]::after { left: 9px; right: 9px; }
}

@media (max-width: 800px) {
  :root { --header-h: 60px; }
  .header-bar .brand-logo { height: 28px; }
  .menu-toggle {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 4px 0 12px;
    margin-right: -4px;
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: .08em;
  }
  .menu-label { white-space: nowrap; }
  .menu-icon { position: relative; width: 22px; height: 10px; flex: none; }
  .menu-icon span {
    position: absolute; left: 0; width: 100%; height: 1.5px;
    background: var(--paper);
    transition: transform .25s, top .25s;
  }
  .menu-icon span:first-child { top: 0; }
  .menu-icon span:last-child { top: 8.5px; }
  .menu-open .menu-icon span:first-child { top: 4.25px; transform: rotate(20deg); }
  .menu-open .menu-icon span:last-child { top: 4.25px; transform: rotate(-20deg); }

  #site-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    padding: calc(var(--header-h) + 36px) var(--gutter) 40px;
    background: var(--deep);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s, visibility .22s;
  }
  .menu-open #site-nav { visibility: visible; opacity: 1; }
  .menu-open body { overflow: hidden; }
  #site-nav ul { display: block; border-top: 1px solid var(--line); }
  #site-nav li { border-bottom: 1px solid var(--line); }
  #site-nav a {
    min-height: 60px;
    padding-inline: 0 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--paper);
  }
  #site-nav a[aria-current="page"]::after {
    left: auto; right: 0; bottom: auto; top: 50%;
    width: 28px; height: 2px;
  }
}

/* ---------- ボタン・リンク ---------- */
.btn-line, .btn-fill, .btn-off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  line-height: 1.5;
  text-align: center;
}
.btn-line {
  border: 1px solid var(--lilac);
  color: var(--paper);
  transition: background .2s, color .2s;
}
.btn-line:hover { background: var(--lilac); color: var(--navy); }
.btn-fill {
  background: var(--lilac);
  color: var(--navy);
  transition: background .2s;
}
.btn-fill:hover { background: var(--lilac-soft); }
.btn-off {
  width: 100%;
  border: 1px dashed rgba(207, 196, 227, .6);
  background: rgba(38, 54, 92, .5);
  color: var(--paper);
  cursor: not-allowed;
}

.tlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
  background: linear-gradient(var(--lilac), var(--lilac)) no-repeat 0 calc(100% - 9px) / 100% 1px;
  transition: background-size .25s;
}
.tlink:hover { background-size: 40% 1px; }
.tlink-dark { background-image: linear-gradient(var(--navy), var(--navy)); }

/* ---------- 写真 ---------- */
.img-slot { position: relative; }
.img-slot .frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--navy-2);
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot[data-slot="hero"] img { object-position: 50% 70%; }

/* 比率 */
.r-45 .frame { aspect-ratio: 4 / 5; }
.r-43 .frame { aspect-ratio: 4 / 3; }
.r-54 .frame { aspect-ratio: 5 / 4; }
.r-11 .frame { aspect-ratio: 1 / 1; }

/* 仮ビジュアル（写真差し込み前） */
.ph-visual {
  position: absolute; inset: 0; display: block;
  background:
    radial-gradient(circle at 70% 38%, rgba(207, 196, 227, .5) 0 3%, transparent 3.2%),
    radial-gradient(circle at 30% 30%, rgba(207, 196, 227, .22), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 18%, rgba(207, 196, 227, .12) 18% 19%),
    linear-gradient(160deg, #26365C 0%, #1C2A4A 55%, #121C33 100%);
}

.ai-tag {
  position: absolute;
  z-index: 2;
  right: 0; top: 0;
  padding: 3px 9px;
  background: rgba(18, 28, 51, .84);
  color: var(--paper);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge {
  position: absolute;
  left: 0; top: 0;
  padding: 5px 12px;
  background: var(--lilac);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lift { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
  .lift:hover { transform: translate3d(0, -6px, 0); z-index: 6; }
}

/* 文字の面（写真に食い込むときの読みやすさを確保） */
.panel { position: relative; z-index: 4; }
.band-navy .panel { background: var(--navy); }
.band-deep .panel { background: var(--deep); }

/* ---------- 見出し ---------- */
.sec-title {
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.sec-lead, .panel p, .o-text p {
  color: var(--paper);
}

/* ---------- TOP：ヒーロー ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 128px); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.hero-copy {
  position: relative;
  z-index: 5;
  grid-column: 1 / 9;
  grid-row: 1;
  padding-top: clamp(40px, 8vw, 132px);
  pointer-events: none;
}
.hero-copy a { pointer-events: auto; }
.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 7rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.hero-title .line { display: block; }
.hero-title .line-band {
  margin-top: .12em;
  margin-left: 1.6em;
}
.hero-title .line-band .ph {
  background: var(--lilac);
  color: var(--navy);
  padding: .02em .22em .06em .16em;
}
.hero-lead {
  max-width: 21em;
  margin-top: clamp(28px, 3.4vw, 48px);
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--paper);
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}

.collage {
  position: relative;
  grid-column: 5 / 13;
  grid-row: 1;
  aspect-ratio: 1 / .96;
}
.collage .c { position: absolute; }
.c1 { top: 0; right: 9%; width: 60%; z-index: 2; }
.c1 .frame { aspect-ratio: 4 / 5; }
.c1::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--line);
  z-index: -1;
}
.c2 { left: 0; top: 58%; width: 37%; z-index: 3; }
.c2 .frame { aspect-ratio: 1 / 1; }
.c3 { right: 0; top: 64%; width: 25%; z-index: 4; }
.c3 .frame { aspect-ratio: 3 / 4; }
.glow-hero { width: 70%; aspect-ratio: 1; left: 2%; top: -14%; }

.c1 { --fx: -34px; --fy: 26px; }
.c2 { --fx: 54px; --fy: -48px; }
.c3 { --fx: -60px; --fy: -54px; }
.hero.is-intro .c { animation: settle 1.2s cubic-bezier(.16, .84, .24, 1) both; }
.hero.is-intro .c2 { animation-duration: 1.1s; animation-delay: .1s; }
.hero.is-intro .c3 { animation-duration: 1s; animation-delay: .2s; }
.hero.is-intro .glow-hero { animation: glowin .9s ease-out .3s both; }
@keyframes settle {
  0% { opacity: 0; transform: translate3d(var(--fx), var(--fy), 0); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes glowin {
  0% { opacity: 0; transform: scale(.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- TOP：三つの事業 ---------- */
.trio-band { padding-block: clamp(80px, 10vw, 150px); }
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-lead { max-width: 22em; font-size: 15px; }
.trio { display: flex; align-items: flex-start; }
.trio-item { position: relative; width: 37%; }
.trio-item + .trio-item { margin-left: -5.5%; }
.t1 { z-index: 1; }
.t2 { z-index: 2; margin-top: clamp(60px, 9vw, 130px); }
.t3 { z-index: 3; margin-top: clamp(24px, 4vw, 56px); }
.trio-link { display: block; text-decoration: none; }
.trio .ai-tag { right: auto; left: 0; }
.trio-link .img-slot {
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.trio-name {
  display: block;
  width: fit-content;
  max-width: 82%;
  margin-top: -1.2em;
  margin-left: 20px;
  position: relative;
  z-index: 2;
  padding: 10px 18px 12px;
  background: var(--navy);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  border-left: 2px solid var(--lilac);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .trio-item:hover { z-index: 6; }
  .trio-link:hover .img-slot { transform: translate3d(0, -8px, 0); }
}

/* ---------- TOP：物件・施工事例 ---------- */
.feature { padding-block: clamp(80px, 10vw, 150px); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.f-big { grid-column: 4 / 13; grid-row: 1; }
.f-small { grid-column: 2 / 6; grid-row: 1; align-self: end; margin-bottom: -26%; z-index: 3; }
.f-text {
  grid-column: 1 / 6;
  grid-row: 1;
  align-self: start;
  margin-top: 6%;
  padding: 0 40px 36px 0;
}
.f-text .sec-title { margin-bottom: 20px; }
.f-text p { margin-bottom: 28px; font-size: 15px; }

/* ---------- TOP：サテライト ---------- */
.office { padding-block: clamp(100px, 12vw, 180px) clamp(80px, 10vw, 140px); }
.office-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.o-photo { grid-column: 1 / 7; isolation: isolate; }
.o-photo::after {
  content: "";
  position: absolute;
  inset: -20px 20px 20px -20px;
  border: 1px solid var(--line);
  z-index: -1;
}
.o-text { grid-column: 8 / 13; }
.o-text .sec-title { margin-bottom: 18px; }
.o-text p { margin-bottom: 20px; font-size: 15px; }

/* ---------- TOP：お問い合わせ ---------- */
.cta { padding-block: clamp(90px, 11vw, 160px); }
.glow-cta { width: 46%; aspect-ratio: 1; right: -8%; top: -40%; }
.cta-inner {
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px 48px;
}
.cta-title {
  max-width: 13em;
  font-size: clamp(1.9rem, 4.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}

/* ---------- 下層ページの見出し ---------- */
.phead { padding-block: clamp(64px, 9vw, 132px) clamp(56px, 7vw, 100px); }
.phead .wrap { z-index: 1; }
.glow-head { width: min(52vw, 640px); aspect-ratio: 1; right: -10%; top: -46%; }
.phead-title {
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.phead-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: clamp(24px, 3vw, 40px);
  background: var(--lilac);
}
.phead-lead {
  max-width: 30em;
  margin-top: 22px;
  font-size: clamp(15px, 1.2vw, 17px);
}

/* ---------- 事業紹介 ---------- */
.biz { padding-block: clamp(80px, 10vw, 160px) clamp(110px, 13vw, 200px); }
.biz-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.b-big { grid-column: 1 / 9; grid-row: 1; }
.b-small { grid-column: 5 / 8; grid-row: 1; align-self: end; margin-bottom: -20%; z-index: 3; }
.biz:not(.is-rev) .b-big .ai-tag { right: auto; left: 0; }
.b-text {
  grid-column: 8 / 13;
  grid-row: 1;
  align-self: start;
  margin-top: 9%;
  padding: 36px 0 40px 44px;
}
.biz.is-rev .b-big { grid-column: 5 / 13; }
.biz.is-rev .b-small { grid-column: 6 / 9; }
.biz.is-rev .b-text { grid-column: 1 / 6; padding: 36px 44px 40px 0; }
.biz-title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.b-text p { margin-bottom: 26px; }

.facts > div {
  display: grid;
  grid-template-columns: minmax(6.5em, auto) 1fr;
  gap: 4px 20px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--paper-2); }
.facts dd { color: var(--paper); }
.b-text .facts > div { grid-template-columns: 1fr; }

.next { padding-block: clamp(64px, 8vw, 110px); }
.next-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.next-text { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.6; }

/* ---------- 物件・施工事例 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.filters button {
  min-height: 44px;
  padding: 8px 22px;
  background: transparent;
  border: 1px solid rgba(207, 196, 227, .55);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.filters button:hover { border-color: var(--lilac); }
.filters button[aria-pressed="true"] { background: var(--lilac); color: var(--navy); font-weight: 700; }
.filter-status { margin-top: 14px; font-size: 13px; color: var(--paper-2); }

.works-band { padding-block: clamp(64px, 8vw, 120px) clamp(100px, 12vw, 180px); }
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: start;
}
.work.is-shift { margin-top: clamp(80px, 12vw, 180px); }
.work-body {
  width: 84%;
  margin-top: -64px;
  margin-left: auto;
  padding: 28px 0 0 32px;
}
.work-kind { font-size: 13px; color: var(--paper-2); letter-spacing: .08em; }
.work-title { margin: 6px 0 16px; font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.4; }

/* ---------- 会社概要（明るい地に反転） ---------- */
.company { padding-block: clamp(72px, 9vw, 140px); }
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.rep { padding-top: 6px; border-top: 2px solid var(--navy); }
.rep-role { margin-top: 18px; font-size: 13px; letter-spacing: .1em; color: var(--navy-2); }
.rep-name { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.rep-note { margin-top: 14px; font-size: 14px; color: var(--navy-2); }
.spec > div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 4px 28px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.spec > div:first-child { border-top: 1px solid var(--line-dark); }
.spec dt { font-weight: 700; font-size: 14px; line-height: 1.9; }
.spec dd { font-size: 15px; line-height: 1.9; }
.spec dd.tbd { color: var(--navy-2); }
.band-light :focus-visible { outline-color: var(--navy); }

/* ---------- サテライトオフィス ---------- */
.satellite { padding-block: clamp(64px, 8vw, 120px) clamp(90px, 11vw, 160px); }
.satellite-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: clamp(48px, 6vw, 88px);
  align-items: start;
}
.k-photo { grid-column: 1 / 9; grid-row: 1; }
.k-text {
  grid-column: 8 / 13;
  grid-row: 1;
  align-self: end;
  margin-bottom: -10%;
  padding: 36px 0 36px 40px;
}
.k-text .sec-title { margin-bottom: 22px; }
.k-note { margin-top: 18px; font-size: 13px; color: var(--paper-2); }
.map-slot {
  grid-column: 8 / 13;
  margin-top: 12%;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 3 / 2;
  border: 1px dashed rgba(207, 196, 227, .5);
  color: var(--paper-2);
  font-size: 14px;
  text-align: center;
}
.map-slot span:first-child { font-size: 18px; font-weight: 700; color: var(--paper); }

/* ---------- お問い合わせ ---------- */
.contact { padding-block: clamp(64px, 8vw, 120px) clamp(90px, 11vw, 160px); }
.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px clamp(40px, 7vw, 120px);
}
.channel { padding-top: 28px; border-top: 2px solid var(--lilac); }
.channel-title {
  margin-bottom: 26px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.channel .facts { margin-bottom: 32px; }

.nf-links { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 36px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--deep); border-top: 1px solid rgba(207, 196, 227, .16); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 48px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 56px var(--gutter) 40px;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 26px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--paper-2);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--paper); }
.footer-notes {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(207, 196, 227, .16);
  font-size: 12px;
  line-height: 1.8;
  color: var(--paper-2);
}
.footer-notes .copy { margin-top: 8px; }

/* ---------- 中間幅 ---------- */
@media (max-width: 1024px) {
  .hero-copy { grid-column: 1 / 10; }
  .collage { grid-column: 4 / 13; }
  .hero-title .line-band { margin-left: 1em; }
}

/* ---------- スマホ・タブレット縦（1カラム、重なりを弱める） ---------- */
@media (max-width: 800px) {
  body { font-size: 15px; line-height: 1.85; }

  .hero { padding-block: 32px 72px; }
  .hero-grid, .feature-grid, .office-grid, .biz-grid, .satellite-grid { display: block; }
  .hero-copy { padding-top: 16px; pointer-events: auto; }
  .hero-title { font-size: clamp(2.5rem, 13vw, 4.4rem); }
  .hero-title .line-band { margin-left: .7em; }
  .hero-links { gap: 12px 28px; }
  .collage { margin-top: 40px; aspect-ratio: 1 / 1.08; }
  .c1 { right: 0; width: 76%; }
  .c1::before { inset: 14px -14px -14px 14px; }
  .c2 { top: 60%; width: 46%; }
  .c3 { display: none; }
  .glow-hero { width: 90%; left: -10%; top: -12%; }

  .sec-head { display: block; }
  .sec-lead { margin-top: 12px; }
  .trio { display: block; }
  .trio-item { width: auto; }
  .trio-item + .trio-item { margin-left: 0; }
  .t1 { margin-right: 14%; }
  .t2 { margin: 36px 0 0 14%; }
  .t3 { margin: 36px 14% 0 0; }
  .trio-item .frame { aspect-ratio: 5 / 4; }

  .f-small { width: 52%; margin: -18% 0 0 auto; }
  .f-big { margin-right: 10%; }
  .f-text { margin-top: 32px; padding: 0; }

  .o-photo { margin: 20px 0 0 20px; }
  .o-photo::after { inset: -14px 14px 14px -14px; }
  .o-text { margin-top: 36px; }

  .biz { padding-block: 64px 72px; }
  .b-big { margin-right: 12%; }
  .b-small { width: 50%; margin: -24% 0 0 auto; }
  .biz.is-rev .b-big { margin: 0 0 0 12%; }
  .biz.is-rev .b-small { margin: -24% auto 0 0; }
  .b-text, .biz.is-rev .b-text { margin-top: 28px; padding: 0; }

  .works { grid-template-columns: 1fr; gap: 64px; }
  .work.is-shift { margin-top: 0; }
  .work-body { width: 90%; margin-top: -40px; padding: 22px 0 0 22px; }

  .company-grid { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; padding-block: 16px; }

  .k-text { margin: 0; padding: 28px 0 0; }
  .map-slot { margin-top: 48px; }
  .b-small { width: 50%; }

  .channels { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; padding-top: 44px; }
  .footer-nav { justify-content: flex-start; gap: 0 22px; }

  .glow-cta { width: 90%; right: -40%; top: -30%; }
  .glow-head { width: 90vw; right: -40%; top: -30%; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 2.35rem; }
  .btn-line, .btn-fill { padding-inline: 20px; }
  .ai-tag { font-size: 10px; padding: 2px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero.is-intro .c, .hero.is-intro .glow-hero { animation: 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(--lilac); }
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; }

/* 語が長くなった分の補正（801〜960px） */
@media (min-width: 801px) and (max-width: 960px) { #site-nav a { padding-inline: 6px; letter-spacing: .02em; } #site-nav a[aria-current="page"]::after { left: 6px; right: 6px; } }

/* ─── 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; } }
