/* イチエンプロジェクト「まなびの中身」 */
.manabi { --navy: #182987; --yellow: #f5ec18; --pink: #e62e59; background: #fff; }
.manabi .logo img { width: auto; height: 40px; }
.manabi-main { max-width: 1120px; margin: 0 auto; padding: 112px clamp(16px, 4vw, 40px) 72px; }

.manabi-hero { text-align: center; padding: 24px 0 40px; }
.manabi-hero h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 18px; }
.manabi-hero .lead { max-width: 720px; margin: 0 auto; color: var(--sub); }
.manabi-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.manabi-jump a { background: var(--tint); color: var(--navy); font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 999px; font-size: 14px; }

.manabi-intro { max-width: 760px; margin: 0 auto 48px; background: var(--cream); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.manabi-intro h2 { font-size: 20px; margin-bottom: 10px; }

.manabi-main h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.sec-lead { color: var(--sub); margin-bottom: 24px; }
.manabi-cycle, .manabi-lessons, .manabi-sheets { margin-top: 64px; }

.cycle { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: c; }
.cycle li { counter-increment: c; }
.cycle a { display: flex; align-items: center; gap: 8px; text-decoration: none; background: var(--navy); color: #fff; font-family: var(--round); font-weight: 700; padding: 10px 18px 10px 10px; border-radius: 999px; }
.cycle a::before { content: counter(c); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: 14px; }
.cycle li:not(:last-child)::after { content: "→"; margin: 0 2px 0 8px; color: var(--navy); font-weight: 700; }
.cycle li { display: flex; align-items: center; }

.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lesson-item a { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: border-color .15s, transform .15s; }
.lesson-item a:hover { border-color: var(--navy); transform: translateY(-2px); }
.lesson-item time { font-family: var(--round); font-weight: 700; color: var(--navy); font-size: 20px; }
.lesson-type { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--tint); color: var(--navy); }
.type-販売日 .lesson-type { background: var(--yellow); }
.type-販売日 a { border-color: var(--yellow); }
.lesson-item strong { font-size: 16px; line-height: 1.5; }
.lesson-theme { font-size: 13px; color: var(--sub); line-height: 1.6; }

.sheet-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sheet-filter button { font: inherit; font-size: 14px; font-weight: 700; border: 2px solid var(--navy); color: var(--navy); background: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.sheet-filter button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.step-group { margin-top: 28px; }
.step-group h3 { font-size: 18px; padding-left: 12px; border-left: 6px solid var(--yellow); margin-bottom: 12px; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sheet-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; transition: box-shadow .15s, transform .15s; }
.sheet-card[hidden] { display: none; }
.sheet-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(24, 41, 135, .5); }
.sheet-thumb { display: block; aspect-ratio: 4 / 3; background: #f4f5f8; border-radius: 10px; overflow: hidden; }
.sheet-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sheet-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--navy); }
.tag-0 { background: var(--navy); color: #fff; }
.tag-1 { background: var(--pink); color: #fff; }
.tag-2 { background: var(--yellow); color: var(--navy); }
.tag.step { background: #fff; border: 1px solid var(--line); color: var(--sub); }
.sheet-card strong { font-size: 15px; line-height: 1.5; }
.sheet-sum { font-size: 13px; color: var(--sub); line-height: 1.6; }

.crumb { font-size: 13px; margin-bottom: 20px; color: var(--sub); }
.sheet-detail, .lesson-detail { max-width: 820px; margin: 0 auto; }
.sheet-detail h1, .lesson-detail h1 { font-size: clamp(24px, 3.6vw, 34px); margin: 10px 0 12px; }
.sheet-detail .lead, .lesson-detail .lead { color: var(--sub); font-size: 17px; }
.sheet-figure { margin: 28px 0; background: #f4f5f8; border-radius: 16px; padding: clamp(12px, 2vw, 24px); }
.sheet-figure img { margin: 0 auto; max-height: 720px; width: auto; box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .35); }
.sheet-figure figcaption { text-align: center; font-size: 12px; color: var(--sub); margin-top: 10px; }
.sheet-body { font-size: 16px; }
.sheet-body h2, .sheet-detail h2, .lesson-detail h2 { font-size: 20px; margin: 36px 0 12px; }
.sheet-body ul { padding-left: 1.4em; }
.learn { list-style: none; padding: 0; display: grid; gap: 8px; }
.learn li { background: var(--cream); border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.learn li::before { content: "★ "; color: var(--yellow); -webkit-text-stroke: .5px var(--navy); }
.adult { margin-top: 20px; background: var(--tint); border-radius: 12px; padding: 12px 16px; }
.adult b { display: block; font-size: 13px; color: var(--navy); }
.used-in { padding-left: 1.2em; }
.lesson-meta { display: flex; gap: 10px; align-items: center; font-family: var(--round); font-weight: 700; color: var(--navy); }
.lesson-img { border-radius: 16px; margin: 20px 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; font-weight: 700; font-size: 14px; }
.back { margin-top: 40px; }

.manabi-cta { background: var(--yellow); padding: clamp(48px, 7vw, 80px) clamp(16px, 4vw, 40px); text-align: center; }
.manabi-cta-inner { max-width: 720px; margin: 0 auto; }
.manabi-cta .eyebrow { color: var(--navy); }
.manabi-cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.manabi-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

@media (max-width: 860px) {
  .manabi .gnav { display: none; }
  .manabi-main { padding-top: 92px; }
}
