/* ============================================================
   GOOD517 AI Academy — style.css
   テーマ「オーロラ」 · 藍 + 菫 · 丸み · 明るい背景のみ
   見出し: Zen Kaku Gothic Antique (subset) / 数字: Sora (subset)
   接頭辞: g5-
   ============================================================ */

@font-face {
  font-family: 'Zen Kaku Gothic Antique';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/zen-kaku-gothic-antique-700-subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-600-subset.woff2') format('woff2');
}

:root {
  --bg: #f7f6ff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #efedfd;
  --surface-3: #f1f0ff;
  --border: #e0ddf5;
  --border-soft: #ece9fb;

  --indigo: #4f46e5;
  --indigo-deep: #4338ca;
  --violet: #7c3aed;
  --violet-soft: #8b5cf6;
  --mint: #0e9488;

  --text: #1e1b3a;
  --text-muted: #4a4668;
  --text-dim: #615d87;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(40, 30, 90, .05);
  --shadow-md: 0 14px 40px rgba(60, 46, 130, .10);
  --shadow-soft: 0 6px 22px rgba(60, 46, 130, .07);

  --wrap: 1180px;
  --font-head: 'Zen Kaku Gothic Antique', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', YuGothic, Meiryo, 'Noto Sans JP', sans-serif;
  --font-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', YuGothic, Meiryo, 'Noto Sans JP', sans-serif;
  --font-accent: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; margin: 0 0 .5em; letter-spacing: .01em; color: var(--text); }
h1, h2 { text-wrap: balance; }
[id] { scroll-margin-top: 96px; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.26; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--text); font-weight: 700; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

.g5-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.g5-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.g5-skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--indigo); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0; }
.g5-skip:focus { left: 0; }

.g5-ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* 装飾のソフトグロー背景 */
.g5-glow { position: relative; background-color: var(--bg); overflow: hidden; }
.g5-glow::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42rem 28rem at 12% -8%, rgba(124, 58, 237, .13), transparent 60%),
    radial-gradient(40rem 26rem at 96% 6%, rgba(79, 70, 229, .12), transparent 62%);
}
.g5-glow > * { position: relative; z-index: 1; }

/* ---- 広告表示バー ---- */
.g5-adbar { background: #ece9fb; border-bottom: 1px solid var(--border); color: #413a6e; font-size: .78rem; text-align: center; padding: .45rem 20px; }
.g5-adbar b { color: var(--violet); font-family: var(--font-accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-right: .5rem; font-size: .72rem; }

/* ---- ヘッダー ---- */
.g5-header { position: sticky; top: 0; z-index: 200; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.g5-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.g5-logo { display: inline-flex; align-items: center; min-height: 44px; }
.g5-logo img { height: 32px; width: auto; }
.g5-menu { display: flex; align-items: center; gap: 1.7rem; }
.g5-menu a { color: var(--text-muted); font-size: .93rem; font-weight: 700; font-family: var(--font-head); }
.g5-menu a:hover { color: var(--indigo); text-decoration: none; }
.g5-burger { display: none; }

/* ---- ボタン ---- */
.g5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; min-height: 48px; line-height: 1.1; text-decoration: none;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.g5-btn:hover { text-decoration: none; transform: translateY(-2px); }
.g5-btn--primary { background: var(--indigo); color: #fff; border-color: var(--indigo); box-shadow: 0 8px 20px rgba(79, 70, 229, .25); }
.g5-btn--primary:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); box-shadow: 0 12px 26px rgba(79, 70, 229, .32); }
.g5-btn--ghost { background: #fff; color: var(--indigo); border-color: var(--border); }
.g5-btn--ghost:hover { background: var(--surface-3); border-color: var(--indigo); }
.g5-btn--sm { padding: .55rem 1.1rem; font-size: .86rem; min-height: 44px; }
.g5-btn--block { width: 100%; }

/* ---- アイブロウ ---- */
.g5-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  color: var(--violet); padding: .4rem .85rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.g5-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-soft); }

.g5-section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; position: relative; background: var(--bg-2); }
.g5-section--alt { background: var(--bg); }
.g5-head { max-width: 730px; margin: 0 auto 2.8rem; text-align: center; }
.g5-head h2 { margin-top: .9rem; }
.g5-head p { color: var(--text-muted); font-size: 1.05rem; margin-top: .5rem; }
.g5-grad-text { color: var(--violet); }

/* ---- ヒーロー ---- */
.g5-hero { position: relative; padding: clamp(2.8rem, 7vw, 4.6rem) 0 clamp(2.8rem, 6vw, 4rem); border-bottom: 1px solid var(--border); }
.g5-hero__grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.g5-hero h1 { margin: 1.1rem 0 1rem; }
.g5-hero h1 .g5-grad-text { white-space: nowrap; }
.g5-hero__lead { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 0 1.7rem; }
.g5-hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.g5-hero__note { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-top: 1.6rem; color: var(--text-muted); font-size: .86rem; }
.g5-hero__note span { display: inline-flex; align-items: center; gap: .4rem; }
.g5-hero__note .g5-ic { color: var(--violet); width: 1.15em; height: 1.15em; }

/* プロンプトカード */
.g5-prompt { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.g5-prompt__bar { display: flex; align-items: center; gap: 7px; padding: .7rem 1rem; border-bottom: 1px solid var(--border-soft); background: var(--surface-3); color: var(--text-dim); font-size: .76rem; font-family: var(--font-accent); }
.g5-prompt__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.g5-prompt__bar i:nth-child(1) { background: #c7b6f4; }
.g5-prompt__bar i:nth-child(2) { background: #a7bdf4; }
.g5-prompt__bar span { margin-left: .5rem; }
.g5-prompt__body { padding: 1.2rem 1.2rem 1.3rem; font-size: .92rem; }
.g5-prompt__q { background: var(--surface-3); border: 1px solid var(--border-soft); border-radius: var(--r-md) var(--r-md) var(--r-md) 4px; padding: .7rem .9rem; margin: 0 0 1rem; color: var(--text); }
.g5-prompt__q b { color: var(--indigo); font-family: var(--font-accent); font-weight: 600; font-size: .82rem; display: block; margin-bottom: .2rem; }
.g5-prompt__a { background: #f1effe; border: 1px solid #ddd5fb; border-radius: var(--r-md) var(--r-md) 4px var(--r-md); padding: .8rem .9rem; color: var(--text-muted); line-height: 1.7; }
.g5-prompt__a strong { color: var(--violet); }
.g5-prompt__ok { display: inline-flex; align-items: center; gap: .35rem; color: var(--mint); font-weight: 700; font-size: .84rem; margin-top: .9rem; }
.g5-prompt__ok .g5-ic { width: 1.05em; height: 1.05em; }

/* ---- 統計 ---- */
.g5-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); background: #fff; border-radius: var(--r-lg); margin-top: 2.6rem; box-shadow: var(--shadow-soft); overflow: hidden; }
.g5-stat { padding: 1.4rem 1.1rem; text-align: center; border-right: 1px solid var(--border-soft); }
.g5-stat:last-child { border-right: 0; }
.g5-stat__n { font-family: var(--font-accent); font-weight: 600; font-size: 1.85rem; color: var(--indigo); letter-spacing: -.01em; }
.g5-stat__l { color: var(--text-muted); font-size: .85rem; margin-top: .2rem; }

/* ---- 特長ティッカー ---- */
.g5-ticker { border-bottom: 1px solid var(--border); background: #fff; overflow: hidden; }
.g5-ticker__row { display: flex; gap: 2.4rem; padding: .9rem 0; white-space: nowrap; width: max-content; animation: g5-marquee 36s linear infinite; }
.g5-ticker__row span { color: var(--text-muted); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); }
.g5-ticker__row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-soft); }
@keyframes g5-marquee { to { transform: translateX(-50%); } }

/* ---- カード ---- */
.g5-grid { display: grid; gap: 1.1rem; }
.g5-grid--3 { grid-template-columns: repeat(3, 1fr); }
.g5-grid--2 { grid-template-columns: repeat(2, 1fr); }
.g5-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; transition: border-color .2s, transform .2s, box-shadow .2s; }
.g5-card:hover { border-color: var(--violet-soft); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.g5-card__ic { width: 48px; height: 48px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); border: 1px solid var(--border); color: var(--indigo); margin-bottom: 1rem; }
.g5-card__ic .g5-ic { width: 24px; height: 24px; }
.g5-card h3 { margin-bottom: .4rem; }
.g5-card p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* ---- コース ---- */
.g5-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.g5-course { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
.g5-course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--violet-soft); }
.g5-course__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.g5-course__media img { width: 100%; height: 100%; object-fit: cover; }
.g5-course__tag { position: absolute; top: .75rem; left: .75rem; z-index: 2; font-family: var(--font-accent); font-size: .7rem; font-weight: 600; letter-spacing: .02em; background: rgba(255, 255, 255, .95); color: var(--indigo); padding: .3rem .65rem; border-radius: var(--r-pill); border: 1px solid var(--border); }
.g5-course__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.g5-course__level { font-family: var(--font-accent); font-size: .74rem; color: var(--violet); font-weight: 600; margin-bottom: .4rem; letter-spacing: .03em; }
.g5-course h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.g5-course p { color: var(--text-muted); font-size: .9rem; flex: 1; margin: 0 0 1rem; }
.g5-course__meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--text-dim); margin-bottom: 1rem; }
.g5-course__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.g5-course__meta .g5-ic { width: 1em; height: 1em; color: var(--indigo); }

/* ---- 方法ステップ ---- */
.g5-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.g5-step { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; }
.g5-step__n { flex: none; width: 48px; height: 48px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-accent); font-weight: 600; font-size: 1.05rem; color: #fff; background: var(--indigo); }
.g5-step:nth-child(even) .g5-step__n { background: var(--violet); }
.g5-step h3 { margin-bottom: .3rem; }
.g5-step p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.g5-step--cta { background: var(--surface-3); border: 1.5px dashed var(--violet); color: inherit; text-decoration: none; transition: background .15s, border-color .15s; }
.g5-step--cta:hover { text-decoration: none; background: #ece7fe; border-style: solid; }
.g5-step--cta .g5-step__n { background: var(--violet); }
.g5-step__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--violet); }
.g5-step__link .g5-ic { width: 1em; height: 1em; }
.g5-subhead { font-size: 1.2rem; margin: 2.8rem 0 1rem; }

/* ---- プログラム ---- */
.g5-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.g5-mod { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.3rem 1.4rem; transition: transform .2s, box-shadow .2s; }
.g5-mod:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.g5-mod__n { font-family: var(--font-accent); font-weight: 600; color: var(--violet); font-size: .9rem; letter-spacing: .03em; }
.g5-mod h3 { font-size: 1.02rem; margin: .4rem 0 .3rem; }
.g5-mod p { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* ---- ボーナス ---- */
.g5-bonus { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.g5-bonus__item { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.2rem 1.3rem; }
.g5-bonus__item .g5-check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #efeafe; border: 1px solid #d7cbfb; color: var(--violet); display: inline-flex; align-items: center; justify-content: center; }
.g5-bonus__item .g5-ic { width: 15px; height: 15px; }
.g5-bonus__item strong { display: block; margin-bottom: .15rem; font-family: var(--font-head); font-size: .98rem; }
.g5-bonus__item span { color: var(--text-muted); font-size: .88rem; }

.g5-ulcheck li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .75rem; color: var(--text-muted); }
.g5-ulcheck .g5-ic { flex: none; color: var(--violet); margin-top: .3rem; width: 1.15em; height: 1.15em; }
.g5-ulcheck li:has(a) { align-items: center; }
.g5-ulcheck a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- FAQ ---- */
.g5-faq { max-width: 830px; margin: 0 auto; }
.g5-faq__item { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; margin-bottom: .8rem; overflow: hidden; }
.g5-faq__q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: 1.15rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; min-height: 58px; line-height: 1.5; }
.g5-faq__q .g5-ic { flex: none; color: var(--indigo); transition: transform .25s; }
.g5-faq__item.g5-open { border-color: var(--violet-soft); box-shadow: var(--shadow-soft); }
.g5-faq__item.g5-open .g5-faq__q .g5-ic { transform: rotate(45deg); }
.g5-faq__a { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, visibility 0s linear .3s; }
.g5-faq__item.g5-open .g5-faq__a { visibility: visible; transition: max-height .3s ease, visibility 0s; }
.g5-faq__a a { text-decoration: underline; }
.g5-faq__a p { color: var(--text-muted); font-size: .94rem; padding: 0 1.3rem 1.2rem; margin: 0; }

/* ---- フォーム ---- */
.g5-lead { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(1.5rem, 4vw, 2.4rem); }
.g5-lead--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.g5-lead--top { align-items: start; }
.g5-field { margin-bottom: 1rem; }
.g5-field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.g5-field input, .g5-field textarea, .g5-field select { width: 100%; min-height: 48px; padding: .7rem .95rem; font-size: 1rem; font-family: var(--font-body); background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); }
.g5-field textarea { min-height: 128px; resize: vertical; line-height: 1.7; }
.g5-field input::placeholder, .g5-field textarea::placeholder { color: #8a84a8; }
.g5-field input:focus, .g5-field textarea:focus, .g5-field select:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px rgba(79, 70, 229, .16); }
.g5-field--error input, .g5-field--error textarea { border-color: #dc2626; }
.g5-field__err { color: #b91c1c; font-size: .8rem; margin-top: .35rem; display: none; }
.g5-field--error .g5-field__err { display: block; }
.g5-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.g5-consent { display: flex; gap: .7rem; align-items: flex-start; margin: .4rem 0 1.2rem; }
.g5-consent input[type="checkbox"] { flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: .25rem 0 0; accent-color: var(--indigo); cursor: pointer; }
.g5-consent label { font-size: .82rem; color: var(--text-muted); line-height: 1.7; font-weight: 400; margin: 0; }
.g5-consent a { color: var(--indigo); text-decoration: underline; }
.g5-consent + .g5-consent { margin-top: -.6rem; }

.g5-formnote { font-size: .8rem; color: var(--text-dim); text-align: center; margin-top: .9rem; display: flex; gap: .4rem; align-items: center; justify-content: center; }
.g5-formnote .g5-ic { color: var(--violet); width: 1em; height: 1em; }

.g5-formmsg { border-radius: var(--r-sm); padding: 1rem 1.1rem; font-size: .9rem; margin-bottom: 1rem; display: none; }
.g5-formmsg--ok { display: block; background: #ecfdf7; border: 1px solid #86e0c6; color: #0b6b53; }
.g5-formmsg--err { display: block; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.g5-formmsg a { color: inherit; text-decoration: underline; }

/* ---- CTA ---- */
.g5-cta-band { text-align: center; border-radius: var(--r-lg); padding: clamp(2.4rem, 6vw, 3.6rem); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }

/* ---- フッター ---- */
.g5-footer { background: #fff; border-top: 1px solid var(--border); padding: 3.4rem 0 2rem; font-size: .9rem; }
.g5-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2.4rem; }
.g5-footer__brand p { color: var(--text-muted); max-width: 320px; font-size: .88rem; margin-top: .9rem; }
.g5-footer h2 { font-family: var(--font-accent); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; }
.g5-footer ul li { margin-bottom: 0; }
.g5-footer ul a { color: var(--text-muted); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.g5-footer ul a:hover { color: var(--indigo); }
.g5-footer__legal { font-style: normal; color: var(--text-muted); line-height: 1.95; font-size: .86rem; }
.g5-footer__legal b { color: var(--text); font-weight: 700; }
.g5-footer__contact { display: flex; flex-direction: column; margin-top: .7rem; border-top: 1px solid var(--border-soft); }
.g5-footer__contact a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--border-soft); color: var(--text-muted); }
.g5-footer__bottom { border-top: 1px solid var(--border-soft); padding-top: 1.4rem; color: var(--text-dim); font-size: .8rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; align-items: center; }
.g5-footer__bottom nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.g5-footer__bottom nav a { color: var(--text-muted); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.g5-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.g5-linkbtn:hover { color: var(--indigo); text-decoration: underline; }
.g5-footer__disc { color: var(--text-dim); font-size: .78rem; line-height: 1.85; margin-top: 1.4rem; border-top: 1px solid var(--border-soft); padding-top: 1.4rem; }

/* ---- 法的ページ ---- */
.g5-legal p a, .g5-legal li a, .g5-legal td a, .g5-legal address a, .g5-legal__box a, .g5-optout a, .g5-breadcrumb a,
.g5-legal__inner p a, .g5-head p a, .g5-detail__hero p a, .g5-cta-band p a { text-decoration: underline; }
.g5-legal { padding: clamp(2.5rem, 6vw, 4rem) 0; background: #fff; }
.g5-legal__inner { max-width: 820px; margin: 0 auto; }
.g5-legal__inner--wide { max-width: 1040px; }
.g5-breadcrumb { font-family: var(--font-accent); font-size: .8rem; color: var(--text-dim); margin-bottom: 1.2rem; }
.g5-breadcrumb a { color: var(--text-muted); }
.g5-legal h1 { margin-bottom: .5rem; }
.g5-legal__upd { color: var(--text-dim); font-size: .86rem; margin-bottom: 2rem; }
.g5-legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; }
.g5-legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.g5-legal p, .g5-legal li { color: var(--text-muted); }
.g5-legal ul.g5-bul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.g5-legal ul.g5-bul li { margin-bottom: .5rem; }
.g5-legal ul.g5-bul li:has(> a:only-child) { margin-bottom: 0; }
.g5-legal ul.g5-bul li:has(> a:only-child) > a { display: inline-flex; align-items: center; min-height: 44px; }
.g5-legal ol { padding-left: 1.3rem; margin: 0 0 1rem; color: var(--text-muted); }
.g5-legal ol li { margin-bottom: .6rem; }
.g5-legal ol li strong { color: var(--text); }
.g5-legal__box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.3rem 1.5rem; margin: 1.3rem 0; }
.g5-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9rem; }
.g5-table th, .g5-table td { text-align: left; padding: .8rem 1rem; border: 1px solid var(--border); vertical-align: top; color: var(--text-muted); }
.g5-table th { background: var(--surface-3); color: var(--text); width: 32%; font-weight: 700; }
.g5-table thead th { background: #e6e2fb; width: auto; font-family: var(--font-accent); font-size: .8rem; letter-spacing: .02em; }
.g5-optout { border: 1px solid #d7cbfb; border-left: 4px solid var(--violet); background: #f6f3ff; border-radius: var(--r-md); padding: 1.5rem 1.7rem; margin-top: 2rem; }
.g5-optout h2 { margin-top: 0; }

/* コース詳細 */
.g5-detail__hero { background: var(--bg); border-bottom: 1px solid var(--border); padding: clamp(2.2rem, 5vw, 3.4rem) 0; }
.g5-detail__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.g5-detail__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-soft); aspect-ratio: 16 / 11; background: var(--surface-3); }
.g5-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.g5-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.g5-chip { font-family: var(--font-accent); font-size: .78rem; font-weight: 600; color: var(--indigo); background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: .35rem .8rem; display: inline-flex; align-items: center; gap: .35rem; }
.g5-chip .g5-ic { width: 1em; height: 1em; color: var(--violet); }
.g5-lessons { counter-reset: g5l; display: grid; gap: .6rem; margin: 0; }
.g5-lessons li { counter-increment: g5l; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.2rem 1rem 3.4rem; position: relative; color: var(--text-muted); }
.g5-lessons li::before { content: counter(g5l, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1rem; font-family: var(--font-accent); font-weight: 600; color: var(--violet); font-size: .92rem; }
.g5-lessons li strong { color: var(--text); display: block; font-family: var(--font-head); }

/* ---- モバイルメニュー ---- */
.g5-mobile { position: fixed; inset: 0; z-index: 400; display: none; }
.g5-mobile.g5-open { display: block; }
.g5-mobile__scrim { position: absolute; inset: 0; background: rgba(30, 27, 58, .42); }
.g5-mobile__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(330px, 88vw); background: #fff; border-left: 1px solid var(--border); padding: 1.3rem; transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; box-shadow: var(--shadow-md); }
.g5-mobile.g5-open .g5-mobile__panel { transform: translateX(0); }
.g5-mobile__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.g5-mobile__close { width: 44px; height: 44px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.g5-mobile__links a { display: block; padding: .9rem .3rem; color: var(--text); font-family: var(--font-head); font-weight: 700; border-bottom: 1px solid var(--border-soft); }
.g5-mobile__panel .g5-btn { margin-top: 1.4rem; }

.g5-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.g5-reveal.g5-in { opacity: 1; transform: none; }


/* ---- Cookie 同意（JS で生成されるが、スタイルは静的） ---- */
.g5-cc { position: fixed; right: 1rem; bottom: 1rem; z-index: 350; max-width: 370px; width: calc(100vw - 2rem); }
.g5-cc__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 1.2rem 1.3rem; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.g5-cc.g5-show .g5-cc__card { opacity: 1; transform: none; }
.g5-cc__t { display: block; font-family: var(--font-head); font-size: 1rem; margin-bottom: .4rem; color: var(--text); }
.g5-cc__p { font-size: .8rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 .9rem; }
.g5-cc__p a { color: var(--indigo); text-decoration: underline; }
.g5-cc__btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.g5-cc__btns .g5-btn { flex: 1 1 auto; }
.g5-cc-modal { position: fixed; inset: 0; z-index: 500; display: none; }
.g5-cc-modal.g5-show { display: block; }
.g5-cc-modal__scrim { position: absolute; inset: 0; background: rgba(30, 27, 58, .45); }
.g5-cc-modal__dialog { position: relative; max-width: 520px; margin: 7vh auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); max-height: 84vh; overflow: auto; box-shadow: var(--shadow-md); }
.g5-cc-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border-soft); }
.g5-cc-modal__head h2 { font-size: 1.2rem; margin: 0; }
.g5-cc-modal__close { width: 44px; height: 44px; border: 1px solid var(--border); background: transparent; border-radius: var(--r-sm); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.g5-cc-modal__body { padding: .4rem 1.4rem; }
.g5-cc-cat { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-soft); }
.g5-cc-cat__info { flex: 1; }
.g5-cc-cat__info strong { display: block; margin-bottom: .2rem; color: var(--text); }
.g5-cc-cat__info span { font-size: .82rem; color: var(--text-muted); line-height: 1.7; }
.g5-cc-switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; }
.g5-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.g5-cc-switch__tr { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .2s; pointer-events: none; }
.g5-cc-switch__tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .2s; }
.g5-cc-switch input:checked + .g5-cc-switch__tr { background: var(--indigo); }
.g5-cc-switch input:checked + .g5-cc-switch__tr::after { transform: translateX(20px); }
.g5-cc-switch input:disabled + .g5-cc-switch__tr { opacity: .55; }
.g5-cc-modal__foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--border-soft); }

@media (max-width: 960px) {
  .g5-menu { display: none; }
  .g5-nav__cta { margin-left: auto; }
  .g5-burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); cursor: pointer; }
  .g5-hero__grid, .g5-detail__grid { grid-template-columns: 1fr; }
  .g5-courses, .g5-modules, .g5-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .g5-footer__top { grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
  .g5-lead--split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g5-nav__cta { display: none; }
  .g5-stats { grid-template-columns: repeat(2, 1fr); }
  .g5-stat:nth-child(2) { border-right: 0; }
  .g5-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .g5-courses, .g5-modules, .g5-grid--3, .g5-grid--2, .g5-steps, .g5-bonus { grid-template-columns: 1fr; }
  .g5-footer__top { grid-template-columns: 1fr; }
  .g5-hero__cta .g5-btn { width: 100%; }
}
@media (max-width: 560px) {
  /* 幅の狭い画面では表を縦積み（ラベル→値）にして可読性を確保 */
  .g5-table { border: 0; }
  .g5-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .g5-table tr { display: block; border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: .8rem; overflow: hidden; }
  .g5-table th, .g5-table td { display: block; width: auto; border: 0; }
  .g5-table th { background: var(--surface-3); border-bottom: 1px solid var(--border-soft); font-weight: 700; padding: .7rem 1rem; }
  .g5-table td { padding: .85rem 1rem; }
  .g5-table thead th { background: var(--surface-3); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .g5-reveal { opacity: 1; transform: none; }
}
