/* 株式会社サンプル デモサイト 02「町家」
   煤竹の焦茶・胡粉の白・灰汁色・弁柄（ごく少量） */

:root {
  --susu: #2E231C;
  --susu-deep: #261D17;
  --susu-soft: #3A2E25;
  --slat: #211913;
  --gofun: #EFE9DE;
  --aku: #A89F91;
  --bengara: #8E3B24;
  --ink2: #5F554B;
  --rule-light: #CDC4B6;
  --line: rgba(239, 233, 222, .16);
  --line-strong: rgba(239, 233, 222, .34);

  --mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "BIZ UDMincho", serif;
  --gothic: "Yu Gothic Medium", "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--susu-deep);
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--susu);
  color: var(--gofun);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
p { margin: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
main:focus { outline: none; }

.nb { display: inline-block; }

/* 縦書きの見出し */
.v {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  font-family: var(--mincho);
  font-weight: 600;
  margin: 0;
}

/* 弁柄の小さな印（縦書き見出しの頭） */
.v-mark { position: relative; padding-top: 30px; }
.v-mark::before {
  content: "";
  position: absolute;
  top: 0;
  right: calc(var(--lh, 1.4) * .5em - 5px);
  width: 10px;
  height: 10px;
  background: var(--bengara);
}

/* ---------- 本文へ移動・デモ表記 ---------- */

.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--gofun);
  color: var(--susu);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.demo-bar {
  padding: 5px var(--gutter);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-align: center;
  color: var(--aku);
  background: var(--susu-deep);
  border-bottom: 1px solid var(--line);
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--susu-deep);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  flex: none;
}

.seal {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--bengara);
  color: var(--gofun);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .02em;
  outline: 1px solid rgba(239, 233, 222, .55);
  outline-offset: -5px;
}

.brand-name { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand-main { font-family: var(--mincho); font-weight: 600; font-size: 17px; letter-spacing: .16em; }
.brand-sub { font-size: 12px; letter-spacing: .12em; color: var(--aku); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 4px 0 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .1em;
}
.menu-label { white-space: nowrap; }
.menu-icon { display: inline-flex; gap: 5px; height: 20px; }
.menu-icon i { display: block; width: 2px; height: 100%; background: currentColor; }
.menu-icon i:nth-child(2) { height: 70%; align-self: flex-end; }
.menu-open .menu-icon i:nth-child(2) { height: 100%; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-family: var(--mincho); }
.nav-note { display: none; }
#site-nav .doors { display: none; }

@media (min-width: 801px) {
  .nav-list { display: flex; }
  .nav-list a {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--header-h);
    padding: 0 clamp(8px, 1.05vw, 18px);
    font-size: 14px;
    letter-spacing: .1em;
    white-space: nowrap;
    color: rgba(239, 233, 222, .78);
  }
  .nav-list a:hover { color: var(--gofun); }
  .nav-list a[aria-current="page"] { color: var(--gofun); }
  .nav-list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: clamp(8px, 1.05vw, 18px);
    right: clamp(8px, 1.05vw, 18px);
    bottom: 16px;
    height: 1px;
    background: var(--gofun);
  }
  .nav-list a:focus-visible { outline-offset: -8px; }
}

@media (min-width: 801px) and (max-width: 1020px) {
  .brand-sub { display: none; }
  .nav-list a { font-size: 13px; letter-spacing: .06em; }
}

/* ---------- 格子（千本格子・子持ち） ---------- */

.koshi {
  --pitch: 18px;
  --w: 6px;
  --c: var(--slat);
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  background: repeating-linear-gradient(90deg, var(--c) 0 var(--w), transparent var(--w) var(--pitch));
  border-top: 16px solid var(--c);
  border-bottom: 10px solid var(--c);
}
.koshi::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  height: 5px;
  background: var(--c);
}
.koshi::after {
  --mid: calc(var(--w) + (var(--pitch) - var(--w)) / 2);
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  bottom: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 calc(var(--mid) - 1px),
    var(--c) calc(var(--mid) - 1px) calc(var(--mid) + 1px),
    transparent calc(var(--mid) + 1px) var(--pitch));
}
.koshi-r { right: 0; width: 22%; border-left: 12px solid var(--c); }
.koshi-l { left: 0; width: 16%; border-right: 12px solid var(--c); }

/* ---------- 格子戸（メニュー・初回表示） ---------- */

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-color: #5E4E41;
  background-image: repeating-linear-gradient(90deg, var(--slat) 0 8px, transparent 8px 20px);
  border: 18px solid var(--slat);
}
.door::before,
.door::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--slat);
}
.door::before { top: 26%; }
.door::after { top: 64%; }
.door-l { left: 0; border-right-width: 12px; }
.door-r { right: 0; border-left-width: 12px; }

@keyframes door-open-l { from { transform: translateX(0); } to { transform: translateX(-101%); } }
@keyframes door-open-r { from { transform: translateX(0); } to { transform: translateX(101%); } }
@keyframes seal-out { to { opacity: 0; } }

.intro {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow: hidden;
  pointer-events: none;
}
.intro .door { border-width: 28px; background-image: repeating-linear-gradient(90deg, var(--slat) 0 12px, transparent 12px 30px); }
.intro .door-l { border-right-width: 16px; animation: door-open-l 1.3s cubic-bezier(.72, 0, .2, 1) .5s forwards; }
.intro .door-r { border-left-width: 16px; animation: door-open-r 1.3s cubic-bezier(.72, 0, .2, 1) .5s forwards; }
.intro-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  font-size: 20px;
  outline-offset: -7px;
  animation: seal-out .35s ease .3s forwards;
}

/* ---------- 共通レイアウト ---------- */

main { display: block; min-height: 60vh; }
main[data-tone="light"] { background: var(--gofun); color: var(--susu); }

.page { padding-bottom: clamp(80px, 10vw, 150px); }
.page-top { padding-bottom: 0; }

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

.noscript { padding: 48px var(--gutter); }

/* ページの頭：右に縦書き見出し、格子、左に短い導入 */
.page-head {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 9vw, 150px) auto;
  align-items: end;
  column-gap: clamp(24px, 3.4vw, 56px);
  padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 104px);
}
.page-title {
  --lh: 1.3;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: var(--lh);
  letter-spacing: .18em;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line-strong);
}
.page-head-koshi { grid-column: 2; grid-row: 1; align-self: stretch; position: relative; }
.page-head-koshi .koshi { left: 0; right: 0; --c: rgba(239, 233, 222, .2); --w: 2px; --pitch: 12px; border-top-width: 1px; border-bottom-width: 1px; }
.page-lead {
  grid-column: 1;
  grid-row: 1;
  max-width: 24em;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 2.1;
}

main[data-tone="light"] .page-title { border-left-color: var(--rule-light); }
main[data-tone="light"] .page-head-koshi .koshi { --c: rgba(46, 35, 28, .22); }

/* 区画（右に縦書き見出し） */
.bay {
  --w: 1240px;
  width: min(var(--w), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(28px, 4.4vw, 80px);
  align-items: start;
}
.bay-title {
  --lh: 1.4;
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: var(--lh);
  letter-spacing: .2em;
  padding-left: clamp(14px, 1.6vw, 24px);
  border-left: 1px solid var(--line-strong);
}
main[data-tone="light"] .bay-title,
.lit .bay-title { border-left-color: var(--rule-light); }
.bay-body { grid-column: 1; grid-row: 1; min-width: 0; }
.bay-text { max-width: 30em; margin-top: 28px; }
.bay-text p + .link { margin-top: 14px; }
.bay-link { margin-top: 28px; }

/* 通り庭のように奥へ行くほど少しずつ狭まる */
.depth-1 { --w: 1180px; }
.depth-2 { --w: 1080px; }
.depth-3 { --w: 980px; }
.depth-4 { --w: 900px; }

/* 敷居：格子の間を抜ける仕切り */
.threshold {
  --w: 1240px;
  position: relative;
  width: min(var(--w), calc(100% - 2 * var(--gutter)));
  height: 34px;
  margin: clamp(72px, 9vw, 128px) auto;
  border-top: 1px solid var(--line);
}
.threshold::before,
.threshold::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 0;
  width: calc(50% - clamp(36px, 5vw, 80px));
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 9px);
}
.threshold::before { left: 0; }
.threshold::after { right: 0; }
main[data-tone="light"] .threshold { border-top-color: var(--rule-light); }
main[data-tone="light"] .threshold::before,
main[data-tone="light"] .threshold::after { background: repeating-linear-gradient(90deg, var(--rule-light) 0 1px, transparent 1px 9px); }

/* リンク（矢印なし・下線） */
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .1em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 9px;
}
.link:hover { text-decoration-color: var(--aku); }
.link-inline { min-height: 44px; font-size: 15px; }

.pending { color: var(--aku); }
main[data-tone="light"] .pending,
.lit .pending { color: var(--ink2); }

.note { margin-top: 40px; font-size: 14px; color: var(--aku); }
main[data-tone="light"] .note { color: var(--ink2); }

.page-foot {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin: clamp(80px, 9vw, 128px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}
.page-foot p { font-family: var(--mincho); font-size: 18px; letter-spacing: .08em; }

/* ---------- 写真・動画の枠 ---------- */

.frame { position: relative; margin: 0; overflow: hidden; background: var(--susu-soft); }
.frame .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame img.art { display: block; max-width: none; object-fit: cover; object-position: 50% 50%; }
.frame-court img.art { object-position: 50% 62%; }
.frame-wide img.art { object-position: 50% 64%; }
.ph {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  max-width: 100%;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--gofun);
  background: rgba(38, 29, 23, .92);
}
.sample-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  background: var(--gofun);
  color: var(--susu);
}

.frame-court { aspect-ratio: 16 / 8; }
.frame-room { aspect-ratio: 16 / 7; }
.frame-wide { aspect-ratio: 16 / 7; }
.frame-wide .koshi-l, .frame-wide .koshi-r { width: 10%; }
.frame-court .koshi-r { width: 12%; }

/* ---------- TOP ---------- */

.hero {
  width: min(1320px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(28px, 4.6vw, 84px);
  padding-top: clamp(24px, 3.4vw, 48px);
}
.frame-hero { height: clamp(460px, 52vw, 760px); }
.frame-hero .koshi-r { width: 12%; }

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.catch {
  --lh: 1.8;
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: var(--lh);
  letter-spacing: .16em;
}
.catch-line { display: block; }
.catch-line + .catch-line { padding-top: 3.2em; }
.hero-lead { width: 14.5em; font-size: 15px; line-height: 2.05; }

.trio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row-reverse;
  border-right: 1px solid var(--line);
}
.trio li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  min-height: 360px;
  padding: 8px clamp(18px, 2.2vw, 36px) 4px;
  border-left: 1px solid var(--line);
}
.trio-title { --lh: 1.5; font-size: clamp(24px, 2.2vw, 30px); line-height: var(--lh); letter-spacing: .18em; }
.trio-title span { display: block; }
.trio p { align-self: stretch; font-size: 15px; line-height: 2; }

.lit {
  margin-top: clamp(96px, 11vw, 160px);
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--gofun);
  color: var(--susu);
}
.lit-lead { font-family: var(--mincho); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: .08em; line-height: 1.8; margin-bottom: 32px; }

/* 仮のボタン（無効） */
.pending-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.btn-pending {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 72px;
  padding: 12px 22px;
  background: transparent;
  border: 1px dashed currentColor;
  color: var(--aku);
  text-align: left;
  cursor: not-allowed;
}
.btn-pending .k { font-family: var(--mincho); font-weight: 600; font-size: 19px; letter-spacing: .1em; color: var(--gofun); line-height: 1.5; }
.btn-pending .s { font-size: 13px; line-height: 1.6; }
.lit .btn-pending,
main[data-tone="light"] .btn-pending { color: var(--ink2); }
.lit .btn-pending .k,
main[data-tone="light"] .btn-pending .k { color: var(--susu); }

/* ---------- 物件・施工事例 ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(36px, 4vw, 56px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; }
.filter-btn {
  min-height: 48px;
  padding: 0 24px;
  margin-left: -1px;
  background: transparent;
  border: 1px solid var(--line-strong);
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--gofun); position: relative; }
.filter-btn[aria-pressed="true"] { background: var(--gofun); color: var(--susu); border-color: var(--gofun); position: relative; }
.filter-btn:focus-visible { position: relative; z-index: 1; outline-color: var(--gofun); }
.filter-status { font-size: 13px; color: var(--aku); }

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 80px) clamp(20px, 2.6vw, 40px);
  direction: rtl;
}
.works > li { direction: ltr; min-width: 0; }
.frame-work { aspect-ratio: 4 / 5; }
.frame-work .koshi-r { width: 26%; }
.work-body { padding-top: 18px; }
.work-kind { font-size: 13px; letter-spacing: .12em; color: var(--aku); }
.work-title { margin: 2px 0 12px; font-family: var(--mincho); font-weight: 600; font-size: 19px; letter-spacing: .08em; line-height: 1.6; }
.work-title-pending { display: inline-block; font-size: 14px; color: var(--aku); font-weight: 500; }

.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.spec dt { color: var(--gofun); }
.spec dd { margin: 0; }
main[data-tone="light"] .spec { border-top-color: var(--rule-light); }
main[data-tone="light"] .spec > div { border-bottom-color: var(--rule-light); }
main[data-tone="light"] .spec dt { color: var(--susu); }

/* ---------- 事業紹介：暖簾 ---------- */

.noren-wrap {
  position: relative;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-top: 30px;
}
.noren-rod {
  position: absolute;
  top: 0;
  left: -10px;
  right: -10px;
  height: 8px;
  z-index: 2;
  background: var(--aku);
}
.noren {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
}
.noren-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: clamp(540px, 48vw, 660px);
  padding: 64px clamp(20px, 2.4vw, 40px) 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  background: var(--susu-soft);
}
/* 竿を通す乳（ち） */
.noren-panel::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 14%;
  right: 14%;
  height: 26px;
  border-left: 18px solid var(--susu-soft);
  border-right: 18px solid var(--susu-soft);
}
/* 上端の折り返し */
.noren-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #33281F;
  border-bottom: 1px solid var(--line);
}
.noren-title { --lh: 1.45; font-size: clamp(30px, 2.8vw, 40px); line-height: var(--lh); letter-spacing: .2em; }
.noren-title span { display: block; }
.noren-title span + span { padding-top: 1.2em; }
.noren-body { align-self: stretch; }
.noren-kind { margin-bottom: 10px; font-family: var(--mincho); font-weight: 600; font-size: 14px; letter-spacing: .14em; color: var(--aku); }
.noren-body p:not(.noren-kind):not(.noren-note) { font-size: 15px; line-height: 2; }
.noren-note { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- 会社概要 ---------- */

.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule-light); }
.info-table th,
.info-table td { padding: 22px 0; border-bottom: 1px solid var(--rule-light); text-align: left; vertical-align: top; line-height: 1.9; }
.info-table th { width: 11em; padding-right: 24px; font-family: var(--mincho); font-weight: 600; letter-spacing: .12em; }
.plain { list-style: none; margin: 0; padding: 0; }

.portrait { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.frame-portrait { aspect-ratio: 4 / 5; }
.portrait-name { margin-bottom: 12px; font-family: var(--mincho); font-weight: 600; font-size: 20px; letter-spacing: .12em; }

/* ---------- サテライトオフィス ---------- */

.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.spec-large > div { padding: 16px 0; font-size: 15px; }
.map-ph { position: relative; min-height: 280px; border: 1px solid var(--line-strong); overflow: hidden; display: grid; place-items: center; }
.map-ph .koshi { left: 0; right: 0; --c: rgba(239, 233, 222, .07); --w: 1px; --pitch: 22px; border: 0; }
.map-ph p { position: relative; z-index: 3; padding: 6px 12px; font-size: 13px; background: var(--susu); color: var(--gofun); }

/* ---------- お問い合わせ ---------- */

.contact-doors { display: flex; flex-direction: row-reverse; gap: clamp(16px, 2.4vw, 32px); }
.contact-door {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: calc(clamp(28px, 3.4vw, 52px) + 14px) clamp(22px, 3.4vw, 52px) clamp(28px, 3.4vw, 52px);
  border: 1px solid var(--rule-light);
}
.contact-door::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--susu) 0 2px, transparent 2px 9px);
  opacity: .5;
}
.contact-door h2 { margin: 0; font-family: var(--mincho); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: .14em; line-height: 1.4; }
.contact-door > p { font-size: 15px; }
.contact-door .btn-pending { margin-top: auto; }

/* ---------- 404 ---------- */

.page-notfound .wrap { margin-top: 8px; }
.page-notfound .page-title { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: .12em; }

/* ---------- フッター ---------- */

.site-footer { background: var(--susu-deep); border-top: 1px solid var(--line); padding-block: 48px 28px; }
.footer-inner {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; text-decoration: none; color: rgba(239, 233, 222, .82); }
.footer-nav a:hover { color: var(--gofun); text-decoration: underline; text-underline-offset: 6px; }
.footer-nav a[aria-current="page"] { color: var(--gofun); text-decoration: underline; text-underline-offset: 6px; }
.footer-note {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--aku);
}

/* ---------- タブレット ---------- */

@media (max-width: 1080px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .works { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- スマートフォン（800px以下） ---------- */

@media (max-width: 800px) {
  :root { --header-h: 56px; }

  body { font-size: 15px; }

  .menu-toggle { display: inline-flex; }

  #site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: calc(var(--header-h) + 32px) 16px 32px;
    background: var(--susu-deep);
    overflow: hidden;
  }
  .menu-open #site-nav { display: flex; }
  .menu-open body { overflow: hidden; }

  .nav-list {
    writing-mode: vertical-rl;
    height: min(58vh, 400px);
    min-height: 240px;
  }
  .nav-list li + li { border-right: 1px solid var(--line); }
  .nav-list a {
    position: relative;
    display: block;
    height: 100%;
    padding: 22px 10px 12px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .22em;
    white-space: nowrap;
  }
  .nav-list a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    background: var(--gofun);
  }
  .nav-note { display: block; font-size: 13px; color: var(--aku); text-align: center; }

  #site-nav .doors { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .menu-open #site-nav .door-l { animation: door-open-l .95s cubic-bezier(.72, 0, .22, 1) .06s both; }
  .menu-open #site-nav .door-r { animation: door-open-r .95s cubic-bezier(.72, 0, .22, 1) .06s both; }

  .brand-main { font-size: 16px; }
  .seal { width: 32px; height: 32px; font-size: 12px; }

  /* ページの頭 */
  .page-head {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
    padding-block: 40px 56px;
  }
  .page-head-koshi { display: none; }
  .page-title { grid-column: 2; font-size: 30px; letter-spacing: .14em; padding-left: 14px; }
  .page-lead { font-size: 15px; line-height: 2; }

  /* 区画は1カラム・見出しは横書き */
  .bay { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .bay-title,
  .bay-body { grid-column: 1; grid-row: auto; }
  .bay-title {
    writing-mode: horizontal-tb;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-left: 0;
    font-size: 22px;
    letter-spacing: .14em;
  }
  .bay-title.v-mark::before { position: static; flex: none; }
  .bay-text { margin-top: 20px; }

  .threshold { margin-block: 64px; height: 28px; }

  /* TOP */
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "frame catch" "lead lead";
    column-gap: 18px;
    row-gap: 28px;
    padding-top: 20px;
  }
  .hero-copy { display: contents; }
  .frame-hero { grid-area: frame; height: clamp(360px, 108vw, 520px); }
  .frame-hero .koshi-r { width: 16%; }
  .catch { grid-area: catch; font-size: 28px; letter-spacing: .12em; }
  .catch-line + .catch-line { padding-top: 2.2em; }
  .hero-lead { grid-area: lead; width: auto; font-size: 15px; }

  .trio { flex-direction: column; border-right: 0; border-top: 1px solid var(--line); }
  .trio li {
    flex: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    min-height: 0;
    padding: 20px 4px 20px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .trio-title { grid-column: 2; grid-row: 1; align-self: start; font-size: 22px; letter-spacing: .14em; }
  .trio p { grid-column: 1; grid-row: 1; }

  .frame-court { aspect-ratio: 4 / 3; }
  .frame-room { aspect-ratio: 4 / 3; }
  .frame-wide { aspect-ratio: 4 / 5; }
  .frame-court .koshi-l, .frame-court .koshi-r,
  .frame-wide .koshi-l, .frame-wide .koshi-r { width: 12%; }
  .ph { font-size: 11px; padding: 5px 9px; letter-spacing: .02em; }

  .lit { margin-top: 88px; padding-block: 64px; }
  .pending-actions { grid-template-columns: minmax(0, 1fr); }

  /* 物件・施工事例 */
  .toolbar { flex-direction: column; align-items: stretch; }
  .filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-btn { padding: 0 6px; letter-spacing: .04em; font-size: 14px; }
  .frame-work { aspect-ratio: 4 / 3; }

  /* 事業紹介：暖簾を縦に積む */
  .noren { flex-direction: column; gap: 8px; }
  .noren-panel {
    flex: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    min-height: 0;
    padding: 48px 18px 22px;
  }
  .noren-panel + .noren-panel::before { display: none; }
  .noren-panel + .noren-panel { padding-top: 24px; }
  .noren-panel + .noren-panel::after { display: none; }
  .noren-title { grid-column: 2; grid-row: 1; align-self: start; font-size: 26px; letter-spacing: .14em; }
  .noren-body { grid-column: 1; grid-row: 1; }

  /* 会社概要 */
  .info-table th,
  .info-table td { display: block; width: auto; }
  .info-table th { padding: 18px 0 2px; border-bottom: 0; }
  .info-table td { padding: 0 0 18px; }
  .portrait { grid-template-columns: minmax(0, 1fr); }
  .frame-portrait { aspect-ratio: 4 / 3; }

  /* サテライト */
  .office { grid-template-columns: minmax(0, 1fr); }
  .map-ph { min-height: 220px; }

  /* お問い合わせ */
  .contact-doors { flex-direction: column; }
  .contact-door { flex: none; }

  .page-foot { flex-direction: column; align-items: flex-start; }
  .page-foot p { font-size: 17px; }
}

@media (max-width: 360px) {
  .brand-sub { display: none; }
  .catch { font-size: 25px; }
  .page-title { font-size: 27px; }
  .brand-main { letter-spacing: .1em; }
  .nav-list a { padding-left: 9px; padding-right: 9px; letter-spacing: .16em; }
}

/* ---------- 動きを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .intro { display: none !important; }
  #site-nav .doors { display: 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(--bengara); }
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; } }
