*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-body: #1e1e1e;
    --color-white: #ffffff;
    --color-feature: #b8dff0;
    --color-feature-mid: #a0d0e8;
    --color-navy: #1a3562;
    --color-accent: #e04535;
    --color-accent-dark: #c73d2d;
    --color-text: #333333;
    --color-text-light: #555555;
    --color-border-card: #e86e6e;
    --max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    color: var(--color-body);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h2 {
    font-family: 'Kiwi Maru', serif;
    font-size: clamp(2.41vw, 4.55vw, 4.12vw);
    font-weight: 400;
    color: var(--color-navy);
    line-height: 1.55;
    margin-bottom: 0.53vw;
}

p {
    font-family: 'Kiwi Maru', serif;
    color: var(--color-navy);
    margin-top: 2.12vw;
    font-size: 1.72vw;
    line-height: 2.0;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 60vw;
    max-height: 100vh;
    overflow: visible;
    background-color: var(--color-navy);
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.0s ease-in;
}

.hero__bg.is-loaded {
    opacity: 1;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.65vw 3.97vw 5.29vw;
    height: 60vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Badge (shared) */
.hero__badge,
.schedule__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20vw;
    height: 20vw;
    background-color: var(--color-accent);
    border-radius: 50%;
    color: var(--color-white);
    text-align: center;
    line-height: 1.2;
    flex-shrink: 0;
    position: absolute;
}

.hero__badge {
    top: 2.6vw;
    left: 2.6vw;
}

.hero__badge-small,
.schedule__badge-small {
    font-size: 1.77vw;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero__badge-date,
.schedule__badge-date {
    font-size: 7.07vw;
    font-weight: 800;
    font-family: 'Shippori Mincho', serif;
    line-height: 1.1;
}

.hero__badge-day,
.schedule__badge-day {
    font-size: 1.66vw;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.hero__badge-time,
.schedule__badge-time {
    font-size: 2.18vw;
    font-weight: 500;
}

/* Hero Title */
.hero__title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    margin: 0;
    font-family: 'Shippori Mincho', 'Zen Old Mincho', serif;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.1;
}

.hero__title img {
    width: 100%;
}

.hero__subtitle {
    display: block;
    font-family: 'Playwrite NZ', cursive;
    font-size: clamp(0.8rem, 2vw, 2.2vw);
    color: var(--color-white);
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-top: 1em;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Illustration area */
.hero__illus {
    position: absolute;
    right: -5vw;
    bottom: -15vw;
    width: 30vw;
    height: auto;
    z-index: 3;
}

.hero__illus img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== ABOUT ========== */
.about {
    position: relative;
    background-color: var(--color-white);
    padding: 5.29vw 3.97vw 3.97vw;
}

.about__inner,
.works-intro__inner,
.works-category__inner,
.access__inner {
    max-width: 73.94vw;
    margin: 0 auto;
}

.about__heading,
.works-intro__heading {
    font-size: clamp(1.93vw, 3.64vw, 3.30vw);
}

/* Wave divider: white → sky blue */
.wave-divider {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* ========== SCHEDULE ========== */
.schedule {
    position: relative;
    background-color: #C7E8F6;
    padding: 3.97vw 3.97vw 5.29vw 3.97vw;
    margin: -1px 0;
}

.schedule__inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    font-family: 'Kaisei Decol', serif;
}

.schedule__main {
    display: flex;
    align-items: flex-end;
    gap: 1.32vw;
    flex-wrap: wrap;
    margin-bottom: 2.12vw;
}

.schedule__label {
    font-family: 'Kaisei Decol', serif;
    font-size: 1.55vw;
    font-weight: 500;
    color: var(--color-navy);
    flex-shrink: 0;
}

.schedule__date {
    display: flex;
    align-items: baseline;
    gap: 0.4vw;
}

.schedule__date-num {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(3.85vw, 6.24vw, 6.06vw);
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
}

.schedule__date-day {
    font-size: 1.55vw;
    font-weight: 700;
    color: var(--color-navy);
}

.schedule__arrow {
    display: flex;
    align-items: center;
    margin: 0 0.53vw;
}

.schedule__arrow img {
    height: 1.4em;
    width: auto;
    display: block;
}

.schedule__details {
    display: flex;
    flex-direction: column;
    gap: 0.79vw;
    margin: 0;
    width: auto;
}

.schedule__detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.79vw;
    font-size: 1.55vw;
    color: var(--color-navy);
    font-weight: 500;
}

.schedule__detail-label {
    flex-shrink: 0;
    white-space: nowrap;
}

.schedule__detail-value {
    font-weight: 400;
}

/* Student badge in schedule */
.schedule__badge {
    right: 4vw;
    bottom: -70%;
    transform: translateY(-50%);
    opacity: 0; /* スクロールトリガーまで非表示 */
}

/* Octopus illustration in schedule */
.schedule__octopus {
    position: absolute;
    top: -8.6vw;
    left: -6.61vw;
    bottom: 0;
    width: 32vw;
    height: auto;
    opacity: 0.95;
    pointer-events: none;
}

.schedule__octopus img {
    width: 100%;
    aspect-ratio: 6/4.5;
    display: block;
}

/* ========== WORKS INTRO ========== */
.works-intro {
    background-color: var(--color-white);
    padding: 5.29vw 3.97vw 3.97vw;
}

/* ========== WORKS CATEGORY ========== */
.works-category {
    background-color: var(--color-white);
    padding: 2.65vw 3.97vw 5.29vw;
}

.works-category__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.59vw;
}

.works-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-white);
    border: 0.13vw dashed var(--color-border-card);
    border-radius: 1.06vw;
    padding: 1.85vw 1.06vw 1.32vw;
    text-align: center;
    gap: 1.52vw;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.works-card__icon {
    width: 5.29vw;
    height: 5.29vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-card__icon img {
    height: 100%;
}

.works-card__label {
    font-size: 1.21vw;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.6;
}

/* ========== ACCESS ========== */
.access {
    position: relative;
    background-color: #C7E8F6;
    padding: 3.97vw 3.97vw 5.29vw;
    margin: -1px 0;
}

.access__heading {
    display: flex;
    align-items: center;
    gap: 1.32vw;
    margin-bottom: 2.65vw;
}

.access__heading-tag {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background-color: #1a3562;
    color: #ffffff;
    font-size: 1.72vw;
    font-weight: 700;
    font-family: 'Kaisei Decol', serif;
    padding: 0.4vw 1.59vw 0.7vw;
    border-radius: 0.5vw;
}

.access__note {
    font-size: 1.21vw;
    color: var(--color-navy);
    line-height: 1.7;
}

.access__items {
    display: flex;
    flex-direction: column;
    gap: 2.12vw;
    margin: 0 auto 10vw auto;
}

.access__item {
    display: flex;
    align-items: flex-start;
    gap: 1.32vw;
}

.access__item-icon {
    flex-shrink: 0;
    width: 5.96vw;
    height: 5.96vw;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.07vw;
}

.access__item-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.access__item-content {
    flex: 1;
}

.access__item-heading {
    font-family: 'Kaisei Decol', serif;
    font-size: 1.66vw;
    font-weight: 700;
    color: var(--color-navy);
    margin: 1.4vw 0 1vw 0;
}

.access__item-text {
    font-size: 1.68vw;
    line-height: 1.8;
    color: var(--color-navy);
    margin: 1vw 0 0 0;
}

.access__item-text a {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 700;
}

.access__item-text a:hover {
    color: var(--color-accent);
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--color-white);
    padding: 3.98vw 3.97vw;
}

.footer__inner {
    max-width: 73.94vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.65vw;
    flex-wrap: wrap;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.53vw;
}

.footer__logo-icon {
    height: 3.82vw;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.footer__logo-text {
    font-size: 1.45vw;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
}

.footer__logo-sub {
    font-size: 1.03vw;
    color: var(--color-navy);
    letter-spacing: 0.05em;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer__divider {
    width: 0.07vw;
    height: 2.65vw;
    background-color: var(--color-navy);
    flex-shrink: 0;
}

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 0.26vw;
}

.footer__info-item {
    font-size: 1.45vw;
    color: var(--color-navy);
}

.footer__info-label {
    font-weight: 700;
    margin-right: 0.4vw;
}

.footer__copy {
    margin-left: auto;
    font-size: 1.24vw;
    color: #999;
}

/* ========== RESPONSIVE (SP: ~768px) ========== */
@media (max-width: 768px) {
    .pc {
        display: none;
    }

    h2 {
        font-size: 5.5vw;
    }

    p {
        font-size: 3.8vw;
        margin-top: 4vw;
    }

    /* HERO */
    .hero {
        min-height: 120vw;
    }

    .hero__inner {
        min-height: 120vw;
        padding: 5vw;
    }

    .hero__badge,
    .schedule__badge {
        width: 30vw;
        height: 30vw;
    }

    .hero__badge {
        top: 4vw;
        left: 4vw;
    }

    .hero__badge-small,
    .schedule__badge-small {
        font-size: 3vw;
    }

    .hero__badge-date,
    .schedule__badge-date {
        font-size: 9vw;
    }

    .hero__badge-day,
    .schedule__badge-day {
        font-size: 2.5vw;
    }

    .hero__badge-time,
    .schedule__badge-time {
        font-size: 3vw;
    }

    .hero__title {
        width: 70vw;
    }

    .hero__subtitle {
        margin-top: 3vw;
    }

    .hero__illus {
        right: -6vw;
        bottom: -18vw;
        width: 45vw;
    }

    /* ABOUT */
    .about {
        padding: 16vw 5vw 12vw;
    }

    .about__inner,
    .works-intro__inner,
    .works-category__inner,
    .access__inner {
        max-width: 100%;
    }

    .about__heading,
    .works-intro__heading {
        font-size: 5vw;
    }

    .about__body,
    .works-intro__body {
        font-size: 4vw;
        text-align: justify;
    }

    /* SCHEDULE */
    .schedule {
        padding: 8vw 5vw 12vw;
    }

    .schedule__main {
        gap: 2vw;
        margin-bottom: 4vw;
    }

    .schedule__label,
    .schedule__date-day,
    .schedule__detail-row {
        font-size: 3.5vw;
    }

    .schedule__detail-row {
        gap: 2vw;
    }

    .schedule__date-num {
        font-size: 9vw;
    }

    .schedule__arrow img {
        height: 0.7em;
    }

    .schedule__badge {
        right: 4vw;
        bottom: -26vw;
        transform: none;
    }

    .schedule__octopus {
        width: 50vw;
        top: -25vw;
        left: -16vw;
    }

    /* WORKS */
    .works-intro {
        padding: 8vw 5vw 6vw;
    }

    .works-category {
        padding: 4vw 5vw 8vw;
    }

    .works-category__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
        gap: 3vw;
    }

    .works-card {
        gap: 4vw;
        border: 0.55vw dashed var(--color-border-card);
        border-radius: 3vw;
    }

    .works-card__icon {
        width: 13vw;
        height: 13vw;
    }

    .works-card__label {
        font-size: 2.8vw;
    }

    /* ACCESS */
    .access {
        padding: 8vw 5vw 10vw;
    }

    .access__heading-tag {
        font-size: 3.8vw;
        padding: 1vw 3vw 1.7vw;
        border-radius: 1.4vw;
    }

    .access__heading {
        gap: 3vw;
    }

    .access__note {
        font-size: 2.24vw;
    }

    .access__item-icon {
        width: 10vw;
        height: 10vw;
    }

    .access__item {
        gap: 3vw;
    }

    .access__item-heading {
        font-size: 4vw;
        margin: 2vw 0 1.5vw;
    }

    .access__item-text {
        font-size: 3.6vw;
    }

    /* FOOTER */
    .footer {
        padding: 6vw 5vw;
    }

    .footer__inner {
        max-width: 100%;
        gap: 4vw;
        flex-wrap: wrap;
    }

    .footer__logo-icon {
        height: 7vw;
    }

    .footer__logo-text {
        font-size: 3vw;
    }

    .footer__logo-sub {
        font-size: 2.2vw;
    }

    .footer__divider {
        display: none;
    }

    .footer__info-item {
        font-size: 3vw;
    }

    .footer__copy {
        font-size: 2.5vw;
        margin-left: 0;
    }
}

/* ========== SCROLL FADE-IN ========== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ゆっくりフェードイン（ヒーロータイトル用） */
.fade-up--slow {
    transition-duration: 1.4s;
}

/* 行単位アニメーション用スパン */
.about__heading .fade-up,
.about__body .fade-up {
    display: block;
}

/* ========== HERO BADGE BOUNCE ========== */
@keyframes hero-badge-pop {
    0%   { transform: scale(2.0);opacity: 0; }
    12%  { transform: scale(1.32);opacity: 1; }
    45%  { transform: scale(0.86); }
    65%  { transform: scale(1.20); }
    80%  { transform: scale(0.98); }
    90%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.hero__badge {
    animation: hero-badge-pop 0.4s ease-out 1.0s both;
}

/* ========== SCHEDULE BADGE BOUNCE ========== */
/* translateY(-50%)を全キーフレームに含めてポジショニングを維持 */
@keyframes schedule-badge-pop {
    0%   { transform: translateY(-50%) scale(2.0); opacity: 0; }
    12%  { transform: translateY(-50%) scale(1.32); opacity: 1; }
    45%  { transform: translateY(-50%) scale(0.86); }
    65%  { transform: translateY(-50%) scale(1.20); }
    80%  { transform: translateY(-50%) scale(0.98); }
    90%  { transform: translateY(-50%) scale(1.04); }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

.schedule__badge.is-popping {
    animation: schedule-badge-pop 0.4s ease-out 0.2s both;
}

