:root {
  --ink: #16243a;
  --ink-2: #33435a;
  --muted: #6b7788;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: #dce3ec;
  --line-strong: #c8d2df;
  --blue: #2a5bd7;
  --blue-dark: #1f47ae;
  --blue-soft: #eef3ff;
  --teal: #128a78;
  --teal-soft: #eaf7f4;
  --amber: #a96b16;
  --amber-soft: #fff6e7;
  --red: #b44949;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 16px 42px rgba(22, 36, 58, .08);
  --materials-space-blue: #3D6FBE;
  --materials-ice-highlight: #78AEFF;
  --materials-deep-space: #1F416F;
  --materials-graphite: #25292D;
  --materials-silver: #E8EBEF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.yjh-body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
button, input, textarea { color: inherit; font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #9bb4f3; outline-offset: 3px; }
.yjh-skip { position: fixed; z-index: 100; top: -80px; left: 12px; padding: 10px 15px; color: #fff; background: var(--ink); }
.yjh-skip:focus { top: 12px; }

.yjh-staging-bar { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 10px; padding: 6px 18px; color: var(--muted); background: #f0f3f7; border-bottom: 1px solid var(--line); font-size: .72rem; }
.yjh-staging-bar strong { color: var(--ink-2); }
.yjh-header, .yjh-shell, .yjh-footer { width: min(100% - 48px, 1160px); margin-inline: auto; }
.yjh-header { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 78px; align-items: center; gap: 24px; }
.yjh-brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; text-decoration: none; }
.yjh-brand > span { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--blue); border-radius: 10px; font-size: 1.25rem; font-weight: 800; }
.yjh-brand strong, .yjh-brand small { display: block; }
.yjh-brand strong { font-size: .84rem; letter-spacing: .14em; }
.yjh-brand small { color: var(--muted); font: 700 .5rem var(--utility); letter-spacing: .1em; }
.yjh-preview-switcher { display: flex; gap: 3px; padding: 4px; background: #edf1f6; border-radius: 10px; }
.yjh-preview-switcher a { min-height: 34px; padding: 6px 13px; border-radius: 7px; color: var(--muted); font-size: .72rem; font-weight: 800; text-decoration: none; }
.yjh-preview-switcher a.is-current { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(22, 36, 58, .08); }
.yjh-environment { justify-self: end; color: var(--muted); font: 700 .62rem var(--utility); letter-spacing: .12em; }
.yjh-kicker { margin: 0 0 10px; color: var(--blue); font: 800 .63rem var(--utility); letter-spacing: .12em; }
.yjh-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: #fff; font-size: .78rem; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.yjh-button:hover { transform: translateY(-1px); }
.yjh-button.is-primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 20px rgba(42, 91, 215, .2); }
.yjh-button.is-primary:hover { background: var(--blue-dark); }
.yjh-text-link, .yjh-card-link { color: var(--blue); font-size: .76rem; font-weight: 900; text-underline-offset: 4px; }
.yjh-section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 40px; align-items: end; margin-bottom: 28px; }
.yjh-section-heading h2 { max-width: 700px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.18; letter-spacing: -.035em; }
.yjh-section-heading > p { margin: 0; color: var(--ink-2); font-size: .84rem; line-height: 1.8; }
.yjh-section-heading.is-compact h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }

/* Entry */
.yjh-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; padding: 46px 0 88px; }
.yjh-intro-copy, .yjh-intro-baton { border: 1px solid var(--line); border-radius: 18px; }
.yjh-intro-copy { padding: clamp(42px, 7vw, 76px); background: #fff; }
.yjh-intro h1 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 1.08; letter-spacing: -.055em; }
.yjh-intro-copy > p:not(.yjh-kicker) { max-width: 680px; margin: 26px 0; color: var(--ink-2); font-size: .95rem; line-height: 1.9; }
.yjh-intro-actions { display: flex; align-items: center; gap: 22px; }
.yjh-intro-baton { display: flex; min-height: 440px; padding: 38px; flex-direction: column; justify-content: center; color: #fff; background: var(--ink); }
.yjh-intro-baton .yjh-kicker { color: #91acf4; }
.yjh-intro-baton > strong { font-size: 2rem; letter-spacing: -.03em; }
.yjh-intro-baton ol { margin: 30px 0 24px; padding: 0; list-style: none; }
.yjh-intro-baton li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .82rem; font-weight: 800; }
.yjh-intro-baton li span { display: grid; width: 24px; height: 24px; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font: 800 .62rem var(--utility); }
.yjh-intro-baton > p:last-child { margin: 0; color: #bfc9d8; font-size: .75rem; }
.yjh-primary-programs { padding-bottom: 96px; }
.yjh-primary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yjh-program-card { position: relative; display: flex; min-height: 560px; padding: clamp(30px, 4.4vw, 50px); flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.yjh-program-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--blue); content: ""; }
.yjh-program-card.is-toeic::before { background: var(--teal); }
.yjh-program-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 800 .62rem var(--utility); letter-spacing: .1em; }
.yjh-program-card-top strong { color: var(--teal); padding: 6px 9px; background: var(--teal-soft); border-radius: 999px; font-size: .62rem; letter-spacing: 0; }
.yjh-program-card h3 { margin: 50px 0 12px; font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.yjh-program-goal { margin: 0; font-size: 1.05rem; font-weight: 900; line-height: 1.65; }
.yjh-program-summary { margin: 15px 0 28px; color: var(--ink-2); font-size: .82rem; }
.yjh-route-line { margin-top: auto; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.yjh-route-line span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .67rem; font-weight: 800; }
.yjh-route-line strong { font-size: .86rem; }
.yjh-trial-offer { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: 18px; padding: 17px; background: var(--amber-soft); border-radius: 11px; }
.yjh-trial-offer div span { display: block; color: var(--amber); font-size: .64rem; font-weight: 900; }
.yjh-trial-offer div strong { font-size: 1.45rem; }
.yjh-trial-offer p { margin: 0; color: var(--amber); font-size: .65rem; font-weight: 800; text-align: right; }
.yjh-card-link { margin-top: 20px; text-decoration: none; }
.yjh-card-link span { margin-left: 7px; }
.yjh-home-principle { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 96px; padding: clamp(42px, 6vw, 66px); color: #fff; background: var(--ink); border-radius: 18px; }
.yjh-home-principle .yjh-kicker { color: #91acf4; }
.yjh-home-principle h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; letter-spacing: -.035em; }
.yjh-principle-list p { margin: 0; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.yjh-principle-list p:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.yjh-principle-list span, .yjh-principle-list strong { display: block; }
.yjh-principle-list span { color: #9fb0c9; font: 800 .61rem var(--utility); letter-spacing: .1em; }
.yjh-principle-list strong { margin-top: 6px; font-size: .84rem; }
.yjh-support-programs { padding-bottom: 100px; }
.yjh-support-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.yjh-support-list article { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.25fr) 80px; gap: 28px; align-items: center; min-height: 112px; padding: 22px 28px; }
.yjh-support-list article + article { border-top: 1px solid var(--line); }
.yjh-support-list article > div span { color: var(--muted); font: 800 .56rem var(--utility); letter-spacing: .1em; }
.yjh-support-list h3 { margin: 4px 0 0; font-size: 1.35rem; }
.yjh-support-list p { margin: 0; color: var(--ink-2); font-size: .77rem; }
.yjh-support-list article > strong { justify-self: end; color: var(--muted); padding: 5px 9px; background: #f1f4f8; border-radius: 999px; font-size: .65rem; }

/* Learning home */
.yjh-home-top { display: flex; align-items: end; justify-content: space-between; gap: 26px; padding: 50px 0 24px; }
.yjh-home-top h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.18; letter-spacing: -.04em; }
.yjh-contract-chip { display: flex; min-width: 260px; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .72rem; }
.yjh-contract-chip span { font-weight: 800; }
.yjh-contract-chip strong { color: var(--teal); padding: 4px 8px; background: var(--teal-soft); border-radius: 999px; font-size: .64rem; }
.yjh-contract-chip.is-trial strong { color: var(--amber); background: var(--amber-soft); }
.yjh-trial-status { display: flex; align-items: center; gap: 28px; margin-bottom: 14px; padding: 13px 16px; color: var(--ink-2); background: var(--amber-soft); border: 1px solid #f1ddbb; border-radius: 10px; }
.yjh-trial-status div { display: flex; align-items: baseline; gap: 8px; }
.yjh-trial-status div span { color: var(--amber); font-size: .63rem; font-weight: 900; }
.yjh-trial-status div strong { font-size: .76rem; }
.yjh-trial-status p { margin: 0 0 0 auto; color: var(--amber); font-size: .68rem; font-weight: 800; }
.yjh-today { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.yjh-today-main { display: flex; min-height: 490px; padding: clamp(36px, 5.4vw, 64px); flex-direction: column; }
.yjh-status-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; font-weight: 900; }
.yjh-state-dot { display: block; width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }
.yjh-today-program { margin: 65px 0 8px; color: var(--blue); font: 800 .62rem var(--utility); letter-spacing: .1em; }
.yjh-today h2 { max-width: 650px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; letter-spacing: -.04em; }
.yjh-today-description { max-width: 650px; margin: 18px 0 30px; color: var(--ink-2); font-size: .86rem; }
.yjh-today-actions { display: flex; align-items: center; gap: 17px; margin-top: auto; }
.yjh-today-actions > span { max-width: 260px; color: var(--muted); font-size: .66rem; }
.yjh-baton { padding: clamp(28px, 4vw, 42px); color: #fff; background: var(--ink); }
.yjh-baton-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.yjh-baton-heading .yjh-kicker { color: #91acf4; }
.yjh-baton-heading h3 { margin: 0; font-size: 1.4rem; }
.yjh-baton-heading > span { padding: 5px 8px; color: #bdc8d9; background: rgba(255, 255, 255, .08); border-radius: 999px; font-size: .62rem; font-weight: 800; }
.yjh-baton ol { margin: 26px 0 0; padding: 0; list-style: none; }
.yjh-baton li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; min-height: 78px; }
.yjh-step-number { position: relative; z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; color: #c9d4e4; background: #263750; border: 1px solid #465872; border-radius: 50%; font: 800 .6rem var(--utility); }
.yjh-baton li:not(:last-child) .yjh-step-number::after { position: absolute; z-index: -1; top: 27px; bottom: -52px; left: 50%; width: 1px; background: #405069; content: ""; }
.yjh-baton li small, .yjh-baton li strong { display: inline-block; }
.yjh-baton li small { margin-right: 9px; color: #95a8c2; font: 800 .54rem var(--utility); letter-spacing: .08em; }
.yjh-baton li strong { font-size: .84rem; }
.yjh-baton li p { margin: 2px 0 0; color: #bdc8d9; font-size: .65rem; }
.yjh-baton-note { margin: 10px 0 0; padding-top: 15px; color: #9daac0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .64rem; }
.yjh-progress-section, .yjh-program-section { padding: 88px 0 0; }
.yjh-growth-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.yjh-growth-grid article { min-height: 150px; padding: 26px; }
.yjh-growth-grid article + article { border-left: 1px solid var(--line); }
.yjh-growth-grid span, .yjh-growth-grid strong, .yjh-growth-grid small { display: block; }
.yjh-growth-grid span { color: var(--muted); font-size: .68rem; font-weight: 900; }
.yjh-growth-grid strong { margin: 32px 0 4px; font-size: 1.35rem; }
.yjh-growth-grid small { color: var(--muted); font-size: .66rem; }
.yjh-state-explainer { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; overflow: hidden; background: var(--blue-soft); border: 1px solid #d7e1fb; border-radius: 12px; }
.yjh-state-explainer div { padding: 18px 22px; }
.yjh-state-explainer div + div { border-left: 1px solid #d7e1fb; }
.yjh-state-explainer span { display: block; color: var(--blue); font-size: .65rem; font-weight: 900; }
.yjh-state-explainer strong { display: block; margin-top: 4px; font-size: .8rem; }
.yjh-other-main article { display: grid; grid-template-columns: minmax(130px, .45fr) minmax(170px, .55fr) minmax(0, 1fr) auto; gap: 25px; align-items: center; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.yjh-other-main article > div { align-self: start; }
.yjh-other-main article > div p { margin: 8px 0 0; color: var(--muted); font: 800 .57rem var(--utility); letter-spacing: .08em; }
.yjh-state-label { color: var(--muted); padding: 4px 7px; background: #eef1f5; border-radius: 999px; font-size: .62rem; font-weight: 900; }
.yjh-other-main h3 { margin: 0; font-size: 1.8rem; }
.yjh-other-main article > p { margin: 0; color: var(--ink-2); font-size: .78rem; }
.yjh-other-main article > strong { color: var(--ink-2); font-size: .73rem; }
.yjh-other-main a { color: var(--blue); font-size: .73rem; font-weight: 900; text-decoration: none; }
.yjh-support-strip { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; margin: 12px 0 100px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.yjh-support-strip > div span, .yjh-support-strip > div strong { display: block; }
.yjh-support-strip > div span { color: var(--muted); font: 800 .56rem var(--utility); letter-spacing: .08em; }
.yjh-support-strip > div strong { margin-top: 5px; font-size: .85rem; }
.yjh-support-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.yjh-support-strip li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 16px; border-left: 1px solid var(--line); font-size: .7rem; }
.yjh-support-strip li span { font-weight: 800; }
.yjh-support-strip li strong { color: var(--muted); font-size: .62rem; }

/* Roadmaps */
.yjh-context-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0 16px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.yjh-context-nav a { text-underline-offset: 4px; }
.yjh-roadmap-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.yjh-roadmap-intro > div { padding: clamp(40px, 6vw, 72px); }
.yjh-roadmap-intro h1 { max-width: 760px; margin: 0; font-size: clamp(2.7rem, 5.4vw, 4.9rem); line-height: 1.12; letter-spacing: -.055em; }
.yjh-roadmap-intro > div > p:last-child { max-width: 710px; margin: 25px 0 0; color: var(--ink-2); font-size: .9rem; }
.yjh-roadmap-intro aside { display: flex; padding: 40px; flex-direction: column; justify-content: center; color: #fff; background: var(--ink); }
.yjh-roadmap-intro aside span { color: #91acf4; font: 800 .6rem var(--utility); letter-spacing: .1em; }
.yjh-roadmap-intro aside strong { margin: 26px 0 18px; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.45; }
.yjh-roadmap-intro aside p { margin: 0; color: #bdc8d9; font-size: .72rem; }
.yjh-roadmap-intro.is-toeic aside { background: #163c3e; }
.yjh-roadmap-intro.is-toeic aside span { color: #74d2c6; }
.yjh-roadmap-intro.is-preparing aside { background: #3b4758; }
.yjh-feature-flow, .yjh-toeic-map { padding: 90px 0 0; }
.yjh-flow-shell { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.yjh-flow-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.yjh-flow-tabs button { min-height: 112px; padding: 20px; border: 0; border-right: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.yjh-flow-tabs button:last-child { border-right: 0; }
.yjh-flow-tabs button.is-active { color: #fff; background: var(--ink); }
.yjh-flow-tabs button span, .yjh-flow-tabs button small, .yjh-flow-tabs button strong { display: block; }
.yjh-flow-tabs button span { color: var(--muted); font: 800 .58rem var(--utility); }
.yjh-flow-tabs button small { margin: 15px 0 2px; color: var(--blue); font-size: .62rem; font-weight: 900; }
.yjh-flow-tabs button strong { font-size: .82rem; letter-spacing: .02em; }
.yjh-flow-tabs button.is-active span, .yjh-flow-tabs button.is-active small { color: #9fb5ef; }
.yjh-flow-panels article { display: none; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 60px; padding: clamp(34px, 5.5vw, 64px); }
.yjh-flow-panels article.is-active { display: grid; }
.yjh-flow-panels article > div > span { color: var(--blue); font: 800 .6rem var(--utility); letter-spacing: .1em; }
.yjh-flow-panels h3 { max-width: 650px; margin: 13px 0 20px; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.25; letter-spacing: -.035em; }
.yjh-flow-panels article > div > p { margin: 0; color: var(--ink-2); font-size: .82rem; }
.yjh-flow-panels dl { margin: 0; padding: 4px 0; }
.yjh-flow-panels dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.yjh-flow-panels dt { color: var(--muted); font-size: .64rem; font-weight: 900; }
.yjh-flow-panels dd { margin: 5px 0 0; font-size: .75rem; font-weight: 800; }
.yjh-loop-back { margin: 0; padding: 15px 25px; color: #fff; background: var(--blue); font-size: .7rem; font-weight: 900; text-align: center; }
.yjh-growth-targets { margin-top: 18px; padding: clamp(40px, 6vw, 68px); color: #fff; background: var(--ink); border-radius: 16px; }
.yjh-growth-targets header { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: end; }
.yjh-growth-targets header .yjh-kicker { grid-column: 1 / -1; color: #91acf4; margin-bottom: 0; }
.yjh-growth-targets h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.2; }
.yjh-growth-targets header > p { margin: 0; color: #bdc8d9; font-size: .75rem; }
.yjh-growth-targets > div { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.yjh-growth-targets article { min-height: 180px; padding: 25px; }
.yjh-growth-targets article + article { border-left: 1px solid rgba(255, 255, 255, .15); }
.yjh-growth-targets article span { color: #9fb0c9; font-size: .65rem; font-weight: 900; }
.yjh-growth-targets article strong { display: block; margin: 22px 0 8px; font-size: 2.6rem; }
.yjh-growth-targets article p { margin: 0; color: #bdc8d9; font-size: .7rem; }
.yjh-growth-targets > small { display: block; margin-top: 16px; color: #9fb0c9; font-size: .63rem; }
.yjh-mastery { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 90px 0; }
.yjh-mastery h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; letter-spacing: -.035em; }
.yjh-mastery-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.yjh-mastery-grid article { min-height: 250px; padding: 28px; }
.yjh-mastery-grid article + article { border-left: 1px solid var(--line); }
.yjh-mastery-grid span { color: var(--blue); font-size: .64rem; font-weight: 900; }
.yjh-mastery-grid h3 { margin: 60px 0 12px; font-size: 1.25rem; line-height: 1.4; }
.yjh-mastery-grid p { margin: 0; color: var(--ink-2); font-size: .72rem; }
.yjh-lane-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.yjh-lane-grid article { padding: clamp(32px, 5vw, 54px); }
.yjh-lane-grid article + article { border-left: 1px solid var(--line); }
.yjh-lane-grid article > span { color: var(--teal); font: 800 .62rem var(--utility); letter-spacing: .1em; }
.yjh-lane-grid h3 { min-height: 100px; margin: 35px 0; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.35; }
.yjh-lane-grid ul { margin: 0; padding: 0; list-style: none; }
.yjh-lane-grid li { display: grid; grid-template-columns: 95px 1fr; gap: 18px; padding: 19px 0; border-top: 1px solid var(--line); }
.yjh-lane-grid li strong { font-size: .75rem; }
.yjh-lane-grid li p { margin: 0; color: var(--ink-2); font-size: .72rem; }
.yjh-toeic-cycle { margin-top: 18px; padding: clamp(40px, 6vw, 66px); color: #fff; background: #163c3e; border-radius: 16px; }
.yjh-toeic-cycle .yjh-kicker { color: #74d2c6; }
.yjh-toeic-cycle h2 { max-width: 680px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; }
.yjh-toeic-cycle ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 45px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.yjh-toeic-cycle li { min-height: 220px; padding: 24px; }
.yjh-toeic-cycle li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.yjh-toeic-cycle li > span { color: #74d2c6; font: 800 .6rem var(--utility); }
.yjh-toeic-cycle li small { display: block; margin-top: 50px; color: #7fafac; font: 800 .54rem var(--utility); letter-spacing: .1em; }
.yjh-toeic-cycle li h3 { margin: 4px 0 9px; font-size: 1.35rem; }
.yjh-toeic-cycle li p { margin: 0; color: #c2d3d2; font-size: .69rem; }
.yjh-measure-list { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; align-items: start; padding: 90px 0; }
.yjh-measure-list h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.22; }
.yjh-measure-list dl { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.yjh-measure-list dl div { display: grid; grid-template-columns: minmax(145px, .55fr) minmax(0, 1.45fr); gap: 20px; padding: 20px 23px; }
.yjh-measure-list dl div + div { border-top: 1px solid var(--line); }
.yjh-measure-list dt { font-size: .74rem; font-weight: 900; }
.yjh-measure-list dd { margin: 0; color: var(--ink-2); font-size: .72rem; }
.yjh-preparing-note { margin: 18px 0 90px; padding: 35px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.yjh-preparing-note h2 { margin: 0; font-size: 1.45rem; }
.yjh-preparing-note p { margin: 9px 0 0; color: var(--muted); font-size: .76rem; }
.yjh-roadmap-action { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; margin-bottom: 80px; padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.yjh-roadmap-action h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.35rem); }
.yjh-roadmap-action p:last-child { margin: 10px 0 0; color: var(--ink-2); font-size: .76rem; }

/* Materials catalog */
.yjh-materials-page { color: var(--materials-graphite); background: var(--materials-silver); }
.yjh-materials-shell { padding-top: 28px; }
.yjh-materials-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); min-height: 560px; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--materials-graphite) 0%, var(--materials-deep-space) 100%); border-radius: 24px; box-shadow: 0 24px 60px rgba(31, 65, 111, .18); }
.yjh-materials-hero-copy { display: flex; padding: clamp(44px, 7vw, 82px); flex-direction: column; justify-content: center; }
.yjh-materials-kicker { margin: 0 0 22px; color: var(--materials-ice-highlight); font: 700 .68rem var(--utility); letter-spacing: .16em; }
.yjh-materials-hero h1 { max-width: 700px; margin: 0; font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -.055em; }
.yjh-materials-hero-copy > p:last-child { max-width: 650px; margin: 28px 0 0; color: var(--materials-silver); font-size: 1rem; font-weight: 500; line-height: 1.9; }
.yjh-materials-orbit { position: relative; display: flex; padding: clamp(38px, 5vw, 62px); flex-direction: column; justify-content: center; background: rgba(31, 65, 111, .38); border-left: 1px solid rgba(120, 174, 255, .25); }
.yjh-materials-orbit > p { margin: 0 0 24px; color: var(--materials-ice-highlight); font: 700 .62rem var(--utility); letter-spacing: .16em; }
.yjh-materials-orbit ol { position: relative; margin: 0; padding: 0; list-style: none; }
.yjh-materials-orbit ol::before { position: absolute; top: 28px; bottom: 28px; left: 22px; width: 1px; background: linear-gradient(var(--materials-ice-highlight), rgba(120, 174, 255, .18)); content: ""; }
.yjh-materials-orbit li { position: relative; }
.yjh-materials-orbit a { display: grid; grid-template-columns: 46px 1fr; gap: 0 16px; min-height: 102px; align-content: center; color: #fff; text-decoration: none; }
.yjh-materials-orbit a > span { position: relative; z-index: 1; display: grid; grid-row: 1 / 3; width: 46px; height: 46px; place-items: center; color: var(--materials-deep-space); background: #fff; border: 3px solid var(--materials-ice-highlight); border-radius: 50%; font: 700 .66rem var(--utility); box-shadow: 0 0 24px rgba(120, 174, 255, .28); }
.yjh-materials-orbit strong { align-self: end; font-size: 1rem; font-weight: 700; }
.yjh-materials-orbit small { align-self: start; color: #c9d8ed; font: 600 .56rem var(--utility); letter-spacing: .1em; }
.yjh-materials-catalog { padding: 96px 0 24px; }
.yjh-material-group { scroll-margin-top: 24px; padding: 0 0 88px; }
.yjh-material-group-heading { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: end; margin-bottom: 28px; }
.yjh-material-group-heading > div > p { margin: 0 0 7px; color: var(--materials-space-blue); font: 700 .62rem var(--utility); letter-spacing: .14em; }
.yjh-material-group-heading h2 { margin: 0; color: var(--materials-deep-space); font-size: clamp(2rem, 3.6vw, 3.15rem); font-weight: 700; line-height: 1.18; letter-spacing: -.04em; }
.yjh-material-group-heading > p { max-width: 620px; margin: 0; color: var(--materials-graphite); font-size: .92rem; font-weight: 500; line-height: 1.8; }
.yjh-materials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.yjh-material-card { display: flex; min-height: 390px; padding: 30px; flex-direction: column; background: #fff; border: 1px solid #d5dbe4; border-radius: 16px; box-shadow: 0 12px 32px rgba(37, 41, 45, .06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.yjh-material-card:hover { transform: translateY(-3px); border-color: var(--materials-ice-highlight); box-shadow: 0 18px 38px rgba(31, 65, 111, .12); }
.yjh-material-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yjh-material-card-top > span { color: var(--materials-space-blue); font: 700 .58rem var(--utility); letter-spacing: .1em; }
.yjh-material-card-top > small { padding: 5px 8px; color: var(--materials-deep-space); background: #eef4fc; border-radius: 999px; font-size: .65rem; font-weight: 700; }
.yjh-material-card h3 { margin: 44px 0 14px; color: var(--materials-graphite); font-size: clamp(1.55rem, 2.6vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.yjh-material-card > p { margin: 0; color: #3f4852; font-size: .82rem; font-weight: 500; line-height: 1.8; }
.yjh-material-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 28px; padding: 0; list-style: none; }
.yjh-material-card li { padding: 5px 8px; color: #46566a; background: var(--materials-silver); border-radius: 6px; font-size: .64rem; font-weight: 700; }
.yjh-material-card > a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 16px; color: #fff; background: var(--materials-space-blue); border-radius: 9px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.yjh-material-card > a:hover { background: var(--materials-deep-space); }
.yjh-material-card > a .yjh-material-arrow { color: var(--materials-ice-highlight); font-size: 1rem; }
.yjh-materials-note { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 54px; align-items: center; margin-bottom: 88px; padding: clamp(36px, 5vw, 58px); color: #fff; background: var(--materials-deep-space); border-radius: 18px; }
.yjh-materials-note div > p { margin: 0 0 9px; color: var(--materials-ice-highlight); font: 700 .6rem var(--utility); letter-spacing: .12em; }
.yjh-materials-note h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.3; }
.yjh-materials-note > p { margin: 0; color: var(--materials-silver); font-size: .86rem; font-weight: 500; line-height: 1.85; }

/* Materials catalog v2: choose first, explain second */
.yjh-materials-page { background: #f5f7fa; }
.yjh-header.is-materials-only { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 28px; }
.yjh-site-nav { display: flex; gap: 4px; padding: 4px; background: var(--materials-silver); border: 1px solid #D6DEE8; border-radius: 12px; }
.yjh-site-nav a { min-height: 38px; padding: 8px 16px; color: var(--materials-deep-space); border-radius: 8px; font-size: .76rem; font-weight: 700; text-decoration: none; }
.yjh-site-nav a:hover { background: #FFFFFF; }
.yjh-site-nav a.is-current { color: #FFFFFF; background: var(--materials-space-blue); box-shadow: 0 5px 14px rgba(61, 111, 190, .20); }
.yjh-materials-shell { padding-top: 0; }
.yjh-materials-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 58px 0 30px; border-bottom: 1px solid #cfd7e2; }
.yjh-materials-intro h1 { margin: 0; color: var(--materials-graphite); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.12; letter-spacing: -.05em; }
.yjh-materials-intro > p { max-width: 470px; margin: 0; color: #48525e; font-size: 1rem; font-weight: 500; line-height: 1.8; }
.yjh-materials-list { padding: 28px 0 88px; }
.yjh-materials-list > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.yjh-materials-list > header h2 { margin: 0; color: var(--materials-deep-space); font-size: 1.3rem; font-weight: 700; }
.yjh-materials-list > header span { color: #667180; font-size: .78rem; font-weight: 700; }
.yjh-materials-list .yjh-materials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.yjh-materials-list .yjh-material-card { min-height: 318px; padding: 25px; border-color: #d6dde7; border-radius: 13px; box-shadow: none; }
.yjh-materials-list .yjh-material-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 65, 111, .09); }
.yjh-materials-list .yjh-material-card-top > span { color: var(--materials-space-blue); font: 700 .69rem var(--body); letter-spacing: 0; }
.yjh-materials-list .yjh-material-card h3 { margin: 24px 0 10px; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.yjh-materials-list .yjh-material-card > p { min-height: 4.4em; margin-bottom: 24px; font-size: .8rem; }
.yjh-materials-list .yjh-material-card ul { margin: 18px 0 22px; }
.yjh-materials-list .yjh-material-card > a { min-height: 44px; }

/* Japanese first; English stays visible without changing the catalog structure. */
.yjh-materials-page .yjh-en { display: block; margin-top: 4px; font-family: Inter, Arial, sans-serif; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.yjh-materials-title-en { margin: 12px 0 0; color: var(--materials-deep-space); font: 600 clamp(1.05rem, 2vw, 1.35rem)/1.4 Inter, Arial, sans-serif; }
.yjh-materials-intro > p .yjh-en { font-size: .9rem; }
.yjh-materials-list > header h2 small { display: inline-block; margin-left: 8px; font: 600 .85rem/1.5 Inter, Arial, sans-serif; }
.yjh-site-nav a { text-align: center; }
.yjh-site-nav .yjh-en { margin-top: 1px; font-size: .75rem; font-weight: 600; }
.yjh-material-card-top { align-items: flex-start; flex-wrap: wrap; }
.yjh-material-card-top .yjh-en { font-size: .75rem; }
.yjh-materials-list .yjh-material-card-top > span { color: var(--materials-deep-space); }
.yjh-material-card-top > small { border-radius: 10px; }
.yjh-materials-list .yjh-material-card h3 .yjh-en { color: var(--materials-deep-space); font-size: 1rem; font-weight: 600; }
.yjh-materials-list .yjh-material-card > p .yjh-en { margin-top: 8px; font-size: .85rem; line-height: 1.6; }
.yjh-material-card li .yjh-en { margin-top: 2px; font-size: .75rem; }
.yjh-materials-list .yjh-material-card > a { min-height: 60px; padding-block: 8px; }
.yjh-material-action-label { color: #fff; }
.yjh-material-action-label .yjh-en { margin-top: 0; font-size: .85rem; font-weight: 600; }
.yjh-materials-page .yjh-footer .yjh-en { font-size: .8rem; }

@media (min-width: 641px) and (max-width: 900px) {
  .yjh-materials-list .yjh-materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.yjh-footer { display: flex; min-height: 110px; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .7rem; }
.yjh-footer div strong, .yjh-footer div span { display: block; }
.yjh-footer div strong { color: var(--ink); letter-spacing: .14em; }
.yjh-footer div span { font: 700 .52rem var(--utility); letter-spacing: .1em; }
.yjh-toast { position: fixed; z-index: 90; right: 20px; bottom: 20px; max-width: 380px; padding: 14px 17px; color: #fff; background: var(--ink); border-radius: 9px; box-shadow: var(--shadow); font-size: .72rem; }

@media (max-width: 900px) {
  .yjh-header { grid-template-columns: 1fr auto; }
  .yjh-preview-switcher { order: 3; grid-column: 1 / -1; justify-self: center; margin-bottom: 12px; }
  .yjh-environment { display: none; }
  .yjh-intro, .yjh-roadmap-intro, .yjh-today, .yjh-home-principle, .yjh-mastery, .yjh-measure-list { grid-template-columns: 1fr; }
  .yjh-intro-baton { min-height: 360px; }
  .yjh-section-heading { grid-template-columns: 1fr; gap: 16px; }
  .yjh-primary-grid { grid-template-columns: 1fr; }
  .yjh-program-card { min-height: 510px; }
  .yjh-today-main { min-height: 430px; }
  .yjh-other-main article { grid-template-columns: 130px 1fr; }
  .yjh-other-main article > p, .yjh-other-main article > strong, .yjh-other-main article > a { grid-column: 2; }
  .yjh-support-strip { grid-template-columns: 1fr; }
  .yjh-flow-panels article { grid-template-columns: 1fr; gap: 25px; }
  .yjh-growth-targets header { grid-template-columns: 1fr; }
  .yjh-growth-targets header .yjh-kicker { grid-column: auto; }
  .yjh-mastery-grid { max-width: 700px; }
  .yjh-toeic-cycle ol { grid-template-columns: 1fr 1fr; }
  .yjh-toeic-cycle li:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .yjh-toeic-cycle li:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .yjh-materials-hero { grid-template-columns: 1fr; }
  .yjh-materials-orbit { border-top: 1px solid rgba(120, 174, 255, .25); border-left: 0; }
  .yjh-materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.yjh-body { font-size: 15px; }
  .yjh-staging-bar { align-items: flex-start; flex-direction: column; gap: 0; font-size: .64rem; }
  .yjh-header, .yjh-shell, .yjh-footer { width: min(100% - 28px, 1160px); }
  .yjh-header { min-height: 68px; }
  .yjh-brand > span { width: 34px; height: 34px; }
  .yjh-header.is-materials-only { min-height: 0; padding-block: 14px; flex-wrap: wrap; gap: 13px; }
  .yjh-site-nav { width: 100%; }
  .yjh-site-nav a { flex: 1; min-width: 0; padding-inline: 7px; text-align: center; }
  .yjh-preview-switcher { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .yjh-preview-switcher a { white-space: nowrap; }
  .yjh-intro { padding: 26px 0 68px; }
  .yjh-intro-copy { padding: 34px 23px; }
  .yjh-intro h1 { font-size: 2.65rem; }
  .yjh-intro-actions { align-items: flex-start; flex-direction: column; }
  .yjh-intro-baton { min-height: 320px; padding: 28px 23px; }
  .yjh-section-heading h2 { font-size: 2rem; }
  .yjh-program-card { min-height: 0; padding: 30px 22px; }
  .yjh-program-card h3 { margin-top: 38px; font-size: 3rem; }
  .yjh-trial-offer { align-items: flex-start; flex-direction: column; }
  .yjh-trial-offer p { text-align: left; }
  .yjh-home-principle { padding: 32px 23px; }
  .yjh-support-list article { grid-template-columns: 1fr; gap: 8px; padding: 20px 22px; }
  .yjh-support-list article > strong { justify-self: start; }
  .yjh-home-top { align-items: flex-start; flex-direction: column; padding-top: 34px; }
  .yjh-home-top h1 { font-size: 2.25rem; }
  .yjh-contract-chip { width: 100%; min-width: 0; }
  .yjh-trial-status { align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; }
  .yjh-trial-status p { width: 100%; margin-left: 0; }
  .yjh-today-main { min-height: 440px; padding: 32px 22px; }
  .yjh-today-program { margin-top: 48px; }
  .yjh-today h2 { font-size: 2.15rem; }
  .yjh-today-actions { align-items: stretch; flex-direction: column; }
  .yjh-today-actions > span { max-width: none; }
  .yjh-baton { padding: 28px 22px; }
  .yjh-progress-section, .yjh-program-section { padding-top: 68px; }
  .yjh-growth-grid { grid-template-columns: 1fr; }
  .yjh-growth-grid article { min-height: 115px; }
  .yjh-growth-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .yjh-growth-grid strong { margin-top: 18px; }
  .yjh-state-explainer { grid-template-columns: 1fr; }
  .yjh-state-explainer div + div { border-top: 1px solid #d7e1fb; border-left: 0; }
  .yjh-other-main article { grid-template-columns: 1fr; padding: 23px; }
  .yjh-other-main article > p, .yjh-other-main article > strong, .yjh-other-main article > a { grid-column: auto; }
  .yjh-support-strip ul { grid-template-columns: 1fr 1fr; }
  .yjh-support-strip li { border-left: 0; border-top: 1px solid var(--line); }
  .yjh-context-nav span { display: none; }
  .yjh-roadmap-intro > div { padding: 34px 22px; }
  .yjh-roadmap-intro h1 { font-size: 2.55rem; }
  .yjh-roadmap-intro aside { padding: 30px 22px; }
  .yjh-feature-flow, .yjh-toeic-map { padding-top: 68px; }
  .yjh-flow-tabs { grid-template-columns: 1fr 1fr; }
  .yjh-flow-tabs button:nth-child(2) { border-right: 0; }
  .yjh-flow-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .yjh-flow-panels article { padding: 30px 22px; }
  .yjh-flow-panels h3 { font-size: 2rem; }
  .yjh-growth-targets { padding: 34px 22px; }
  .yjh-growth-targets > div { grid-template-columns: 1fr; }
  .yjh-growth-targets article { min-height: 130px; }
  .yjh-growth-targets article + article { border-top: 1px solid rgba(255, 255, 255, .15); border-left: 0; }
  .yjh-growth-targets article strong { margin-top: 12px; }
  .yjh-mastery { padding: 68px 0; }
  .yjh-mastery-grid { grid-template-columns: 1fr; }
  .yjh-mastery-grid article { min-height: 220px; }
  .yjh-mastery-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .yjh-mastery-grid h3 { margin-top: 45px; }
  .yjh-lane-grid { grid-template-columns: 1fr; }
  .yjh-lane-grid article { padding: 30px 22px; }
  .yjh-lane-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .yjh-lane-grid h3 { min-height: 0; }
  .yjh-toeic-cycle { padding: 34px 22px; }
  .yjh-toeic-cycle ol { grid-template-columns: 1fr; }
  .yjh-toeic-cycle li { min-height: 170px; }
  .yjh-toeic-cycle li + li { border-top: 1px solid rgba(255, 255, 255, .16); border-left: 0; }
  .yjh-toeic-cycle li small { margin-top: 26px; }
  .yjh-measure-list { padding: 68px 0; }
  .yjh-measure-list dl div { grid-template-columns: 1fr; gap: 5px; }
  .yjh-roadmap-action { grid-template-columns: 1fr; padding: 28px 22px; }
  .yjh-materials-shell { padding-top: 12px; }
  .yjh-materials-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
  .yjh-materials-hero-copy { padding: 46px 24px 38px; }
  .yjh-materials-hero h1 { font-size: clamp(2.6rem, 13vw, 4.1rem); }
  .yjh-materials-hero-copy > p:last-child { font-size: .92rem; }
  .yjh-materials-orbit { padding: 28px 24px 32px; border-top: 1px solid rgba(120, 174, 255, .25); border-left: 0; }
  .yjh-materials-orbit a { min-height: 88px; }
  .yjh-materials-catalog { padding-top: 70px; }
  .yjh-material-group { padding-bottom: 68px; }
  .yjh-material-group-heading, .yjh-materials-note { grid-template-columns: 1fr; gap: 18px; }
  .yjh-materials-grid { grid-template-columns: 1fr; }
  .yjh-material-card { min-height: 350px; padding: 26px 22px; }
  .yjh-material-card h3 { margin-top: 38px; font-size: 1.8rem; }
  .yjh-materials-note { margin-bottom: 68px; padding: 32px 24px; }
  .yjh-materials-intro { align-items: flex-start; flex-direction: column; gap: 12px; padding: 34px 0 22px; }
  .yjh-materials-intro h1 { font-size: 2.65rem; }
  .yjh-materials-intro > p { font-size: .9rem; }
  .yjh-materials-list { padding-top: 22px; }
  .yjh-materials-list .yjh-materials-grid { grid-template-columns: 1fr; }
  .yjh-materials-list .yjh-material-card { min-height: 300px; }
  .yjh-materials-list .yjh-material-card > p { min-height: 0; }
  .yjh-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .yjh-footer p { margin: 0; }
}

/* Catalog contrast: navy title panels, silver surfaces and compact Japanese copy.
   Scoped to the public catalog; student and teacher portals are unchanged. */
body.yjh-materials-page { color: var(--materials-graphite); background: var(--materials-silver); }
.yjh-materials-page .yjh-footer, .yjh-materials-page .yjh-brand small,
.yjh-materials-list > header span { color: #536171; }
.yjh-materials-page .yjh-brand > span { background: var(--materials-space-blue); }
.yjh-materials-page .yjh-materials-kicker { margin-bottom: 16px; color: var(--materials-deep-space); font: 700 .75rem/1.5 Inter, Arial, sans-serif; letter-spacing: .14em; }
.yjh-materials-intro h1 { font-weight: 700; letter-spacing: -.035em; }
.yjh-materials-intro { padding-top: 36px; }
.yjh-materials-list { padding-bottom: 52px; }
.yjh-materials-title-en { margin-top: 10px; color: #536171; font-size: 1.125rem; }
.yjh-materials-list > header { gap: 16px; margin-bottom: 22px; }
.yjh-materials-list > header h2 { font-size: 1.2rem; }
.yjh-materials-list > header h2 small { color: #536171; font-size: .875rem; }
.yjh-materials-list > header > span { flex-shrink: 0; font-size: .8125rem; font-weight: 500; }
.yjh-materials-list .yjh-materials-grid { gap: 20px; }
.yjh-materials-list .yjh-material-card { min-width: 0; min-height: 0; padding: 0; background: #f3f6fa; border-color: #b9c8da; border-radius: 16px; box-shadow: 0 8px 20px rgba(31, 65, 111, .09); }
.yjh-materials-list .yjh-material-card:hover { transform: none; border-color: var(--materials-space-blue); box-shadow: 0 12px 26px rgba(31, 65, 111, .15); }
.yjh-materials-list .yjh-material-card:focus-within { border-color: var(--materials-ice-highlight); }
.yjh-material-heading { padding: 22px 24px; color: #fff; background: var(--materials-deep-space); border-radius: 15px 15px 0 0; }
.yjh-materials-list .yjh-material-card-top { padding-bottom: 16px; }
.yjh-materials-list .yjh-material-card-top > span { color: #c9d8ed; font-size: .75rem; font-weight: 500; line-height: 1.5; }
.yjh-materials-list .yjh-material-card-top .yjh-en { margin-top: 3px; font-size: .75rem; }
.yjh-materials-list .yjh-material-card h3 { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.15vw, 1.75rem); line-height: 1.3; letter-spacing: -.025em; }
.yjh-materials-list .yjh-material-card h3 .yjh-en { margin-top: 7px; color: #dbe8fa; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.yjh-materials-list .yjh-material-card > p { min-height: 0; margin: 0; padding: 20px 24px; color: #46515e; font-size: .9375rem; line-height: 1.75; }
.yjh-materials-list .yjh-material-card > p .yjh-ja { display: block; }
.yjh-materials-list .yjh-material-card > a { gap: 12px; min-height: 76px; margin-top: auto; padding: 14px 24px; border-top: 1px solid #ccd6e3; border-radius: 0 0 15px 15px; color: var(--materials-deep-space); background: #e3eaf3; }
.yjh-materials-list .yjh-material-action-label { color: var(--materials-deep-space); font-size: .9375rem; line-height: 1.5; }
.yjh-materials-list .yjh-material-action-label .yjh-en { margin-top: 2px; font-size: .8125rem; font-weight: 500; }
.yjh-materials-list .yjh-material-card > a .yjh-material-arrow { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--materials-space-blue); border-radius: 10px; font-size: 1.25rem; line-height: 1; transition: background .18s ease; }
.yjh-materials-list .yjh-material-card > a:hover .yjh-material-action-label { text-decoration: underline; text-underline-offset: 4px; }
.yjh-materials-list .yjh-material-card > a:hover { background: #d7e3f2; }
.yjh-materials-list .yjh-material-card > a:hover .yjh-material-arrow { background: var(--materials-deep-space); }
.yjh-materials-page a:focus-visible { outline: 3px solid var(--materials-ice-highlight); outline-offset: 5px; }

/* Natural shared tracks align the title panels, Japanese copy and actions.
   Older browsers retain the flex layout above. Single-column cards stay compact. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 641px) {
    .yjh-materials-list .yjh-material-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  }
}

@media (max-width: 640px) {
  .yjh-materials-list > header { align-items: flex-end; }
  .yjh-materials-list > header h2 small { display: block; margin: 3px 0 0; font-size: .8125rem; }
  .yjh-materials-list > header > span { font-size: .75rem; }
  .yjh-materials-list .yjh-materials-grid { gap: 16px; }
  .yjh-materials-list .yjh-material-card { padding: 0; }
  .yjh-material-heading { padding: 20px 22px; }
  .yjh-materials-list .yjh-material-card > p { padding: 18px 22px; }
  .yjh-materials-list .yjh-material-card > a { padding-inline: 22px; }
  .yjh-materials-list .yjh-material-card h3 { font-size: 1.65rem; }
  .yjh-materials-list .yjh-material-card-top { padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .yjh-materials-list .yjh-material-card > a .yjh-material-arrow { transition: none; }
  html { scroll-behavior: auto; }
  .yjh-button { transition: none; }
  .yjh-material-card { transition: none; }
  .yjh-material-card:hover { transform: none; }
}
