/* =========================================================
   えすこーとラボ — Landing + Blog Design System
   Refined editorial aesthetic for a premium Japanese
   after-school program. Warm ivory + deep navy + a single
   coral accent. Shippori Mincho serif for display, Zen
   Maru Gothic for friendly labels, Noto Sans for body.
   ========================================================= */

:root {
    /* --- ink / neutrals -------------------------------- */
    --c-ink:        #0f1f3a;      /* deepest navy, titles */
    --c-ink-2:      #1e3a62;      /* secondary navy */
    --c-ink-3:      #3c5479;      /* tertiary navy */
    --c-text:       #1b2438;      /* body text */
    --c-text-mute:  #6b778a;      /* muted */
    --c-text-faint: #97a1b4;      /* very muted */

    /* --- paper / backgrounds --------------------------- */
    --c-paper:      #fefcf6;      /* warm ivory, primary bg */
    --c-paper-2:    #f8f3e6;      /* warm cream */
    --c-paper-3:    #eee6d1;      /* deeper cream */
    --c-paper-blue: #edf3f9;      /* cool paper */
    --c-paper-mist: #f5f9fc;      /* mist */
    --c-white:      #ffffff;

    /* --- brand palette (refined) ----------------------- */
    --c-blue:        #2d69a8;     /* brand blue, restrained */
    --c-blue-deep:   #1a4478;
    --c-blue-soft:   #7ca7ce;
    --c-blue-pale:   #c8dcee;

    --c-coral:       #d96460;     /* accent (rare use) */
    --c-coral-soft:  #e88d89;
    --c-gold:        #c9a34a;     /* accent (very rare) */
    --c-gold-soft:   #e5cd86;

    /* --- lines ----------------------------------------- */
    --c-line:        #dfe5ee;
    --c-line-soft:   #ece2d0;     /* warm hairline */
    --c-line-ink:    #0f1f3a;     /* strong */

    /* --- fonts (pop / rounded family) ----------------- */
    --font-serif:    "Zen Maru Gothic", "M PLUS Rounded 1c", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    --font-display:  "Zen Maru Gothic", "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
    --font-rounded:  "M PLUS Rounded 1c", "Zen Maru Gothic", "Noto Sans JP", sans-serif;
    --font-body:     "M PLUS Rounded 1c", "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    --font-en:       "Cormorant Garamond", "Zen Maru Gothic", serif;

    /* --- layout --------------------------------------- */
    --max-w:         1120px;
    --max-w-narrow:   880px;
    --max-w-wide:   1280px;
    --radius-s:       6px;
    --radius-m:      12px;
    --radius-l:      20px;

    /* --- shadows -------------------------------------- */
    --sh-card:       0 1px 2px rgba(15, 31, 58, 0.04), 0 8px 24px -12px rgba(15, 31, 58, 0.12);
    --sh-card-h:     0 2px 4px rgba(15, 31, 58, 0.06), 0 20px 40px -16px rgba(15, 31, 58, 0.18);

    /* --- motion --------------------------------------- */
    --ease:          cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================================
   RESET + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--c-text);
    line-height: 1.8;
    background: var(--c-paper);
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Visual section order (keep lab schools near contact) */
main {
    display: flex;
    flex-direction: column;
}
.hero { order: 1; }
.powers { order: 2; }
.gallery { order: 3; }
.experience { order: 4; }
.camp { order: 5; }
.blog-latest { order: 6; }
.visit { order: 7; }
.lab-schools { order: 8; }
.tour { order: 9; }

/* Subpages (blog index, blog posts) need top offset
   so content doesn't disappear behind the fixed header. */
body.is-subpage { padding-top: 108px; }
@media (max-width: 900px) {
    body.is-subpage { padding-top: 84px; }
}

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

a { color: inherit; text-decoration: none; transition: opacity 0.25s var(--ease), color 0.25s var(--ease); }
a:hover { opacity: 0.72; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--c-ink); color: var(--c-paper); }


/* =========================================================
   SHARED — section header
   ========================================================= */
.section-head {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}
.section-head__en {
    display: block;
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.42em;
    color: var(--c-coral);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section-head__en::before,
.section-head__en::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--c-coral);
    vertical-align: middle;
    margin: 0 14px;
    opacity: 0.55;
}
.section-head__jp {
    display: inline-block;
    position: relative;
    font-family: var(--font-rounded);
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 40px);
    color: var(--c-ink);
    letter-spacing: 0.06em;
    line-height: 1.5;
    padding-bottom: 18px;
}
.section-head__jp::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: var(--c-coral);
    border-radius: 999px;
    opacity: 0.85;
}
.section-head__desc {
    margin: 18px auto 0;
    max-width: 560px;
    font-size: 14px;
    color: var(--c-text-mute);
    line-height: 2;
    letter-spacing: 0.04em;
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
    width: 100%;
    background: var(--c-paper);
    overflow: hidden;
}
.hero__img {
    width: 100%;
    max-width: var(--max-w-wide);
    margin: 0 auto;
    display: block;
}


/* =========================================================
   POWERS (5つの力 + ラボの特長 source images)
   ========================================================= */
.powers {
    position: relative;
    padding: 72px 20px 80px;
    background:
        radial-gradient(ellipse 800px 400px at 10% 0%, rgba(45, 105, 168, 0.06), transparent 60%),
        radial-gradient(ellipse 900px 500px at 95% 100%, rgba(217, 100, 96, 0.05), transparent 60%),
        var(--c-paper);
}
.powers::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(15, 31, 58, 0.035) 0 1px, transparent 1.2px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.6;
}
.powers__inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 1;
}
.powers__inner > picture {
    display: block;
    width: 100%;
}
.powers__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-m);
}


/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
    background: var(--c-paper);
    padding: 0;
}
.gallery__row {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
.gallery__cell {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s var(--ease);
}
.gallery__cell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 31, 58, 0.15));
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.gallery__cell:hover::after { opacity: 1; }


/* =========================================================
   EXPERIENCE CTA  (image-driven section)
   ========================================================= */
.experience {
    background: var(--c-paper);
    padding: 56px 20px 64px;
    text-align: center;
    position: relative;
}

.experience__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.experience__img {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-m);
    box-shadow: var(--sh-card);
    display: block;
    margin: 0 auto;
}


/* =========================================================
   SUMMER CAMP — 自由研究合宿
   ========================================================= */
.camp {
    background: var(--c-paper);
    padding: 16px 20px 64px;
    text-align: center;
    position: relative;
}

.camp__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.camp__img {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-m);
    box-shadow: var(--sh-card);
    display: block;
    margin: 0 auto;
}

.camp__note {
    margin: 16px auto 0;
    font-size: 12.5px;
    line-height: 1.7;
    letter-spacing: 0.04em;
    color: var(--c-text-mute);
}


/* =========================================================
   LAB SCHOOLS — 開催校舎
   Editorial card grid placed high in the DOM for local SEO.
   Each card carries: area tag, school name (h3), postal code,
   address (<address>), tel: link, link to the school page.
   ========================================================= */
.lab-schools {
    background:
        radial-gradient(ellipse 760px 360px at 8% 0%, rgba(45, 105, 168, 0.05), transparent 70%),
        radial-gradient(ellipse 720px 320px at 100% 100%, rgba(217, 100, 96, 0.04), transparent 70%),
        var(--c-paper);
    padding: 96px 20px 104px;
    position: relative;
    overflow: hidden;
}
.lab-schools::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--c-coral);
    opacity: 0.55;
}
.lab-schools__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
}

.lab-schools__legend {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: -24px auto 36px;
    padding: 8px 18px;
    background: var(--c-white);
    border: 1px solid var(--c-line-soft);
    border-radius: 999px;
    font-family: var(--font-rounded);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--c-ink-2);
    box-shadow: 0 1px 0 rgba(15, 31, 58, 0.02);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.lab-schools__legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--c-coral);
    box-shadow: 0 0 0 3px rgba(217, 100, 96, 0.18);
}

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

/* ---- card ---------------------------------------- */
.school-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-m);
    padding: 26px 26px 22px;
    transition: transform 0.4s var(--ease),
                box-shadow 0.4s var(--ease),
                border-color 0.4s var(--ease);
    overflow: hidden;
}
/* coral accent rail on the left edge — quiet by default,
   reveals fully on hover for a tactile, research-paper feel */
.school-card::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 0;
    width: 2px;
    background: var(--c-coral);
    opacity: 0.35;
    transform: scaleY(0.4);
    transform-origin: top;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.school-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-line);
    box-shadow: var(--sh-card-h);
}
.school-card:hover::before {
    transform: scaleY(1);
    opacity: 1;
}

.school-card__area {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--c-coral);
    margin-bottom: 12px;
}
.school-card__area::before {
    content: "";
    width: 14px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.school-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: 0.04em;
    color: var(--c-ink);
    margin: 0 0 14px;
    position: relative;
    padding-bottom: 14px;
}
.school-card__name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 1px;
    background: var(--c-ink);
    opacity: 0.85;
}

.school-card__address {
    font-style: normal;                 /* override <address> default */
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.85;
    letter-spacing: 0.04em;
    color: var(--c-text);
    margin-bottom: 14px;
    flex: 1;
}
.school-card__zip {
    display: inline-block;
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--c-text-mute);
    margin-right: 6px;
}

.school-card__tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--c-ink-2);
    margin-bottom: 18px;
    width: fit-content;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.school-card__tel:hover {
    opacity: 1;
    color: var(--c-coral);
    border-bottom-color: var(--c-coral);
}
.school-card__tel svg {
    color: var(--c-coral);
    flex: 0 0 auto;
}

.school-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--c-line-soft);
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    color: var(--c-ink);
    transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.school-card__more span {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}
.school-card__more:hover {
    opacity: 1;
    color: var(--c-coral);
}
.school-card__more:hover span {
    transform: translateX(4px);
}

.lab-schools__note {
    margin: 40px auto 0;
    max-width: 720px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.85;
    letter-spacing: 0.04em;
    color: var(--c-text-mute);
}
.lab-schools__note a {
    color: var(--c-blue-deep);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

/* ---- responsive ----------------------------------- */
@media (max-width: 1080px) {
    .schools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .lab-schools { padding: 64px 16px 72px; }
    .lab-schools__legend { margin: -8px auto 28px; font-size: 11.5px; }
    .schools-grid { grid-template-columns: 1fr; gap: 14px; }
    .school-card { padding: 22px 22px 20px; }
    .school-card__name { font-size: 20px; }
    .school-card__address { font-size: 13px; }
    .lab-schools__note { font-size: 12px; padding: 0 4px; }
}


/* =========================================================
   BLOG — Latest posts (on top page)
   ========================================================= */
.blog-latest {
    background: var(--c-paper);
    padding: 112px 20px 120px;
    position: relative;
}
.blog-latest::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--c-coral);
    opacity: 0.5;
}
.blog-latest__inner { max-width: var(--max-w); margin: 0 auto; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
}

.blog-card {
    background: var(--c-white);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-m);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-card-h);
}
.blog-card__link {
    display: block;
    height: 100%;
    color: inherit;
    opacity: 1 !important;
}
.blog-card__image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--c-paper-2);
}
.blog-card__image img,
.blog-card__image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--ease);
}
.blog-card:hover .blog-card__image img,
.blog-card:hover .blog-card__image-bg { transform: scale(1.06); }

/* ---- Typographic "Vol." card (no photo) ---------------- */
.blog-card__image--text {
    background:
        linear-gradient(135deg, var(--vol-c1, #1a2c4a) 0%, var(--vol-c2, #2e4870) 100%);
    color: var(--c-paper);
    overflow: hidden;
}
.blog-card__image--text::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 100% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(0, 0, 0, 0.22), transparent 60%);
    pointer-events: none;
}
.blog-card__image--text::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 14px;
    opacity: 0.55;
    pointer-events: none;
}
.blog-card:hover .blog-card__image--text { transform: none; }

.vol-card {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 22px 26px 24px;
}
.vol-card__series {
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    align-self: start;
    justify-self: start;
}
.vol-card__num {
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 400;
    font-size: 60px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
    align-self: center;
    justify-self: start;
    letter-spacing: 0.01em;
}
.vol-card__topic {
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.82);
    align-self: end;
    justify-self: start;
    text-transform: uppercase;
}
.vol-card__mark {
    position: absolute;
    bottom: 24px;
    right: 26px;
    font-family: var(--font-en);
    font-size: 9px;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    z-index: 2;
}
.vol-card__rule {
    position: absolute;
    top: 50px;
    left: 26px;
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 2;
}

.blog-card__body {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
}
.blog-card__cat {
    display: inline-block;
    padding: 3px 10px;
    background: var(--c-ink);
    color: var(--c-white);
    font-weight: 700;
    border-radius: 2px;
}
.blog-card__school {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--c-line);
    color: var(--c-text-mute);
    border-radius: 2px;
    font-weight: 500;
}
.blog-card__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.7;
    color: var(--c-ink);
    letter-spacing: 0.03em;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__date {
    margin-top: auto;
    font-family: var(--font-en);
    font-size: 13px;
    color: var(--c-text-faint);
    letter-spacing: 0.12em;
}

.section-footer {
    margin-top: 56px;
    text-align: center;
}
.section-footer--quick {
    margin-top: 24px;
}
.section-footer__group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-ghost {
    display: inline-block;
    padding: 14px 42px;
    border: 1px solid var(--c-ink);
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.14em;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.btn-ghost::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
    z-index: -1;
}
.btn-ghost:hover {
    color: var(--c-white);
    opacity: 1;
}
.btn-ghost:hover::before { transform: scaleX(1); }


/* =========================================================
   NEWS (お知らせ, compact list style)
   ========================================================= */
.news {
    background: var(--c-paper-2);
    padding: 96px 20px 104px;
    border-top: 1px solid var(--c-line-soft);
}
.news__inner {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}
.news-list-compact {
    border-top: 1px solid var(--c-ink);
}
.news-item {
    display: grid;
    grid-template-columns: 130px 120px 1fr;
    gap: 24px;
    padding: 22px 8px;
    border-bottom: 1px solid var(--c-line-soft);
    align-items: center;
    transition: background 0.3s var(--ease);
}
.news-item:hover { background: rgba(255, 255, 255, 0.6); }
.news-item__date {
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--c-text-mute);
    letter-spacing: 0.1em;
}
.news-item__tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    color: var(--c-ink-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 2px;
    width: fit-content;
}
.news-item__title {
    font-size: 14.5px;
    color: var(--c-ink);
    line-height: 1.85;
    letter-spacing: 0.03em;
}


/* =========================================================
   VISIT — えすこーと案内
   Light, brand-forward CTA section showing the parent
   brand logo + guide illustration + visit button.
   ========================================================= */
.visit {
    background:
        radial-gradient(ellipse 700px 350px at 15% 10%, rgba(195, 220, 160, 0.18), transparent 70%),
        radial-gradient(ellipse 700px 350px at 85% 90%, rgba(252, 214, 214, 0.22), transparent 70%),
        var(--c-paper-2);
    color: var(--c-ink);
    padding: 88px 20px 96px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.visit__inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.visit__eyebrow {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--c-coral);
    margin-bottom: 28px;
    display: block;
    text-transform: uppercase;
}

.visit__logo {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 48px;
}
.visit__logo img {
    width: 100%;
    height: auto;
}

.visit__guide {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
}
.visit__guide img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-m);
}

.visit__btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 40px;
    background: var(--c-ink);
    color: var(--c-white);
    border-radius: 999px;
    font-family: var(--font-rounded);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.16em;
    box-shadow: 0 10px 24px -12px rgba(15, 31, 58, 0.45);
    transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    position: relative;
}
.visit__btn::after {
    content: "→";
    display: inline-block;
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    transform: translateX(0);
    transition: transform 0.35s var(--ease);
}
.visit__btn:hover {
    background: var(--c-coral);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -12px rgba(217, 100, 96, 0.55);
    opacity: 1;
}
.visit__btn:hover::after { transform: translateX(4px); }


/* =========================================================
   TOUR — 見学・体験のお申し込み
   ========================================================= */
.tour {
    background:
        radial-gradient(ellipse 720px 360px at 80% 0%, rgba(200, 220, 238, 0.35), transparent 70%),
        radial-gradient(ellipse 600px 320px at 10% 100%, rgba(252, 224, 214, 0.28), transparent 70%),
        var(--c-paper);
    color: var(--c-ink);
    padding: 96px 20px 112px;
    position: relative;
    overflow: hidden;
}

.tour__inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}

.tour__form-wrap {
    background: var(--c-white);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-l);
    box-shadow: var(--sh-card);
    padding: 48px clamp(20px, 5vw, 56px);
    position: relative;
}

.tour__form-wrap::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(45, 105, 168, 0.08), transparent 40%, rgba(217, 100, 96, 0.06));
    mix-blend-mode: multiply;
}

.tour__form-card {
    position: relative;
    z-index: 1;
    text-align: center;
}

.tour__form-kicker {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-blue);
}

.tour__form-title {
    margin-bottom: 16px;
    font-family: var(--font-rounded);
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--c-ink);
}

.tour__form-text {
    max-width: 560px;
    margin: 0 auto 28px;
    font-family: var(--font-body);
    color: var(--c-text);
    line-height: 1.9;
}

.tour__form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 34px;
    border-radius: 999px;
    background: var(--c-ink);
    color: var(--c-white);
    font-family: var(--font-rounded);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: 0 14px 28px -14px rgba(15, 31, 58, 0.55);
    transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tour__form-btn::after {
    content: "→";
    line-height: 1;
    transition: transform 0.35s var(--ease);
}

.tour__form-btn:hover {
    background: var(--c-coral);
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -16px rgba(217, 100, 96, 0.58);
    opacity: 1;
}

.tour__form-btn:hover::after { transform: translateX(4px); }

.tour__form-note {
    margin-top: 22px;
    font-size: 13px;
    color: var(--c-text-mute);
    line-height: 1.8;
}

.tour__form-note a {
    color: var(--c-blue);
    text-decoration: underline;
}

@media (max-width: 720px) {
    .tour { padding: 64px 16px 80px; }
    .tour__form-wrap {
        padding: 28px 16px;
        border-radius: var(--radius-m);
    }
}


/* =========================================================
   FOOTER (simplified, editorial)
   ========================================================= */
.footer {
    background: var(--c-paper-3);
    color: var(--c-ink);
    padding: 72px 20px 32px;
    position: relative;
}
.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 2fr 1fr;
    gap: 56px;
}
.footer__brand {
    font-family: var(--font-rounded);
    font-weight: 800;
    font-size: 22px;
    color: var(--c-ink);
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.footer__brand-en {
    display: inline-block;
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.32em;
    color: var(--c-coral);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.footer__addr {
    font-family: var(--font-rounded);
    font-weight: 500;
    font-size: 13px;
    line-height: 2;
    color: var(--c-text-mute);
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}
.footer__mail a {
    display: inline-block;
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--c-ink);
    letter-spacing: 0.04em;
    padding: 4px 0 3px;
    border-bottom: 2px solid var(--c-coral);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer__mail a:hover {
    color: var(--c-coral);
    opacity: 1;
}

.footer__head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--c-ink);
    letter-spacing: 0.22em;
    margin-bottom: 18px;
    position: relative;
    padding-left: 14px;
}
.footer__head::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1px;
    background: var(--c-coral);
}
.footer__schools-note {
    font-size: 11.5px;
    color: var(--c-text-mute);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer__schools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px;
}
.footer__schools li {
    font-size: 12px;
    color: var(--c-text);
    line-height: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer__schools a {
    color: inherit;
    position: relative;
    padding-bottom: 1px;
}
.footer__schools a:hover { color: var(--c-coral); opacity: 1; }

/* Lab implementation school badge */
.lab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--c-coral);
    background: rgba(217, 100, 96, 0.08);
    border: 1px solid rgba(217, 100, 96, 0.32);
    padding: 1px 6px 2px;
    border-radius: 2px;
    line-height: 1;
    flex-shrink: 0;
    text-transform: uppercase;
}
.footer__schools .is-lab-school > a::before {
    content: "LAB";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--c-coral);
    background: rgba(217, 100, 96, 0.08);
    border: 1px solid rgba(217, 100, 96, 0.32);
    padding: 1px 5px 2px;
    border-radius: 2px;
    line-height: 1;
    margin-right: 8px;
    vertical-align: 1px;
    transition: background 0.25s var(--ease);
}
.footer__schools .is-lab-school > a:hover::before {
    background: rgba(217, 100, 96, 0.16);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer__links li { font-size: 12.5px; line-height: 1.9; }
.footer__links a:hover { color: var(--c-coral); opacity: 1; }

.footer__bottom {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid rgba(15, 31, 58, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__copy {
    font-size: 11px;
    color: var(--c-text-mute);
    letter-spacing: 0.08em;
}
.footer__top-link {
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--c-ink);
    padding: 8px 14px;
    border: 1px solid var(--c-ink);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.footer__top-link:hover {
    background: var(--c-ink);
    color: var(--c-paper);
    opacity: 1;
}


/* =========================================================
   BLOG INDEX PAGE
   ========================================================= */
.page-hero {
    padding: 88px 20px 72px;
    text-align: center;
    background:
        radial-gradient(ellipse 700px 350px at 50% 100%, rgba(45, 105, 168, 0.07), transparent 70%),
        var(--c-paper);
    border-bottom: 1px solid var(--c-line-soft);
}
.page-hero__eyebrow {
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.4em;
    color: var(--c-coral);
    margin-bottom: 14px;
    display: block;
}
.page-hero__title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(36px, 5vw, 56px);
    color: var(--c-ink);
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin-bottom: 18px;
}
.page-hero__desc {
    max-width: 560px;
    margin: 0 auto;
    font-size: 14px;
    color: var(--c-text-mute);
    line-height: 2.1;
    letter-spacing: 0.04em;
}

.page-nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 20px 8px;
    font-size: 12px;
    color: var(--c-text-mute);
    letter-spacing: 0.08em;
}
.page-nav a:hover { color: var(--c-coral); opacity: 1; }
.page-nav__sep { margin: 0 10px; color: var(--c-text-faint); }

.blog-index {
    padding: 40px 20px 96px;
}
.blog-index__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.blog-index__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--c-line-soft);
}
.filter-chip {
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--c-text-mute);
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.filter-chip:hover { border-color: var(--c-ink); color: var(--c-ink); }
.filter-chip--active {
    background: var(--c-ink);
    color: var(--c-paper);
    border-color: var(--c-ink);
}


/* =========================================================
   BLOG ARTICLE PAGE
   ========================================================= */
.article {
    background: var(--c-paper);
    padding: 0 20px 96px;
}
.article__inner {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}
.article__header {
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--c-line-soft);
    margin-bottom: 56px;
    text-align: center;
}
.article__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 12px;
    letter-spacing: 0.1em;
}
.article__cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--c-ink);
    color: var(--c-white);
    font-weight: 700;
    border-radius: 2px;
}
.article__school {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--c-line);
    color: var(--c-text-mute);
    font-weight: 500;
    border-radius: 2px;
}
.article__date {
    font-family: var(--font-en);
    color: var(--c-text-mute);
    letter-spacing: 0.14em;
    align-self: center;
}

.article__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(26px, 3.8vw, 38px);
    line-height: 1.55;
    letter-spacing: 0.06em;
    color: var(--c-ink);
    max-width: 760px;
    margin: 0 auto;
}

.article__body {
    font-size: 15.5px;
    line-height: 2.2;
    letter-spacing: 0.03em;
    color: var(--c-text);
}
.article__body p {
    margin-bottom: 26px;
}
.article__body p.lead {
    font-size: 17px;
    color: var(--c-ink-2);
    margin-bottom: 40px;
}
.article__body h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--c-ink);
    letter-spacing: 0.06em;
    line-height: 1.5;
    margin: 56px 0 24px;
    padding-left: 18px;
    border-left: 3px solid var(--c-coral);
}
.article__body h3 .num {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--c-coral);
    letter-spacing: 0.2em;
    margin-right: 10px;
    vertical-align: 0.1em;
}

.article__figure {
    margin: 36px -40px;
    padding: 0;
}
.article__figure img {
    width: 100%;
    border-radius: var(--radius-m);
    box-shadow: var(--sh-card);
}
.article__figure figcaption {
    margin-top: 12px;
    font-size: 12px;
    color: var(--c-text-mute);
    text-align: center;
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.article__callout {
    background: var(--c-paper-2);
    border-left: 3px solid var(--c-gold);
    padding: 24px 28px;
    margin: 40px 0;
    font-size: 14.5px;
    line-height: 2;
    color: var(--c-ink-2);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.article__signature {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--c-line-soft);
    text-align: right;
    font-family: var(--font-serif);
    color: var(--c-ink);
    letter-spacing: 0.1em;
}
.article__signature strong {
    font-weight: 600;
    font-size: 18px;
}

.article__contact {
    margin-top: 40px;
    padding: 28px 32px;
    background: var(--c-paper-blue);
    border-radius: var(--radius-m);
}
.article__contact-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--c-ink);
    letter-spacing: 0.2em;
    margin-bottom: 14px;
}
.article__contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 36px;
    align-items: baseline;
    font-size: 13.5px;
    color: var(--c-text);
}
.article__contact-row a {
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--c-ink);
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--c-ink);
    padding-bottom: 2px;
}
.article__contact-row a:hover { opacity: 1; color: var(--c-coral); border-color: var(--c-coral); }

.article__nav {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--c-line-soft);
    display: flex;
    justify-content: space-between;
    gap: 24px;
}
.article__nav-item {
    flex: 1;
    padding: 18px 22px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-s);
    transition: all 0.3s var(--ease);
    min-width: 0;
}
.article__nav-item:hover {
    border-color: var(--c-ink);
    transform: translateY(-2px);
    opacity: 1;
}
.article__nav-item--prev { text-align: left; }
.article__nav-item--next { text-align: right; }
.article__nav-label {
    display: block;
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--c-coral);
    letter-spacing: 0.3em;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.article__nav-title {
    display: block;
    font-size: 13px;
    color: var(--c-ink);
    line-height: 1.75;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr; gap: 40px; }
    .article__figure { margin-left: 0; margin-right: 0; }
    .news-item { grid-template-columns: 100px 1fr; gap: 12px 18px; }
    .news-item__tag { grid-column: 2; }
    .news-item__title { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .gallery__row { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .experience { padding: 40px 16px 48px; }
    .camp { padding: 12px 16px 48px; }
    .camp__note { font-size: 11.5px; }
    .blog-latest { padding: 72px 20px 80px; }
    .news { padding: 64px 20px 72px; }
    .footer { padding: 48px 20px 28px; }
    .footer__schools { grid-template-columns: 1fr; }
    .article__nav { flex-direction: column; }
    .article__figure { margin-left: -8px; margin-right: -8px; }

    /* --- Mobile hero: full-bleed vertical image ------------ */
    .hero { padding: 0; }
    .hero__img { width: 100%; max-width: 100%; }

    /* 特長バナーはスマホ用アート（picture の source）を表示 */
    .powers { padding: 48px 16px 56px; }

    /* --- Visit section on mobile: tight spacing between
           logo and the guide illustration. ---------------- */
    .visit { padding: 48px 16px 56px; }
    .visit__eyebrow { margin-bottom: 12px; }
    .visit__logo {
        max-width: 240px;
        margin: 0 auto 24px;
    }
    .visit__guide {
        margin: 0 auto 24px;
    }
}


/* =========================================================
   SITE HEADER  /  GLOBAL NAVIGATION
   Refined editorial header — ivory glass, mincho brand,
   coral hairline accent for active state.
   ========================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    width: 100%;
    background: rgba(254, 252, 246, 0.78);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(254, 252, 246, 0.94);
    border-bottom-color: var(--c-line-soft);
    box-shadow: 0 1px 0 rgba(15, 31, 58, 0.02), 0 12px 32px -22px rgba(15, 31, 58, 0.16);
}

.site-header__inner {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 10px 28px;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* --- Brand logo --------------------------------------- */
.site-header__brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    color: var(--c-ink);
    transition: opacity 0.25s var(--ease);
}
.site-header__brand:hover { opacity: 0.78; }
.site-header__brand-img {
    display: block;
    height: 88px;
    width: auto;
    object-fit: contain;
}

/* --- Desktop nav -------------------------------------- */
.global-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.global-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.global-nav__link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 16px;
    color: var(--c-ink);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}
.global-nav__link:hover { opacity: 1; color: var(--c-coral); }
.global-nav__en {
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--c-text-mute);
    text-transform: uppercase;
    transition: color 0.25s var(--ease);
}
.global-nav__jp {
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.12em;
}
.global-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 1px;
    background: var(--c-coral);
    transform: translateX(-50%);
    transition: width 0.35s var(--ease);
}
.global-nav__link:hover::after,
.global-nav__link.is-active::after { width: 22px; }
.global-nav__link.is-active .global-nav__en { color: var(--c-coral); }

/* --- CTA button --------------------------------------- */
.global-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    padding: 12px 22px;
    background: var(--c-ink);
    color: var(--c-paper);
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 6px 16px -10px rgba(15, 31, 58, 0.5);
}
.global-nav__cta svg { transition: transform 0.3s var(--ease); }
.global-nav__cta:hover {
    opacity: 1;
    background: var(--c-coral);
    box-shadow: 0 10px 22px -10px rgba(217, 100, 96, 0.55);
    transform: translateY(-1px);
}
.global-nav__cta:hover svg { transform: translateX(3px); }

/* --- Hamburger (mobile only) -------------------------- */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--c-line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--c-ink);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
    transform-origin: center;
}
.nav-toggle.is-open { background: var(--c-ink); border-color: var(--c-ink); }
.nav-toggle.is-open .nav-toggle__bar { background: var(--c-paper); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Mobile drawer ------------------------------------ */
.mobile-nav {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--c-paper);
    background-image:
        radial-gradient(ellipse 600px 320px at 90% 0%, rgba(217, 100, 96, 0.07), transparent 60%),
        radial-gradient(ellipse 600px 360px at 0% 100%, rgba(45, 105, 168, 0.06), transparent 60%);
    padding: 28px 22px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
    pointer-events: none;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* legacy [hidden] support; we now control visibility purely via .is-open */
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0s;
}
.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.mobile-nav__list li {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s var(--ease) calc(var(--i, 0) * 0.05s),
                transform 0.4s var(--ease) calc(var(--i, 0) * 0.05s);
}
.mobile-nav.is-open .mobile-nav__list li {
    opacity: 1;
    transform: translateY(0);
}
.mobile-nav__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    color: var(--c-ink);
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid var(--c-line-soft);
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.mobile-nav__list a:active,
.mobile-nav__list a:hover {
    background: var(--c-ink);
    color: var(--c-paper);
    transform: translateY(-1px);
    opacity: 1;
}
.mobile-nav__jp {
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.14em;
}
.mobile-nav__cta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    background: var(--c-coral);
    color: var(--c-paper);
    font-family: var(--font-rounded);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.18em;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 22px -10px rgba(217, 100, 96, 0.55);
}

/* --- Spacing offset so the fixed header doesn't
        cover the hero / anchor targets ---------------- */
body { padding-top: 76px; }
section[id] { scroll-margin-top: 86px; }

/* --- Header responsive -------------------------------- */
@media (max-width: 1080px) {
    .global-nav__list { gap: 0; }
    .global-nav__link { padding: 12px 12px; }
    .global-nav__jp { font-size: 13px; }
    .global-nav__cta { margin-left: 8px; padding: 11px 18px; font-size: 12.5px; }
}

@media (max-width: 900px) {
    .site-header__inner { min-height: 84px; height: auto; padding: 8px 18px; }
    .site-header__brand-img { height: 64px; }
    .global-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-nav { top: 84px; }
    body { padding-top: 84px; }
    section[id] { scroll-margin-top: 92px; }
}

/* --- Accessibility / SEO: single document h1 without changing layout */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Tips hub: PNG/SVG thumbnails in blog-card frame ----- */
.blog-card__image .blog-card__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tips-archive-note {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: rgba(30, 42, 50, 0.55);
    letter-spacing: 0.06em;
    margin-top: 10px;
}
