/* ==========================================================
   HIMABAJA — Identitas Visual
   Palet: washi cream, sumi ink, aizome indigo, hanko vermilion
   Tipografi: Shippori Mincho (display) + Zen Kaku Gothic New (body)
   Signature: motif kotak genkouyoushi (kertas manuskrip) +
              stempel hanko sebagai aksen tanda tangan visual
   ========================================================== */

:root {
    --washi: #F3EEE2;
    --washi-deep: #EAE2D0;
    --sumi: #2A2620;
    --sumi-soft: #55503f;
    --aizome: #223A5E;
    --aizome-light: #3C5A85;
    --hanko: #A63A2E;
    --line: #D9CFB8;
    --white: #FBFAF6;

    --font-display: 'Shippori Mincho', serif;
    --font-body: 'Zen Kaku Gothic New', 'Noto Sans', sans-serif;

    --radius: 2px;

    color-scheme: light;
}

/* ---------- Dark mode (mode gelap) ----------
   Nuansa "yoru" (malam) — indigo lebih pekat, washi jadi abu-sumi gelap,
   vermilion hanko tetap jadi aksen supaya identitas visual tidak hilang. */
html[data-theme="dark"] {
    --washi: #191712;
    --washi-deep: #211E17;
    --sumi: #EDE7D8;
    --sumi-soft: #B9B1A0;
    --aizome: #7C97C4;
    --aizome-light: #9DB3D9;
    --hanko: #E0715C;
    --line: #3A362B;
    --white: #211E17;

    color-scheme: dark;
}
html[data-theme="dark"] .site-header { background: rgba(25, 23, 18, 0.94); }
html[data-theme="dark"] footer.site-footer { background: #14202F; }
html[data-theme="dark"] .footer-grid { border-bottom-color: rgba(255,255,255,0.1); }
html[data-theme="dark"] .form-msg.ok { background: #223225; color: #B9DBAF; border-color: #4E7A47; }
html[data-theme="dark"] .form-msg.err { background: #3A2320; color: #F0B3A6; border-color: var(--hanko); }

/* ---------- Theme toggle button ---------- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--aizome);
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--hanko); transform: rotate(12deg); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--washi);
    color: var(--sumi);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--aizome);
    line-height: 1.35;
    margin: 0 0 0.5em;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- genkouyoushi grid texture ---------- */
.genkou-bg {
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 42px 42px;
    background-position: center;
}

/* ---------- Motif Jepang tipis: ombak (seigaiha) + kelopak sakura ----------
   Sengaja dibuat sangat halus (opacity rendah) supaya tetap terasa modern &
   tidak berlebihan — cukup jadi sentuhan tekstur, bukan pusat perhatian. */
.seigaiha-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cg fill='none' stroke='%23223A5E' stroke-width='1.1' opacity='0.16'%3E%3Cpath d='M0 40 a20 20 0 0 1 40 0 a20 20 0 0 1 40 0 a20 20 0 0 1 40 0'/%3E%3Cpath d='M-20 50 a20 20 0 0 1 40 0 a20 20 0 0 1 40 0 a20 20 0 0 1 40 0 a20 20 0 0 1 40 0'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 120px 60px;
}

.sakura-corner {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}
.sakura-corner svg { display: block; }
html[data-theme="dark"] .sakura-corner { opacity: 0.3; }

.petal-drift {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.petal {
    position: absolute;
    top: -20px;
    font-size: 14px;
    opacity: 0.35;
    color: var(--hanko);
    animation: petal-fall linear infinite;
    user-select: none;
}
@keyframes petal-fall {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); }
    100% { transform: translateY(340px) translateX(24px) rotate(200deg); }
}
@media (prefers-reduced-motion: reduce) {
    .petal { animation: none; display: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 238, 226, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-seal {
    width: 42px;
    height: 42px;
    border: 2px solid var(--hanko);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hanko);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.brand-text .brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--aizome);
    letter-spacing: 0.5px;
    display: block;
}

.brand-text .brand-sub {
    font-size: 11px;
    color: var(--sumi-soft);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14.5px;
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    color: var(--sumi);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    height: 1px; width: 0;
    background: var(--hanko);
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active { color: var(--aizome); font-weight: 700; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--sumi);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 90px 24px 100px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hanko);
    margin-bottom: 18px;
    font-weight: 700;
}
.eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: var(--hanko);
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 20px;
}

.hero .jp {
    display: block;
    font-size: 22px;
    color: var(--hanko);
    font-weight: 400;
    margin-bottom: 6px;
}

.hero p.lead {
    font-size: 16.5px;
    color: var(--sumi-soft);
    max-width: 46ch;
    margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid var(--aizome);
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--aizome);
    color: var(--white);
}
.btn-primary:hover { background: var(--aizome-light); border-color: var(--aizome-light); }
.btn-ghost {
    background: transparent;
    color: var(--aizome);
}
.btn-ghost:hover { background: var(--aizome); color: var(--white); }

.hero-seal-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 32px;
    position: relative;
}
.hero-seal-card .big-seal {
    width: 96px; height: 96px;
    border: 3px solid var(--hanko);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--hanko);
    font-family: var(--font-display);
    font-size: 34px;
    margin: 0 auto 18px;
}
.hero-seal-card h3 {
    text-align: center;
    font-size: 17px;
    margin-bottom: 6px;
}
.hero-seal-card p {
    text-align: center;
    font-size: 13.5px;
    color: var(--sumi-soft);
    margin: 0;
}
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
}
.hero-stats div { text-align: center; }
.hero-stats .num {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--aizome);
    display: block;
}
.hero-stats .label { font-size: 11.5px; color: var(--sumi-soft); }

/* ---------- Section shells ---------- */
section.block { padding: 70px 24px; }
section.block.alt { background: var(--washi-deep); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-head .kicker {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hanko);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}
.section-head h2 { font-size: 30px; margin: 0; }
.section-head .more { font-size: 14px; color: var(--aizome); font-weight: 700; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-media {
    aspect-ratio: 16/10;
    background: var(--washi-deep);
    display: flex; align-items: center; justify-content: center;
    color: var(--line);
    font-family: var(--font-display);
    font-size: 40px;
    overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-date { font-size: 12px; color: var(--hanko); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 8px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--sumi-soft); margin: 0 0 14px; flex: 1; }
.card .read-more { font-size: 13.5px; font-weight: 700; color: var(--aizome); align-self: flex-start; }
.card .read-more:hover { text-decoration: underline; }

/* ---------- Struktur / Anggota ---------- */
.member-card { text-align: center; }
.member-photo {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--washi-deep);
    display: flex; align-items: center; justify-content: center;
    color: var(--line); font-size: 40px; font-family: var(--font-display);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--line);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card h4 { font-size: 16px; margin-bottom: 4px; color: var(--sumi); font-family: var(--font-body); font-weight: 700; }
.member-card .jabatan { font-size: 13px; color: var(--hanko); font-weight: 700; margin-bottom: 2px; }
.member-card .divisi { font-size: 12.5px; color: var(--sumi-soft); }

/* ---------- Timeline kegiatan ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--washi);
    border: 2px solid var(--hanko);
}
.timeline-item .tl-date { font-size: 12.5px; color: var(--hanko); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 6px; }
.timeline-item h4 { font-size: 18px; margin-bottom: 8px; }
.timeline-item p { color: var(--sumi-soft); font-size: 14px; margin: 0 0 6px; }
.timeline-item .tl-loc { font-size: 13px; color: var(--sumi-soft); }
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border: 1px solid var(--aizome);
    color: var(--aizome);
    letter-spacing: 0.3px;
    margin-top: 8px;
}

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
    aspect-ratio: 1/1;
    background: var(--washi-deep);
    overflow: hidden;
    border: 1px solid var(--line);
    position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff; font-size: 12px; padding: 18px 10px 8px;
}

/* ---------- Forms ---------- */
.form-box {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 36px;
}
label { display: block; font-size: 13.5px; font-weight: 700; color: var(--aizome); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--washi);
    font-family: var(--font-body);
    font-size: 14.5px;
    margin-bottom: 20px;
    border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 130px; }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--aizome);
    background: var(--white);
}
.form-msg { padding: 14px 18px; margin-bottom: 20px; font-size: 14px; border-radius: var(--radius); }
.form-msg.ok { background: #E4EDE2; border: 1px solid #7FA675; color: #365330; }
.form-msg.err { background: #F5E1DD; border: 1px solid var(--hanko); color: #7A281B; }

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--aizome);
    color: #EAE2D0;
    padding: 56px 24px 28px;
}
.footer-grid {
    max-width: 1080px; margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 14px; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { color: #C9D2E0; font-size: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
    max-width: 1080px; margin: 20px auto 0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 12.5px; color: #9AA9C2;
}

/* ---------- Detail berita ---------- */
.article-header { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 16px; }
.article-body p { margin-bottom: 20px; white-space: pre-line; color: var(--sumi); }
.article-meta { font-size: 13px; color: var(--sumi-soft); margin-bottom: 20px; }

/* ---------- Page header (halaman dalam) ---------- */
.page-header {
    position: relative;
    padding: 56px 24px 40px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
}
.page-header h1 { font-size: 32px; margin-bottom: 8px; }
.page-header p { color: var(--sumi-soft); max-width: 60ch; margin: 0 auto; position: relative; z-index: 2; }
.page-header .eyebrow, .page-header h1 { position: relative; z-index: 2; }
.page-header::before {
    content: '桜';
    position: absolute;
    top: -34px; left: 3%;
    font-family: var(--font-display);
    font-size: 130px;
    color: var(--hanko);
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}
.page-header::after {
    content: '波';
    position: absolute;
    bottom: -46px; right: 3%;
    font-family: var(--font-display);
    font-size: 150px;
    color: var(--aizome);
    opacity: 0.045;
    z-index: 1;
    pointer-events: none;
}
@media (max-width: 640px) {
    .page-header::before, .page-header::after { font-size: 80px; }
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--sumi-soft);
    border: 1px dashed var(--line);
}

/* ---------- Toggle tampilan (List / Kalender, dsb) ---------- */
.view-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}
.view-switch a {
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sumi-soft);
    background: var(--white);
}
.view-switch a.active { background: var(--aizome); color: var(--white); }
.view-switch a + a { border-left: 1px solid var(--line); }

/* ---------- Kalender kegiatan ---------- */
.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.cal-head h3 { margin: 0; font-size: 20px; }
.cal-head .cal-nav a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--aizome);
}
.cal-head .cal-nav a:hover { border-color: var(--hanko); }
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.cal-dow {
    background: var(--washi-deep);
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--sumi-soft);
    padding: 8px 4px;
}
.cal-cell {
    background: var(--white);
    min-height: 92px;
    padding: 6px 8px;
    font-size: 12px;
}
.cal-cell.empty { background: var(--washi); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--hanko); }
.cal-daynum { font-family: var(--font-display); font-size: 14px; color: var(--sumi-soft); margin-bottom: 4px; display: block; }
.cal-cell.today .cal-daynum { color: var(--hanko); font-weight: 700; }
.cal-event {
    display: block;
    background: var(--aizome);
    color: var(--white);
    font-size: 10.5px;
    padding: 2px 5px;
    margin-bottom: 3px;
    border-radius: 2px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Pencarian & filter berita ---------- */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    align-items: center;
}
.filter-bar input[type=text] { margin-bottom: 0; max-width: 320px; }
.filter-bar select { margin-bottom: 0; max-width: 200px; width: auto; }
.filter-bar button.btn { border: 1px solid var(--aizome); background: var(--aizome); color: var(--white); cursor: pointer; padding: 12px 22px; font-family: var(--font-body); }
.tag-chip {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border: 1px solid var(--line);
    color: var(--sumi-soft);
    margin: 0 6px 0 0;
    border-radius: 20px;
}
.card-cat { color: var(--aizome); font-weight: 700; }

/* ---------- Halaman unduhan dokumen ---------- */
.doc-group { margin-bottom: 44px; }
.doc-group h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 16px 20px;
}
.doc-icon {
    width: 42px; height: 42px;
    border: 2px solid var(--aizome);
    color: var(--aizome);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; font-family: var(--font-display);
    flex-shrink: 0;
}
.doc-info { flex: 1; }
.doc-info h4 { margin: 0 0 3px; font-size: 15px; color: var(--sumi); font-family: var(--font-body); font-weight: 700; }
.doc-info p { margin: 0; font-size: 12.5px; color: var(--sumi-soft); }
.doc-meta { font-size: 11.5px; color: var(--sumi-soft); white-space: nowrap; }
.doc-dl {
    padding: 9px 18px;
    border: 1px solid var(--aizome);
    color: var(--aizome);
    font-size: 13px; font-weight: 700; white-space: nowrap;
}
.doc-dl:hover { background: var(--aizome); color: var(--white); }

/* ---------- Widget kosakata JLPT harian ---------- */
.kosakata-widget {
    background: var(--aizome);
    color: var(--white);
    padding: 34px 36px;
    position: relative;
    overflow: hidden;
    max-width: 560px;
}
.kosakata-widget .kw-label {
    font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
    color: #C9D2E0; margin-bottom: 14px; display: block; font-weight: 700;
}
.kosakata-widget .kw-word {
    font-family: var(--font-display);
    font-size: 40px;
    display: block;
    margin-bottom: 4px;
}
.kosakata-widget .kw-reading { color: #C9D2E0; font-size: 15px; margin-bottom: 10px; }
.kosakata-widget .kw-meaning { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.kosakata-widget .kw-example { font-size: 13px; color: #C9D2E0; border-top: 1px dashed rgba(255,255,255,0.25); padding-top: 14px; }
.kosakata-widget .kw-level {
    position: absolute; top: 28px; right: 32px;
    border: 1px solid rgba(255,255,255,0.5); color: #fff;
    font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--washi); flex-direction: column;
        padding: 20px 24px; border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 32px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .cal-cell { min-height: 60px; font-size: 10.5px; }
    .cal-dow { font-size: 9.5px; padding: 6px 2px; }
    .cal-event { display: none; }
    .cal-cell.has-event { box-shadow: inset 0 0 0 2px var(--aizome); }
    .filter-bar input[type=text], .filter-bar select { max-width: 100%; width: 100%; }
    .doc-item { flex-wrap: wrap; }
    .kosakata-widget { padding: 26px 22px; max-width: 100%; }
    .kosakata-widget .kw-word { font-size: 32px; }
}

/* focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--hanko);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
