/* ==================================================
   SOL2026 生物クラス
   色・文字の大きさはここで調整できます。
   ================================================== */
:root {
    --paper: #fffdf7;
    --ink: #343c2c;
    --green: #315b38;
    --pale-green: #edf3e6;
    --yellow: #ffe46b;
    --line: #d7dfcd;
    --body-size: 18px;
    --content-width: 1120px;
}

/* 基本設定 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-size: var(--body-size);
    line-height: 2;
    overflow-wrap: anywhere;
}

a {
    color: var(--green);
    text-underline-offset: 0.25em;
}

a:focus-visible {
    outline: 3px solid #966012;
    outline-offset: 5px;
}

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

figure {
    margin: 0;
}

p {
    margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.8;
    text-wrap: pretty;
}

ruby {
    ruby-position: over;
}

rt {
    font-size: max(11px, 0.55em);
    font-weight: 400;
    letter-spacing: 0;
}

.wrap {
    width: min(var(--content-width), calc(100% - 64px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -120px;
    left: 20px;
    z-index: 10;
    padding: 10px 20px;
    background: white;
}

.skip-link:focus {
    top: 10px;
}

/* ヘッダー */
.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-block: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.7;
    text-decoration: none;
}

.brand strong {
    font-size: 17px;
}

.brand-mark {
    padding: 7px 15px;
    border-radius: 50% 50% 44% 44%;
    background: var(--yellow);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.brand-mark span {
    display: block;
    font-size: 13px;
    letter-spacing: 0.15em;
}

.back-link {
    flex-shrink: 0;
    font-size: 16px;
}

/* 冒頭：大きな見出しと実際の写真 */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 48px;
    padding-block: 64px 52px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--green);
    font-size: clamp(36px, 4.5vw, 58px);
    line-height: 1.5;
    letter-spacing: -0.035em;
}

.hero h1 span {
    color: #8a9b48;
}

.hero-copy > p:not(.eyebrow) {
    line-height: 2.2;
}

.hero-photo {
    overflow: hidden;
    border-radius: 120px 120px 18px 18px;
    background: var(--green);
    transform: rotate(2deg);
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.hero-photo figcaption {
    padding: 18px 16px;
    color: white;
    font-size: 17px;
    text-align: center;
}

.event-date {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 16px;
    border-radius: 8px;
    background: var(--yellow);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.8;
}

.event-date span {
    margin-inline: 3px;
    font-size: 18px;
}

.event-room {
    margin-top: 10px;
    margin-bottom: 0;
}

/* 企画ナビゲーション：マウスを離すと元の色に戻ります */
.program-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding-block: 12px 36px;
}

.program-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms;
}

.nav-number {
    font-size: 13px;
    font-weight: 400;
}

@media (hover: hover) {
    .program-nav a:hover {
        background: var(--pale-green);
    }

    .button:hover {
        background: #23462a;
    }
}

.program-nav a:focus-visible {
    background: var(--pale-green);
}

/* 整理券案内 */
.ticket-note {
    padding: 28px 32px;
    border-left: 5px solid #a67a13;
    border-radius: 0 16px 16px 0;
    background: #fff3c9;
}

.ticket-note h2 {
    margin-bottom: 12px;
    font-size: 23px;
}

.ticket-note p:last-child {
    margin-bottom: 0;
}

/* 企画詳細 */
.section-heading {
    padding-top: 76px;
    padding-bottom: 30px;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.program {
    margin-bottom: 36px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    scroll-margin-top: 20px;
}

.program-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.program-number {
    color: var(--green);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.4;
}

.program-header .eyebrow {
    margin-bottom: 4px;
}

.program-header h2 {
    color: var(--green);
    font-size: 28px;
}

.program-intro {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: 32px;
    padding-block: 30px;
}

.program-copy {
    min-width: 0;
}

.program-copy > p {
    line-height: 2.25;
}

.subtitle {
    font-weight: 700;
}

.program-photo {
    padding: 12px;
    border-radius: 12px;
    background: var(--pale-green);
}

.program-photo img {
    width: auto;
    max-height: 330px;
    margin-inline: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* 小さなタマムシ写真は拡大せず原寸を上限にする */
#Color .program-photo {
    padding: 24px;
}

.facts {
    margin: 20px 0 0;
}

.facts > div {
    display: grid;
    grid-template-columns: 6em minmax(0, 1fr);
    gap: 12px;
    padding-block: 8px;
    border-bottom: 1px dashed var(--line);
}

.facts dt {
    color: var(--green);
    font-weight: 700;
}

.facts dd {
    margin: 0;
}

.no-image {
    display: block;
}

.no-image .facts {
    max-width: 640px;
    margin-top: 0;
}

/* 時間表：スマートフォンでは午前・午後を縦に並べる */
.schedule-heading {
    margin-bottom: 14px;
    font-size: 23px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.schedule {
    padding: 24px;
    border-radius: 16px;
    background: var(--pale-green);
}

.schedule h4 {
    margin-bottom: 12px;
    color: var(--green);
    font-size: 22px;
}

.ticket-time {
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid #d4c46a;
    border-radius: 6px;
    background: #fff6cb;
}

.time-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.time-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 11px;
    border-bottom: 1px solid #ccd8c4;
}

.time-list li:last-child {
    border-bottom: 0;
}

.time {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

/* 地衣類は各回に名称があるため、時刻と内容を縦に配置 */
#Lichen .time-list li {
    display: grid;
    gap: 2px;
}

.return-link {
    display: inline-block;
    margin-top: 24px;
}

/* 結びとフッター */
.closing {
    padding-block: 40px 70px;
    text-align: center;
}

.closing h2 {
    margin-bottom: 20px;
    color: var(--green);
    font-size: 28px;
}

.button {
    display: inline-block;
    margin-top: 12px;
    padding: 16px 28px;
    border-radius: 50px;
    background: var(--green);
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.site-footer {
    padding-block: 36px;
    border-top: 1px solid var(--line);
    background: var(--pale-green);
}

.site-footer p {
    margin-bottom: 8px;
}

.modified,
.site-footer small {
    font-size: 15px;
}

/* タブレット */
@media (max-width: 960px) {
    .hero {
        gap: 28px;
    }

    .program-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .program {
        padding: 28px;
    }

    .program-intro {
        grid-template-columns: 1.2fr 1fr;
        gap: 24px;
    }

    .schedule {
        padding: 18px;
    }
}

/* スマートフォン：本文の18pxは維持 */
@media (max-width: 700px) {
    .wrap {
        width: calc(100% - 32px);
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding-block: 16px;
    }

    .brand {
        gap: 12px;
    }

    .brand strong {
        font-size: 15px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 36px;
    }

    .hero-photo {
        max-width: 460px;
        margin-inline: auto;
        border-radius: 60px 60px 14px 14px;
        transform: none;
    }

    .hero-photo img {
        aspect-ratio: 4 / 3;
    }

    .program-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-nav a {
        padding: 18px 10px;
    }

    .program-nav a > span:last-child {
        display: none;
    }

    .ticket-note {
        padding: 22px 18px;
    }

    .section-heading {
        padding-top: 48px;
    }

    .program {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .program-header {
        gap: 14px;
    }

    .program-number {
        font-size: 32px;
    }

    .program-header h2 {
        font-size: 25px;
    }

    .program-intro,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .facts > div {
        grid-template-columns: 5.5em minmax(0, 1fr);
        gap: 8px;
    }

    .schedule {
        padding: 18px 14px;
    }

    .time-list li {
        gap: 10px;
    }

    .closing h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

@media print {
    body {
        background: white;
        font-size: 12pt;
    }

    .program-nav,
    .return-link,
    .back-link,
    .closing {
        display: none;
    }

    .wrap {
        width: 100%;
    }

    .hero-photo {
        transform: none;
    }

    .program {
        padding: 20px;
    }

    .schedule,
    .program-header {
        break-inside: avoid;
    }
}
