/* 案B「余白」— 紙・明朝・一筆書き */
:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --card: #f8f5ee;
  --ink: #1c1a16;
  --ink-2: #4a463e;
  --muted: #7b7468;
  --line: #d6cebd;
  --shu: #c8402a;
  --shu-ink: #fff7ef;
  --tint: transparent;
  --max: 1200px;
  --pad: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.22, .68, .1, 1);
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14130f; --paper-2: #1b1915; --card: #1d1b16; --ink: #ece6d8; --ink-2: #c9c2b2; --muted: #958e7f; --line: #34302a; --shu: #e2603f; --shu-ink: #1a0f0a;
  }
}
:root[data-theme="dark"] { --paper: #14130f; --paper-2: #1b1915; --card: #1d1b16; --ink: #ece6d8; --ink-2: #c9c2b2; --muted: #958e7f; --line: #34302a; --shu: #e2603f; --shu-ink: #1a0f0a; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--ink); font: 400 16px/2 var(--gothic); letter-spacing: .04em;
  background: var(--paper);
  background-image: linear-gradient(color-mix(in srgb, var(--tint) 7%, transparent), color-mix(in srgb, var(--tint) 7%, transparent));
  transition: background-color .8s;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, h4 { text-wrap: balance; word-break: auto-phrase; }
p, li, dd { word-break: auto-phrase; line-break: strict; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--shu); color: var(--shu-ink); }
:focus-visible { outline: 1.5px solid var(--shu); outline-offset: 4px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; top: 12px; left: 12px; background: var(--ink); color: var(--paper); padding: 6px 12px; }
.col { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.grain { position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: .12; } }

.cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--shu); pointer-events: none; opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background .3s; mix-blend-mode: multiply; }
.cursor.on { opacity: 1; }
.cursor.big { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: color-mix(in srgb, var(--shu) 22%, transparent); }

/* ---------- 見出しの部品 ---------- */
.kicker { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; font: italic 500 17px/1 var(--latin); color: var(--muted); letter-spacing: .06em; }
.kicker span { font: 700 13px/1 var(--mincho); color: var(--shu); border: 1px solid var(--shu); width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 3px; font-style: normal; }
.h2 { font: 600 clamp(30px, 4.4vw, 56px)/1.45 var(--mincho); letter-spacing: .04em; margin: 0; }

/* ---------- ヘッダー ---------- */
.head { position: fixed; z-index: 60; inset: 0 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); transition: background .5s, box-shadow .5s, translate .6s var(--ease); }
.head.is-scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.head.is-hidden:not(:focus-within) { translate: 0 -100%; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 20px/1 var(--mincho); letter-spacing: .08em; }
.seal { width: 30px; height: 30px; }
.seal rect { fill: var(--shu); }
.seal text { font: 700 22px var(--mincho); fill: var(--shu-ink); }
.gnav { display: flex; align-items: center; gap: 30px; }
.gnav a { text-decoration: none; display: grid; justify-items: center; line-height: 1.2; font-size: 14px; position: relative; padding: 6px 0; }
.gnav i { font: italic 400 12px/1 var(--latin); color: var(--muted); letter-spacing: .06em; margin-top: 4px; }
.gnav a:not(.gnav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--shu); transform: scaleX(0); transition: transform .5s var(--ease); }
.gnav a:hover::after, .gnav a.is-active::after { transform: scaleX(1); }
.gnav-cta { border: 1px solid var(--ink); padding: 10px 18px !important; border-radius: 999px; transition: background .3s, color .3s; }
.gnav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.menu-toggle i { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle i:nth-of-type(1) { top: 18px; } .menu-toggle i:nth-of-type(2) { top: 26px; }
.menu-toggle[aria-expanded=true] i { top: 22px; } .menu-toggle[aria-expanded=true] i:nth-of-type(1) { transform: rotate(30deg); } .menu-toggle[aria-expanded=true] i:nth-of-type(2) { transform: rotate(-30deg); }
.drawer { position: fixed; inset: 0; z-index: 55; background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 0 28px; }
.drawer a { display: flex; justify-content: space-between; align-items: baseline; font: 600 30px/1 var(--mincho); padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; opacity: 0; animation: rise .7s var(--ease) forwards; }
.drawer a:nth-child(2) { animation-delay: .05s; } .drawer a:nth-child(3) { animation-delay: .1s; } .drawer a:nth-child(4) { animation-delay: .15s; } .drawer a:nth-child(5) { animation-delay: .2s; }
.drawer i { font: italic 400 16px var(--latin); color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- ヒーロー ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; padding: 100px var(--pad) 80px; max-width: 1400px; margin: 0 auto; position: relative; }
.hero-art { position: relative; justify-self: center; width: min(82vw, 560px); }
.curve { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.curve canvas { width: 100%; height: 100%; }
.curve::before { content: ""; position: absolute; inset: -14px; border: 1px solid var(--line); pointer-events: none; }
.curve-cap { margin: 26px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; letter-spacing: .06em; }
.curve-cap span { color: var(--shu); font-family: var(--mincho); }
.curve-cap em { font-style: normal; display: block; opacity: .7; }
.stamp { position: absolute; right: -22px; bottom: 56px; width: clamp(70px, 9vw, 104px); rotate: -6deg; opacity: 0; transform: scale(1.6); transition: opacity .25s, transform .45s cubic-bezier(.3, 1.6, .5, 1); mix-blend-mode: multiply; }
.stamp rect { fill: none; stroke: var(--shu); stroke-width: 6; }
.stamp text { font: 900 34px var(--mincho); fill: var(--shu); }
.stamp.on { opacity: .92; transform: scale(1); }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.tate { writing-mode: vertical-rl; font: 700 clamp(34px, min(5vw, 7.6vh), 76px)/1.5 var(--mincho); letter-spacing: .14em; margin: 0; height: max-content; }
.tate span { display: block; }
.hero-sub { text-align: center; }
.hero-sub p { margin: 0; font-size: 14px; color: var(--ink-2); }
.hero-sub .en { font: italic 400 22px/1.4 var(--latin); color: var(--ink); margin-bottom: 8px; letter-spacing: .02em; }
.hero-down { position: absolute; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 12px; text-decoration: none; font: italic 400 14px var(--latin); color: var(--muted); }
.hero-down i { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero-down i::after { content: ""; position: absolute; inset: 0; background: var(--shu); animation: slide 2.4s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.25fr .75fr; gap: 6vw; }
  .hero-art { width: min(64vh, 46vw); justify-self: end; }
  .hero-copy { flex-direction: row-reverse; align-items: flex-end; justify-content: center; gap: 40px; }
  .hero-sub { writing-mode: vertical-rl; text-align: left; }
  .hero-sub p { font-size: 13px; }
  .hero-sub .en { writing-mode: horizontal-tb; rotate: 90deg; transform-origin: left top; display: none; }
}

/* 行ごとに出す */
[data-lines] > span { display: block; overflow: hidden; }
[data-lines] > span > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * .12s + .1s); }
.tate[data-lines] > span > span { transform: translateX(-105%); }
[data-lines].is-in > span > span { transform: none; }

/* ---------- 序 ---------- */
.intro { padding: clamp(120px, 20vw, 240px) 0; }
.intro .col { max-width: 920px; }
.intro-text { font: 500 clamp(21px, 3.2vw, 40px)/1.9 var(--mincho); margin: 0; letter-spacing: .06em; }
@media (min-width: 600px) { .intro-text > span { white-space: nowrap; } }

/* ---------- 製品（物語） ---------- */
.works { padding: 80px 0 0; }
.works-head { margin-bottom: 40px; }
.story { position: relative; display: grid; grid-template-columns: 1fr; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.stage { position: sticky; top: 64px; height: 46svh; z-index: 2; display: grid; place-items: center; background: linear-gradient(var(--paper) 82%, transparent); background-color: transparent; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--paper) 80%, color-mix(in srgb, var(--paper) 0%, transparent)); }
.stage-inner { position: relative; height: 92%; aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.dev { position: absolute; transition: opacity .8s var(--ease), transform 1s var(--ease); }
.dev:not(.on) { opacity: 0; transform: translateY(30px) scale(.96); pointer-events: none; }
.dev-ipad { height: 92%; aspect-ratio: 1032 / 1376; padding: 2.4%; border-radius: 6% / 4.5%; background: #22211d; box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .45), inset 0 0 0 1px rgba(255,255,255,.08); }
.dev-phone { height: 96%; aspect-ratio: 640 / 1391; padding: 2.6%; border-radius: 14% / 6.5%; background: #22211d; box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .45), inset 0 0 0 1px rgba(255,255,255,.08); }
.dev-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4% / 3%; background: #000; }
.dev-phone .dev-screen { border-radius: 12% / 5.6%; }
.dev-screen > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s, transform 1.2s var(--ease); transform: scale(1.03); }
.dev-screen > .on { opacity: 1; transform: none; }
.stage-app { position: absolute; left: 0; bottom: 4%; font: italic 500 clamp(16px, 1.6vw, 20px)/1 var(--latin); color: var(--muted); writing-mode: vertical-rl; rotate: 180deg; letter-spacing: .1em; transition: opacity .4s; }

.shot-id, .shot-l { background: #f6f7f5; color: #1c2a28; padding: 22% 9% 8%; display: flex; flex-direction: column; gap: 6%; font-size: clamp(9px, 1.1vh, 12px); }
.sid-top { margin: 0; display: flex; justify-content: space-between; letter-spacing: .02em; }
.sid-top b { font-weight: 500; }
.sid-photo { position: relative; width: 74%; margin: 0 auto; aspect-ratio: 35 / 45; background: linear-gradient(#e8eded, #dce4e3); outline: 2px solid #129a8e; overflow: visible; }
.sid-photo svg { position: absolute; left: 0; right: 0; margin: auto; top: 8.9%; height: 105.8%; width: auto; fill: #2c4a48; clip-path: inset(0 0 calc(100% - 86.6%) 0); }
.sid-photo i { position: absolute; left: -10%; right: -10%; border-top: 1.5px dashed #e39a14; }
.sid-photo .t { top: 8.9%; } .sid-photo .c { top: 84.4%; }
.sid-photo .dim-l, .sid-photo .dim-t { position: absolute; font-size: .9em; color: #a8650a; white-space: nowrap; }
.sid-photo .dim-l { right: -6px; top: 46%; translate: 100% 0; }
.sid-photo .dim-t { left: -6px; top: 2%; translate: -100% 0; }
.shot-id ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.shot-id li { background: #fff; border-radius: 8px; padding: 5px 10px; display: flex; align-items: center; gap: 8px; }
.shot-id li::before { content: "✓"; width: 1.5em; height: 1.5em; display: grid; place-items: center; background: #1f9d66; color: #fff; border-radius: 50%; font-size: .85em; }
.lban { position: relative; width: 80%; margin: 4% auto 0; aspect-ratio: 89 / 127; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 8% 8% 22%; display: grid; grid-template-columns: 1fr 1fr; gap: 4%; align-content: start; }
.lban i { aspect-ratio: 35 / 45; background: linear-gradient(#e8eded, #dce4e3); position: relative; outline: 1px dashed #b9c4c3; outline-offset: 2px; overflow: hidden; }
.lban i::after { content: ""; position: absolute; left: 22%; right: 22%; top: 12%; aspect-ratio: .62; border-radius: 50%; background: #2c4a48; }
.lban i::before { content: ""; position: absolute; left: -6%; right: -6%; bottom: -24%; height: 36%; border-radius: 50% 50% 0 0; background: #2c4a48; }
.lban .rule { position: absolute; left: 8%; bottom: 8%; width: 56%; border-top: 1px solid #1c2a28; font-size: .8em; padding-top: 2px; }
.lnote { margin: auto 0 0; text-align: center; color: #5a6a68; font-size: .9em; }

.chapters { position: relative; z-index: 1; }
.app-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; padding: 18vh 0 4vh; border-bottom: 1px solid var(--line); }
.app-head img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 30px -12px var(--tint); grid-row: span 2; }
.app-head h3 { margin: 0; font: 700 clamp(28px, 3.2vw, 40px)/1.2 var(--mincho); }
.app-no { margin: 0; font: italic 500 15px/1 var(--latin); color: var(--muted); }
.app-kind { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.state { grid-column: 2; justify-self: start; font-size: 12px; padding: 3px 12px; border-radius: 999px; border: 1px solid currentColor; display: inline-flex; align-items: center; gap: 6px; line-height: 1.6; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.live { color: #1f8a5a; } .state.soon { color: #a8650a; }
.chapter { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0; border-bottom: 1px solid var(--line); opacity: .3; transition: opacity .6s; }
.chapter.on { opacity: 1; }
.ch-no { margin: 0 0 14px; font: 700 15px/1 var(--mincho); color: var(--shu); }
.chapter h4 { margin: 0 0 18px; font: 600 clamp(24px, 3vw, 38px)/1.6 var(--mincho); letter-spacing: .04em; }
.chapter p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 30em; }
.chapter .links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.links a { font-size: 14px; text-decoration: none; padding-bottom: 3px; background: linear-gradient(var(--shu), var(--shu)) 0 100% / 0 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.links a:hover { background-size: 100% 1px, 100% 1px; }
.links a::after { content: " →"; color: var(--shu); }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; gap: 6vw; }
  .stage { top: 0; height: 100vh; order: 0; background: none; }
  .stage::before { display: none; }
  .stage-inner { height: min(78vh, 760px); }
  .chapter { min-height: 92vh; }
  .app-head { padding-top: 30vh; }
}

/* ---------- 約束 ---------- */
.promise { padding: clamp(120px, 16vw, 200px) 0; }
.vows { list-style: none; margin: 64px 0 0; padding: 0; counter-reset: v; }
.vows li { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 4px 24px; padding: 34px 0; }
.vows li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.vows li.is-in::before { transform: scaleX(1); }
.vows li:last-child { box-shadow: 0 1px 0 var(--line); }
.vows .num { font: 700 clamp(40px, 5vw, 64px)/1 var(--mincho); color: var(--shu); grid-row: span 2; }
.vows h3 { margin: 0; font: 600 clamp(20px, 2.4vw, 28px)/1.5 var(--mincho); }
.vows p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .vows li { grid-template-columns: 120px 1fr 1.2fr; align-items: baseline; } .vows .num { grid-row: auto; } }

/* ---------- 工房 ---------- */
.atelier { padding: clamp(100px, 14vw, 180px) 0; background: var(--paper-2); }
.atelier-grid { display: grid; gap: 48px; }
.atelier-body > p { margin: 0 0 1.4em; font-size: 16px; color: var(--ink-2); max-width: 34em; }
.profile { margin: 48px 0 0; border-top: 1px solid var(--ink); }
.profile div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.profile dt { color: var(--muted); font-family: var(--mincho); }
.profile dd { margin: 0; }
@media (min-width: 900px) { .atelier-grid { grid-template-columns: .9fr 1.1fr; } }

/* ---------- 便り ---------- */
.notes { padding: clamp(100px, 14vw, 180px) 0; position: relative; }
.note-list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.note-list li { display: grid; grid-template-columns: 6.5em 1fr; gap: 6px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .5s var(--ease); }
.note-list li::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--shu) 6%, transparent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.note-list li:hover::after { transform: scaleY(1); }
.note-list time { font: italic 500 18px/1.6 var(--latin); color: var(--muted); }
.note-list p { margin: 0; font: 500 17px/1.7 var(--mincho); }
.note-list .tag { grid-column: 2; font-size: 12px; color: var(--muted); }
.hover-thumb { position: fixed; left: 0; top: 0; z-index: 70; width: 96px; height: 96px; border-radius: 22px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-8deg); transition: opacity .3s, transform .5s var(--ease); box-shadow: 0 20px 40px -16px rgba(0,0,0,.4); }
.hover-thumb.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
@media (min-width: 900px) { .note-list li { grid-template-columns: 8em 1fr auto; align-items: baseline; } .note-list .tag { grid-column: auto; } .note-list li:hover { padding-left: 16px; } }

/* ---------- お問い合わせ ---------- */
.contact { padding: clamp(100px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 56px; }
.lead { color: var(--ink-2); margin: 28px 0 0; max-width: 26em; }
.mail { display: flex; align-items: center; gap: 16px; margin: 28px 0 0; font: italic 500 clamp(20px, 2.4vw, 26px) var(--latin); flex-wrap: wrap; }
.mail a { text-decoration: none; border-bottom: 1px solid var(--line); }
.mail a:hover { border-color: var(--shu); }
.mail button { font: 400 13px var(--gothic); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.mail button:hover { border-color: var(--ink); }
.support { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 6px; font-size: 14px; }
.support a { color: var(--ink-2); text-decoration: none; }
.support a::before { content: "— "; color: var(--shu); }
.support a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: 30px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .field label { font: 600 15px/1 var(--mincho); margin-bottom: 14px; display: block; }
.field small { font: 400 12px var(--gothic); color: var(--muted); margin-left: 6px; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.radios label { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.radios label:nth-child(odd) { border-right: 1px solid var(--line); }
.radios label:nth-child(even) { padding-left: 16px; }
.radios input { appearance: none; margin: 0; width: 16px; height: 16px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.radios input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shu); transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.radios input:checked::after { transform: scale(1); }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 2px; font-size: 16px; border-radius: 0; transition: border-color .3s, background .3s; }
.field textarea { border: 1px solid var(--line); border-bottom-color: var(--ink); padding: 12px; resize: vertical; min-height: 160px; line-height: 1.8; background: color-mix(in srgb, var(--card) 70%, transparent); }
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237b7468' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center / 12px; padding-right: 26px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--shu); background-color: color-mix(in srgb, var(--shu) 4%, transparent); }
.form [aria-invalid=true] { border-bottom-color: var(--shu) !important; }
.meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.meta [data-count] { margin-left: auto; font-family: var(--latin); font-style: italic; font-size: 14px; }
.meta .is-low { color: var(--shu); }
.err { margin: 8px 0 0; color: var(--shu); font-size: 13px; }
.meta .err { margin: 0; }
.caution { margin: 0; padding: 14px 16px; border-left: 2px solid var(--shu); background: color-mix(in srgb, var(--shu) 6%, transparent); font-size: 14px; }
.actions { display: flex; align-items: center; gap: 24px; }
.send { display: inline-flex; align-items: center; gap: 16px; padding: 16px 30px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font: 600 15px var(--mincho); letter-spacing: .1em; transition: background .3s, color .3s; }
.send svg { width: 40px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .5s var(--ease); }
.send:hover { background: var(--shu); border-color: var(--shu); color: var(--shu-ink); }
.send:hover svg { transform: translateX(6px); }
.clear { background: none; border: 0; padding: 0; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.result { padding: 18px 20px; border: 1px solid var(--line); background: var(--card); font-size: 14px; outline: none; }
.result p { margin: 0; } .result p + p { margin-top: 10px; }
.result button { background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 16px; cursor: pointer; font-size: 13px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 8vw; } }

/* ---------- フッター ---------- */
.foot { padding: 100px 0 36px; background: var(--ink); color: var(--paper); }
.foot a { text-decoration: none; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.foot a:hover { color: var(--paper); }
.foot-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); padding-bottom: 32px; }
.foot-word { margin: 0; font: 700 clamp(56px, 13vw, 200px)/.9 var(--mincho); letter-spacing: .02em; }
.seal.big { width: clamp(56px, 7vw, 96px); height: auto; flex: none; }
.foot-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 40px 0; }
.foot-links dl { margin: 0; }
.foot-links dt { font: italic 500 16px var(--latin); color: color-mix(in srgb, var(--paper) 50%, transparent); margin-bottom: 10px; }
.foot-links dd { margin: 0 0 4px; font-size: 14px; }
.copy { display: flex; justify-content: space-between; font: italic 400 14px var(--latin); color: color-mix(in srgb, var(--paper) 50%, transparent); margin: 0; }
@media (min-width: 720px) { .foot-links { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0c0b09; color: var(--ink); } :root:not([data-theme="light"]) .foot a { color: var(--ink-2); } }

/* ---------- 出てくる ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .hero-copy { order: -1; flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; width: 100%; }
  .hero-sub { writing-mode: vertical-rl; text-align: left; }
  .hero-sub .en { display: none; }
  .hero-art { width: min(78vw, 420px); }
  .gnav { display: none; }
  .menu-toggle { display: block; }
  .hero { padding-top: 90px; }
  .hero-down { display: none; }
  .stamp { right: -8px; bottom: 70px; }
}
@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
