html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    background: #ffffff;
    font-family: "Outfit", "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    /* プロポーショナル数字を有効化 */
    font-feature-settings: "pnum" 1;
}

p {
    font-family: "Palatino", "Zen Old Mincho", serif;
    font-feature-settings: "pkna";
    line-height: 1.75rem;
}

/* イントロオーバーレイ */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s ease;
    gap: 2rem;
    /* 要素間の間隔 */
}

#intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* スキップヒント */
.skip-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.15em;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* メッセージ (タイプライター用) */
#intro-message {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #333;
    min-height: 1.5em;
    border-right: 2px solid #333;
    /* カーソル */
    white-space: pre;
    display: none;
    /* JSで開始するまで非表示 */
    margin: 0;
    transition: opacity 1s ease;
    opacity: 1;
    /* 追加: ロゴに合わせて位置を固定 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#intro-message.fade-out {
    opacity: 0;
}

#intro-message.typing {
    display: block;
    animation: blink-caret 0.75s step-end infinite;
}

#intro-message.done {
    border-right-color: transparent;
}

#intro-message sup {
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
    font-size: 0.7em;
    line-height: 0;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #333
    }
}

/* イントロ用ロゴ */
#intro-logo {
    width: 60vw;
    max-width: 420px;
    opacity: 0;
    display: none;
    transition: opacity 1.5s ease;
    /* 追加: 絶対配置にして、他の要素（メッセージ等）の有無で位置がズレないようにする */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#intro-logo.show {
    opacity: 1;
}

/* メインコンテンツ (通常のページ) */
#main-content {
    opacity: 0;
    transition: opacity 2s ease;
    width: 100%;
}

#main-content.show {
    opacity: 1;
}

/* 背景メッセージ */
#bg-messages {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* z-indexを1に上げ、セクション背景に隠れないようにする。コンテンツ（ロゴ・文字等）のz-indexよりは低く設定。 */
    pointer-events: none;
    overflow: hidden;
}

.bg-message {
    position: absolute;
    font-family: "Palatino", "Zen Old Mincho", serif;
    font-feature-settings: "pkna";
    font-size: 0.9em;
    letter-spacing: 0.1em;
    /* color: #333; */
    color: #000;
    opacity: 0.4;
    white-space: nowrap;
    will-change: filter, opacity;
}

.bg-message.typing::after {
    content: '|';
    margin-left: 1px;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Hero Section (Logo + Scroll) */
.hero {
    height: 100vh;
    height: 100dvh;
    position: relative;
    /* 動的なツールバーを考慮した高さ */
}

.hero-countdown {
    position: absolute;
    top: calc(max(1.5rem, env(safe-area-inset-top)) + 0.25rem);
    right: calc(1.5rem + env(safe-area-inset-right));
    z-index: 3;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    text-align: right;
    pointer-events: none;
}

.hero-countdown-value {
    display: block;
    font-size: clamp(0.76rem, 1.3vw, 0.92rem);
    font-weight: 300;
    letter-spacing: 0.14em;
    color: #666;
    line-height: 1;
    white-space: nowrap;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.arrow {
    width: 1px;
    height: 40px;
    background: #999;
    margin-top: 10px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Detailsセクション内のScroll/TOPボタン調整 */
.details .scroll-down {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 4rem;
    margin-bottom: 0;
    animation: bounce-relative 4s infinite;
}

@keyframes bounce-relative {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Details Section */
.details {
    min-height: 100vh;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
    box-sizing: border-box;
    position: relative;
}

.container {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
    /* 背景メッセージよりも前面に表示 */
}

.details h2 {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
}

.info-item {
    margin-bottom: 3rem;
}

.info-item .label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.info-item .value-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item .value.secondary {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.description {
    line-height: 2;
    margin-bottom: 2rem;
    color: #555;
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 769px) {
    .registration-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }

    .registration-grid .info-item {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .registration-grid .description {
        margin-bottom: 2rem;
        flex-grow: 1;
    }

    #alumni .container {
        max-width: 1000px;
    }

    #alumni h2 {
        text-align: left;
    }
}


/* 一般的なリンクスタイル（フッタークレジットなど） */
a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    font-weight: bold;
}

a:hover {
    border-bottom-color: #333;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-bottom: 1px solid #333;
    /* btnクラスはborder-bottomを上書き */
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}

.btn:not(.disabled):hover {
    background: #333;
    color: #fff;
}

.btn.disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

.btn.is-inactive,
.btn:disabled,
.btn-small:disabled {
    border-color: #cfcfcf;
    color: #9a9a9a;
    background: #f5f5f5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.section-status {
    display: inline-block;
    margin: 0 0 1.5rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid #d8d8d8;
    background: #f7f7f7;
    color: #777;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-closed-note {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid #d5d5d5;
    background: #fafafa;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.9;
    text-align: left;
}


/* ロゴとボタンのラッパー */
.logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    z-index: 2;
    /* 背景メッセージよりも前面に表示 */
    /* transition: opacity 0.5s ease; */
    width: 100%;
    pointer-events: none;
    /* ロゴクリックなどを阻害しないよう注意が必要だが、中身でautoにするか、配置的に大丈夫か */
}

.logo-wrapper>* {
    pointer-events: auto;
}

.logo-wrapper.visible {
    opacity: 1;
}

.message-preview {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    width: 90vw;
    pointer-events: none;
}

.message-preview p {
    margin-bottom: 1rem;
}

/* メイン用ロゴコンテナ */
#main-logo {
    width: 60vw;
    max-width: 420px;
    position: relative;
    /* 重ね合わせ用 */
}

#main-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ベースのロゴ（通常表示） */
.logo-base {
    position: relative;
    z-index: 1;
    filter: url(#warp-filter-base);
    will-change: filter;
}

/* ふにゃふにゃ終了後はJSでscaleを0にするため、filter:noneは削除 */


/* メインコンテンツ (通常のページ) */

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* Partners */
#partners .container {
    max-width: 1200px;
    width: 100%;
}

.partners-container {
    width: 100%;
    margin: 0 auto;
}

.section-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 4rem auto;
    width: 60%;
}

.partnership-info {
    margin-top: 2rem;
}

.partner-tier {
    margin-bottom: 4rem;
}

.partner-tier:last-child {
    margin-bottom: 0;
}

.partner-tier h3 {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.partner-item {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    aspect-ratio: 1 / 0.8;
    padding: 1rem 1rem 0.7rem;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

.partner-item:hover {
    border-color: #333;
    border-bottom-color: #333;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.partner-item.is-disabled {
    cursor: default;
}

.partner-item.is-disabled:hover {
    border-color: #eee;
    border-bottom-color: #eee;
    transform: none;
    box-shadow: none;
}

.partner-item img {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 0;
    align-self: center;
}

.partner-name {
    font-size: 0.8rem;
    color: #333;
    text-align: center;
    line-height: 1.2;
    word-break: break-all;
    font-weight: 500;
    margin-top: 0.8rem;
    padding-bottom: 0.1rem;
}

/* Tier Specific Sizes */
.tier-platinum .partner-item {
    width: 100%;
    max-width: 500px;
}

.tier-gold .partner-item {
    width: calc(50% - 1rem);
    max-width: 350px;
}

.tier-silver .partner-item {
    width: calc(33.333% - 1rem);
    max-width: 280px;
    padding: 0.5rem 0.5rem 0.4rem;
}

.tier-silver .partner-name {
    font-size: 0.7rem;
    margin-top: 0.4rem;
}

@media (min-width: 769px) {
    .partners-grid {
        gap: 2rem;
    }

    .tier-platinum .partner-item {
        width: calc(50% - 1.5rem);
    }

    .tier-gold .partner-item {
        width: calc(33.333% - 1.5rem);
    }

    .tier-silver .partner-item {
        width: calc(25% - 1.5rem);
        padding: 1rem 1rem 0.7rem;
    }

    .tier-silver .partner-name {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .tier-platinum .partner-item {
        width: calc(33.333% - 1.5rem);
    }

    .tier-gold .partner-item {
        width: calc(25% - 1.5rem);
    }

    .tier-silver .partner-item {
        width: calc(20% - 1.5rem);
    }
}

/* @media (min-width: 1280px) {
    .tier-platinum .partner-item {
        width: calc(25% - 1.5rem);
    }

    .tier-gold .partner-item {
        width: calc(20% - 1.5rem);
    }

    .tier-silver .partner-item {
        width: calc(16.666% - 1.5rem);
    }
} */

/* Footer */
.footer {
    padding: 4rem 2rem;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.footer a {
    font-weight: bold;
    text-decoration: none;
    border-bottom: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

.footer-logo img {
    max-width: 60px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-org p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.footer-org .footer-credit-link {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-credits p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #666;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.btn-small {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-small:hover {
    background: #333;
    color: #fff;
}

.footer-sns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-sns a {
    color: #333;
    transition: opacity 0.3s ease;
}

.footer-sns a:hover {
    opacity: 0.6;
    text-decoration: none;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom small {
    font-size: 0.75rem;
    color: #999;
}

.about-link {
    font-size: 0.75rem;
}

@media (min-width: 769px) {
    .footer-main {
        grid-template-columns: 1.2fr 1.5fr 1fr;
        text-align: left;
        align-items: start;
    }

    .footer-sns {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-logo {
        text-align: left;
    }
}

#global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    box-sizing: border-box;
    z-index: 2000;
    /* 最前面 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background: rgba(255, 255, 255, 0.9);
    /* 少し透過させる */
    backdrop-filter: blur(5px);
}

#global-header.visible {
    opacity: 1;
    pointer-events: auto;
}

#header-logo {
    width: 52px;
    /* ヘッダー用ロゴサイズ */
}

/* About Link in Footer */
.about-link {
    margin-top: 1rem;
    font-size: 0.8rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    box-sizing: border-box;

    /* フェード用 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

#privacy-modal {
    z-index: 4000;
    /* 他のモーダルより前面に表示 */
}

.modal-content {
    background: #fff;
    max-width: 720px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    margin: 2rem 0;
    box-sizing: border-box;
    border-radius: 12px;
}



.support-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.support-tier-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.support-tier {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #fafafa;
}

/* Support Tiers Colors */
.support-tier.tier-platinum {
    background: #f4f8fb;
    /* Very light blue/cool gray */
    border-color: #dbe4ea;
}

.support-tier.tier-gold {
    background: #fffdf5;
    /* Very light yellow */
    border-color: #f0e6c0;
}

.support-tier.tier-silver {
    background: #f9f9f9;
    /* Light gray */
    border-color: #e0e0e0;
}

.support-tier.tier-individual {
    background: #f6fbf6;
    /* Very light green */
    border-color: #dcebdc;
}

.support-tier h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.support-tier ul {
    padding-left: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#support-org-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-form input,
.support-form select,
.support-form textarea {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    outline: none;
}

.support-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.support-form-note {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    flex: 1;
}

.support-form-policy {
    font-size: 0.8rem;
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.support-form-policy a {
    font-weight: 500;
    text-decoration: underline;
}

.privacy-policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.privacy-policy-content ul li {
    margin-bottom: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.designer-name {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.designer-comment {
    line-height: 1.8;
    color: #555;
}

.modal-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

/* Committee Modal Style */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.committee-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.committee-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.committee-value {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.committee-staff {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.credit-modal-content {
    max-width: 760px;
}

.exhibition-current-modal-content {
    max-width: 560px;
    text-align: center;
}

.credit-content {
    color: #555;
}

.credit-content h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.05em;
}

.credit-content h3:first-child {
    margin-top: 0;
}

.credit-content h4 {
    margin: 1.25rem 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.credit-content p {
    margin: 0 0 1rem;
    line-height: 1.8;
}

.credit-content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.45rem 1.25rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.credit-content li {
    line-height: 1.6;
    font-size: 0.95rem;
}

.credit-content a {
    font-weight: 500;
    text-decoration: underline;
}

.credit-person-badge {
    display: inline-block;
    margin-left: 0.18rem;
    padding: 0.08rem 0.28rem 0.09rem;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #fff;
    color: #777;
    font-family: "Outfit", "Zen Kaku Gothic New", sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.1;
    vertical-align: 0.08em;
}

.credit-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

.credit-loading,
.credit-error {
    color: #777;
}

.team-member {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #eee;
}

.team-member p {
    margin: 0.3rem 0;
}

.member-comment {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

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

.update-history li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
}

.update-date {
    display: inline-block;
    width: 90px;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .hero-countdown {
        top: calc(max(1rem, env(safe-area-inset-top)) + 0.25rem);
        right: calc(1rem + env(safe-area-inset-right));
        padding: 0.45rem 0.7rem;
    }

    .hero-countdown-value {
        font-size: 0.72rem;
    }

    .modal {
        padding: 1rem;
        align-items: flex-start;
        /* Prevent top cut-off on small screens */
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem 0;
        width: 95%;
        /* Ensure it takes up most of the width */
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Mobile Text Alignment & Flow */
    .description {
        text-align: left;
    }

    #join-the-making .info-item .description {
        text-align: center;
    }

    .description br {
        display: none;
    }

}

/* ── Join the Making: Entry Grid ── */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: left;
}

.entry-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fcfcfc;
}

.entry-tag {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #888;
    text-transform: uppercase;
}

.entry-card h3 {
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.03em;
    margin: 0;
}

.entry-card p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .entry-grid {
        grid-template-columns: 1fr;
    }

    .entry-card {
        padding: 1.2rem;
    }
}

/* ── Join the Making: Entry Categories (checkbox group) ── */
.entry-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
}

.entry-categories label {
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

/* ── Modal Detail Table ── */
.modal-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: left;
}

.modal-detail-table th,
.modal-detail-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    line-height: 1.8;
}

.modal-detail-table th {
    white-space: nowrap;
    color: #888;
    font-weight: 400;
    width: 7rem;
}

/* ── 既存要素のインラインスタイル整理 ── */

/* Greeting section 署名 */
.greeting-sign {
    text-align: center;
}

/* Partners: プロジェクト副題 */
.partner-subtext {
    font-size: 0.7rem;
}

/* モーダル下部アクションエリア（閉じるボタン等） */
.modal-footer-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Success modal サイズ */
#success-modal .modal-content {
    max-width: 400px;
}

#success-modal .modal-content>p {
    text-align: left;
}

/* ── Join the Making: エントリーセクション ── */

/* セクション内エントリーボタン周り */
.entry-cta {
    margin-top: 3rem;
}

.entry-cta-note {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.8;
}

.modal-entry-actions {
    margin-top: 1.5rem;
}

/* 詳細モーダル・エントリーモーダルの見出し */
.modal-entry-h2 {
    font-weight: 300;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.modal-entry-h2 small {
    font-size: 0.8em;
    letter-spacing: 0.05em;
}

/* エントリーフォームモーダルの見出し（余白を小さく） */
.modal-entry-h2.entry-form-h2 {
    margin-bottom: 0.5rem;
}

/* 詳細モーダルのリード文 */
.modal-lead {
    line-height: 2;
    color: #555;
    text-align: left;
}

/* エントリーフォームモーダルのサブタイトル */
.entry-modal-lead {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* 詳細モーダル内のCTAエリア */
.modal-entry-actions {
    margin-top: 2rem;
    text-align: center;
}

/* エントリーフォームのプライバシー注記 */
.entry-privacy-note {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.8;
}

.entry-privacy-note a {
    color: #555;
}

/* ── Greeting: 更新履歴 ── */
.greeting-updates {
    margin-top: 2.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    text-align: center;
}

.greeting-updates-label {
    font-size: 1.0rem;
    letter-spacing: 0.12em;
    color: #ccc;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.greeting-updates .update-history li {
    border-bottom: none;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #777;
}

.greeting-updates .update-history a {
    font-weight: 300;
    color: #777;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.greeting-updates .update-history a:hover {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.4);
}

.greeting-updates .update-date {
    display: inline;
    width: auto;
    font-size: 0.8rem;
    color: #bbb;
    margin-right: 0;
}

.greeting-updates .update-date::after {
    content: '\00a0—\00a0';
    color: #ddd;
}
