:root {
  --bg-main: #fef6f0;
  --accent: #ed6c00;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(17, 24, 39, 0.1);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
  --radius: 14px;
  --container: 1100px;
  --focus: rgba(237, 108, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  background: linear-gradient(180deg, var(--bg-main) 0%, #fff 70%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
  border-radius: 10px;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  width: 44px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  display: inline-block;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition:
    transform 160ms ease,
    top 160ms ease,
    opacity 160ms ease;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.site-header.is-open .menu-icon {
  background: transparent;
}

.site-header.is-open .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.logo {
  font-weight: bold;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.header-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  padding-left: 0;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.header-nav a:hover {
  color: var(--accent);
  background: rgba(237, 108, 0, 0.08);
}

/* ===== Section ===== */
main {
  margin-top: 72px;
}

section {
  padding: 80px 16px;
}

.bg-main {
  background: var(--bg-main);
}

.bg-white {
  background: var(--white);
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(237, 108, 0, 0.16), rgba(254, 246, 240, 0));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: 18px;
  padding-bottom: 18px;
}

h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.9;
  text-wrap: pretty;
}

/* 長文の行幅を適度に制限（読みやすさ優先） */
.container > p {
  max-width: 72ch;
}

/* カード表示の段落は幅制限しない */
#strengths .container > p {
  max-width: none;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin-bottom: 8px;
}

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(237, 108, 0, 0.25);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(237, 108, 0, 0.28);
  filter: brightness(1.02);
}

.button:active {
  transform: translateY(0);
}

.cta {
  margin-top: 18px;
}

/* ===== Feature Cards ===== */
.feature-grid {
  list-style: none;
  padding-left: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid li {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.feature-grid li h1 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 0;
}

.feature-grid li p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== Price ===== */
.price-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

.price-card.is-pro {
  border-color: rgba(237, 108, 0, 0.45);
}

.price-label {
  font-weight: 700;
  margin-bottom: 4px;
}

.price-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.price-features {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
}

.price-features li {
  margin-bottom: 4px;
}

.price-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Strengths ===== */
#strengths .container p {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

#strengths .container p span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  font-weight: 700;
}

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

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 108, 0, 0.14);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.faq-question {
  display: block;
  margin-block: 4px;
  line-height: 1.6;
}

.faq-answer {
  margin: 0;
  padding: 0 18px 18px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.faq-badge.is-answer {
  background: rgba(31, 41, 55, 0.08);
  color: var(--text);
}

/* ===== Static Pages ===== */
.terms-page,
.policy-page,
.company-page,
.legal-page {
  padding: 80px 16px;
}

.terms-header,
.policy-header,
.company-header,
.legal-header {
  margin-bottom: 24px;
}

.terms-header,
.policy-header {
  margin-bottom: 28px;
}

.terms-meta,
.policy-meta,
.company-meta,
.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.terms-card,
.policy-card,
.company-card,
.legal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}

.terms-card,
.policy-card {
  margin-bottom: 14px;
}

.terms-card h2,
.policy-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.terms-card p,
.policy-card p {
  margin-bottom: 10px;
  color: var(--muted);
}

.terms-list,
.policy-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
}

.terms-list li,
.policy-list li {
  margin-bottom: 8px;
}

.company-table,
.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td,
.legal-table th,
.legal-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.company-table th,
.legal-table th {
  color: var(--text);
  font-size: 14px;
}

.company-table td,
.legal-table td {
  color: var(--muted);
  font-size: 15px;
}

.company-table th {
  width: 180px;
}

.legal-table th {
  width: 220px;
}

/* ===== Footer ===== */
.site-footer {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--border);
  padding: 24px 16px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.copyright {
  font-size: 12px;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-header.is-open .header-nav {
    display: block;
  }

  .header-nav ul {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }

  .header-nav a {
    padding: 10px 12px;
  }

  section {
    padding: 64px 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .faq-item summary {
    align-items: flex-start;
  }

  .company-table th {
    width: 120px;
  }

  .legal-table th {
    width: 130px;
  }
}

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