:root {
    --font-display: "Makinas-4-Square", sans-serif;
    --font-sans: "SawarabiGothic-Regular", sans-serif;
    --sub-color1: #F00;
    --sub-color2: #333;
    --header-height: 96px;
    --font-size: 16px;
}

.normal-font {
    font-family: var(--font-sans);
}

html {
    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-display);
}

html::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    width: 100%;
    flex: 1;
    margin: 0 auto;
    padding: 20px max(15px, 2vw);
}

hr {
    border: 1px solid;
    margin: 20px 0;
}

/* 共通ヘッダー */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 76px;
    background-color: #000000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333333;
    box-sizing: border-box;
}

.site-header__logo {
    display: flex;
    align-items: center;
}

.site-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    padding: 6px 14px;
}

.site-header__logo-img {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo-img-el {
    height: 64px;
    object-fit: contain;
    display: block;
}

.site-header__logo-text {
    padding-top: 2px;
    padding-left: 12px;
    text-align: left;
    white-space: nowrap;
}

.site-header__logo-sub {
    font-size: 12px;
    line-height: 1.25;
}

.site-header__logo-title {
    font-size: 24px;
    line-height: 1.15;
    margin-top: 2px;
}

.header-menu {
    height: auto;
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

.header-menu__item {
    min-width: 156px;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
    cursor: pointer;
}

.header-menu__item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -15%;
    width: 130%;
    height: 100%;
    background-color: #ffffff;
    z-index: -1;
    transform-origin: left;
    transform: skewX(-20deg) scaleX(0);
    transition: transform 0.3s ease;
}

.header-menu__item--active::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 3px;
    background-color: #ff2638;
}

.header-menu__item--active .header-menu__en {
    color: #ff2638;
    transition: color 0.3s ease;
}

.header-menu__item--active:hover .header-menu__en {
    color: #000000;
}

.header-menu__item:hover {
    color: #000000;
}

.header-menu__item:hover::after {
    transform: skewX(-20deg) scaleX(1);
}

.header-menu__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 2px;
    width: 100%;
    height: auto;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.header-menu__en {
    font-size: 22px;
    line-height: 1.15;
}

.header-menu__ja {
    font-size: 12px;
    line-height: 1.15;
}

.site-header__menu-toggle {
    z-index: 20;
    position: relative;
    cursor: pointer;
    opacity: 0;
    display: none;
}

.site-header__hamburger {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 19;
    border-left: 1px solid #333333;
    display: none;
}

.site-header__hamburger-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.site-header__menu-toggle:checked + .site-header__hamburger {
    border: none;
}

.site-header__hamburger-bar {
    width: 100%;
    height: 3px;
    margin: 0;
    background-color: #ffffff;
    transition: all 0.5s ease;
}

.site-header__menu-toggle:checked + .site-header__hamburger .site-header__hamburger-bar:nth-child(1),
.site-header__menu-toggle:checked + .site-header__hamburger .site-header__hamburger-bar:nth-child(3) {
    position: absolute;
    top: calc(50% - 1.5px);
    left: 0;
}

.site-header__menu-toggle:checked + .site-header__hamburger .site-header__hamburger-bar:nth-child(1) {
    transform: rotate(45deg);
}

.site-header__menu-toggle:checked + .site-header__hamburger .site-header__hamburger-bar:nth-child(2) {
    display: none;
}

.site-header__menu-toggle:checked + .site-header__hamburger .site-header__hamburger-bar:nth-child(3) {
    transform: rotate(-45deg);
}

.site-header__menu-toggle:checked ~ .header-menu {
    visibility: visible;
    opacity: 1;
}

/* 共通ページヘッダー（ホーム以外の全ページ） */
.page-header {
    margin: 10px 0 32px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #333333;
}

.page-header--after-poster {
    margin-top: 0;
}

.page-header__heading {
    border-left: 4px solid #ff2638;
    padding: 2px 0 2px 14px;
}

.page-header__eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    color: #9e9e9e;
    margin: 0 0 4px 0;
}

.page-header__title {
    font-family: var(--font-sans);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.page-header__lead {
    margin: 14px 0 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: #dcdcdc;
}

.page-header__meta {
    margin: 12px 0 0 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1.6;
    color: #dcdcdc;
    font-variant-numeric: tabular-nums;
}

.page-header__meta-item {
    margin: 0;
}

/* 共通セクション見出し（トップ・サークル紹介など） */
.section-header {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header__titles {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 3px solid;
    border-image: url("/static/img/h1border.0613fce056c5.png") 0 0 100 0 / 0 0 3px 0;
}

.section-header__en {
    font-size: 25px;
    line-height: normal;
    color: #ffffff;
    font-weight: normal;
    flex-shrink: 0;
}

.section-header__ja {
    font-family: var(--font-display);
    font-size: 15px;
    line-height: normal;
    color: #ffffff;
}

/* 汎用本文コンテンツ領域（特異性を抑えるため :where(#contents) を使用） */
:where(#contents) h1 {
    font-size: 25px;
    line-height: 1.35;
    margin: 20px 0 10px 0;
    padding-bottom: 4px;
    display: inline-block;
    border-bottom: 3px solid;
    border-image: url("/static/img/h1border.0613fce056c5.png") 0 0 100 0 / 0 0 3px 0;
}

:where(#contents) h1:first-child {
    margin-top: 0;
}

:where(#contents) h1 > span {
    font-size: 15px;
    margin-left: 10px;
}

:where(#contents) h2 {
    font-size: 20px;
    margin: 10px 0 10px 10px;
}

:where(#contents) p,
:where(#contents) li {
    margin: 3px 0;
    font-size: var(--font-size);
}

/* 共通フッター */
.site-footer {
    margin-top: 24px;
    text-align: center;
    padding: 20px 24px;
    border-top: 1px solid #333333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer__copyright {
    align-content: center;
    margin: 0 auto;
    color: #888888;
    font-size: 12px;
    line-height: 1.5;
}

.link {
    text-decoration: underline;
}

.link:hover {
    color: var(--sub-color1);
}

@media all and (max-width: 900px) {
    :root {
        --header-height: 88px;
    }

    .site-header {
        min-height: 72px;
    }

    .site-header__logo-link {
        padding: 10px 12px;
    }

    .site-header__logo-img-el {
        width: 99px;
        height: 51.3px;
    }

    .site-header__logo-text {
        padding-left: 10px;
    }

    .site-header__logo-sub {
        font-size: 11.5px;
    }

    .site-header__logo-title {
        font-size: 23px;
    }

    .site-main {
        padding: 16px 18px;
    }

    .page-header {
        margin: 4px 0 24px 0;
        padding-bottom: 16px;
    }

    .page-header--after-poster {
        margin-top: 0;
    }

    .section-header__en {
        font-size: 21px;
    }

    .section-header__ja {
        font-size: 13px;
    }

    :where(#contents) h1 {
        font-size: 21px;
    }

    :where(#contents) h1 > span {
        font-size: 13px;
    }

    .page-header__heading {
        border-left-width: 3px;
        padding: 2px 0 2px 12px;
    }

    .page-header__eyebrow {
        font-size: 11px;
    }

    .page-header__lead {
        margin-top: 12px;
        font-size: 15px;
    }

    .page-header__meta {
        padding-left: 15px;
        font-size: 13px;
    }

    .header-menu {
        display: block;
        height: 100%;
        width: 240px;
        position: fixed;
        top: 0;
        right: 0;
        background-color: #000000;
        padding: var(--header-height) 20px 0 20px;
        border-left: 1px solid #333333;
        z-index: 15;
        visibility: hidden;
        opacity: 0;
        transition: all 0.5s ease;
    }

    .header-menu__item {
        text-align: left;
        min-width: 0;
        padding: 14px 0;
        height: auto;
        display: block;
        position: static;
    }

    .header-menu__link {
        display: block;
        width: auto;
        padding: 0;
        text-align: left;
    }

    .header-menu__item--active::before {
        display: none;
    }

    .header-menu__item--active .header-menu__link {
        border-left: 3px solid #ff2638;
        padding-left: 10px;
    }

    .site-header__hamburger,
    .site-header__menu-toggle {
        display: block;
        width: 68px;
        height: 72px;
        flex-shrink: 0;
    }

    .site-header__hamburger {
        padding: 24px 18px;
    }

    .site-footer {
        padding: 18px 20px;
    }

    .site-footer__copyright {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-menu,
    .header-menu__item,
    .header-menu__item::after,
    .header-menu__item--active .header-menu__en,
    .site-header__hamburger-bar {
        transition: none;
    }
}
