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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #FFFBF0;
    background-image: radial-gradient(
        circle,
        rgba(0, 0, 0, 0.12) 1.5px,
        transparent 1.5px
    );
    background-size: 24px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.header {
    text-align: center;
    padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 2vw, 2rem);
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
    position: relative;
    z-index: 10;
}

.title-main {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #000;
    margin: 0 0 clamp(0.5rem, 1vh, 0.75rem) 0;
    letter-spacing: 0.05em;
}

.title-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    flex-wrap: wrap;
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
}

.title-classes {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #000;
    padding: clamp(0.3rem, 0.6vh, 0.5rem) clamp(0.8rem, 2vw, 1.2rem);
    background: rgba(0, 0, 0, 0.08);
    border: 2px solid #000;
    letter-spacing: 0.02em;
}

.title-separator {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    color: #666;
    font-weight: 300;
}

.title-venue {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    font-weight: 500;
    color: #444;
    padding: clamp(0.3rem, 0.6vh, 0.5rem) clamp(0.8rem, 2vw, 1.2rem);
    background: rgba(0, 0, 0, 0.04);
    border: 2px solid #000;
    letter-spacing: 0.02em;
}

.title-sub {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 400;
    color: #444;
    letter-spacing: 0.1em;
    margin-top: clamp(0.25rem, 0.5vh, 0.5rem);
}

.theme-description {
    width: 100%;
    max-width: 1200px;
    margin: clamp(1rem, 2.5vh, 1.5rem) auto clamp(0.75rem, 1.5vh, 1rem);
    padding: clamp(2rem, 4vh, 2.5rem) clamp(2rem, 4vw, 3rem);
    padding-top: calc(clamp(2rem, 4vh, 2.5rem) + 8px);
    text-align: left;
    line-height: 1.8;
    background-color: #fff;
    /* 5クラスのカラーストライプ */
    background-image: linear-gradient(
        to right,
        #0066FF 0%, #0066FF 20%,
        #00C840 20%, #00C840 40%,
        #9B45F5 40%, #9B45F5 60%,
        #FF1C3A 60%, #FF1C3A 80%,
        #FF7A00 80%, #FF7A00 100%
    );
    background-size: 100% 8px;
    background-repeat: no-repeat;
    background-position: 0 0;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 6px 6px 0 #000;
}

.theme-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.theme-text-content {
    display: flex;
    flex-direction: column;
}

.theme-qr-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: clamp(0.5rem, 1vh, 1rem);
}

.qrcode-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 3px solid #fff;
}

.theme-course-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #000;
    margin: 0 0 clamp(0.75rem, 1.5vh, 1rem) 0;
    letter-spacing: 0.05em;
    text-align: center;
}

.theme-course-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    flex-wrap: wrap;
    margin: 0 0 clamp(1.25rem, 2.5vh, 1.75rem) 0;
}

.theme-classes {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    font-weight: 500;
    color: #000;
    padding: clamp(0.3rem, 0.6vh, 0.5rem) clamp(0.8rem, 2vw, 1.2rem);
    background: rgba(4, 30, 64, 0.08);
    border-radius: clamp(0.3rem, 0.6vh, 0.5rem);
    letter-spacing: 0.02em;
}

.theme-separator {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    color: #999;
    font-weight: 300;
}

.theme-venue {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    font-weight: 500;
    color: #666;
    padding: clamp(0.3rem, 0.6vh, 0.5rem) clamp(0.8rem, 2vw, 1.2rem);
    background: rgba(0, 0, 0, 0.04);
    border-radius: clamp(0.3rem, 0.6vh, 0.5rem);
    letter-spacing: 0.02em;
}

.theme-subject {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 400;
    color: #666;
    margin: 0 0 clamp(1rem, 2vh, 1.25rem) 0;
    line-height: 1.6;
}

.theme-subject strong {
    font-weight: 700;
    color: #000;
}

.theme-main {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #000;
    margin: 0 0 clamp(0.75rem, 1.5vh, 1rem) 0;
    line-height: 1.6;
}

.theme-label {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    font-weight: 500;
    color: #666;
    margin-right: 0.5em;
}

.theme-method {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 400;
    color: #555;
    margin: 0 0 clamp(0.5rem, 1vh, 0.75rem) 0;
    line-height: 1.7;
    padding-left: 1em;
    position: relative;
}

.theme-method::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #000;
}

.theme-method strong {
    font-weight: 700;
    color: #000;
}

.theme-process {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 400;
    color: #555;
    margin: 0 0 clamp(0.5rem, 1vh, 0.75rem) 0;
    line-height: 1.7;
    padding-left: 1em;
    position: relative;
}

.theme-process::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #000;
}

.card-instruction {
    font-size: clamp(0.75rem, 1.6vw, 0.9rem);
    font-weight: 400;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.theme-youtube-container {
    width: 100%;
    margin-top: clamp(1.5rem, 3vh, 2rem);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
}

.theme-youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.header-controls {
    margin-top: clamp(1rem, 2vh, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1vh, 0.75rem);
}

.controls-row {
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.confirm-btn {
    padding: clamp(0.6rem, 1.2vh, 0.9rem) clamp(1.5rem, 3vw, 2.5rem);
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: white;
    background: #000;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
    box-shadow: 8px 8px 0 #0066FF;
}

.confirm-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 7px 7px 0 #0066FF;
}

.confirm-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 2px 2px 0 #0066FF;
}

.confirm-btn:disabled {
    background: #666;
    border-color: #666;
    cursor: not-allowed;
    box-shadow: 8px 8px 0 #999;
}

.confirm-btn.confirmed {
    background: #00C840;
    border-color: #00C840;
    box-shadow: 8px 8px 0 #007A26;
}

.status-message {
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    font-weight: 400;
    color: #444;
    min-height: 1.2em;
}

.status-message.confirmed {
    color: #00C840;
    font-weight: 700;
}

.load-json-btn {
    padding: clamp(0.6rem, 1.2vh, 0.9rem) clamp(1.5rem, 3vw, 2.5rem);
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: #000;
    background: #FFFBF0;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
    display: inline-block;
    text-align: center;
    box-shadow: 8px 8px 0 #000;
}

.load-json-btn:hover {
    transform: translateY(-3px);
    box-shadow: 7px 7px 0 #000;
}

.cards-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1vh, 1rem);
    padding: 0 clamp(1rem, 2vw, 2rem);
    padding-bottom: 2rem;
    flex: 1;
}

/* シャッフルアニメーション */
.cards-container.shuffling .card.shuffled {
    animation: shuffleIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

@keyframes shuffleIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 確定アニメーション */
.cards-container.confirming .card {
    animation: confirmPulse 0.8s ease-out;
}

@keyframes confirmPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.section-divider {
    width: 100%;
    max-width: 1200px;
    margin: clamp(1.5rem, 3vh, 2.5rem) 0 clamp(1rem, 2vh, 1.5rem);
    text-align: center;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #000;
}

.section-header {
    display: inline-block;
    background: #FFFBF0;
    padding: clamp(0.5rem, 1vh, 0.75rem) clamp(1.5rem, 3vw, 2.5rem);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #000;
    position: relative;
    z-index: 1;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0 #000;
    letter-spacing: 0.1em;
}

.card {
    width: 100%;
    max-width: 1200px;
    min-height: calc((100vh - 8vh) / 9);
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0 #000;
    padding: clamp(1rem, 3vh, 2rem);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: clamp(0.5rem, 1.5vh, 1rem);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card.no-order {
    grid-template-columns: 1fr;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #000;
}

.card-order {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 6vh, 4rem);
    font-weight: 700;
    color: #000;
    padding-right: clamp(1rem, 3vw, 2rem);
    min-width: clamp(3rem, 8vw, 5rem);
    opacity: 1;
}

.card-content {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vh, 1rem);
}

.card.no-order .card-content {
    grid-column: 1;
}

.card-class-group {
    display: inline-flex;
    gap: 0.5rem;
}

.class-label {
    display: inline-block;
    padding: clamp(0.25rem, 0.5vh, 0.4rem) clamp(0.6rem, 1.2vw, 0.9rem);
    border-radius: 0;
    font-size: clamp(0.7rem, 1.8vh, 0.95rem);
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    border: 2px solid #000;
}

.group-label {
    display: inline-block;
    padding: clamp(0.25rem, 0.5vh, 0.4rem) clamp(0.6rem, 1.2vw, 0.9rem);
    border-radius: 0;
    font-size: clamp(0.7rem, 1.8vh, 0.95rem);
    font-weight: 700;
    background: #000;
    color: #fff;
    letter-spacing: 0.05em;
}

.card-theme {
    font-size: clamp(1rem, 2.5vh, 1.4rem);
    font-weight: 700;
    color: #000;
    line-height: 1.5;
}

.card-presenters {
    font-size: clamp(0.95rem, 2.2vh, 1.2rem);
    font-weight: 400;
    color: #000;
    line-height: 1.6;
    word-break: break-word;
}

/* クラスごとの色（neo-brutalist） */
.card.takawo {
    box-shadow: 8px 8px 0 #9B45F5;
}

.card.takawo:hover {
    box-shadow: 8px 8px 0 #9B45F5;
}

.card.takawo .class-label {
    background: #9B45F5;
}

.card.takawo .card-order {
    color: #9B45F5;
}

.card.yao {
    box-shadow: 8px 8px 0 #FF1C3A;
}

.card.yao:hover {
    box-shadow: 8px 8px 0 #FF1C3A;
}

.card.yao .class-label {
    background: #FF1C3A;
    color: white;
}

.card.yao .card-order {
    color: #FF1C3A;
}

.card.yamashita {
    box-shadow: 8px 8px 0 #FF7A00;
}

.card.yamashita:hover {
    box-shadow: 8px 8px 0 #FF7A00;
}

.card.yamashita .class-label {
    background: #FF7A00;
}

.card.yamashita .card-order {
    color: #FF7A00;
}

.card.mizuno {
    box-shadow: 8px 8px 0 #0066FF;
}

.card.mizuno:hover {
    box-shadow: 8px 8px 0 #0066FF;
}

.card.mizuno .class-label {
    background: #0066FF;
}

.card.mizuno .card-order {
    color: #0066FF;
}

.card.iguchi {
    box-shadow: 8px 8px 0 #00C840;
}

.card.iguchi:hover {
    box-shadow: 8px 8px 0 #00C840;
}

.card.iguchi .class-label {
    background: #00C840;
    color: #000;
}

.card.iguchi .card-order {
    color: #00C840;
}

/* アコーディオンコンテンツ */
.card-accordion-content {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 clamp(1rem, 3vh, 2rem);
}

.card.card-open .card-accordion-content {
    max-height: 2000px;
    padding: clamp(1rem, 2vh, 1.5rem) clamp(1rem, 3vh, 2rem);
    border-top: 2px solid #000;
    margin-top: clamp(0.5rem, 1vh, 1rem);
}

.card-youtube-container {
    width: 100%;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
}

.card-youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.card-materials-button {
    width: 100%;
    padding: clamp(0.75rem, 1.5vh, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: white;
    background: #000;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
    box-shadow: 3px 3px 0 #9B45F5;
}

.card-materials-button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 #9B45F5;
}

.card-materials-button:active {
    transform: translateY(0);
    box-shadow: 1px 1px 0 #9B45F5;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        min-height: auto;
    }

    .card.no-order {
        grid-template-columns: 1fr;
    }

    .card.no-order .card-content {
        grid-column: 1;
    }

    .card-order {
        grid-column: 1;
        grid-row: 1 / 3;
        padding-right: 1rem;
    }

    .card-content {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .header {
        padding: clamp(0.75rem, 2vh, 1.5rem) 1rem;
    }

    .title-main {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .title-info {
        gap: clamp(0.5rem, 1.5vw, 1rem);
    }

    .title-classes,
    .title-venue {
        font-size: clamp(0.85rem, 3vw, 1.1rem);
        padding: clamp(0.25rem, 0.5vh, 0.4rem) clamp(0.6rem, 1.5vw, 1rem);
    }

    .title-separator {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .title-sub {
        font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    }

    .theme-description {
        margin: clamp(0.75rem, 1.5vh, 1rem) auto clamp(0.5rem, 1vh, 0.75rem);
        padding: clamp(0.75rem, 1.5vh, 1rem) clamp(1rem, 2vw, 1.5rem);
    }

    .theme-content-wrapper {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vh, 1.5rem);
    }

    .theme-qr-content {
        display: none;
    }

    .theme-youtube-container {
        margin-top: clamp(0.75rem, 1.5vh, 1rem);
    }

    .theme-course-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .theme-course-info {
        gap: clamp(0.5rem, 1.5vw, 1rem);
        margin-bottom: clamp(1rem, 2vh, 1.5rem);
    }

    .theme-classes,
    .theme-venue {
        font-size: clamp(0.85rem, 3vw, 1.1rem);
        padding: clamp(0.25rem, 0.5vh, 0.4rem) clamp(0.6rem, 1.5vw, 1rem);
    }

    .theme-separator {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .theme-subject {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }

    .theme-main {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }

    .theme-label {
        font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    }

    .theme-method,
    .theme-process {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }

    .card-instruction {
        font-size: clamp(0.75rem, 1.6vw, 0.9rem);
    }

    .header-controls {
        margin-top: clamp(0.75rem, 1.5vh, 1rem);
    }

    .confirm-btn {
        padding: clamp(0.5rem, 1vh, 0.75rem) clamp(1.2rem, 2.5vw, 2rem);
        font-size: clamp(0.85rem, 2vw, 1.1rem);
    }

    .status-message {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    }

    .section-header {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        padding: clamp(0.4rem, 1vh, 0.6rem) clamp(1rem, 2.5vw, 2rem);
    }
}

@media (max-width: 480px) {
    .cards-container {
        padding: 0 0.75rem;
    }

    .card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .card-order {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        min-width: 2.5rem;
    }

    .card-accordion-content {
        padding: 0 1rem;
    }

    .card.card-open .card-accordion-content {
        padding: 1rem;
    }
}

/* スケジュール表示 */
.cards-container.schedule-view {
    gap: clamp(2rem, 4vh, 3rem);
}

.schedule-section {
    width: 100%;
    max-width: 1200px;
}

.schedule-section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.schedule-section-header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #000;
    padding: clamp(0.75rem, 1.5vh, 1.25rem) clamp(1.5rem, 3vw, 2.5rem);
    background: #FFFBF0;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0 #000;
    display: inline-block;
    letter-spacing: 0.1em;
}

.schedule-section-content {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.5rem);
}

.schedule-item {
    width: 100%;
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0 #000;
    padding: clamp(1.5rem, 3vh, 2rem);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.schedule-item:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #000;
}

.schedule-order {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 5vh, 3.5rem);
    font-weight: 700;
    color: #000;
    min-width: clamp(4rem, 10vw, 6rem);
    opacity: 1;
}

.schedule-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vh, 1rem);
}

.schedule-class-group {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: clamp(0.25rem, 0.5vh, 0.5rem);
}

.schedule-theme {
    font-size: clamp(1.1rem, 2.8vh, 1.5rem);
    font-weight: 700;
    color: #000;
    line-height: 1.5;
}

.schedule-presenters {
    font-size: clamp(1rem, 2.5vh, 1.3rem);
    font-weight: 400;
    color: #000;
    line-height: 1.6;
    word-break: break-word;
}

/* スケジュール表示でのクラスごとの色 */
.schedule-item.takawo {
    box-shadow: 8px 8px 0 #9B45F5;
}

.schedule-item.takawo:hover {
    box-shadow: 8px 8px 0 #9B45F5;
}

.schedule-item.takawo .class-label {
    background: #9B45F5;
}

.schedule-item.takawo .schedule-order {
    color: #9B45F5;
}

.schedule-item.yao {
    box-shadow: 8px 8px 0 #FF1C3A;
}

.schedule-item.yao:hover {
    box-shadow: 8px 8px 0 #FF1C3A;
}

.schedule-item.yao .class-label {
    background: #FF1C3A;
    color: white;
}

.schedule-item.yao .schedule-order {
    color: #FF1C3A;
}

.schedule-item.yamashita {
    box-shadow: 8px 8px 0 #FF7A00;
}

.schedule-item.yamashita:hover {
    box-shadow: 8px 8px 0 #FF7A00;
}

.schedule-item.yamashita .class-label {
    background: #FF7A00;
}

.schedule-item.yamashita .schedule-order {
    color: #FF7A00;
}

.schedule-item.mizuno {
    box-shadow: 8px 8px 0 #0066FF;
}

.schedule-item.mizuno:hover {
    box-shadow: 8px 8px 0 #0066FF;
}

.schedule-item.mizuno .class-label {
    background: #0066FF;
}

.schedule-item.mizuno .schedule-order {
    color: #0066FF;
}

.schedule-item.iguchi {
    box-shadow: 8px 8px 0 #00C840;
}

.schedule-item.iguchi:hover {
    box-shadow: 8px 8px 0 #00C840;
}

.schedule-item.iguchi .class-label {
    background: #00C840;
    color: #000;
}

.schedule-item.iguchi .schedule-order {
    color: #00C840;
}

/* スケジュール表示のアコーディオンコンテンツ */
.schedule-accordion-content {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 clamp(1.5rem, 3vh, 2rem);
}

.schedule-item.schedule-item-open .schedule-accordion-content {
    max-height: 2000px;
    padding: clamp(1rem, 2vh, 1.5rem) clamp(1.5rem, 3vh, 2rem);
    border-top: 2px solid #000;
    margin-top: clamp(0.5rem, 1vh, 1rem);
}

.schedule-youtube-container {
    width: 100%;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
}

.schedule-youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.schedule-materials-button {
    width: 100%;
    padding: clamp(0.75rem, 1.5vh, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: white;
    background: #000;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
    box-shadow: 3px 3px 0 #9B45F5;
}

.schedule-materials-button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 #9B45F5;
}

.schedule-materials-button:active {
    transform: translateY(0);
    box-shadow: 1px 1px 0 #9B45F5;
}

/* モバイル対応（スケジュール表示） */
@media (max-width: 768px) {
    .schedule-section-header h2 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        padding: clamp(0.6rem, 1.2vh, 1rem) clamp(1.2rem, 2.5vw, 2rem);
    }

    .schedule-item {
        grid-template-columns: auto 1fr;
        padding: clamp(1rem, 2vh, 1.5rem);
    }

    .schedule-order {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        min-width: clamp(3rem, 8vw, 4.5rem);
    }

    .schedule-theme {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }

    .schedule-presenters {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    }

    .schedule-accordion-content {
        padding: 0 1rem;
    }

    .schedule-item.schedule-item-open .schedule-accordion-content {
        padding: 1rem;
    }
}

/* フッター */
.footer {
    width: 100%;
    padding: clamp(1.5rem, 3vh, 2rem) clamp(1rem, 2vw, 2rem);
    padding-top: calc(clamp(1.5rem, 3vh, 2rem) + 8px);
    margin-top: auto;
    text-align: center;
    background-color: #FFFBF0;
    /* 5クラスのカラーストライプ（上辺） */
    background-image: linear-gradient(
        to right,
        #0066FF 0%, #0066FF 20%,
        #00C840 20%, #00C840 40%,
        #9B45F5 40%, #9B45F5 60%,
        #FF1C3A 60%, #FF1C3A 80%,
        #FF7A00 80%, #FF7A00 100%
    );
    background-size: 100% 8px;
    background-repeat: no-repeat;
    background-position: 0 0;
    border-top: 3px solid #000;
    position: relative;
    z-index: 10;
}

.footer-credit {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 400;
    color: #000;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.6;
}

/* モバイル対応（フッター） */
@media (max-width: 768px) {
    .footer {
        padding: clamp(1rem, 2vh, 1.5rem) clamp(0.75rem, 1.5vw, 1rem);
        margin-top: clamp(1.5rem, 3vh, 2rem);
    }

    .footer-credit {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    }
}
