/* ---- 最初の画面 ---- */
#hero { position: relative; height: 210vh; background: var(--ink); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #333; transform-origin: center top; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0005 0, #0000 22%, #0000 42%, #000b 100%); pointer-events: none; }
#roller { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; filter: drop-shadow(0 18px 18px #0009); transform-origin: left center; }
#roller svg { width: 100%; height: 100%; overflow: visible; display: block; }
#roller.on { opacity: 1; }
.hero-copy { position: absolute; left: clamp(16px, 3.4vw, 54px); right: 16px; bottom: clamp(30px, 6vh, 70px); pointer-events: none; }
.hero-lead { font-weight: 900; font-size: clamp(15px, 1.6vw, 24px); margin-bottom: .5em; opacity: 0; transition: opacity .6s .5s; text-shadow: 0 1px 12px #000a; }
.ready .hero-lead { opacity: 1; }
.hero-title { font-size: clamp(50px, 11.6vw, 200px); line-height: 1.04; text-shadow: 0 6px 34px #0007; }
.hero-line { display: block; white-space: nowrap; }
.hero-line.hot { color: var(--hot); }
.ch { display: inline-block; opacity: 0; transform: translateY(-46vh) rotate(-16deg); }
.ready .ch {
  opacity: 1; transform: none;
  transition: transform .86s cubic-bezier(.2, 1.5, .4, 1) calc(.1s + var(--i) * 44ms), opacity .1s calc(.1s + var(--i) * 44ms);
}
.hero-hint { position: absolute; right: clamp(30px, 8vw, 150px); bottom: 50vh; opacity: 0; transition: opacity .5s; pointer-events: none; }
.hero-hint span { display: inline-block; padding: 8px 18px; border-radius: 99px; background: var(--yellow); color: #111; font-weight: 900; font-size: 14px; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(-6px) rotate(-2deg); } }
.paintable .hero-hint { opacity: 1; }
@media (pointer: coarse) { .hero-hint { display: none; } }
.hero-scroll { position: absolute; right: clamp(20px, 3vw, 46px); bottom: 24px; font-family: var(--latin); letter-spacing: .3em; font-size: 12px; writing-mode: vertical-rl; }

/* ---- 養生テープ ---- */
.tapes { position: relative; height: clamp(190px, 25vw, 330px); overflow: clip; background: var(--ink); }
.tape { position: absolute; left: -6vw; right: -6vw; overflow: hidden; white-space: nowrap; font-family: var(--heavy); font-size: clamp(30px, 5vw, 76px); line-height: 1.42; box-shadow: 0 12px 30px #0008; }
.tape > span { display: inline-flex; will-change: transform; }
.tape-run { flex: none; padding-right: 0; }
.tape-a { top: 18%; transform: rotate(-3.4deg); background: var(--yellow); color: #111; z-index: 2; }
.tape-b { top: 50%; transform: rotate(2.6deg); background: #2fa968; color: #fff; }

/* ---- 文章 ---- */
.say-stage { display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 0 clamp(20px, 7vw, 120px); }
.say-text { position: relative; font-family: var(--heavy); font-size: clamp(25px, 4.1vw, 66px); line-height: 1.52; max-width: 1200px; }
.say-text .c { color: #ffffff1c; transition: color .28s; }
.say-text .c.lit { color: #fff; }
.say-text .c.lit.hot { color: var(--hot); }
.say-splash { position: absolute; width: min(62vw, 720px); mix-blend-mode: screen; opacity: .52; pointer-events: none; }
.say-splash.a { left: -18%; top: -18%; }
.say-splash.b { right: -16%; bottom: -24%; }
@media (max-width: 760px) { .say-splash { width: 96vw; } }

/* ---- 垂れる塗料 ---- */
.drips { position: absolute; left: 0; right: 0; top: -1px; display: flex; z-index: 6; pointer-events: none; filter: url(#goo); background: linear-gradient(var(--ink), var(--ink)) top / 100% 26px no-repeat; }
.drips i { display: block; flex: 1 1 auto; border-radius: 0 0 999px 999px; transform: scaleY(var(--p, 0)); transform-origin: top; }

/* ---- 傷みのサイン ---- */
#signs { background: var(--paper); color: #111; }
.signs-stage { display: grid; grid-template-columns: minmax(320px, 36%) 1fr; align-items: center; gap: clamp(12px, 3vw, 50px); padding: 80px clamp(16px, 5vw, 80px) 40px; background: var(--paper); }
.signs-head h2 { font-size: clamp(34px, 4.3vw, 76px); margin-top: 10px; }
.deck { position: relative; height: min(70vh, 640px); }
.sign { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; overflow: hidden; border-radius: 26px; background: #111; color: #fff; box-shadow: 0 24px 60px #0005; will-change: transform; }
.sign-img { overflow: hidden; min-height: 0; }
.sign-img img { width: 100%; height: 100%; object-fit: cover; }
.sign-body { position: relative; padding: clamp(16px, 2.2vw, 30px) clamp(18px, 2.6vw, 36px) clamp(18px, 2.4vw, 30px); padding-left: clamp(80px, 8vw, 120px); }
.sign-body b { position: absolute; left: clamp(16px, 2vw, 30px); top: clamp(10px, 1.6vw, 22px); font-family: var(--latin); font-weight: 400; font-size: clamp(44px, 5vw, 70px); line-height: 1; color: var(--hot); }
.sign-body h3 { font-size: clamp(21px, 2.4vw, 36px); }
.sign-body p { margin-top: 6px; font-size: clamp(14px, 1.1vw, 16px); color: #ffffffd0; }
@media (max-width: 760px) {
  .signs-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; padding-top: 74px; padding-bottom: 20px; }
  .signs-head h2 br { display: none; }
  .signs-head h2 { font-size: 30px; }
  .deck { height: auto; }
}

/* ---- 色を試す ---- */
#color { background: var(--ink); }
.sim { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.sim-house { position: absolute; inset: 0; }
.sim-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.sim-layer.show { opacity: 1; }
.sim-shade { position: absolute; inset: 0; z-index: 2000; pointer-events: none; background: linear-gradient(90deg, #000a 0, #0000 40%), linear-gradient(0deg, #000a 0, #0000 34%); }
.sim-copy { position: absolute; z-index: 2001; left: clamp(16px, 4vw, 66px); top: 84px; pointer-events: none; text-shadow: 0 2px 22px #000a; }
.sim-copy .eyebrow { color: #fff; }
.sim-copy h2 { font-size: clamp(34px, 5.2vw, 88px); margin-top: 6px; }
.sim-name { font-family: var(--heavy); font-size: clamp(66px, 11vw, 180px); line-height: 1.2; margin-top: 8px; }
.sim-name.pop { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: translateY(26px) scale(.8); opacity: 0; } }
.sim-panel { position: absolute; z-index: 2002; left: clamp(16px, 4vw, 66px); right: clamp(16px, 4vw, 66px); bottom: clamp(18px, 4vh, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.sim-cans { display: flex; gap: clamp(8px, 1.2vw, 16px); }
.sim-cans button { width: clamp(44px, 5.4vw, 74px); aspect-ratio: 1; border-radius: 52% 48% 56% 44%; background: var(--can); border: 3px solid #fff; box-shadow: 0 8px 18px #0007; transition: transform .35s cubic-bezier(.2, 1.7, .4, 1), border-radius .35s; }
.sim-cans button:hover { transform: scale(1.14) rotate(-8deg); }
.sim-cans button.on { transform: translateY(-10px) scale(1.2); border-radius: 50%; border-width: 5px; }
.sim-hold { padding: 12px 22px; border: 2px solid #fff; border-radius: 99px; font-weight: 900; font-size: 14px; background: #0007; user-select: none; touch-action: none; }
.sim-hold:active { background: #fff; color: #111; }

/* ---- 職人 ---- */
.craft-stage { background: #000; }
.craft-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.craft-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #000b 0, #0003 70%); }
.craft-title { position: absolute; left: clamp(16px, 5vw, 80px); top: 50%; transform: translateY(-58%); font-size: clamp(50px, 10.6vw, 190px); line-height: 1.14; }
.craft-title span { display: block; white-space: nowrap; width: max-content; }
.craft-title span:nth-child(2) { position: relative; z-index: 0; }
.craft-title span:nth-child(2)::before { content: ""; position: absolute; z-index: -1; left: -.14em; right: -.14em; top: .08em; bottom: .02em; background: var(--hot); transform: scaleX(var(--swipe, 0)); transform-origin: left; border-radius: 6px 60px 26px 8px; }
.craft-text { position: absolute; left: clamp(16px, 5vw, 80px); right: 16px; bottom: clamp(30px, 8vh, 80px); font-weight: 700; font-size: clamp(15px, 1.5vw, 22px); text-shadow: 0 2px 10px #000; opacity: 0; }

/* ---- 塗り方 ---- */
.process-stage { background: var(--ink); }
.process-track { display: flex; height: 100%; width: max-content; will-change: transform; padding-bottom: 92px; }
.step { position: relative; flex: none; width: clamp(310px, 66vw, 1040px); height: 100%; padding: 80px clamp(10px, 1.4vw, 22px) 14px; display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (max-width: 760px) { .step { width: 84vw; } .step-title { width: 92vw; } }
.step > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 22px; }
.step > div { position: relative; padding-left: clamp(70px, 7vw, 110px); min-height: 72px; }
.step b { position: absolute; left: 0; top: -.13em; font-family: var(--latin); font-weight: 400; font-size: clamp(70px, 7vw, 110px); line-height: 1; color: var(--hot); }
.step h3 { font-size: clamp(25px, 3vw, 46px); }
.step-title { width: clamp(300px, 54vw, 860px); align-content: center; grid-template-rows: auto; padding-left: clamp(16px, 5vw, 80px); }
.step-title h2 { font-size: clamp(48px, 8.4vw, 140px); margin: 6px 0 16px; }
.step-title p:last-child { font-weight: 700; font-size: clamp(15px, 1.5vw, 22px); }
.step-coat .coat { position: relative; display: block; border-radius: 22px; background: #2a2a2a; overflow: hidden; min-height: 0; }
.step-coat .coat::before { content: ""; position: absolute; inset: 0; background: var(--coat); transform: scaleX(var(--w, 0)); transform-origin: left; border-radius: 0 90px 60px 0; }
.step-coat .coat em { position: absolute; left: 4%; bottom: 2%; font: 400 clamp(64px, 12vw, 200px) / .98 var(--latin); color: #fff; mix-blend-mode: difference; letter-spacing: .02em; }
.process-layers { position: absolute; left: clamp(16px, 5vw, 80px); right: clamp(16px, 5vw, 80px); bottom: 20px; z-index: 3; }
.process-layers p { font-size: 12px; font-weight: 700; letter-spacing: .14em; margin-bottom: 4px; }
.wall { display: flex; flex-direction: column-reverse; height: 44px; padding: 3px; gap: 2px; background: #2a2a2a; border-radius: 6px; }
.wall i { flex: 1; transform: scaleX(0); transform-origin: left; border-radius: 2px; }
.wall i:nth-child(1) { background: #777; }
.wall i:nth-child(2) { background: #aaa; }
.wall i:nth-child(3) { background: #f2f0e8; }
.wall i:nth-child(4) { background: #31508f; }
.wall i:nth-child(5) { background: #1d2f5f; box-shadow: 0 0 0 1px #6f8fd6; }

/* ---- 施工事例 ---- */
#works { position: relative; background: var(--paper); color: #111; padding: clamp(80px, 12vw, 180px) clamp(16px, 5vw, 80px); }
.works-head h2 { font-size: clamp(36px, 6.2vw, 110px); margin: 8px 0 clamp(36px, 6vw, 90px); }
.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2.2vw, 34px); }
.work { display: block; transition: transform .25s; transform-style: preserve-3d; }
.w1 { grid-column: 1 / span 7; }
.w2 { grid-column: 8 / span 5; margin-top: 16vw; }
.w3 { grid-column: 2 / span 5; }
.w4 { grid-column: 7 / span 6; margin-top: 8vw; }
.work-img { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: #ddd8cc; }
.work-img img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); transform: scale(1.2); transition: clip-path .5s .42s cubic-bezier(.7, 0, .2, 1), transform 1.5s .42s cubic-bezier(.2, .7, .2, 1); }
.work-img::after { content: ""; position: absolute; inset: 0; background: var(--hot); transform: scaleX(0); transform-origin: left; }
.work.in .work-img img { clip-path: inset(0); transform: scale(1); }
.work.in .work-img::after { animation: wipe 1s cubic-bezier(.7, 0, .2, 1) forwards; }
.w2 .work-img::after { background: #1d2f5f; }
.w3 .work-img::after { background: var(--yellow); }
.w4 .work-img::after { background: #2fa968; }
@keyframes wipe { 45% { transform: scaleX(1); transform-origin: left; } 46% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.work:hover img { transform: scale(1.07); transition: transform .5s; }
.work p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; }
.work b { font-family: var(--heavy); font-weight: 400; font-size: clamp(18px, 2vw, 30px); }
.work small { font-size: 13px; color: #555; }
@media (max-width: 760px) { .work { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

/* ---- 大きな「塗」 ---- */
.kanji-stage { background: #000; isolation: isolate; }
.kanji-img { position: absolute; inset: -14%; width: 128%; height: 128%; max-width: none; object-fit: cover; }
.kanji-mask { position: absolute; inset: 0; background: #000; mix-blend-mode: multiply; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-bottom: 12vh; }
.kanji-mask span { display: block; font-family: var(--heavy); color: #fff; font-size: min(62vh, 82vw); line-height: 1; transform-origin: 46% 54%; will-change: transform; }
.kanji-nums { position: absolute; left: 0; right: 0; bottom: clamp(16px, 5vh, 44px); display: flex; justify-content: center; gap: clamp(16px, 6vw, 110px); opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s; z-index: 3; }
.kanji-nums.in { opacity: 1; transform: none; }
.kanji-nums p { text-align: center; line-height: 1.2; }
.kanji-nums b { font-family: var(--latin); font-weight: 400; font-size: clamp(38px, 6vw, 96px); }
.kanji-nums small { font-weight: 900; font-size: clamp(14px, 1.6vw, 22px); margin-left: 3px; }
.kanji-nums span { display: block; font-size: clamp(11px, 1vw, 14px); font-weight: 700; margin-top: 4px; }

/* ---- 相談 ---- */
#contact { position: relative; overflow: hidden; background: var(--hot); color: #fff; padding-top: clamp(180px, 26vw, 400px); }
.rise { display: none; }
.cta-splash { position: absolute; right: -14%; top: 8%; width: min(72vw, 820px); mix-blend-mode: multiply; opacity: 0; pointer-events: none; }
.cta-body { position: relative; padding: 0 clamp(16px, 5vw, 80px) clamp(70px, 10vw, 150px); }
#contact .eyebrow { color: #fff; }
.cta-body h2 { font-size: clamp(44px, 10vw, 180px); margin: 8px 0 22px; }
.cta-text { font-weight: 700; font-size: clamp(16px, 1.8vw, 26px); margin-bottom: clamp(26px, 4vw, 54px); }
.cta-btn { display: inline-block; padding: clamp(18px, 2.4vw, 36px) clamp(30px, 4.6vw, 74px); border-radius: 999px; background: #111; font-family: var(--heavy); font-size: clamp(19px, 2.6vw, 42px); transition: transform .2s, background .2s, color .2s; box-shadow: 0 14px 0 #0003; }
.cta-btn:hover { background: var(--yellow); color: #111; }
.cta-tel { margin-top: 30px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cta-tel small { font-weight: 700; }
.cta-tel b { font-family: var(--latin); font-weight: 400; font-size: clamp(36px, 5.2vw, 76px); letter-spacing: .03em; }
.foot-tape { overflow: hidden; white-space: nowrap; background: #111; color: var(--yellow); font-family: var(--heavy); font-size: clamp(18px, 2.6vw, 38px); line-height: 1.6; }
.foot-tape > span { display: inline-flex; }
.foot p { padding: 16px clamp(16px, 5vw, 80px); background: #111; font-size: 13px; color: #ffffffb0; }
