:root {
  --navy: #1B3B63;
  --navy-soft: #2C4E7C;
  --bg: #FAFAF9;
  --card-bg: #FFFFFF;
  --border: #E4E4E1;
  --text: #22252A;
  --text-muted: #5B6069;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--navy);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

header.site-header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-wide img.logo {
  height: 36px;
  width: auto;
}

.brand-compact {
  display: none;
}

.logo-compact {
  height: 28px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary::after {
  content: "▾";
  font-size: 13px;
}

.lang-switch:hover summary,
.lang-switch[open] summary {
  color: var(--navy);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  text-align: left;
  white-space: nowrap;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(27, 59, 99, 0.1);
  z-index: 20;
}

.lang-menu a,
.lang-menu .current {
  padding: 6px 10px 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
}

.lang-menu .check {
  display: inline-block;
  width: 16px;
  font-size: 12px;
  color: var(--navy);
}

.lang-menu a:hover {
  background: var(--bg);
}

.lang-menu .current {
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--navy);
}

.hero {
  padding: 64px 0 48px;
}

.hero h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--navy);
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0;
}

section.products {
  padding: 24px 0 80px;
}

section.products h2 {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 20px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(27, 59, 99, 0.08);
}

.product-card img.icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.product-card .body h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--navy);
}

.product-card .body p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.product-card .cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.features {
  padding: 8px 0 56px;
}

.features .container {
  position: relative;
}

.feature-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feature-scroll::-webkit-scrollbar {
  display: none;
}

.feature-card {
  /* 幅170pxを基本に、横に余白があるときだけ均等に広がる(カードが少ないとき右側が空かないように)。画面が狭いときは170pxのまま横スクロールになる */
  flex: 1 0 170px;
  scroll-snap-align: start;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
}

.feature-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-muted);
  font-size: 32px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  z-index: 5;
  transition: color 0.15s ease;
}

.scroll-arrow:hover {
  color: var(--navy);
}

.scroll-arrow.left {
  left: 0;
}

.scroll-arrow.right {
  right: 0;
}

.feature-note {
  margin: 16px 0 0;
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.feature-note + .faq-link {
  margin-top: 8px;
}

.faq-link {
  margin: 24px 0 0;
  padding: 0 16px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}

.faq-link a {
  text-decoration: none;
}

.faq-link a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.button:hover {
  background: var(--navy-soft);
}

.button-small {
  padding: 8px 18px;
  font-size: 13px;
  min-width: 108px;
  text-align: center;
}

.kenpan-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.kenpan-header img.icon {
  width: 48px;
  height: 48px;
}

.kenpan-header span {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.kenpan-header .badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
}

.legal {
  padding: 48px 0 72px;
}

.legal h1 {
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 32px;
}

.legal-table {
  margin: 0;
}

.legal-table dt {
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
  margin: 0;
  padding: 16px 0 4px;
  border-top: 1px solid var(--border);
}

.legal-table dt:first-child {
  border-top: none;
}

.legal-table dd {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text);
}

.legal-table dd ul {
  margin: 0;
  padding-left: 1.4em;
}

.legal-table dd li + li {
  margin-top: 6px;
}

.contact {
  padding: 48px 0 72px;
}

/* 本文の幅を入力欄と同じ560pxにそろえ、ページ中央に置く(560 + 左右の余白24pxずつ) */
.contact .container {
  max-width: 608px;
}

.contact h1 {
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 32px;
}

.contact h2 {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 12px;
}

.faq {
  max-width: 560px;
  margin: 0 0 48px;
  border-bottom: 1px solid var(--border);
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--text-muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  color: var(--navy);
}

.faq details p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.contact p.lead {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.contact p.lead:has(+ .faq-link) {
  margin-bottom: 8px;
}

.contact .faq-link {
  max-width: 560px;
  margin: 0 0 24px;
  padding: 0;
}

.contact .faq + p.lead {
  margin-top: -24px;
}

.contact-form {
  max-width: 560px;
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 59, 99, 0.12);
}

.contact-form .field-extra {
  position: absolute;
  left: -9999px;
}

.contact-form .turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-bottom: 20px;
}

.contact-form button.button {
  display: block;
  margin: 0 auto;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.contact-form button.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
  text-align: center;
}

.form-status {
  font-size: 14px;
  color: var(--text-muted);
  margin: 16px 0 0;
  min-height: 1.7em;
  text-align: center;
}

.form-status.success {
  color: var(--navy);
  font-weight: 600;
}

.form-status.error {
  color: #B3261E;
}

footer.site-footer {
  padding: 24px 0 48px;
  margin-top: auto;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

footer.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 16px;
}

footer.site-footer .footer-nav a {
  color: #fff;
  text-decoration: none;
}

footer.site-footer .footer-nav a:hover {
  text-decoration: underline;
}

footer.site-footer .footer-copyright {
  color: #fff;
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 22px;
  }
  .product-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .button-small {
    padding: 6px 14px;
    font-size: 12px;
    min-width: 92px;
  }
  .brand-wide {
    display: none;
  }
  .brand-compact {
    display: flex;
  }
}
