@charset "utf-8";
/* ==========================================================================
   t01-koumuten ｜ Lv1 シンプル ／ B 問い合わせ獲得型 ／ 工務店・リフォーム
   凪ノ木工務店（架空）— 明るく、軽く、木と紙。

   お客様ごとに変えるのは、下の「差し替えポイント①〜⑥」と index.html の本文、
   assets/photos/ の写真だけ。看板の演出は「写真が障子のように開いて現れる」1つ。
   ========================================================================== */

:root {
  /* ── 差し替えポイント① 色（白・生成り・木の色）────────────────────────
     文字に使えるのは --ink・--ink-2・--wood-ink だけ。--wood は線と組子だけ（文字には薄すぎる）。 */
  --paper: #FBFAF7;      /* 白：地の色 */
  --kinari: #F3EEE4;     /* 生成り：帯（費用・ご相談）、写真が入るまでの面 */
  --washi: #F8F4EC;      /* 障子の紙 */
  --floor: #E9DFCF;      /* 淡い木の色：足元の帯 */
  --wood: #B89468;       /* 木の色：細い線・組子 */
  --wood-ink: #6B4F35;   /* 胡桃：ボタン・小さな見出し（白の地で 7.2:1） */
  --on-wood: #FFFFFF;    /* 胡桃の上の文字（7.5:1） */
  --ink: #2B2722;        /* 墨：本文（14.2:1） */
  --ink-2: #6A6259;      /* 補足の文字（白 5.7:1 ／ 生成り 5.2:1） */
  --ink-3: #5F5850;      /* 足元の帯の上の補足の文字（5.2:1） */

  /* ── 差し替えポイント② 書体（明朝1族＋ゴシック1族）──────────────────
     明朝は 15px 以上の文と見出し、ゴシックは小さな案内・表・フォームに使う。
     変えるときは index.html の Google Fonts の行もあわせて直す。 */
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-gothic: "Zen Kaku Gothic Antique", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* ── 差し替えポイント③ 角 ── */
  --radius: 2px;

  /* ── 差し替えポイント④ 余白と幅 ── */
  --gutter: 20px;          /* 画面の左右の余白 */
  --wrap: 1160px;          /* 文の最大幅 */
  --wrap-wide: 1320px;     /* 最初の写真の最大幅 */
  --sec-y: 104px;          /* セクションの上下の余白 */

  /* ── 差し替えポイント⑤ 文字の大きさ（本文は 16px 以上）── */
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  --fs-title: clamp(30px, 3.5vw, 48px);   /* 最初の画面の見出し */
  --fs-label: clamp(36px, 3.6vw, 50px);   /* 英語の見出し（Works など） */
  --fs-h3: clamp(19px, 1.55vw, 22px);
  --fs-num: clamp(30px, 2.7vw, 38px);     /* 費用の数字 */

  /* ── 差し替えポイント⑥ 動き（障子の開き方と、操作への反応）──────────────
     障子をやめるときは index.html の data-shoji を消す（写真は最初から見える）。 */
  --shoji-time: 1.5s;
  --shoji-ease: cubic-bezier(.62, 0, .18, 1);   /* 引きはじめが重く、すっと止まる */
  --hover-time: .6s;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* ── ここから下は自動（さわらない）── */
  --rule: rgba(43, 39, 34, .14);
  --rule-strong: rgba(43, 39, 34, .30);
  --field-line: #857F77;                    /* 入力欄・選択肢の枠（生成りの地で 3.4:1、白の地で 3.8:1） */
  --wood-ink-deep: #57402B;
  --kumiko: rgba(150, 118, 78, .22);        /* 障子の組子（紙ごしに見える影） */
  --kumiko-frame: rgba(150, 118, 78, .30);  /* 障子の框 */
  --dock-h: 0px;
  --hd-h: 68px;
  /* 和紙：ごく淡い雲のような濃淡と、細かな紙の目。継ぎ目が出ないよう、フィルターの範囲を絵の大きさにそろえる */
  --washi-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .52 0 0 0 0 .42 0 0 0 0 .29 0 0 0 1 -.45'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .37 0 0 0 0 .27 0 0 0 .9 -.38'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23a)' opacity='.22'/%3E%3Crect width='320' height='320' filter='url(%23b)' opacity='.55'/%3E%3C/svg%3E");
  /* 木目：横に長く流れるやわらかな筋（ごく薄く） */
  --grain-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0025 .11' numOctaves='3' seed='14' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .31 0 0 0 0 .19 0 0 0 1.5 -.62'/%3E%3C/filter%3E%3Crect width='640' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  :root { --dock-h: 64px; }
}
@media (min-width: 768px) {
  :root { --gutter: 40px; --sec-y: 136px; --fs-body: 17px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 64px; --sec-y: 176px; --hd-h: 96px; }
}

/* ==========================================================================
   土台
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .06em;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, .sec-title { font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
p, li, dd { text-wrap: pretty; word-break: auto-phrase; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--wood-ink);
  outline-offset: 4px;
  border-radius: 1px;
}

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  flex: none; width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 60;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  font-family: var(--font-gothic); font-size: var(--fs-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

/* 下線が左から伸びるリンク（静かな反応）。もとから薄い線を引いておき、触れると濃い線が伸びる */
.u-line {
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
    linear-gradient(var(--rule-strong), var(--rule-strong)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--hover-time) var(--ease), color var(--hover-time) var(--ease);
}
.u-line:hover { background-size: 100% 1px, 100% 1px; color: var(--wood-ink); }
.u-line--bare { background-size: 0 1px, 0 1px; }          /* ふだんは線なし。触れると伸びる */
.u-line--bare:hover { background-size: 100% 1px, 0 1px; }

/* ==========================================================================
   見出し・小さな部品
   ========================================================================== */
/* 英語の見出し＋日本語の小さな見出し */
.sec-title { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.sec-title .en {
  font-family: var(--font-mincho); font-weight: 400;
  font-size: var(--fs-label); line-height: 1.05; letter-spacing: .01em;
}
.sec-title .jp {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-gothic); font-weight: 500;
  font-size: var(--fs-xs); line-height: 1.6; letter-spacing: .16em; color: var(--wood-ink);
}
.sec-title .jp::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--wood); }

.sec-lead { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.9; }
.sec-head { margin-bottom: 40px; }
.nw { white-space: nowrap; }   /* 日付や「1〜2時間」の途中で改行しない */

.note {
  margin-top: 20px;
  font-family: var(--font-gothic); font-weight: 400;
  font-size: var(--fs-xs); line-height: 1.9; letter-spacing: .06em; color: var(--ink-2);
}
.note + .note { margin-top: 6px; }

/* 項目と値の短い表（最初の画面・事例） */
.facts > div {
  display: grid; grid-template-columns: 6.2em 1fr; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt {
  font-family: var(--font-gothic); font-weight: 500;
  font-size: var(--fs-xs); letter-spacing: .12em; color: var(--ink-2); line-height: 2.1;
}
.facts dd { font-size: 15px; line-height: 1.9; }

/* ボタン：色がゆっくり変わり、矢印が少しだけ進む */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-gothic); font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: .14em;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--hover-time) var(--ease), border-color var(--hover-time) var(--ease), color var(--hover-time) var(--ease);
}
.btn .ic { transition: transform var(--hover-time) var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--wood { background: var(--wood-ink); border-color: var(--wood-ink); color: var(--on-wood); }
.btn--wood:hover { background: var(--wood-ink-deep); border-color: var(--wood-ink-deep); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--wood-ink); color: var(--wood-ink); background: var(--kinari); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-xs); letter-spacing: .12em; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.hd { position: relative; z-index: 30; background: var(--paper); }
.hd__in {
  display: flex; align-items: center; gap: 24px;
  width: min(100% - var(--gutter) * 2, var(--wrap-wide));
  height: var(--hd-h); margin-inline: auto;
}
.logo { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 48px; margin-right: auto; color: var(--ink); text-decoration: none; }
.logo__name { font-family: var(--font-mincho); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: .18em; }
.logo__en { font-family: var(--font-gothic); font-weight: 500; font-size: 10px; line-height: 1; letter-spacing: .34em; color: var(--ink-2); }

.hd__act { display: none; align-items: center; gap: 24px; }
.hd__tel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-mincho); font-weight: 500; font-size: 17px; letter-spacing: .08em;
}
.hd__tel .ic { color: var(--wood-ink); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px 0 12px; margin-right: -4px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-gothic); font-size: var(--fs-xs); letter-spacing: .14em;
}
.menu-btn__bars { position: relative; width: 22px; height: 9px; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform var(--hover-time) var(--ease), top var(--hover-time) var(--ease);
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 4px; transform: rotate(18deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 4px; transform: rotate(-18deg); }

/* スマホ・タブレット：メニューは下に開く板（JS なしでは開いたまま読める） */
.gnav { width: 100%; }
.js .gnav {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 8px var(--gutter) 32px;
  background: var(--paper); border-top: 1px solid var(--rule);
  box-shadow: 0 24px 40px -32px rgba(43, 39, 34, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.js .gnav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.gnav__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.gnav__list .en { font-family: var(--font-mincho); font-weight: 400; font-size: 24px; letter-spacing: .02em; transition: color var(--hover-time) var(--ease); }
.gnav__jp { font-family: var(--font-gothic); font-size: var(--fs-xs); letter-spacing: .12em; color: var(--ink-2); }
.gnav__list a:hover .en { color: var(--wood-ink); }
.gnav__tel { display: flex; flex-direction: column; margin-top: 20px; font-family: var(--font-gothic); font-size: var(--fs-xs); color: var(--ink-2); }
.gnav__tel a { font-family: var(--font-mincho); font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: .06em; }
/* JS なし：メニューのボタンは出さず、案内をヘッダーの下にそのまま並べる */
html:not(.js) .menu-btn { display: none; }
@media (max-width: 1099px) {
  html:not(.js) .hd__in { flex-wrap: wrap; height: auto; padding-block: 16px; }
  html:not(.js) .gnav { order: 3; }
}

@media (min-width: 768px) {
  .hd__act { display: flex; }
}
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .gnav, .js .gnav {
    position: static; width: auto; padding: 0; margin-right: 8px;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .gnav__list { display: flex; gap: 30px; }
  .gnav__list a { min-height: 44px; padding: 0; border: 0; align-items: center; }
  .gnav__list .en {
    font-size: 16px; letter-spacing: .06em;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    padding-bottom: 3px;
    transition: background-size var(--hover-time) var(--ease), color var(--hover-time) var(--ease);
  }
  .gnav__list a:hover .en { background-size: 100% 1px; }
  .gnav__jp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .gnav__contact, .gnav__tel { display: none; }
}

/* ==========================================================================
   写真の枠と、障子（看板の演出）
   ========================================================================== */
.ph { position: relative; overflow: hidden; background: var(--kinari); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* 写真がまだないとき：何の写真が入るかを小さく書く（灰色の面を主役にしない） */
.ph:not(:has(img))::after {
  content: attr(data-shot);
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-gothic); font-size: 12px; letter-spacing: .1em; color: var(--ink-2);
}
.plate__cap {
  margin-top: 12px;
  font-family: var(--font-gothic); font-weight: 400; font-size: 12.5px; line-height: 1.8; letter-spacing: .1em; color: var(--ink-2);
}

/* 障子：紙（和紙の濃淡）、紙ごしの組子と框の影、紙の裏から入る光。
   .shoji（動きを減らす設定でないとき・head で付く）のときだけ現れ、.is-open で左右へ引かれて消える */
.ph[data-shoji] { --cols: 3; --rows: 4; --bar: 2px; --frame: 7px; }
.shoji .ph[data-shoji]::before,
.shoji .ph[data-shoji="both"]::after {
  content: "";
  position: absolute; top: 0; bottom: 0; z-index: 2;
  background-color: var(--washi);
  background-image:
    linear-gradient(to right, var(--kumiko) var(--bar), transparent var(--bar)),
    linear-gradient(to bottom, var(--kumiko) var(--bar), transparent var(--bar)),
    radial-gradient(110% 80% at 50% 42%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 72%),
    var(--washi-tex);
  background-size:
    calc(100% / var(--cols)) 100%,
    100% calc(100% / var(--rows)),
    100% 100%,
    320px 320px;
  background-position: -1px 0, 0 -1px, 0 0, 0 0;
  box-shadow: inset 0 0 0 var(--frame) var(--kumiko-frame);
  transition: transform var(--shoji-time) var(--shoji-ease);
  will-change: transform;
}
.shoji .ph[data-shoji="both"]::before { left: 0; width: 50%; }
.shoji .ph[data-shoji="both"]::after { right: 0; width: 50%; transition-delay: .06s; }
.shoji .ph[data-shoji="left"]::before,
.shoji .ph[data-shoji="right"]::before { left: 0; right: 0; }
.shoji .ph[data-shoji].is-open::before { transform: translateX(-102%); }
.shoji .ph[data-shoji="both"].is-open::after { transform: translateX(102%); }
.shoji .ph[data-shoji="right"].is-open::before { transform: translateX(102%); }
.shoji .ph[data-shoji].is-done::before,
.shoji .ph[data-shoji].is-done::after { content: none; }
/* 障子が開くあいだ、奥の部屋がわずかに寄ってくる */
.shoji .ph[data-shoji] img { transform: scale(1.045); transition: transform calc(var(--shoji-time) + .9s) var(--ease); }
.shoji .ph[data-shoji].is-open img { transform: none; }

/* ==========================================================================
   1. 最初の画面
   ========================================================================== */
.hero__plate { width: 100%; margin-inline: auto; }
.hero .ph { aspect-ratio: 5 / 6; --cols: 2; --rows: 6; --frame: 5px; }
.hero .ph img { object-position: 40% 60%; }
.hero .plate__cap { padding-inline: var(--gutter); }

.hero__text {
  width: min(100% - var(--gutter) * 2, var(--wrap-wide));
  margin: 40px auto 0;
  display: grid; gap: 32px;
}
.hero__title {
  font-family: var(--font-mincho); font-weight: 400;
  font-size: var(--fs-title); line-height: 1.5; letter-spacing: .07em;
}
.hero__title span { display: block; }
@media (min-width: 1100px) {
  .hero__title span { display: inline; }   /* 広い画面では1行（入らなければ文節で2行に） */
}
.hero__sub { margin-top: 18px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.hero__facts dd a { letter-spacing: .08em; }

@media (min-width: 768px) {
  .hero__plate { width: min(100% - var(--gutter) * 2, var(--wrap-wide)); }
  .hero .ph { aspect-ratio: 16 / 9; --cols: 3; --rows: 4; --frame: 7px; }
  .hero .ph img { object-position: 50% 62%; }
  .hero .plate__cap { padding-inline: 0; text-align: right; }
  .hero__text { grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); align-items: end; gap: 48px; margin-top: 32px; }
}
@media (min-width: 1100px) {
  .hero .ph { aspect-ratio: auto; height: clamp(440px, calc(100vh - 360px), 660px); }
  .hero__text { margin-top: 28px; }
}

/* ==========================================================================
   セクション（共通）
   ========================================================================== */
.sec { padding-block: var(--sec-y); }
.sec--news { padding-top: calc(var(--sec-y) * .72); padding-bottom: calc(var(--sec-y) * .36); }

/* 生成りの帯（費用・ご相談）：和紙の濃淡をごく薄く */
.sec--paper { position: relative; isolation: isolate; background: var(--kinari); }
.sec--paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--washi-tex); background-size: 320px 320px; opacity: .35;
}

@media (min-width: 1100px) {
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .grid > .sec-title, .grid > .sec-head { grid-column: 1 / 5; }
  .grid > .news, .grid > .sec-body { grid-column: 5 / 13; }
  .sec-head { margin-bottom: 0; }
}

/* ==========================================================================
   2. お知らせ
   ========================================================================== */
.news li {
  display: grid; gap: 2px;
  padding: 18px 0; border-top: 1px solid var(--rule);
}
.news li:last-child { border-bottom: 1px solid var(--rule); }
.news time {
  font-family: var(--font-gothic); font-size: var(--fs-xs); letter-spacing: .14em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.news p { font-size: 15px; line-height: 1.9; }
@media (min-width: 768px) {
  .news li { grid-template-columns: 8.5em 1fr; gap: 24px; align-items: baseline; padding: 22px 0; }
}
@media (min-width: 1100px) {
  .sec--news .sec-title { margin-bottom: 0; }
}

/* ==========================================================================
   3. 施工事例
   ========================================================================== */
.case__plate { margin-inline: calc(var(--gutter) * -1); }
.case .ph { aspect-ratio: 3 / 2; --cols: 4; --rows: 3; --frame: 5px; }
.case__body { margin-top: 32px; }
.case__title { font-family: var(--font-mincho); font-weight: 500; font-size: var(--fs-h3); line-height: 1.6; letter-spacing: .1em; }
.case__text { margin-top: 14px; line-height: 2.05; }
.case__facts { margin-top: 32px; }

.index { margin-top: 96px; }
.index__title {
  font-family: var(--font-gothic); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .16em; color: var(--wood-ink);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong);
}
.index__list li {
  display: grid; grid-template-columns: 3.4em 1fr auto; grid-template-areas: "year name name" ". meta meta" ". term cost";
  column-gap: 12px; row-gap: 2px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.index__year { grid-area: year; font-family: var(--font-gothic); font-size: var(--fs-xs); letter-spacing: .1em; color: var(--ink-2); line-height: 2.2; font-variant-numeric: tabular-nums; }
.index__name { grid-area: name; font-size: 16px; line-height: 1.9; letter-spacing: .08em; }
.index__meta { grid-area: meta; font-family: var(--font-gothic); font-size: var(--fs-xs); color: var(--ink-2); letter-spacing: .06em; line-height: 1.9; }
.index__term { grid-area: term; font-family: var(--font-gothic); font-size: var(--fs-xs); color: var(--ink-2); letter-spacing: .06em; line-height: 2.2; }
.index__cost { grid-area: cost; font-size: 17px; letter-spacing: .04em; justify-self: end; font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .case__plate { margin-inline: 0; }
  .case .ph { --cols: 6; --rows: 4; --frame: 7px; }
  .case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .case__plate { grid-column: 1 / -1; }
  .case__body { grid-column: 1 / 7; margin-top: 40px; }
  .case__facts { grid-column: 8 / -1; margin-top: 44px; }
  .index__list li {
    grid-template-columns: 4em minmax(0, 1.25fr) minmax(0, 1.25fr) 5.5em 7em;
    grid-template-areas: "year name meta term cost";
    align-items: baseline; padding: 20px 0;
  }
}
@media (min-width: 1100px) {
  .case .ph { aspect-ratio: 16 / 8.6; }
  .index { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; margin-top: 120px; }
  .index__title { grid-column: 1 / 4; border-bottom: 0; padding-top: 20px; }
  .index__list, .index .note { grid-column: 4 / -1; }
  .index__list { border-top: 1px solid var(--rule-strong); }
}

/* ==========================================================================
   4. 費用の目安
   ========================================================================== */
.price { border-top: 1px solid var(--rule-strong); }
.price__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name cost" "cond cond" "term term";
  column-gap: 16px;
  padding: 24px 0 22px; border-bottom: 1px solid var(--rule);
}
.price__name { grid-area: name; font-family: var(--font-mincho); font-weight: 500; font-size: var(--fs-h3); letter-spacing: .1em; line-height: 1.7; }
.price__cond { grid-area: cond; margin-top: 6px; font-family: var(--font-gothic); font-size: var(--fs-xs); line-height: 1.9; letter-spacing: .06em; color: var(--ink-2); }
.price__term { grid-area: term; margin-top: 2px; font-family: var(--font-gothic); font-size: var(--fs-xs); line-height: 1.9; letter-spacing: .06em; color: var(--ink-2); }
.price__cost { grid-area: cost; justify-self: end; align-self: baseline; white-space: nowrap; font-size: 14px; letter-spacing: .06em; }
.price__cost .num { font-weight: 400; font-size: var(--fs-num); line-height: 1; letter-spacing: .02em; margin-right: 3px; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .price__row {
    grid-template-columns: minmax(0, 1fr) 9.5em 11em;
    grid-template-areas: "name term cost" "cond term cost";
    align-items: baseline; padding: 30px 0 26px;
  }
  .price__term { margin-top: 0; }
}

/* ==========================================================================
   5. 私たちについて
   ========================================================================== */
.about { display: grid; gap: 48px; }
.about .ph { aspect-ratio: 4 / 5; --cols: 3; --rows: 5; }
.about__body { font-size: 17px; line-height: 2.15; letter-spacing: .08em; }
.about__facts { margin-top: 40px; }
.about__facts > div { display: grid; grid-template-columns: 4.5em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.about__facts > div:last-child { border-bottom: 1px solid var(--rule); }
.about__facts dt { font-family: var(--font-gothic); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .14em; color: var(--wood-ink); line-height: 2.3; }
.about__facts dd { font-size: 15px; line-height: 2; }
@media (min-width: 768px) {
  .about { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
  .about__plate { grid-column: 1 / 6; }
  .about__text { grid-column: 7 / -1; }
}
@media (min-width: 1100px) {
  .about__plate { grid-column: 1 / 6; }
  .about__text { grid-column: 7 / 12; }
}

/* ==========================================================================
   6. ご相談の流れ
   ========================================================================== */
.flow { counter-reset: step; display: grid; gap: 0; }
.flow__step {
  counter-increment: step;
  display: grid; grid-template-columns: 2.6em 1fr; column-gap: 12px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.flow__step:last-child { border-bottom: 1px solid var(--rule); }
.flow__step::before {
  content: counter(step);
  grid-row: 1 / 3;
  font-family: var(--font-mincho); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--wood-ink);
}
.flow__name { font-family: var(--font-mincho); font-weight: 500; font-size: 18px; letter-spacing: .1em; line-height: 1.7; }
.flow__text { margin-top: 4px; font-family: var(--font-gothic); font-size: var(--fs-sm); line-height: 1.95; letter-spacing: .05em; color: var(--ink-2); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 28px; }
  .flow__step { display: block; padding: 0; border: 0; border-top: 1px solid var(--rule-strong); }
  .flow__step:last-child { border-bottom: 0; }
  .flow__step::before { display: block; padding: 22px 0 18px; font-size: 34px; }
}

/* ==========================================================================
   7. 会社概要
   ========================================================================== */
.spec { border-top: 1px solid var(--rule-strong); }
.spec > div { display: grid; grid-template-columns: 7.2em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--font-gothic); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .1em; color: var(--ink-2); line-height: 2.2; }
.spec dd { font-size: 15px; line-height: 1.95; }
@media (min-width: 768px) {
  .spec > div { grid-template-columns: 10em 1fr; padding: 18px 0; }
}

/* ==========================================================================
   8. ご相談・お見積もり
   ========================================================================== */
.contact__head { margin-bottom: 48px; }
.tel { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.tel__label { font-family: var(--font-gothic); font-size: var(--fs-xs); letter-spacing: .14em; color: var(--wood-ink); }
.tel__num { align-self: flex-start; font-family: var(--font-mincho); font-weight: 400; font-size: clamp(30px, 3vw, 38px); line-height: 1.4; letter-spacing: .06em; }
.tel__hours { font-family: var(--font-gothic); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--ink-2); }

.form { display: grid; gap: 28px; font-family: var(--font-gothic); }
.field { display: grid; gap: 10px; }
.field__label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: var(--fs-sm); letter-spacing: .1em; }
.req, .opt { font-size: 12px; letter-spacing: .08em; line-height: 1; padding: 4px 7px; border-radius: var(--radius); }
.req { background: var(--wood-ink); color: var(--on-wood); }
.opt { border: 1px solid var(--rule-strong); color: var(--ink-2); }
.field__hint { font-size: 12.5px; letter-spacing: .05em; line-height: 1.8; color: var(--ink-2); }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--field-line); border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-gothic); font-size: 16px; line-height: 1.6; letter-spacing: .04em;
  transition: border-color var(--hover-time) var(--ease), box-shadow var(--hover-time) var(--ease);
}
.input:hover { border-color: var(--wood-ink); }
.input:focus { outline: none; border-color: var(--wood-ink); box-shadow: 0 0 0 3px rgba(107, 79, 53, .16); }
.input--area { min-height: 132px; resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 16px 8px 14px;
  border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--paper);
  font-size: var(--fs-sm); letter-spacing: .06em;
  transition: border-color var(--hover-time) var(--ease), background-color var(--hover-time) var(--ease), color var(--hover-time) var(--ease);
}
.choice span::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--field-line); background: var(--paper);
  transition: box-shadow var(--hover-time) var(--ease), border-color var(--hover-time) var(--ease);
}
.choice:hover span { border-color: var(--wood-ink); }
.choice input:checked + span { border-color: var(--wood-ink); color: var(--wood-ink); }
.choice input:checked + span::before { border-color: var(--wood-ink); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 8px var(--wood-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--wood-ink); outline-offset: 3px; }

.form__submit { justify-self: start; margin-top: 4px; }
.form__status { padding: 14px 16px; border-left: 2px solid var(--wood-ink); background: var(--paper); font-size: var(--fs-sm); line-height: 1.8; }
.form__status strong { display: block; font-weight: 500; }
.form__fine { font-size: 12.5px; letter-spacing: .05em; color: var(--ink-2); }

@media (min-width: 1100px) {
  /* 電話の案内は、フォームを書いているあいだも左に残る */
  .sec--contact .grid > .sec-head { grid-column: 1 / 5; position: sticky; top: 48px; align-self: start; }
  .sec--contact .grid > .form { grid-column: 6 / 12; }
}

/* ==========================================================================
   フッター（淡い木の色。木目をごく薄く）
   ========================================================================== */
/* 下の余白は、スマホの固定ボタンの高さぶんも足元の色で埋める */
.ft { position: relative; isolation: isolate; background: var(--floor); padding: 56px 0 calc(48px + var(--dock-h) + env(safe-area-inset-bottom, 0px)); }
.ft::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-tex); background-size: 640px 240px; opacity: .2;
}
.ft__in { display: grid; gap: 28px; }
.ft__name { font-family: var(--font-mincho); font-weight: 600; font-size: 18px; letter-spacing: .18em; }
.ft__addr { margin-top: 8px; font-family: var(--font-gothic); font-size: var(--fs-xs); line-height: 2; letter-spacing: .06em; }
.ft__notes { font-family: var(--font-gothic); font-size: 12.5px; line-height: 1.9; letter-spacing: .05em; color: var(--ink-3); }
.ft__copy { margin-top: 10px; }
@media (min-width: 768px) {
  .ft__in { grid-template-columns: 1fr 1fr; align-items: end; }
  .ft__notes { text-align: right; }
}

/* ==========================================================================
   スマホの下に固定する連絡のボタン
   ========================================================================== */
.dock { display: none; }
@media (max-width: 767px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 250, 247, .96);
    border-top: 1px solid var(--rule);
    transition: transform .6s var(--ease), opacity .6s var(--ease);
  }
  .dock.is-away { transform: translateY(105%); opacity: 0; }
  .dock__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: var(--radius);
    font-family: var(--font-gothic); font-weight: 500; font-size: 14px; letter-spacing: .1em; text-decoration: none;
  }
  .dock__btn--tel { border: 1px solid var(--rule-strong); color: var(--ink); background: var(--paper); }
  .dock__btn--form { background: var(--wood-ink); color: var(--on-wood); }
}

/* ==========================================================================
   動きを減らす設定：障子は出さず、反応の時間もなくす
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .ph[data-shoji]::before, .ph[data-shoji]::after { content: none !important; }
  .ph[data-shoji] img { transform: none !important; }
}
