/* ========================================
   トップページ
   panel.css の色・文字の設定を使い，縦にスクロールして読むページとして組む．
======================================== */

.top {
    box-sizing: border-box;
    width: var(--page-content-outer-width);
    margin: 0 auto;
    padding-top: calc(var(--header-height) + var(--header-top-space) + 24px);
    padding-bottom: 40px;
}

/* ---------- 表紙 ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 88px) clamp(22px, 6vw, 96px) clamp(48px, 6vw, 88px);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(12, 44, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 44, 71, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1px solid var(--line);
    border-radius: clamp(16px, 2vw, 28px);
}

.hero__bg {
    position: absolute;
    right: 3%;
    bottom: 6%;
    z-index: 0;
    margin: 0;
    color: rgba(12, 44, 71, 0.045);
    font-family: var(--font-display);
    font-size: clamp(64px, 11vw, 190px);
    line-height: 0.86;
    text-align: right;
    pointer-events: none;
    user-select: none;
}

.hero .side-label {
    top: clamp(36px, 6vw, 88px);
    right: clamp(12px, 2vw, 32px);
    font-size: 12px;
}

.hero__body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

.hero .kicker {
    font-size: clamp(13px, 1.2vw, 16px);
}

.hero__title {
    margin: 0 0 clamp(16px, 2vw, 28px);
    font-size: clamp(30px, 3.9vw, 60px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.hero__lead {
    max-width: 38em;
    margin: 0 0 clamp(22px, 2.6vw, 34px);
    color: var(--ink-soft);
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.9;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.hero .btn-primary { font-size: clamp(15px, 1.2vw, 18px); }
.hero .btn-arrow { width: 40px; height: 40px; font-size: 18px; }

.hero__resume {
    font-size: clamp(14px, 1.1vw, 16px);
    text-decoration: none;
}

.hero__progress {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hero__img {
    width: 100%;
    max-width: 640px;
    height: auto;
    justify-self: end;
    mix-blend-mode: multiply;
}

.stripe--hero {
    left: clamp(22px, 6vw, 96px);
    bottom: 26px;
    height: 12px;
}

.stripe--hero span:nth-child(1) { width: 30px; }
.stripe--hero span:nth-child(2) { width: 9px; }
.stripe--hero span:nth-child(3) { width: 20px; }
.stripe--hero span:nth-child(4) { width: 27px; }

/* ---------- 見出し ---------- */

.top section + section { margin-top: clamp(56px, 8vw, 110px); }

.section-head {
    max-width: 52em;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head .kicker { font-size: clamp(13px, 1.1vw, 15px); }

.section-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.2vw, 46px);
    font-weight: 900;
    line-height: 1.4;
    text-wrap: balance;
}

.section-lead {
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.9;
}

/* ---------- 学習の道筋 ---------- */

.story__flow {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: story;
}

.story__flow li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 96px;
    padding: 18px 18px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    counter-increment: story;
}

.story__flow li::before {
    content: counter(story, decimal-leading-zero);
    color: var(--blue);
    font-family: var(--font-display);
    font-size: 13px;
}

.story__flow b {
    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 900;
    line-height: 1.5;
}

.story__flow span {
    margin-top: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

/* ---------- 路線図 ---------- */

.part {
    --part-color: var(--line-basic);
    display: grid;
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
    gap: clamp(20px, 3vw, 48px);
    padding: clamp(26px, 3vw, 40px) 0;
    border-top: 2px solid var(--ink);
}

.part + .part { margin-top: 0 !important; }
.part--adv1 { --part-color: var(--line-adv1); }
.part--adv2 { --part-color: var(--line-adv2); }
.part--prac { --part-color: var(--line-prac); }

.part__head { min-width: 0; }

.part__en {
    margin: 0 0 6px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.2em;
}

.part__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 900;
}

.part__line {
    width: 34px;
    height: 8px;
    border-radius: 4px;
    background: var(--part-color);
}

.part__sub {
    margin: 0 0 12px;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 700;
}

.part__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.85;
}

.part__img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin-top: 18px;
    mix-blend-mode: multiply;
}

.stations {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.station a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    box-sizing: border-box;
    padding: 18px 18px 16px;
    color: var(--ink);
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-top: 6px solid var(--part-color);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.station a:hover {
    border-color: var(--ink);
    border-top-color: var(--part-color);
    transform: translateY(-2px);
}

.station__dot {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--ink);
    background: #ffffff;
    border: 2px solid var(--ink);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 13px;
}

.station.is-done .station__dot {
    color: #ffffff;
    background: var(--ink);
}

.station__icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
}

.station__icon svg { display: block; width: 100%; height: auto; }

.station__name {
    font-size: clamp(17px, 1.35vw, 20px);
    font-weight: 900;
    line-height: 1.45;
}

.station__desc {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.station__meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.station__done {
    display: none;
    color: var(--blue);
}

.station.is-done .station__done { display: inline; }

/* ---------- 使い方 ---------- */

.howto__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}

.howto__item {
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.howto__item b {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 900;
}

.howto__item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.85;
}

.legend-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
}

.legend-tags .setting-tag { font-size: 15px; }
.legend-tags .setting-tag b { font-size: 13px; }

.top-footer {
    margin-top: clamp(56px, 8vw, 100px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.top-footer p { margin: 0; }

@media (max-width: 860px) {
    .hero__body,
    .part { grid-template-columns: minmax(0, 1fr); }
    .hero__img { justify-self: center; max-width: 420px; }
    .hero .side-label { display: none; }
    .part__img { max-width: 300px; }
}

.section-title,
.station__name,
.story__flow b,
.part__sub { word-break: auto-phrase; }
.hero__title .nb { white-space: nowrap; }

/* 使い方の補足文（2026-10-25 追加） */
.howto__grid + .section-lead { margin-top: 22px; }
