:root {
  color-scheme: light;
  --navy: #232946;
  --navy-soft: #353d60;
  --yellow: #ffd23f;
  --paper: #fff;
  --background: #f7f8fc;
  --muted: #697087;
  --line: #e5e8f1;
  --green: #237b68;
  --shadow: 0 16px 48px #23294609;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--navy);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 28px; }
body { margin: 0; min-width: 280px; overflow-x: clip; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #b08a00; outline-offset: 5px; }
button, a { touch-action: manipulation; }
.shell { width: min(100% - 40px, 720px); margin-inline: auto; }
.ambient { position: absolute; pointer-events: none; z-index: -1; filter: blur(25px); border-radius: 50%; }
.ambient-one { width: min(360px, 90vw); height: 420px; top: 40px; right: 0; background: radial-gradient(ellipse, #ffe79536, transparent 70%); }
.ambient-two { width: 240px; height: 320px; top: 360px; left: 0; background: radial-gradient(ellipse, #c8d0fa30, transparent 70%); }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 12px; font-weight: 700; min-height: 44px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--navy); color: var(--yellow); font-size: 25px; }
.header-dots { display: flex; gap: 5px; }
.header-dots i { width: 5px; height: 5px; background: #c8ccda; border-radius: 50%; }
.header-dots i:last-child { background: var(--yellow); }
.hero { text-align: center; padding: 22px 0 30px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.hero > .eyebrow { display: inline-flex; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 8px 13px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px #ffd23f20; }
.hero-art { position: relative; width: 210px; height: 132px; margin: 20px auto 4px; }
.art-core { position: absolute; display: grid; place-items: center; width: 76px; height: 76px; top: 26px; left: 67px; background: var(--navy); color: var(--yellow); border-radius: 24px; font-size: 62px; transform: rotate(-9deg); box-shadow: 0 16px 28px #23294624, inset 0 0 0 1px #ffffff20; }
.art-chip { position: absolute; display: grid; place-items: center; width: 44px; height: 50px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px #23294608; font-size: 30px; }
.art-document { top: 28px; left: 7px; transform: rotate(-14deg); }
.art-slide { top: 61px; right: 2px; transform: rotate(13deg); color: #a27c00; }
.art-spark { position: absolute; right: 30px; top: 3px; color: #b18a0b; font-size: 25px; }
.orbit { position: absolute; width: 174px; height: 90px; border: 1px dashed #daddE8; border-radius: 50%; top: 22px; left: 18px; transform: rotate(-25deg); }
.orbit-two { transform: rotate(25deg); }
h1 { margin: 0; font-size: clamp(29px, 6.7vw, 44px); line-height: 1.5; font-weight: 900; letter-spacing: -.045em; white-space: pre-line; overflow-wrap: anywhere; }
.hero h1 { margin-top: 8px; }
.hero-lead { font-size: 12px; line-height: 2; color: var(--muted); margin: 17px -4px 0; }
.hero-lead-line { display: block; text-wrap: balance; }
.menu { display: grid; gap: 13px; }
.menu-card { position: relative; width: 100%; display: grid; grid-template-columns: 48px 1fr 24px; gap: 14px; align-items: center; min-height: 108px; text-align: left; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; overflow: hidden; }
.menu-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--yellow); opacity: 0; transition: opacity .2s; }
.menu-card:hover { transform: translateY(-3px); border-color: #d7bd61; box-shadow: 0 15px 40px #23294610; }
.menu-card:hover::before { opacity: 1; }
.menu-icon { width: 48px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #f3f4f9; }
.menu-card:nth-child(2) .menu-icon { background: #fff7d9; }
.menu-card:nth-child(3) .menu-icon { background: #eaf4f0; color: var(--green); }
svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-copy { min-width: 0; }
.menu-name { display: block; font-size: 16px; font-weight: 900; letter-spacing: -.03em; }
.menu-catch { display: block; text-wrap: pretty; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.menu-arrow { width: 26px; height: 26px; border-radius: 50%; background: #f6f7fb; display: grid; place-items: center; font-size: 16px; }
.demo-note { text-align: center; font-size: 10px; color: var(--muted); line-height: 1.9; }
.home-note { margin: 25px 0 36px; }
.loading-view { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-bottom: 80px; text-align: center; }
.loading-orb { position: relative; width: 130px; height: 130px; margin-bottom: 32px; display: grid; place-items: center; border-radius: 40px; background: var(--navy); box-shadow: 0 20px 55px #23294625; }
.loading-orb > span { color: var(--yellow); font-size: 88px; animation: think 3s linear infinite; }
.loading-orb i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); top: 10px; left: -15px; animation: particle 1s ease-in-out infinite alternate; }
.loading-orb i:nth-of-type(2) { left: auto; right: -17px; top: 80px; animation-delay: -.4s; }
.loading-orb i:nth-of-type(3) { top: -15px; left: 100px; width: 4px; height: 4px; animation-delay: -.8s; }
.loading-view h2 { min-height: 3em; margin: 5px 0 16px; font-size: clamp(16px, 4vw, 22px); line-height: 1.8; }
.loading-track { width: 220px; height: 5px; border-radius: 9px; background: #e5e8f0; overflow: hidden; }
.loading-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), #ffeb9c, var(--yellow)); background-size: 200% 100%; transition: width .5s linear; animation: shimmer 1s linear infinite; }
.loading-steps { display: flex; gap: 7px; margin-top: 18px; }
.loading-steps i { width: 5px; height: 5px; border-radius: 50%; background: #d7dbe8; }
.loading-steps i.active { background: var(--navy); }
.back-button { display: flex; gap: 9px; align-items: center; min-height: 44px; padding: 0 4px; background: transparent; border: 0; color: var(--muted); font-size: 11px; }
.back-button > span:first-child { font-size: 20px; }
.result-header { padding: 22px 0 27px; }
.result-header .eyebrow { justify-content: flex-start; margin: 0 0 11px; }
.result-header h1 { font-size: clamp(26px, 6vw, 36px); }
.result-header > p:last-of-type { font-size: 12px; color: var(--muted); margin-top: 9px; }
.generation-track { height: 3px; margin-top: 25px; border-radius: 3px; background: #e4e7ef; overflow: hidden; }
.generation-track span { width: 0; height: 100%; display: block; background: var(--yellow); transition: width .18s; }
.result-footer { padding: 25px 0 90px; text-align: center; }
.again-button { display: inline-flex; align-items: center; justify-content: center; gap: 38px; min-height: 52px; border: 0; border-radius: 13px; background: var(--navy); color: white; font-size: 13px; font-weight: 700; padding: 13px 27px; margin-top: 14px; }
.again-button > span:last-child { color: var(--yellow); font-size: 21px; }
.skip-button { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: max(18px, calc((100vw - 720px) / 2)); z-index: 20; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 11px 16px; background: var(--navy); color: white; border: 1px solid #ffffff40; border-radius: 100px; box-shadow: 0 7px 30px #23294630; font-size: 10px; }
.skip-button > span:first-child { color: var(--yellow); font-size: 15px; }
.document { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.document-bar { height: 45px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 20px; background: #fdfdff; }
.document-bar i { display: block; height: 6px; width: 6px; background: #dfe3ed; border-radius: 50%; }
.document-bar i:first-child { background: var(--yellow); }
.document-bar > span { margin-left: auto; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.script-content { padding: 28px 24px 40px; min-height: 240px; }
.script-line { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 2.05; }
.script-line.title { font-size: 20px; line-height: 1.8; font-weight: 900; border-bottom: 2px solid var(--yellow); padding-bottom: 20px; margin-bottom: 22px; }
.script-line.h { font-size: 16px; line-height: 1.8; font-weight: 900; background: #f4f5fa; border-left: 3px solid var(--yellow); padding: 12px 14px; margin: 30px -7px 17px; }
.script-line.q { color: var(--green); }
.script-line.gap { margin-top: 19px; }
.typing::after { content: ""; display: inline-block; height: 1em; width: 2px; margin-left: 3px; vertical-align: -.13em; background: #c19819; animation: blink .75s steps(1) infinite; }
.carousel { border: 1px solid var(--line); border-radius: 20px; padding: 25px 0 22px; background: linear-gradient(155deg, white, #eef0f8); box-shadow: var(--shadow); overflow: hidden; }
.carousel-stage { --slide-width: min(86%, 640px); position: relative; width: 100%; height: clamp(208px, 52vw, 420px); perspective: 950px; touch-action: pan-y; user-select: none; cursor: grab; outline-offset: -5px !important; }
.carousel-stage.dragging { cursor: grabbing; }
.carousel-floor { position: absolute; left: 9%; right: 9%; bottom: 0; height: 33%; border-radius: 50%; background: radial-gradient(ellipse, #23294618, #23294603 55%, transparent 70%); transform: rotateX(55deg); pointer-events: none; }
.slide-card { position: absolute; left: calc((100% - var(--slide-width)) / 2); top: 12%; width: var(--slide-width); aspect-ratio: 16/9; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .35s, filter .5s; border-radius: 8px; background: var(--navy); box-shadow: 0 12px 26px #23294623; overflow: hidden; will-change: transform; }
.slide-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slide-card.generated img { animation: develop .3s ease-out both; }
.carousel-stage.dragging .slide-card { transition: opacity .15s; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 26px; position: relative; z-index: 2; }
.carousel-controls button { width: 46px; height: 46px; border: 1px solid #dce0eb; border-radius: 50%; background: white; font-size: 22px; }
.slide-count { min-width: 67px; text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slide-count span { color: var(--muted); font-weight: 400; }
.swipe-hint { text-align: center; font-size: 10px; color: var(--muted); line-height: 1.9; padding: 0 20px; margin: 22px 0 0; }
.hint-hand { display: inline-block; font-size: 20px; margin-right: 8px; vertical-align: middle; animation: swipe 1.5s ease-in-out infinite; }
.slide-strip { display: flex; gap: 6px; margin: 23px 20px 0; overflow-x: auto; padding: 5px 0 9px; scrollbar-width: thin; }
.slide-thumb { flex: 0 0 48px; width: 48px; height: 44px; border: 1px solid #dce0eb; border-radius: 9px; background: #ffffffa0; color: var(--muted); font-size: 10px; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s; }
.slide-thumb.ready { opacity: 1; transform: scale(1); }
.slide-thumb[aria-current="true"] { background: var(--navy); color: var(--yellow); border-color: var(--navy); }
.form-document { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.form-toolbar { display: flex; align-items: center; gap: 9px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fbfcfd; font-size: 12px; font-weight: 700; }
.form-toolbar > svg { color: var(--green); width: 19px; height: 19px; }
.form-fields { padding: 4px 20px; }
.form-field { padding: 23px 0; border-bottom: 1px solid #edf0f3; min-width: 0; }
.field-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.field-label { font-size: 12px; font-weight: 700; line-height: 1.7; }
.field-check { color: var(--green); width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; background: #e8f5ef; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s; font-size: 11px; }
.form-field.done .field-check { opacity: 1; transform: scale(1); }
.field-control, .select-value, .option-row, .faq-row { border: 1px solid #dce2e5; border-radius: 7px; background: white; }
.field-control { min-height: 44px; padding: 12px; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; transition: box-shadow .2s, border-color .2s; }
.field-control.multiline { min-height: 110px; }
.form-field.active .field-control, .form-field.active .select-value { border-color: #40a58a; box-shadow: 0 0 0 3px #40a58a14; }
.field-counter { text-align: right; font-size: 10px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.field-counter.over-limit { color: #ad4939; }
.select-group { display: flex; gap: 10px; }
.select-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; min-height: 44px; padding: 10px 12px; font-size: 12px; }
.select-value::after { content: "⌄"; color: #747e85; }
.number-group { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.number-group .field-control { width: 90px; }
.checkbox-row { display: flex; gap: 9px; align-items: flex-start; font-size: 11px; line-height: 1.9; }
.checkbox-row input { appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid #cbd5d0; border-radius: 4px; background: white; flex: 0 0 20px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.checkbox-row input::after { content: "✓"; color: white; font-size: 14px; transform: scale(.4); opacity: 0; transition: transform .25s, opacity .2s; }
.checkbox-row input:checked { background: var(--green); border-color: var(--green); }
.checkbox-row input:checked::after { opacity: 1; transform: scale(1); }
.checkbox-row input:disabled { opacity: 1; }
.add-option { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green); min-height: 44px; margin: 0; }
.field-list { display: grid; gap: 10px; }
.option-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 12px; font-size: 11px; line-height: 1.8; }
.option-row .option-price { white-space: nowrap; color: var(--green); }
.faq-row { padding: 13px; font-size: 11px; line-height: 1.9; }
.faq-question { font-weight: 700; margin: 0 0 9px; }
.faq-answer { margin: 0; color: var(--muted); }
.image-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.image-placeholder { aspect-ratio: 1; border-radius: 7px; background: radial-gradient(circle at 70% 25%, #fce7a4, transparent 55%), linear-gradient(140deg, #343d61, #79709b); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: white; font-size: 8px; text-align: center; padding: 4px; }
.image-placeholder:nth-child(2) { background: radial-gradient(circle at 30% 80%, #e0d5b6, transparent 65%), linear-gradient(135deg, #2d6469, #9cb0a0); }
.image-placeholder:nth-child(3) { background: radial-gradient(circle at 70% 20%, #ffe6c6, transparent 60%), linear-gradient(135deg, #a17487, #483e62); }
.image-placeholder > span:first-child { font-size: 28px; }
.field-list > *, .image-list > * { animation: enter .3s ease-out both; }
.form-completion { padding: 25px 20px; text-align: center; }
.complete-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 700; background: #eaf6f0; padding: 9px 13px; border-radius: 100px; animation: enter .3s ease-out; }
.form-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.form-actions button { flex: 1; min-width: 0; max-width: 220px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border: 1px solid var(--green); background: white; border-radius: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.form-actions button svg { flex: 0 0 18px; width: 18px; height: 18px; }
.form-actions button:disabled { opacity: 1; }
.form-actions button:last-child { background: var(--green); color: white; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes think { to { transform: rotate(180deg); } }
@keyframes particle { to { transform: translateY(-14px); opacity: .3; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes swipe { 50% { transform: translateX(6px); } }
@keyframes enter { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes develop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@media (min-width: 600px) {
  .site-header { height: 100px; }
  .hero { padding-top: 32px; padding-bottom: 36px; }
  .hero-art { margin-top: 25px; }
  .hero-lead { font-size: 14px; }
  .menu-card { padding: 24px 28px; gap: 22px; min-height: 114px; }
  .menu-name { font-size: 19px; }
  .menu-catch { font-size: 12px; }
  .script-content { padding: 38px 44px 48px; }
  .script-line { font-size: 14px; }
  .carousel-stage { --slide-width: min(90%, 640px); }
  .form-fields { padding-inline: 32px; }
  .field-control, .select-value { font-size: 13px; }
  .image-placeholder { font-size: 11px; }
}
@media (max-width: 374px) {
  .shell { width: calc(100% - 28px); }
  .menu-card { padding: 18px 14px; gap: 10px; grid-template-columns: 40px 1fr 20px; }
  .menu-icon { width: 40px; }
  .menu-name { font-size: 14px; }
  .hero-lead { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
