:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --white: #fff;
  --ink: #1a342c;
  --muted: #50665c;
  --accent: #164d40;
  --line: #dbe4da;
  --tint: #e8f0e7;
  --radius: 20px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); line-height: 1.65; }
main { flex: 1; }
a { color: var(--accent); text-underline-offset: .25em; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #276555; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { position: absolute; z-index: 10; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--white); }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.narrow { width: min(590px, calc(100% - 56px)); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: .93rem; font-weight: 750; letter-spacing: .035em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-icon { width: 35px; height: 35px; display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; gap: 2px; padding: 7px; background: var(--accent); border-radius: 10px; }
.brand-icon i { height: 13px; border: 1px solid #e7f6e2; border-radius: 2px 4px 2px 2px; transform: skewY(12deg); }
.brand-icon i + i { transform: skewY(-12deg); border-radius: 4px 2px 2px 2px; }
.site-header nav { display: flex; gap: clamp(12px, 2.4vw, 32px); align-items: center; }
.site-header nav > a:not(.button) { text-decoration: none; color: var(--muted); font-size: .83rem; white-space: nowrap; }
.site-header nav > a[aria-current="page"] { color: var(--accent); font-weight: 750; }
.site-header nav > a:hover { color: var(--accent); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 1rem; padding: .68rem 1.1rem; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: var(--white); text-decoration: none; font-size: .88rem; font-weight: 750; text-align: center; }
.button:hover { background: #216453; color: var(--white); }
.button.small { min-height: 39px; padding: .4rem .85rem; font-size: .79rem; }
.button.outline { color: var(--accent); border-color: #b9cec1; background: var(--white); }
.button.outline:hover { background: var(--tint); color: var(--accent); }
.button:disabled { color: var(--accent); background: var(--tint); border-color: var(--line); }

.hero { background: #e6eee4; border-bottom: 1px solid #dbe5db; overflow: hidden; }
.hero-inner { min-height: 405px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; }
.hero-copy { padding: 53px 0 60px; position: relative; z-index: 1; }
.hero h1 { margin: 0; color: #18392e; font-size: clamp(2.65rem, 5vw, 4.5rem); letter-spacing: .045em; font-weight: 800; line-height: 1.19; }
.hero p { margin: 20px 0 24px; font-size: .97rem; line-height: 1.9; color: #466052; }
.hero .button { min-width: 170px; }
.hero-art { position: relative; height: 315px; width: min(100%, 460px); justify-self: end; isolation: isolate; }
.hero-orbit { position: absolute; inset: 3% 5% 6% 11%; border-radius: 56% 44% 55% 45%; background: #cbdfcc; transform: rotate(-18deg); }
.hero-orbit::after { content: ""; position: absolute; inset: 8% -10%; border: 1px solid #8ba897; border-radius: 50%; transform: rotate(-30deg); }
.hero-sheet { position: absolute; width: 46%; height: 75%; border-radius: 15px; }
.sheet-back { right: 13%; top: 17%; transform: rotate(16deg); background: #83ad93; box-shadow: 9px 12px 22px #1b493228; }
.sheet-front { right: 27%; top: 12%; padding: 12% 9% 0; transform: rotate(-11deg); background: #f7f4df; box-shadow: 7px 14px 25px #25573c2c; }
.sheet-front i { display: block; height: 2px; width: 95%; margin-bottom: 16%; background: #a4b9a3; border-radius: 10px; }
.sheet-front i:first-child { width: 50%; height: 19%; margin-bottom: 20%; border: 2px solid #629078; background: transparent; border-radius: 50% 50% 47% 53%; transform: rotate(-12deg); }
.sheet-front i:last-child { width: 61%; }
.hero-sun { position: absolute; top: 18%; right: 10%; width: 13%; aspect-ratio: 1; background: #e9c781; border-radius: 50%; }

.catalog, .page { padding-block: 46px 76px; }
.section-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.section-heading h2, .information h2, .lesson-sidebar h2 { margin: 0; font-size: 1.45rem; letter-spacing: .025em; }
.section-heading span { color: var(--muted); font-size: .86rem; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(125px, 190px) minmax(125px, 158px); gap: 12px; }
.filters input, .filters select { min-height: 45px; width: 100%; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .8rem; font-size: .86rem; }
.search { position: relative; }
.search input { padding-left: 38px; }
.magnify { position: absolute; width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; left: 15px; top: 15px; pointer-events: none; }
.magnify::after { content: ""; position: absolute; width: 6px; height: 1.5px; left: 9px; top: 10px; transform: rotate(45deg); transform-origin: left center; background: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.chips button { border: 1px solid var(--line); border-radius: 100px; padding: .38rem .86rem; min-height: 36px; background: var(--white); color: var(--muted); font-size: .8rem; }
.chips button:hover { border-color: #91ad9a; }
.chips button[aria-pressed="true"] { color: var(--accent); border-color: #abc6b6; background: #e0eee1; font-weight: 750; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.course-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.course-card { display: flex; flex-direction: column; }
.course-card a { text-decoration: none; }
.course-card h3 a { color: var(--ink); }
.course-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card-art { position: relative; isolation: isolate; display: block; width: 100%; height: auto; aspect-ratio: 2.01; overflow: hidden; object-fit: cover; }
.card-art span { position: absolute; left: 8%; top: 19%; max-width: 39%; font-family: system-ui, sans-serif; font-weight: 750; font-size: clamp(.61rem, 1.05vw, .78rem); letter-spacing: .15em; }
.card-art i { position: absolute; display: block; }
.art-teal { color: #f2fbeb; background: #2a6656; }
.art-teal i { width: 34%; aspect-ratio: 1; right: 10%; top: 19%; border-radius: 50%; border: 1px solid #b0d3b7; }
.art-teal i:nth-of-type(2) { right: 24%; top: 35%; }
.art-teal i:nth-of-type(3) { right: 5%; top: 56%; width: 22%; background: #9ac7a8; }
.art-sand { color: #4c3923; background: #ead7b7; }
.art-sand i { width: 43%; height: 63%; right: 11%; top: 19%; border: 1px solid #9b6b48; border-radius: 8px; transform: rotate(-9deg); }
.art-sand i:nth-of-type(2) { right: 5%; top: 30%; background: #faedce; }
.art-sand i:nth-of-type(3) { width: 29%; height: 9%; right: 10%; top: 43%; background: #cd9a62; border: 0; }
.art-lilac { color: #433745; background: #dfd3dc; }
.art-lilac i { width: 45%; height: 65%; border: 1px solid #856a85; border-radius: 50% 50% 0 0; right: 8%; bottom: -17%; transform: rotate(-20deg); }
.art-lilac i:nth-of-type(2) { bottom: -2%; right: 12%; }
.art-lilac i:nth-of-type(3) { bottom: 13%; right: 16%; }
.card-body { flex: 1; padding: 17px 19px; display: flex; flex-direction: column; }
.card-kicker { color: #396451; font-size: .77rem; font-weight: 750; letter-spacing: .055em; }
.card-body h3 { margin: 6px 0 7px; font-size: 1.04rem; line-height: 1.5; }
.card-body p { margin: 0 0 16px; color: var(--muted); font-size: .83rem; }
.card-footer { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .78rem; color: var(--muted); }
.card-footer strong { font-size: .96rem; color: var(--ink); }
.card-footer strong.free { color: var(--accent); }
.progress { font-size: .76rem; color: var(--muted); margin: 0 0 13px; }
.progress > div { display: flex; justify-content: space-between; gap: .5rem; }
progress { display: block; width: 100%; height: 8px; margin-top: 5px; accent-color: var(--accent); }
.empty { color: var(--muted); margin: 0; padding: 16px 19px; background: var(--white); border: 1px dashed #bacdc0; border-radius: 11px; grid-column: 1 / -1; font-size: .9rem; }
.status { padding-block: 50px; }

.breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; color: var(--muted); font-size: .8rem; }
.page-heading h1, .notice h1 { font-size: clamp(1.6rem, 3.2vw, 2.55rem); line-height: 1.35; margin: 0 0 10px; }
.page-heading .card-kicker { margin-bottom: 9px; }
.page-heading p, .notice p { color: var(--muted); margin: 0; }
.detail-layout, .lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); align-items: start; gap: 30px; }
.detail-layout { grid-template-areas: "heading overview" "details overview"; row-gap: 1.3rem; }
.detail-layout .page-heading { grid-area: heading; }
.detail-information { grid-area: details; }
.detail-information .information:first-child { margin-top: 0; }
.overview { grid-area: overview; }
.information { margin-block: 29px; }
.information > h2 { margin-bottom: 10px; }
.information > p { margin-block: 0; color: var(--muted); }
.overview-body { padding: 18px 22px 22px; }
.overview-body .overview-price { font-size: 1.6rem; font-weight: 750; color: var(--ink); }
.overview-price small { font-size: .8rem; font-weight: 400; }
.overview-body p { margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.overview-body .button { width: 100%; margin-top: 8px; }
.overview-body p.subtle { margin: 11px 0 0; font-size: .76rem; }
.curriculum-section { border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; margin-bottom: 12px; }
.curriculum-section h3 { padding: 10px 14px; margin: 0; background: #eaf0e8; font-size: .86rem; }
.curriculum-section ul { list-style: none; margin: 0; padding: 0; }
.curriculum-section li + li { border-top: 1px solid var(--line); }
.curriculum-section a { display: flex; align-items: baseline; gap: 11px; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: .86rem; }
.curriculum-section a:hover, .curriculum-section a[aria-current="page"] { background: #f0f6ef; }
.curriculum-section a:focus-visible { outline-offset: -3px; }
.curriculum-section strong { display: block; font-weight: 650; }
.curriculum-section small, .lesson-symbol { color: var(--muted); }
.lesson-sidebar h2 { margin-bottom: 12px; }
.content-panel { padding: clamp(20px, 3.2vw, 37px); }
.content-panel .page-heading h1 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
.prose { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 8px; }
.prose h2 { font-size: 1.22rem; margin-top: 24px; }
.prose li + li { margin-top: 5px; }
.video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin-top: 14px; }
.lesson-actions, .login-options { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 24px 0 17px; }
.lesson-actions [role="status"], #login-message { color: var(--muted); font-size: .81rem; }
.lesson-navigation { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; padding-top: 15px; font-size: .82rem; }
.notice { padding: clamp(23px, 4vw, 38px); }
.notice > .button { margin: 16px 6px 0 0; }
.notice > a:not(.button) { display: inline-block; margin-top: 14px; font-size: .82rem; }

.site-footer { background: #e9eee7; border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; color: var(--muted); }
.footer-inner small { font-size: .73rem; }

@media (max-width: 850px) {
  .hero-inner { min-height: 370px; }
  .hero-art { height: 245px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout, .lesson-layout { gap: 19px; grid-template-columns: minmax(0, 1fr) minmax(210px, .62fr); }
}

@media (max-width: 620px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: 0 10px; padding-block: 9px; }
  .brand { font-size: .8rem; gap: 7px; }
  .brand-icon { width: 29px; height: 29px; padding: 6px; }
  .brand-icon i { height: 11px; }
  .site-header nav { gap: 12px; }
  .site-header nav > a:not(.button), .button.small { font-size: .72rem; }
  .button.small { min-height: 34px; padding: .29rem .55rem; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 31px 0 5px; }
  .hero h1 { font-size: clamp(2.25rem, 8vw, 3.1rem); }
  .hero p { font-size: .86rem; margin: 12px 0 13px; }
  .hero-art { height: 137px; width: min(248px, 80%); margin-bottom: 8px; }
  .catalog, .page { padding-block: 31px 47px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filters .search { grid-column: 1 / -1; }
  .course-grid, .detail-layout, .lesson-layout { grid-template-columns: 1fr; }
  .card-art { aspect-ratio: 2.25; }
  .detail-layout { grid-template-areas: "heading" "overview" "details"; }
  .overview .card-art { display: none; }
  .footer-inner { min-height: 64px; }
}

@media (max-width: 374px) {
  .header-inner { justify-content: flex-start; }
  .site-header nav { width: 100%; justify-content: space-between; margin-top: 7px; }
}

.preview-notice { padding: .42rem 1rem; text-align: center; background: #e9eee7; color: #315448; font-size: .8rem; }
