* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    color: #222222;
    background: #f8f5ef;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

main {
    position: relative;
    overflow: visible;
}

main > section {
    position: relative;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* Header */
.site_header {
    position: relative;
    z-index: 5;
    min-height: 100svh;
    overflow: visible;
    background: #f8f5ef;
}

.site_header_inner {
    position: relative;
    width: 100%;
    min-height: 100svh;
    margin: 0 auto;
}

.site_header_brand {
    position: absolute;
    top: clamp(24px, 4vw, 54px);
    left: clamp(24px, 5vw, 72px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.4vw, 20px);
}

.site_header_logo {
    display: block;
    width: clamp(58px, 5.5vw, 78px);
    height: auto;
    mix-blend-mode: multiply;
}

.site_header_school {
    margin: 0;
    color: #446277;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    line-height: 1.8;
    letter-spacing: 0.18em;
}

.site_header_school_heading,
.site_header_school_title {
    display: block;
}

.site_header_school_year,
.site_header_school_faculty {
    display: none;
}

.site_header_center {
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 3;
    display: grid;
    justify-items: center;
    width: min(520px, 58vw);
    transform: translate(-50%, -50%);
}

.site_header_theme {
    display: block;
    width: clamp(150px, 18vw, 250px);
    height: auto;
}

.site_header_date {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin: clamp(26px, 3.2vw, 44px) 0 0;
    color: #446277;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.site_header_date_label {
    font-size: clamp(0.62rem, 0.75vw, 0.72rem);
    letter-spacing: 0.34em;
    text-indent: 0.34em;
}

.site_header_date_value {
    display: flex;
    align-items: center;
    gap: clamp(9px, 1vw, 15px);
    white-space: nowrap;
    font-size: clamp(0.82rem, 1.15vw, 1.02rem);
    letter-spacing: 0.1em;
}

.site_header_date_value i {
    color: #d89c8d;
    font-style: normal;
}

.site_header_location {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 9px 17px;
    color: #36566b;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(54, 86, 107, 0.22);
    border-radius: 999px;
    box-shadow: 0 5px 16px rgba(54, 86, 107, 0.08);
    text-decoration: none;
    white-space: nowrap;
    font-size: clamp(0.72rem, 0.92vw, 0.84rem);
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.site_header_location span {
    padding-right: 12px;
    border-right: 1px solid rgba(54, 86, 107, 0.2);
    font-size: 0.78em;
}

.site_header_location:hover,
.site_header_location:focus-visible {
    background: #fff;
    transform: translateY(-2px);
}

.site_header_info {
    position: absolute;
    top: clamp(82px, 12vh, 138px);
    right: clamp(24px, 5vw, 76px);
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 1.1vw, 17px);
    color: #36566b;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.site_header_faculty {
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.site_header_faculty {
    margin-top: clamp(70px, 8vh, 104px);
    font-size: clamp(0.62rem, 0.85vw, 0.78rem);
    line-height: 1.8;
    letter-spacing: 0.18em;
}

.site_header_year {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: clamp(7px, 0.7vw, 11px);
    margin: 0;
    line-height: 1.25;
}

.site_header_year_digits,
.site_header_year strong {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.site_header_year_digits {
    font-size: clamp(1.05rem, 1.65vw, 1.45rem);
    letter-spacing: 0.08em;
}

.site_header_year strong {
    margin-top: clamp(30px, 3.5vh, 46px);
    font-size: clamp(1.18rem, 1.85vw, 1.6rem);
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* One continuous, hand-drawn thread */
.section_thread_picture {
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: 50%;
    z-index: 0;
    display: block;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
}

.section_thread_art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0.68;
}

.thread_join {
    position: absolute;
    bottom: 0;
    z-index: 2;
    width: clamp(180px, 15vw, 230px);
    height: auto;
    pointer-events: none;
    user-select: none;
}

.site_header .thread_join {
    width: clamp(220px, 18vw, 280px);
}

.thread_join_right {
    right: 14.35%;
    transform: translate(50%, 50%);
}

.thread_join_left {
    left: 14.8%;
    transform: translate(-50%, 50%);
}

.thread_join_end {
    left: 50%;
    transform: translate(-50%, 50%);
}

.events .thread_join_right {
    right: 15%;
}

/* Floating nav */
.floating_nav {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 1500;
    display: flex;
    gap: 18px;
    padding: 9px 18px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.floating_nav.is_visible {
    opacity: 1;
    visibility: visible;
}

body.is_modal_open .floating_nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.floating_nav a {
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Sections */
.message,
.events,
.club {
    padding: 130px 32px;
}

.message { z-index: 4; }
.events { z-index: 3; }
.club { z-index: 2; }

.section_deco {
    position: absolute;
    z-index: 2;
    display: block;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.section_deco_cat {
    top: 18px;
    right: max(34px, calc(50% - 610px));
    width: clamp(210px, 18vw, 280px);
    opacity: 0.66;
    transform: rotate(-2deg);
}

.section_deco_wheel {
    bottom: clamp(64px, 8vh, 105px);
    left: clamp(38px, 7vw, 120px);
    width: clamp(175px, 15vw, 235px);
    opacity: 0.6;
    transform: rotate(-2deg);
}

.section_deco_hank {
    bottom: clamp(128px, 17vh, 205px);
    left: 38%;
    width: clamp(110px, 9vw, 150px);
    opacity: 0.42;
    transform: translateX(-50%) rotate(18deg);
}

.message_inner,
.gallery_inner {
    position: relative;
    z-index: 3;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.message_header,
.gallery_header {
    margin-bottom: 48px;
}

.message_title,
.gallery_title {
    margin: 0;
    line-height: 1.2;
}

.section_title_image {
    display: block;
    width: min(210px, 52vw);
    height: auto;
}

.message_grid,
.gallery_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.message_grid {
    gap: 32px 24px;
}

.gallery_grid {
    gap: 28px 20px;
}

.message_card,
.gallery_card {
    min-width: 0;
}

.message_card_button,
.gallery_card_button {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    color: inherit;
    background: #ffffff;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.message_card_button {
    text-align: left;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.gallery_card_button {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.message_card_button:hover,
.message_card_button:focus-visible,
.gallery_card_button:hover,
.gallery_card_button:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.13);
}

.message_card_image,
.gallery_card_image {
    margin: 0;
    overflow: hidden;
    background: #e8e5df;
}

.message_card_image {
    aspect-ratio: 1.5;
}

.gallery_card_image {
    aspect-ratio: 4 / 3;
}

.message_card_image img,
.gallery_card_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message_card_body {
    padding: 22px 20px 24px;
}

.message_card_role {
    min-height: 3em;
    margin: 0 0 8px;
    font-size: 0.78rem;
    line-height: 1.5;
}

.message_card_name {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.message_card_excerpt {
    display: -webkit-box;
    min-height: 5.25em;
    margin: 0;
    overflow: hidden;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.message_card_more {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
}

.gallery_card_name {
    margin: 0;
    padding: 16px 14px 18px;
    font-size: 1rem;
    text-align: center;
}

.club .gallery_card_name {
    padding-bottom: 6px;
}

.gallery_card_location {
    margin: 0;
    padding: 0 14px 18px;
    color: #666;
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

.club {
    background: transparent;
}

.section_more_button {
    display: none;
    margin: 24px auto 0;
    padding: 10px 22px;
    color: #222;
    background: #fff;
    border: 1px solid rgba(0,0,0,.16);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    font-weight: 700;
    cursor: pointer;
}

/* Yarn ball */
.yarn_ball {
    position: absolute;
    z-index: 1;
    width: 92px;
    height: auto;
    pointer-events: none;
    user-select: none;
    opacity: 0.78;
}

.yarn_ball_one {
    top: 29%;
    left: max(18px, calc(50% - 570px));
    transform: translate(-55%, -50%) rotate(-12deg);
}

.yarn_ball_two {
    top: 72%;
    right: max(18px, calc(50% - 570px));
    transform: translate(55%, -50%) rotate(18deg);
}

/* Modals */
body.is_modal_open {
    overflow: hidden;
}

.message_modal,
.gallery_modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
}

.message_modal {
    z-index: 2000;
    padding: 40px;
}

.gallery_modal {
    z-index: 2100;
    padding: 32px;
}

.message_modal[hidden],
.gallery_modal[hidden] {
    display: none;
}

.message_modal_backdrop,
.gallery_modal_backdrop {
    position: absolute;
    inset: 0;
}

.message_modal_backdrop {
    background: rgba(0, 0, 0, 0.62);
}

.gallery_modal_backdrop {
    background: rgba(0, 0, 0, 0.78);
}

.message_modal_panel,
.gallery_modal_panel {
    position: relative;
    z-index: 1;
}

.message_modal_panel {
    width: min(960px, 100%);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
}

.gallery_modal_panel {
    display: grid;
    place-items: center;
    width: fit-content;
    max-width: min(1100px, 100%);
    max-height: calc(100dvh - 64px);
}

.message_modal_close,
.gallery_modal_close {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    color: #222;
    background: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
}

.message_modal_close::before,
.message_modal_close::after,
.gallery_modal_close::before,
.gallery_modal_close::after {
    position: absolute;
    width: 19px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    content: "";
}

.message_modal_close::before,
.gallery_modal_close::before {
    transform: rotate(45deg);
}

.message_modal_close::after,
.gallery_modal_close::after {
    transform: rotate(-45deg);
}

.message_modal_close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
}

.gallery_modal_close {
    top: -18px;
    right: -18px;
    width: 46px;
    height: 46px;
}

.message_modal_content {
    position: relative;
    display: block;
}

.message_modal_image {
    position: absolute;
    top: 72px;
    right: 48px;
    width: 150px;
    height: 150px;
    margin: 0;
    overflow: hidden;
    background: #e8e5df;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.message_modal_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message_modal_body {
    min-height: 340px;
    padding: 72px 246px 48px 48px;
}

.message_modal_role {
    margin: 0 0 8px;
    font-size: .9rem;
}

.message_modal_name {
    margin: 0 0 28px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.message_modal_text {
    line-height: 2;
}

#gallery-modal-container {
    display: grid;
    place-items: center;
    width: fit-content;
    max-width: 100%;
    max-height: calc(100dvh - 64px);
}

.gallery_modal_image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 64px);
    object-fit: contain;
    border-radius: 16px;
}

/* Optional event details, selected by the card's template. */
.gallery_modal.has_event_details .gallery_modal_panel {
    width: min(1100px, 100%);
    background: #f8f5ef;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.gallery_modal.has_event_details #gallery-modal-container {
    display: block;
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: inherit;
}

.gallery_modal.has_event_details .gallery_modal_close {
    top: 12px;
    right: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.event_modal_content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.event_modal_visual {
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 28px;
    min-width: 0;
}

.event_modal_visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 120px);
    object-fit: contain;
    border-radius: 12px;
}

.event_modal_body {
    min-width: 0;
    padding: 64px 32px 36px;
    color: #263a45;
    overflow-wrap: anywhere;
}

.event_modal_category {
    margin: 0 0 8px;
    color: #446277;
    font-size: 0.85rem;
}

.event_modal_title {
    margin: 0 0 24px;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.4;
}

.event_modal_text {
    font-size: 0.95rem;
    line-height: 1.9;
}

.event_modal_text p { margin: 0 0 1em; }
.event_modal_text a { color: #365f78; }
.event_modal_text ul { padding-left: 1.5em; }

@media (max-width: 700px) {
    .event_modal_content { grid-template-columns: minmax(0, 1fr); }
    .event_modal_visual {
        position: static;
        padding: 58px 18px 0;
    }
    .event_modal_visual img { max-height: 45svh; }
    .event_modal_body { padding: 24px 22px 30px; }
    .event_modal_text { font-size: 0.9rem; }
}

/* Footer */
.site_footer {
    padding: 72px 32px 48px;
    color: #36566b;
    background: #e8ddd6;
}

.site_footer_inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.sponsor_title {
    margin: 0 0 32px;
}

.site_footer .section_title_image {
    opacity: 0.78;
}

.sponsor_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

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

.sponsor_grid + .sponsor_grid {
    margin-top: 18px;
}

.sponsor_item {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}

.sponsor_item a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.sponsor_item img {
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor_item_large {
    min-height: 172px;
}

.sponsor_item_large img {
    max-width: min(380px, 100%);
    max-height: 132px;
}

.sponsor_item_medium img {
    max-width: min(205px, 88%);
    max-height: 70px;
}

.sponsor_item_small {
    min-height: 94px;
    color: #36566b;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-align: center;
}

.sponsor_item_small a {
  color: inherit; /* 周りの文字と同じ色にする */
  text-decoration: none; /* 下線を消す */
}

.footer_links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(54, 86, 107, 0.18);
}

.footer_links a,
.footer_links button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 20px;
    color: #36566b;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(54, 86, 107, 0.22);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer_links a:hover,
.footer_links a:focus-visible,
.footer_links button:hover,
.footer_links button:focus-visible {
    background: #fff;
    transform: translateY(-2px);
}


/* Privacy policy page */
.privacy_page {
    min-height: 100svh;
    color: #263a45;
    background: #f8f5ef;
}

.privacy_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0;
}

.privacy_brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #36566b;
    text-decoration: none;
}

.privacy_brand img {
    width: 48px;
    height: auto;
    mix-blend-mode: multiply;
}

.privacy_brand span {
    display: grid;
    gap: 3px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    letter-spacing: 0.08em;
}

.privacy_brand strong { font-size: 0.96rem; }
.privacy_brand small { font-size: 0.68rem; }

.privacy_back,
.privacy_footer a {
    color: #36566b;
    text-decoration: none;
}

.privacy_back {
    padding: 10px 16px;
    border: 1px solid rgba(54, 86, 107, 0.28);
    border-radius: 999px;
    font-size: 0.82rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.privacy_back:hover,
.privacy_back:focus-visible {
    background: #fff;
    transform: translateY(-2px);
}

.privacy_main {
    position: relative;
    padding: clamp(54px, 8vw, 104px) 32px clamp(84px, 11vw, 140px);
    overflow: hidden;
    border-top: 1px solid rgba(54, 86, 107, 0.13);
}

.privacy_hero {
    position: absolute;
    top: 36px;
    right: max(28px, calc(50% - 620px));
    width: clamp(100px, 13vw, 180px);
    opacity: 0.24;
    transform: rotate(20deg);
    pointer-events: none;
}

.privacy_hero img { display: block; width: 100%; }

.privacy_content {
    position: relative;
    width: min(840px, 100%);
    margin: 0 auto;
    padding: clamp(32px, 6vw, 68px);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(54, 86, 107, 0.13);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(54, 86, 107, 0.07);
}

.privacy_eyebrow {
    margin: 0 0 13px;
    color: #b67c7b;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

.privacy_content h1,
.privacy_content h2,
.privacy_content h3 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.privacy_content h1 {
    margin: 0 0 38px;
    color: #36566b;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.privacy_content p,
.privacy_content dd,
.privacy_content address {
    font-size: 0.94rem;
    line-height: 2;
}

.privacy_content p { margin: 0; }

.privacy_lead {
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(54, 86, 107, 0.18);
}

.privacy_content section { margin-top: 48px; }

.privacy_content h2 {
    margin: 0 0 18px;
    color: #36566b;
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    font-weight: 600;
}

.privacy_content h2::before {
    display: inline-block;
    width: 22px;
    height: 2px;
    margin: 0 10px 0 0;
    vertical-align: middle;
    background: #d89c8d;
    content: "";
}

.privacy_content section p + p { margin-top: 1em; }

.privacy_content ul {
    margin: 18px 0 0;
    padding-left: 1.45em;
}

.privacy_content li {
    padding-left: 0.2em;
    font-size: 0.94rem;
    line-height: 1.9;
}

.privacy_content li + li { margin-top: 10px; }

.privacy_notice {
    margin-top: 22px;
    padding: 24px 26px;
    background: #f3e9df;
    border-radius: 14px;
}

.privacy_notice h3 {
    margin: 0 0 15px;
    color: #36566b;
    font-size: 1rem;
}

.privacy_notice dl { margin: 0; }
.privacy_notice dt { margin-top: 14px; color: #36566b; font-weight: 700; }
.privacy_notice dt:first-child { margin-top: 0; }
.privacy_notice dd { margin: 2px 0 0; }
.privacy_notice p { margin-top: 18px; }

.privacy_note { color: #536671; font-size: 0.84rem !important; }

.privacy_content address {
    margin-top: 16px;
    padding: 18px 20px;
    font-style: normal;
    background: #edf1ee;
    border-left: 3px solid #89a99c;
}

.privacy_content address a { color: #365f78; }

.privacy_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
    padding: 30px 0 42px;
    color: #5b6b73;
    font-size: 0.8rem;
}

.privacy_footer a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 700px) {
    .privacy_header {
        width: calc(100% - 36px);
        padding: 18px 0;
    }

    .privacy_brand { gap: 9px; }
    .privacy_brand img { width: 39px; }
    .privacy_brand strong { font-size: 0.78rem; }
    .privacy_brand small { font-size: 0.58rem; }
    .privacy_back { padding: 8px 10px; font-size: 0.68rem; white-space: nowrap; }

    .privacy_main { padding: 45px 18px 70px; }
    .privacy_hero { top: 12px; right: 15px; width: 102px; }
    .privacy_content { padding: 30px 22px; border-radius: 18px; }
    .privacy_content h1 { margin-bottom: 30px; }
    .privacy_content p,
    .privacy_content dd,
    .privacy_content address,
    .privacy_content li { font-size: 0.86rem; line-height: 1.9; }
    .privacy_lead { padding-bottom: 30px; }
    .privacy_content section { margin-top: 36px; }
    .privacy_content h2 { margin-bottom: 14px; }
    .privacy_content h2::before { width: 16px; margin-right: 8px; }
    .privacy_notice { padding: 20px 18px; }
    .privacy_footer { flex-direction: column; align-items: flex-start; width: calc(100% - 36px); padding: 25px 0 32px; }
}

@media (max-width: 1024px) {
    .message_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .message,
    .events,
    .club {
        padding: 104px 18px;
    }

    .section_thread_art {
        opacity: 0.58;
    }

    .section_thread_picture {
        top: -3px;
        bottom: -3px;
    }

    /* Match the header thread's lower endpoint to the first section join. */
    .site_header .section_thread_picture {
        transform: translateX(-56%);
    }

    .thread_join {
        width: clamp(78px, 24vw, 102px);
    }

    .site_header .thread_join {
        width: clamp(88px, 26vw, 110px);
    }

    .section_deco_cat {
        top: 14px;
        right: 8px;
        width: 132px;
        opacity: 0.54;
    }

    .section_deco_wheel {
        bottom: 34px;
        left: 12px;
        display: block;
        width: 120px;
        opacity: 0.52;
    }

    .section_deco_hank {
        bottom: 116px;
        left: auto;
        right: 18px;
        display: block;
        width: 72px;
        opacity: 0.38;
        transform: rotate(18deg);
    }

    .message_header,
    .gallery_header {
        margin-bottom: 32px;
    }

    .message_grid,
    .gallery_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    #message:not(.is_expanded) .message_card:nth-child(n + 5),
    #events:not(.is_expanded) .gallery_card:nth-child(n + 5),
    #club:not(.is_expanded) .gallery_card:nth-child(n + 5) {
        display: none;
    }

    .section_more_button {
        display: block;
    }

    .section_more_button[hidden] {
        display: none;
    }

    .floating_nav {
        top: 8px;
        max-width: calc(100vw - 20px);
        gap: 12px;
        padding: 7px 12px;
        overflow-x: auto;
        font-size: .86rem;
    }

    .yarn_ball {
        width: 58px;
        opacity: .62;
    }

    .yarn_ball_one {
        top: 31%;
        left: 8px;
        transform: translate(-35%, -50%) rotate(-12deg);
    }

    .yarn_ball_two {
        top: 74%;
        right: 8px;
        transform: translate(35%, -50%) rotate(18deg);
    }

    .message_modal {
        padding: 16px;
    }

    .message_modal_panel {
        max-height: calc(100dvh - 32px);
    }

    .message_modal_image {
        top: 24px;
        right: 24px;
        width: 96px;
        height: 96px;
        border-radius: 14px;
    }

    .message_modal_body {
        min-height: 0;
        padding: 32px 132px 40px 24px;
    }

    .message_modal_text {
        margin-right: -108px;
        padding-top: 24px;
    }

    .gallery_modal {
        padding: 20px;
    }

    .gallery_modal_panel,
    #gallery-modal-container,
    .gallery_modal_image {
        max-height: calc(100dvh - 40px);
    }

    .gallery_modal_close {
        top: 8px;
        right: 8px;
    }

    .site_header {
        min-height: 700px;
    }

    .site_header_inner {
        min-height: max(700px, 100svh);
    }

    .site_header_brand {
        top: 22px;
        left: 20px;
        right: 20px;
        gap: 10px;
    }

    .site_header_logo {
        width: 50px;
        flex-shrink: 0;
    }

    .site_header_school {
        font-size: 0.82rem;
        line-height: 1.7;
        letter-spacing: 0.14em;
    }

    .site_header_school_title {
        display: flex;
        align-items: baseline;
        flex-wrap: nowrap;
        column-gap: 7px;
        white-space: nowrap;
        font-size: 1.12rem;
        letter-spacing: 0.04em;
    }

    .site_header_school_year {
        display: inline;
        font-size: 0.94rem;
        letter-spacing: 0.04em;
    }

    .site_header_school_edition {
        font-size: 0.82rem;
        margin-right: 3px;
    }

    .site_header_school_heading {
        white-space: nowrap;
    }

    .site_header_school_faculty {
        display: inline;
        font-size: 0.68rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .site_header_center {
        top: 38%;
        width: calc(100% - 72px);
    }

    .site_header_theme {
        width: clamp(142px, 43vw, 190px);
    }

    .site_header_date {
        gap: 7px;
        margin-top: 24px;
    }

    .site_header_date_label {
        font-size: 0.68rem;
    }

    .site_header_date_value {
        gap: 8px;
        font-size: 0.76rem;
        letter-spacing: 0.06em;
    }

    .site_header_location {
        gap: 8px;
        margin-top: 6px;
        padding: 8px 13px;
        font-size: 0.72rem;
    }

    .site_header_location span {
        padding-right: 8px;
    }

    .site_header_info {
        display: none;
    }

    .site_footer {
        padding: 56px 18px 36px;
    }

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

    .sponsor_grid_large {
        grid-template-columns: minmax(0, 1fr);
    }

    .sponsor_grid + .sponsor_grid {
        margin-top: 12px;
    }

    .sponsor_item {
        min-height: 100px;
        padding: 15px;
    }

    .sponsor_item_large {
        min-height: 140px;
    }

    .sponsor_item_large img {
        max-width: min(290px, 100%);
        max-height: 104px;
    }

    .sponsor_item_medium img {
        max-width: 90%;
        max-height: 58px;
    }

    .sponsor_item_small {
        min-height: 76px;
        font-size: 0.8rem;
    }

    .footer_links {
        display: grid;
        grid-template-columns: 1fr 1.65fr;
        gap: 9px;
        margin-top: 26px;
        padding-top: 22px;
    }

    .footer_links a,
    .footer_links button {
        justify-content: center;
        min-width: 0;
        padding: 9px 10px;
        text-align: center;
        font-size: 0.75rem;
    }

}
