:root {
  --ink: #06162b;
  --panel: #0a2342;
  --panel-2: #0e305a;
  --line: #244c75;
  --paper: #f3f8fd;
  --muted: #a9bed2;
  --text: #edf6ff;
  --amber: #3b9cff;
  --amber-2: #8ec8ff;
  --cyan: #5bd8ff;
  --danger: #ff735f;
  --shadow: 0 28px 80px rgba(1, 8, 18, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 12%, rgba(59, 156, 255, .18), transparent 30rem),
    radial-gradient(circle at 85% 35%, rgba(31, 104, 204, .12), transparent 32rem),
    linear-gradient(140deg, #06162b 0%, #092440 48%, #0a2c50 100%);
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

button, textarea { font: inherit; }
a { color: inherit; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(6, 22, 43, .84);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; line-height: 1.25; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #257fe6, #5bbcff); color: white; box-shadow: 0 0 30px rgba(59,156,255,.28); }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .03em; }
.brand small { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }
.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { text-decoration: none; color: #b9cce0; font-size: .8rem; }
.header-nav a:hover { color: white; }
.phone-link { text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.phone-link span { color: var(--muted); font-size: .8rem; }
.phone-link strong { color: var(--amber); font-size: 1.05rem; letter-spacing: .04em; }

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 24px 88px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.eyebrow { color: var(--cyan); font-size: .82rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 18px; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(91,216,255,.12); }
h1 { font-size: clamp(2.1rem, 4.2vw, 4.2rem); line-height: 1.18; letter-spacing: -.04em; margin: 0 0 24px; }
h1 em { color: var(--amber); font-style: normal; }
.intro > p { color: #c2ceda; max-width: 39rem; margin: 0; font-size: 1.02rem; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 28px; border-block: 1px solid var(--line); }
.trust-row div { padding: 16px 12px 16px 0; }
.trust-row div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.trust-row strong, .trust-row span { display: block; }
.trust-row strong { color: var(--amber-2); font-size: 1rem; }
.trust-row span { color: var(--muted); font-size: .75rem; }
.support-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; color: #b9c7d4; font-size: .82rem; }
.support-list li::before { content: "✓"; color: var(--cyan); margin-right: 8px; font-weight: 800; }

.chat-shell { min-height: 610px; display: flex; flex-direction: column; background: rgba(8, 31, 58, .96); border: 1px solid #2d6091; border-radius: 26px; box-shadow: var(--shadow), 0 0 0 1px rgba(75,164,255,.06); overflow: hidden; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(19,35,56,.8); }
.assistant-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, #1674dc, #5bc8ff); font-size: .75rem; font-weight: 900; }
.chat-head strong, .chat-head span { display: block; }
.chat-head strong { font-size: .93rem; }
.chat-head div:nth-child(2) span { color: var(--muted); font-size: .71rem; }
.status { margin-left: auto; color: var(--cyan); font-size: .7rem; border: 1px solid rgba(70,214,208,.35); border-radius: 99px; padding: 3px 9px; }
.safety-banner { background: #42221f; border-bottom: 1px solid rgba(255,115,95,.4); padding: 13px 18px; color: #ffd9d3; font-size: .8rem; line-height: 1.55; }
.safety-banner strong, .safety-banner span { display: block; }
.safety-banner strong { color: #ff9c8e; }
.messages { flex: 1; min-height: 320px; max-height: 420px; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; scrollbar-color: #38506b transparent; }
.message { display: flex; }
.message.user { justify-content: flex-end; }
.bubble { max-width: 87%; padding: 13px 15px; border-radius: 7px 18px 18px 18px; background: #192c42; color: #e8f0f7; font-size: .92rem; line-height: 1.62; box-shadow: 0 10px 24px rgba(0,0,0,.11); white-space: pre-wrap; }
.user .bubble { background: linear-gradient(135deg, #2587ec, #4caeff); color: white; border-radius: 18px 7px 18px 18px; font-weight: 600; }
.bubble small { color: var(--muted); font-size: .72rem; }
.user .bubble small { color: #d7edff; }
.composer { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: #0a1624; }
.quick-options { display: flex; flex-wrap: wrap; gap: 9px; }
.quick-options button, .quick-options a, .restart { border: 1px solid #38516c; background: #13263a; color: #d9e5ef; border-radius: 999px; padding: 9px 14px; cursor: pointer; font-size: .84rem; transition: .18s ease; text-decoration: none; }
.quick-options button:hover, .quick-options button:focus-visible, .quick-options a:hover, .quick-options a:focus-visible { border-color: var(--amber); color: var(--amber-2); transform: translateY(-1px); outline: none; }
.quick-options button.primary { background: var(--amber); color: white; border-color: var(--amber); font-weight: 800; }
.input-row { display: flex; gap: 10px; }
textarea { flex: 1; resize: none; border: 1px solid #38516c; border-radius: 14px; padding: 11px 13px; background: #102033; color: white; min-height: 52px; }
textarea:focus { border-color: var(--cyan); outline: 2px solid rgba(70,214,208,.15); }
.input-row button { border: 0; border-radius: 14px; min-width: 72px; padding: 0 16px; cursor: pointer; background: var(--amber); color: white; font-weight: 800; }
.restart { margin-top: 12px; background: transparent; color: var(--muted); }
.send-form { display: grid; gap: 10px; margin-top: 4px; padding: 14px; border: 1px solid #315b83; border-radius: 15px; background: #0d2136; }
.send-form > strong { font-size: .88rem; color: #e8f4ff; }
.form-help { color: #9fb5c9; font-size: .76rem; line-height: 1.5; }
.file-input { width: 100%; padding: 8px; border: 1px solid #345b7e; border-radius: 10px; background: #102a43; color: #cfe2f3; font-size: .76rem; }
.file-input::file-selector-button { margin-right: 9px; border: 0; border-radius: 8px; padding: 7px 10px; background: #245f96; color: white; cursor: pointer; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; color: #b9ccdd; font-size: .75rem; line-height: 1.55; margin-top: 3px; }
.consent-row input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: #3b9cff; }
.submit-inquiry { width: 100%; border: 0; border-radius: 12px; padding: 12px 16px; background: linear-gradient(135deg, #2587ec, #4caeff); color: white; font-weight: 800; cursor: pointer; }
.submit-inquiry:disabled { opacity: .72; cursor: wait; }
.send-status { min-height: 1.5em; margin: 0; font-size: .78rem; }
.send-status.success { color: #72e7ca; }
.send-status.error { color: #ff9c8e; }
.thanks-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.thanks-card { width: min(620px, 100%); padding: clamp(30px, 7vw, 60px); text-align: center; border: 1px solid #2d6091; border-radius: 24px; background: rgba(8, 31, 58, .96); box-shadow: var(--shadow); }
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #2587ec, #4caeff); color: white; font-size: 1.7rem; font-weight: 900; }
.thanks-kicker { color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .14em; margin: 0; }
.thanks-card h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 4px 0 12px; }
.thanks-card > p:not(.thanks-kicker) { color: #bfd1e1; margin: 0 auto; max-width: 32rem; }
.thanks-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; }
.thanks-actions a { text-decoration: none; padding: 11px 18px; border: 1px solid #3f6e99; border-radius: 12px; color: #dbeaff; }
.thanks-actions .thanks-primary { background: #338fe9; border-color: #338fe9; color: white; font-weight: 800; }
.thanks-card small { color: #91a7ba; }
.summary-card { border: 1px solid #3c566f; border-radius: 16px; background: #0f2032; padding: 15px; font-size: .81rem; color: #d6e2ec; white-space: pre-wrap; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.action-row button, .action-row a { text-align: center; text-decoration: none; border-radius: 12px; padding: 11px; border: 1px solid var(--amber); font-size: .82rem; font-weight: 800; cursor: pointer; }
.action-row button { background: var(--amber); color: white; }
.action-row a { color: var(--amber-2); background: transparent; }

.process { background: var(--paper); color: #102b48; padding: 80px max(24px, calc((100vw - 1180px) / 2)); }
.section-kicker { color: #517087; font-size: .74rem; letter-spacing: .18em; font-weight: 800; }
.process h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 4px 0 28px; letter-spacing: -.03em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article { background: white; padding: 26px; border: 1px solid #d6e5f2; border-top: 4px solid #3b9cff; border-radius: 14px; }
.steps article span { color: #768a9b; font-size: .72rem; font-weight: 900; }
.steps h3 { margin: 8px 0 5px; font-size: 1.05rem; }
.steps p { margin: 0; color: #607184; font-size: .86rem; }
.notice { margin: 28px 0 0; color: #66798b; font-size: .76rem; border-left: 3px solid #91a4b6; padding-left: 13px; }

.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading h2, .partner-panel h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.35; letter-spacing: -.03em; margin: 4px 0 10px; }
.section-heading p { color: #5e758a; margin: 0; }
.audiences, .services, .prep, .faq { padding: 82px max(24px, calc((100vw - 1180px) / 2)); }
.audiences { background: white; color: #102b48; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience-grid article { padding: 28px; border: 1px solid #d7e5f1; border-radius: 16px; background: linear-gradient(145deg, #fff, #f4f9fe); }
.audience-grid article span { color: #3589dd; font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.audience-grid h3 { margin: 9px 0 7px; font-size: 1.08rem; }
.audience-grid p { margin: 0; color: #60758a; font-size: .88rem; }

.services { background: #eaf4fd; color: #102b48; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-grid article { padding: 24px; background: white; border: 1px solid #d3e3f1; border-radius: 14px; }
.service-grid b { color: #3b9cff; font-size: .73rem; }
.service-grid h3 { margin: 7px 0 5px; font-size: 1rem; }
.service-grid p { margin: 0; color: #62778b; font-size: .84rem; }

.partner-panel { margin: 0; padding: 68px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 42px; background: linear-gradient(125deg, #071b33, #0d4a82); border-block: 1px solid #2d6191; }
.partner-panel > div { max-width: 790px; }
.partner-panel p { color: #bbd2e8; margin: 0; }
.partner-panel a { flex: 0 0 auto; text-decoration: none; color: white; background: #258ff5; border: 1px solid #69b9ff; border-radius: 14px; padding: 14px 22px; font-weight: 800; }

.rescue-panel { margin: 0; padding: 54px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 42px; background: #08213b; border-bottom: 1px solid #2d6191; }
.rescue-panel > div { max-width: 790px; }
.rescue-panel h2 { font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.4; margin: 4px 0 8px; }
.rescue-panel p { color: #b8cfe4; margin: 0; }
.rescue-panel a { flex: 0 0 auto; text-decoration: none; color: white; border: 1px solid #4d91c9; border-radius: 14px; padding: 13px 20px; font-weight: 800; }

.prep { background: #f8fbfe; color: #102b48; }
.prep-items { display: flex; flex-wrap: wrap; gap: 10px; }
.prep-items span { padding: 11px 16px; border-radius: 999px; background: white; color: #244e75; border: 1px solid #cbddeb; font-size: .84rem; }

.faq { background: white; color: #102b48; }
.faq-list { max-width: 900px; }
.faq details { border-top: 1px solid #d7e3ed; }
.faq details:last-child { border-bottom: 1px solid #d7e3ed; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 15px; color: #3289e0; font-size: 1.45rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -7px 0 20px; padding-right: 44px; color: #60758a; font-size: .88rem; }

footer { max-width: 1180px; margin: 0 auto; padding: 32px 24px 42px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .78rem; }
footer strong, footer span { display: block; }
footer strong { color: white; margin-bottom: 4px; }
footer div:last-child { display: flex; gap: 20px; align-items: center; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  main { grid-template-columns: 1fr; padding-top: 50px; }
  .intro { max-width: 680px; }
  .chat-shell { min-height: 580px; }
  .audience-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .partner-panel, .rescue-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header { padding: 10px 16px; }
  .brand small, .phone-link span { display: none; }
  .brand strong { font-size: .88rem; }
  .phone-link strong { font-size: .83rem; }
  main { padding: 38px 16px 56px; gap: 34px; }
  h1 { font-size: 2.25rem; }
  .trust-row { grid-template-columns: 1fr 1fr 1fr; }
  .trust-row strong { font-size: .86rem; }
  .support-list { grid-template-columns: 1fr; }
  .chat-shell { min-height: 620px; border-radius: 18px; }
  .messages { padding: 18px 14px; }
  .composer { padding: 14px; }
  .steps { grid-template-columns: 1fr; }
  .audience-grid, .service-grid { grid-template-columns: 1fr; }
  .process { padding: 58px 20px; }
  .audiences, .services, .prep, .faq { padding: 58px 20px; }
  .partner-panel { padding: 52px 20px; }
  .rescue-panel { padding: 46px 20px; }
  footer, footer div:last-child { flex-direction: column; align-items: flex-start; }
  .action-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
