@charset "UTF-8";

/* =========================================================
   椿工務店 — 「墨と椿」
   藍(職人の作業着) / 椿(社名) / 生成りの紙 を軸にした配色。
   構造のモチーフは大工の図面(断面図・寸法線・表題欄)。
   ========================================================= */

:root {
  /* 色 */
  --indigo:      #17283f;
  --indigo-deep: #0e1b2c;
  --indigo-soft: #2d4664;
  --tsubaki:     #a82430;
  --tsubaki-hi:  #c22c3a;
  --tsubaki-dim: #e4737c;
  --hinoki:      #c9a882;
  --paper:       #f8f4ec;
  --paper-2:     #ede7da;
  --ink:         #1a1f26;
  --ink-2:       #5c6470;
  --rule:        #d5cdbe;
  --rule-dark:   #b3aa99;

  /* 書体 */
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono:   "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* 寸法 */
  --gut: 24px;
  --wrap: 1140px;
  --head-h: 76px;
  --sec-pad: clamp(72px, 8vw, 118px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 17px;
  line-height: 2;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.5; }
p, dl, dd, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }

:focus-visible { outline: 3px solid var(--tsubaki); outline-offset: 3px; }

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

section { padding: var(--sec-pad) 0; scroll-margin-top: var(--head-h); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--tsubaki); color: #fff; padding: 10px 18px;
  font-size: .9rem; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 面の色分け ---------- */
#reason, #staff, #voice, #reserve { background: var(--paper-2); }
#works, #warranty { background: var(--indigo); }
#access { background: var(--indigo-deep); }

/* =========================================================
   共通パーツ
   ========================================================= */

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.4;
  color: var(--tsubaki);
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--hinoki); }

.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  line-height: 1.55;
  letter-spacing: .01em;
}
.sec-head h2.light { color: var(--paper); }
.sec-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--tsubaki);
  margin-top: 22px;
}
.sec-head h2.light::after { background: var(--hinoki); }
.sec-lead {
  margin-top: 22px;
  max-width: 46em;
  color: var(--ink-2);
  font-size: .98rem;
}
.sec-lead.light { color: #cbd2dc; }

.sec-head.center { text-align: center; }
.sec-head.center h2::after { margin-inline: auto; }
.sec-head.center .sec-lead { margin-inline: auto; }

.note {
  margin-top: 26px;
  font-size: .82rem;
  line-height: 1.9;
  color: var(--ink-2);
}
.note.light { color: #9aa6b5; }
.note.center { text-align: center; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 17px 34px;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.4;
  letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-solid { background: var(--tsubaki); color: #fff; }
.btn-solid:hover { background: var(--tsubaki-hi); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(248, 244, 236, .5); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(248, 244, 236, .1); }
.btn-sm { padding: 12px 22px; font-size: .86rem; }
.btn-lg { padding: 22px 48px; font-size: 1.05rem; }

/* =========================================================
   ヘッダー
   ========================================================= */

#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--head-h);
  background: linear-gradient(180deg, rgba(14, 27, 44, .6), transparent);
  transition: background-color .3s, box-shadow .3s;
}
#header.scrolled {
  background: rgba(14, 27, 44, .95);
  box-shadow: 0 1px 0 rgba(201, 168, 130, .25);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(100% - var(--gut) * 2, 1320px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { text-decoration: none; color: var(--paper); line-height: 1.2; }
.logo-name {
  display: block;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .12em;
}
.logo-since {
  display: block;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  color: var(--hinoki);
  margin-top: 3px;
}

#nav { display: flex; gap: 22px; margin-left: auto; }
#nav a {
  position: relative;
  color: var(--paper);
  text-decoration: none;
  font-size: .84rem;
  letter-spacing: .04em;
  padding: 6px 0;
}
#nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--hinoki);
  transition: right .25s;
}
#nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-tel { text-decoration: none; color: var(--paper); line-height: 1.15; }
.header-tel-label {
  display: block;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .18em;
  color: var(--hinoki);
}
.header-tel-num {
  display: block;
  font-family: var(--mono);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: .02em;
}

#hamburger {
  display: none;
  width: 46px; height: 46px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid rgba(248, 244, 236, .4);
  border-radius: 2px;
  cursor: pointer;
}
#hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  margin: 5px auto;
  background: var(--paper);
  transition: transform .25s, opacity .2s;
}
#hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: var(--head-h) 0 auto 0;
  z-index: 99;
  background: var(--indigo-deep);
  display: grid;
  gap: 2px;
  padding: 0 var(--gut);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
#mobile-menu.open { max-height: 80vh; padding: 18px var(--gut) 30px; }
#mobile-menu a {
  color: var(--paper);
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(201, 168, 130, .22);
  font-size: .95rem;
}

/* =========================================================
   ヒーロー
   ========================================================= */

#hero {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  min-height: 100svh;
  background: var(--indigo);
}

.hero-panel {
  display: flex;
  align-items: center;
  padding: calc(var(--head-h) + 44px) clamp(32px, 4vw, 64px) 52px
           max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  background: var(--indigo);
  position: relative;
  z-index: 2;
}
.hero-body { width: 100%; max-width: 30em; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--hinoki);
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(201, 168, 130, .35);
  display: inline-block;
}

#hero h1 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--paper);
}
#hero h1 em {
  font-style: normal;
  white-space: nowrap;
  background-image: linear-gradient(transparent 60%, var(--tsubaki) 60%, var(--tsubaki) 82%, transparent 82%);
}

.hero-lead {
  margin-top: 30px;
  color: #c6cdd8;
  font-size: .97rem;
  line-height: 2.1;
  max-width: 30em;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* 図面の表題欄 */
.titleblock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  border: 1px solid rgba(201, 168, 130, .4);
}
.titleblock > div { padding: 14px 18px; }
.titleblock > div + div { border-left: 1px solid rgba(201, 168, 130, .4); }
.titleblock dt {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--hinoki);
  line-height: 1.4;
}
.titleblock dd {
  color: var(--paper);
  line-height: 1.2;
  margin-top: 8px;
  white-space: nowrap;
}
.titleblock b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -.01em;
}
.titleblock span { font-size: .74rem; margin-left: 3px; }

.hero-figure { position: relative; overflow: hidden; }
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(23, 40, 63, .55), rgba(23, 40, 63, .1) 45%, rgba(23, 40, 63, .75));
}

/* =========================================================
   断面図セクション
   ========================================================= */

.parts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.sheet {
  background-color: var(--paper);
  border: 1px solid var(--rule-dark);
  padding: 18px;
  background-image:
    linear-gradient(rgba(23, 40, 63, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 40, 63, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.sheet-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.sheet-label span:nth-child(2) { font-family: var(--gothic); letter-spacing: .06em; }

.house { width: 100%; height: auto; display: block; }

.house .st { stroke: var(--indigo); stroke-width: 2; fill: none; }
.house .heavy { stroke-width: 3.6; }
.house .thin { stroke-width: 1.1; }
.house .ground { stroke-width: 2.4; }
.house .hatch { stroke-width: 1; stroke: var(--rule-dark); }
.house .dim { stroke-width: 1; stroke: var(--ink-2); }

.dimtext {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  fill: var(--ink-2);
}

.house .zone {
  fill: var(--tsubaki);
  opacity: 0;
  transition: opacity .25s;
}

.house .pin { cursor: pointer; }
.house .pin circle {
  fill: var(--paper);
  stroke: var(--tsubaki);
  stroke-width: 2.5;
  transition: fill .2s;
}
.house .pin text {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: var(--tsubaki);
  transition: fill .2s;
  pointer-events: none;
}

/* 番号と部位の連動 */
.parts-layout[data-active="1"] .z1,
.parts-layout[data-active="2"] .z2,
.parts-layout[data-active="3"] .z3,
.parts-layout[data-active="4"] .z4,
.parts-layout[data-active="5"] .z5,
.parts-layout[data-active="6"] .z6 { opacity: .17; }

.parts-layout[data-active="1"] .p1 circle,
.parts-layout[data-active="2"] .p2 circle,
.parts-layout[data-active="3"] .p3 circle,
.parts-layout[data-active="4"] .p4 circle,
.parts-layout[data-active="5"] .p5 circle,
.parts-layout[data-active="6"] .p6 circle { fill: var(--tsubaki); }

.parts-layout[data-active="1"] .p1 text,
.parts-layout[data-active="2"] .p2 text,
.parts-layout[data-active="3"] .p3 text,
.parts-layout[data-active="4"] .p4 text,
.parts-layout[data-active="5"] .p5 text,
.parts-layout[data-active="6"] .p6 text { fill: var(--paper); }

/* 凡例 */
.legend { display: grid; }
.legend-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 18px 16px 18px 14px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color .2s;
}
.legend-item:first-child { border-top: 1px solid var(--rule); }
.legend-no {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
  color: var(--tsubaki);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1.5px solid var(--tsubaki);
  border-radius: 50%;
  line-height: 1;
  margin-top: 3px;
  transition: background-color .2s, color .2s;
}
.legend-item h3 { font-size: 1.02rem; line-height: 1.6; }
.legend-item p {
  margin-top: 6px;
  font-size: .87rem;
  line-height: 1.95;
  color: var(--ink-2);
}
.legend-item:hover { background: rgba(168, 36, 48, .05); }

.parts-layout[data-active="1"] .legend-item[data-part="1"],
.parts-layout[data-active="2"] .legend-item[data-part="2"],
.parts-layout[data-active="3"] .legend-item[data-part="3"],
.parts-layout[data-active="4"] .legend-item[data-part="4"],
.parts-layout[data-active="5"] .legend-item[data-part="5"],
.parts-layout[data-active="6"] .legend-item[data-part="6"] { background: rgba(168, 36, 48, .07); }

.parts-layout[data-active="1"] .legend-item[data-part="1"] .legend-no,
.parts-layout[data-active="2"] .legend-item[data-part="2"] .legend-no,
.parts-layout[data-active="3"] .legend-item[data-part="3"] .legend-no,
.parts-layout[data-active="4"] .legend-item[data-part="4"] .legend-no,
.parts-layout[data-active="5"] .legend-item[data-part="5"] .legend-no,
.parts-layout[data-active="6"] .legend-item[data-part="6"] .legend-no {
  background: var(--tsubaki);
  color: var(--paper);
}

/* =========================================================
   選ばれる理由
   ========================================================= */

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.reason { border-left: 3px solid var(--tsubaki); padding-left: 24px; }
.reason h3 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.65;
}
.reason p {
  margin-top: 14px;
  font-size: .93rem;
  line-height: 2.05;
  color: var(--ink-2);
}

/* =========================================================
   施工事例
   ========================================================= */

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.work {
  background: rgba(248, 244, 236, .05);
  border: 1px solid rgba(201, 168, 130, .3);
}
.work-img { overflow: hidden; aspect-ratio: 16 / 10; }
.work-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.work:hover .work-img img { transform: scale(1.05); }
.work figcaption { padding: 24px 26px 26px; }
.work h3 { color: var(--paper); font-size: 1.08rem; line-height: 1.6; }

.work-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 168, 130, .3);
}
.work-meta dt {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--hinoki);
  line-height: 1.4;
}
.work-meta dd {
  margin-top: 5px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: .95rem;
  line-height: 1.3;
}

/* =========================================================
   料金(寸法線)
   ========================================================= */

.price-sheet { border-top: 2px solid var(--indigo); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.9fr) 108px 86px;
  align-items: center;
  gap: 20px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--rule);
}
.price-row-head {
  padding-block: 12px;
  border-bottom: 1px solid var(--rule-dark);
}
.price-row-head p {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--ink-2);
}
.price-row-head .price-name,
.price-row-head .price-band {
  font-family: var(--gothic);
  letter-spacing: .06em;
  font-size: .74rem;
  height: auto;
}

.price-name { font-size: .95rem; line-height: 1.6; }
.price-num {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.price-days {
  font-family: var(--mono);
  font-size: .88rem;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}

.price-band { position: relative; height: 20px; }
.dimline { position: absolute; inset: 0; display: block; }
.dimline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px dashed var(--rule-dark);
}
.dimline::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  height: 9px;
  transform: translateY(-50%);
  background: var(--tsubaki);
  border-inline: 2px solid var(--indigo);
}
.price-axis {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.9fr) 108px 86px;
  gap: 20px;
  padding: 10px 6px 0;
}
.price-axis span {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--ink-2);
  justify-self: start;
}
.price-axis span:nth-child(2) { justify-self: center; }
.price-axis span:nth-child(3) { justify-self: end; }

/* =========================================================
   職人紹介(判子)
   ========================================================= */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
}
.hanko {
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  border: 2.5px solid var(--tsubaki);
  border-radius: 5px;
  color: var(--tsubaki);
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: .04em;
  writing-mode: vertical-rl;
  transform: rotate(-3.5deg);
  margin-bottom: 26px;
}
.staff-role {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  color: var(--ink-2);
  margin-bottom: 6px;
  line-height: 1.7;
}
.staff h3 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: .06em;
}
.staff-text {
  margin-top: 14px;
  font-size: .9rem;
  line-height: 2.05;
  color: var(--ink-2);
}

/* =========================================================
   流れ
   ========================================================= */

.flow { max-width: 780px; }
.flow li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding-bottom: 42px;
  position: relative;
}
.flow li::before {
  content: "";
  position: absolute;
  left: 25px; top: 56px; bottom: 0;
  border-left: 1px dashed var(--rule-dark);
}
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::before { display: none; }
.flow-no {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1.5px solid var(--indigo);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
  color: var(--indigo);
  line-height: 1;
}
.flow h3 { font-size: 1.08rem; padding-top: 10px; }
.flow p {
  margin-top: 6px;
  font-size: .91rem;
  line-height: 2;
  color: var(--ink-2);
}

/* =========================================================
   お客様の声
   ========================================================= */

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.voice {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 34px 28px 26px;
  position: relative;
}
.voice::before {
  content: "「";
  position: absolute;
  top: 14px; left: 18px;
  font-family: var(--mincho);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--tsubaki);
  opacity: .5;
}
.voice blockquote {
  font-size: .93rem;
  line-height: 2.1;
  padding-top: 16px;
}
.voice figcaption {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--ink-2);
}

/* =========================================================
   アフターサービス
   ========================================================= */

.warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 52px);
}
.wicon {
  width: 46px; height: 46px;
  stroke: var(--hinoki);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 22px;
}
.wicon .seal { stroke: var(--tsubaki-dim); stroke-width: 2; }
.warranty h3 { color: var(--paper); font-size: 1.1rem; }
.warranty p {
  margin-top: 14px;
  font-size: .9rem;
  line-height: 2.05;
  color: #c0c8d3;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq { max-width: 900px; border-top: 1px solid var(--rule-dark); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: .99rem;
  line-height: 1.7;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-mark {
  position: relative;
  flex: 0 0 auto;
  width: 20px; height: 20px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 2px;
  background: var(--tsubaki);
  transform: translate(-50%, -50%);
  transition: transform .25s;
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 4px 24px; }
.faq-body p {
  font-size: .91rem;
  line-height: 2.1;
  color: var(--ink-2);
  padding-left: 18px;
  border-left: 2px solid var(--rule);
}

/* =========================================================
   会社概要 / アクセス
   ========================================================= */

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.access-info { border-top: 1px solid rgba(201, 168, 130, .35); }
.access-info > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(201, 168, 130, .22);
}
.access-info dt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--hinoki);
  line-height: 2.4;
}
.access-info dd { color: var(--paper); font-size: .93rem; line-height: 1.9; }
.tel-link {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 1px solid var(--hinoki);
}
.access-map { border: 1px solid rgba(201, 168, 130, .35); padding: 8px; }
.access-map iframe { display: block; filter: saturate(.85); }

/* =========================================================
   CTA
   ========================================================= */

.reserve-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}
.reserve-tel { text-decoration: none; text-align: center; }
.reserve-tel-label {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--ink-2);
}
.reserve-tel-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--indigo);
}
.reserve-tel-time {
  display: block;
  font-size: .74rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* =========================================================
   フッター
   ========================================================= */

footer {
  background: var(--indigo-deep);
  color: #97a2b0;
  padding: 68px 0 84px;
  text-align: center;
  font-size: .8rem;
  line-height: 2;
  border-top: 1px solid rgba(201, 168, 130, .2);
}
.footer-logo {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .16em;
  color: var(--paper);
  margin-bottom: 20px;
}
.footer-note { max-width: 46em; margin-inline: auto; }
.footer-credit, .footer-copy { margin-top: 10px; }
footer a { color: var(--hinoki); }

/* =========================================================
   スマホ固定バー / 戻るボタン
   ========================================================= */

.mobile-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  grid-template-columns: 1fr 1.2fr;
  box-shadow: 0 -2px 14px rgba(14, 27, 44, .18);
}
.mobile-bar a {
  padding: 17px 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}
.mobile-bar-tel { background: var(--indigo); color: var(--paper); }
.mobile-bar-cta { background: var(--tsubaki); color: #fff; }

.back-home {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 80;
  width: 78px; height: 78px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--indigo);
  border: 1.5px solid var(--hinoki);
  color: var(--paper);
  font-size: .64rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.back-home:hover {
  background: var(--tsubaki);
  border-color: var(--tsubaki);
  transform: translateY(-2px);
}

/* =========================================================
   アニメーション
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

/* 断面図を線から描き起こす */
.house .st { stroke-dasharray: 1; stroke-dashoffset: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.sheet.in-view .st { animation: draw 1.1s cubic-bezier(.6, .05, .3, 1) .45s forwards; }
.sheet.in-view .ground,
.sheet.in-view .hatch { animation-delay: 0s; }
.sheet.in-view .heavy { animation-delay: .18s; }
.sheet.in-view .dim { animation-delay: 1.1s; }

.house .pin { opacity: 0; transform-box: fill-box; transform-origin: center; }
.sheet.in-view .pin { animation: pop .45s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.sheet.in-view .p1 { animation-delay: 1.25s; }
.sheet.in-view .p2 { animation-delay: 1.33s; }
.sheet.in-view .p3 { animation-delay: 1.41s; }
.sheet.in-view .p4 { animation-delay: 1.49s; }
.sheet.in-view .p5 { animation-delay: 1.57s; }
.sheet.in-view .p6 { animation-delay: 1.65s; }

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

.sp-only { display: none; }

@media (min-width: 1001px) {
  .sheet { position: sticky; top: calc(var(--head-h) + 24px); }
}

@media (max-width: 1180px) {
  #nav { gap: 16px; }
  #nav a { font-size: .78rem; }
  .header-tel { display: none; }
}

@media (max-width: 1000px) {
  #nav { display: none; }
  #hamburger { display: block; }
  .header-cta { display: none; }

  #hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { order: -1; height: 40vh; min-height: 240px; }
  .hero-figure::after {
    background: linear-gradient(180deg, rgba(14, 27, 44, .8), rgba(23, 40, 63, .1) 55%, rgba(23, 40, 63, .55));
  }
  .hero-panel { padding: 46px var(--gut) 58px; }
  .hero-body { max-width: none; }

  .parts-layout { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  body { padding-bottom: 62px; }
  .mobile-bar { display: grid; }
  .back-home { bottom: 76px; width: 62px; height: 62px; font-size: .56rem; }

  .staff-grid,
  .voice-grid,
  .warranty-grid { grid-template-columns: 1fr; gap: 40px; }
  .works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .sp-only { display: inline; }

  .reason-grid { grid-template-columns: 1fr; gap: 34px; }

  .titleblock { grid-template-columns: 1fr; }
  .titleblock > div + div {
    border-left: 0;
    border-top: 1px solid rgba(201, 168, 130, .4);
  }
  .titleblock > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
  }
  .titleblock dd { margin-top: 0; }
  .titleblock b { font-size: 1.4rem; }

  .price-row { grid-template-columns: minmax(0, 1fr) 96px 74px; gap: 12px; }
  .price-band { display: none; }
  .price-axis { display: none; }

  .work-meta { grid-template-columns: repeat(2, 1fr); gap: 12px 4px; }

  .flow li { grid-template-columns: 56px 1fr; gap: 18px; }
  .flow li::before { left: 20px; top: 48px; }
  .flow-no { width: 42px; height: 42px; font-size: .85rem; }

  .hero-btns .btn { width: 100%; }
  .sheet { padding: 12px; }
  .sheet-label span:nth-child(3) { display: none; }
  .access-info > div { grid-template-columns: 88px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .house .st { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .house .pin { opacity: 1; animation: none !important; }
  .work-img img { transition: none; }
  .btn { transition: none; }
}
