:root {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: #113b37;
  background: #f0f8f5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px; background: #fff; }
.skip-link:focus { left: 8px; }
.page-shell { max-width: 1470px; min-height: 100vh; margin: 24px auto; overflow: hidden; border: 1px solid #dcece6; border-radius: 15px; background: linear-gradient(140deg, #fff 0%, #f8fcfa 48%, #f3fbf6 100%); box-shadow: 0 18px 60px #0b514a0e; }
.site-header { height: 68px; display: flex; align-items: center; gap: 24px; padding: 0 34px; border-bottom: 1px solid #e6efeb; background: #fff; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 18px; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #00a44f; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: -.06em; box-shadow: 0 4px 9px #00824422; }
.header-note { margin-left: auto; color: #547273; font-size: 11px; }
.header-back { margin-left: auto; padding: 10px 4px; border: 0; background: transparent; color: #47676a; font-size: 12px; font-weight: 700; }
.header-back:hover { color: #00894c; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 34px; border-top: 1px solid #e3eee8; color: #77918b; font-size: 11px; }

/* Input */
.input-view { max-width: 1100px; margin: auto; padding: 24px 24px 52px; }
.input-hero { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 274px; align-items: center; }
.hero-copy { padding: 26px 0 18px; }
.eyebrow, .section-kicker { margin-bottom: 13px; color: #009553; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-line { width: 17px; height: 2px; background: #00a15a; }
.hero-copy h1 { margin: 0 0 16px; color: #073d35; font-size: clamp(32px, 3.25vw, 47px); font-weight: 900; letter-spacing: -.055em; line-height: 1.34; }
.hero-copy h1 span { white-space: nowrap; }
.hero-copy h1 em { background: linear-gradient(transparent 72%, #f7e5a9 72%); color: #009c58; font-style: normal; }
.hero-copy > p { max-width: 540px; margin-bottom: 22px; color: #315d5a; font-size: 14px; line-height: 1.9; }
.hero-points { display: flex; align-items: center; gap: 10px; color: #008f51; font-size: 10px; font-weight: 800; }
.hero-points span { display: flex; align-items: center; gap: 6px; }
.hero-points strong { color: #3f6662; font-size: 11px; }
.hero-points i { width: 18px; height: 1px; background: #acc8be; }
.hero-art { position: relative; height: 292px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.art-orbit { position: absolute; width: 310px; height: 310px; border: 1px solid #dcefe4; border-radius: 50%; }
.orbit-two { width: 220px; height: 220px; border: 0; background: #dff5e8aa; }
.art-phone { position: relative; z-index: 2; width: 181px; height: 278px; overflow: hidden; border: 8px solid #173f3b; border-radius: 28px; background: #e8f6f5; box-shadow: 12px 20px 30px #0d524029; transform: rotate(8deg); }
.art-phone-head { height: 41px; display: flex; align-items: center; justify-content: space-around; gap: 5px; background: #d4e7e7; color: #164c49; font-size: 9px; }
.art-phone-head span { font-size: 16px; }
.art-chat { height: 160px; padding: 12px 8px; background: linear-gradient(#b9d4e9, #d8e7ed); }
.art-bubble { margin: 0 3px 8px 0; padding: 9px; border-radius: 10px; background: #fff; color: #2e5155; font-size: 7px; line-height: 1.6; box-shadow: 0 2px 4px #183c3b18; }
.art-bubble.small { width: 83%; }
.art-rich { height: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; background: #eadbc5; }
.art-rich span { display: grid; place-items: center; border-radius: 4px; background: #fffaf2; font-size: 7px; font-weight: 700; }
.art-note { position: absolute; z-index: 3; top: 80px; right: 14px; color: #087847; font-size: 11px; font-weight: 800; line-height: 1.6; transform: rotate(-7deg); }
.art-spark { position: absolute; color: #00a55e; font-size: 24px; }
.spark-one { top: 55px; left: 80px; }
.spark-two { right: 74px; bottom: 28px; }
.form-card { margin: 0 auto; padding: 30px 42px 28px; border: 1px solid #e0efea; border-radius: 16px; background: #fff; box-shadow: 0 14px 32px #16524911; }
.card-title { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #e7f0ec; }
.title-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #0e7763, #0c493e); color: #fff; font-size: 23px; }
.card-title .section-kicker { margin-bottom: 2px; }
.card-title h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.form-time { margin-left: auto; padding: 6px 12px; border-radius: 40px; background: #edf8f1; color: #54816e; font-size: 11px; }
.field-row { display: grid; grid-template-columns: 34px 1fr; gap: 15px; padding: 19px 0; border-bottom: 1px solid #edf2f0; }
.field-row.last { border-bottom: 0; }
.step-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #009e59; color: #fff; font-size: 13px; font-weight: 800; }
.field-content label { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 13px; font-weight: 800; }
.required { padding: 0 4px; border: 1px solid #ff8e8e; border-radius: 3px; color: #e24c4c; font-size: 10px; }
.optional, .label-hint { color: #718a87; font-size: 11px; font-weight: 500; }
.field-content input[type=text], .field-content select, .field-content textarea { width: 100%; display: block; padding: 11px 13px; border: 1px solid #c9ded9; border-radius: 8px; outline: 0; background: #fff; color: #193e3b; font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.field-content input[type=text], .field-content select { height: 44px; }
.field-content textarea { min-height: 100px; resize: vertical; line-height: 1.65; }
.field-content input:focus, .field-content select:focus, .field-content textarea:focus { border-color: #04a15a; box-shadow: 0 0 0 3px #00a75c1b; }
.field-content [aria-invalid=true] { border-color: #d75353 !important; }
.field-content ::placeholder { color: #91a5a3; }
.field-meta { min-height: 19px; display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: #819894; font-size: 10px; }
.field-meta span:last-child { margin-left: auto; }
.error { display: block; color: #c63c3c; font-size: 11px; line-height: 1.5; }
.logo-upload { max-width: 540px; display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.logo-preview { width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d6e4df; border-radius: 50%; background: linear-gradient(135deg, #e2ebe7, #f8faf8); color: #42685d; font-size: 13px; font-weight: 800; }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-controls { min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; border: 1px dashed #c5d9d1; border-radius: 9px; }
.upload-button { display: inline-flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 7px 17px; border: 1px solid #c9e0d6; border-radius: 6px; background: #f9fffb; color: #14664f; font-size: 11px !important; cursor: pointer; }
.logo-controls input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.logo-controls:focus-within { outline: 3px solid #00a75c55; }
.logo-controls p { margin: 5px 0 0; color: #91a5a3; font-size: 10px; line-height: 1.6; text-align: center; }
.primary-button { border: 0; border-radius: 100px; background: linear-gradient(90deg, #009a55, #00ad62); color: #fff; font-weight: 800; box-shadow: 0 8px 16px #008a4920; transition: transform .2s, box-shadow .2s, filter .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 13px 20px #008a4933; filter: brightness(1.02); }
.primary-button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #5ac58d; outline-offset: 3px; }
.submit-button { width: calc(100% - 49px); min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 18px; margin: 20px 0 0 49px; font-size: 16px; }
.submit-button span { font-size: 23px; line-height: 1; }
.form-footnote { margin: 12px 0 0 49px; color: #8da09b; font-size: 10px; text-align: center; }

/* Preview */
.preview-view { padding: 30px 30px 34px; }
.preview-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 23px; }
.preview-intro .section-kicker { margin-bottom: 7px; }
.preview-intro h1 { margin: 0 0 9px; font-size: clamp(25px, 2.6vw, 36px); letter-spacing: -.05em; }
.preview-intro p:last-child { margin-bottom: 0; color: #426766; font-size: 13px; }
.demo-badge { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #ade9c7; border-radius: 8px; background: #ecfff5; color: #176f4a; font-size: 10px; font-weight: 700; line-height: 1.5; }
.demo-badge span { color: #00a35d; font-size: 21px; }
.preview-layout { display: grid; grid-template-columns: minmax(340px, .94fr) minmax(400px, 1.06fr); gap: 28px; align-items: stretch; }
.phone-column { display: flex; flex-direction: column; align-items: center; }
.phone-stage { width: 100%; min-height: 625px; display: grid; place-items: center; border-radius: 22px; background: radial-gradient(ellipse at 50% 47%, #dcf4e7 0%, #eef8f3 53%, transparent 78%); }
.phone { width: 330px; max-width: 100%; height: 607px; display: flex; flex-direction: column; overflow: hidden; border: 7px solid #111d1d; border-radius: 45px; background: #111; box-shadow: 0 16px 34px #1b51453c, 0 0 0 2px #84928f, inset 0 0 0 1px #fff6; }
.phone-status { height: 28px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0; background: #a9c4dc; color: #173b49; font-size: 11px; font-weight: 800; }
.phone-header { height: 53px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-bottom: 1px solid #95b8d4; background: #a9c4dc; color: #153e45; }
.phone-back { padding-right: 2px; font-size: 29px; line-height: 1; }
.chat-avatar, .message-avatar { flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #e8f1ec; color: #075846; font-weight: 800; }
.chat-avatar, .chat-avatar .message-avatar { width: 31px; height: 31px; }
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.phone-title { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.phone-title strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.phone-title small { margin-top: 2px; color: #577381; font-size: 8px; }
.phone-menu-icon { font-size: 17px; }
.phone-chat { min-height: 0; flex: 1; overflow-y: auto; padding: 13px 10px; background: linear-gradient(155deg, #aac8e3, #93b9df 55%, #b8d2e5); scrollbar-width: thin; }
.chat-date { width: max-content; margin: 0 auto 14px; padding: 4px 10px; border-radius: 30px; background: #6f97b9a0; color: #eef8ff; font-size: 9px; text-align: center; }
.message-row { display: flex; align-items: flex-end; gap: 5px; margin: 0 0 11px; animation: pop .18s ease-out; }
.message-row.shop { justify-content: flex-start; }
.message-row.user { justify-content: flex-end; }
.message-avatar.small { width: 25px; height: 25px; background: #f8fff9; font-size: 11px; }
.message-bubble { max-width: 73%; padding: 10px 11px; overflow-wrap: anywhere; white-space: pre-wrap; border-radius: 12px 12px 12px 3px; background: #fff; color: #21434b; font-size: 10px; line-height: 1.65; box-shadow: 0 2px 3px #47739a19; }
.message-row.user .message-bubble { border-radius: 12px 12px 3px 12px; background: #9af36a; color: #204d25; }
.rich-area { flex: none; background: #f4f7f9; }
.rich-canvas-wrap { position: relative; width: 100%; aspect-ratio: 720 / 440; overflow: hidden; }
.rich-canvas-wrap canvas, .menu-mini canvas { width: 100%; height: 100%; display: block; }
.rich-buttons { position: absolute; inset: 0; }
.rich-hit { position: absolute; border: 0; border-radius: 7px; background: transparent; }
.rich-hit:hover { background: #fff4; }
.rich-hit:focus-visible { outline: 3px solid #009c58; outline-offset: -4px; background: #ffffff20; }
.phone-bottom { height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #33566b; font-size: 11px; }
.phone-bottom strong { font-size: 10px; }
.phone-caption { margin: 10px 0 0; color: #809994; font-size: 10px; text-align: center; }
.detail-panel { height: 100%; padding: 16px; border: 1px solid #e1eeeb; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px #1555460c; }
.tab-list { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; padding: 3px; border: 1px solid #e4eeea; border-radius: 9px; background: #f2f7f5; }
.tab { padding: 11px 8px; border: 0; border-radius: 7px; background: transparent; color: #446b68; font-size: 12px; font-weight: 800; }
.tab.active { background: #00a45b; color: #fff; box-shadow: 0 3px 7px #008a4a24; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-heading .section-kicker { margin-bottom: 5px; }
.panel-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.text-button { padding: 7px 10px; border: 1px solid #bfe5d3; border-radius: 30px; background: #fff; color: #14865b; font-size: 10px; font-weight: 800; white-space: nowrap; }
.text-button:hover { background: #f0fff5; }
.menu-mini { width: 100%; overflow: hidden; aspect-ratio: 720 / 440; border-radius: 8px; box-shadow: 0 3px 10px #3a615327; }
.template-meta { display: flex; justify-content: space-between; margin: 9px 1px 15px; color: #64918a; font-size: 10px; }
.template-meta span:first-child { padding: 4px 9px; border-radius: 20px; background: #e7f4ee; color: #297665; font-weight: 800; }
.tips-box { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; padding: 9px 11px; border: 1px solid #e3f1e8; border-radius: 9px; background: #f2faf6; }
.tips-icon { color: #00a45b; font-size: 16px; }
.tips-box p { margin: 1px 0 0; color: #4c7067; font-size: 10px; line-height: 1.6; }
.side-heading { margin: 0 0 9px; font-size: 14px; }
.summary-card { width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 11px; border: 1px solid #dcece8; border-radius: 9px; background: #fff; color: #164a4a; text-align: left; transition: border-color .2s, transform .2s; }
.summary-card:hover { border-color: #8acdb2; transform: translateX(2px); }
.summary-icon { width: 29px; height: 29px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #e4f4ea; color: #008653; font-size: 16px; }
.summary-card > span:nth-child(2) { min-width: 0; flex: 1; }
.summary-card strong, .summary-card small { display: block; }
.summary-card strong { margin-bottom: 3px; font-size: 11px; }
.summary-card small { overflow: hidden; color: #6d8988; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.summary-card b { color: #3a7d71; font-size: 20px; font-weight: 400; }
.plan-lead { margin: 0 0 15px; color: #6a8581; font-size: 11px; line-height: 1.6; }
.plan-heading { margin: 20px 0 9px; padding-left: 8px; border-left: 3px solid #00a35d; color: #0e5244; font-size: 13px; }
.plan-heading:first-of-type { margin-top: 0; }
.plan-message { width: 100%; display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 7px; padding: 11px 12px; border: 1px solid #dcebe5; border-radius: 9px; background: #fff; color: #234f4b; text-align: left; transition: border-color .2s, background .2s; }
.plan-message:hover { border-color: #87cdb2; background: #fbfffc; }
.plan-message-meta { margin-bottom: 4px; color: #009553; font-size: 10px; font-weight: 800; }
.plan-message strong { margin-bottom: 5px; font-size: 12px; }
.plan-message-text { color: #63827b; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.plan-preview-hint { align-self: flex-end; margin-top: 5px; color: #008e55; font-size: 10px; font-weight: 800; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 930px) {
  .page-shell { margin: 0; border-radius: 0; }
  .input-hero { grid-template-columns: 1fr .75fr; }
  .hero-art { height: 270px; }
  .art-note { right: 0; }
  .preview-layout { grid-template-columns: 1fr 1fr; gap: 18px; }
  .preview-view { padding: 26px 20px; }
  .phone-stage { min-height: 600px; }
  .phone { transform: scale(.94); }
}
@media (max-width: 700px) {
  .site-header { height: 62px; padding: 0 18px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; font-size: 10px; }
  .header-note { display: none; }
  .header-back { font-size: 10px; }
  .site-footer { flex-direction: column; gap: 4px; padding: 18px; font-size: 9px; }
  .input-view { padding: 17px 16px 40px; }
  .input-hero { display: block; min-height: 0; }
  .hero-copy { padding: 22px 4px 6px; }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 40px); }
  .hero-copy > p { font-size: 12px; line-height: 1.8; }
  .hero-points { flex-wrap: wrap; }
  .hero-art { height: 210px; }
  .art-phone { margin-top: -15px; transform: rotate(8deg) scale(.7); }
  .art-orbit { transform: scale(.7); }
  .art-note { top: 50px; right: 9%; font-size: 9px; }
  .spark-one { top: 30px; left: 15%; }
  .spark-two { right: 20%; bottom: 10px; }
  .form-card { padding: 20px 17px 24px; }
  .card-title { gap: 9px; }
  .title-icon { width: 37px; height: 37px; }
  .card-title h2 { font-size: 16px; }
  .form-time { padding: 5px 7px; font-size: 9px; }
  .field-row { grid-template-columns: 27px 1fr; gap: 8px; padding: 16px 0; }
  .step-number { width: 23px; height: 23px; font-size: 11px; }
  .field-content label { font-size: 12px; }
  .logo-upload { grid-template-columns: 72px 1fr; gap: 8px; }
  .logo-preview { width: 72px; height: 72px; }
  .logo-controls { min-height: 72px; }
  .logo-controls p { font-size: 8px; }
  .submit-button { width: 100%; min-height: 51px; margin: 19px 0 0; font-size: 13px; }
  .form-footnote { margin-left: 0; font-size: 9px; }
  .preview-view { padding: 23px 14px 26px; }
  .preview-intro { display: block; margin-bottom: 18px; }
  .preview-intro h1 { font-size: 24px; }
  .preview-intro p:last-child { font-size: 12px; line-height: 1.6; }
  .demo-badge { display: none; }
  .preview-layout { display: flex; flex-direction: column; gap: 23px; }
  .phone-stage { min-height: 0; padding: 12px; border-radius: 18px; background: #eaf8f0; }
  .phone { width: min(330px, 100%); height: 598px; transform: none; }
  .phone-caption { font-size: 9px; }
  .detail-panel { padding: 14px; }
}
@media (max-width: 370px) {
  .phone { height: 560px; }
  .phone-status { height: 25px; }
  .phone-header { height: 48px; }
  .hero-copy h1 { font-size: 29px; }
  .art-note { right: 2%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
