/* ---------------------------------------------------------------------------
 * パスモリ (PasMori) — LP & 法務文書 共通スタイル
 * Design language: watercolor mint-green + deep-navy accents,
 * generous spacing, senior-friendly typography (WCAG AA+).
 * --------------------------------------------------------------------------- */

:root {
  --mint: #00C9A7;
  --mint-deep: #00A98C;
  --mint-soft: #9FE8D6;
  --mint-pale: #DFF4EE;
  --navy: #1A3A5C;
  --navy-deep: #12293F;
  --ink: #2D3748;
  --ink-soft: #4A6A62;
  --cream: #F8FAFB;
  --white: #FFFFFF;
  --error: #E53E3E;
  --shadow: 0 4px 16px rgba(26, 58, 92, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html {
  font-size: 18px; /* baseline for elderly accessibility */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--mint-deep); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.4rem; margin: 0 0 0.5em; }
h2 { font-size: 1.8rem; margin: 2em 0 0.8em; }
h3 { font-size: 1.3rem; margin: 1.6em 0 0.6em; }

p { margin: 0.6em 0; }

img { max-width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------------------
 * Layout helpers
 * --------------------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

/* ---------------------------------------------------------------------------
 * Header / Nav
 * --------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--mint);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-weight: 700; font-size: 1.1rem; }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links a:hover { color: var(--mint); }

/* ---------------------------------------------------------------------------
 * Hero
 * --------------------------------------------------------------------------- */

.hero {
  padding: 96px 0 80px;
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, #0E7E6C 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { font-size: 3rem; line-height: 1.2; color: var(--white); }
.hero-copy p { color: rgba(255, 255, 255, 0.92); }
.hero-copy p.lead {
  font-size: 1.25rem;
  color: var(--mint-soft);
  margin-top: 0.6em;
}
.hero-img { text-align: center; }
.hero-img img {
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  max-width: 420px;
  margin: 0 auto;
}
.badges {
  display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap;
}
.badge-store {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}
.badge-store.disabled {
  background: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.75;
}
.hero .badge-store {
  background: var(--mint);
  color: var(--navy-deep);
}
.hero .badge-store.disabled {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Section headings
 * --------------------------------------------------------------------------- */

.section-title {
  text-align: center; margin-bottom: 12px;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--mint);
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-lead {
  text-align: center; color: var(--ink-soft);
  font-size: 1.05rem; margin: 0 auto 48px; max-width: 680px;
}

/* ---------------------------------------------------------------------------
 * Features grid
 * --------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 58, 92, 0.05);
}
.feature .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--mint-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------
 * Steps
 * --------------------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700; font-size: 1.2rem;
}
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------
 * Pricing
 * --------------------------------------------------------------------------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
}
.price-card.recommended { border-color: var(--mint); }
.price-card .ribbon {
  position: absolute; top: -12px; right: 24px;
  background: var(--mint); color: var(--white);
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700;
}
.price-card h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--navy); }
.price-card .amount {
  font-size: 2.2rem; font-weight: 700; color: var(--ink);
  margin: 12px 0 4px;
}
.price-card .amount small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul {
  list-style: none; padding: 0; margin: 20px 0 0;
}
.price-card li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--ink-soft);
}
.price-card li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  color: var(--mint); font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * FAQ
 * --------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: 0;
  font-size: 1.4rem; color: var(--mint);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------
 * CTA
 * --------------------------------------------------------------------------- */

.cta {
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 40%, var(--mint-deep) 100%);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 56px 24px;
}
.cta h2 { color: var(--white); margin-top: 0; }
.cta p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; }
.cta .badge-store { background: var(--white); color: var(--navy); }
.cta .badge-store.disabled { background: rgba(255,255,255,0.6); color: var(--navy); }

/* ---------------------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
}
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 24px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
 * Legal document pages
 * --------------------------------------------------------------------------- */

.doc {
  padding: 60px 0 100px;
}
.doc h1 { font-size: 2rem; margin-bottom: 8px; }
.doc .doc-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(26, 58, 92, 0.12);
  margin-bottom: 32px;
}
.doc h2 {
  margin-top: 2.4em;
  padding-top: 12px;
  font-size: 1.35rem;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.doc th, .doc td {
  padding: 10px 12px;
  border: 1px solid rgba(26, 58, 92, 0.12);
  text-align: left;
  vertical-align: top;
}
.doc th {
  background: var(--mint-pale);
  font-weight: 700;
}
.doc blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  background: #FFF8E1;
  border-left: 4px solid #F59E0B;
  border-radius: var(--radius-sm);
  color: #7C4A03;
}
.doc code {
  background: var(--mint-pale);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------------------- */

@media (max-width: 860px) {
  html { font-size: 17px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2.2rem; }
  .hero-img img { max-width: 240px; }
  .site-header .container { flex-direction: column; gap: 12px; }
  .nav-links { gap: 16px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .site-footer .container { grid-template-columns: 1fr; }
}
