:root {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-primary: #005a9c;
  --accent-hover: #00467a;
  --accent-secondary: #c2410c;
  --accent-soft: #eff6ff;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--accent-primary); color: #fff;
  padding: 8px 16px; z-index: 1000; transition: top 0.2s; font-weight: 700;
}
.skip-link:focus { top: 0; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 64px;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color); z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand-logo img { height: 38px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-badge {
  font-size: 0.88rem; font-weight: 700; color: var(--accent-primary);
  background: var(--accent-soft); padding: 6px 14px; border-radius: var(--radius-full);
}
.btn-cta-nav {
  background: var(--accent-primary); color: #fff !important; font-weight: 700;
  font-size: 0.92rem; padding: 9px 20px; border-radius: var(--radius-full);
}
.btn-cta-nav:hover { background: var(--accent-hover); text-decoration: none; }

/* Hero Section (640px fold guaranteed on mobile) */
.hero-section {
  padding-top: 84px; padding-bottom: 44px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border-color);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b; font-size: 0.85rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.hero-h1 {
  font-size: clamp(1.65rem, 3.8vw, 2.35rem); font-weight: 800; line-height: 1.3;
  color: #0b192c; margin-bottom: 14px; letter-spacing: -0.02em;
}
.hero-lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.hero-cta-box { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-primary-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent-primary); color: #fff !important; font-size: 1.15rem; font-weight: 800;
  padding: 16px 32px; border-radius: var(--radius-md); box-shadow: 0 6px 18px rgba(0, 90, 156, 0.25);
  transition: transform 0.1s ease;
}
.btn-primary-hero:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-2px); }
.hero-note { font-size: 0.82rem; color: var(--text-muted); }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 16px; border-top: 1px dashed var(--border-color); padding-top: 14px; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.trust-item svg { color: #16a34a; flex-shrink: 0; }
.hero-media-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #cbd5e1; aspect-ratio: 16/9;
}
.hero-media-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag-overlay {
  position: absolute; bottom: 12px; left: 12px; background: rgba(15, 23, 42, 0.88);
  color: #fff; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600;
}

/* Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--border-color); }
.section-light { background-color: var(--bg-surface); }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 48px auto; }
.section-badge {
  display: inline-block; color: var(--accent-primary); font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--text-main); line-height: 1.35; margin-bottom: 14px; }
.section-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }

/* Grid & Cards */
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.challenge-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm);
}
.challenge-num { font-size: 1.6rem; font-weight: 800; color: #ef4444; margin-bottom: 8px; }
.challenge-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.challenge-card p { font-size: 0.92rem; color: var(--text-muted); }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }
.split-image-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3/2; }
.split-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.split-content h3 { font-size: 1.55rem; font-weight: 800; margin-bottom: 16px; line-height: 1.35; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.feature-list svg { color: var(--accent-primary); flex-shrink: 0; margin-top: 3px; }

/* Steps */
.steps-wrapper { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.step-item {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 18px 20px; display: flex; gap: 18px;
}
.step-digit {
  width: 42px; height: 42px; background: var(--accent-primary); color: #fff;
  font-weight: 800; font-size: 1.15rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.step-body p { font-size: 0.92rem; color: var(--text-muted); }

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm);
}
.bento-icon {
  width: 46px; height: 46px; background: var(--accent-soft); color: var(--accent-primary);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.bento-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.bento-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-surface); }
.custom-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; }
.custom-table th, .custom-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.custom-table th { background: #f1f5f9; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.custom-table tr:last-child td { border-bottom: none; }
.badge-allowed { background: #dcfce7; color: #15803d; padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }
.badge-restricted { background: #fee2e2; color: #b91c1c; padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 22px;
  font-size: 1.02rem; font-weight: 700; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-question:hover { background: #f8fafc; }
.faq-icon { font-size: 1.3rem; transition: transform 0.2s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 22px 18px 22px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; border-top: 1px solid #f1f5f9; }
.faq-item.active .faq-answer { display: block; }

/* Operator & Form */
.operator-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 32px; max-width: 860px; margin: 0 auto;
}
.operator-detail-grid { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; font-size: 0.95rem; }
.operator-term { font-weight: 700; color: var(--text-main); }
.operator-desc { color: var(--text-muted); }

.form-section { background: #f1f5f9; padding: 80px 0; }
.form-card-wrap {
  background: var(--bg-surface); max-width: 760px; margin: 0 auto;
  border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
}
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h3 { font-size: 1.55rem; font-weight: 800; margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.form-label .req { color: #dc2626; margin-left: 4px; font-size: 0.85rem; }
.form-control {
  width: 100%; padding: 13px 15px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
}
.form-control:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-help { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.statutory-notice-box {
  background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px;
}
.statutory-notice-box h5 { font-size: 0.88rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.92rem; font-weight: 600; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-primary); flex-shrink: 0; }
.btn-submit {
  width: 100%; background: var(--accent-primary); color: #fff; font-size: 1.15rem; font-weight: 800;
  padding: 16px; border: none; border-radius: var(--radius-md); cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover:not(:disabled) { background: var(--accent-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Modal Review */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.75); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff; width: 100%; max-width: 600px; border-radius: var(--radius-md);
  padding: 30px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-content h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; border-bottom: 2px solid var(--accent-primary); padding-bottom: 8px; }
.review-item { margin-bottom: 12px; font-size: 0.95rem; }
.review-label { font-weight: 700; color: var(--text-muted); font-size: 0.85rem; }
.review-value { color: var(--text-main); font-weight: 600; word-break: break-all; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-modal-back { flex: 1; background: #e2e8f0; color: var(--text-main); border: none; padding: 12px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }
.btn-modal-confirm { flex: 1; background: var(--accent-primary); color: #fff; border: none; padding: 12px; border-radius: var(--radius-sm); font-weight: 800; cursor: pointer; }

/* Inline Submission Status */
.submission-status {
  display: none; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-md);
  padding: 32px; text-align: center;
}
.submission-status.active { display: block; }
.status-icon {
  width: 56px; height: 56px; background: #22c55e; color: #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 16px;
}
.submission-status h4 { font-size: 1.4rem; font-weight: 800; color: #15803d; margin-bottom: 10px; }
.submission-status p { font-size: 0.98rem; color: #166534; line-height: 1.7; margin-bottom: 12px; }

/* Footer & Cookie Banner */
.site-footer { background: #0b192c; color: #cbd5e1; padding: 56px 0 32px 0; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h4 { font-size: 1.3rem; color: #fff; font-weight: 800; margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: #64748b; }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; width: 100%; background: #0f172a; color: #fff;
  padding: 16px 24px; z-index: 9999; border-top: 1px solid #334155; display: none;
}
.cookie-banner.active { display: block; }
.cookie-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-text { font-size: 0.85rem; line-height: 1.6; color: #e2e8f0; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--accent-primary); color: #fff; border: none; padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }
.btn-cookie-reject { background: #334155; color: #cbd5e1; border: none; padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }

/* Legal Page Common */
.legal-page-header { padding-top: 100px; padding-bottom: 40px; background: #fff; border-bottom: 1px solid var(--border-color); }
.legal-page-content { padding: 56px 0; }
.legal-article { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 40px; max-width: 880px; margin: 0 auto; }
.legal-article h2 { font-size: 1.35rem; font-weight: 800; margin: 26px 0 10px 0; border-left: 4px solid var(--accent-primary); padding-left: 12px; }
.legal-article p { margin-bottom: 14px; font-size: 0.95rem; color: #334155; line-height: 1.85; }
.legal-article ul, .legal-article ol { margin-bottom: 18px; padding-left: 24px; }
.legal-article li { margin-bottom: 6px; font-size: 0.95rem; color: #334155; }

/* Mobile Rules (640px fold guaranteed) */
@media (max-width: 768px) {
  .site-header { height: 58px; }
  .brand-logo img { height: 32px; }
  .header-badge { display: none; }
  .btn-cta-nav { padding: 7px 14px; font-size: 0.85rem; }
  .hero-section { padding-top: 76px; padding-bottom: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-h1 { font-size: clamp(1.48rem, 5.2vw, 1.85rem); line-height: 1.28; margin-bottom: 10px; }
  .hero-lead { font-size: 0.92rem; line-height: 1.5; margin-bottom: 14px; }
  .hero-media-wrap { max-height: 220px; aspect-ratio: 16/9; }
  .btn-primary-hero { padding: 14px 20px; font-size: 1rem; min-height: 48px; }
  .split-grid, .split-grid.reverse { grid-template-columns: 1fr; gap: 28px; direction: ltr; }
  .bento-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .operator-detail-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .operator-term { margin-top: 10px; }
  .form-card-wrap { padding: 24px 16px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}