:root {
  --sub-bg: #f4f7f5;
  --sub-paper: #ffffff;
  --sub-ink: #17231f;
  --sub-muted: #66746f;
  --sub-line: rgba(23, 35, 31, .12);
  --sub-deep: #173c43;
  --sub-teal: #4f8f91;
  --sub-mint: #dcece7;
  --sub-plum: #72556f;
  --sub-gold: #c49a5a;
  --sub-serif: "Noto Serif JP", serif;
  --sub-sans: "Noto Sans JP", sans-serif;
  --sub-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sub-bg); color: var(--sub-ink); font-family: var(--sub-sans); line-height: 1.9; font-weight: 300; -webkit-font-smoothing: antialiased; }
body.money-plan {
  --sub-bg: #fbf7f3;
  --sub-ink: #493446;
  --sub-muted: #81777c;
  --sub-line: rgba(73, 52, 70, .13);
  --sub-deep: #2f1f2d;
  --sub-teal: #9e5665;
  --sub-mint: #f3e9e3;
  --sub-plum: #9e5665;
}
body::selection { background: rgba(79, 143, 145, .2); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.subscription-wrap { width: min(calc(100% - 44px), var(--sub-max)); margin-inline: auto; }

.subscription-nav { position: sticky; top: 0; z-index: 50; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px clamp(20px, 5vw, 68px); border-bottom: 1px solid var(--sub-line); background: rgba(244, 247, 245, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.subscription-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.subscription-brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 5px 16px rgba(23, 60, 67, .13); }
.subscription-brand strong, .subscription-brand small { display: block; }
.subscription-brand strong { font-family: var(--sub-serif); font-size: 15px; font-weight: 400; letter-spacing: .08em; line-height: 1.35; }
.subscription-brand small { color: var(--sub-muted); font-size: 8px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.subscription-nav-links { display: flex; align-items: center; gap: 22px; color: var(--sub-muted); font-size: 11px; }
.subscription-nav-links a { text-decoration: none; }
.subscription-nav-links a:hover { color: var(--sub-teal); }
.subscription-nav-links .nav-price { padding: 8px 16px; border-radius: 999px; background: var(--sub-deep); color: #fff; font-weight: 600; }

.eyebrow { margin: 0 0 18px; color: var(--sub-teal); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.subscription-hero { position: relative; overflow: hidden; padding: clamp(78px, 10vw, 132px) 0; isolation: isolate; background: radial-gradient(circle at 12% 18%, rgba(111, 169, 158, .2), transparent 30%), radial-gradient(circle at 90% 25%, rgba(114, 85, 111, .13), transparent 27%), linear-gradient(145deg, #fbfcfb 0%, #f0f6f3 58%, #eef0f3 100%); }
.subscription-hero::before, .subscription-hero::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(79, 143, 145, .13); border-radius: 50%; }
.subscription-hero::before { width: 520px; height: 520px; top: -300px; right: -190px; }
.subscription-hero::after { width: 320px; height: 320px; bottom: -220px; left: 31%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .72fr); gap: clamp(50px, 8vw, 100px); align-items: center; }
.hero-copy h1 { margin: 0; font-family: var(--sub-serif); font-size: clamp(40px, 6.3vw, 74px); font-weight: 300; line-height: 1.48; letter-spacing: .02em; }
.hero-copy h1 em { color: var(--sub-teal); font-style: normal; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: var(--sub-muted); font-size: clamp(14px, 1.5vw, 17px); line-height: 2.15; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions.centered { justify-content: center; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--sub-line); border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { border-color: var(--sub-deep); background: var(--sub-deep); color: #fff; box-shadow: 0 15px 36px rgba(23, 60, 67, .16); }
.button.secondary { background: rgba(255, 255, 255, .72); color: var(--sub-teal); }

.price-card { overflow: hidden; border: 1px solid rgba(23, 60, 67, .12); border-radius: 30px; background: rgba(255, 255, 255, .92); box-shadow: 0 28px 70px rgba(23, 60, 67, .13); }
.price-card-top { position: relative; padding: 30px 34px 20px; }
.plan-mark { position: absolute; right: 28px; top: 22px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--sub-deep); color: #fff; font-size: 28px; font-weight: 300; line-height: 1; }
.price-card-top p { margin: 0; color: var(--sub-muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.price-card-top h2 { margin: 4px 0 0; font-family: var(--sub-serif); font-size: 26px; font-weight: 400; }
.price { display: flex; align-items: baseline; padding: 2px 34px 20px; color: var(--sub-deep); }
.price span { margin-right: 12px; color: var(--sub-muted); font-size: 12px; }
.price strong { font-family: var(--sub-serif); font-size: 67px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.price small { margin-left: 6px; font-size: 15px; font-weight: 600; }
.price-note { margin: 0; padding: 16px 34px; background: var(--sub-mint); color: #3e716b; font-size: 12px; font-weight: 500; line-height: 1.8; }
.price-card ul { display: grid; gap: 10px; margin: 0; padding: 25px 34px 18px; list-style: none; color: #40514b; font-size: 12px; }
.price-card li::before { content: "✓"; margin-right: 10px; color: var(--sub-teal); font-weight: 700; }
.store-note { margin: 0; padding: 0 34px 28px; color: var(--sub-muted); font-size: 9px; line-height: 1.8; }

.principle-section { padding: 0 0 clamp(78px, 10vw, 122px); background: var(--sub-paper); }
.principle-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); transform: translateY(-1px); border-left: 1px solid var(--sub-line); }
.principle-grid article { min-height: 250px; padding: 36px; border-right: 1px solid var(--sub-line); border-bottom: 1px solid var(--sub-line); background: #fff; }
.principle-grid article > span { color: var(--sub-teal); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.principle-grid h2 { margin: 12px 0 2px; font-family: var(--sub-serif); font-size: 25px; font-weight: 400; }
.principle-grid strong, .point-link { color: var(--sub-deep); font-size: 12px; font-weight: 600; }
.point-link { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sub-teal) 45%, transparent); text-underline-offset: 4px; }
.principle-grid p { margin: 20px 0 0; color: var(--sub-muted); font-size: 12px; line-height: 2; }

.compare-section { padding: clamp(82px, 11vw, 142px) 0; background: #f5f7f6; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.compact { margin-bottom: 38px; }
.section-heading h2, .trial-copy h2, .faq-grid h2, .closing-inner h2 { margin: 0; font-family: var(--sub-serif); font-size: clamp(30px, 4.5vw, 50px); font-weight: 300; line-height: 1.6; letter-spacing: .02em; }
.section-heading > p:last-child { max-width: 700px; margin: 22px 0 0; color: var(--sub-muted); font-size: 14px; line-height: 2.1; }
.comparison { overflow-x: auto; border: 1px solid var(--sub-line); border-radius: 25px; background: var(--sub-paper); box-shadow: 0 22px 60px rgba(23, 60, 67, .06); outline-offset: 4px; }
.comparison table { width: 100%; min-width: 660px; border-collapse: collapse; }
.comparison th, .comparison td { padding: 20px 26px; border-bottom: 1px solid var(--sub-line); }
.comparison tr:last-child th, .comparison tr:last-child td { border-bottom: 0; }
.comparison thead th { color: var(--sub-muted); font-size: 12px; font-weight: 600; text-align: center; }
.comparison thead th:first-child { width: 64%; text-align: left; }
.comparison thead .plus-column { color: var(--sub-deep); }
.comparison thead .plus-column span { width: 24px; height: 24px; display: inline-grid; place-items: center; margin-right: 8px; border-radius: 50%; background: var(--sub-deep); color: #fff; font-size: 16px; }
.comparison tbody th { text-align: left; }
.comparison tbody th strong { display: block; font-size: 14px; font-weight: 500; }
.comparison tbody th small { display: block; margin-top: 2px; color: var(--sub-muted); font-size: 10px; font-weight: 400; }
.comparison tbody td { width: 18%; text-align: center; }
.comparison .plus-column { background: rgba(220, 236, 231, .34); }
.available { color: var(--sub-teal); font-size: 20px; font-weight: 600; }
.unavailable { color: #a8b0ad; font-size: 18px; }
.point { color: var(--sub-plum); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; }
.comparison-note { margin: 14px 4px 0; color: var(--sub-muted); font-size: 10px; }
.comparison-note a { color: var(--sub-plum); font-weight: 600; }

.trial-section { padding: clamp(82px, 11vw, 140px) 0; background: var(--sub-deep); color: #fff; }
.trial-grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(42px, 8vw, 100px); align-items: center; }
.trial-copy .eyebrow { color: #93c5bb; }
.trial-copy > p:last-child { max-width: 650px; margin: 24px 0 0; color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 2.15; }
.trial-assurance { padding: clamp(30px, 5vw, 48px); border: 1px solid rgba(255, 255, 255, .15); border-radius: 25px; background: rgba(255, 255, 255, .06); }
.assurance-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--sub-deep); font-size: 20px; font-weight: 700; }
.trial-assurance h3 { margin: 24px 0 0; font-family: var(--sub-serif); font-size: 23px; font-weight: 400; line-height: 1.65; }
.trial-assurance p { margin: 15px 0 0; color: rgba(255, 255, 255, .65); font-size: 12px; line-height: 2; }

.app-section { padding: clamp(82px, 10vw, 126px) 0; background: #fff; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.app-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; min-height: 210px; padding: 32px; border: 1px solid var(--sub-line); border-radius: 24px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 20px 55px rgba(23, 60, 67, .08); }
.app-card.life { background: linear-gradient(135deg, #f4faf8, #edf5f8); }
.app-card.money { background: linear-gradient(135deg, #fdf8f5, #f5ece8); }
.app-card img { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 12px 28px rgba(23, 35, 31, .14); }
.app-card small, .app-card strong { display: block; }
.app-card small { color: var(--sub-muted); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.app-card strong { margin-top: 5px; font-family: var(--sub-serif); font-size: 22px; font-weight: 400; }
.app-card p { margin: 7px 0 0; color: var(--sub-muted); font-size: 11px; line-height: 1.85; }
.app-card b { color: var(--sub-teal); font-size: 10px; font-weight: 600; white-space: nowrap; }
.app-card.money b { color: var(--sub-plum); }

.faq-section { padding: clamp(82px, 10vw, 128px) 0; background: #eef3f1; }
.faq-grid { display: grid; grid-template-columns: .54fr 1fr; gap: clamp(42px, 8vw, 100px); }
.faq-grid h2 { font-size: clamp(30px, 4vw, 44px); }
.faq-list { border-top: 1px solid var(--sub-line); }
.faq-list details { border-bottom: 1px solid var(--sub-line); }
.faq-list summary { position: relative; padding: 23px 42px 23px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 17px; color: var(--sub-teal); font-size: 24px; font-weight: 300; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 42px 24px 0; color: var(--sub-muted); font-size: 12px; line-height: 2; }

.closing-section { padding: clamp(90px, 12vw, 150px) 0; background: linear-gradient(145deg, #fbfcfb, #edf4f1); text-align: center; }
.closing-inner { max-width: 780px; }
.closing-inner .eyebrow { margin-inline: auto; }
.closing-inner > p:not(.eyebrow) { max-width: 660px; margin: 24px auto 32px; color: var(--sub-muted); font-size: 14px; line-height: 2.15; }
.closing-plan-icon { width: 82px; height: 82px; margin: 0 auto 24px; border-radius: 22px; box-shadow: 0 16px 38px rgba(23, 35, 31, .14); }
.subscription-footer { padding: 34px 0; background: #102e34; color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: rgba(255, 255, 255, .48); font-size: 10px; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-inner a { text-decoration: none; }

/* App plan selector */
.selector-main { min-height: calc(100svh - 70px); display: grid; }
.selector-hero { display: grid; align-items: center; padding: clamp(76px, 10vw, 126px) 0; background: radial-gradient(circle at 12% 20%, rgba(79, 143, 145, .16), transparent 28%), radial-gradient(circle at 88% 16%, rgba(114, 85, 111, .14), transparent 26%), #f7f9f8; }
.selector-hero h1 { margin: 0; font-family: var(--sub-serif); font-size: clamp(38px, 6vw, 66px); font-weight: 300; line-height: 1.5; }
.selector-hero > .subscription-wrap > p:last-of-type { max-width: 660px; margin: 22px 0 0; color: var(--sub-muted); font-size: 14px; }
.selector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 46px; }
.selector-card { display: grid; grid-template-columns: 84px 1fr; gap: 24px; min-height: 270px; align-content: center; padding: clamp(28px, 4vw, 42px); border: 1px solid var(--sub-line); border-radius: 28px; text-decoration: none; box-shadow: 0 20px 58px rgba(23, 35, 31, .07); transition: transform .2s ease, box-shadow .2s ease; }
.selector-card:hover { transform: translateY(-3px); box-shadow: 0 26px 68px rgba(23, 35, 31, .11); }
.selector-card.life { background: linear-gradient(135deg, #fff, #eaf3f1); }
.selector-card.money { background: linear-gradient(135deg, #fff, #f3e9e3); }
.selector-card img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 28px rgba(23, 35, 31, .14); }
.selector-card small, .selector-card strong { display: block; }
.selector-card small { color: var(--sub-muted); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.selector-card strong { margin-top: 5px; font-family: var(--sub-serif); font-size: 25px; font-weight: 400; }
.selector-card p { margin: 8px 0 0; color: var(--sub-muted); font-size: 12px; }
.selector-card b { grid-column: 2; color: var(--sub-teal); font-size: 11px; font-weight: 600; }
.selector-card.money b { color: var(--sub-plum); }

@media (max-width: 900px) {
  .hero-grid, .trial-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .price-card { width: min(100%, 520px); }
  .principle-grid { grid-template-columns: 1fr; border-top: 1px solid var(--sub-line); }
  .principle-grid article { min-height: 0; }
  .app-grid { grid-template-columns: 1fr; }
  .selector-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .subscription-wrap { width: min(calc(100% - 30px), var(--sub-max)); }
  .subscription-nav { min-height: 64px; padding-inline: 15px; }
  .subscription-brand img { width: 35px; height: 35px; }
  .subscription-brand strong { font-size: 13px; }
  .subscription-nav-links a:not(.nav-price) { display: none; }
  .subscription-nav-links .nav-price { padding: 8px 12px; font-size: 10px; }
  .subscription-hero { padding: 66px 0 78px; }
  .hero-copy h1 { font-size: clamp(37px, 11vw, 52px); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .price-card-top { padding-inline: 24px; }
  .price { padding-inline: 24px; }
  .price strong { font-size: 58px; }
  .price-note, .price-card ul { padding-inline: 24px; }
  .store-note { padding-inline: 24px; }
  .principle-grid article { padding: 28px; }
  .compare-section { padding-block: 76px; }
  .section-heading { margin-bottom: 34px; }
  .comparison th, .comparison td { padding: 17px 18px; }
  .comparison thead th:first-child { width: 60%; }
  .comparison-note::after { content: " 表は横にスクロールして確認できます。"; }
  .trial-section, .app-section, .faq-section, .closing-section { padding-block: 76px; }
  .app-card { grid-template-columns: 62px 1fr; gap: 18px; padding: 24px; }
  .app-card img { width: 62px; height: 62px; border-radius: 16px; }
  .app-card b { grid-column: 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner nav { justify-content: flex-start; }
  .selector-card { grid-template-columns: 64px 1fr; min-height: 230px; gap: 18px; padding: 26px; }
  .selector-card img { width: 64px; height: 64px; border-radius: 17px; }
}

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