
/* ==============================
   基本設定
============================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #081525, #183451);
    color: white;
    font-family: "Yu Gothic", sans-serif;
}


/* ==============================
   ヘッダー
============================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    background-color: #071321;
    border-bottom: 2px solid #D4AF37;
}

.header-inner {
    max-width: 1200px;
    min-height: 90px;
    margin: 0 auto;
    padding: 12px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ==============================
   プライマリーマーク
============================== */

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;

    text-decoration: none;
}

.logo-image {
    width: 65px;
    height: 65px;

    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 30px;
    font-weight: bold;
    color: #D4AF37;
    letter-spacing: 3px;
}

.logo-sub {
    font-size: 10px;
    color: #cccccc;
    letter-spacing: 1px;
}


/* ==============================
   ナビゲーション
============================== */

.navigation {
    display: flex;
    gap: 30px;
}

.navigation a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;

    transition: color 0.3s;
}

.navigation a:hover {
    color: #D4AF37;
}


/* ==============================
   トップページ
============================== */

.hero {
    min-height: 550px;
    padding: 60px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
}

h1 {
    font-size: 42px;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 20px;
}

.english-title {
    color: #D4AF37;
    font-size: 18px;
    letter-spacing: 2px;
}

.catchphrase {
    font-size: 24px;
    font-weight: bold;
    margin-top: 35px;
}


/* ==============================
   会員数カウンター
============================== */

.club-status {
    max-width: 700px;
    margin: 60px auto 0;
    padding: 30px;

    background-color: #0D1B2D;
    border: 1px solid #D4AF37;
    border-radius: 10px;
}

.club-status h2 {
    font-size: 24px;
    margin: 0 0 30px;
    color: white;
}

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

.status-card {
    padding: 25px 15px;

    background-color: #172A41;
    border: 1px solid #40536A;
    border-radius: 8px;
}

.status-label {
    color: #D4AF37;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.status-number {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;

    color: #D4AF37;
    font-size: 80px;
    font-weight: bold;
}

.status-unit {
    color: white;
    font-size: 20px;
}

.status-card > p:last-child {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
}

.status-message {
    color: #cccccc;
    font-size: 13px;
    margin: 30px 0 0;
}


/* ==============================
   各コンテンツ
============================== */

.content-section {
    min-height: 350px;
    padding: 80px 30px;

    text-align: center;
    border-top: 1px solid #33445A;

    scroll-margin-top: 95px;
}

.content-section h2 {
    color: #D4AF37;
    font-size: 32px;
}

.content-section p {
    color: #cccccc;
}


/* ==============================
   会員名簿
============================== */

.members-section {
    background-color: #0D1B2D;
}

.section-header {
    margin-bottom: 45px;
}

.section-label {
    color: #D4AF37 !important;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: bold;
}

.section-header h2 {
    margin: 12px 0;
}

.member-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.member-grid > p {
    grid-column: 1 / -1;
}


/* ==============================
   会員カード
============================== */

.member-card {
    background-color: #172A41;
    border: 1px solid #40536A;
    border-radius: 8px;
    overflow: hidden;

    cursor: pointer;

    transition: transform 0.3s, border-color 0.3s;
}

.member-card:hover {
    transform: translateY(-6px);
    border-color: #D4AF37;
}

.member-card:focus-visible {
    outline: 3px solid #D4AF37;
    outline-offset: 4px;
}


/* 選手の顔写真 */

.member-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;

    background-color: #263B54;
}

.member-photo img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}


/* 背番号 */

.member-number {
    position: absolute;
    top: 12px;
    left: 12px;

    background-color: #D4AF37;
    color: #071321;

    font-size: 24px;
    font-weight: bold;

    padding: 5px 13px;
    border-radius: 4px;
}


/* 選手情報 */

.member-info {
    padding: 20px 10px;
}

.member-info h3 {
    margin: 0;
    font-size: 20px;
    color: white;
}

.member-info p {
    margin: 10px 0 0;
    font-size: 11px;
    color: #D4AF37;
    letter-spacing: 2px;
}


/* ==============================
   会員規約
============================== */

.rules-section {
    background-color: #101F32;
}

.rules-container {
    max-width: 950px;
    margin: 0 auto;
    text-align: left;
}

.rule-item {
    background-color: #172A41;
    border: 1px solid #40536A;
    border-radius: 6px;

    margin-bottom: 15px;
    overflow: hidden;
}

.rule-item summary {
    padding: 20px 25px;

    color: white;
    font-size: 18px;
    font-weight: bold;

    cursor: pointer;
    list-style: none;

    transition: background-color 0.3s;
}

.rule-item summary::-webkit-details-marker {
    display: none;
}

.rule-item summary::after {
    content: "+";
    float: right;

    color: #D4AF37;
    font-size: 24px;
    line-height: 1;
}

.rule-item[open] summary::after {
    content: "−";
}

.rule-item summary:hover {
    background-color: #243B55;
}

.rule-content {
    padding: 20px 30px;

    border-top: 1px solid #40536A;
    background-color: #0D1B2D;
}

.rule-content p {
    margin: 10px 0;
    line-height: 2;
    font-size: 14px;
    color: #dddddd;
}

.rule-content ol {
    padding-left: 25px;
    margin: 10px 0;
}

.rule-content li {
    margin-bottom: 12px;
    line-height: 1.9;
    font-size: 14px;
    color: #dddddd;
}

.rule-content .rule-motto {
    color: #D4AF37;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
}


/* ==============================
   選手詳細ウィンドウ
============================== */

body.dialog-open {
    overflow: hidden;
}

.member-detail-dialog {
    width: min(750px, calc(100% - 30px));
    max-height: 85vh;

    padding: 0;
    border: 1px solid #D4AF37;
    border-radius: 12px;

    background-color: #101F32;
    color: white;

    overflow: auto;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
}

.member-detail-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.detail-container {
    position: relative;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
}


/* 閉じるボタン */

.detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    width: 38px;
    height: 38px;

    border: 1px solid #697B92;
    border-radius: 50%;

    background-color: #071321;
    color: white;

    font-size: 25px;
    cursor: pointer;
}

.detail-close:hover {
    background-color: #D4AF37;
    color: #071321;
}


/* ==============================
   詳細写真
============================== */

.detail-photo {
    min-height: 370px;
    background-color: #263B54;
}

.detail-photo img {
    display: block;

    width: 100%;
    height: 100%;

    /* 写真全体を表示 */
    object-fit: contain;
    object-position: center center;
}


/* ==============================
   詳細情報
============================== */

.detail-info {
    padding: 38px 30px;
    text-align: left;
}

.detail-label {
    color: #D4AF37;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.detail-info h2 {
    font-size: 28px;
    margin: 15px 0 5px;
    color: white;
}

.detail-number {
    color: #D4AF37;
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 25px;
}

.detail-data {
    border-top: 1px solid #40536A;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding: 14px 0;
    border-bottom: 1px solid #40536A;

    font-size: 13px;
}

.detail-row span {
    color: #AEBCCD;
}

.detail-row strong {
    color: white;
    text-align: right;
}

.detail-message {
    margin-top: 25px;
    color: #AEBCCD;

    font-size: 12px;
    line-height: 2;
}


/* ==============================
   フッター
============================== */

.site-footer {
    background-color: #071321;
    border-top: 1px solid #D4AF37;

    padding: 25px;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

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

.footer-text p {
    margin: 7px 0;
    font-size: 12px;
    color: #aaaaaa;
}


/* ==============================
   タブレット対応
============================== */

@media screen and (max-width: 900px) {

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

}


/* ==============================
   スマートフォン対応
============================== */

@media screen and (max-width: 600px) {

    .header-inner {
        min-height: 70px;
        padding: 10px 12px;
        gap: 10px;
    }

    .logo {
        gap: 7px;
    }

    .logo-image {
        width: 42px;
        height: 42px;
    }

    .logo-main {
        font-size: 20px;
    }

    .logo-sub {
        display: none;
    }

    .navigation {
        gap: 12px;
    }

    .navigation a {
        font-size: 11px;
    }

    h1 {
        font-size: 28px;
    }

    .english-title {
        font-size: 12px;
    }

    .catchphrase {
        font-size: 19px;
    }

    .club-status {
        margin-top: 40px;
        padding: 20px 12px;
    }

    .club-status h2 {
        font-size: 20px;
    }

    .status-grid {
        gap: 10px;
    }

    .status-card {
        padding: 20px 8px;
    }

    .status-label {
        font-size: 9px;
    }

    .status-number {
        font-size: 55px;
    }

    .status-unit {
        font-size: 15px;
    }

    .status-card > p:last-child {
        font-size: 12px;
    }

    .status-message {
        font-size: 11px;
    }

    .content-section {
        padding: 60px 15px;
        scroll-margin-top: 75px;
    }

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

    .member-number {
        font-size: 18px;
        padding: 4px 9px;
    }

    .member-info {
        padding: 15px 6px;
    }

    .member-info h3 {
        font-size: 15px;
    }

    .member-info p {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .rule-item summary {
        padding: 17px 15px;
        font-size: 15px;
    }

    .rule-content {
        padding: 15px;
    }

    .rule-content p,
    .rule-content li {
        font-size: 13px;
    }


    /* ==============================
       スマホ用詳細ウィンドウ
    ============================== */

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-photo {
        height: 220px;
        min-height: 0;
    }

    .detail-photo img {
        width: 100%;
        height: 100%;

        /* 重要：写真を切り取らない */
        object-fit: contain;
        object-position: center center;
    }

    .detail-info {
        padding: 22px 20px;
    }

    .detail-info h2 {
        font-size: 24px;
    }

    .detail-number {
        font-size: 27px;
    }


    /* フッター */

    .footer-logo {
        width: 48px;
        height: 48px;
    }

    .footer-text p {
        font-size: 10px;
    }

}
