:root {
  color-scheme: light;
  --ink: #161b34;
  --muted: #555d71;
  --blue: #253bbd;
  --blue-dark: #192c9a;
  --surface: #fff;
  --canvas: #f7f8fc;
  --line: #e4e7f0;
  --rule: #d8dce8;
  --sidebar-width: 232px;
  --radius: 18px;
  --font: "Inter", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #405cf2; outline-offset: 4px; }
:where(main, h1)[tabindex="-1"]:focus { outline: none; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 9px 15px; color: #fff; background: var(--blue); border-radius: 8px; }

.shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 3; background: var(--surface); border-right: 1px solid var(--line); padding: 27px 17px 20px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 5px; width: fit-content; }
.brand-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; }
.brand strong, .brand small { display: block; line-height: 1.35; }
.brand strong { font-size: 17px; font-weight: 800; white-space: nowrap; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 8.5px; font-weight: 750; letter-spacing: .13em; white-space: nowrap; }
.main-nav { display: grid; gap: 5px; margin-top: 46px; }
.nav-label { color: var(--muted); font-size: 11px; font-weight: 700; padding: 0 12px 5px; }
.main-nav a { display: flex; min-height: 46px; align-items: center; gap: 11px; padding: 8px 11px; color: #464f64; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.main-nav a:hover { background: var(--canvas); }
.main-nav a[aria-current] { color: var(--blue); background: #eaeeff; }
.sidebar-end { margin-top: auto; }
.sidebar-progress { display: block; padding: 13px 12px; border-radius: 12px; background: #f2f4ff; }
.sidebar-progress:hover { background: #e9edff; }
.progress-label { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: var(--blue); font-size: 12px; font-weight: 750; }
.progress-label span { display: flex; align-items: center; gap: 5px; }
.progress-label strong { font-size: 15px; }
.sidebar-progress small { display: block; color: var(--muted); font-size: 11px; }
.progress-bar { display: block; width: 100%; height: 8px; margin: 9px 0 7px; appearance: none; border: none; border-radius: 100px; overflow: hidden; color: var(--blue); background: #dbe2fc; }
.progress-bar::-webkit-progress-bar { background: #dbe2fc; }
.progress-bar::-webkit-progress-value { background: var(--blue); border-radius: 100px; }
.progress-bar::-moz-progress-bar { background: var(--blue); border-radius: 100px; }

.workspace { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; padding: 0 clamp(26px, 3.35vw, 56px); background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; min-width: 0; gap: 9px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 700; }
.top-progress { display: inline-flex; min-height: 38px; padding: 5px 11px; align-items: center; gap: 7px; color: var(--blue); border: 1px solid #e0e6fc; background: #f7f8ff; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.top-progress:hover { background: #edf0ff; }
.top-progress strong { font-size: 14px; }
.icon-button { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 0; border-radius: 9px; background: #eff2fb; color: var(--blue); }
.menu-toggle { display: none; }
.content { max-width: 1440px; margin: 0 auto; padding: 32px clamp(26px, 3.35vw, 56px) 38px; }

.hero { position: relative; display: grid; align-items: center; min-height: 363px; overflow: hidden; isolation: isolate; border-radius: 22px; background: #ffda5a; }
.hero-copy { position: relative; z-index: 1; width: 60%; padding: 36px 0 36px clamp(32px, 4vw, 60px); }
.hero-label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; background: #fff4bd; color: #24294b; border-radius: 100px; font-size: 12px; font-weight: 750; }
.hero h1 { margin: 14px 0 13px; color: #172349; font-size: clamp(35px, 4.15vw, 66px); font-weight: 900; line-height: 1.16; letter-spacing: -.055em; }
.hero p { margin-bottom: 23px; color: #383820; font-size: clamp(13px, 1.15vw, 16px); font-weight: 600; line-height: 1.85; }
.hero-image { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 56%; height: 100%; object-fit: cover; object-position: 52% 51%; mask-image: linear-gradient(to right, transparent, #000 22%); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 800; transition: background .16s, box-shadow .16s; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--blue-dark); box-shadow: 0 4px 10px #1c2c7c26; }
.primary:disabled { background: #e8ebf5; color: #565f79; box-shadow: none; }
.secondary { color: var(--blue); border-color: #dce2ff; background: #eef1ff; }
.secondary:hover { background: #dfe6ff; }
.text-link { display: inline-flex; gap: 7px; align-items: center; width: fit-content; min-height: 42px; color: var(--blue); font-size: 13px; font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.curriculum { margin-top: 33px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 11px 22px; margin-bottom: 17px; }
.section-head h2 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 850; letter-spacing: -.035em; }
.section-head p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.course-meta { display: flex; gap: 15px; flex-wrap: wrap; padding-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.course-meta span, .chapter-foot > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.chapter-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 2px 4px #18224a06; transition: border-color .16s, box-shadow .16s, transform .16s; }
.chapter-card:hover { border-color: #b6c1ef; box-shadow: 0 7px 15px #18224a12; transform: translateY(-3px); }
.theme-blue { --theme: #e2eaff; --accent: #2542c4; --light: #b8c9fb; }
.theme-peach { --theme: #ffeadf; --accent: #a63b27; --light: #ffc7ad; }
.theme-mint { --theme: #def4e8; --accent: #1b7057; --light: #9fd8be; }
.theme-lavender { --theme: #eee6ff; --accent: #6349ae; --light: #cbbaf1; }
.theme-sky { --theme: #dff1fa; --accent: #1b5c85; --light: #b1d9ee; }
.theme-amber { --theme: #fff1cf; --accent: #7a4d16; --light: #f0c776; }
.theme-rose { --theme: #fbe7ef; --accent: #8f365d; --light: #edbfd3; }
.theme-iris { --theme: #e8eafa; --accent: #3e448a; --light: #c5c9f3; }
.chapter-art { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; height: 125px; background: var(--theme); color: var(--accent); }
.chapter-art::before { position: absolute; content: ""; inset: 12px; z-index: -1; background-image: radial-gradient(currentColor .6px, transparent .8px); background-size: 12px 12px; opacity: .25; mask-image: linear-gradient(110deg, #000 4%, transparent 38%, transparent 65%, #000 95%); }
.chapter-art i, .chapter-art i > * { display: block; position: absolute; font-style: normal; }
.chapter-art .art-star { font-size: 24px; top: 17px; right: 17%; line-height: 1; }
.poster { width: 56px; height: 77px; border-radius: 3px; box-shadow: 2px 5px 8px #25336131; }
.back-poster { background: #718cf1; transform: translate(-22px, -1px) rotate(-19deg); }
.back-poster b { inset: 11px 12px 39px; border-radius: 50%; background: #dce5ff; }
.front-poster { background: #fff; transform: translate(18px, 4px) rotate(13deg); }
.front-poster b { inset: 10px 10px 29px; background: #2e50dc; border-radius: 50% 50% 5px 5px; }
.front-poster em, .front-poster span { height: 3px; bottom: 17px; left: 10px; width: 31px; background: #7891e0; }
.front-poster span { bottom: 11px; width: 21px; opacity: .5; }
.target-ring { width: 85px; height: 85px; border-radius: 50%; background: repeating-radial-gradient(circle, #e47657 0 8px, #fff5ec 9px 15px); box-shadow: 3px 6px 10px #6b301129; }
.target-arrow { width: 67px; height: 5px; border-radius: 8px; background: #7f3026; transform: translate(24px, -19px) rotate(-38deg); }
.target-arrow::before { content: ""; position: absolute; left: -2px; top: -5px; border: 7px solid transparent; border-right: 12px solid #7f3026; transform: translateX(-10px); }
.target-arrow::after { content: ""; position: absolute; right: -4px; top: -4px; width: 17px; height: 13px; border-radius: 3px; background: #b3442d; }
.layout-paper { width: 93px; height: 70px; border: 5px solid #fff; border-radius: 6px; background: #f6fffa; box-shadow: 3px 6px 9px #155c4550; transform: translate(-9px, 1px) rotate(-12deg); }
.layout-paper b { inset: 4px 5px 29px; border-radius: 2px; background: #258568; }
.layout-paper em { inset: 36px 41px 5px 5px; border-radius: 2px; background: #81c8ad; }
.layout-paper span { inset: 36px 5px 5px 45px; border-radius: 2px; background: #ceeedd; }
.layout-chip { width: 29px; height: 30px; border-radius: 8px; box-shadow: 2px 4px 6px #155c4540; background: repeating-linear-gradient(#247559 0 3px, #f5fcf2 4px 6px); border: 6px solid #f5fcf2; transform: translate(36px, 21px) rotate(14deg); }
.check-paper { width: 65px; height: 83px; display: grid !important; align-content: center; gap: 5px; padding: 9px; border-radius: 5px; background: #fff; box-shadow: 2px 5px 8px #53328043; transform: translate(-6px, 0) rotate(-13deg); }
.check-paper b { position: relative; color: #6849b6; font-size: 12px; line-height: 1; }
.check-paper b::after { position: absolute; content: ""; top: 5px; left: 15px; width: 28px; height: 3px; border-radius: 10px; background: #c6b7e9; }
.pencil-art { width: 12px; height: 64px; border-radius: 3px; background: linear-gradient(90deg,#6f54bd 50%,#9d81df 50%); box-shadow: 2px 4px 5px #53328036; transform: translate(31px, 9px) rotate(27deg); }
.pencil-art::after { position: absolute; content: ""; bottom: -10px; left: 0; border: 6px solid transparent; border-top: 11px solid #5d437d; border-bottom: 0; }
.chapter-art .chapter-icon { position: relative; width: 81px; height: 65px; border-radius: 8px; background: #fff; box-shadow: 3px 5px 10px #18224a26; }
.chapter-art .pixel-art { display: grid; grid-template-columns: repeat(2, 19px); place-content: center; gap: 4px; transform: rotate(-12deg); }
.chapter-art .pixel-art b { position: static; width: 19px; height: 19px; border-radius: 2px; background: var(--accent); }
.pixel-art b:nth-child(2) { background: var(--light); }
.pixel-art b:nth-child(3) { opacity: .65; }
.photo-art { transform: rotate(10deg); overflow: hidden; border: 6px solid #fff; }
.photo-art b { inset: 0; background: var(--light); }
.photo-art b::after { content: ""; position: absolute; width: 13px; height: 13px; right: 10px; top: 8px; border-radius: 50%; background: #fff5da; }
.photo-art em { width: 61px; height: 37px; bottom: -4px; left: 4px; background: var(--accent); clip-path: polygon(0 100%, 31% 13%, 55% 65%, 69% 44%, 100% 100%); }
.chapter-art .type-art { display: grid; place-items: center; padding-right: 10px; transform: rotate(-10deg); font: 700 32px/1 "Hiragino Mincho ProN", "Yu Mincho", serif; }
.type-art span { bottom: 8px; right: 7px; color: var(--accent); font: 800 13px/1 var(--font); }
.swatch-art b { width: 21px; height: 40px; top: 13px; left: 30px; border: 2px solid #fff; border-radius: 4px; background: var(--accent); transform-origin: center 80%; }
.swatch-art b:first-child { background: #e98e86; transform: rotate(-35deg); }
.swatch-art b:last-child { background: #8bd5b5; transform: rotate(35deg); }
.chapter-copy { display: flex; flex-direction: column; flex: 1; padding: 13px 13px 10px; }
.chapter-kicker { color: var(--blue); font-size: 10.5px; font-weight: 800; line-height: 1.5; letter-spacing: .095em; }
.chapter-copy h3 { margin-top: 4px; font-size: clamp(14px, 1.24vw, 20px); font-weight: 850; letter-spacing: -.055em; overflow-wrap: anywhere; }
.chapter-copy p { margin: 6px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.chapter-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 2px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.chapter-arrow { color: var(--blue); display: grid; place-items: center; width: 27px; height: 27px; background: #eff2ff; border-radius: 50%; }
.work-banner { margin-top: 23px; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 1px solid #dfe5fb; border-radius: 14px; background: #eff2ff; }
.work-banner-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: #fff; color: var(--blue); }
.work-banner h2 { font-size: 15px; }
.work-banner p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.course-footer, .lesson-source { margin-top: 30px; color: var(--muted); font-size: 11px; }
.course-footer { padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; }
.course-footer h2 { margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.course-footer ul { margin: 6px 0; padding-inline-start: 18px; }
.course-footer li span { white-space: nowrap; }

.page-heading { margin: 2px 0 24px; }
.page-heading h1 { font-size: clamp(28px, 3.75vw, 44px); font-weight: 850; letter-spacing: -.045em; }
.page-heading p { color: var(--muted); margin-top: 7px; }
.material-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.material-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: clamp(14px, 2.3vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.material-row > div { flex: 1 1 350px; min-width: 0; }
.material-row h2 { font-size: clamp(17px, 2vw, 23px); }
.material-row p { margin: 5px 0; color: var(--muted); font-size: 14px; }
.material-row small { color: var(--muted); font-size: 12px; }
.chapter-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 19px; }
.chapter-picker a { display: flex; align-items: center; min-height: 58px; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; font-weight: 800; line-height: 1.4; }
.chapter-picker a:hover, .chapter-picker a[aria-current] { color: var(--accent); border-color: var(--accent); background: var(--theme); }
.chapter-picker a span, .progress-index { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--theme); color: var(--accent); border-radius: 8px; font-weight: 850; }
.catalog-card { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 26px; background: var(--theme); }
.catalog-header h2 { margin: 4px 0; font-size: clamp(19px, 2.5vw, 30px); overflow-wrap: anywhere; }
.catalog-header .chapter-kicker { color: var(--accent); }
.catalog-header p { font-size: 13px; }
.catalog-header .chapter-art { width: 145px; height: 102px; flex: none; }
.catalog-header .art-star { right: 7%; }
.lesson-rows, .lesson-outline ol { list-style: none; padding: 0; margin: 0; }
.lesson-rows li + li { border-top: 1px solid var(--line); }
.lesson-row { min-height: 67px; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 10px 24px; }
.lesson-row:hover { background: #f8f9ff; }
.row-index { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: #eff2ff; color: var(--blue); font-size: 12px; font-weight: 800; }
.row-index.is-done { color: #246443; background: #e1f6e8; }
.lesson-row strong, .lesson-row small, .progress-chapter strong, .progress-chapter small { display: block; }
.lesson-row small, .progress-chapter small { font-size: 12px; color: var(--muted); }
.lesson-row > svg, .progress-chapter > svg { color: var(--blue); }

.lesson-back { margin: -6px 0 8px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 222px; align-items: start; gap: 20px; }
.lesson-content { min-width: 0; }
.lesson-heading { margin-bottom: 20px; }
.lesson-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.lesson-meta > span { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.lesson-meta .complete-label { color: #226241; font-weight: 800; }
.lesson-heading h1 { margin: 7px 0 9px; font-size: clamp(26px, 3.15vw, 44px); font-weight: 850; letter-spacing: -.045em; overflow-wrap: anywhere; text-wrap: balance; }
.lesson-heading p { color: var(--muted); }
.lesson-demo, .lesson-example, .lesson-notes, .lesson-practice, .quiz, .lesson-outline, .worksheet, .work-example { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.lesson-demo, .lesson-example, .lesson-notes, .lesson-practice, .quiz, .worksheet { padding: clamp(15px, 2.2vw, 26px); }
.lesson-demo h2, .lesson-example h2, .lesson-notes h2, .lesson-practice h2, .quiz h2 { font-size: 20px; margin-bottom: 4px; }
.lesson-demo > p { color: var(--muted); font-size: 13.5px; }
.lesson-example, .lesson-notes, .lesson-practice { margin: 15px 0; }
.lesson-example h2 { margin-bottom: 12px; }
.design-image-link { display: block; width: fit-content; max-width: 100%; margin-inline: auto; border-radius: 10px; }
.design-image-frame { position: relative; display: block; border-radius: inherit; background: #f1efe9; }
.design-image { width: 100%; height: auto; border-radius: inherit; }
.design-image-square { max-width: min(100%, 415px); }
.example-zoom { display: block; width: fit-content; margin: 5px 0 0 auto; padding: 4px 8px; border-radius: 6px; color: var(--blue); background: #eef1f9; font-size: 11px; font-weight: 750; line-height: 1.45; }
.design-image-link:hover .example-zoom, .design-image-link:focus-visible .example-zoom { color: #fff; background: var(--blue); }
.example-key { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 7px; padding: 0; list-style: none; }
.example-key li { padding: 4px 8px; border-radius: 6px; color: var(--ink); background: #eef1f9; font-size: 12px; font-weight: 700; }
.example-key [aria-current="true"] { color: #fff; background: var(--blue); }
.lesson-example figcaption, .poster-comparison figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.work-example .design-image-link { margin-top: 12px; }
.lesson-notes h3 { margin: 13px 0 4px; font-size: 15px; }
.lesson-notes p, .lesson-practice p { color: var(--muted); font-size: 14px; }
.lesson-practice details { margin-top: 10px; padding: 0 12px; border-radius: 9px; background: #eff2ff; }
.lesson-practice summary { min-height: 44px; padding: 10px 0; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
.lesson-practice details p { padding: 2px 0 12px; }
.lesson-outline { position: sticky; top: 18px; padding: 15px 12px 10px; }
.lesson-outline h2 { margin: 5px 4px 10px; font-size: 16px; }
.lesson-outline > .chapter-kicker, .lesson-outline > .text-link { margin-left: 4px; }
.lesson-outline li a { display: flex; gap: 6px; align-items: center; min-height: 43px; border-radius: 8px; padding: 6px 5px; font-size: 12px; font-weight: 700; }
.lesson-outline li a:hover { background: var(--canvas); }
.lesson-outline li a[aria-current] { color: var(--blue); background: #eef1ff; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
.segmented button { min-height: 41px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 750; }
.segmented button:hover { border-color: var(--blue); }
.segmented button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.demo-caption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.shape-demo { justify-items: center; }
.pixel-shape, .smooth-shape { width: 112px; aspect-ratio: 1; }
.pixel-shape { display: grid; grid-template-columns: repeat(8, 1fr); }
.pixel-shape i { border: 1px solid #fff7; background: #d7e1ff; }
.pixel-shape .pixel-1, .smooth-shape { background: var(--blue); }
.smooth-shape { border-radius: 50%; }
.delivery-demo { justify-items: center; text-align: center; }
.delivery-ruler { height: 20px; margin: 4px 0; border: 2px solid #3c58b6; border-radius: 4px; background: repeating-linear-gradient(90deg, #7087d4 0 2px, #dce5ff 2px 10px); }
.delivery-0 { width: min(100%, 186px); }
.delivery-1 { width: 42%; }
.delivery-2 { width: 84%; }
.demo-photo { position: relative; width: min(100%, 420px); margin-inline: auto; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 12px; background: #eae1ce; }
.demo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.development-0 img { filter: brightness(.7) saturate(.85); }
.development-1 img { filter: saturate(.85); }
:is(.development-0, .development-1)::after { content: ""; position: absolute; inset: 0; background: #476dcd33; mix-blend-mode: multiply; }
.crop-demo { width: min(100%, 393px); }
.crop-1 { width: min(100%, 262px); aspect-ratio: 1; }
.crop-1 img { object-position: right center; }
.crop-grid { position: absolute; inset: 0; background: linear-gradient(90deg, #fff0 calc(100% - 2px), #fff calc(100% - 2px)) 0 0 / calc(100% / 3) 100%, linear-gradient(#fff0 calc(100% - 2px), #fff calc(100% - 2px)) 0 0 / 100% calc(100% / 3); box-shadow: inset 0 0 0 1px #fff7; }
.placement-demo { max-width: 440px; margin-inline: auto; overflow: hidden; border: 1px solid #e3d7bd; border-radius: 12px; background: #fff6e3; }
.placement-demo .demo-photo { width: 100%; max-height: 210px; border-radius: 0; }
.placement-demo > :is(strong, span) { display: block; padding-inline: 14px; }
.placement-demo > strong { margin-top: 8px; font-size: 20px; }
.placement-demo > span { margin-bottom: 9px; font-size: 13px; }
.placement-1 { padding: 14px; }
.placement-1 .demo-photo { border-radius: 5px; }
.placement-1 > :is(strong, span) { padding-inline: 0; }
.photo-copy > div { position: absolute; top: 42%; right: 5%; color: #fff; line-height: 1.35; }
.photo-copy strong, .photo-copy span { display: block; }
.photo-copy strong { font-size: clamp(16px, 3.2vw, 27px); }
.photo-copy span { margin-top: 3px; font-size: 13px; }
.photo-copy-1 > div { right: auto; left: 4%; color: #254338; }
.photo-copy-1 strong { font-size: clamp(14px, 3.15vw, 20px); }
.photo-copy-2 > div { top: auto; inset-inline: 0; bottom: 0; padding: 9px 15px; background: #233c33; }
.layout-sample, .type-sample { min-height: 170px; padding: 17px clamp(16px, 4vw, 36px); border-radius: 12px; background: #f9edf3; }
.layout-sample dl { margin: 10px 0 0; font-size: 13px; }
.layout-sample dt, .layout-sample dd { margin: 0; }
.layout-stage-0 dl div:nth-child(2), .layout-stage-1 dl div:nth-child(2) { margin-left: 20px; }
.layout-stage-0 dd { margin: 8px 0 3px 10px; }
.layout-sample:not(.layout-stage-0) dl div + div { margin-top: 8px; }
.layout-stage-3 dt, .layout-stage-4 dt { color: #8f365d; font-weight: 800; }
.layout-stage-4 > strong { font-size: 27px; }
.type-sample { display: grid; align-content: center; gap: 6px; }
.type-sample > strong { font-size: clamp(24px, 4vw, 42px); }
.type-sample span { font-size: clamp(14px, 2.4vw, 23px); }
.typeface-0 { font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; }
.typeface-1 { font-family: var(--font); }
.type-sample p { max-width: 23em; font-size: 16px; }
.typesetting-0 { gap: 3px; }
.typesetting-0 strong { font-size: 18px; }
.typesetting-0 p { line-height: 1.18; letter-spacing: -.05em; }
.typesetting-1 strong { font-size: 32px; }
.typesetting-1 p { line-height: 1.8; letter-spacing: .025em; }
.mix-example { display: grid; justify-items: center; padding: 10px 12px; border: 1px solid #dedff2; border-radius: 12px; background: #f1f1fb; }
.mix-circles { position: relative; width: 164px; height: 154px; border-radius: 10px; isolation: isolate; }
.mix-0 .mix-circles { background: #101120; }
.mix-1 .mix-circles { background: #fff; }
.mix-circles i { position: absolute; width: 82px; aspect-ratio: 1; border-radius: 50%; }
.mix-circles i:first-child { inset: 16px auto auto 41px; }
.mix-circles i:nth-child(2) { inset: 54px auto auto 18px; }
.mix-circles i:last-child { inset: 54px 18px auto auto; }
.mix-0 i { mix-blend-mode: screen; }
.mix-0 i:first-child { background: #f00; }
.mix-0 i:nth-child(2) { background: #0f0; }
.mix-0 i:last-child { background: #00f; }
.mix-1 i { mix-blend-mode: multiply; }
.mix-1 i:first-child { background: #00e4ee; }
.mix-1 i:nth-child(2) { background: #ed08a2; }
.mix-1 i:last-child { background: #ffdf18; }
.mix-example ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 14px; margin: 7px 0 0; padding: 0; list-style: none; font-size: 12px; font-weight: 750; }
.color-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.color-samples li { display: grid; overflow: hidden; padding: 5px 5px 7px; border: 1px solid var(--line); border-radius: 9px; text-align: center; font-size: 12px; }
.color-samples i { display: block; min-height: 64px; margin-bottom: 4px; border-radius: 5px; background: var(--swatch); }
.color-samples code { color: var(--muted); font-size: 11px; }
.palette-demo { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 14px; border-radius: 12px; background: #f0f1fc; }
.hue-wheel { position: relative; flex: none; width: 94px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(red, #ff0, lime, #0ff, blue, #f0f, red); }
.hue-wheel::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: #f0f1fc; }
.hue-wheel i { position: absolute; inset: 41px; border: 2px solid #fff; border-radius: 50%; background: #17213b; transform: rotate(var(--angle)) translateY(-39px); }
.palette-card { display: grid; flex: 0 1 218px; gap: 3px; padding: 12px; border-radius: 8px; color: var(--secondary); background: var(--base); }
.palette-card span { font-size: 12px; font-weight: 800; }
.palette-card strong { font-size: clamp(16px, 2.8vw, 24px); }
.palette-card b { justify-self: start; padding: 2px 8px; border-radius: 4px; background: var(--accent-color); color: #fff; font-size: 11px; }
.contrast-sample { display: grid; place-items: center; min-height: 115px; padding: 10px; border-radius: 12px; background: #6b9464; color: #af7574; text-align: center; font-size: clamp(18px, 3vw, 29px); font-weight: 850; }
.contrast-2, .contrast-3 { background: #e4efd8; color: #192f27; }
.contrast-1, .contrast-3 { filter: grayscale(1); }
.poster-comparison .design-image-frame::after { content: ""; position: absolute; inset: 4% auto 4% 3%; width: 46%; border: 2px solid var(--blue); border-radius: 6px; pointer-events: none; }
.poster-comparison[data-focus="1"] .design-image-frame::after { inset-inline: auto 3%; }
.sample-document, .demo-info, .ratio-visual, .mood-board { min-height: 160px; border-radius: 12px; padding: clamp(15px, 3vw, 28px); background: #edf1ff; }
.sample-document { display: grid; align-content: center; gap: 3px; font-size: 13px; }
.hierarchy-0 > * { font-weight: 400; }
.hierarchy-1 { gap: 8px; background: #ecf6e9; }
.hierarchy-1 strong { color: #255638; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.hierarchy-1 b { color: #214d37; font-size: 15px; }
.demo-info { display: grid; align-content: center; gap: 4px; color: #212c65; overflow-wrap: anywhere; }
.demo-info span { font-size: 12px; font-weight: 800; }
.demo-info strong { font-size: clamp(18px, 2.4vw, 29px); line-height: 1.35; }
.demo-info p { font-size: 13px; }
.diagram-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0 0 10px; list-style: none; }
.diagram-steps li { padding: 4px 8px; border: 1px solid #c7d1f6; border-radius: 6px; background: #fff; color: #344589; font-size: 11px; font-weight: 800; }
.diagram-steps li[aria-current] { border-color: var(--blue); background: var(--blue); color: #fff; }
.demo-who, .demo-why, .demo-what, .demo-how { background: #fff0e8; color: #642a25; }
.demo-priority { background: #eaf7ef; color: #1b523f; }
.ratio-visual { display: grid; justify-items: center; align-content: center; gap: 5px; background: #e7f8ee; color: #1b553d; }
.ratio-visual > div { display: flex; gap: 9px; }
.ratio-visual i { width: 22px; height: 34px; border: 2px solid #21835d; border-radius: 5px; background: #21835d; }
.ratio-visual i:last-child { background: #fff; }
.ratio-visual strong { font-size: 28px; line-height: 1; }
.ratio-visual p { font-size: 13px; }
.mood-board { display: grid; align-content: center; justify-items: center; gap: 4px; min-height: 191px; text-align: center; color: #254638; background: #e6ebd6; }
.mood-board i { font-style: normal; font-size: 25px; }
.mood-board > span { font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.mood-board strong { font: 600 clamp(21px, 4vw, 41px)/1.3 "Yu Mincho", serif; }
.mood-1 { background: #ffdf63; color: #902c25; }
.mood-1 i { color: #ab3226; transform: rotate(-15deg) scale(1.2); }
.mood-1 strong { font-family: var(--font); font-weight: 950; transform: rotate(-4deg); }
.shop-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.shop-samples article { min-height: 118px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; border-radius: 8px; padding: 8px; background: #e1f3e9; color: #225442; overflow-wrap: anywhere; }
.shop-samples article > span { font-size: 22px; line-height: 1; }
.shop-samples small { font-size: 10px; }
.shop-0 article:nth-child(2) { align-items: center; text-align: center; flex-direction: column-reverse; background: #fbe1cc; color: #793724; font-family: "Yu Mincho", serif; }
.shop-0 article:nth-child(3) { align-items: flex-end; text-align: end; background: #ece5fa; color: #5e358d; }
.shop-0 article:nth-child(3) strong { font-size: 21px; }
.takeaway { display: flex; gap: 10px; margin: 15px 0; padding: 14px; background: #fff5d1; border-radius: 12px; color: #433711; }
.takeaway h2 { font-size: 15px; }
.takeaway p { margin-top: 3px; font-size: 13.5px; }
.quiz fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz legend { width: 100%; padding: 1px 0 9px; font-weight: 650; }
.quiz-choice { display: flex; align-items: center; min-height: 44px; gap: 8px; margin-bottom: 7px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 9px; cursor: pointer; font-size: 13px; }
.quiz-choice:has(input:checked) { border-color: var(--blue); background: #eef1ff; }
.quiz-choice input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--blue); }
.quiz .button { margin-top: 6px; }
.quiz-feedback { margin-top: 10px; padding: 8px 11px; border-radius: 8px; font-size: 13px; }
.quiz-feedback:empty { margin: 0; padding: 0; }
.is-correct { background: #e4f7e9; color: #225b3d; }
.is-incorrect { background: #fff1e3; color: #762d1f; }
.lesson-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.lesson-actions small { color: var(--muted); font-size: 12px; }

.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: 16px; align-items: start; }
.worksheet h2 { font-size: 18px; }
.worksheet section + section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.worksheet section + section .work-field:first-of-type { padding-top: 12px; }
.worksheet input, .worksheet textarea { display: block; width: 100%; padding: 9px 11px; border: 1px solid #b9c0d2; border-radius: 8px; background: #fff; color: var(--ink); }
.worksheet textarea { resize: vertical; min-height: 75px; }
.worksheet :is(input, textarea)::placeholder { color: #626a7d; }
.topic-label { display: block; margin: 12px 0 5px; font-weight: 800; }
.work-field { padding-top: 18px; }
.work-field label { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.work-field label > span { color: var(--blue); font-size: 18px; font-weight: 850; }
.work-field p { margin: 3px 0 6px; color: var(--muted); font-size: 13px; }
.work-status, .storage-message { margin-top: 12px; color: var(--muted); font-size: 12px; }
.work-example { padding: 15px; background: #eff2ff; }
.work-example h2, .progress-summary h2 { font-size: 18px; }
.work-example > p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.work-example dl { margin: 13px 0 3px; }
.work-example dl div + div { border-top: 1px solid #dce3ff; }
.work-example dl div { padding: 8px 0; }
.work-example dt { color: var(--blue); font-weight: 800; }
.work-example dt span { font-size: 12px; font-weight: 700; }
.work-example dd { margin: 0; font-size: 13px; }
.progress-summary { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(180px, 1fr); align-items: center; gap: 16px; padding: 21px; border: 1px solid #dce3fc; border-radius: var(--radius); background: #edf1ff; }
.progress-summary strong { display: block; color: var(--blue); font-size: 54px; line-height: 1.15; }
.progress-summary strong small { font-size: 20px; }
.progress-summary p { color: var(--muted); font-size: 13px; }
.progress-summary .progress-bar { margin: 0 0 14px; height: 11px; }
.progress-chapters { display: grid; gap: 9px; margin-top: 17px; }
.progress-chapter { display: grid; grid-template-columns: auto 1fr minmax(80px, 27%) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.progress-chapter:hover { border-color: #afbceb; }
.progress-chapter .progress-bar { margin: 0; }

@media (max-width: 1160px) {
  :root { --sidebar-width: 203px; }
  .hero-copy { width: 63%; }
  .hero { min-height: 315px; }
  .chapter-grid { gap: 10px; }
  .chapter-copy { padding-inline: 10px; }
  .chapter-art { height: 112px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 186px; gap: 12px; }
}
@media (max-width: 940px) {
  :root { --sidebar-width: 183px; }
  .sidebar { padding-inline: 11px; }
  .brand { gap: 6px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 9px; }
  .brand strong { font-size: 15px; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-copy { padding-inline: 12px; }
  .chapter-copy h3 { font-size: 16px; }
  .hero { min-height: 300px; }
  .hero-copy { width: 70%; padding-left: 22px; }
  .hero-image { width: 55%; }
  .chapter-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .lesson-outline { position: static; }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { display: none; position: absolute; top: 60px; left: 0; width: min(275px, 91vw); height: auto; padding: 15px; border-bottom: 1px solid var(--line); border-bottom-right-radius: 14px; box-shadow: 4px 10px 24px #202e6128; }
  .sidebar.is-open { display: flex; }
  .main-nav { margin-top: 15px; }
  .sidebar-end { margin-top: 12px; }
  .topbar { padding: 0 14px; min-height: 60px; justify-content: flex-start; gap: 9px; }
  .menu-toggle { display: grid; flex: none; }
  .breadcrumbs { gap: 4px; font-size: 12px; }
  .top-progress { margin-left: auto; }
  .top-progress > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .content { padding: 17px 14px 23px; }
  .hero { min-height: 332px; }
  .hero-copy { width: 62%; }
  .hero-image { width: 56%; }
}
@media (max-width: 530px) {
  .hero { grid-template-rows: auto auto; border-radius: 17px; }
  .hero-copy { width: 100%; padding: 21px 17px 5px; }
  .hero h1 { margin: 10px 0; font-size: clamp(30px, 8.3vw, 43px); }
  .hero p { margin-bottom: 13px; }
  .hero-image { position: static; width: 100%; height: clamp(147px, 48vw, 230px); object-position: center 48%; mask-image: linear-gradient(to bottom, transparent, #000 20%); }
  .curriculum { margin-top: 23px; }
  .section-head { gap: 6px; margin-bottom: 12px; }
  .section-head p { font-size: 12.5px; }
  .course-meta { gap: 11px; }
  .chapter-art { height: 93px; }
  .chapter-copy { padding: 9px 8px 6px; }
  .chapter-copy h3 { font-size: 14px; letter-spacing: -.04em; }
  .chapter-copy p { font-size: 11.5px; }
  .chapter-foot { font-size: 10px; }
  .chapter-arrow { width: 21px; height: 21px; }
  .chapter-arrow svg { width: 13px; height: 13px; }
  .work-banner { grid-template-columns: auto 1fr; padding: 11px; gap: 7px 10px; }
  .work-banner > .text-link { grid-column: 2; min-height: 32px; }
  .catalog-header { padding: 13px; }
  .catalog-header .chapter-art { width: 82px; height: 94px; }
  .catalog-header .chapter-art > i { scale: .75; }
  .lesson-row { padding-inline: 10px; }
  .work-layout { grid-template-columns: 1fr; }
  .progress-summary { grid-template-columns: 1fr; gap: 12px; }
  .progress-chapter { grid-template-columns: auto 1fr auto; }
  .progress-chapter .progress-bar { grid-column: 2; grid-row: 2; }
  .progress-chapter > svg { grid-column: 3; grid-row: 1; }
}
@media (max-width: 380px) {
  .breadcrumbs > a, .breadcrumbs > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .chapter-card:hover { transform: none; }
}
