/* 旭営繕建設株式会社 — 共通スタイル */

:root {
  --ground:      #ffffff;
  --ground-alt:  #f3f6f8;
  --panel:       #ffffff;
  --ink:         #16212c;
  --ink-2:       #4f616d;
  --ink-3:       #8496a2;
  --rule:        #e2e8ed;
  --rule-strong: #b7c4ce;
  --navy:        #133a62;
  --navy-2:      #0b2745;
  --sky:         #dceaf5;
  --sky-deep:    #7ba7c8;
  --mark:        #8a6520;
  --mark-soft:   #f6f0e3;
  --hero-top:    #e6f1f9;
  --hero-mid:    #f4f9fc;
  --hero-bot:    #ffffff;
  --glow:        rgba(120, 175, 220, .30);
  --lift:        0 1px 1px rgba(18,40,60,.04), 0 18px 40px -26px rgba(18,40,60,.45);
  --ease:        cubic-bezier(.22,.61,.36,1);
  /* ゆっくり減速する曲線。写真の出し方はこちらで統一する */
  --ease-out:    cubic-bezier(.16,1,.3,1);
  /* ロゴから拾った緑。罫・リンク・選択状態だけに使う差し色 */
  --green:       #00713c;
  --green-soft:  #e4f1e9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0a1017;
    --ground-alt:  #0f1922;
    --panel:       #0f1922;
    --ink:         #e3eaef;
    --ink-2:       #a5b4bf;
    --ink-3:       #76868f;
    --rule:        #1f2c36;
    --rule-strong: #3a4c58;
    --navy:        #8fbde4;
    --navy-2:      #bcdcf6;
    --sky:         #142637;
    --sky-deep:    #4a769b;
    --mark:        #cb9d52;
    --mark-soft:   #221b0f;
    --hero-top:    #0f2131;
    --hero-mid:    #0c1722;
    --hero-bot:    #0a1017;
    --glow:        rgba(90, 150, 200, .22);
    --lift:        0 1px 1px rgba(0,0,0,.4), 0 18px 40px -26px rgba(0,0,0,.9);
    --green:       #5cb98a;
    --green-soft:  #13291e;
  }
}

:root[data-theme="dark"] {
  --ground:      #0a1017;
  --ground-alt:  #0f1922;
  --panel:       #0f1922;
  --ink:         #e3eaef;
  --ink-2:       #a5b4bf;
  --ink-3:       #76868f;
  --rule:        #1f2c36;
  --rule-strong: #3a4c58;
  --navy:        #8fbde4;
  --navy-2:      #bcdcf6;
  --sky:         #142637;
  --sky-deep:    #4a769b;
  --mark:        #cb9d52;
  --mark-soft:   #221b0f;
  --hero-top:    #0f2131;
  --hero-mid:    #0c1722;
  --hero-bot:    #0a1017;
  --glow:        rgba(90, 150, 200, .22);
  --lift:        0 1px 1px rgba(0,0,0,.4), 0 18px 40px -26px rgba(0,0,0,.9);
  --green:       #5cb98a;
  --green-soft:  #13291e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* #付きリンクで飛んだとき、固定ヘッダーの下に見出しが隠れないようにする */
[id] { scroll-margin-top: 96px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 禁則処理を厳密にする（小書き仮名や長音符が行頭に来ないようにする） */
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

/* 本文は両端揃え。日本語は右端が揃うと行末の乱れが目立たなくなる。
   中央揃えの社是と、短い表のセルは除く。 */
.section-head p,
.page-head .lead,
.cat p,
.catpanel-body p,
.note {
  text-align: justify;
  text-justify: inter-ideograph;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

h1, h2, h3, .mincho {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  text-wrap: balance;
  letter-spacing: .11em;
  line-height: 1.75;
  margin: 0;
}
.mono {
  font-family: "Roboto Mono", ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* ══ 骨組み ════════════════════════════ */

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: 840px; }

/* ── スクロール進捗 ── */
.scroll-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--navy);
  transform-origin: left;
  transition: width .08s linear;
}

/* ── ヘッダー ── */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 10px 30px -28px rgba(18,40,60,.7);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  padding-block: 16px;
  transition: padding .35s var(--ease);
}
.site-header.is-stuck .wrap { padding-block: 11px; }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; overflow: visible; }
.brand-mark .sun {
  transform-origin: 13px 18.5px;
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark .sun { transform: translateY(-2.5px) scale(1.06); }
.brand-text { display: grid; gap: 2px; min-width: 0; }
.brand-text .jp {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .16em;
  line-height: 1.3;
  white-space: nowrap;
}
.brand-text .en {
  font-family: "Roboto Mono", monospace;
  font-size: .55rem;
  letter-spacing: .26em;
  color: var(--ink-3);
  white-space: nowrap;
}

.site-nav { display: flex; gap: clamp(14px, 1.7vw, 26px); align-items: center; }
.site-nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: .84rem;
  letter-spacing: .07em;
  padding-block: 6px;
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--navy); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex: none;
  width: 40px;
  height: 34px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform .34s var(--ease), opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 16.5px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
    padding: 6px 24px 20px;
    transform-origin: top;
    animation: navIn .3s var(--ease) both;
  }
  .site-nav a { padding-block: 13px; border-bottom: 1px solid var(--rule); font-size: .92rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--navy); }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ══ ヒーロー ══════════════════════════ */

.hero {
  position: relative;
  overflow: hidden;
  background: #0d2036;
  border-bottom: 1px solid var(--rule);
}

/* 写真 */
/* 写真は3枚重ね。
   .hero-media  … カーソル追従（JSがtransformを書く）
   .hero-drift  … 画面全体のごく遅い流れ
   .hero-sky    … 同じ写真の上部だけを切り出し、速く流す＝雲が動いて見える */
.hero-media {
  position: absolute;
  inset: 0;
}

/* 動画の代わりに、写真を入れ替えながらゆっくり流す */
/* 切り替えは「浮かび上がる」。次の写真は少し下・少し大きい状態から、
   ゆっくり明るくなりながら元の位置に収まる。前の写真はその場で薄れる。
   スライドに z-index を与えると文字の上に乗ってしまうので付けない。 */
/* 切り替えは、ゆっくりした重ね合わせ。次の写真は少し寄った状態から引いて落ち着き、
   前の写真はその場で少し沈む（大林組のトップと同じ組み立て）。
   マスクや幕は使わない。文字の手前に出ないよう、スライドに z-index も与えない。
   重なり順は JS が新しいスライドを最後尾へ移して決める。 */
.hero-slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
}
.hero-slide.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1);
}
.hero-slide.was-on {
  opacity: 1;
  visibility: visible;
  transition: none;
}
.slide-media { position: absolute; inset: 0; }
/* 引きの動き（heroSettle）を続けたまま沈ませる。片方だけにすると、切り替わる瞬間に写真の大きさが跳ぶ */
.hero-slide.was-on .slide-media > img { animation: heroSettle 12s linear both, heroSink 2.2s var(--ease-out) both; }
@keyframes heroSink {
  from { filter: saturate(1.18) contrast(1.04) brightness(1); }
  to   { filter: saturate(1.05) contrast(1.02) brightness(.72); }
}
.slide-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.04);
  transform: scale(1.10);
}
/* 写真は少し寄った状態から、ゆっくり引いて落ち着く（大林組のトップと同じ向き） */
.hero-slide.is-on .slide-media > img { animation: heroSettle 12s linear both; }
@keyframes heroSettle {
  from { transform: scale(1.10) translate3d(0, 0, 0); }
  to   { transform: scale(1.02) translate3d(-.6%, -.4%, 0); }
}
/* 1枚目に戻ったときだけ雲の層を出す */
.hero-slide[data-slide="0"] .hero-sky { transition: opacity .8s var(--ease-out); }

.hero-drift {
  position: absolute;
  inset: 0;
  /* 空の層と逆向きに動かして、相対的な流れを倍にする */
  animation: driftBase 46s ease-in-out infinite alternate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 95%;
  transform: scale(1.08);
  /* 色補正は hero.jpg に焼き込んである。
     ここで filter をかけると合成レイヤーに切り出され、
     拡大中の写真が一段低い解像度で描き直されて眠くなる。 */
  /* 引きの画から寄っていって、作業員の位置で止まる。
     歩く速さに近づけるため、ほぼ等速で進んで最後だけ減速する曲線を使う */
  animation: heroApproach 2.6s cubic-bezier(.38, .12, .22, 1) both;
}
@keyframes heroApproach {
  from { transform: scale(1.0) translateY(2.2%); }
  to   { transform: scale(1.08) translateY(0); }
}
@keyframes driftBase {
  from { transform: translateX(1.8%); }
  to   { transform: translateX(-1.8%); }
}

/* 雲の層。作業員のヘルメット（約44%）より上だけを使い、
   境目は下に向かって溶かすので継ぎ目が出ない。 */
.hero-sky {
  position: absolute;
  inset: 0;
  background-image: url("hero.jpg");
  background-size: cover;
  background-position: center 95%;
  transform: scale(1.08);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 16%, rgba(0,0,0,.82) 26%, rgba(0,0,0,.45) 34%, rgba(0,0,0,.15) 40%, transparent 46%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 16%, rgba(0,0,0,.82) 26%, rgba(0,0,0,.45) 34%, rgba(0,0,0,.15) 40%, transparent 46%);
  /* 寄りが止まってから雲が流れはじめる */
  animation: driftSky 46s ease-in-out 2.6s infinite alternate, fadeIn 2.6s var(--ease-out) backwards;
}
@keyframes driftSky {
  from { transform: scale(1.08) translate(-4.5%, -.8%); }
  to   { transform: scale(1.08) translate(4.5%, .8%); }
}

/* 文字を読ませるための覆い。写真を暗くしないよう、文字の下だけに絞る。
   ヒーロー全体に掛けると、めくっている途中の和紙のページにまで影が乗るので、
   写真のスライドの中に入れて、ページと一緒にめくられるようにする。 */
.hero-veil { display: none; }
.hero-slide:not(.hero-slide--hanga) .slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to left,
      rgba(6, 18, 32, .50) 0%,
      rgba(6, 18, 32, .30) 18%,
      rgba(6, 18, 32, .08) 38%,
      rgba(6, 18, 32, 0) 56%),
    linear-gradient(to bottom,
      rgba(6, 18, 32, .16) 0%,
      rgba(6, 18, 32, 0) 20%);
}
@media (max-width: 640px) {
  .hero-slide:not(.hero-slide--hanga) .slide-media::after {
    background: linear-gradient(to bottom,
      rgba(6, 18, 32, .20) 0%,
      rgba(6, 18, 32, .34) 40%,
      rgba(6, 18, 32, .46) 100%);
  }
}@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* カーソルに追う光 */
.hero-glow {
  position: absolute;
  top: 0; left: 0;
  width: 760px; height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s var(--ease);
  will-change: transform;
  mix-blend-mode: screen;
}
.hero.is-live .hero-glow { opacity: 1; }

.hero .wrap {
  position: relative;
  min-height: clamp(460px, 80vh, 720px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: clamp(52px, 8vw, 88px);
}

.hero-copy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  /* 版画の筆文字に寄せる。Yuji Boku は太く粗い筆。読み込めなければ明朝に落ちる */
  font-family: "Yuji Boku", "Yuji Syuku", "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.05rem);
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: .2em;
  color: #ffffff;
  text-shadow: 0 2px 26px rgba(4, 14, 26, .65), 0 1px 4px rgba(4, 14, 26, .5);
  max-height: 400px;
  margin: 0;
}
/* 縦書きでは block 要素が右から左へ「列」として並ぶ。
   flex にすると1列に潰れるので使わないこと。 */
/* 写真が先に出きってから、文字がぼやけた状態から浮き上がってくる */
.hero-copy .ln {
  display: block;
  animation: lineEmerge 1.5s var(--ease) both;
}
/* 寄りが止まる 2.6 秒の直前から出はじめる */
/* 白い文字は書体ではなく、版画の筆文字そのものを白く切り抜いた画像。
   縦書きの2列を、版画と同じ並び（右が「手を抜いたら」）で置く。 */
.hero-copy--art {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(8px, 1.1vw, 14px);
  height: clamp(230px, 44vh, 330px);
  max-height: none;
}
.hero-copy--art .ln {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 2px 14px rgba(4, 14, 26, .55)) drop-shadow(0 1px 3px rgba(4, 14, 26, .5));
}
@media (max-width: 640px) {
  .hero-copy--art { height: clamp(170px, 34vh, 230px); }
}

/* 出だしの間は JS が差し替える（2枚目に切り替わった直後は短く） */
.hero-copy .ln:nth-child(1) { animation-delay: var(--ln-d1, 2.35s); }
.hero-copy .ln:nth-child(2) { animation-delay: var(--ln-d2, 2.65s); }
.hero-copy .ln:nth-child(3) { animation-delay: var(--ln-d3, 2.95s); }
@keyframes lineEmerge {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateX(-16px) scale(1.07);
  }
  55% { opacity: 1; }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
.hero-copy .accent {
  color: #bfe0ff;
  position: relative;
}

@media (max-width: 640px) {
  .hero .wrap { justify-content: center; }
  .hero-copy { max-height: 300px; font-size: 1.3rem; line-height: 2.1; }
}

.hero-scroll {
  position: absolute;
  right: 26px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: "Roboto Mono", monospace;
  font-size: .56rem;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .8);
  writing-mode: vertical-rl;
  animation: fadeIn .9s var(--ease-out) 4.1s backwards;
}
.hero-scroll .track {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, .32);
  position: relative;
  overflow: hidden;
}
.hero-scroll .track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  animation: scrollCue 2.1s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@media (max-width: 640px) { .hero-scroll { display: none; } }

/* ══ 社是 ══════════════════════════════ */

.motto .wrap {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 30px;
}
.motto .eyebrow { margin: 0; justify-content: center; }

/* 版画そのもの。額装のように白地で見せる */
.motto-art {
  margin: 0;
  max-width: 330px;
  width: 100%;
  background: #ffffff;
  padding: clamp(12px, 1.6vw, 20px);
  border: 1px solid var(--rule);
  box-shadow: var(--lift);
}
.motto-art img { width: 100%; height: auto; }

.motto-phrase {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  letter-spacing: .18em;
  line-height: 1.8;
  margin: 0;
}
.motto-body {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(.94rem, .88rem + .3vw, 1.02rem);
  line-height: 2.4;
  letter-spacing: .08em;
  color: var(--ink-2);
  /* 1行目が「…と申します。」で収まる幅。<br> があるので幅が変わっても
     「す。」だけが取り残されることはない */
  max-width: 42em;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  /* 行の長さを揃える。これがないと「ます。」だけが1行に取り残される幅が出る */
  text-wrap: balance;
}
@media (max-width: 820px) {
  .motto-body br { display: none; }
}

/* ══ ページ見出し ══════════════════════ */

.page-head {
  position: relative;
  background: var(--ground-alt);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
/* 写真をはっきり見せ、濃紺を重ねて白文字を乗せる「章扉」にする。
   薄く透かすと写真が濁って見えるので、しっかり暗くする。 */
.page-head-media { position: absolute; inset: 0; pointer-events: none; }
.page-head-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(.92) contrast(1.04);
}
.page-head-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(8, 22, 38, .92) 0%,
      rgba(8, 22, 38, .80) 38%,
      rgba(8, 22, 38, .52) 74%,
      rgba(8, 22, 38, .42) 100%),
    linear-gradient(to bottom, rgba(8, 22, 38, .5) 0%, rgba(8, 22, 38, 0) 34%);
}
.page-head .wrap { position: relative; padding-block: clamp(56px, 8.5vw, 104px); display: grid; gap: 16px; }
.page-head .eyebrow { color: #ffffff; }
.page-head h1 { color: rgba(255, 255, 255, .9); }
.page-head .lead { color: rgba(255, 255, 255, .8); }
.page-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.25rem); }
.page-head .lead { margin: 0; color: var(--ink-2); max-width: 58ch; font-size: .95rem; }

/* ゼネコン各社に倣い、欧文は専用書体で大きく、和文は小さく軽く置く */
.eyebrow {
  display: block;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);
  line-height: .98;
  letter-spacing: .015em;
  color: var(--navy);
  margin-bottom: 10px;
  font-feature-settings: normal;
}
.eyebrow::before { content: none; }

/* 英字の下に来る和文は一段落として、英字を主役にする */
.section-head h2,
.page-head h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, .94rem + .3vw, 1.15rem);
  letter-spacing: .2em;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ══ セクション ════════════════════════ */

.section { padding-block: clamp(60px, 9.5vw, 116px); }
.section-alt { background: var(--ground-alt); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(30px, 4.5vw, 54px); }
.section-head h2 { font-size: clamp(1.35rem, 1.05rem + 1.25vw, 1.85rem); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 60ch; font-size: .92rem; }

.grid { display: grid; gap: clamp(22px, 3vw, 36px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

/* ══ 写真枠 ════════════════════════════ */

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  background: var(--sky);
  border: 1px solid var(--rule);
  display: grid;
  place-content: center;
  padding: 16px;
}
.photo::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(135deg,
    transparent 0 9px,
    color-mix(in srgb, var(--sky-deep) 20%, transparent) 9px 10px);
  transition: transform .9s var(--ease);
}
.photo:hover::before { transform: translate(10px, -10px); }
.photo span {
  position: relative;
  font-family: "Roboto Mono", monospace;
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--ink-3);
  background: var(--ground);
  padding: 5px 11px;
  border: 1px solid var(--rule);
  text-align: center;
}
.photo-wide { aspect-ratio: 16 / 9; }

/* 実写真を入れる場合（img 要素）。斜線のプレースホルダとは別扱い */
img.photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  background: var(--sky);
  transition: filter .5s var(--ease);
}
img.photo:hover { filter: saturate(1.06) brightness(1.03); }

/* ══ 用途別ブラウザ（トップ） ══════════ */

.catbrowser { display: grid; gap: 26px; }
.catpanel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
/* 切り替えは写真が左からワイプし、本文が少し遅れて入る。
   fill を指定しないので、アニメーションが動かない環境でも
   要素は本来の「見える」状態のままになる（中身が消えない）。 */
.catpanel > .photo { animation: panelPhoto 1.05s var(--ease-out); }
.catpanel > .catpanel-body { animation: panelBody 1.05s var(--ease-out); }
/* 透明度は動かさない。アニメーションが止まる環境でも中身が消えないようにする */
@keyframes panelPhoto {
  from { transform: scale(1.09) translateX(-14px); }
  to   { transform: none; }
}
@keyframes panelBody {
  from { transform: translateY(22px); }
  to   { transform: none; }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 760px) { .catpanel { grid-template-columns: 1fr; } }

.catpanel .photo { aspect-ratio: 3 / 2; }
.catpanel-body { display: grid; gap: 15px; align-content: center; }
.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem);
  letter-spacing: .12em;
  line-height: 1.5;
  color: var(--ink);
}
.catpanel-body h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--ink-2);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.catpanel-body p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 2.05; }

.catthumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
/* 狭い画面では、箱を並べず横スクロールの帯にする */
@media (max-width: 900px) {
  .catthumbs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin-inline: -24px;
    padding-inline: 24px;
    scrollbar-width: none;
  }
  .catthumbs::-webkit-scrollbar { display: none; }
  .catthumb { flex: 0 0 46%; scroll-snap-align: start; }
}
@media (max-width: 520px) { .catthumb { flex-basis: 64%; } }

.catthumb {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  gap: 0;
  text-align: left;
  font: inherit;
  color: var(--ink-3);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.catthumb:hover { transform: translateY(-3px); color: var(--ink-2); }
.catthumb .chip {
  aspect-ratio: 16 / 10;
  background: var(--sky) center / cover no-repeat;
  position: relative;
  overflow: hidden;
  filter: grayscale(.55) brightness(.94);
  transition: filter .45s var(--ease), outline-color .3s var(--ease);
  outline: 2px solid transparent;
  outline-offset: -2px;
}
.catthumb:hover .chip,
.catthumb[aria-selected="true"] .chip { filter: none; }
.catthumb[aria-selected="true"] .chip { outline-color: var(--navy); }
/* 選択中だけ、写真の下に細い線を引く */
.catthumb .label {
  font-size: .7rem;
  letter-spacing: .06em;
  padding: 10px 0 0;
  line-height: 1.55;
  position: relative;
}
.catthumb .label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width .45s var(--ease-out);
}
.catthumb[aria-selected="true"] { color: var(--ink); }
.catthumb[aria-selected="true"] .label::before { width: 28px; }

/* ══ 数字 ══════════════════════════════ */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.fig {
  background: var(--panel);
  padding: clamp(26px, 3.4vw, 40px) clamp(20px, 2.4vw, 30px);
  display: grid;
  gap: 8px;
  align-content: start;
}
.fig-num {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--navy);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 2.6vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.fig-num .unit {
  font-size: .32em;
  letter-spacing: .12em;
  color: var(--ink-2);
  font-weight: 500;
}
.fig-num .txt { font-size: .62em; letter-spacing: .08em; }
.fig-label {
  margin: 0;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink);
  padding-top: 6px;
  border-top: 2px solid var(--green);
  justify-self: start;
}
.fig-sub { margin: 0; font-size: .76rem; color: var(--ink-3); line-height: 1.75; }

/* ══ 写真ギャラリー ════════════════════ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.gallery figure {
  margin: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.gallery .frame {
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--sky);
  aspect-ratio: 3 / 2;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .5s var(--ease);
}
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1.08); }
.gallery figcaption {
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--ink-2);
  line-height: 1.6;
  padding-left: 14px;
  border-left: 2px solid var(--navy);
}

/* ══ 全幅の写真帯（章の区切り） ════════ */

.band {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 52vh, 560px);
  display: grid;
  align-items: center;
  background: #08131f;
}
.band-media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(6, 18, 32, .82) 0%,
    rgba(6, 18, 32, .52) 38%,
    rgba(6, 18, 32, .12) 68%,
    rgba(6, 18, 32, 0) 100%);
}
.band .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 7vw, 88px);
}
.band-copy {
  max-width: 24em;
  margin: 0;
  color: #fff;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.15rem, .95rem + 1vw, 1.7rem);
  line-height: 2.1;
  letter-spacing: .1em;
  text-shadow: 0 2px 22px rgba(4, 14, 26, .55);
}
.band-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  letter-spacing: .08em;
}

/* ══ 濃紺のセクション ══════════════════ */

.section-ink {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(38, 92, 148, .38) 0%, transparent 62%),
    linear-gradient(168deg, #10263f 0%, #0b1b2d 58%, #08131f 100%);
  color: #d9e6f0;
}
.section-ink .section-head h2 { color: #ffffff; }
.section-ink .section-head p,
.section-ink p { color: #a6bed2; }
.section-ink .eyebrow { color: #ffffff; }
.section-ink .section-head h2 { color: rgba(255,255,255,.72); }
.section-ink .more { color: #a8d4f7; }
.section-ink .more::after { background: #a8d4f7; }

/* ══ 汎用カード ════════════════════════ */

.cat { display: grid; gap: 14px; align-content: start; }
.cat h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: .96rem;
  letter-spacing: .1em;
}
.cat p { margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 2; }

/* ══ リンク・ボタン ════════════════════ */

.more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: .1em;
  justify-self: start;
}
.more::after {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--navy);
  transition: width .45s var(--ease-out);
}
.more:hover::after { width: 54px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 38px;
  background: var(--navy);
  color: var(--ground);
  text-decoration: none;
  font-size: .89rem;
  letter-spacing: .12em;
  border: 1px solid var(--navy);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--ground); border-color: var(--navy-2); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--rule-strong); }
.btn-ghost::before { background: var(--navy); }
.btn-ghost:hover { color: var(--ground); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ══ 誘導ブロック ══════════════════════ */

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  border-top: 1px solid var(--rule);
}
.feature > a {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: center;
  padding: clamp(40px, 6.5vw, 72px) clamp(24px, 4vw, 60px);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--panel);
  overflow: hidden;
  transition: color .3s var(--ease);
}
.feature > a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ground-alt);
  transform: translateY(100%);
  transition: transform .5s var(--ease);
}
.feature > a:hover::before { transform: translateY(0); }
.feature > a > * { position: relative; }
.feature h3 { font-size: 1.32rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .88rem; }

/* ══ 表 ════════════════════════════════ */

.spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec th, .spec td {
  border-top: 1px solid var(--rule);
  padding: 16px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.95;
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--rule); }
.spec th {
  width: 11.5em;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--ground-alt);
  white-space: nowrap;
}
.spec tbody tr { transition: background .25s var(--ease); }
.spec tbody tr:hover td { background: color-mix(in srgb, var(--sky) 34%, transparent); }
@media (max-width: 560px) {
  .spec th, .spec td { display: block; width: auto; white-space: normal; }
  .spec td { border-top: 0; padding-top: 4px; }
  .spec th { padding-bottom: 4px; }
}

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); }
.ledger { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .86rem; }
.ledger thead th {
  background: var(--ground-alt);
  color: var(--ink-2);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .14em;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
.ledger td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.85;
}
.ledger tbody tr { transition: background .25s var(--ease); }
.ledger tbody tr:hover td { background: color-mix(in srgb, var(--sky) 34%, transparent); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger .num { text-align: right; white-space: nowrap; }

/* ══ 記入が必要な箇所 ══════════════════ */

.tbd {
  color: var(--mark);
  background: var(--mark-soft);
  border-bottom: 1px dashed var(--mark);
  padding: 1px 6px;
  font-size: .84em;
  font-family: "Roboto Mono", monospace;
  white-space: nowrap;
}
.note { font-size: .8rem; color: var(--ink-3); margin: 0; line-height: 1.9; }
code {
  font-family: "Roboto Mono", monospace;
  font-size: .86em;
  background: var(--ground-alt);
  padding: 1px 5px;
  border: 1px solid var(--rule);
}

/* ══ お知らせ ══════════════════════════ */

.news { list-style: none; padding: 0; margin: 0; display: grid; }
.news li {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 4px 26px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding-left .35s var(--ease);
}
.news li:first-child { border-top: 1px solid var(--rule); }
.news li:hover { padding-left: 8px; }
.news time { font-family: "Roboto Mono", monospace; font-size: .74rem; color: var(--ink-3); letter-spacing: .08em; }
.news p { margin: 0; font-size: .89rem; }
@media (max-width: 520px) { .news li { grid-template-columns: 1fr; } }

/* ══ CTA 帯 ════════════════════════════ */

/* 木の写真を敷き、緑が残る程度に落として白文字を乗せる */
.cta { background: #0c2a22; color: #fff; position: relative; overflow: hidden; }
.cta-media {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 前に出すぎないよう、彩度と明るさを落として背景に沈める */
  filter: saturate(.5) brightness(.62) contrast(.95);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 120% at 50% 50%, rgba(8, 26, 38, .62) 0%, rgba(7, 22, 34, .76) 55%, rgba(6, 18, 28, .9) 100%),
    linear-gradient(to bottom, rgba(6, 18, 28, .42) 0%, rgba(6, 18, 28, 0) 34%);
  pointer-events: none;
}
.cta .wrap {
  position: relative;
  padding-block: clamp(50px, 7.5vw, 88px);
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}
.cta h2 {
  color: #ffffff;
  font-size: clamp(1.3rem, 1rem + 1.15vw, 1.8rem);
  text-shadow: 0 2px 22px rgba(3, 16, 13, .6);
}
.cta p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .9rem;
  text-shadow: 0 1px 14px rgba(3, 16, 13, .6);
}
.cta .eyebrow { color: #ffffff; }
.cta h2 + p, .cta .section-head h2 { color: rgba(255,255,255,.78); }
.cta .btn { background: #ffffff; color: #0c2a22; border-color: #ffffff; }
.cta .btn::before { background: #e8f3ec; }
.cta .btn:hover { color: #0c2a22; border-color: #e8f3ec; }

/* ══ フッター ══════════════════════════ */

.site-footer { border-top: 1px solid var(--rule); background: var(--ground-alt); }
.site-footer .wrap { padding-block: 48px 30px; display: grid; gap: 30px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px 52px; justify-content: space-between; }
.footer-contact { display: grid; gap: 3px; font-size: .86rem; color: var(--ink-2); }
.footer-contact strong {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: .14em;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-content: start; }
.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .84rem;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-nav a:hover { color: var(--navy); transform: translateX(3px); }
.copyright {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  font-family: "Roboto Mono", monospace;
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--ink-3);
}

/* ── ページ先頭へ ── */
.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--navy); border-color: var(--navy); }

/* ══ フォーム ══════════════════════════ */

.form { display: grid; gap: 22px; max-width: 660px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .84rem; letter-spacing: .08em; }
.field .req {
  font-family: "Roboto Mono", monospace;
  font-size: .58rem;
  letter-spacing: .1em;
  color: var(--mark);
  margin-left: 9px;
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: .92rem;
  line-height: 1.7;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 14%, transparent);
}
.field textarea { min-height: 170px; resize: vertical; }
.form-status {
  border-left: 3px solid var(--mark);
  background: var(--mark-soft);
  color: var(--ink);
  padding: 15px 18px;
  font-size: .85rem;
  line-height: 1.85;
  animation: panelIn .4s var(--ease) both;
}
.form-status.is-error { border-left-color: #b4322d; background: #fbeeed; }
.form.is-sending .btn { opacity: .55; pointer-events: none; }

/* 所在地の地図（Google マップの埋め込み） */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* ══ スクロール連動の現れ方 ════════════ */
/* 既定は「見えている」。JS が画面外の要素にだけ .rv を付ける */

.rv {
  opacity: 0;
  transform: translateY(28px);
}
.rv.rv-in {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.rv-d1.rv-in { transition-delay: .12s; }
.rv-d2.rv-in { transition-delay: .24s; }
.rv-d3.rv-in { transition-delay: .36s; }
.rv-d4.rv-in { transition-delay: .48s; }
.rv-d5.rv-in { transition-delay: .60s; }

/* 写真は下からワイプしながら、少し引きで収まる */
img.photo.rv,
.motto-art.rv {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
}
img.photo.rv { transform: scale(1.09); }
img.photo.rv.rv-in,
.motto-art.rv.rv-in {
  clip-path: inset(0 0 0 0);
  transform: none;
  transition: clip-path 1.25s var(--ease-out), transform 1.6s var(--ease-out);
}

/* ギャラリーは枠をワイプし、中の写真は引きから戻す */
.gallery figure.rv { opacity: 1; transform: none; }
.gallery figure.rv .frame { clip-path: inset(0 0 100% 0); }
.gallery figure.rv img { transform: scale(1.12); }
.gallery figure.rv figcaption { opacity: 0; transform: translateY(12px); }
.gallery figure.rv.rv-in .frame {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.gallery figure.rv.rv-in img {
  transform: none;
  transition: transform 1.7s var(--ease-out);
}
.gallery figure.rv.rv-in figcaption {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease-out) .45s, transform .8s var(--ease-out) .45s;
}

/* 見出しの罫が引かれる */
.rv .eyebrow::before { width: 0; transition: width .9s var(--ease-out) .25s; }
.rv.rv-in .eyebrow::before { width: 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; }
  img.photo.rv, .motto-art.rv,
  .gallery figure.rv .frame { clip-path: none; transform: none; }
  .gallery figure.rv img { transform: none; }
  .gallery figure.rv figcaption { opacity: 1; transform: none; }
  .hero-glow { display: none; }
  .band-media { transform: none !important; }
}


/* ── 狭い画面ではヒーローを低く ──
   縦長のまま高さだけ伸ばすと、横方向の切り取りが強くなりすぎて
   写真が人物の周りだけになる。画面が狭いほど背を低くして逃がす。 */
@media (max-width: 760px) {
  .hero .wrap { min-height: clamp(400px, 58vh, 540px); }
  .hero-photo, .hero-sky { object-position: center 95%; background-position: center 95%; }
}
/* 1枚目の建物写真は、下端の敷地ではなくルーバーと空を見せる。
   上の指定より後ろに置いて、狭い画面でもこちらを効かせる */
.hero-photo--bldg { object-position: center 42%; }

/* ── 版画のスライド（1枚目）──
   紙を抜いた版画を紺の地に置く。墨（黒）と朱（赤）は別の画像で、
   墨が上から下へ書かれ、遅れて朱が判子のように押される。 */
/* 地は藍。版画の後ろにだけ淡く光を溜め、四隅は落として奥行きを出す。
   その上に和紙の繊維（washi.png、透明地に白の筋）を薄く敷く。 */
/* 地は生成り（和紙の色）。実物の版画を掛けたように見せる。
   中央をわずかに明るく、四隅は紙が焼けたように少し落とす。
   その上に和紙の繊維（washi-kinari.png、透明地に茶の筋）を薄く敷く。 */
.hero-slide--hanga .slide-media {
  background:
    url("washi-kinari.png") repeat,
    radial-gradient(70% 80% at 50% 46%, rgba(255, 252, 244, .55) 0%, rgba(255, 252, 244, 0) 70%),
    linear-gradient(160deg, #f1eadb 0%, #ede5d3 55%, #e6dcc7 100%);
}
.hero-slide--hanga .slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(115% 95% at 50% 50%, transparent 60%, rgba(110, 84, 50, .22) 100%);
}
/* 写真用の暗い薄膜は、生成りの地には掛けない */
.hero.is-hanga .hero-veil { opacity: 0; transition: opacity 1.2s var(--ease); }
.hanga-box {
  position: absolute;
  inset: 7% 8%;   /* 左右対称。1枚目は文字を出さないので、版画を真ん中に置く */
  /* 止まって見えないよう、ごくゆっくり息をする */
  animation: hangaBreathe 16s ease-in-out infinite alternate;
  transform-origin: 50% 55%;
}
@keyframes hangaBreathe {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.025) translateY(-.6%); }
}
/* 鬼の後ろに、朱がにじんだような明かり。判子が押されたあとに広がる */
.hanga-box::before {
  content: "";
  position: absolute;
  inset: 6% 34% 33% 24%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 48, 40, .16) 0%, rgba(214, 48, 40, .06) 55%, transparent 100%);
  pointer-events: none;
}
.hero.is-hanga-enter .hanga-box::before { animation: bleed 1.6s cubic-bezier(.2, .7, .2, 1) calc(1.55s + var(--hd, 0s)) both; }
@keyframes bleed {
  from { opacity: 0; transform: scale(.55); }
  to   { opacity: 1; transform: none; }
}
.hanga-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* 紙の上に刷った墨と朱。影はごく薄い暖色で、わずかに浮かす程度 */
  filter: drop-shadow(0 10px 18px rgba(70, 50, 25, .22));
}
/* 版画のあいだは白い文字を出さない（版画に同じ言葉が刷ってある）。2枚目から出す */
.hero.is-hanga .hero-copy,
.hero.is-hanga .hero-scroll { opacity: 0; transition: opacity .6s var(--ease); }
/* 出現。is-hanga-enter は JS が描画後に付けるので、付かなければ最初から全部見える */
.hero.is-hanga-enter .hanga-ink {
  animation: inkWrite 1.5s cubic-bezier(.2, .7, .15, 1) calc(.25s + var(--hd, 0s)) both;
}
.hero.is-hanga-enter .hanga-red {
  animation: stampPress .6s cubic-bezier(.18, .9, .22, 1.12) calc(1.45s + var(--hd, 0s)) both;
}
/* 説明（版画の下に刷られた活字）。細い字なので影は付けない。
   筆文字 → 鬼の判 → 説明 の順で、最後に静かに浮かぶ */
.hanga-box img.hanga-note { filter: none; }
.hero.is-hanga-enter .hanga-note {
  animation: noteEmerge 1.1s var(--ease) calc(2.2s + var(--hd, 0s)) both;
}
@keyframes noteEmerge {
  from { opacity: 0; transform: translateY(1.2%); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes inkWrite {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes stampPress {
  0%   { opacity: 0; transform: scale(1.28); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .0)); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }
}
}


/* ── 注意書き ──
   支払いに関わる決まりごとなど、読み飛ばされると困る一文に使う。
   本文の注記（.note）より一段強く、ただし警告色にはしない。 */
.caution {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--navy);
  display: grid;
  gap: 4px;
}
.caution strong {
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--navy);
  font-weight: 700;
}


/* ── LINE公式アカウント ──
   緑はLINEのボタンだけに使う。囲みは他の表と同じ角の立った罫線。 */
.line-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 56px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--rule);
}
.line-panel .section-head p { margin-bottom: 14px; }
.line-uses {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: .88rem;
  line-height: 1.9;
  color: var(--ink-2);
}
.line-uses li { padding-left: 22px; position: relative; }
.line-uses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .95em;
  width: 12px;
  height: 1px;
  background: var(--ink-3);
}
.line-id { align-self: center; font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); }
.line-qr {
  width: 172px;
  aspect-ratio: 1;
  border: 1px solid var(--rule-strong);
  background: var(--ground);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.line-qr small { font-size: .66rem; letter-spacing: .06em; color: var(--ink-3); }
.line-qr img { display: block; width: 100%; height: auto; }
.btn-line { background: #06c755; border-color: #06c755; color: #ffffff; }
.btn-line::before { background: #05a94a; }
.btn-line:hover { color: #ffffff; border-color: #05a94a; }
@media (max-width: 760px) {
  .line-panel { grid-template-columns: 1fr; gap: 26px; }
  .line-qr { justify-self: start; }
}

/* 誘導ブロックの中の2つ目のボタン（白抜き） */
.cta .btn-row { justify-content: center; }
.cta .btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .55); }
.cta .btn-ghost::before { background: rgba(255, 255, 255, .16); }
.cta .btn-ghost:hover { color: #ffffff; border-color: #ffffff; }
.caution p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.9;
  color: var(--ink);
}


/* ══ 印刷 ════════════════════════════════
   配布資料として紙に出すための指定。
   メニュー・写真・誘導ボタンを落とし、本文と表だけを黒で出す。
   画面用の「あとから現れる」指定は、印刷では中身が消える事故に
   直結するので、ここで確実に打ち消しておく。 */

@page {
  size: A4;
  margin: 16mm 15mm;
}

@media print {

  /* 画面の装飾。紙には要らない */
  .scroll-progress,
  .nav-toggle,
  .site-nav,
  .footer-nav,
  .to-top,
  .cta,
  .page-head-media,
  .hero-veil,
  .hero-glow,
  .hero-scroll,
  .btn-row,
  .more { display: none !important; }

  /* 色は必ず黒/白に倒す。画面が夜間モードでも紙は白 */
  :root, :root[data-theme="dark"] {
    --ground: #fff;
    --ground-alt: #fff;
    --panel: #fff;
    --ink: #000;
    --ink-2: #222;
    --ink-3: #555;
    --rule: #bbb;
    --rule-strong: #888;
    --navy: #000;
    --navy-2: #000;
    --sky: #fff;
    --green: #000;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
    line-height: 1.85;
  }

  /* 現れる演出はすべて完了状態で固定する。
     これを外すと、印刷したとき本文が真っ白になる */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv, .rv-in,
  img.photo.rv, .motto-art.rv,
  .gallery figure.rv .frame,
  .gallery figure.rv img,
  .gallery figure.rv figcaption,
  .hero-copy .ln,
  .catpanel, .catpanel > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }

  /* ヘッダーは社名だけ残して、紙の先頭に一度だけ出す */
  .site-header {
    position: static !important;
    background: none !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid #000;
    box-shadow: none !important;
  }
  .site-header .wrap { padding-block: 0 0 8px; }
  .brand { color: #000 !important; }

  .wrap, .wrap-narrow {
    max-width: none;
    padding-inline: 0;
  }

  /* 余白を詰める。画面用の広さは紙では無駄になる */
  .section { padding-block: 14px 0 !important; }
  .section-alt { background: #fff !important; }
  .page-head {
    background: #fff !important;
    color: #000 !important;
    padding-block: 10px 6px !important;
    min-height: 0 !important;
  }
  .page-head .eyebrow,
  .section-head .eyebrow {
    font-size: 9pt !important;
    letter-spacing: .18em;
    color: #555 !important;
    margin-bottom: 2px !important;
  }
  .page-head h1 { font-size: 16pt !important; color: #000 !important; }
  .page-head .lead { font-size: 10.5pt !important; color: #000 !important; }
  .section-head { margin-bottom: 10px !important; }
  .section-head h2 { font-size: 12pt !important; color: #000 !important; }

  /* 表は行の途中で改ページさせない */
  table, .spec { page-break-inside: auto; width: 100%; }
  tr, th, td { page-break-inside: avoid; break-inside: avoid; }
  thead { display: table-header-group; }
  .section-head, h1, h2, h3 { page-break-after: avoid; break-after: avoid; }

  .note { font-size: 9pt !important; color: #333 !important; }

  /* 注意書きは紙でも目に入るよう、黒の太線で囲う */
  .caution {
    background: #fff !important;
    border: 1.5pt solid #000 !important;
    padding: 6pt 9pt !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .caution strong { color: #000 !important; font-size: 9pt !important; }
  .caution p { color: #000 !important; font-size: 10pt !important; }

  /* LINEはQRコードだけ紙に残す。ボタンとIDは紙では押せない */
  .line-panel { border: 1pt solid #000 !important; background: #fff !important; padding: 10pt 12pt !important; gap: 12pt 24pt !important; page-break-inside: avoid; }
  .line-id { display: none !important; }
  .line-qr { border: 1pt solid #000 !important; width: 120pt !important; padding: 0 !important; }

  /* 未記入のまま配らないよう、紙でも目立たせる */
  .tbd {
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    padding: 0 4px;
  }

  /* リンクは黒。メールアドレスは文字そのものが情報なのでそのまま */
  a { color: #000 !important; text-decoration: none !important; }

  .site-footer {
    background: #fff !important;
    color: #000 !important;
    border-top: 1px solid #000;
    padding-block: 10px 0 !important;
    page-break-inside: avoid;
  }
  .footer-top { display: block !important; }
  .footer-contact { display: block !important; font-size: 9.5pt; }
  .footer-contact span { display: block; }
  .copyright { font-size: 8pt !important; color: #555 !important; }

  /* ヒーロー（トップページ）は紙では場所を取るだけ */
  .hero { display: none !important; }
}