@charset "UTF-8";
/* ==========================================================================
   K1C — スタイルシート

   構成
     01 トークン
     02 リセットと基本
     03 タイポグラフィ
     04 レイアウト
     05 ヘッダー
     06 フッター
     07 ヒーロー
     08 図版
     09 施工例
     10 表・フォーム・ボタン
     11 モーション
     12 印刷
   ========================================================================== */

/* == 01 トークン ========================================================== */

:root {
  /* 色 — 無彩色のみ。彩度はすべて写真に持たせる */
  --ink:        #0C0C0B;  /* 地。炭 */
  --ink-raise:  #151412;  /* 一段持ち上げた面。入力欄、表の行 */
  --rule:       #262521;  /* 罫 */
  --rule-lit:   #3A3833;  /* 罫（強） */
  --edge:       #636057;  /* 入力欄など、操作するものの輪郭。地に対して 3.11:1。
                             罫と違って「どこを触れるか」を伝える線なので、
                             飾りの罫より明るさの下限が決まっている */
  --dim:        #7F7B74;  /* 番号・小ラベルなど、読ませずに置く文字。地に対して 4.65:1。
                             読ませない扱いでも 11〜13px の小さな字なので、
                             基準の 4.5:1 を下回らないところまで明るさを上げてある */
  --dust:       #9E9B94;  /* 本文。地に対して 7.05:1 */
  --stone:      #F2F0EA;  /* 見出し・白。地に対して 17.2:1 */

  /* 書体 */
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
             "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                  "Yu Gothic Medium", "Yu Gothic", sans-serif;

  /* 文字寸法 */
  --fs-display: clamp(34px, 6.4vw, 76px);
  --fs-h1:      clamp(28px, 4.6vw, 52px);
  --fs-h2:      clamp(22px, 3vw, 36px);
  --fs-h3:      clamp(17px, 1.6vw, 21px);
  --fs-lead:    clamp(15px, 1.3vw, 18px);
  --fs-body:    clamp(14.5px, 1.05vw, 16px);
  --fs-small:   13px;
  --fs-label:   11px;

  /* 間隔 */
  --s1: 8px;   --s2: 16px;  --s3: 24px;  --s4: 40px;
  --s5: 64px;  --s6: 96px;  --s7: 144px; --s8: 208px;
  --section-y: clamp(80px, 11vw, 168px);

  /* 版面 */
  --maxw:    1520px;
  --measure: 32em;
  --pad:     clamp(20px, 4.6vw, 72px);
  --gutter:  clamp(16px, 2.2vw, 34px);
  --rail:    clamp(88px, 12vw, 172px);
  --header-h: 72px;

  /* 動き */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 719px) {
  :root { --header-h: 58px; }
}

@view-transition { navigation: auto; }

/* == 02 リセットと基本 ==================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--dust);
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  /* 和文は語の切れ目を見ずに折り返すので、「一貫／して」「変わ／ります」のように
     語の途中で切れる。文節で折り返せる環境ではそちらに任せる。
     対応していない環境では黙って無視されるだけで、従来どおりの折り返しになる */
  word-break: auto-phrase;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--ink-raise); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--stone); color: var(--ink); }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--stone);
  color: var(--ink);
  font-size: var(--fs-small);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* == 03 タイポグラフィ ==================================================== */

/* 欧文の小ラベル。区画の目印としてだけ使い、ナビゲーションには使わない */
.label {
  font-family: var(--font-en);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1;
}

.display,
.h1, .h2, .h3 {
  font-family: var(--font-display);
  color: var(--stone);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1.32;
  text-wrap: balance;
}

.display { font-size: var(--fs-display); line-height: 1.24; letter-spacing: 0.045em; }
.h1      { font-size: var(--fs-h1); }
.h2      { font-size: var(--fs-h2); }
.h3      { font-size: var(--fs-h3); font-weight: 300; letter-spacing: 0.09em; line-height: 1.6; }

/* 最終行に一〜二文字だけ残るのを避ける。効かない環境では従来どおり */
.lead, .body { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 2.1;
  color: var(--dust);
  max-width: var(--measure);
}

.body { max-width: var(--measure); }
.body > p + p { margin-top: 1.6em; }

.small { font-size: var(--fs-small); line-height: 1.9; }
.quiet { color: var(--dim); }

/* 大きな番号。施工例が連番であることをそのまま見せる */
.numeral {
  font-family: var(--font-en);
  font-weight: 200;
  font-size: clamp(48px, 7.5vw, 116px);
  line-height: 0.78;
  letter-spacing: 0.02em;
  color: var(--dim);
  font-variant-numeric: lining-nums tabular-nums;
}

/* 下線が左から引かれるリンク */
.ul-link {
  position: relative;
  display: inline-block;
  color: var(--stone);
  padding-bottom: 3px;
}
.ul-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.ul-link:hover::after,
.ul-link:focus-visible::after { transform: scaleX(1); }

/* 常時下線のリンク（本文中・フッター）。
   本文との色差だけではリンクだと分からないので、下線は見える濃さで引く */
.link {
  color: var(--stone);
  border-bottom: 1px solid rgba(242, 240, 234, 0.42);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
}
.link:hover, .link:focus-visible { border-color: var(--stone); }

/* == 04 レイアウト ======================================================== */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--ruled { border-top: 1px solid var(--rule); }

/* 見出しと本文を、左のラベル列と右の内容列に割る */
.shead {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}
.shead > .label { padding-top: 0.7em; }

.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s5); }

/* 画面幅いっぱいの塊は .wrap の外に置く */
.bleed { width: 100%; }

@media (max-width: 899px) {
  .shead { grid-template-columns: 1fr; gap: var(--s3); }
  .shead > .label { padding-top: 0; }
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease),
              border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 12, 11, 0.6), rgba(12, 12, 11, 0));
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.site-header.is-solid {
  background: rgba(12, 12, 11, 0.94);
  border-bottom-color: var(--rule);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  position: relative;
  z-index: 1;
}

.brand { display: block; line-height: 0; }
.brand img {
  width: auto;
  height: 26px;
  background: none;
}
@media (max-width: 719px) { .brand img { height: 21px; } }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 44px);
}
.nav-list a {
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  color: var(--dust);
  position: relative;
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--stone); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); }
.nav-list a[aria-current] { color: var(--stone); }
/* 現在地の線。触れたときの線（文字色）より落とすが、見える濃さは保つ */
.nav-list a[aria-current]::after { transform: scaleX(1); background: var(--edge); }

/* 開閉ボタン — 二本の線が交差する */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 22px; height: 1px;
  background: var(--stone);
  transition: transform 0.4s var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-3px) rotate(-90deg); }

@media (max-width: 899px) {
  .nav-toggle { display: block; }

  /* 開いた面は画面全体を覆うので、社名と閉じるボタンだけは上に残す */
  .brand, .nav-toggle { position: relative; z-index: 1; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    padding: calc(var(--header-h) + 7vh) var(--pad) var(--pad);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    /* visibility は離散的に切り替わるので、時間をかけると
       開いた直後に中のリンクへ焦点を移せなくなる。開くときは即座に、
       閉じるときだけ消え終わってから隠す */
    transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease), visibility 0s;
  }

  .nav-list {
    display: block;
    border-top: 1px solid var(--rule);
  }
  .nav-list li { border-bottom: 1px solid var(--rule); }
  .nav-list a {
    display: block;
    padding: 22px 0;
    font-size: clamp(19px, 5.4vw, 26px);
    font-family: var(--font-display);
    font-weight: 200;
    letter-spacing: 0.1em;
    color: var(--stone);
  }
  .nav-list a::after { display: none; }
  /* 今いる場所は、色を落とさず印で示す（落とすと読みにくくなるため） */
  .nav-list a[aria-current] { color: var(--dust); }
  .nav-list a[aria-current]::before {
    content: "—";
    margin-right: 0.5em;
    color: var(--dim);
  }

  .nav-foot {
    margin-top: var(--s5);
    font-size: var(--fs-small);
    color: var(--dim);
    line-height: 2.2;
  }
  /* 電話番号はその場で掛けられる。色を変えるだけでは押せると分からないので下線を引く */
  .nav-foot a {
    color: var(--stone);
    border-bottom: 1px solid rgba(242, 240, 234, 0.42);
  }
}

@media (min-width: 900px) {
  .nav-foot { display: none; }
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(56px, 7vw, 104px) var(--s4);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--gutter);
}

.footer-logo { height: 30px; width: auto; background: none; margin-bottom: var(--s3); }

.footer-address {
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 2.2;
  color: var(--dust);
}

.footer-head {
  font-family: var(--font-en);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--s3);
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: var(--fs-small); color: var(--dust); transition: color 0.3s var(--ease); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--stone); }

.footer-bottom {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--address { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .footer-bottom { flex-direction: column; gap: 6px; }
}

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

.hero {
  position: relative;
  min-height: 540px;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 7vh, 96px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* 写真の下端を地の炭へ溶かす。額縁を作らないための仕掛け。
     見出しが載る 66〜78% のあたりで文字が沈まないよう、そこだけ
     早く落ちるよう段を刻み、曲線に見えるだけの数を置いて、
     境目が帯にならないようにしている */
  --dissolve: linear-gradient(to bottom,
      #000 46%,
      rgba(0, 0, 0, 0.86) 58%,
      rgba(0, 0, 0, 0.42) 66%,
      rgba(0, 0, 0, 0.16) 76%,
      rgba(0, 0, 0, 0) 92%);
  -webkit-mask-image: var(--dissolve);
          mask-image: var(--dissolve);
}
/* 視差で上下に動かせるよう、写真は枠より一回り大きく置く */
.hero__media img {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 42% 50%;
  will-change: transform;
}

.hero__body {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin-bottom: var(--s3);
  max-width: 17em;
}

.hero__sub {
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--dust);
}

/* 下へ伸びる細い線。文字を置かずに続きがあることだけ伝える */
.hero__cue {
  position: absolute;
  right: var(--pad);
  bottom: 0;
  width: 1px;
  height: clamp(56px, 9vh, 96px);
  background: var(--rule-lit);
  overflow: hidden;
}
.hero__cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stone);
  animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue {
  0%        { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

@media (max-width: 719px) {
  .hero { padding-bottom: clamp(40px, 6vh, 72px); }
  .hero__cue { display: none; }
  .hero__title { max-width: 13em; }
}

/* == 08 図版 ============================================================== */

figure { margin: 0; }

.fig { position: relative; overflow: hidden; }
.fig picture { display: block; width: 100%; height: 100%; }
.fig img { width: 100%; height: 100%; object-fit: cover; }

/* 下端が地に溶ける図版。ページの主役級の写真にだけ使う */
.fig--dissolve {
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(to bottom, #000 74%, rgba(0, 0, 0, 0) 100%);
}

.fig--wide { aspect-ratio: 16 / 9; }
.fig--pano { aspect-ratio: 21 / 9; }
.fig--4x3  { aspect-ratio: 4 / 3; }
.fig--tall { aspect-ratio: 3 / 4; }
.fig--sq   { aspect-ratio: 1 / 1; }

@media (max-width: 719px) {
  /* 横長を保つと、幅 390 では縦が 170px ほどの隙間になる。
     頁の主役写真がその大きさでは何が写っているか分からない。
     原板と同じ比まで戻して、左右を切らずに縦を稼ぐ */
  .fig--pano { aspect-ratio: 16 / 9; }
}

.caption {
  margin-top: var(--s2);
  font-size: var(--fs-small);
  color: var(--dim);
  letter-spacing: 0.08em;
  max-width: 34em;
}

/* 写真と文章を左右に振る。--flip で軸を反転 */
.duo {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}
/* 行を明示する。--flip では文章が写真より左の列に入るので、
   自動配置のままだと文章が次の行へ送られてしまう */
.duo__media, .duo__body { grid-row: 1; }
.duo__media { grid-column: 1 / 7; }
.duo__body  { grid-column: 8 / 13; }
.duo--flip .duo__media { grid-column: 7 / 13; }
.duo--flip .duo__body  { grid-column: 1 / 6; }

@media (max-width: 899px) {
  .duo { grid-template-columns: 1fr; gap: var(--s4); }
  .duo__media, .duo__body,
  .duo--flip .duo__media, .duo--flip .duo__body { grid-column: auto; grid-row: auto; }
}

/* == 09 施工例 ============================================================ */

/* 一覧。並びは HTML 側の w-- クラスで決める。
   施工例を足すときは li に配置クラスを付けるだけでよい */
.works {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 112px) var(--gutter);
}

.w--full    { grid-column: 1 / -1; }
.w--left    { grid-column: 1 / 7; }
.w--right   { grid-column: 7 / 13; }
.w--left-n  { grid-column: 1 / 6; }
.w--right-n { grid-column: 8 / 13; }
.w--center  { grid-column: 3 / 11; }
.w--drop    { margin-top: clamp(0px, 9vw, 128px); }

@media (max-width: 899px) {
  .works { grid-template-columns: 1fr; gap: clamp(40px, 9vw, 72px); }
  .works > li { grid-column: auto !important; margin-top: 0 !important; }
}

.work-link { display: block; }
.work-link .fig { background: var(--ink-raise); }
.work-link img { transition: transform 1.2s var(--ease-slow); }
.work-link:hover img,
.work-link:focus-visible img { transform: scale(1.035); }

.work-meta {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-top: var(--s2);
  border-top: 1px solid var(--rule);
  padding-top: var(--s2);
  transition: border-color 0.5s var(--ease);
}
.work-meta__no {
  font-family: var(--font-en);
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.work-meta__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.1em;
  color: var(--stone);
}
.work-link:hover .work-meta,
.work-link:focus-visible .work-meta { border-color: var(--rule-lit); }

/* ひとつに触れているあいだ、ほかを暗く落とす */
@media (hover: hover) and (min-width: 900px) {
  .work-link { transition: opacity 0.55s var(--ease); }
  .works:has(.work-link:hover) .work-link:not(:hover),
  .works:has(.work-link:focus-visible) .work-link:not(:focus-visible) { opacity: 0.4; }
}

/* 詳細ページ */
.work-head { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 128px)); }

.work-index {
  display: flex;
  align-items: flex-end;
  gap: var(--gutter);
}
.work-index .numeral { flex: none; }

.work-info {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
  border-top: 1px solid var(--rule);
  padding-top: var(--s4);
}
@media (max-width: 899px) {
  .work-info { grid-template-columns: 1fr; gap: var(--s3); }
}

/* 次の施工例へ。写真そのものを導線にする */
.next-work { position: relative; display: block; overflow: hidden; }
.next-work .fig { aspect-ratio: 21 / 7; }
.next-work img { transition: transform 1.4s var(--ease-slow); }
.next-work:hover img, .next-work:focus-visible img { transform: scale(1.05); }
/* 写真の上に置く題。一面に薄墨を敷くと写真が濁るうえ、
   明るい柱や硝子に重なった字は読めなくなる。
   ヒーローと同じ考えで下端だけを地へ沈め、その中に字を置く */
.next-work__veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--s2);
  padding: var(--pad);
  /* 下端は地の炭と同じ色まで沈めきる。板を一枚置いたようには見えず、
     写真がそのまま次の節へ溶けていくように見える。
     小さいラベルの載る帯まで濃さが届くよう、中ほどで一段深くしてある */
  background: linear-gradient(to bottom,
      rgba(12, 12, 11, 0) 16%,
      rgba(12, 12, 11, 0.36) 42%,
      rgba(12, 12, 11, 0.86) 64%,
      rgba(12, 12, 11, 0.96) 82%,
      rgba(12, 12, 11, 0.98) 100%);
}
.next-work__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(21px, 3.4vw, 40px);
  letter-spacing: 0.09em;
  color: var(--stone);
  /* 触れたときの反応は写真の寄りと題の送りで出す。
     覆いを薄くして写真を明るくすると、そのぶん字が沈む */
  transition: transform 0.6s var(--ease);
}
.next-work:hover .next-work__title,
.next-work:focus-visible .next-work__title { transform: translateX(8px); }
.next-work__veil .label { color: var(--dust); }
@media (max-width: 719px) {
  /* 横長のままだと縦が二百数十ピクセルしかなく、字の塊が写真の
     まだ明るいところまで届いてしまう。縦位置に組み替えて、
     字は下端の沈んだ帯のなかだけに収める。
     縦位置まで倒すと頁の主役写真より大きくなってしまうので、正方でとめる */
  .next-work .fig { aspect-ratio: 1 / 1; }
}

/* 前へ・一覧へ */
.work-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
}
@media (max-width: 559px) {
  .work-nav { flex-direction: column; gap: var(--s2); }
}

/* 行き先の一覧。404 のように、そこから進むしかない場面で使う。
   並んだ文字のままでは押せると分からないので、一段ずつ罫で切って矢印を置く */
.routes { border-top: 1px solid var(--rule); max-width: 34em; }
.routes a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--rule);
  color: var(--stone);
  transition: padding-left 0.4s var(--ease), border-color 0.4s var(--ease);
}
.routes a::after {
  content: "→";
  color: var(--dim);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.routes a:hover, .routes a:focus-visible { padding-left: 10px; border-bottom-color: var(--edge); }
.routes a:hover::after, .routes a:focus-visible::after {
  transform: translateX(6px);
  color: var(--stone);
}

/* == 10 表・フォーム・ボタン ============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 14px 30px;
  /* 押せる範囲を示す輪郭なので、飾りの罫より明るい段を使う */
  border: 1px solid var(--edge);
  background: none;
  color: var(--stone);
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease),
              color 0.45s var(--ease);
}
.btn::after {
  content: "";
  width: 20px; height: 1px;
  background: currentColor;
  transition: width 0.45s var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--ink);
}
.btn:hover::after, .btn:focus-visible::after { width: 30px; }

.btn--solid {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--ink);
}
.btn--solid:hover, .btn--solid:focus-visible {
  background: none;
  border-color: var(--edge);
  color: var(--stone);
}

/* 定義リスト */
.deflist { border-top: 1px solid var(--rule); }
.deflist > div {
  display: grid;
  grid-template-columns: clamp(96px, 14vw, 176px) minmax(0, 1fr);
  gap: var(--gutter);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--rule);
}
.deflist dt {
  font-size: var(--fs-small);
  color: var(--dim);
  letter-spacing: 0.12em;
}
.deflist dd { color: var(--stone); }
@media (max-width: 559px) {
  .deflist > div { grid-template-columns: 1fr; gap: 4px; }
}

/* 電話番号を大きく見せる */
.tel-lg {
  font-family: var(--font-en);
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--stone);
  font-variant-numeric: lining-nums tabular-nums;
  display: inline-block;
  line-height: 1.3;
  white-space: nowrap;
  /* そのまま掛けられる。置いてあるだけの数字と見分けがつくよう、触れると線が出る */
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.tel-lg:hover, .tel-lg:focus-visible { border-bottom-color: currentColor; }
/* 脇に置くときは、周りの文字とのつり合いで一段落とす */
.contact-split__aside .tel-lg { font-size: clamp(26px, 2.5vw, 34px); }

/* フォーム */
.form { max-width: 40em; }
.field + .field { margin-top: var(--s4); }

.field > label,
.field > .field-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--dust);
  margin-bottom: 10px;
}
.req {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: var(--dust);
  padding: 3px 7px;
  line-height: 1;
}
.opt {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  border: 1px solid var(--rule-lit);
  padding: 2px 6px;
  line-height: 1.3;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--ink-raise);
  /* 地との塗り分けだけでは境目が出ないので、輪郭が入力欄の形を伝えている */
  border: 1px solid var(--edge);
  border-radius: 0;
  color: var(--stone);
  font-size: 16px; /* iOS で拡大させない */
  line-height: 1.9;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 190px; resize: vertical; }
/* 例示は書き方の案内そのものなので、読める濃さで置く */
.field input::placeholder, .field textarea::placeholder { color: #827E74; }
.field input:hover, .field textarea:hover { border-color: var(--dust); }
/* 枠の色を一段上げるだけでは、いま入力しているのがどこか掴みにくい。
   輪郭は消さず、画面全体で使っているものをそのまま出す */
.field input:focus, .field textarea:focus {
  border-color: var(--stone);
  background: #191817;
}
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }

.field[data-invalid] input,
.field[data-invalid] textarea { border-color: #B8695E; }

.field-error {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: var(--fs-small);
  color: #E3A79E;
  line-height: 1.7;
}
.field-error::before { content: "—"; flex: none; }

/* 同意のチェックボックス */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: var(--s4);
  padding: var(--s3);
  border: 1px solid var(--edge);
  background: var(--ink-raise);
  cursor: pointer;
  font-size: var(--fs-small);
  line-height: 1.9;
}
.consent input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 5px;
  accent-color: var(--stone);
}

/* reCAPTCHA。widget は Google の iframe なので中身には手を入れられない。
   幅 304px は固定で、狭い画面でも版面から溢れないよう横だけ逃がしておく */
.captcha {
  margin-top: var(--s4);
  overflow-x: auto;
}
.captcha .g-recaptcha { min-width: 304px; }
.captcha .field-error { margin-top: var(--s2); }
.captcha noscript p { margin-top: var(--s2); }

/* 送信前にまとめて出すエラー */
.form-alert {
  border: 1px solid #6B403A;
  background: #1C1513;
  padding: var(--s3);
  margin-bottom: var(--s4);
  font-size: var(--fs-small);
  line-height: 1.9;
}
.form-alert > p { color: #E8B7B0; }
.form-alert ul { margin-top: 8px; }
.form-alert li { color: var(--dust); padding-left: 1.1em; text-indent: -1.1em; }
.form-alert li::before { content: "—"; margin-right: 0.5em; color: var(--dim); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 提携パートナー。囲うとカードに見えるので、上下の罫と縦の仕切りだけで区切る */
.partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  gap: 1px;
  background: var(--rule);
}
.partner-cell {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 184px;
  padding: var(--s4) var(--s3);
  transition: background-color 0.45s var(--ease);
}
a.partner-cell:hover, a.partner-cell:focus-visible { background: var(--ink-raise); }

/* 二社の図案は素性が違う（片方は石の立体、片方は横長の文字）。
   同じ高さに揃えると釣り合わないので、目方が揃って見える大きさを別々に決める */
.partner-lockup { display: flex; align-items: center; gap: 24px; }
.partner-lockup img { height: 80px; width: auto; background: none; }
.partner-mark { height: 26px; width: auto; background: none; }
.partner-name {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: 0.12em;
  color: var(--stone);
  white-space: nowrap;
}

@media (max-width: 899px) {
  .partners { grid-template-columns: 1fr; }
  /* 三社は載っているものの形が違う（図案と名前／文字の図案／名前だけ）。
     横並びなら中央で揃うが、縦に積むと中心がばらついて見える。
     縦に積んだものは一覧として読むので、左に軸を通す */
  .partner-cell { min-height: 132px; padding: var(--s3); justify-content: flex-start; }
  .partner-lockup img { height: 62px; }
  .partner-mark { height: 24px; }
}

/* ページ見出し */
.page-head {
  padding-top: calc(var(--header-h) + clamp(64px, 10vw, 144px));
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-head .display { margin-top: var(--s3); }

/* 長い文書（個人情報の取り扱いなど） */
.prose { max-width: 42em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h3);
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-top: var(--s5);
  margin-bottom: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p + p { margin-top: 1.4em; }
.prose ul { margin-top: var(--s2); }
.prose li { padding-left: 1.2em; text-indent: -1.2em; }
.prose li::before { content: "—"; margin-right: 0.6em; color: var(--dim); }

/* 結びの二段組。左に文、右に連絡先 */
.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s5) clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 899px) {
  .contact-row { grid-template-columns: 1fr; gap: var(--s4); }
}

/* 問い合わせ画面。左に入力、右に電話とメール。
   入力欄の行長は .form の 40em で決まるので、列もそこに合わせる */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 40em) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.contact-split__aside {
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 3vw, 48px);
}
@media (max-width: 899px) {
  .contact-split { grid-template-columns: 1fr; gap: var(--s6); }
  .contact-split__aside {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: var(--s4);
    /* 縦に並べたときは、入力欄と同じところで揃えないと
       区切り線だけが右に伸びてしまう */
    max-width: 40em;
  }
}

/* == 11 モーション ======================================================== */

/* 文字は静かに上がる */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* 写真は覆いが引かれるように現れる。
   要素そのものを clip すると IntersectionObserver の交差矩形が
   ゼロになって発火しなくなるので、覆いは内側の picture に掛ける */
[data-reveal="mask"] {
  opacity: 1;
  transform: none;
}
[data-reveal="mask"] > picture {
  display: block;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease-slow);
  transition-delay: var(--delay, 0s);
}
[data-reveal="mask"].is-in > picture { clip-path: inset(0 0 0 0); }
[data-reveal="mask"] img {
  transform: scale(1.07);
  transition: transform 1.6s var(--ease-slow);
  transition-delay: var(--delay, 0s);
}
[data-reveal="mask"].is-in img { transform: none; }

/* 読み込み時、ヒーローを一行ずつ */
.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-slow);
  transition-delay: var(--delay, 0s);
}
.is-ready .line > span { transform: none; }

.hero__media { transform: scale(1.06); transition: transform 1.9s var(--ease-slow); }
.is-ready .hero__media { transform: none; }

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease) 0.4s, transform 1s var(--ease) 0.4s;
}
.is-ready .fade-up { opacity: 1; transform: none; }

/* 画面遷移 */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal="mask"] > picture { clip-path: none; }
  [data-reveal="mask"] img { transform: none; }
  .line > span { transform: none; }
  .hero__media { transform: none; }
  .fade-up { opacity: 1; transform: none; }
  .hero__cue::after { animation: none; }
}

/* == 12 印刷 ============================================================== */

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .hero__cue, .next-work { display: none; }
  .display, .h1, .h2, .h3, .work-meta__title, .deflist dd { color: #000; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
