/* コード自習室。色はアイコンの濃紺と黄色に合わせる。グラデーションは使わない */
:root {
  color-scheme: light;
  --navy: #1e2f5d;
  --navy-deep: #15224a;
  --navy-soft: #2b3f73;
  --yellow: #fbbf24;
  --yellow-soft: #fff4d1;
  --ink: #1b2440;
  --muted: #4f5874;
  --paper: #f6f7fb;
  --surface: #ffffff;
  --line: #dde1ec;
  --radius: 20px;
  --width: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-soft); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
h3 { font-size: 1.12rem; }
code { padding: .1em .35em; border-radius: 6px; background: #eceff7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.container { width: min(calc(100% - 40px), var(--width)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 200; padding: 8px 16px; background: #fff; }
.skip:focus { top: 12px; }

/* ヘッダ */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--navy); color: #fff; }
.site-header__inner { min-height: 70px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand small { display: block; margin-top: -4px; color: #c4cce4; font-size: .62rem; font-weight: 600; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 22px; }
.site-nav a { color: #dfe4f3; font-size: .83rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ヒーロー */
.hero { padding: clamp(80px, 9vw, 136px) 0 clamp(80px, 9vw, 120px); background: var(--navy); color: #fff; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(36px, 6vw, 90px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--yellow); }
.hero .eyebrow, .page-hero .eyebrow { color: #c4cce4; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-weight: 900; line-height: 1.15; }
.hero__lead { max-width: 34em; color: #dfe4f3; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 34px; }
.hero__note { width: 100%; color: #c4cce4; font-size: .8rem; }
.hero__art { display: grid; place-items: center; }
.hero__app-icon { width: min(78%, 300px); border-radius: 23%; border: 6px solid rgba(255,255,255,.18); }

/* ボタン。公開まではストアへのリンクを持たない */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 999px; background: var(--yellow); color: var(--navy-deep); font-weight: 800; text-decoration: none; }
.button:hover { background: #f4ae0b; color: var(--navy-deep); }
.button--disabled, .button--disabled:hover { background: #e4e7f0; color: #3d4766; cursor: default; }

/* 節 */
.section { padding: clamp(72px, 8vw, 112px) 0; }
.section--white { background: var(--surface); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head h2 { margin-bottom: 14px; }
.section__head p:last-child { color: var(--muted); font-size: 1.04rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table thead th { background: #eef1f8; color: var(--navy); font-size: .85rem; white-space: nowrap; }
.data-table tbody th { color: var(--navy); white-space: nowrap; }
.data-table tbody td { color: #3a4360; }
.level-num { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; margin-right: 10px; border-radius: 50%; background: var(--yellow); color: var(--navy-deep); font-size: .8rem; font-weight: 900; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.section--white .feature { background: var(--paper); }
.feature__num { display: block; margin-bottom: 18px; color: var(--navy-soft); font-size: .78rem; font-weight: 900; }
.feature__num::after { content: ''; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--yellow); }
.feature h3 { margin-bottom: 10px; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.fine-print { margin-top: 16px; color: var(--muted); font-size: .85rem; }

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-card--featured { border: 2px solid var(--yellow); }
.price-card__label { color: var(--muted); font-size: .85rem; font-weight: 800; }
.price-card__price { display: block; margin: 12px 0 18px; font-size: 2.6rem; line-height: 1.1; font-weight: 900; color: var(--navy); }
.price-card__price small { font-size: .9rem; font-weight: 700; }
.price-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.price-card dt { color: var(--muted); font-size: .88rem; }
.price-card dd { margin: 0; font-weight: 700; }

.recommend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 0; padding: 0; list-style: none; }
.recommend li { padding: 24px; border-top: 3px solid var(--yellow); background: var(--surface); font-weight: 700; }

.final-cta { padding: 72px 0; background: var(--navy); color: #fff; text-align: center; }
.final-cta h2 { margin-bottom: 14px; }
.final-cta p { color: #dfe4f3; }

/* フッタ */
.site-footer { padding: 46px 0 26px; background: var(--navy-deep); color: #d7dcee; }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.site-footer__brand { color: #fff; font-size: 1.25rem; font-weight: 800; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__links a { color: #dfe4f3; font-size: .85rem; text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: #a9b2cf; font-size: .75rem; }

/* サポート・法務 */
.page-hero { padding: 62px 0; background: var(--navy); color: #fff; }
.page-hero h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { max-width: 44em; margin: 0; color: #dfe4f3; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.article-section + .article-section { margin-top: 54px; }
.article-section h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1.5rem; }
.article-section p, .article-section li { color: #36405c; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 10px; font-size: 1rem; }
.faq-item p { margin: 0; }
.faq-item p + p { margin-top: 6px; }
.article-section ul { padding-left: 1.35em; }
.aside-card { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.aside-card h2 { font-size: 1rem; }
.aside-card p { color: var(--muted); font-size: .85rem; }
.aside-card .button { width: 100%; margin: 6px 0; font-size: .85rem; }
.aside-card__links { display: grid; gap: 9px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
.legal { max-width: 820px; }
.legal__meta { margin-bottom: 36px; padding: 18px 20px; border-left: 3px solid var(--yellow); background: var(--surface); color: var(--muted); }
.legal section + section { margin-top: 40px; }
.legal h2 { padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 1.4rem; }
.legal p, .legal li, .legal td { color: #36405c; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li + li { margin-top: 8px; }
.legal .table-wrap { margin-bottom: 18px; }
.legal .data-table td a { word-break: break-all; }

@media (max-width: 900px) {
  .hero__inner, .content-layout { grid-template-columns: 1fr; }
  .hero__art { justify-items: start; }
  .hero__app-icon { width: 180px; }
  .aside-card { position: static; }
}
@media (max-width: 690px) {
  .container { width: min(calc(100% - 32px), var(--width)); }
  .site-header__inner { padding: 12px 0; }
  .site-nav { width: 100%; gap: 6px 16px; }
  .site-nav a { font-size: .76rem; }
  .hero { padding: 64px 0; }
  .feature-grid, .price-grid, .recommend { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .data-table th, .data-table td { padding: 11px 12px; font-size: .84rem; }
  .site-footer__inner { display: block; }
  .site-footer__links { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
