:root {
  --red: #C8102E;
  --red-dark: #A50C25;
  --pink: #FAE5E5;
  --ink: #1A1A1A;
  --body: #58554F;
  --body-2: #6B685F;
  --charcoal: #4A4A4A;
  --charcoal-dark: #333333;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --border: #E7E5E2;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
ul { list-style: none; }

.icon { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-left: 6px; }
.check-ic {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.check-ic svg { width: 13px; height: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--charcoal-dark); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
header.site .logo img { height: 24px; }
header.site nav.main-nav ul { display: flex; gap: 34px; }
header.site nav.main-nav a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
header.site nav.main-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: none; background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* mobile nav sheet */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: #fff;
  z-index: 190;
  padding: 28px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-nav a { display: block; padding: 14px 4px; font-weight: 700; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-nav .header-actions { flex-direction: column; align-items: stretch; }
.mobile-nav .btn { width: 100%; margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero p.lead { font-size: 16px; color: var(--body); margin-bottom: 34px; max-width: 460px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media img { border-radius: 20px; box-shadow: 0 24px 48px rgba(20,15,10,.14); }

/* ---------- Section generic ---------- */
section { padding: 92px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: 30px; font-weight: 900; color: var(--ink); margin-bottom: 14px; }
.section-head p { font-size: 15.5px; color: var(--body-2); }

/* ---------- Problems ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 44px; }
.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 26px 26px;
  position: relative;
  margin-top: 18px;
}
.num-badge {
  position: absolute;
  top: -18px; left: 24px;
  width: 40px; height: 40px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.problem-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.problem-card p { font-size: 14px; color: var(--body-2); }
.problem-note { text-align: center; font-size: 15px; color: var(--ink); }
.problem-note strong { color: var(--red); }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.reasons h2 { font-size: 27px; font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.reasons > div:first-child > p.lead2 { font-size: 15px; color: var(--body-2); margin-bottom: 34px; }
.reason-item { display: flex; gap: 16px; margin-bottom: 30px; }
.reason-item h4 { font-size: 15.5px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.reason-item p { font-size: 14px; color: var(--body-2); }
.reasons-media img { border-radius: 20px; box-shadow: 0 24px 48px rgba(20,15,10,.14); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.service-visual {
  height: 150px;
  border-radius: 12px;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 22px;
}
.service-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-visual .ic-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
}
.service-visual svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.service-card p { font-size: 13.5px; color: var(--body-2); margin-bottom: 16px; }
.service-tag { font-size: 12.5px; font-weight: 700; color: var(--red); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; align-items: stretch; }
.plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card.featured { border: 2px solid var(--red); box-shadow: 0 20px 40px rgba(200,16,46,.12); }
.plan-tag {
  position: absolute;
  top: -14px; right: 24px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
}
.plan-card h3 { font-size: 19px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.plan-sub { font-size: 13px; color: var(--body-2); margin-bottom: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.plan-price .yen { font-size: 18px; font-weight: 700; color: var(--ink); }
.plan-price .amount { font-size: 34px; font-weight: 900; color: var(--ink); }
.plan-price .per { font-size: 14px; color: var(--body-2); }
.plan-meta { font-size: 12.5px; color: var(--body-2); margin-bottom: 22px; }
.plan-meta b { color: var(--ink); }
.plan-feats { margin-bottom: 26px; flex-grow: 1; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--body-2); margin-bottom: 11px; }
.plan-feats svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--red); }

.compare-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 40px;
}
.compare-box h3 { text-align: center; font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 30px; }
table.compare { width: 100%; border-collapse: collapse; }
table.compare th, table.compare td {
  padding: 14px 16px;
  text-align: center;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
table.compare th:first-child, table.compare td:first-child { text-align: left; color: var(--ink); font-weight: 700; }
table.compare thead th { font-size: 13px; color: var(--body-2); padding-bottom: 16px; }
table.compare thead th.hl { color: var(--red); }
table.compare td.hl, table.compare th.hl { background: var(--pink); }
table.compare tbody tr:last-child td { border-bottom: none; }
.compare-note { margin-top: 28px; font-size: 12px; color: var(--body-2); line-height: 1.9; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 26px 26px;
  position: relative;
  margin-top: 18px;
}
.faq-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 4px 0 14px; }
.faq-card p { font-size: 13.5px; color: var(--body-2); }

/* ---------- Final CTA ---------- */
.final-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.final-cta h2 { font-size: 30px; font-weight: 900; color: var(--ink); margin-bottom: 26px; }
.final-cta .check-list { margin-bottom: 30px; }
.final-cta .check-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); font-weight: 700; margin-bottom: 16px; }
.final-cta-media { border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px rgba(20,15,10,.1); background: var(--bg-alt); }

/* ---------- Document request form ---------- */
.doc-request { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.doc-preview { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.doc-preview h2 { font-size: 19px; font-weight: 900; color: var(--ink); line-height: 1.5; margin-bottom: 14px; }
.doc-badge { display: inline-block; background: var(--pink); color: var(--red); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.doc-preview-img { border-radius: 10px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--border); }
.doc-points-label { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.doc-points { margin-bottom: 20px; }
.doc-points li { font-size: 13.5px; color: var(--body-2); margin-bottom: 8px; }
.doc-preview-note { font-size: 12.5px; color: var(--body-2); line-height: 1.8; padding-top: 18px; border-top: 1px solid var(--border); }

.doc-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.doc-form .field { margin-bottom: 18px; }
.doc-form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.doc-form label .req { color: var(--red); font-weight: 700; font-size: 11px; margin-left: 6px; }
.doc-form input, .doc-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.doc-form input:focus, .doc-form textarea:focus { outline: none; border-color: var(--red); }
.doc-form textarea { resize: vertical; }
.doc-form input.invalid, .doc-form textarea.invalid { border-color: var(--red); }
.doc-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.doc-form .field-error { display: block; min-height: 1em; margin-top: 6px; font-size: 12px; color: var(--red); }
.doc-form-msg { margin-top: 14px; font-size: 13.5px; text-align: center; }
.doc-form-msg.success { color: #1a7a3d; }
.doc-form-msg.error { color: var(--red); }

.consent-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.consent-label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1; cursor: pointer; }
.consent-label span { display: inline-flex; align-items: center; line-height: 1; }
.consent-link { font-weight: 700; color: var(--red); text-decoration: underline; }
.consent-field .field-error { margin-top: 0; }

/* Custom-drawn checkbox: native OS checkboxes render with inconsistent
   internal padding across browsers, which defeats flex centering. Drawing
   it ourselves guarantees identical, centered alignment everywhere. */
.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  top: 4px;
  transition: background .15s ease, border-color .15s ease;
}
.consent-label input[type="checkbox"]:hover { border-color: var(--red); }
.consent-label input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
.consent-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-label input[type="checkbox"]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Privacy policy dialog ---------- */
.privacy-dialog {
  width: min(560px, calc(100% - 48px));
  max-height: min(80vh, 640px);
  margin: auto;
  border: none;
  border-radius: 16px;
  padding: 36px;
  color: var(--body);
}
.privacy-dialog::backdrop { background: rgba(23, 20, 18, .55); }
.privacy-dialog h3 { font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 18px; }
.privacy-dialog .privacy-body { max-height: 400px; overflow-y: auto; margin-bottom: 22px; padding-right: 4px; }
.privacy-dialog h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.privacy-dialog h4:first-child { margin-top: 0; }
.privacy-dialog p { font-size: 13.5px; margin-bottom: 8px; line-height: 1.75; }
.privacy-dialog ul { margin: 0 0 8px; padding-left: 1.3em; }
.privacy-dialog li { font-size: 13.5px; line-height: 1.7; list-style: disc; margin-bottom: 4px; }
.privacy-dialog .privacy-address { font-size: 13.5px; line-height: 1.9; }
.privacy-dialog .privacy-date { margin-top: 18px; font-size: 12px; color: var(--body-2); }
.privacy-dialog a { color: var(--red); text-decoration: underline; }

/* ---------- Company ---------- */
.company-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.company-box h2 { font-size: 22px; font-weight: 900; color: var(--ink); margin-bottom: 20px; }
.company-box .company-logo { height: 32px; width: auto; }
table.profile { width: 100%; border-collapse: collapse; }
table.profile th, table.profile td {
  text-align: left;
  padding: 15px 4px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.profile th { width: 120px; color: var(--body-2); font-weight: 700; white-space: nowrap; }
table.profile td { color: var(--ink); }

/* ---------- Footer ---------- */
footer.site { background: #fff; border-top: 1px solid var(--border); padding: 28px 0; }
footer.site .copyright { font-size: 12px; color: #A6A29A; text-align: center; }

/* Grid items default to min-width:auto, which lets long text/content blow out
   past the track and eat the container's right padding. Force them to shrink. */
.problem-grid > *, .service-grid > *, .pricing-grid > *, .faq-grid > *,
.reasons > *, .final-cta > *, .company-box > *, .doc-request > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  header.site nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }
  header.site .header-actions .btn-dark { padding: 9px 16px; font-size: 13px; }

  .hero { padding-top: 0; }
  .hero .wrap { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
  .hero-media { order: -1; margin-bottom: 32px; }
  .hero-media img { border-radius: 0; box-shadow: none; }
  .hero-copy { padding: 0 24px; }
  .hero h1 { font-size: 30px; }

  .problem-grid, .service-grid, .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
  .reasons, .final-cta, .company-box, .doc-request { grid-template-columns: 1fr; }
  .reasons-media, .final-cta-media { order: -1; }
  .doc-preview { order: -1; }

  .compare-box { padding: 24px 12px; }
  table.compare { table-layout: fixed; width: 100%; }
  table.compare th, table.compare td { padding: 10px 5px; font-size: 11.5px; word-break: break-word; line-height: 1.4; }
  table.compare th:first-child, table.compare td:first-child { width: 24%; font-size: 12px; }

  section { padding: 64px 0; }
  .final-cta { text-align: left; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 26px; }
  .hero-ctas .btn { flex: 1; }
}
