:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --surface-soft: #eef5fb;
  --text: #1f2a44;
  --muted: #697386;
  --primary: #1769aa;
  --primary-dark: #0f4f83;
  --line: #dfe5ec;
  --shadow: 0 24px 70px rgba(31, 42, 68, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-underline-offset: 0.2em; }
.wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--primary); color: #fff; font-size: 17px; transform: rotate(-8deg); } */
nav { display: flex; gap: 26px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--primary); }
.lang-link { color: var(--primary); }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.12fr 0.88fr; align-items: center; gap: 80px; padding-block: 70px 90px; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
.hero h1 { margin: 0; font-size: clamp(46px, 6vw, 72px); line-height: 1.17; letter-spacing: -0.065em; }
.lead { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: 18px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 36px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
a.button:hover { background: var(--primary-dark); transform: translateY(-2px); }
.button-disabled { opacity: 0.78; cursor: default; }
.text-link { font-weight: 700; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif !important;
  font-style: italic;
  letter-spacing: 0.2em;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: auto;
  display: block;
}

.app-preview { position: relative; width: min(390px, 100%); margin-inline: auto; padding: 30px 26px 22px;}
.app-preview img { display: block; width: 100%; max-width: 320px; height: auto; margin-inline: auto; }
/* .app-preview::before { content: ""; position: absolute; width: 230px; height: 230px; top: -100px; right: -80px; border-radius: 50%; background: #d5e8ff; } */
/* .preview-top, .date-card, .preview-nav { position: relative; }
.preview-top { display: flex; align-items: center; justify-content: space-between; }
.preview-brand { font-size: 18px; font-weight: 900; }
.preview-chip { padding: 5px 11px; border-radius: 999px; background: #eaf3fb; color: var(--primary); font-size: 11px; font-weight: 800; }
.preview-label { margin: 50px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.app-preview h2 { position: relative; margin: 0 0 24px; font-size: 29px; }
.date-card { display: grid; gap: 5px; margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.date-card span, .date-card small { color: var(--muted); font-size: 11px; }
.date-card strong { font-size: 15px; }
.date-card.accent { border-color: #b8d9f3; background: #f3f9fe; }
.preview-nav { display: flex; justify-content: space-around; margin: 22px -10px 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.preview-nav span:first-child { color: var(--primary); } */

.feature-section { padding-block: 110px; }
.section-heading { max-width: 680px; margin-bottom: 42px; }
.section-heading h2, .privacy-callout h2, .document-header h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.3; letter-spacing: -0.045em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.72); }
.feature-icon { color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; }
.feature-card h3 { margin: 34px 0 8px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.detail-section, .steps-section, .faq-section { padding-block: 30px 100px; }
.section-heading p:not(.eyebrow) { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-grid h3 { margin: 0 0 8px; font-size: 19px; }
.detail-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { min-height: 160px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.72); counter-increment: steps; }
.step-list li::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 28px; color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; }
.step-list strong { display: block; margin-bottom: 8px; font-size: 19px; }
.step-list span { display: block; color: var(--muted); font-size: 14px; }
.faq-section { padding-top: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.faq-list summary { cursor: pointer; padding: 20px 24px; color: var(--text); font-weight: 800; }
.faq-list p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 14px; }

.privacy-callout { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 110px; padding: 54px; border-radius: 32px; background: var(--text); color: #fff; }
.privacy-callout .eyebrow { color: #7fc0f1; }
.privacy-callout p:last-child { max-width: 680px; margin-bottom: 0; color: #c8d0dc; }
.button-secondary { flex: 0 0 auto; background: #fff; color: var(--text); }
a.button-secondary:hover { background: #eaf3fb; }

.document-main { max-width: 860px; padding-block: 90px 120px; }
.document-header { margin-bottom: 42px; }
.document-header > p:last-child { color: var(--muted); }
.document-card, .contact-card, .support-note { padding: clamp(26px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.document-card > p:first-child { margin-top: 0; font-size: 17px; font-weight: 700; }
.document-card section { padding-top: 30px; border-top: 1px solid var(--line); margin-top: 30px; }
.document-card .document-section-first { padding-top: 0; border-top: 0; margin-top: 0; }
.document-card h2, .contact-card h2, .support-note h2 { margin: 0 0 10px; font-size: 19px; }
.document-card h3 { margin: 26px 0 10px; font-size: 16px; }
.document-card p { margin-bottom: 0; color: #475267; }
.document-card ul { margin-bottom: 0; padding-left: 1.3em; color: #475267; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.document-card table { width: 100%; border-collapse: collapse; min-width: 360px; color: #475267; }
.document-card th, .document-card td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.document-card th { background: var(--surface-soft); color: var(--text); font-size: 14px; }
.document-card tr:last-child td { border-bottom: 0; }

.contact-main { max-width: 860px; }
.contact-stack { display: grid; gap: 22px; }
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; }
.contact-card p { margin: 0 0 24px; color: var(--muted); }
.contact-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-soft); color: var(--primary); font-size: 28px; font-weight: 800; }
.button-secondary-contact { background: var(--text); }
a.button-secondary-contact:hover { background: #111a2d; }
.support-note { margin-top: 22px; background: #fffdf8; }
.support-note ul { padding-left: 1.3em; color: #475267; }
.caution { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: #fff2df; color: #704713; font-size: 13px; font-weight: 700; }

.contact-form-main { max-width: 760px; padding-block: 64px 110px; }
.contact-form-header { margin-bottom: 34px; }
.contact-form-header h1, .contact-complete h1 { margin: 0; font-size: clamp(32px, 6vw, 48px); line-height: 1.3; letter-spacing: -0.045em; }
.contact-form-header > p:not(.eyebrow) { color: var(--muted); }
.contact-privacy-lead { padding: 14px 16px; border-radius: 14px; background: var(--surface-soft); color: var(--text) !important; font-size: 14px; font-weight: 700; }
.contact-form { display: grid; gap: 24px; }
.contact-fieldset, .contact-field, .contact-upload { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.contact-fieldset { min-width: 0; }
.contact-fieldset legend { padding: 0 8px; font-size: 17px; font-weight: 800; }
.required-badge, .optional-badge { display: inline-flex; vertical-align: 2px; margin-left: 5px; padding: 2px 7px; border-radius: 999px; background: #e8f3fc; color: var(--primary); font-size: 11px; font-weight: 800; }
.optional-badge { background: #f0f1f3; color: var(--muted); }
.contact-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-choice-grid label, .contact-radio-stack label { cursor: pointer; }
.contact-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.contact-choice-grid span { display: grid; min-height: 48px; place-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; color: #475267; font-size: 14px; font-weight: 800; text-align: center; transition: 150ms ease; }
.contact-choice-grid input:checked + span { border-color: var(--primary); background: var(--surface-soft); color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.contact-field { position: relative; display: grid; gap: 9px; color: var(--text); font-size: 17px; font-weight: 800; }
.contact-field small { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.65; }
.contact-field textarea, .contact-field input[type="email"] { width: 100%; border: 1px solid #ccd4de; border-radius: 14px; background: #fff; color: var(--text); font: inherit; font-size: 16px; font-weight: 500; line-height: 1.6; outline: 0; }
.contact-field textarea { resize: vertical; min-height: 180px; padding: 15px; }
.contact-field input[type="email"] { min-height: 50px; padding: 10px 14px; }
.contact-field textarea:focus, .contact-field input[type="email"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23,105,170,.12); }
.contact-counter { color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; }
.contact-counter b { font-weight: 600; }
.contact-upload h2 { margin: 0; font-size: 17px; }
.contact-upload > div p { margin: 5px 0 18px; color: var(--muted); font-size: 13px; }
.contact-upload-button { display: inline-flex; cursor: pointer; }
.contact-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.contact-upload-button span { display: inline-flex; min-height: 46px; align-items: center; padding: 0 18px; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary); font-size: 14px; font-weight: 800; }
.contact-limit { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.contact-file-list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.contact-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); color: #475267; font-size: 13px; }
.contact-file-list button { border: 0; background: transparent; color: var(--primary); font-weight: 800; }
.reply-fieldset { display: grid; gap: 18px; }
.contact-radio-stack { display: grid; gap: 12px; }
.contact-radio-stack label { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.contact-radio-stack input { width: 20px; height: 20px; accent-color: var(--primary); }
.contact-email { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.contact-device-note { margin: 0; padding: 0 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.contact-error { margin: 0; padding: 13px 15px; border-radius: 12px; background: #fff0ef; color: #a52d28; font-size: 14px; font-weight: 700; }
.contact-submit { min-height: 56px; border: 0; border-radius: 18px; background: var(--primary); color: #fff; font: inherit; font-size: 16px; font-weight: 800; box-shadow: 0 12px 24px rgba(23,105,170,.2); }
.contact-submit:disabled { opacity: .65; }
.contact-honeypot { position: absolute; left: -9999px; }
.contact-complete { padding: 64px 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); text-align: center; outline: 0; }
.contact-complete-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 22px; place-items: center; border-radius: 50%; background: #e7f7ed; color: #168044; font-size: 28px; font-weight: 900; }
.contact-complete p { color: var(--muted); }
.contact-reference { margin-top: 28px; font-size: 13px; }
.app-contact .contact-site-chrome { display: none; }
.app-contact .contact-form-main { padding-top: 28px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,0.45); }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-inner a { color: var(--muted); text-decoration: none; }

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  nav { gap: 14px; }
  nav a { font-size: 12px; }
  /* .brand { font-size: 19px; }
  .brand-mark { width: 30px; height: 30px; } */
  .hero { grid-template-columns: 1fr; gap: 60px; padding-block: 70px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; text-align: left; }
  .actions { justify-content: center; }
  .feature-section { padding-block: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .detail-section, .steps-section, .faq-section { padding-block: 10px 80px; }
  .detail-grid, .step-list { grid-template-columns: 1fr; }
  .privacy-callout { align-items: flex-start; flex-direction: column; padding: 36px 28px; }
  .document-main { padding-block: 64px 90px; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 26px; }
}

@media (max-width: 440px) {
  .wrap, .site-header { width: min(100% - 28px, 1100px); }
  nav a:first-child:not(.lang-link) { display: none; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 16px; }
  .app-preview { border-radius: 30px; }
  .document-card, .contact-card, .support-note { border-radius: 20px; }
  .contact-form-main { width: min(100% - 28px, 760px); padding-block: 36px 70px; }
  .contact-form-header h1 { font-size: 31px; }
  .contact-fieldset, .contact-field, .contact-upload { padding: 20px; border-radius: 18px; }
  .contact-choice-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .contact-choice-grid span { min-height: 52px; padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
