/* ============================================================
   みどり組 「一棟、建てる。」 2026-11-10 本番採用
   読み進めると、右の立面図で一棟が建っていく。
   見出しは実際に打設して脱型する。ポップ路線(クリーム×緑×パネコートの黄×太い墨線)は継続
   ============================================================ */

:root {
  --paper: #f6faee;
  --paper-2: #eaf4dc;
  --green: #4caf50;
  --green-mid: #66bb6a;
  --green-deep: #2e7d32;
  --green-night: #173b20;
  --yellow: #ffca3a;
  --ply: #ffd768;
  --wood: #9a6b3f;
  --concrete: #d7dbd2;
  --concrete-2: #c3c8bd;
  --sky: #7fd0ff;
  --red: #ff5a3c;
  --ink: #1c2b22;
  --ink-soft: #4a5a4f;
  --white: #fff;

  --f-jp: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --f-en: "Baloo 2", "M PLUS Rounded 1c", sans-serif;
  --f-big: "Dela Gothic One", "M PLUS Rounded 1c", sans-serif;

  --line: 3px;
  --sh: 6px 6px 0 var(--ink);
  --sh-lg: 10px 10px 0 var(--ink);
  --r: 22px;
  --r-lg: 32px;
  --gut: clamp(16px, 4vw, 48px);
  --hud: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* パネコートの面: 目地と Pコン */
  --panel:
    radial-gradient(circle at 22px 22px, rgba(28,43,34,.55) 0 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 22px) 22px, rgba(28,43,34,.55) 0 4px, transparent 4.5px),
    radial-gradient(circle at 22px calc(100% - 22px), rgba(28,43,34,.55) 0 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 22px) calc(100% - 22px), rgba(28,43,34,.55) 0 4px, transparent 4.5px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(28,43,34,.22) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(105deg, rgba(255,255,255,.28), transparent 38%),
    var(--yellow);
}
@media (min-width: 1100px) { :root { --hud: 104px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-jp);
  font-weight: 500; font-size: 16px; line-height: 1.85; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase; overflow-wrap: anywhere;
}
main, .ft { overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(1320px + var(--hud)); margin-inline: auto; padding-left: var(--gut); padding-right: calc(var(--gut) + var(--hud)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } .sp { display: none; } }

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(46,125,50,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(46,125,50,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============ ボタン・小物 ============ */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: .7em 1.5em;
  background: var(--bg); color: var(--fg);
  border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink);
  font-weight: 800; font-size: 16px; letter-spacing: .04em; line-height: 1.3;
  transition: transform .25s var(--spring), box-shadow .25s var(--spring), background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); transition-duration: .08s; }
.btn--sm { min-height: 46px; padding: .5em 1.15em; font-size: 14px; box-shadow: 4px 4px 0 var(--ink); }
.btn--green { --bg: var(--green); --fg: var(--white); }
.btn--green:hover { --bg: var(--green-deep); }
.btn--yellow { --bg: var(--yellow); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); box-shadow: 4px 4px 0 var(--green); }
.btn--ink:hover { box-shadow: 7px 7px 0 var(--green); }
.btn__arrow { position: relative; display: inline-block; width: 1.2em; height: 1.2em; flex: none; }
.btn__arrow::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--spring);
}
a:hover .btn__arrow::before { transform: translateX(4px); }
.pill { display: inline-block; padding: .15em .9em; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 800; font-size: .85em; box-shadow: 2px 2px 0 var(--ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(76,175,80,.25); } }

/* ============ HEADER ============ */
.hd {
  position: fixed; z-index: 100; top: 12px; left: 50%;
  width: min(1320px - 48px, calc(100% - 24px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 16px;
  background: var(--paper);
  border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
}
.hd__logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: .06em; white-space: nowrap; }
.hd__logo img { width: 46px; height: auto; }
.hd__nav { display: none; margin-left: auto; gap: 4px; }
.hd__nav a { padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; transition: background .2s; }
.hd__nav a:hover, .hd__nav a.is-now { background: var(--yellow); }
.hd__cta { display: none; }
.hd__burger { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); display: grid; place-content: center; gap: 6px; }
.hd__burger span { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--paper); transition: transform .3s var(--ease); }
.hd__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.hd__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (min-width: 1000px) { .hd__nav { display: flex; } .hd__cta { display: inline-flex; } .hd__burger { display: none; } }

.menu { position: fixed; inset: 0; z-index: 95; background: var(--yellow); padding: 104px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__nav { display: grid; gap: 4px; }
.menu__nav a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 3px solid var(--ink); }
.menu__nav b { font-family: var(--f-big); font-weight: 400; font-size: 30px; line-height: 1.2; }
.menu__nav small { font-family: var(--f-en); font-weight: 800; font-size: 15px; width: 2.2em; }
.menu__tel { font-family: var(--f-en); font-weight: 800; font-size: 26px; margin-top: 24px; }

/* ============ フロアレベル(各節の頭) ============ */
.lv { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--f-en); font-weight: 800; }
.lv__mark { position: relative; padding: 2px 12px 2px 30px; background: var(--ink); color: var(--paper); border-radius: 8px; font-size: 16px; letter-spacing: .06em; line-height: 1.6; }
.lv__mark::before { content: ""; position: absolute; left: 10px; top: 50%; translate: 0 -40%; border: 7px solid transparent; border-top: 11px solid var(--yellow); border-bottom: 0; }
.lv__en { font-size: 15px; letter-spacing: .22em; color: var(--green-deep); }
.lv i { flex: 1; height: 0; border-top: 3px solid var(--ink); position: relative; }
.lv i::after { content: ""; position: absolute; right: 0; top: -9px; width: 3px; height: 15px; background: var(--ink); }
.lv--dark .lv__mark { background: var(--yellow); color: var(--ink); }
.lv--dark .lv__mark::before { border-top-color: var(--ink); }
.lv--dark .lv__en { color: var(--yellow); }
.lv--dark i, .lv--dark i::after { border-color: var(--paper); background: var(--paper); }
.lv--dark i { background: none; }

.ttl { font-family: var(--f-big); font-weight: 400; font-size: clamp(34px, 6.2vw, 84px); line-height: 1.16; letter-spacing: .01em; }
.ttl--light { color: var(--paper); }
.ttl--xl { font-size: clamp(36px, 7.4vw, 108px); }
.ttl-lead { margin-top: 12px; font-weight: 700; color: var(--ink-soft); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row-head--sub { margin-top: clamp(48px, 7vw, 88px); align-items: center; }
.sub-ttl { font-family: var(--f-big); font-weight: 400; font-size: clamp(22px, 3vw, 34px); }

section { position: relative; }
.process, .service, .works, .voices, .company, .faq { padding-block: clamp(72px, 10vw, 140px); }

/* ============ 脱型の登場(パネルが外れて中身が出る) ============ */
.js [data-strip] { position: relative; }
.js [data-strip]::after {
  content: ""; position: absolute; inset: -3px; z-index: 5; pointer-events: none;
  background: var(--panel); border: var(--line) solid var(--ink); border-radius: inherit;
  transform-origin: 0 100%;
  transition: transform .8s cubic-bezier(.55, 0, .3, 1), opacity .3s .5s;
}
.js [data-strip].is-in::after { transform: rotate(-11deg) translate(-8%, 46%); opacity: 0; }
.js [data-strip]:nth-child(even).is-in::after { transform-origin: 100% 100%; transform: rotate(11deg) translate(8%, 46%); }
.js [data-pop] { opacity: 0; transform: translateY(24px) scale(.94); transition: opacity .4s, transform .6s var(--spring); }
.js [data-pop].is-in { opacity: 1; transform: none; }

/* ============ HERO ============ */
.hero { padding-top: 104px; padding-bottom: clamp(40px, 6vw, 80px); }
.hero__inner { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); } }
.hero__h1 { font-weight: 900; }
.hero__eyebrow { display: block; font-size: clamp(15px, 1.6vw, 19px); font-weight: 800; margin-bottom: clamp(60px, 5.4vw, 76px); }

/* --- 打設する見出し --- */
.pour {
  --pad: .2em;
  position: relative; display: inline-block; vertical-align: top;
  font-family: var(--f-big); font-weight: 400;
  font-size: clamp(64px, 9.6vw, 160px); line-height: 1.12; letter-spacing: .02em;
  padding: var(--pad) calc(var(--pad) * 1.3);
  margin-left: -4px;
  white-space: nowrap;
}
.pour__mold { position: absolute; inset: 0; z-index: 1; display: grid; grid-template: 1fr 1fr / 1.1fr 1fr; }
.pour__mold i {
  background:
    radial-gradient(circle at 50% 50%, rgba(28,43,34,.5) 0 5px, transparent 5.5px) 0 0 / 50% 100%,
    linear-gradient(105deg, rgba(255,255,255,.3), transparent 40%),
    var(--yellow);
  border: var(--line) solid var(--ink); margin: -1.5px;
  transition: transform 1s cubic-bezier(.5, 0, .2, 1), opacity .35s .65s;
}
.pour__mold i:nth-child(1) { border-radius: 14px 0 0 0; }
.pour__mold i:nth-child(2) { border-radius: 0 14px 0 0; }
.pour__mold i:nth-child(3) { border-radius: 0 0 0 14px; }
.pour__mold i:nth-child(4) { border-radius: 0 0 14px 0; }
.is-stripped .pour__mold i { opacity: 0; }
.is-stripped .pour__mold i:nth-child(1) { transform: translate(-34%, -70%) rotate(-16deg); }
.is-stripped .pour__mold i:nth-child(2) { transform: translate(40%, -62%) rotate(13deg); transition-delay: .06s, .7s; }
.is-stripped .pour__mold i:nth-child(3) { transform: translate(-42%, 66%) rotate(12deg); transition-delay: .12s, .76s; }
.is-stripped .pour__mold i:nth-child(4) { transform: translate(36%, 74%) rotate(-15deg); transition-delay: .18s, .82s; }

.pour__text { position: relative; z-index: 2; display: block; color: #24382b; transition: color .2s; }
.is-stripped .pour__text { color: transparent; }
.pour__edge, .pour__fill { position: absolute; inset: 0; padding: inherit; pointer-events: none; }
.pour__edge::before, .pour__fill::before { content: attr(data-t); white-space: pre; display: block; }
.pour__edge { z-index: 0; color: var(--ink); -webkit-text-stroke: .085em var(--ink); text-shadow: .05em .05em 0 var(--ink), .05em .05em 0 var(--ink); opacity: 0; }
.is-stripped .pour__edge { opacity: 1; transition: opacity .2s .15s; }
.pour__fill { z-index: 3; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
.pour__fill::before {
  color: transparent;
  background:
    radial-gradient(circle, rgba(28,43,34,.34) 0 .016em, transparent .021em) .1em .06em / .46em .56em,
    linear-gradient(180deg, #e6e9e1, #c9cec3);
  -webkit-background-clip: text; background-clip: text;
}
.is-stripped .pour__fill { animation: thud .5s var(--spring) .2s; }
.is-stripped .pour__edge { animation: thud .5s var(--spring) .2s; }
@keyframes thud { 0% { transform: scale(.96); } 100% { transform: none; } }

.pour__hose { position: absolute; z-index: 4; left: 0; bottom: calc(100% - 6px); width: clamp(56px, 6vw, 92px); translate: calc(var(--hx, 120px) - 40%) 0; transition: transform .7s var(--ease), opacity .3s; transform-origin: 90% 0; }
.pour__hose svg { width: 100%; height: auto; }
.pour__stream { position: absolute; left: 31%; top: 86%; width: 17%; height: 0; background: #b9beb3; border: var(--line) solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; opacity: 0; }
.is-pouring .pour__stream { height: 22%; opacity: 1; animation: drip .28s linear infinite alternate; }
@keyframes drip { to { height: 30%; } }
.is-cast .pour__hose { transform: translateY(-60%) rotate(8deg); opacity: 0; }

.pour-ui { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(18px, 2.4vw, 28px); min-height: 40px; }
.pour-steps { display: flex; gap: 8px; font-weight: 800; font-size: 13px; }
.pour-steps li { padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); opacity: .4; transition: opacity .3s, background .3s, transform .4s var(--spring); }
.pour-steps li.is-on { opacity: 1; background: var(--yellow); transform: translateY(-2px); }
.pour-steps li.is-done { opacity: 1; background: var(--concrete); }
.pour-again { padding: 4px 14px; border: 2px dashed var(--ink); border-radius: 999px; font-weight: 800; font-size: 13px; }
.pour-again:hover { background: var(--yellow); border-style: solid; }
.pour-again[hidden] { display: none; }

.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 28px; margin-top: clamp(16px, 2vw, 24px); }
.hero__lead { flex: 1 1 22em; max-width: 34em; font-weight: 700; font-size: clamp(15px, 1.2vw, 17px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 1000px) { .hero__ctas { flex-direction: column; align-items: stretch; } }

.hero__photo { position: relative; justify-self: center; width: min(100%, 440px); rotate: 2.5deg; }
.hero__photo-frame { border: var(--line) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lg); background: var(--concrete); }
.hero__photo-frame img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.hero__photo figcaption { position: absolute; left: -14px; bottom: 22px; display: grid; padding: 8px 16px; background: var(--white); border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); rotate: -5deg; line-height: 1.4; }
.hero__photo figcaption b { font-weight: 900; }
.hero__photo figcaption span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.stamp { position: absolute; right: -22px; top: -34px; width: 112px; height: 112px; display: grid; place-items: center; background: var(--yellow); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--ink); }
.stamp svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.stamp text { font-family: var(--f-en); font-weight: 800; font-size: 12.5px; letter-spacing: .12em; fill: var(--ink); }
.stamp img { width: 50px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ トラテープ ============ */
.tora { position: relative; background: var(--yellow); border-block: var(--line) solid var(--ink); overflow: hidden; rotate: -1.2deg; margin: 20px -12px; padding-block: 12px; }
.tora::before, .tora::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, transparent 14px 28px); }
.tora::before { top: 0; } .tora::after { bottom: 0; }
.tora__track { display: flex; align-items: center; gap: 28px; width: max-content; padding-block: 8px; animation: tora 30s linear infinite; font-weight: 900; font-size: clamp(18px, 2.4vw, 30px); white-space: nowrap; }
.tora__track i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); flex: none; }
@keyframes tora { to { transform: translateX(-50%); } }

/* ============ DOORS ============ */
.doors { display: grid; gap: 24px; padding-block: clamp(56px, 8vw, 110px); }
@media (min-width: 800px) { .doors { grid-template-columns: 1fr 1fr; gap: 32px; } }
.door { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-content: start; padding: clamp(22px, 3vw, 40px); border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); background: var(--white); transition: translate .3s var(--spring), box-shadow .3s var(--spring); }
.door:hover { translate: -3px -3px; box-shadow: 14px 14px 0 var(--ink); }
.door--work { background: var(--green); color: var(--white); }
.door__tag { grid-column: 1 / -1; font-family: var(--f-en); font-weight: 800; font-size: 13px; letter-spacing: .2em; }
.door__title { font-family: var(--f-big); font-size: clamp(30px, 3.7vw, 54px); line-height: 1.2; white-space: nowrap; }
.door__art { grid-row: 2; grid-column: 2; width: clamp(110px, 15vw, 200px); align-self: end; }
.door--work .door__art svg rect:first-child { fill: var(--ink); }
.door__text { grid-column: 1 / -1; font-weight: 700; max-width: 30em; }
.door__go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; font-weight: 900; }

/* ============ STATEMENT + コンベックス ============ */
.statement { padding-block: clamp(40px, 6vw, 90px); }
.statement__text { font-weight: 900; font-size: clamp(24px, 3.9vw, 54px); line-height: 1.6; max-width: 22em; }
.statement__text em { font-style: normal; background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 0% .42em no-repeat; transition: background-size 1s var(--ease) .2s; }
.statement__text.is-in em { background-size: 100% .42em; }
.statement__text em + em, .statement__text em:nth-of-type(2) { transition-delay: .7s; }

.tape { display: grid; grid-template-columns: auto 1fr; align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.tape__case { position: relative; z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; align-content: center; background: var(--green); border: var(--line) solid var(--ink); border-radius: 24px 24px 24px 34px; box-shadow: var(--sh); }
.tape__case img { width: 44px; filter: brightness(0) invert(1); }
.tape__case span { font-family: var(--f-en); font-weight: 800; font-size: 11px; letter-spacing: .14em; color: var(--white); line-height: 1; }
.tape__track { position: relative; height: 92px; margin-left: -6px; cursor: ew-resize; touch-action: pan-y; }
.tape__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed rgba(28,43,34,.25); }
.tape__blade {
  position: absolute; left: 0; top: 50%; translate: 0 -50%; height: 44px; width: calc(var(--p, 0) * 100%); min-width: 16px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px var(--u, 40px)) 0 0 / 100% 55% no-repeat,
    repeating-linear-gradient(90deg, rgba(28,43,34,.6) 0 1.5px, transparent 1.5px calc(var(--u, 40px) / 2)) 0 0 / 100% 32% no-repeat,
    var(--yellow);
  border-block: var(--line) solid var(--ink);
}
.tape__hook { position: absolute; right: -10px; top: -9px; bottom: -9px; width: 12px; background: var(--concrete); border: var(--line) solid var(--ink); border-radius: 4px; }
.tape__hook::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%; }
.tape__flag { position: absolute; left: var(--at); top: calc(50% + 30px); translate: -50% 0; font-family: var(--f-en); font-weight: 800; font-size: 13px; line-height: 1; white-space: nowrap; padding: 3px 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--white); }
.tape__flag::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 12px; background: var(--ink); translate: -50% 0; }
.tape__flag:last-of-type { translate: calc(-100% + 2px) 0; }
.tape__flag:last-of-type::before { left: calc(100% - 2px); }
.tape__flag.is-hit { background: var(--red); color: var(--white); }
.tape__read { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; margin-top: 26px; font-family: var(--f-en); font-weight: 800; }
.tape__read b { font-size: clamp(44px, 7vw, 92px); line-height: 1; font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: right; }
.tape__read span { font-size: 22px; }
.tape__read small { margin-left: 14px; font-family: var(--f-jp); font-weight: 800; font-size: 15px; padding: 2px 12px; background: var(--ink); color: var(--paper); border-radius: 999px; }

/* ============ 1F PROCESS ============ */
.process { background: var(--paper-2); border-block: var(--line) solid var(--ink); }
.process__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.process__note { font-weight: 700; }
.process__note b { background: linear-gradient(transparent 60%, var(--yellow) 60%); font-weight: 900; }
.scene { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .scene { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: stretch; } }
.scene__stage { background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.scene__svg { width: 100%; }
.scene__side { display: flex; flex-direction: column; gap: 20px; }
.scene__texts { position: relative; flex: 1; min-height: 250px; }
.scene__texts li { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.scene__no { font-family: var(--f-en); font-weight: 800; font-size: clamp(64px, 8vw, 110px); line-height: .9; color: var(--green); -webkit-text-stroke: 3px var(--ink); text-shadow: 5px 5px 0 var(--ink); display: block; }
.scene__texts h3 { font-family: var(--f-big); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; margin-top: 12px; }
.scene__texts h3 small { font-size: .5em; }
.scene__texts p { margin-top: 8px; font-weight: 700; }
.scene__tabs { display: grid; grid-template-columns: repeat(5, 1fr); border: var(--line) solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: var(--sh); }
.scene__tabs button { position: relative; padding: 10px 2px 12px; font-weight: 800; font-size: 12px; line-height: 1.3; display: grid; justify-items: center; border-left: 2px solid var(--ink); transition: background .25s; }
.scene__tabs button:first-child { border-left: 0; }
.scene__tabs i { font-family: var(--f-en); font-style: normal; font-size: 18px; }
.scene__tabs button[aria-pressed="true"] { background: var(--yellow); }
.scene__tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--green-deep); }
.scene.is-auto .scene__tabs button[aria-pressed="true"]::after { width: 100%; transition: width 4.2s linear; }

/* 場面ごとの絵 */
.scene__svg g { transition: opacity .5s, transform .9s cubic-bezier(.5, 0, .2, 1); transform-box: fill-box; }
.sc-note, .sc-saw, .sc-ties, .sc-plumb, .sc-hose, .sc-spark, .sc-holes, .sc-conc { opacity: 0; }
.sc-conc { transform-origin: 50% 100%; transform: scaleY(0); }
.sc-pl { opacity: 0; transform-origin: 50% 50%; }
.sc-pl--l { transform: translate(-140px, 80px) rotate(90deg); }
.sc-pl--r { transform: translate(-232px, 44px) rotate(90deg); }
.sc-spark { transform-origin: 50% 50%; transform: scale(.3); }
.sc-ties { transform-origin: 50% 50%; transform: scaleX(1.3); }
[data-stage="1"] .sc-note { opacity: 1; }
[data-stage="2"] .sc-saw, [data-stage="2"] .sc-pl { opacity: 1; }
[data-stage="2"] .sc-draw { opacity: .35; }
[data-stage="2"] .sc-saw__blade { animation: spin .5s linear infinite; transform-origin: 50% 50%; transform-box: fill-box; }
[data-stage="3"] .sc-pl, [data-stage="4"] .sc-pl, [data-stage="5"] .sc-pl { opacity: 1; transform: none; }
[data-stage="3"] .sc-ties, [data-stage="4"] .sc-ties { opacity: 1; transform: none; transition-delay: .5s; }
[data-stage="3"] .sc-plumb { opacity: 1; transition-delay: .8s; }
[data-stage="3"] .sc-draw, [data-stage="4"] .sc-draw, [data-stage="5"] .sc-draw { opacity: 0; }
[data-stage="4"] .sc-hose { opacity: 1; }
[data-stage="4"] .sc-conc { opacity: 1; transform: none; transition: opacity .2s, transform 2.4s linear .4s; }
[data-stage="4"] .sc-hose__drip { animation: sdrip .3s linear infinite alternate; }
@keyframes sdrip { to { stroke-width: 8; } }
[data-stage="5"] .sc-conc { opacity: 1; transform: none; transition: none; }
[data-stage="5"] .sc-holes { opacity: 1; transition-delay: .5s; }
[data-stage="5"] .sc-pl { transform-origin: 50% 100%; }
[data-stage="5"] .sc-pl--l { transform: translate(-70px, 0) rotate(-24deg); }
[data-stage="5"] .sc-pl--r { transform: translate(70px, 0) rotate(24deg); }
[data-stage="5"] .sc-spark { opacity: 1; transform: none; transition: opacity .3s .6s, transform .6s var(--spring) .6s; }
[data-stage="1"] .scene__texts [data-s="1"], [data-stage="2"] .scene__texts [data-s="2"], [data-stage="3"] .scene__texts [data-s="3"], [data-stage="4"] .scene__texts [data-s="4"], [data-stage="5"] .scene__texts [data-s="5"] { opacity: 1; transform: none; pointer-events: auto; }

.process__photo { margin-top: clamp(32px, 5vw, 64px); display: grid; border: var(--line) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: var(--ink); }
.process__photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 62%; }
.process__photo figcaption { padding: 14px 22px; background: var(--yellow); border-top: var(--line) solid var(--ink); font-family: var(--f-big); font-size: clamp(18px, 2.6vw, 30px); }
@media (max-width: 700px) { .process__photo img { aspect-ratio: 4 / 3; } }

/* ============ 2F SERVICE ============ */
.service__grid { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .service__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } .svc:nth-child(2) { translate: 0 28px; } }
.svc { padding: clamp(22px, 2.6vw, 34px); border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); background: var(--white); }
.svc--yellow { background: var(--ply); }
.svc--green { background: var(--green-mid); }
.svc__no { float: right; font-family: var(--f-en); font-weight: 800; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 3px var(--ink); }
.svc__icon { display: block; width: 76px; padding: 10px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
.svc__title { font-family: var(--f-big); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; margin: 20px 0 10px; }
.svc p { font-weight: 700; }
.area { margin-top: clamp(48px, 7vw, 84px); padding: 22px clamp(18px, 3vw, 32px); border: var(--line) dashed var(--ink); border-radius: var(--r); display: grid; gap: 12px; }
.area__label { font-weight: 900; }
.area__list { display: flex; flex-wrap: wrap; gap: 10px; }
.area__list li { padding: 4px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 800; }
.area__list li.is-home { background: var(--green); color: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.area__list small { margin-left: 6px; font-size: 11px; padding: 1px 7px; background: var(--yellow); color: var(--ink); border-radius: 999px; }
.area__note { font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* ============ 3F WORKS ============ */
.works { background: var(--concrete); border-block: var(--line) solid var(--ink); background-image: radial-gradient(circle, rgba(28,43,34,.28) 0 5px, transparent 5.5px); background-size: 180px 120px; background-position: 40px 30px; }
.bento { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .bento { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; } }
.bento__works { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.work { position: relative; display: block; border: var(--line) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: var(--ink); transition: translate .3s var(--spring), box-shadow .3s var(--spring); }
.work:hover { translate: -3px -3px; box-shadow: 14px 14px 0 var(--ink); }
.work img { width: 100%; height: 100%; min-height: 420px; aspect-ratio: 3 / 4; object-fit: cover; transition: scale .8s var(--ease); }
.work:hover img { scale: 1.05; }
.work__meta { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; justify-items: start; gap: 6px; padding: 12px 16px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 16px; }
.work__cat { font-size: 12px; font-weight: 800; padding: 1px 10px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; }
.work__title { font-weight: 900; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; }
.bento__sites { display: grid; gap: 24px; align-content: start; }
@media (min-width: 560px) and (max-width: 899px) { .bento__sites { grid-template-columns: 1fr 1fr; } }
.site { border: var(--line) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); background: var(--white); }
.site img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.site figcaption { display: grid; gap: 2px; padding: 12px 16px; border-top: var(--line) solid var(--ink); line-height: 1.5; }
.site .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--green-deep); }
.site b { font-weight: 900; }
.site time { font-family: var(--f-en); font-weight: 700; font-size: 13px; color: var(--ink-soft); }

/* ============ 4F VOICES ============ */
.quotes { display: grid; gap: 34px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 28px; } .quote--b { margin-top: 44px; } .quote--c { margin-top: 12px; } }
.quote { position: relative; display: grid; gap: 14px; padding: clamp(22px, 2.6vw, 32px); border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: var(--sh-lg); background: var(--white); }
.quote::after { content: ""; position: absolute; left: 44px; top: 100%; width: 26px; height: 26px; background: inherit; border: var(--line) solid var(--ink); border-top: 0; border-left: 0; translate: 0 -13px; rotate: 45deg; box-shadow: 5px 5px 0 var(--ink); }
.quote--a { rotate: -1.5deg; } .quote--b { background: var(--ply); rotate: 1.2deg; } .quote--c { background: var(--green-mid); rotate: -.8deg; }
.quote.is-in:hover { transform: translate(-3px, -3px) rotate(0); }
.quote blockquote { font-family: var(--f-big); font-size: clamp(22px, 2.3vw, 31px); line-height: 1.45; }
.quote__src { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.rail-ctrl { display: flex; align-items: center; gap: 10px; }
.rail-btn { width: 46px; height: 46px; border: var(--line) solid var(--ink); border-radius: 50%; background: var(--white); font-weight: 900; box-shadow: 3px 3px 0 var(--ink); }
.rail-btn:hover { background: var(--yellow); }
.rail { --rail-l: max(var(--gut), calc((100vw - 1320px - var(--hud)) / 2 + var(--gut))); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--rail-l); scrollbar-width: none; margin-top: 24px; padding: 6px 0 20px; }
.rail::-webkit-scrollbar { display: none; }
.rail__track { display: flex; gap: 22px; width: max-content; padding-left: var(--rail-l); padding-right: calc(var(--gut) + var(--hud)); }
.card { scroll-snap-align: start; width: min(78vw, 320px); display: grid; grid-template-rows: auto 1fr; border: var(--line) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: var(--sh); transition: translate .3s var(--spring), box-shadow .3s var(--spring); }
.card:hover { translate: -2px -3px; box-shadow: 9px 9px 0 var(--ink); }
.card__thumb { aspect-ratio: 16 / 10; border-bottom: var(--line) solid var(--ink); background: var(--panel); display: grid; place-items: center; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb span { font-family: var(--f-big); font-size: 26px; padding: 2px 16px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 12px; rotate: -4deg; }
.card:nth-child(3n+2) .card__thumb { background-color: var(--green-mid); background-image: none; }
.card:nth-child(3n) .card__thumb { background-color: var(--concrete); background-image: radial-gradient(circle, rgba(28,43,34,.4) 0 4px, transparent 4.5px); background-size: 64px 52px; }
.card__body { display: grid; gap: 6px; align-content: start; padding: 14px 16px 18px; }
.card__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 800; }
.card__meta time { font-family: var(--f-en); font-size: 14px; }
.card__meta span { padding: 0 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); }
.card__title { font-weight: 900; font-size: 17px; line-height: 1.5; }
.card__ex { font-size: 13px; font-weight: 500; color: var(--ink-soft); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 5F RECRUIT ============ */
.recruit { background: var(--green-night); color: var(--paper); border-block: var(--line) solid var(--ink); padding-block: clamp(72px, 10vw, 140px); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.recruit__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .recruit__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.recruit__lead { margin-top: 20px; max-width: 32em; font-weight: 700; }
.perks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.perks li { display: grid; padding: 10px 18px; background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--yellow); line-height: 1.5; }
.perks li:nth-child(odd) { rotate: -1.5deg; } .perks li:nth-child(even) { rotate: 1.2deg; background: var(--yellow); box-shadow: 4px 4px 0 var(--green); }
.perks b { font-weight: 900; font-size: 18px; } .perks span { font-size: 12px; font-weight: 700; }
.recruit__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.recruit .btn { box-shadow: 5px 5px 0 var(--green); }
.recruit__side { display: grid; justify-items: center; gap: 18px; }
.polaroid { width: min(100%, 330px); padding: 14px 14px 10px; background: var(--white); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 10px; box-shadow: 10px 10px 0 var(--yellow); rotate: 3deg; }
.polaroid img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; border: 2px solid var(--ink); }
.polaroid figcaption { padding-top: 10px; font-weight: 900; line-height: 1.5; }
.polaroid small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.recruit__more { font-weight: 800; border-bottom: 3px solid var(--yellow); }

/* ============ nikoツールへの入口(採用の下) ============ */
.nikoband { padding-top: clamp(56px, 8vw, 104px); }
.nikoband__card { display: grid; gap: 18px 28px; align-items: center; padding: clamp(22px, 3vw, 38px); border: var(--line) solid var(--ink); border-radius: var(--r-lg); background: #22303c; color: var(--white); box-shadow: 10px 10px 0 var(--yellow); transition: translate .3s var(--spring), box-shadow .3s var(--spring); }
@media (min-width: 860px) { .nikoband__card { grid-template-columns: auto 1fr auto; } }
.nikoband__card:hover { translate: -3px -3px; box-shadow: 14px 14px 0 var(--yellow); }
.nikoband__icon { width: clamp(84px, 9vw, 120px); height: auto; border: var(--line) solid var(--ink); border-radius: 24%; box-shadow: 4px 4px 0 var(--ink); rotate: -6deg; transition: rotate .4s var(--spring); }
.nikoband__card:hover .nikoband__icon { rotate: 6deg; }
.nikoband__body { display: grid; gap: 6px; }
.nikoband__tag { justify-self: start; padding: 1px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; }
.nikoband__title { font-family: var(--f-big); font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1.15; }
.nikoband__text { font-weight: 700; font-size: 15px; max-width: 36em; }
.nikoband__go { justify-self: start; display: inline-flex; align-items: center; gap: .6em; min-height: 56px; padding: .7em 1.5em; border: var(--line) solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 900; box-shadow: 5px 5px 0 var(--ink); white-space: nowrap; }

/* ============ 6F COMPANY ============ */
.titleblock { display: grid; margin-top: clamp(28px, 4vw, 48px); border: var(--line) solid var(--ink); border-radius: var(--r); background: var(--white); box-shadow: var(--sh-lg); overflow: hidden; }
@media (min-width: 860px) { .titleblock { grid-template-columns: 280px 1fr; } }
.titleblock__brand { display: grid; place-items: center; padding: 28px; border-bottom: var(--line) solid var(--ink); background: var(--paper); }
@media (min-width: 860px) { .titleblock__brand { border-bottom: 0; border-right: var(--line) solid var(--ink); } }
.titleblock__table { display: grid; grid-template-columns: 1fr 1fr; }
.titleblock__table > div { display: grid; grid-template-columns: 5.4em 1fr; border-bottom: 2px solid var(--ink); }
.titleblock__table > div:nth-child(odd):not(.wide) { border-right: 2px solid var(--ink); }
.titleblock__table .wide { grid-column: 1 / -1; }
.titleblock__table dt { padding: 12px 10px; background: var(--paper-2); border-right: 2px solid var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; text-align: center; }
.titleblock__table dd { padding: 12px 16px; font-weight: 800; }
@media (max-width: 560px) { .titleblock__table { grid-template-columns: 1fr; } .titleblock__table > div { border-right: 0 !important; } }
.titleblock__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 8px 16px; background: var(--ink); color: var(--paper); font-family: var(--f-en); font-weight: 700; font-size: 12px; letter-spacing: .18em; }

/* ============ 7F FAQ ============ */
.faq { padding-top: 0; }
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; } .faq__side { position: sticky; top: 110px; align-self: start; } }
.faq__ask { margin-top: 24px; display: grid; gap: 12px; justify-items: start; font-weight: 700; }
.faq__list { display: grid; gap: 14px; }
.qa { border: var(--line) solid var(--ink); border-radius: 20px; background: var(--white); box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; font-weight: 900; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 34px; height: 34px; border: var(--line) solid var(--ink); border-radius: 50%; background: var(--yellow); transition: rotate .35s var(--spring), background .2s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; background: var(--ink); translate: -50% -50%; border-radius: 2px; }
.qa summary i::after { rotate: 90deg; }
.qa[open] summary i { rotate: 45deg; background: var(--green); }
.qa[open] { background: var(--paper-2); }
.qa__a { padding: 0 20px 18px; font-weight: 500; }
.qa__a strong { background: linear-gradient(transparent 60%, var(--yellow) 60%); font-weight: 800; }

/* ============ RF CONTACT(空) ============ */
.contact { padding-block: clamp(80px, 11vw, 160px) clamp(90px, 12vw, 170px); background: linear-gradient(180deg, #5cc0fb, #b9e7ff 78%, #e8f8ff); border-top: var(--line) solid var(--ink); overflow: hidden; }
.contact .wrap { position: relative; z-index: 1; }
.contact__sky i { position: absolute; width: 220px; height: 64px; border-radius: 999px; background: var(--white); border: var(--line) solid var(--ink); animation: cloud 44s linear infinite; }
.contact__sky i::before { content: ""; position: absolute; left: 44px; bottom: 30px; width: 96px; height: 70px; border-radius: 50%; background: var(--white); border: var(--line) solid var(--ink); border-bottom-color: transparent; }
.contact__sky i::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 40px; border-radius: 999px; background: var(--white); }
.contact__sky i:nth-child(1) { top: 9%; left: -10%; }
.contact__sky i:nth-child(2) { top: 44%; left: 30%; scale: .7; animation-duration: 62s; animation-delay: -30s; }
.contact__sky i:nth-child(3) { top: 74%; left: 60%; scale: .5; animation-duration: 80s; animation-delay: -50s; }
@keyframes cloud { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.contact .lv__en { color: var(--ink); }
.contact__lead { margin-top: 16px; font-weight: 800; }
.contact__grid { display: grid; gap: 22px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }
.chan { display: grid; gap: 4px; align-content: start; padding: clamp(20px, 2.4vw, 30px); border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); background: var(--white); }
.chan.is-in { transition: transform .3s var(--spring), box-shadow .3s var(--spring), opacity .4s; }
.chan.is-in:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0 var(--ink); }
.chan--tel { background: var(--yellow); } .chan--line { background: var(--green); color: var(--white); }
.chan__label { justify-self: start; font-size: 12px; font-weight: 800; padding: 1px 12px; background: var(--ink); color: var(--paper); border-radius: 999px; }
.chan__main { font-family: var(--f-en); font-weight: 800; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.3; margin-top: 8px; }
.chan--line .chan__main { font-family: var(--f-big); font-weight: 400; }
.chan__main--mail { font-size: clamp(20px, 1.9vw, 26px); }
.chan__sub { font-size: 13px; font-weight: 700; }

/* ============ FOOTER ============ */
.ft { background: var(--ink); color: var(--paper); padding: 48px 0 28px; }
.ft__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.ft__brand { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 700; font-size: 14px; margin-left: auto; }
.ft__nav a:hover { color: var(--yellow); }
.ft__top { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; }
.ft__word { font-family: var(--f-en); font-weight: 800; font-size: clamp(44px, 13.4vw, 220px); line-height: .9; letter-spacing: -.02em; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(246,250,238,.35); margin-top: 28px; }
.ft__copy { display: block; text-align: center; margin-top: 14px; font-size: 12px; opacity: .6; }

.fab { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #06c755; color: var(--white); border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-family: var(--f-en); font-weight: 800; font-size: 15px; }
@media (min-width: 1100px) { .fab { display: none; } }

/* ============ 立面図ナビ(読むと建つ) ============ */
.bd { position: fixed; z-index: 90; right: 22px; top: 50%; translate: 0 -46%; width: 66px; display: flex; flex-direction: column-reverse; align-items: center; --fh: 30px; }
.bd::before { content: ""; position: absolute; z-index: -1; inset: -84px -16px -14px -16px; background: rgba(246,250,238,.92); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
.bd__gl { order: -1; width: 92px; height: 9px; border-radius: 5px; background: var(--ink); margin-top: 0; }
.bd__fl { position: relative; display: block; width: 100%; height: var(--fh); margin-bottom: -3px; border: var(--line) dashed rgba(28,43,34,.3); transition: background-color .4s, border-color .3s, transform .5s var(--spring); }
.bd__fl b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-en); font-weight: 800; font-size: 12px; line-height: 1; color: rgba(28,43,34,.38); }
.bd__fl span { position: absolute; right: calc(100% + 12px); top: 50%; translate: 8px -50%; white-space: nowrap; padding: 3px 12px; background: var(--ink); color: var(--paper); border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .25s, translate .35s var(--spring); }
.bd__fl span::after { content: ""; position: absolute; left: 100%; top: 50%; translate: -1px -50%; border: 6px solid transparent; border-left-color: var(--ink); border-right: 0; }
.bd__fl:hover span, .bd__fl:focus-visible span, .bd__fl.is-form span { opacity: 1; translate: 0 -50%; }
.bd__fl:hover { transform: scaleX(1.08); }
.bd__fl.is-form { border: var(--line) solid var(--ink); background: var(--panel); background-size: auto; animation: tatekomi .5s var(--spring); z-index: 2; }
.bd__fl.is-form b { color: var(--ink); }
.bd__fl.is-form span { background: var(--red); }
.bd__fl.is-form span::after { border-left-color: var(--red); }
.bd__fl.is-cast { border: var(--line) solid var(--ink); background: var(--concrete) linear-gradient(90deg, transparent 18%, var(--ink) 18% 26%, transparent 26% 46%, var(--ink) 46% 54%, transparent 54% 74%, var(--ink) 74% 82%, transparent 82%) center / 100% 9px no-repeat; }
.bd__fl.is-cast b { opacity: 0; }
@keyframes tatekomi { from { transform: translateY(-16px) scale(1.08); } }
.bd__crane { position: absolute; left: 50%; bottom: calc(9px + var(--top, 1) * (var(--fh) - 3px)); width: 86px; translate: -34% 0; transition: bottom .6s var(--spring), opacity .3s; pointer-events: none; }
.bd__flag { position: absolute; left: 50%; bottom: calc(9px + var(--top, 1) * (var(--fh) - 3px) + 2px); width: 40px; translate: -50% 0; opacity: 0; transform: scale(0); transform-origin: 50% 100%; transition: transform .6s var(--spring) .3s, opacity .2s .3s; pointer-events: none; }
.bd__joto { position: absolute; right: calc(100% + 10px); bottom: 100%; white-space: nowrap; padding: 4px 16px; background: var(--red); color: var(--white); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-family: var(--f-big); font-size: 16px; rotate: -8deg; opacity: 0; transform: scale(0); transition: transform .5s var(--spring) .5s, opacity .2s .5s; pointer-events: none; }
.bd.is-top .bd__crane { opacity: 0; }
.bd.is-top .bd__flag, .bd.is-top .bd__joto { opacity: 1; transform: none; }
.bd.is-top .bd__fl { border: var(--line) solid var(--ink); background: var(--white) linear-gradient(90deg, transparent 18%, var(--green) 18% 26%, transparent 26% 46%, var(--green) 46% 54%, transparent 54% 74%, var(--green) 74% 82%, transparent 82%) center / 100% 11px no-repeat; }
.bd.is-top .bd__fl b { opacity: 0; }
.bd.is-top .bd__fl.is-form span { background: var(--green-deep); }
.bd.is-top .bd__fl.is-form span::after { border-left-color: var(--green-deep); }
/* 狭い画面では、ヘッダーの中の小さな一棟になる */
@media (max-width: 1099px) {
  .bd { z-index: 101; right: 82px; top: 24px; translate: none; width: 26px; --fh: 5.5px; pointer-events: none; }
  .bd::before { display: none; }
  .bd__gl { width: 36px; height: 3px; }
  .bd__fl { border-width: 1.5px !important; margin-bottom: -1.5px; background-size: 100% 2px !important; }
  .bd__fl b, .bd__fl span, .bd__joto, .bd__crane { display: none; }
  .bd__flag { width: 16px; bottom: calc(3px + var(--top, 1) * (var(--fh) - 1.5px)); }
}
@media (min-width: 1000px) and (max-width: 1099px) { .bd { right: 150px; } .hd__nav a { padding-inline: 10px; } }

/* 上棟の紙吹雪 */
.kami { position: fixed; z-index: 120; width: 14px; height: 9px; border: 2px solid var(--ink); pointer-events: none; animation: chip 1.5s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes chip { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }


/* ============================================================
   下層ページ(ブログ・施工実績)
   描くのは本番と同じ js/pop-blog.js・pop-works.js。ここは見た目だけ
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(22px) scale(.96); transition: opacity .4s, transform .6s var(--spring), box-shadow .3s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hd__nav a[aria-current="page"] { background: var(--yellow); }

.subpage-main { display: block; min-height: 60vh; padding-bottom: clamp(56px, 8vw, 104px); }
.sub .wrap { max-width: 1320px; padding-right: var(--gut); }
.sec-head__en { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--f-en); font-weight: 800; font-size: 15px; letter-spacing: .22em; color: var(--green-deep); }
.sec-head__en span { position: relative; padding: 2px 12px 2px 30px; background: var(--ink); color: var(--paper); border-radius: 8px; font-size: 16px; letter-spacing: .06em; line-height: 1.6; }
.sec-head__en span::before { content: ""; position: absolute; left: 10px; top: 50%; translate: 0 -40%; border: 7px solid transparent; border-top: 11px solid var(--yellow); border-bottom: 0; }
.sec-head__en::after { content: ""; flex: 1; border-top: 3px solid var(--ink); }
.page-head { padding-top: clamp(124px, 15vh, 160px); padding-bottom: clamp(28px, 4vw, 44px); }
.page-head__title { position: relative; display: inline-block; padding: .06em .18em .1em; margin-left: -.18em; font-family: var(--f-big); font-weight: 400; font-size: clamp(46px, 8.4vw, 124px); line-height: 1.12; }
.js .page-head__title::after { content: ""; position: absolute; inset: 0; background: var(--panel); border: var(--line) solid var(--ink); border-radius: 14px; transform-origin: 0 100%; animation: strip 1s cubic-bezier(.55, 0, .3, 1) .45s forwards; }
@keyframes strip { 70% { opacity: 1; } 100% { transform: rotate(-11deg) translate(-8%, 70%); opacity: 0; } }
.page-head__lead { max-width: 34em; margin-top: 14px; font-weight: 700; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink-soft); }
.page-head__note { margin-top: 16px; }
.page-head__note b { display: inline-block; padding: 4px 14px; border: 2px dashed var(--ink); border-radius: 999px; font-weight: 800; font-size: 13px; }
.blog-missing { margin-bottom: 20px; font-weight: 800; color: #c62828; }

/* 絞り込み */
.filters { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.search { display: block; max-width: 560px; }
.search input, .select select, .admin__form input, .admin__form select, .admin__form textarea {
  width: 100%; min-height: 54px; padding: 12px 20px;
  border: var(--line) solid var(--ink); border-radius: 999px; background: var(--white); box-shadow: 4px 4px 0 var(--ink);
  font: inherit; font-weight: 700; color: var(--ink); transition: box-shadow .2s, transform .2s;
}
.search input:focus, .select select:focus, .admin__form input:focus, .admin__form select:focus, .admin__form textarea:focus { outline: none; box-shadow: 6px 6px 0 var(--green); transform: translate(-1px, -1px); }
.search input { padding-left: 52px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2b22' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") 20px 50% / 20px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: var(--line) solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 800; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); transition: transform .25s var(--spring), box-shadow .25s, background .2s; }
.chip small { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--f-en); font-size: 12px; }
.chip:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--yellow); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.select select { width: auto; min-width: 200px; padding-right: 48px; appearance: none; cursor: pointer; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2b22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 18px center / 18px no-repeat; }
.filters__reset { min-height: 44px; padding: 0 6px; font-weight: 800; border-bottom: 2px solid var(--ink); }
.filters__count { margin-left: auto; font-family: var(--f-en); font-weight: 800; font-size: 16px; }
.empty { grid-column: 1 / -1; padding: 48px 24px; border: var(--line) dashed var(--ink); border-radius: var(--r-lg); text-align: center; font-weight: 800; }

/* ブログ一覧 */
.post-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.pcard { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-height: 260px; padding: 22px; border: var(--line) solid var(--ink); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.pcard.is-in:hover { transform: translate(-2px, -4px); box-shadow: 10px 10px 0 var(--ink); }
.pcard:nth-child(3n+2) { background: #fff8de; }
.pcard:nth-child(3n) { background: var(--paper-2); }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__cat { padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 800; font-size: 12px; }
.pcard__date { font-family: var(--f-en); font-weight: 700; font-size: 14px; color: var(--green-deep); }
.pcard__title { font-weight: 900; font-size: 20px; line-height: 1.5; }
.pcard__excerpt { align-self: end; padding-top: 12px; border-top: 2px dashed rgba(28,43,34,.3); font-weight: 700; font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); }
.pcard__thumb { align-self: end; overflow: hidden; border: 2px solid var(--ink); border-radius: 14px; aspect-ratio: 16 / 9; }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard__more { font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__views { margin-left: auto; font-weight: 800; font-size: 12px; color: var(--green-deep); }
.pcard__badge { position: absolute; top: -16px; right: 22px; padding: 2px 14px; border: var(--line) solid var(--ink); border-radius: 999px; background: var(--red); color: var(--white); font-family: var(--f-en); font-weight: 800; letter-spacing: .1em; box-shadow: 3px 3px 0 var(--ink); rotate: 4deg; }
.pcard--big { grid-column: 1 / -1; min-height: 300px; padding: clamp(26px, 3vw, 40px); background: var(--panel) !important; box-shadow: var(--sh-lg); }
.pcard--big .pcard__cat { background: var(--paper); }
.pcard--big .pcard__title { font-family: var(--f-big); font-weight: 400; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.35; }
.pcard--big .pcard__date { color: var(--ink); }
.pcard--big .pcard__thumb { border-width: var(--line); background: var(--white); }
@media (min-width: 1100px) {
  .pcard--big { grid-template-columns: 1.1fr .9fr; grid-template-rows: auto 1fr auto; column-gap: 40px; }
  .pcard--big .pcard__meta, .pcard--big .pcard__title, .pcard--big .pcard__foot { grid-column: 1; }
  .pcard--big .pcard__excerpt, .pcard--big .pcard__thumb { grid-column: 2; grid-row: 1 / 4; align-self: center; border-top: 0; padding-top: 0; }
  .pcard--big .pcard__excerpt { padding: 24px; border: var(--line) solid var(--ink); border-radius: var(--r); background: var(--paper); font-size: 15px; color: var(--ink); }
}
.view-src { margin-top: 10px; margin-bottom: 4px; font-weight: 800; font-size: 13px; line-height: 1.7; color: var(--green-deep); }
.view-src__title { margin-bottom: 6px; }
.view-src__scroll { overflow-x: auto; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); }
.view-src__table { width: 100%; border-collapse: collapse; white-space: nowrap; color: var(--ink); }
.view-src__table th, .view-src__table td { padding: 6px 12px; border-bottom: 1px solid rgba(28,43,34,.15); text-align: right; font-variant-numeric: tabular-nums; }
.view-src__table th[scope="row"], .view-src__table thead th:first-child { text-align: left; }
.view-src__table thead th { background: #eef6e6; font-size: 12px; }
.view-src__table td:nth-child(3), .view-src__table thead th:nth-child(3) { border-right: 2px solid var(--ink); }
.view-src__table .is-total th, .view-src__table .is-total td { border-top: 2px solid var(--ink); border-bottom: 0; background: #fff8de; }
.view-src__zero { color: rgba(28,43,34,.3); }
.view-src__note { margin-top: 6px; font-size: 11px; font-weight: 700; color: rgba(28,43,34,.65); }
.card-del { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 12px; border: 2px solid #c62828; border-radius: 999px; background: var(--white); color: #c62828; font-weight: 800; font-size: 12px; }
.card-del:hover { background: #c62828; color: var(--white); }
.pcard__foot .card-del { position: relative; right: auto; bottom: auto; flex: none; }

/* ブログ記事 */
.article { padding-top: clamp(116px, 15vh, 156px); }
.article__head { position: relative; max-width: 920px; margin-inline: auto; padding: clamp(22px, 3vw, 40px); border: var(--line) solid var(--ink); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-lg); }
.article__head::before { content: ""; position: absolute; left: clamp(22px, 3vw, 40px); right: clamp(22px, 3vw, 40px); top: -3px; height: 12px; background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--yellow) 12px 24px); border-inline: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); border-radius: 0 0 8px 8px; }
.article__back { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 22px; font-weight: 800; border-bottom: 2px solid currentColor; }
.btn__arrow--back::before { transform: scaleX(-1); }
a:hover .btn__arrow--back::before { transform: scaleX(-1) translateX(4px); }
.article__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.article__meta time { font-family: var(--f-en); font-weight: 800; font-size: 17px; color: var(--green-deep); }
.article__title { font-weight: 900; font-size: clamp(28px, 4.2vw, 56px); line-height: 1.35; }
.article__body { max-width: 720px; margin: clamp(36px, 5vw, 60px) auto 0; font-size: clamp(16px, 1.25vw, 18px); font-weight: 600; line-height: 2.1; }
.post-body p { margin-bottom: 1.15em; }
.post-body p.is-line { margin-bottom: .35em; }
.post-body p.is-line + p:not(.is-line) { margin-top: 1.4em; }
.post-body a { color: var(--green-deep); border-bottom: 2px solid currentColor; }
.post-media { display: grid; gap: 18px; margin-top: 32px; }
.post-media img, .post-media video { width: 100%; height: auto; border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); background: var(--concrete); }
.article__foot { max-width: 920px; margin: clamp(48px, 7vw, 80px) auto 0; display: grid; justify-items: center; gap: 28px; }
.article__sign { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.article__sign img { width: 40px; }
.article-nav { width: 100%; display: grid; gap: 18px; }
@media (min-width: 760px) { .article-nav { grid-template-columns: 1fr 1fr; } }
.article-nav__item { display: grid; gap: 6px; padding: 20px 22px; border: var(--line) solid var(--ink); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); transition: transform .3s var(--spring), box-shadow .3s; }
.article-nav__item:hover { transform: translate(-2px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.article-nav__item.is-newer { text-align: right; background: var(--ply); }
.article-nav__item.is-empty { visibility: hidden; }
.article-nav__label { font-weight: 800; font-size: 13px; color: var(--green-deep); }
.article-nav__item b { font-weight: 900; font-size: 17px; line-height: 1.5; }
.article-nav__item time { font-family: var(--f-en); font-weight: 700; font-size: 13px; color: var(--ink-soft); }

/* 施工実績一覧 */
.work-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.wcard { position: relative; display: grid; border: var(--line) solid var(--ink); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-lg); overflow: hidden; }
.wcard.is-in:hover { transform: translate(-2px, -4px); box-shadow: 14px 14px 0 var(--ink); }
.wcard__photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); border-bottom: var(--line) solid var(--ink); cursor: zoom-in; }
.wcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wcard__photo:hover img { transform: scale(1.05); }
.wcard__count { position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 800; font-size: 13px; }
.wcard__zoom { position: absolute; right: 14px; top: 14px; width: 48px; height: 48px; border: var(--line) solid var(--ink); border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2b22' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 3px 3px 0 var(--ink); transition: transform .35s var(--spring); }
.wcard__photo:hover .wcard__zoom { transform: scale(1.12) rotate(-8deg); }
.wcard__body { position: relative; display: grid; justify-items: start; gap: 10px; padding: clamp(22px, 2.6vw, 34px); background: var(--concrete) radial-gradient(circle, rgba(28,43,34,.3) 0 4px, transparent 4.5px) 20px 16px / 120px 84px; }
.wcard__no { position: absolute; right: 22px; top: 16px; font-family: var(--f-en); font-weight: 800; font-size: clamp(40px, 4vw, 64px); line-height: 1; color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.wcard__body > :not(.wcard__no) { position: relative; }
.wcard__title { max-width: 14em; font-family: var(--f-big); font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.4; }
.wcard__desc { font-weight: 700; white-space: pre-wrap; }
.wcard__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.wcard__ask { font-weight: 800; font-size: 14px; border-bottom: 2px solid var(--ink); }
@media (min-width: 900px) {
  .work-grid.is-single { grid-template-columns: 1fr; }
  .work-grid.is-single .wcard { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .work-grid.is-single .wcard__photo { aspect-ratio: 5 / 4; border-bottom: 0; border-right: var(--line) solid var(--ink); }
  .work-grid.is-single .wcard__body { align-content: end; gap: 14px; padding: clamp(32px, 4vw, 56px); }
  .work-grid.is-single .wcard__title { font-size: clamp(32px, 3.6vw, 54px); }
}

/* 写真の拡大表示 */
body.lbox-open { overflow: hidden; }
.lbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 72px 88px; background: rgba(23,59,32,.94); opacity: 0; transition: opacity .3s; }
.lbox.is-on { opacity: 1; }
.lbox__fig { display: grid; justify-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lbox__fig img { max-width: min(1200px, 100%); max-height: calc(100vh - 200px); width: auto; height: auto; object-fit: contain; border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: 10px 10px 0 var(--yellow); background: var(--concrete); }
.lbox__fig figcaption { display: flex; gap: 14px; align-items: baseline; color: var(--paper); font-weight: 800; }
.lbox__n { font-family: var(--f-en); color: var(--yellow); }
.lbox__btn { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border: var(--line) solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 22px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); transition: transform .25s var(--spring); }
.lbox__btn:hover { transform: scale(1.08); background: var(--yellow); }
.lbox__close { top: 18px; right: 18px; }
.lbox__prev { left: 18px; top: 50%; margin-top: -28px; }
.lbox__next { right: 18px; top: 50%; margin-top: -28px; }
@media (max-width: 999px) {
  .lbox { padding: 64px 12px; }
  .lbox__prev, .lbox__next { top: auto; bottom: 16px; margin-top: 0; }
  .lbox__prev { left: calc(50% - 68px); }
  .lbox__next { right: calc(50% - 68px); }
}

/* 記事・実績の下の導線 */
.next { display: grid; gap: 24px; padding-bottom: clamp(72px, 10vw, 128px); }
@media (min-width: 800px) { .next { grid-template-columns: 1fr 1fr; } }
.next__card { position: relative; display: grid; gap: 8px; padding: clamp(24px, 3vw, 36px); padding-right: 96px; border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); transition: transform .4s var(--spring), box-shadow .3s; }
.next__card:hover { transform: translate(-3px, -4px); box-shadow: 14px 14px 0 var(--ink); }
.next__card--build { background: var(--white); }
.next__card--work { background: var(--green); color: var(--white); }
.next__tag { justify-self: start; font-family: var(--f-en); font-weight: 800; font-size: 13px; letter-spacing: .2em; }
.next__card b { font-family: var(--f-big); font-weight: 400; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.3; }
.next__card > span:not(.next__tag) { font-weight: 700; }
.next__card .btn__arrow { position: absolute; right: 28px; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: var(--line) solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); }
.next__card .btn__arrow::before { inset: 12px; }

/* 管理(ログイン・投稿) */
.admin { margin-top: clamp(48px, 7vw, 80px); }
.admin__toggle { font-weight: 800; font-size: 13px; color: var(--ink-soft); border-bottom: 1px dashed currentColor; }
.admin__box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.admin__box .search { width: min(320px, 100%); }
.admin__box .search input { padding-left: 20px; background-image: none; }
.admin__msg { width: 100%; font-weight: 800; font-size: 14px; color: var(--green-deep); }
.admin__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 20px; border: var(--line) solid var(--ink); border-radius: var(--r); background: var(--ink); color: var(--paper); }
.admin__on { padding: 2px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 13px; }
.admin__link { font-weight: 800; border-bottom: 2px solid var(--yellow); }
.admin__logout { margin-left: auto; font-weight: 800; color: var(--paper); border-bottom: 1px solid currentColor; }
.admin__form { display: grid; gap: 18px; max-width: 760px; margin-top: 22px; padding: clamp(22px, 3vw, 36px); border: var(--line) solid var(--ink); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh); }
.admin__title { font-weight: 900; font-size: 24px; }
.admin__form label { display: grid; gap: 8px; font-weight: 800; }
.admin__form textarea { border-radius: 20px; min-height: 180px; line-height: 1.8; resize: vertical; }
.admin__file input { min-height: 0; padding: 12px; border-style: dashed; border-radius: 16px; box-shadow: none; }
.admin__previews { display: flex; flex-wrap: wrap; gap: 10px; }
.admin__previews img, .admin__previews video { width: 110px; height: 82px; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; }
.admin__form .btn { justify-self: start; }
.ft__admin { text-align: center; padding: 8px var(--gut) 0; font-size: 13px; }
.ft__admin a { color: var(--yellow); border-bottom: 1px solid currentColor; }

@media (max-width: 600px) {
  .hero__eyebrow { margin-bottom: 64px; }
  .hero__photo { width: 86%; }
  .stamp { width: 88px; height: 88px; right: -14px; top: -28px; }
  .stamp img { width: 38px; }
  .tape__case { width: 70px; height: 70px; border-radius: 18px 18px 18px 26px; }
  .tape__case img { width: 32px; }
  .scene__texts { min-height: 270px; }
  .work img { min-height: 0; }
}

/* 「視差効果を減らす」にしている端末(html に .rm が付く)。
   2026-11-11: 以前は全部止めていたが、iPhone でこの設定の人には何も動かないサイトに見えた。
   止めるのは、飛ぶ・回る・流れ続ける動きだけ。打設や登場は、その場で静かに変わる形で残す */
.rm .tora__track, .rm .stamp svg, .rm .contact__sky i, .rm .dot { animation: none; }
.rm.js [data-strip]::after { transition: opacity .6s .15s; }
.rm.js [data-strip].is-in::after, .rm.js [data-strip]:nth-child(even).is-in::after { transform: none; opacity: 0; }
.rm.js [data-pop], .rm.js [data-reveal] { transform: none; transition: opacity .6s; }
.rm .pour__mold i:nth-child(n) { transition: opacity .6s; }
.rm .is-stripped .pour__mold i:nth-child(n) { transform: none; transition-delay: 0s; }
.rm .is-stripped .pour__fill, .rm .is-stripped .pour__edge, .rm .bd__fl.is-form { animation: none; }
.rm .is-cast .pour__hose { transform: none; }
.rm.js .page-head__title::after { animation: stripFade .7s .4s forwards; }
@keyframes stripFade { to { opacity: 0; } }
