
/* =====================================================================
   1.17: 3D effects, posters, achievements and downloads
   ===================================================================== */

/* Hero with 3D: floating characters (canvas) and a rotating cube */
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-3d.is-ready { opacity: 1; }
.hero-inner { display: grid; gap: 30px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-stage { display: none; position: relative; z-index: 1; height: 360px; perspective: 1100px; perspective-origin: 50% 40%; }
.cube-wrap { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -110px 0 0 -85px; transform-style: preserve-3d; transition: transform .25s ease-out; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: cube-spin 16s linear infinite; }
.face {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 4.4rem; font-weight: 800; color: #fff; border-radius: 22px;
    background: linear-gradient(145deg, rgba(232, 51, 75, .92), rgba(130, 16, 32, .92));
    border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 0 40px rgba(255, 255, 255, .18), 0 0 30px rgba(200, 32, 47, .35);
    text-shadow: 0 4px 18px rgba(0, 0, 0, .35); backface-visibility: hidden;
}
.f-front  { transform: translateZ(85px); }
.f-back   { transform: rotateY(180deg) translateZ(85px); }
.f-right  { transform: rotateY(90deg) translateZ(85px); }
.f-left   { transform: rotateY(-90deg) translateZ(85px); }
.f-top    { transform: rotateX(90deg) translateZ(85px); background: linear-gradient(145deg, #fff, #f6cdd6); color: var(--red); }
.f-bottom { transform: rotateX(-90deg) translateZ(85px); background: linear-gradient(145deg, #2a2228, #1d1e24); font-size: 3.2rem; }
@keyframes cube-spin { from { transform: rotateX(-18deg) rotateY(0deg); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; transform-style: preserve-3d; }
.orbit-1 { width: 330px; height: 330px; margin: -190px 0 0 -165px; transform: rotateX(72deg); animation: orbit-spin 12s linear infinite; }
.orbit-2 { width: 260px; height: 260px; margin: -155px 0 0 -130px; transform: rotateX(72deg) rotateY(40deg); animation: orbit-spin 9s linear infinite reverse; border-color: rgba(246, 205, 214, .3); }
.orbit span { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--sakura) 45%, var(--red)); box-shadow: 0 0 18px rgba(246, 205, 214, .9); }
.orbit-2 span { width: 10px; height: 10px; top: -5px; margin-left: -5px; background: radial-gradient(circle at 30% 30%, #fff, #ffd98a 50%, #b88a2e); }
@keyframes orbit-spin { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }
.stage-floor { position: absolute; left: 50%; bottom: 16px; width: 240px; height: 40px; margin-left: -120px; border-radius: 50%; background: radial-gradient(ellipse, rgba(200, 32, 47, .55), transparent 70%); filter: blur(6px); animation: floor-pulse 4s ease-in-out infinite; }
@keyframes floor-pulse { 50% { transform: scale(.82); opacity: .7; } }

/* Cards that tilt in 3D under the pointer (transform set by site.js) */
.fx-3d .tilt { transform-style: preserve-3d; will-change: transform; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.fx-3d .tilt.is-tilting { transition: transform .08s linear, box-shadow .2s; box-shadow: var(--shadow-lift); }
.fx-3d .course-card, .fx-3d .post-card, .fx-3d .team-card, .fx-3d .mode-card { transform-style: preserve-3d; }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 55%); opacity: 0; transition: opacity .2s; }
.is-tilting > .tilt-glare { opacity: 1; }

/* Headings with a soft 3D depth */
.fx-3d .section-head h2 { text-shadow: 0 1px 0 #efe7dc, 0 2px 0 #e6dccd, 0 8px 18px rgba(28, 29, 34, .12); }
.fx-3d .section-dark .section-head h2 { text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 10px 22px rgba(0, 0, 0, .4); }

/* Count-up numbers */
.stat-item strong { font-variant-numeric: tabular-nums; }

/* Posters */
.section-posters { padding-top: clamp(44px, 6vw, 70px); padding-bottom: clamp(44px, 6vw, 70px); }
.poster-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); gap: 20px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; }
.poster { position: relative; margin: 0; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.poster figcaption { padding: 10px 4px 2px; font-weight: 700; font-size: .95rem; }

/* Dark section (achievements on the home page) */
.section-dark { position: relative; overflow: hidden; background: linear-gradient(150deg, #1d1e24, #2c1d24); color: #fff; }
.section-dark::before { content: ""; position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(circle at 50% 100%, transparent 18px, #fff 19px, #fff 20px, transparent 21px, transparent 27px, #fff 28px, #fff 29px, transparent 30px); background-size: 80px 40px; }
.section-dark .wrap { position: relative; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--sakura); }
.section-dark .link-more { color: var(--sakura); }

/* Achievement / event cards */
.album-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.album-card { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--ink); text-decoration: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.album-card:hover { color: var(--ink); }
.album-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(150deg, #2a2228, #3a1d24); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.album-card:hover .album-cover img { transform: scale(1.06); }
.album-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255, 255, 255, .8); font-size: 4rem; font-weight: 800; }
.album-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(20, 18, 22, .72); color: #fff; font-size: .8rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.album-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 22px; }
.album-body time { color: var(--red); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.album-body strong { font-size: 1.15rem; }
.album-summary { color: var(--muted); font-size: .94rem; }
.album-text { margin-bottom: 26px; }
.album-back { margin-top: 26px; }

/* Downloads */
.download-group { font-size: 1.3rem; margin: 26px 0 14px; }
.download-group:first-child { margin-top: 0; }
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.download-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.file-badge { flex: none; width: 54px; height: 62px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; border-radius: 8px 18px 8px 8px; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; background: linear-gradient(160deg, #e8334b, #9e1624); box-shadow: 0 8px 18px -10px rgba(200, 32, 47, .9); }
.file-DOC { background: linear-gradient(160deg, #3b7de0, #1d4ea8); box-shadow: 0 8px 18px -10px rgba(29, 78, 168, .9); }
.file-XLS { background: linear-gradient(160deg, #27a35f, #146b3b); box-shadow: 0 8px 18px -10px rgba(20, 107, 59, .9); }
.file-IMG { background: linear-gradient(160deg, #b88a2e, #7a5a16); }
.download-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.download-text span { color: var(--ink-2); font-size: .95rem; }
.download-text small { color: var(--muted); }

@media (min-width: 640px) {
    .album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
    .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .hero-stage { display: block; }
    .album-grid { grid-template-columns: repeat(3, 1fr); }
    .site-nav ul { gap: 0; }
    .site-nav a:not(.btn) { padding: 8px 10px; font-size: .96rem; }
}
@media (min-width: 980px) and (max-width: 1120px) {
    .site-brand small { display: none; }
    .site-nav a:not(.btn) { padding: 8px 7px; font-size: .92rem; }
    .nav-cta { padding: 8px 16px; min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .cube { transform: rotateX(-18deg) rotateY(-30deg); }
    .hero-3d { display: none; }
}

/* =====================================================================
   1.18: bigger logo, framed team photos, full-size news poster
   ===================================================================== */
.site-brand img { width: 88px; }
.header-row { min-height: 92px; }
.site-footer .site-brand img { width: 110px; }
@media (min-width: 980px) {
    .site-brand img { width: 116px; }
    .header-row { min-height: 104px; }
}

/* Team photos in a larger frame */
.team-card img, .team-initials {
    width: 100%; max-width: 230px; height: auto; aspect-ratio: 4 / 5; margin: 0 auto 16px; object-fit: cover;
    border-radius: 18px; padding: 6px; background: linear-gradient(135deg, #e8334b, #b88a2e 55%, #9e1624);
    box-shadow: 0 18px 34px -18px rgba(28, 29, 34, .6), inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.team-initials { display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #fff; padding: 0;
    background: linear-gradient(150deg, #2a2228, #3a1d24); border: 6px solid #c8202f; }
.team-card { padding: 20px 18px 24px; }
.team-card h3 { font-size: 1.2rem; }

/* News & updates with a big poster */
.news-with-poster { display: grid; gap: 24px; }
.news-poster { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lift); position: relative; }
.news-poster img { width: 100%; height: auto; border-radius: 10px; }
.post-stack { grid-template-columns: 1fr !important; align-content: start; }
@media (min-width: 640px) {
    .post-stack .post-card { display: grid; grid-template-columns: 200px 1fr; }
    .post-stack .post-image img { height: 100%; aspect-ratio: auto; }
}
@media (min-width: 980px) {
    .news-with-poster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
}
/* =====================================================================
   1.19: breadcrumbs, two-step code box
   ===================================================================== */
.crumbs { background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: .86rem; }
.crumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
/* =====================================================================
   1.20: free learning corner
   ===================================================================== */
[lang="ja"] { font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", "Hiragino Sans", "Segoe UI", sans-serif; }
.say { cursor: pointer; }
.no-speech .say-icon, .no-speech .say-big { display: none; }
.say-note:not([hidden]) { display: block; }

/* Home page band */
.learn-band { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 400px at 10% 0%, rgba(232, 51, 75, .55), transparent 60%), linear-gradient(140deg, #1d1e24 0%, #3a1d24 60%, #5a1420 100%); }
.learn-band::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(circle at 50% 100%, transparent 18px, #fff 19px, #fff 20px, transparent 21px, transparent 27px, #fff 28px, #fff 29px, transparent 30px); background-size: 80px 40px; }
.learn-band-inner { position: relative; display: grid; gap: 30px; align-items: center; }
.learn-band h2 { color: #fff; }
.learn-band .eyebrow { color: var(--sakura); }
.learn-band-text > p { color: #efe7dc; max-width: 52ch; }
.kana-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.kana-chips span { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: 1.5rem; font-weight: 800; animation: chip-float 4s ease-in-out infinite; }
.kana-chips span:nth-child(2n) { animation-delay: -1.3s; }
.kana-chips span:nth-child(3n) { animation-delay: -2.4s; }
@keyframes chip-float { 50% { transform: translateY(-6px) rotate(-3deg); } }
.learn-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.learn-poster img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }

/* Word of the day */
.word-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 24px; background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); border-top: 6px solid var(--red); }
.word-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.word-jp { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.15; }
.word-kana { font-size: 1.2rem; color: var(--ink-2); }
.word-romaji { color: var(--muted); font-style: italic; }
.word-meaning { font-size: 1.15rem; font-weight: 700; }
.say-big { margin-top: 10px; border: 0; border-radius: 999px; padding: 10px 20px; background: var(--red-soft); color: var(--red-dark); font: inherit; font-weight: 700; }
.say-big:hover { background: var(--red); color: #fff; }

/* Hub */
.learn-top { display: grid; gap: 26px; align-items: start; }
.learn-cards { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.learn-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.learn-card:hover { color: var(--ink); }
.learn-glyph { width: 64px; height: 64px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(135deg, #dc2b3b, var(--red-dark)); color: #fff; font-size: 2rem; font-weight: 800; box-shadow: 0 10px 22px -12px rgba(200, 32, 47, .9); }
.learn-card strong { font-size: 1.15rem; }
.learn-card span:last-child { color: var(--muted); font-size: .92rem; }
.learn-next { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.center-head { text-align: center; margin-left: auto; margin-right: auto; }

/* Kana chart */
.kana-title { font-size: 1.3rem; margin: 30px 0 14px; }
.kana-title:first-of-type { margin-top: 0; }
.kana-grid { display: grid; gap: 8px; max-width: 760px; }
.kana-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kana-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 480px; }
.kana-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 86px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); font: inherit; color: var(--ink); transition: transform .15s var(--ease), background .15s, border-color .15s; }
.kana-cell span { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 700; line-height: 1.1; }
.kana-cell small { color: var(--muted); font-size: .85rem; }
button.kana-cell:hover, button.kana-cell.is-speaking { background: var(--red-soft); border-color: var(--red); transform: translateY(-2px); }
.kana-cell.empty { background: transparent; border: 0; box-shadow: none; }

/* Quiz */
.quiz { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.quiz-card { width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; border-radius: 28px; background: linear-gradient(145deg, #fff, #f4eee5); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.quiz-kana { font-size: 5rem; font-weight: 800; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; width: 100%; max-width: 360px; }
.quiz-options button { min-height: 54px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.quiz-options button:hover { border-color: var(--red); }
.quiz-options button.right { background: #ecfbf2; border-color: var(--green); color: #0f5c32; }
.quiz-options button.wrong { background: #fff1f2; border-color: var(--red); color: var(--red-dark); }
.quiz-status { font-weight: 700; min-height: 1.5em; }

/* Level page */
.level-tabs { position: sticky; top: 96px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 16px; background: rgba(251, 248, 243, .95); border: 1px solid var(--line); border-radius: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.level-tabs a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.level-tabs a span { color: var(--red); margin-left: 4px; }
.level-tabs a:hover { border-color: var(--red); }
.level-tabs .level-switch { margin-left: auto; background: var(--ink); color: #fff; border-color: var(--ink); }
.level-search { display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin-bottom: 20px; }
.level-search label { font-weight: 700; font-size: .9rem; }
.level-search input { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.level-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 32, 47, .12); }
.level-h { margin-top: 40px; padding-top: 10px; scroll-margin-top: 170px; }
.level-group { margin: 22px 0 8px; color: var(--red); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.table-scroll { overflow-x: auto; }
.learn-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.learn-table th { text-align: left; padding: 10px 14px; background: var(--paper-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.learn-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.learn-table td.jp { font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.say-icon { border: 0; background: var(--red-soft); width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; }
.say-icon:hover { background: var(--red); }
.kanji-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kanji-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.kanji-char { border: 0; background: linear-gradient(145deg, #fff, var(--paper-2)); width: 92px; height: 92px; border-radius: 18px; font-size: 3.2rem; font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.kanji-char:hover { color: var(--red); }
.kanji-read { font-size: .85rem; color: var(--ink-2); }
.kanji-ex { font-size: .85rem; color: var(--muted); }
.grammar-list { display: grid; gap: 12px; }
.grammar-item { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; box-shadow: var(--shadow); }
.grammar-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.grammar-head strong { font-size: 1.15rem; }
.grammar-head span { color: var(--muted); }
.grammar-ex { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; font-size: 1.1rem; }
.tip-list { padding-left: 1.3em; }
.tip-list li { margin: 8px 0; }
.tip-list li::marker { color: var(--red); font-weight: 800; }
.filter-row.is-filtered { display: none; }

@media (min-width: 980px) {
    .learn-band-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .learn-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .learn-table td.jp { white-space: normal; font-size: 1.1rem; }
    .learn-table th, .learn-table td { padding: 8px 8px; }
    .learn-table th:first-child, .learn-table td:first-child { padding-left: 12px; }
    .say-icon { width: 34px; height: 34px; }
    .level-tabs { position: static; }
}
@media (max-width: 520px) {
    .kana-cell { min-height: 70px; }
    .level-tabs { top: 90px; }
}
@media print {
    .level-tabs, .level-search, .say-icon, .learn-next, .quiz { display: none !important; }
}
/* 1.21: partner logos twice as big */
.partner-row { gap: 28px 36px; }
.partner-row img { height: 140px; max-width: 320px; object-fit: contain; }
@media (max-width: 640px) { .partner-row img { height: 100px; max-width: 42vw; } }

/* 1.22: phone and tablet polish */
/* Show uploaded "about" pictures whole (posters were cut at the edges). */
.split-media img { aspect-ratio: auto; object-fit: contain; max-height: 640px; background: #fff; }
.ceo-photo img { aspect-ratio: 1 / 1; object-fit: cover; max-height: none; }
@media (max-width: 979px) {
    /* Slideshow pictures often have text printed in them: darken more so the heading stays readable. */
    .hero-shade { background: linear-gradient(180deg, rgba(20, 18, 22, .78) 0%, rgba(20, 18, 22, .86) 60%, rgba(20, 18, 22, .9) 100%); }
    .hero h1, .hero-text { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
}
@media (max-width: 640px) {
    .announce { font-size: .8rem; }
    .announce .wrap { gap: 2px 10px; padding-top: 6px; padding-bottom: 6px; line-height: 1.35; }
}

/* 1.23: big poster in "Our achievements" on the home page */
.ach-with-poster { display: grid; gap: 24px; }
.ach-poster { border-color: rgba(255, 255, 255, .12); }
.album-stack { grid-template-columns: 1fr !important; align-content: start; }
@media (min-width: 640px) and (max-width: 979px) {
    .album-stack { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 980px) {
    .ach-with-poster { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}

/* 1.24: floating letters behind every page heading */
.page-banner .banner-3d { z-index: 0; }
.page-banner .wrap { z-index: 1; }

/* 1.24: About page registration logos twice as big */
.reg-card img { height: 128px; max-width: 100%; object-fit: contain; }
@media (max-width: 520px) { .reg-card img { height: 104px; } }

/* 1.24: more on the Courses page */
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { border-top: 0; background: var(--ink); color: #fff; font-size: 1.05rem; }
.compare-table tbody th { width: 22%; color: var(--muted); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.compare-table tbody tr:nth-child(even) { background: #fbf8f3; }
.include-grid, .goal-grid, .jlpt-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.include-card, .goal-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.include-card h3, .goal-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.include-card p, .goal-card p { margin: 0; color: var(--ink-2); }
.include-icon { width: 52px; height: 52px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--red-soft); color: var(--red-dark); font-size: 1.6rem; font-weight: 800; }
.goal-card { border-top: 4px solid var(--red); }
.jlpt-card { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #efe7dc; }
.jlpt-card strong { display: block; font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.jlpt-card p { margin: 0 0 10px; }
.jlpt-card span { font-size: .85rem; color: var(--sakura); font-weight: 700; }
.section-dark .section-head p { color: #d9d0c4; }
@media (min-width: 640px) {
    .include-grid, .goal-grid, .jlpt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
    .include-grid { grid-template-columns: repeat(3, 1fr); }
    .goal-grid, .jlpt-grid { grid-template-columns: repeat(4, 1fr); }
}
