/* =========================================================================
   コトヅテ — スタイル
   ========================================================================= */
:root {
  color-scheme: light;
  --bg: #f0f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #1f2937;
  --text-2: #4b5563;
  --muted: #6b7280;
  --blue: #0084ff;
  --blue-d: #0069d1;
  --blue-soft: #e0f2fe;
  --green: #10b981;
  --green-d: #059669;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --gold: #d97706;
  --gold-d: #b45309;
  --gold-soft: #fffbeb;
  --grad: linear-gradient(135deg, #10b981 0%, #0084ff 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px rgba(15, 23, 42, .05);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.75; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid rgba(0, 132, 255, .45); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .88em; background: #eef2f7; padding: .1em .4em; border-radius: 4px; color: #be123c; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; line-height: 1.5; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.card-title.mt-l { margin-top: 26px; }
.mt-xl, .lp-h2.mt-xl { margin-top: 3.5rem; }
[hidden] { display: none !important; }
.sp { display: inline; }
.pc { display: none; }
@media (min-width: 720px) { .sp { display: none; } .pc { display: inline; } }
.pc-only { display: none; }
@media (min-width: 820px) { .pc-only { display: inline; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---- レイアウト ---- */
.page { max-width: 680px; margin: 0 auto; padding: 20px 16px 48px; }
body.admin .page { max-width: 1200px; }
body.lp .page { max-width: none; padding: 0; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(240, 247, 250, .85); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.site-header-inner { max-width: 960px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-nav { display: flex; align-items: center; gap: 16px; font-size: .9rem; font-weight: 600; }
.header-nav a { color: var(--text-2); text-decoration: none; }
.header-nav a:hover { color: var(--blue); }
.header-nav .header-cta { color: #fff; background: var(--blue); padding: 6px 14px; border-radius: 999px; }
.header-nav .header-cta:hover { color: #fff; background: var(--blue-d); }

.site-footer { max-width: 680px; margin: 0 auto; padding: 8px 16px 40px; text-align: center; }
.support-card { background: linear-gradient(135deg, #fff 0%, #f4fafd 100%); border: 1px solid #bae6fd; border-radius: var(--radius); padding: 20px; margin-bottom: 28px; }
.support-title { font-weight: 700; color: #0369a1; margin: 0 0 2px; }
.support-desc { font-size: .82rem; color: var(--muted); margin: 0 0 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: .85rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { font-size: .75rem; color: #94a3b8; margin-top: 12px; }

/* ---- ボタン ---- */
.btn { --b: var(--blue); appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.3; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s, color .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; box-shadow: 0 6px 16px rgba(0, 132, 255, .25); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-d); color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #fca5a5; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-dark { background: #1e293b; color: #fff; }
.btn-dark:hover { background: #0f172a; color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-soft { background: var(--blue-soft); color: #0369a1; }
.btn-soft:hover { background: #bae6fd; color: #075985; }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05a847; color: #fff; }
.btn-x { background: #0f1419; color: #fff; }
.btn-x:hover { background: #000; color: #fff; }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: .85rem; border-radius: 8px; }
.btn-large { min-height: 52px; font-size: 1.05rem; }
.btn-xl { min-height: 60px; padding: 14px 36px; font-size: 1.1rem; }
.btn-pill { border-radius: 999px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { appearance: none; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link-strong { display: inline-block; font-weight: 700; font-size: .9rem; color: #c2410c; }

.chip { appearance: none; border: 1px solid var(--line-strong); background: #fff; color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }

.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; line-height: 1.6; }
.tag-premium { background: #fef3c7; color: var(--gold-d); }
.tag-free { background: #d1fae5; color: #047857; }
.tag-blue { background: var(--blue-soft); color: #0369a1; }
.tag-green { background: #d1fae5; color: #047857; }
.tag-muted { background: #e5e7eb; color: #4b5563; }

/* ---- カード・フォーム ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; margin-bottom: 20px; }
@media (min-width: 600px) { .card { padding: 28px 28px; } }
.card-title { font-size: 1.05rem; margin: 0 0 14px; font-weight: 800; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-title-row .card-title { margin: 0; }
.card-danger { border-color: #fecaca; }
.divider { border: 0; border-top: 1px dashed var(--line-strong); margin: 22px 0; }

.form-section { border: 0; margin: 0 0 8px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section + .form-section, .premium-box + .form-section { margin-top: 20px; }
.section-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; padding: 0; }
.section-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .8rem; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 6px; color: var(--text); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.required, .optional { font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.required { color: #b91c1c; background: #fee2e2; }
.optional { color: var(--muted); background: #f1f5f9; }
.counter { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--red); font-weight: 700; }
.help { font-size: .82rem; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
.input, .textarea, .select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0, 132, 255, .15); }
.textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input[type="datetime-local"].input { min-height: 50px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.toolbar:empty { display: none; }
.quick-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.syntax-feedback { font-size: .82rem; font-weight: 700; min-height: 1.2em; margin: 6px 0 0; }
.syntax-feedback.is-ok { color: var(--green-d); }
.syntax-feedback.is-bad { color: var(--red); }
.hint { margin-top: 8px; font-size: .85rem; }
.hint summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.hint ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--text-2); }
.reveal-help { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.geo-box { background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 14px; }
.geo-status { margin-left: 8px; font-size: .85rem; font-weight: 700; color: #15803d; }
.premium-box { background: var(--gold-soft); border: 1px solid #fcd34d; border-radius: 12px; padding: 16px; margin: 4px 0 8px; }
.premium-title { font-weight: 800; color: var(--gold-d); margin: 0; }
.premium-box .field { margin: 12px 0 10px; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.form-actions .btn-primary { flex: 2; }
.form-actions .btn-ghost { flex: 1; white-space: nowrap; }
@media (max-width: 480px) { .form-actions { flex-direction: column-reverse; } .form-actions .btn { width: 100%; } }
.form-note { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert ul { margin: 4px 0 0; padding-left: 1.2em; }
.alert-title { font-weight: 800; margin-bottom: 4px !important; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.error-lines { max-height: 320px; overflow: auto; font-size: .85rem; }

/* ---- 作成画面 ---- */
.hero { text-align: center; padding: 24px 0 8px; }
.hero-title { font-size: clamp(1.55rem, 5.5vw, 2.1rem); line-height: 1.4; margin: 0 0 10px; font-weight: 800; letter-spacing: -.01em; }
.hero-lead { color: var(--text-2); margin: 0 0 20px; font-size: .95rem; }
.steps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 24px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.steps li { display: inline-flex; align-items: center; gap: 6px; }
.step-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 800; flex: none; }

.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.skin-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 112px; }
.skin-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.skin-card input { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.skin-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 132, 255, .15); background: #f5faff; }
.skin-card:has(input[data-premium="1"]:checked) { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); background: var(--gold-soft); }
.skin-card:has(input:focus-visible) { outline: 3px solid rgba(0, 132, 255, .45); outline-offset: 2px; }
.skin-card-head { display: flex; align-items: center; gap: 6px; padding-right: 22px; }
.skin-icon { font-size: 1.15rem; }
.skin-title { font-weight: 800; font-size: .9rem; }
.skin-desc { font-size: .75rem; color: var(--muted); line-height: 1.45; }
.skin-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 4px; white-space: nowrap; }
.skin-preview-link { font-size: .72rem; font-weight: 700; text-decoration: none; }

.mine-list { list-style: none; margin: 0; padding: 0; }
.mine-list li + li { border-top: 1px solid var(--line); }
.mine-list a { display: flex; flex-direction: column; padding: 10px 4px; text-decoration: none; color: var(--text); }
.mine-list a:hover { background: var(--surface-2); }
.mine-name { font-weight: 700; }
.mine-meta { font-size: .8rem; color: var(--muted); }

.dialog { border: 0; border-radius: 18px; padding: 20px; width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 60px rgba(15, 23, 42, .25); background: var(--bg); }
.dialog::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-size: 1.1rem; }
.dialog-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.capsule-preview { margin-top: 12px; }

/* ---- コピー・共有 ---- */
.copy-field { margin-bottom: 14px; }
.copy-label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.copy-row { display: flex; gap: 8px; }
.copy-input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .85rem; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.copy-field-secret .copy-input { background: #f8fafc; border-style: dashed; }
.copy-hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
.copy-field-secret .copy-hint strong { color: var(--red); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .9, .3, 1.3); z-index: 200; max-width: calc(100vw - 32px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---- 管理ページ ---- */
.page-title { font-size: 1.4rem; margin: 8px 0 18px; }
.created-hero { text-align: center; padding: 24px 0 12px; }
.created-emoji { font-size: 3rem; margin: 0; line-height: 1.2; animation: pop .6s cubic-bezier(.2, .9, .3, 1.4); }
.created-title { margin: 6px 0 6px; font-size: 1.6rem; }
.created-lead { color: var(--text-2); margin: 0 0 18px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.meta-list { margin: 16px 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.meta-list > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.meta-list dt { color: var(--muted); font-weight: 600; }
.meta-list dd { margin: 0; word-break: break-all; }

/* ---- カウントダウン ---- */
.countdown { text-align: center; margin: 12px 0 8px; }
.countdown-label { margin: 0 0 6px; font-size: .85rem; color: inherit; opacity: .75; }
.countdown-digits { display: flex; justify-content: center; gap: 8px; }
.countdown-digits span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 10px 6px 6px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 12px; }
.countdown-digits b { font-size: clamp(1.5rem, 7vw, 2.1rem); font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--blue); font-family: var(--mono); }
.countdown-digits small { font-size: .7rem; color: var(--muted); }

/* ---- 閲覧ページ ---- */
.owner-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; background: #fff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: .88rem; }
.capsule { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 22px; margin-bottom: 20px; box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 600px) { .capsule { padding: 40px 36px; } }
.capsule-from { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; line-height: 1.4; }
.capsule-status { font-size: .9rem; font-weight: 700; margin: 0 0 18px; }
.status-sealed { color: var(--blue); }
.status-open { color: var(--green-d); }
.status-night { color: #6366f1; }
.unlock-at { text-align: center; font-size: .9rem; margin: 6px 0 18px; }
.letter { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 28px 22px; font-size: 1.05rem; line-height: 2.05; letter-spacing: .04em; color: #1f2937; position: relative; word-break: break-word; overflow-wrap: anywhere; box-shadow: 0 10px 25px rgba(0, 0, 0, .04); }
@media (min-width: 600px) { .letter { padding: 32px 32px; font-size: 1.1rem; } }
.letter > :first-child { margin-top: 0; }
.letter > :last-child { margin-bottom: 0; }
.letter p { margin: 0 0 1.1em; }
.letter h1, .letter h2, .letter h3 { line-height: 1.5; margin: 1.4em 0 .5em; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.letter h1 { font-size: 1.35em; } .letter h2 { font-size: 1.2em; } .letter h3 { font-size: 1.08em; }
.letter img { border-radius: 10px; margin: 6px 0; display: block; }
.letter blockquote { margin: 1em 0; padding: 4px 16px; border-left: 4px solid var(--blue); background: rgba(0, 0, 0, .03); border-radius: 0 8px 8px 0; }
.letter pre { background: #1f2937; color: #f3f4f6; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .85rem; line-height: 1.6; letter-spacing: 0; }
.letter pre code { background: none; color: inherit; padding: 0; }
.letter ul, .letter ol { padding-left: 1.4em; }
.letter hr, .letter .kz-sep { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 1.8em 0; }
.letter-sealed { filter: blur(4px); user-select: none; color: var(--muted); text-align: center; }
.sealed-actions { display: flex; justify-content: center; margin-top: 16px; }
.notice { font-size: .85rem; color: var(--text-2); background: rgba(255, 255, 255, .75); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 14px; margin: 16px 0 0; }
.progress { position: relative; height: 26px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.progress-bar { height: 100%; background: var(--grad); border-radius: 999px; }
.progress-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #0f172a; }
.tw-skip { display: flex; margin: 12px auto 0; }
.preview-head { text-align: center; padding-top: 12px; }
.preview-actions { display: flex; justify-content: center; gap: 10px; }

/* 埋め込み */
.kz-embed { position: relative; margin: 1em 0; border-radius: 10px; overflow: hidden; background: #000; }
.kz-embed-video { aspect-ratio: 16 / 9; }
.kz-embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kz-embed-audio { background: transparent; }
.kz-embed-audio iframe { width: 100%; height: 166px; border: 0; display: block; }
.kz-locked-media { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .85rem; letter-spacing: 0; line-height: 1.5; }

/* 特殊解禁の部品 */
.kz-redacted { color: #111; letter-spacing: 0; word-break: break-all; opacity: .85; }
.kz-plain { white-space: normal; }
.kz-blackout { background: #111; color: #111; border-radius: 2px; padding: 0 2px; letter-spacing: -.1em; user-select: none; }
.kz-unblacked { background: #fef3c7; color: inherit; padding: 0 3px; border-radius: 3px; }
.kz-last { color: var(--blue); }
.kz-pv-note { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700; color: var(--gold-d); background: #fef3c7; border-radius: 4px; padding: 0 6px; letter-spacing: 0; line-height: 1.7; vertical-align: 2px; }
.kz-last-hidden { display: inline-block; filter: blur(.4px); background: repeating-linear-gradient(45deg, #e2e8f0 0 6px, #f1f5f9 6px 12px); color: var(--muted); padding: 2px 10px; border-radius: 6px; font-size: .85em; letter-spacing: 0; }
.kz-btn { appearance: none; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: .92rem; font-weight: 700; letter-spacing: .02em; padding: 10px 20px; border-radius: 10px; cursor: pointer; min-height: 44px; transition: background .15s, transform .15s; }
.kz-btn:hover { background: var(--blue-d); }
.kz-reveal { margin: 1em 0; }
.kz-reveal-body { margin-top: 10px; padding: 14px 16px; background: rgba(0, 0, 0, .03); border-left: 3px solid var(--blue); border-radius: 8px; animation: aniFade .5s ease both; }
.kz-reveal-body > :last-child { margin-bottom: 0; }
.kz-quiz { margin: 1.2em 0; padding: 18px; background: rgba(0, 0, 0, .025); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.kz-quiz-title { font-weight: 800; color: var(--gold); margin: 0 !important; font-size: .95rem; letter-spacing: .02em; }
.kz-quiz-warn { font-size: .78rem; color: inherit; opacity: .7; margin: 0 0 12px !important; letter-spacing: 0; line-height: 1.5; }
.kz-quiz-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kz-quiz-body { text-align: left; margin-top: 4px; animation: aniFade .6s ease both; }
.kz-quiz.is-solved .kz-quiz-choices, .kz-quiz.is-solved .kz-quiz-warn { display: none; }
.kz-quiz.is-wrong { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.geo-gate { text-align: center; background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px; padding: 22px 16px; }
.geo-gate-title { font-weight: 800; color: #166534; margin: 0 0 6px; }
.geo-result { font-weight: 700; color: var(--red); font-size: .88rem; min-height: 1.4em; margin: 12px 0 0; }
.letter-decay { filter: blur(calc(var(--decay, 0) * 2.2px)); opacity: calc(1 - var(--decay, 0) * .55); }
.letter-decay.is-flicker { animation: decayFlicker 3s infinite; }
@keyframes decayFlicker { 0%, 94%, 100% { transform: none; } 95% { transform: translateX(-2px) skewX(4deg); } 97% { transform: translateX(2px); } }
.tw-caret::after { content: '▍'; animation: blink 1s steps(1) infinite; color: var(--blue); }
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================================
   スキン（開封時の演出）
   ========================================================================= */
.capsule-premium { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); border-color: #f59e0b; box-shadow: 0 10px 30px rgba(245, 158, 11, .15); }
.capsule-premium .capsule-from { color: var(--gold); }

@keyframes aniFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.capsule .letter { animation: aniFade 1.2s ease-out both; }

/* 黄金の息吹 */
.skin-gold_pulse { animation: aniGoldPulse 2s infinite alternate ease-in-out; }
@keyframes aniGoldPulse { from { box-shadow: 0 0 10px rgba(245, 158, 11, .2), inset 0 0 15px rgba(245, 158, 11, .1); } to { box-shadow: 0 0 28px rgba(245, 158, 11, .5), inset 0 0 30px rgba(245, 158, 11, .2); } }

/* 愛の形 */
.skin-heart { animation: aniHeart 1.6s cubic-bezier(.175, .885, .32, 1.275) both; -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
@keyframes aniHeart { 0% { -webkit-mask-size: 0%; mask-size: 0%; transform: scale(.92); opacity: 0; } 100% { -webkit-mask-size: 3000%; mask-size: 3000%; transform: scale(1); opacity: 1; } }
.skin-heart { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); border-color: #fb7185; }
.skin-heart .capsule-from { color: #e11d48; }

/* 電脳空間 */
.skin-cyber { background: #050b14; border: 1px solid #00ff88; border-left: 4px solid #00ff88; box-shadow: 0 0 24px rgba(0, 255, 136, .15); }
.skin-cyber, .skin-cyber .capsule-from, .skin-cyber .capsule-status, .skin-cyber .notice { color: #00ff88; }
.skin-cyber .letter { background: #0a1424; border-color: #00ff88; color: #00ff88; font-family: var(--mono); box-shadow: none; animation: aniFade 1s both, aniCyberGlitch 2.5s 1s infinite; }
.skin-cyber .letter a { color: #7dd3fc; }
.skin-cyber .notice { background: transparent; border-color: #00ff88; }
@keyframes aniCyberGlitch { 0%, 92%, 100% { transform: none; text-shadow: 0 0 5px rgba(0, 255, 136, .5); filter: none; } 93% { transform: translate(-4px, 2px) skewX(10deg); text-shadow: 3px 0 red, -3px 0 cyan; filter: contrast(1.5); } 95% { transform: translate(4px, -2px) skewX(-10deg); text-shadow: -3px 0 red, 3px 0 cyan; filter: invert(.2); } 97% { transform: none; filter: contrast(1.2) brightness(1.2); } }

/* 映画の終幕 */
.skin-vhs { background: #1a1a2e; border-color: #4a5568; }
.skin-vhs .capsule-from, .skin-vhs .capsule-status, .skin-vhs .notice { color: #e2e8f0; }
.skin-vhs .letter { background: #16213e; border-color: #4a5568; color: #e2e8f0; animation: aniFade 1s both, aniVhs .15s infinite; }
.skin-vhs .letter a { color: #93c5fd; }
.skin-vhs .notice { background: transparent; }
.skin-vhs::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px); }
@keyframes aniVhs { 0% { transform: translateX(-1px); filter: contrast(1.1); } 50% { transform: translateX(1px); filter: contrast(1); } 100% { transform: none; filter: contrast(1.1); } }

/* 墨の滲み */
.skin-ink { background: linear-gradient(135deg, #fafaf9, #f5f5f4); border-color: #a8a29e; animation: aniInk 2.5s cubic-bezier(.25, 1, .5, 1) both; }
.skin-ink .capsule-from { color: #292524; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.skin-ink .letter { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
@keyframes aniInk { 0% { filter: grayscale(100%) blur(10px); opacity: 0; transform: scale(.95); } 100% { filter: none; opacity: 1; transform: none; } }

/* 次元の狭間 */
.skin-slice { animation: aniSlice 1.2s cubic-bezier(.19, 1, .22, 1) both; }
@keyframes aniSlice { 0% { clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%); opacity: 0; transform: translateY(20px); } 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; transform: none; } }

/* ネオン */
.skin-neon { background: #0f172a; border-color: #c084fc; animation: aniNeon 1.5s infinite alternate; }
.skin-neon .capsule-from, .skin-neon .capsule-status, .skin-neon .notice { color: #e9d5ff; }
.skin-neon .letter { background: #1e293b; border-color: #c084fc; color: #e9d5ff; box-shadow: inset 0 0 10px rgba(192, 132, 252, .3); }
.skin-neon .letter a { color: #f0abfc; }
.skin-neon .notice { background: transparent; }
@keyframes aniNeon { from { box-shadow: 0 0 5px #c084fc, inset 0 0 5px #c084fc; } to { box-shadow: 0 0 22px #a855f7, inset 0 0 20px #a855f7; } }

/* オーロラ */
.skin-aurora { background: linear-gradient(135deg, rgba(16, 185, 129, .85) 0%, rgba(0, 132, 255, .85) 100%); border: 0; animation: aniAurora 4s infinite alternate ease-in-out; }
.skin-aurora .capsule-from, .skin-aurora .capsule-status { color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.skin-aurora .letter { background: rgba(255, 255, 255, .95); border: 0; }
@keyframes aniAurora { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(60deg); } }

/* スキン一覧の色見本 */
.skin-swatch-cyber .skin-icon, .skin-swatch-neon .skin-icon, .skin-swatch-vhs .skin-icon { filter: drop-shadow(0 0 4px rgba(124, 58, 237, .35)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   管理センター
   ========================================================================= */
body.admin { background: #f1f5f9; }
.admin-login { max-width: 380px; margin: 12vh auto 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.admin-title { font-size: 1.2rem; margin: 0; }
.admin-tabs { display: flex; gap: 4px; background: #e2e8f0; padding: 4px; border-radius: 10px; flex: 1; max-width: 520px; }
.admin-tab { flex: 1; text-align: center; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 700; font-size: .85rem; }
.admin-tab.is-active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .78rem; color: var(--muted); }
.admin-search { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-search .input { padding: 9px 12px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: #1f2937; color: #fff; font-weight: 600; font-size: .8rem; white-space: nowrap; position: sticky; top: 0; }
.admin-table tbody tr:hover { background: #f8fafc; }
.admin-table.compact td { padding: 8px 10px; }
.admin-message { max-height: 110px; min-width: 220px; max-width: 360px; overflow-y: auto; white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: .8rem; line-height: 1.6; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.admin-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .admin-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.plain-list { list-style: none; padding: 0; margin: 0 0 16px; }
.plain-list li { margin-bottom: 12px; }
.plain-list p { margin: 4px 0 0; }
.seg { display: flex; gap: 2px; background: #e2e8f0; padding: 3px; border-radius: 8px; font-size: .8rem; }
.seg a { padding: 3px 10px; border-radius: 6px; text-decoration: none; color: var(--text-2); font-weight: 700; }
.seg a.is-active { background: #fff; color: var(--text); }
.fresh-codes { margin-top: 18px; }

/* =========================================================================
   LP（旧 lp.koto-zute.com のデザインを Tailwind なしで再現）
   ========================================================================= */
body.lp { font-family: 'Noto Sans JP', var(--font); background: #f0f7fa; color: #374151; -webkit-font-smoothing: antialiased; }
body.lp .page { max-width: none; padding: 0; }
.text-gradient { background: linear-gradient(135deg, #10b981 0%, #0084ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.bg-gold-gradient { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); }
.glass-card { background: rgba(255, 255, 255, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.float-anim { animation: float 3s ease-in-out infinite; display: inline-block; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.logo-float-anim { animation: logoFloat 4s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(1deg); } }
.sp-only { display: inline; }
.md-block, .md-inline { display: none; }
@media (min-width: 768px) { .sp-only { display: none; } .md-block { display: block; } .md-inline { display: inline; } }

/* ヘッダー */
.lp-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(229, 231, 235, .5); }
.lp-header-inner { max-width: 64rem; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.lp-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.lp-brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; }
.lp-nav { display: flex; align-items: center; gap: 16px; }
.lp-nav-link { display: none; font-size: .875rem; font-weight: 700; color: #4b5563; text-decoration: none; transition: color .2s; }
.lp-nav-link:hover { color: #2563eb; }
@media (min-width: 768px) { .lp-nav-link { display: block; } }
.lp-nav-cta { background: #2563eb; color: #fff; padding: 8px 20px; border-radius: 999px; font-size: .875rem; font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: background .2s; white-space: nowrap; }
.lp-nav-cta:hover { background: #1d4ed8; color: #fff; }

/* ヒーロー */
.lp-hero { position: relative; overflow: hidden; padding: 128px 24px 80px; }
.lp-hero-inner { max-width: 56rem; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.lp-hero-logo { display: flex; justify-content: center; margin-bottom: 48px; }
.lp-hero-logo svg { width: 18rem; height: auto; filter: drop-shadow(0 25px 25px rgba(0, 0, 0, .15)); }
@media (min-width: 768px) { .lp-hero-logo svg { width: 24rem; } }
.lp-badge-wrap { margin-bottom: 24px; }
.lp-badge { background: #dbeafe; color: #1e40af; font-size: .75rem; font-weight: 700; padding: 6px 16px; border-radius: 999px; border: 1px solid #bfdbfe; }
@media (min-width: 768px) { .lp-badge { font-size: .875rem; } }
.lp-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 32px; color: #1f2937; }
@media (min-width: 768px) { .lp-title { font-size: 3.75rem; } }
.lp-title .text-gradient { display: inline-block; }
.lp-lead { color: #6b7280; font-size: 1rem; font-weight: 500; max-width: 42rem; margin: 0 auto 40px; line-height: 1.8; }
@media (min-width: 768px) { .lp-lead { font-size: 1.125rem; } }
.lp-promise { padding: 24px; border-radius: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); border: 1px solid #fff; margin: 0 auto 48px; max-width: 48rem; }
@media (min-width: 768px) { .lp-promise { padding: 32px; } }
.lp-promise-title { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin: 0 0 32px; line-height: 2; letter-spacing: .025em; }
@media (min-width: 768px) { .lp-promise-title { font-size: 1.5rem; } }
.lp-pill { display: inline-block; background: #dbeafe; color: #1d4ed8; padding: 6px 16px; border-radius: 999px; font-size: 1.125rem; margin: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); border: 1px solid #bfdbfe; line-height: 1.6; }
@media (min-width: 768px) { .lp-pill { font-size: 1.25rem; } }
.lp-steps { background: rgba(239, 246, 255, .8); border: 1px solid #dbeafe; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05); }
@media (min-width: 768px) { .lp-steps { flex-direction: row; padding: 24px; } }
.lp-step { display: flex; align-items: center; gap: 12px; text-align: left; color: #1f2937; font-weight: 700; font-size: .875rem; line-height: 1.6; }
@media (min-width: 768px) { .lp-step { font-size: 1rem; } }
.lp-step-badge { background: #2563eb; color: #fff; font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.lp-step-badge.is-gray { background: #9ca3af; }
.lp-step-arrow { color: #93c5fd; font-weight: 700; transform: rotate(90deg); }
@media (min-width: 768px) { .lp-step-arrow { transform: none; } }
.lp-cta-wrap { display: flex; flex-direction: column; align-items: center; }
.lp-cta { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(to right, #2563eb, #3b82f6); color: #fff; font-size: 1.05rem; font-weight: 700; padding: 20px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); transition: transform .2s, box-shadow .2s; }
.lp-cta:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(59, 130, 246, .3); background: linear-gradient(to right, #1d4ed8, #2563eb); }
@media (min-width: 768px) { .lp-cta { width: auto; padding: 20px 48px; font-size: 1.125rem; } }
.lp-note { font-size: .75rem; color: #6b7280; margin: 12px 0 0; font-weight: 500; }

/* セクション共通 */
.lp-section { padding: 80px 24px; border-top: 1px solid #f3f4f6; }
.lp-section.is-white { background: #fff; }
.lp-section.is-gray { background: #f9fafb; border-top-color: #e5e7eb; }
.lp-container { max-width: 64rem; margin: 0 auto; }
.lp-container.is-narrow { max-width: 48rem; }
.lp-container.is-form { max-width: 42rem; }
.lp-eyebrow { text-align: center; font-size: .75rem; font-weight: 800; letter-spacing: .2em; color: #0084ff; margin: 0 0 8px; }
.lp-h2 { font-size: 1.875rem; font-weight: 700; text-align: center; margin: 0 0 16px; color: #1f2937; line-height: 1.4; }
@media (min-width: 768px) { .lp-h2 { font-size: 2.25rem; } }
.lp-h3 { font-size: 1.5rem; font-weight: 800; text-align: center; margin: 0 0 8px; color: #1f2937; }
.lp-sub { text-align: center; color: #6b7280; margin: 0 auto 40px; max-width: 40rem; line-height: 1.8; }
.lp-sub.small { font-size: .875rem; margin-bottom: 32px; }

.lp-grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.lp-card { background: #f0f7fa; border: 1px solid #e0f2fe; border-radius: 24px; padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 132, 255, .08); }
.lp-card .lp-card-icon { font-size: 2.5rem; line-height: 1; margin: 0 0 16px; }
.lp-card h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 8px; color: #1f2937; }
.lp-card p { font-size: .875rem; color: #6b7280; margin: 0; line-height: 1.8; }

.lp-grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 768px) { .lp-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.lp-feature { background: rgba(255, 255, 255, .7); border: 1px solid #fff; border-radius: 24px; padding: 28px 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.lp-feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #d1fae5, #dbeafe); font-size: 1.4rem; margin-bottom: 16px; }
.lp-feature h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; color: #1f2937; }
.lp-feature p { font-size: .875rem; color: #6b7280; margin: 0; line-height: 1.8; }

.lp-reveal { margin-top: 72px; }
.lp-reveal-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-reveal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-reveal-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-reveal-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px 18px; }
.lp-reveal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; color: #1f2937; }
.lp-reveal-item p { margin: 0; font-size: .8rem; color: #6b7280; line-height: 1.7; }
.lp-tag { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.lp-tag.is-free { background: #d1fae5; color: #047857; }
.lp-tag.is-premium { background: #fef3c7; color: #b45309; }
.lp-skins-block { margin-top: 64px; }
.lp-skins { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-skin { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; text-decoration: none; color: #1f2937; font-weight: 700; font-size: .9rem; transition: border-color .2s, transform .2s; }
.lp-skin:hover { border-color: #0084ff; color: #0084ff; transform: translateY(-2px); }
.lp-skin.is-premium { border-color: #fde68a; }

.lp-pricing { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 52rem; margin: 0 auto; }
@media (min-width: 768px) { .lp-pricing { grid-template-columns: 1fr 1fr; } }
.lp-plan { position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.lp-plan.is-premium { border: 2px solid #f59e0b; box-shadow: 0 10px 30px rgba(245, 158, 11, .15); }
.lp-plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #d97706; color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin: 0; }
.lp-plan-name { font-weight: 700; color: #4b5563; margin: 0; }
.lp-plan.is-premium .lp-plan-name { color: #b45309; }
.lp-price { font-size: 2.75rem; font-weight: 800; color: #1f2937; margin: 4px 0 20px; line-height: 1.2; }
.lp-price small { font-size: .9rem; font-weight: 600; color: #6b7280; margin-left: 4px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.lp-plan li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: .92rem; color: #374151; }
.lp-plan li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 800; }
.lp-plan.is-premium li::before { color: #d97706; }
.lp-plan-btn { display: block; text-align: center; padding: 14px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid #d1d5db; color: #1f2937; background: #fff; transition: background .2s; }
.lp-plan-btn:hover { background: #f9fafb; color: #1f2937; }
.lp-plan-btn.is-gold { background: #d97706; border-color: #d97706; color: #fff; }
.lp-plan-btn.is-gold:hover { background: #b45309; color: #fff; }
.lp-plan-note { font-size: .75rem; color: #92400e; margin: 12px 0 0; text-align: center; line-height: 1.6; }
.lp-center-note { text-align: center; font-size: .875rem; color: #6b7280; margin: 32px 0 0; }

.lp-faq details { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.lp-faq summary { font-weight: 700; cursor: pointer; color: #1f2937; list-style: none; position: relative; padding-right: 28px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: #0084ff; font-weight: 400; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 12px 0 0; color: #4b5563; font-size: .92rem; line-height: 1.8; }

.lp-form-card { background: #fff; padding: 32px; border-radius: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); border: 1px solid #e5e7eb; }
.lp-field { margin-bottom: 20px; }
.lp-field.is-last { margin-bottom: 32px; }
.lp-field label { display: block; font-size: .875rem; font-weight: 700; color: #374151; margin-bottom: 8px; }
.lp-req { color: #ef4444; font-size: .75rem; margin-left: 4px; }
.lp-field input, .lp-field textarea { width: 100%; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 8px; padding: 16px; font: inherit; font-size: 1rem; color: #1f2937; transition: border-color .2s, background .2s; }
.lp-field input:focus, .lp-field textarea:focus { outline: none; border-color: #3b82f6; background: #fff; }
.lp-submit { width: 100%; background: #1e293b; color: #fff; font: inherit; font-weight: 700; padding: 16px; border: 0; border-radius: 12px; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1); transition: background .2s, transform .2s; }
.lp-submit:hover { background: #334155; transform: translateY(-2px); }

.lp-footer { background: #0f172a; color: #fff; padding: 64px 0 32px; text-align: center; }
.lp-footer-cta { max-width: 36rem; margin: 0 auto 48px; padding: 0 24px; }
.lp-footer-cta h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 24px; }
.lp-footer-btn { display: block; width: 100%; background: #2563eb; color: #fff; font-size: 1.125rem; font-weight: 700; padding: 16px 32px; border-radius: 12px; text-decoration: none; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .3); transition: background .2s, transform .2s; }
.lp-footer-btn:hover { background: #3b82f6; color: #fff; transform: translateY(-2px); }
.lp-footer-cta p { color: #94a3b8; font-size: .75rem; margin: 16px 0 0; }
.lp-footer-bottom { border-top: 1px solid #1e293b; padding-top: 32px; margin-top: 32px; }
.lp-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-weight: 500; margin-bottom: 24px; font-size: .875rem; padding: 0 16px; }
.lp-footer-links a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.lp-footer-links a:hover { color: #fff; }
.lp-copy { color: #64748b; font-size: .75rem; margin: 0; }

/* 法人・大口発注 */
.lp-nav-link.is-strong { color: #b45309; }
.lp-opt { color: #9ca3af; font-size: .75rem; margin-left: 4px; font-weight: 500; }
.lp-field select { width: 100%; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 8px; padding: 16px; font: inherit; font-size: 1rem; color: #1f2937; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.lp-biz { position: relative; margin: 56px auto 0; max-width: 64rem; display: grid; grid-template-columns: 1fr; border-radius: 28px; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #1e3a8a 0%, #0f172a 55%, #0b1120 100%); box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.lp-biz::before { content: ''; position: absolute; inset: 0; border-radius: 28px; padding: 2px; background: linear-gradient(135deg, #10b981, #0084ff, #f59e0b); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@media (min-width: 900px) { .lp-biz { grid-template-columns: 1.55fr 1fr; } }
.lp-biz-main { padding: 40px 28px 32px; }
@media (min-width: 768px) { .lp-biz-main { padding: 52px 48px; } }
.lp-biz-label { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: #6ee7b7; }
.lp-biz-title { margin: 0 0 16px; font-size: 2rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
@media (min-width: 768px) { .lp-biz-title { font-size: 2.6rem; } }
.lp-biz-lead { margin: 0 0 28px; color: #cbd5e1; line-height: 1.9; font-size: 1rem; }
.lp-biz-lead strong { color: #fff; }
.lp-biz-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-biz-points { grid-template-columns: 1fr 1fr; } }
.lp-biz-points li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px 16px; }
.lp-biz-points li > span { font-size: 1.4rem; line-height: 1.2; }
.lp-biz-points strong { display: block; font-size: .95rem; margin-bottom: 2px; color: #fff; }
.lp-biz-points div { font-size: .82rem; color: #cbd5e1; line-height: 1.7; }
.lp-biz-side { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 36px 28px 44px; background: linear-gradient(160deg, rgba(245, 158, 11, .18), rgba(16, 185, 129, .12)); border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .lp-biz-side { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .1); } }
.lp-biz-price-label { margin: 0; font-size: .85rem; font-weight: 700; color: #fcd34d; letter-spacing: .1em; }
.lp-biz-price { margin: 6px 0 8px; font-size: 3.6rem; font-weight: 800; line-height: 1.1; color: #fff; text-shadow: 0 4px 24px rgba(245, 158, 11, .35); white-space: nowrap; }
@media (min-width: 768px) { .lp-biz-price { font-size: 4.4rem; } }
.lp-biz-unit { font-size: 1.1rem; font-weight: 700; margin-right: 8px; color: #fde68a; vertical-align: .9em; }
.lp-biz-price small { font-size: 1.3rem; font-weight: 700; margin-left: 4px; color: #fde68a; }
.lp-biz-price-note { margin: 0 0 24px; font-size: .85rem; color: #e2e8f0; }
.lp-biz-btn { display: block; width: 100%; max-width: 320px; padding: 18px 20px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 0 12px 24px -8px rgba(245, 158, 11, .6); transition: transform .2s, box-shadow .2s; }
.lp-biz-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(245, 158, 11, .75); }
.lp-biz-small { margin: 12px 0 0; font-size: .75rem; color: #94a3b8; }

.lp-section, .lp-biz { scroll-margin-top: 80px; }
