/* AI CREATOR KITASAN — 黒の上に、色・幾何学・天気・メッセージ（kitasan-creator スキル） */
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Space+Grotesk:wght@700&family=Noto+Sans+JP:wght@400;700;900&family=JetBrains+Mono:wght@700&family=Yuji+Syuku&display=swap');

:root {
  --bg: #050507;
  --pink: #FF1F6B; --yellow: #FFE600; --cyan: #00F0FF; --lime: #7CFF00; --purple: #8A2BFF; --orange: #FF7A00; --magenta: #FF00E5; --blue: #2D6BFF; --green: #00C46A;
  --display: 'Dela Gothic One', 'Noto Sans JP', sans-serif; --en: 'Space Grotesk', sans-serif; --jp: 'Noto Sans JP', sans-serif; --mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: #fff; font-family: var(--jp); }
body { overflow-x: hidden; }
html.door-on body { overflow: hidden; }
a { color: var(--cyan); }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 背景の動き */
#chaos { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
main { position: relative; z-index: 1; }

/* 右上：動きを止める */
.motion { position: fixed; top: 14px; right: 14px; z-index: 30; font: 700 .9rem var(--jp); background: #000; color: #fff; border: 3px solid var(--yellow); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; }

/* 左下：いまの天気 */
.weather { position: fixed; left: 14px; bottom: 14px; z-index: 30; font: 700 .85rem var(--mono); background: #000; border: 2px solid #fff; border-radius: 999px; padding: 8px 14px; letter-spacing: .08em; }
.weather b { color: var(--yellow); margin-right: 6px; }

/* 文字の板（ここだけ整える。黒地に白・黄＝差 16 以上） */
.plate { display: inline-block; background: #000; color: #fff; padding: .14em .45em; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.35; }
.plate.light { background: #fff; color: #000; }
.hot { color: var(--yellow); }
.tilt-l { transform: rotate(-3deg); } .tilt-r { transform: rotate(2.5deg); }

section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px 6vw; }
.gap > * { margin: 10px 0; }
.label { font: 700 clamp(.85rem, 1.8vw, 1.1rem) var(--mono); letter-spacing: .28em; }
.big { font-family: var(--display); font-size: clamp(2.2rem, 6.4vw, 6.2rem); line-height: 1.14; margin: 16px 0; font-weight: 400; }
.en { font: 700 clamp(1.3rem, 4.2vw, 3.4rem) var(--en); line-height: 1.15; margin: 0; }
.mid { font: 900 clamp(1.4rem, 4vw, 3rem) var(--jp); line-height: 1.5; margin: 0; }
.small { font: 700 clamp(1rem, 1.9vw, 1.25rem) var(--jp); line-height: 1.9; margin: 0; }

/* つかみは言葉だけ。本人は「ほんとうのこと」の横 */
.who { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 4vw; }
.who-text > * { margin: 10px 0; }
.me { position: relative; margin: 0; justify-self: center; width: min(34vw, 460px); aspect-ratio: 1; }
.me img { width: 100%; height: 100%; object-fit: cover; display: block; border: 6px solid #000; outline: 6px solid var(--yellow); transform: rotate(2deg); clip-path: polygon(4% 0, 100% 3%, 96% 100%, 0 96%); }
.me .tag { position: absolute; left: -8%; bottom: 6%; transform: rotate(-6deg); font: 700 clamp(.9rem, 1.6vw, 1.2rem) var(--mono); }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } .me { width: min(72vw, 380px); margin-top: 20px; } }

/* 吃音の演出（本人の物語としてだけ使う） */
@keyframes stutter { 0%, 18% { opacity: 0; transform: translateX(-.15em); } 20%, 30% { opacity: 1; transform: none; } 32%, 40% { opacity: 0; } 42%, 100% { opacity: 1; transform: none; } }
.stutter span { display: inline-block; }
.stutter.go span { animation: stutter 2.4s steps(1, end) 1 both; }
.stutter.go span:nth-child(2) { animation-delay: .5s; } .stutter.go span:nth-child(3) { animation-delay: 1s; }

/* 作ったもの：概要と数だけ */
.counter { font: 700 clamp(3.2rem, 13vw, 10rem) var(--mono); line-height: 1; margin: 10px 0; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 22px; }
.work { background: #000; padding: 18px; border: 4px solid var(--c); transform: rotate(var(--r)) translateY(34px) scale(.9); opacity: 0; transition: transform .5s cubic-bezier(.2, 1.6, .4, 1), opacity .35s; }
.work.on { transform: rotate(var(--r)); opacity: 1; }
.work .n { font: 700 2.3rem var(--mono); color: var(--c); line-height: 1; }
.work b { display: block; font-size: 1.15rem; margin-top: 8px; }

.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 28px; margin: 8px 10px 0 0; background: #000; color: var(--yellow); border: 4px solid var(--yellow); border-radius: 999px; font: 900 1.1rem var(--jp); text-decoration: none; }
.cta.alt { background: var(--yellow); color: #000; border-color: #000; }
footer { position: relative; z-index: 1; padding: 30px 6vw 80px; font: 700 .8rem var(--mono); opacity: .8; }

/* ===== 開門（お殿様の扉がガラッと開く） ===== */
#door { position: fixed; inset: 0; z-index: 50; display: flex; pointer-events: auto; }
#door .leaf { position: relative; width: 50%; height: 100%; background:
    linear-gradient(90deg, rgba(0,0,0,.35), transparent 8%, transparent 92%, rgba(0,0,0,.35)),
    repeating-linear-gradient(0deg, transparent 0 calc(16.66% - 6px), #2a1708 calc(16.66% - 6px) 16.66%),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 6px), #2a1708 calc(25% - 6px) 25%),
    linear-gradient(#F3E6C4, #E9D6A6);
  border: 14px solid #1a0d05; box-shadow: inset 0 0 0 4px #C9A13B; transition: transform .62s cubic-bezier(.7, 0, .2, 1.08); }
#door .leaf.l { border-right-width: 7px; } #door .leaf.r { border-left-width: 7px; }
#door .kamon { position: absolute; top: 50%; width: clamp(70px, 11vw, 150px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: #1a0d05; box-shadow: 0 0 0 5px #C9A13B; display: flex; align-items: center; justify-content: center; }
#door .l .kamon { right: -2px; transform: translate(50%, -50%); clip-path: inset(0 50% 0 0); }
#door .r .kamon { left: -2px; transform: translate(-50%, -50%); clip-path: inset(0 0 0 50%); }
#door .kamon svg { width: 72%; height: 72%; }
#door .gara { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.3) rotate(-8deg); z-index: 2; font: 400 clamp(3rem, 14vw, 11rem) var(--display); color: var(--yellow); -webkit-text-stroke: 6px #000; paint-order: stroke; opacity: 0; transition: transform .35s cubic-bezier(.2, 1.8, .4, 1), opacity .2s; pointer-events: none; white-space: nowrap; }
#door .call { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); z-index: 2; font: 400 clamp(1.2rem, 3.4vw, 2.4rem) 'Yuji Syuku', serif; color: #1a0d05; background: #F3E6C4; border: 3px solid #1a0d05; padding: .2em .9em; transition: opacity .3s; }
#door.knock .gara { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
#door.open .leaf.l { transform: translateX(-102%); } #door.open .leaf.r { transform: translateX(102%); }
#door.open .call { opacity: 0; }
#door.open .gara { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(-8deg); transition-delay: .25s; }
#door.gone { display: none; }
.skip { position: absolute; right: 16px; bottom: 16px; z-index: 3; font: 700 .9rem var(--jp); background: #000; color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }

html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 導入のご案内（BtoB） */
.biz-points { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.biz-points li { background: #000; border: 4px solid var(--c); padding: 18px; }
.biz-points .n { display: block; font: 700 2rem var(--mono); color: var(--c); line-height: 1; }
.biz-points b { display: block; font: 900 1.25rem var(--jp); margin: 8px 0 6px; }
.biz-points li > span:last-child { font-size: 1rem; line-height: 1.8; }

/* 大きくて見つけやすいマウスの矢印（黄色＋黒のふち）。指で触る画面では使わない */
@media (pointer: fine) {
  html, body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M4 3 L4 36 L13 28 L19 41 L26 38 L20 25 L33 25 Z' fill='%23FFE600' stroke='%23000' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto; }
  a, button, [role=button], .cta { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M16 4 a3.5 3.5 0 0 1 7 0 V19 l2-.6 a3.3 3.3 0 0 1 4.2 2.4 l.3 .1 a3.3 3.3 0 0 1 4.6 2 l.4 .1 a3.2 3.2 0 0 1 4 3 V31 c0 6-4 10-10 10 h-5 c-4 0-6.5-1.6-8.6-4.6 L5.6 28.6 a3.3 3.3 0 0 1 5.1-4.1 L16 29 Z' fill='%2300F0FF' stroke='%23000' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 18 3, pointer; }
}
.biz-points .c-y { --c: #FFE600; } .biz-points .c-c { --c: #00F0FF; } .biz-points .c-l { --c: #7CFF00; } .biz-points .c-p { --c: #FF1F6B; }
