/* 株式会社サンプル デモサイト 案01「製図」 */

:root {
  --paper: #E9EDEC;     /* トレーシングペーパー */
  --ink: #1B2A41;       /* 製図インク */
  --ink-2: #46566B;     /* 補助文字（地・白ともにAA以上） */
  --grid: #C9D3D6;      /* 方眼線 */
  --red: #C8102E;       /* 赤鉛筆（寸法・注記のみ） */
  --white: #FFFFFF;

  --font: Bahnschrift, "DIN Alternate", "BIZ UDPGothic", "BIZ UDゴシック", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: Bahnschrift, "DIN Alternate", "Arial Narrow", "BIZ UDPGothic", "BIZ UDゴシック", "Hiragino Sans", "Yu Gothic", sans-serif;

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

  --grid-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 24.5H120M0 48.5H120M0 72.5H120M0 96.5H120M24.5 0V120M48.5 0V120M72.5 0V120M96.5 0V120' stroke='%23C9D3D6' stroke-width='1' opacity='.45'/%3E%3Cpath d='M0 .5H120M.5 0V120' stroke='%23C9D3D6' stroke-width='1'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; letter-spacing: .03em; }
p { margin: 0; }

a { color: var(--ink); }

.nb { display: inline-block; }

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

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- スキップ・デモ表示 ---------- */

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 8px; }

.demo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--grid);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.demo-bar__mark {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--red);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
}
.brand__kk {
  margin-left: 4px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
  padding: 0 clamp(9px, 1.3vw, 18px);
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.site-nav a:hover .site-nav__name { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: clamp(9px, 1.3vw, 18px);
  right: clamp(9px, 1.3vw, 18px);
  bottom: -1px;
  height: 3px;
  background: var(--red);
}
.site-nav__no { display: none; }
.site-nav__item--top { display: none; }
.site-nav__item--contact a { padding-right: 0; }
.site-nav__item--contact a[aria-current="page"]::after { right: 0; }

.menu-toggle { display: none; }

@media (max-width: 800px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    margin-right: -8px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .menu-toggle__icon {
    position: relative;
    display: block;
    width: 24px;
    height: 12px;
  }
  .menu-toggle__icon span {
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform .2s ease, top .2s ease;
  }
  .menu-toggle__icon span:first-child { top: 0; }
  .menu-toggle__icon span:last-child { top: 10px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 5px; transform: rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }
  .site-header[data-open="true"] .site-nav { display: block; }

  .site-nav__list {
    display: block;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav__item--top { display: block; }
  .site-nav a,
  .site-nav__item--contact a {
    min-height: 56px;
    padding: 0 0 0 16px;
    border-bottom: 1px solid var(--grid);
    font-size: 16px;
    gap: 16px;
  }
  .site-nav__no {
    display: inline-block;
    min-width: 3.2em;
    font-family: var(--font-en);
    font-weight: 400;
    color: var(--ink-2);
    letter-spacing: .04em;
  }
  .site-nav a[aria-current="page"]::after,
  .site-nav__item--contact a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 14px;
    bottom: 14px;
    width: 3px;
    height: auto;
  }
  .site-nav a[aria-current="page"] .site-nav__no { color: var(--red); }
}

/* ---------- 共通部品 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 28px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover { background: #2B3E5C; }

.btn--off,
.btn--off:hover {
  background: var(--white);
  color: var(--ink-2);
  border: 1px dashed var(--ink-2);
  cursor: not-allowed;
  font-weight: 700;
  letter-spacing: .02em;
}
.btn__kind {
  padding-right: 12px;
  border-right: 1px solid var(--grid);
  color: var(--ink);
  font-weight: 700;
}
.btn--block { display: flex; width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.link:hover { text-decoration-thickness: 2px; }
.link--inline { min-height: 44px; font-size: 14px; }

.tbd { color: var(--ink-2); }

.sample {
  display: inline-block;
  margin-right: 10px;
  padding: 0 6px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
  vertical-align: 1px;
}

.note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-2);
}

/* 写真・動画の貼付枠 */
.frame { margin: 0; }
.frame__box {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  background: var(--white);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.frame__x {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.frame__x line {
  stroke: var(--grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.frame__tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 10px;
  background: var(--white);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
}
.frame__label {
  position: relative;
  max-width: calc(100% - 32px);
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--grid);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.frame__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, calc(-50% - 52px));
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}
.frame__play path { fill: var(--ink); stroke: none; }
.frame__cap {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.frame__box img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
.frame--photo .frame__box { background: var(--grid); }
.frame--small .frame__tag { font-size: 11px; padding: 2px 8px; }
.frame--small .frame__label { font-size: 13px; padding: 4px 10px; }

/* 小さな図面 */
.mini { margin: 0; }
.mini-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  background: var(--white) var(--grid-bg);
  background-size: 60px 60px;
  border: 1px solid var(--grid);
  padding: 8px;
  fill: none;
  stroke: var(--ink);
}
.mini figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .06em;
}
.ms-line { stroke-width: 2; }
.ms-bold { stroke-width: 3; }
.ms-thin { stroke-width: 1.1; }
.ms-axis { stroke-width: 1.2; stroke-dasharray: 12 3 2 3; }
.ms-fill { stroke-width: 2; fill: rgba(27, 42, 65, .08); }
.ms-solid { fill: var(--ink); stroke: none; }
.ms-t {
  fill: var(--ink-2);
  stroke: none;
  font-family: var(--font-en);
  font-size: 11px;
  text-anchor: middle;
}

/* ---------- セクション ---------- */

.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec--tight { padding-top: 0; }
.sec--first { padding-top: clamp(40px, 6vw, 72px); }
.band { padding-top: clamp(40px, 6vw, 80px); }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.sec-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}
.sec-title--solo {
  margin-bottom: clamp(20px, 2.6vw, 32px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.sec-lead {
  margin: -12px 0 28px;
  color: var(--ink-2);
}

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

.hero {
  padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 72px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.sheet-tag {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: clamp(24px, 3vw, 40px);
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 13px;
  line-height: 1;
}
.sheet-tag__no {
  padding: 8px 12px;
  border-right: 1px solid var(--ink);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .06em;
}
.sheet-tag__name { padding: 8px 12px; letter-spacing: .06em; }

.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.3;
  letter-spacing: .04em;
}
.hero__lead {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 30em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 2;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(28px, 3vw, 44px);
}

.plan-panel {
  position: relative;
  margin: 0;
  padding: clamp(12px, 2vw, 28px) clamp(12px, 2vw, 28px) clamp(48px, 5vw, 64px);
  background: var(--white) var(--grid-bg);
  border: 1px solid var(--ink);
}
.plan {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: square;
}
.plan text {
  fill: var(--ink);
  stroke: none;
  font-family: var(--font);
  text-anchor: middle;
  dominant-baseline: central;
}
.plan-axis line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 16 4 2 4; opacity: .55; stroke-linecap: butt; }
.plan-bubble circle { stroke: var(--ink); stroke-width: 1.4; fill: var(--white); }
.plan-bubble-t text { font-family: var(--font-en); font-size: 13px; font-weight: 700; }
.plan-wall-ext path { stroke-width: 7; }
.plan-wall-int path { stroke-width: 3.5; }
.plan-open path { stroke-width: 1.3; stroke-linecap: butt; }
.plan-fixture rect, .plan-fixture circle, .plan-fixture path { stroke-width: 1.1; stroke-linecap: butt; }
.plan-step { stroke-dasharray: 6 4; }
.plan-dim path { stroke: var(--red); stroke-width: 1.3; stroke-linecap: butt; }
.plan-label text { font-size: 15px; font-weight: 700; letter-spacing: .08em; }

.plan-panel__cap {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: flex;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1.4;
}
.plan-panel__cap span { padding: 8px 12px; }
.plan-panel__cap span + span { border-left: 1px solid var(--ink); color: var(--ink-2); }

/* 線画アニメーション（一度だけ） */
.plan .d {
  stroke-dasharray: 1.01 1.01;
  stroke-dashoffset: 1.01;
  animation: plan-draw .75s cubic-bezier(.55, .05, .25, 1) var(--d, 0s) both;
}
.plan .plan-step.d { animation-name: plan-fade; stroke-dasharray: 6 4; stroke-dashoffset: 0; }
.plan .f { animation: plan-fade .5s ease var(--d, 0s) both; }
@keyframes plan-draw {
  0% { stroke-dashoffset: 1.01; opacity: 0; }
  4% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes plan-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.plan.is-static .d,
.plan.is-static .f {
  animation: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 1;
}
.plan.is-static .plan-step { stroke-dasharray: 6 4; }

/* 事業（TOP） */
.biz-cols {
  --colgap: clamp(32px, 4.8vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--colgap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.biz-col { position: relative; }
.biz-col + .biz-col::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--colgap) / -2);
  width: 1px;
  background: var(--grid);
}
.biz-col__title {
  margin-top: 24px;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}
.biz-col p { margin-top: 8px; color: var(--ink-2); }

/* 物件・施工事例（TOP） */
.teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

/* お問い合わせ（TOP） */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--ink);
}
.cta__text {
  padding: clamp(24px, 3.5vw, 48px);
  border-right: 1px solid var(--ink);
}
.cta__text p { margin-top: 12px; }
.cta__text .link { margin-top: 12px; }
.cta__actions {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 3.5vw, 48px);
}

/* ---------- 下層ページ見出し ---------- */

.page-head { border-bottom: 1px solid var(--ink); }
.page-head__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 20px clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px);
}
.sheet {
  display: grid;
  min-width: 132px;
  background: var(--white);
  border: 1px solid var(--ink);
}
.sheet__label {
  padding: 6px 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
}
.sheet__no {
  padding: 6px 12px 8px;
  font-family: var(--font-en);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .03em;
}
.page-title { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.3; }
.page-lead { margin-top: 14px; color: var(--ink-2); max-width: 36em; }

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

.plist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.filter {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--ink);
  background: var(--white);
}
.filter__btn {
  min-height: 46px;
  padding: 0 20px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--ink);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.filter__btn:first-child { border-left: 0; }
.filter__btn:hover { background: var(--paper); }
.filter__btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.filter-status {
  margin: 14px 0 20px;
  font-size: 13px;
  color: var(--ink-2);
}

.plist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.plist__item {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(20px, 2.6vw, 32px);
  border-bottom: 1px solid var(--grid);
}
.plist__body { align-self: center; }
.plist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.kind {
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--grid);
  font-size: 14px;
  font-weight: 700;
}
.plist__title {
  margin-top: 8px;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
}
.plist__title .tbd { font-weight: 400; font-size: .8em; }
.plist__spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid var(--ink);
}
.plist__spec div { padding: 10px 16px 4px 0; }
.plist__spec div + div { padding-left: 16px; border-left: 1px solid var(--grid); }
.plist__spec dt { font-size: 12px; color: var(--ink-2); letter-spacing: .06em; }
.plist__spec dd { margin: 0; font-size: 14px; }

.plist__item--compare { display: block; }
.compare__head { max-width: 40em; }
.compare__note { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.compare__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--ink);
  background: var(--white);
}
.compare__col { margin: 0; padding: clamp(16px, 2.4vw, 28px); }
.compare__col + .compare__col { border-left: 1px solid var(--ink); }
.compare__drawing {
  background: var(--white) var(--grid-bg);
  background-size: 60px 60px;
  border: 1px solid var(--grid);
}
.cmp-svg { display: block; width: 100%; height: auto; fill: none; stroke: var(--ink); }
.cs-ext { stroke-width: 4; }
.cs-int { stroke-width: 2.2; }
.cs-thin { stroke-width: 1.1; }
.cs-rev { stroke: var(--red); stroke-width: 1.3; stroke-dasharray: 5 4; }
.cs-rev-tag { stroke: var(--red); stroke-width: 1.3; fill: var(--white); }
.compare__col > figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 12px 0 16px;
  font-size: 14px;
}
.compare__label { font-weight: 700; padding: 0 8px; border: 1px solid var(--ink); }
.rev-note { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 13px; }
.rev-mark {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--red);
}

/* ---------- 事業紹介 ---------- */

.biz-list { display: grid; gap: clamp(56px, 8vw, 104px); }
.biz-list > .note { margin-top: calc(-1 * clamp(24px, 5vw, 64px)); }
.biz {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.biz__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.biz__desc { margin-top: 16px; }
.biz__spec {
  margin: 28px 0 0;
  border-top: 1px solid var(--ink);
}
.biz__spec div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grid);
  font-size: 14px;
}
.biz__spec dt { color: var(--ink-2); }
.biz__spec dd { margin: 0; }
.mini--biz { margin-top: 32px; max-width: 280px; }

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

.spec-wrap { max-width: 920px; }
.spec {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 2px solid var(--ink);
}
.spec__cap {
  caption-side: bottom;
  padding-top: 10px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-2);
}
.spec th,
.spec td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--grid);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.spec th {
  width: 11em;
  border-right: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.message {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.message__photo { max-width: 340px; }
.message__placeholder {
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border: 1px dashed var(--ink-2);
  color: var(--ink-2);
}
.message__name {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
}
.message__role { margin-right: 14px; font-size: 13px; color: var(--ink-2); letter-spacing: .06em; }

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

.satellite {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.mapframe { margin: 0; }
.mapframe__box {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: var(--white) var(--grid-bg);
  border: 1px solid var(--ink);
}
.mapframe__label {
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--ink);
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
}
.mapframe__north {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 36px;
  height: 50px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
}
.mapframe__north .solid { fill: var(--ink); stroke: none; }
.mapframe__north text { fill: var(--ink); stroke: none; font-family: var(--font-en); font-size: 11px; font-weight: 700; text-anchor: middle; }
.mapframe__scale {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 10px;
  background: var(--white);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  font-size: 12px;
}

.info { margin: 0 0 16px; border-top: 1px solid var(--ink); }
.info div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grid);
}
.info dt { font-size: 14px; font-weight: 700; }
.info dd { margin: 0; }

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

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

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.contact__panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--ink);
}
.contact__title {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}
.info--panel { margin: 0 0 28px; border-top: 0; flex: 1; }
.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.topics li { padding: 18px 20px; font-weight: 700; }
.topics li + li { border-left: 1px solid var(--grid); }

/* ---------- フッター（表題欄） ---------- */

.site-footer {
  padding-block: clamp(48px, 6vw, 80px) 32px;
  border-top: 1px solid var(--ink);
}
.title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  background: var(--white);
  border: 2px solid var(--ink);
}
.tb-index {
  padding: 16px clamp(16px, 2.4vw, 28px) 20px;
  border-right: 1px solid var(--ink);
}
.tb-index__label { font-size: 12px; color: var(--ink-2); letter-spacing: .06em; }
.tb-index__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 2.4vw, 32px);
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.tb-index a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  border-bottom: 1px solid var(--grid);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.tb-index a:hover { text-decoration: underline; text-underline-offset: .35em; }
.tb-no { font-family: var(--font-en); color: var(--ink-2); min-width: 3em; letter-spacing: .04em; }
.tb-index a[aria-current="page"] { font-weight: 700; }
.tb-index a[aria-current="page"] .tb-no { color: var(--red); }

.tb-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.tb-cell {
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--ink);
}
.tb-cell--wide { grid-column: 1 / -1; }
.tb-cell--split { border-right: 1px solid var(--ink); }
.tb-cell--last { border-bottom: 0; }
.tb-cell dt { font-size: 11px; line-height: 1.5; color: var(--ink-2); letter-spacing: .06em; }
.tb-cell dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.tb-en { font-family: var(--font-en); letter-spacing: .04em; }

.footer-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-2);
}

.noscript { padding-block: 48px; }

/* ---------- レスポンシブ ---------- */

@media (max-width: 1024px) {
  .plist__item { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .plist__spec { grid-template-columns: 1fr; }
  .plist__spec div + div { padding-left: 0; border-left: 0; }
  .plist__spec div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--grid); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .biz,
  .satellite,
  .message,
  .title-block { grid-template-columns: minmax(0, 1fr); }
  .tb-index { border-right: 0; border-bottom: 1px solid var(--ink); }
  .message__photo { max-width: 360px; }
}

@media (max-width: 800px) {
  .biz-cols { grid-template-columns: minmax(0, 1fr); }
  .biz-col { padding: 28px 0; border-top: 1px solid var(--grid); }
  .biz-col:first-child { padding-top: 0; border-top: 0; }
  .biz-col + .biz-col::before { display: none; }
  .biz-col .mini { max-width: 360px; }
  .teaser,
  .pair,
  .contact,
  .compare__pair { grid-template-columns: minmax(0, 1fr); }
  .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--ink); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__text { border-right: 0; border-bottom: 1px solid var(--ink); }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .topics li + li { border-left: 0; border-top: 1px solid var(--grid); }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .page-head__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sheet { display: inline-grid; grid-template-columns: auto auto; justify-self: start; min-width: 0; }
  .sheet__label { display: flex; align-items: center; border-bottom: 0; border-right: 1px solid var(--ink); }
  .sheet__no { font-size: 20px; padding: 6px 12px; }
  .plist__item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .plist__photo { max-width: 100%; }
  .filter { width: 100%; }
  .filter__btn { flex: 1 1 0; padding: 0 8px; }
  .spec th,
  .spec td { display: block; width: auto; }
  .spec tr { display: block; border-bottom: 1px solid var(--grid); }
  .spec tr:last-child { border-bottom: 0; }
  .spec th { padding: 14px 16px 0; border-right: 0; border-bottom: 0; white-space: normal; color: var(--ink-2); font-size: 13px; }
  .spec td { padding: 2px 16px 14px; border-bottom: 0; }
  .tb-index__list { grid-template-columns: minmax(0, 1fr); }
  .info div,
  .biz__spec div,
  .plist__spec div { grid-template-columns: 6em minmax(0, 1fr); gap: 12px; }
  .plan-panel__cap { position: static; margin: 12px calc(-1 * clamp(12px, 2vw, 28px)) calc(-1 * clamp(48px, 5vw, 64px)); border-left: 0; border-right: 0; border-bottom: 0; }
  .plan-panel { padding-bottom: 48px; }
  .frame__play { width: 40px; height: 40px; transform: translate(-50%, calc(-50% - 38px)); }
  .band .frame__box { aspect-ratio: 3 / 2; }
  .btn__kind { padding-right: 10px; }
  .cta__actions .btn { flex-wrap: wrap; gap: 4px 10px; padding-inline: 16px; }
}

@media (max-width: 800px) {
  .teaser .frame:nth-child(3) { display: none; }
}

@media (max-width: 340px) {
  .brand__kk { display: none; }
  .brand__name { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .plan .d,
  .plan .f {
    animation: none !important;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .plan .plan-step { stroke-dasharray: 6 4; }
}

/* ─── モバイルメニュー：閉じる／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(--red); }
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; } }
