@charset "UTF-8";

/* ==========================================================================
   部活動紹介ページ (Club Page) スタイル
   ========================================================================== */

body {
    background-color: #fff1f1;
    color: #000000;
    margin: 0;
    padding: 0;
    font-family: 'HarenosoraMincho', serif;
}

.club-main {
    width: 100%;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. ヒーローセクション (.club-hero)
   -------------------------------------------------------------------------- */
.club-hero {
    position: relative;
    width: 100%;
    min-height: 628px;
    background-color: #aedde0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px max(5vw, 40px);
    box-sizing: border-box;
    overflow: hidden;
}

.club-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.club-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.club-hero__title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: normal;
    margin: 0 0 16px 0;
    color: #000000;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.club-hero__subtitle {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: normal;
    margin: 0;
    color: #000000;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   2. 部活サマリーセクション (.club-summary)
   -------------------------------------------------------------------------- */
.club-summary {
    max-width: 100%;
    margin: 60px auto 40px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.club-summary__box {
    background-color: #9b2b3a;
    border-radius: 19px;
    padding: 5px;
    width: min(562px, 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.club-summary__inner {
    background-color: #ffffff;
    border-radius: 14px;
    height: 195px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.club-summary__badge {
    background-color: #9b2b3a;
    width: 175px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.club-summary__badge span {
    display: block;
}

.club-summary__list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.club-summary__list li a {
    color: #000000;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.club-summary__list li a:hover {
    color: #9b2b3a;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   3. リード文 (.club-lead)
   -------------------------------------------------------------------------- */
.club-lead {
    max-width: 1000px;
    margin: 50px auto 80px;
    padding: 0 20px;
    text-align: center;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.85;
    color: #000000;
}

/* --------------------------------------------------------------------------
   4. 部活詳細セクション (.club-section)
   -------------------------------------------------------------------------- */
.club-sections {
    max-width: 100%;
    margin: 0 auto 100px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 90px;
}

.club-section {
    position: relative;
    scroll-margin-top: 106px;
}

/* リボン見出し */
.club-ribbon {
    position: relative;
    height: 89px;
    background-color: #711622;
    display: flex;
    align-items: center;
    padding: 0 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
    z-index: 2;
    max-width: 426px;
    width: 100%;
}

.club-ribbon__title {
    color: #ffffff;
    font-size: 36px;
    font-weight: normal;
    margin: 0;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* 左から伸びるリボン */
.club-ribbon--left {
    margin-left: -20px;
    border-radius: 0 10px 10px 0;
}

/* 右から伸びるリボン */
.club-ribbon--right {
    margin-left: auto;
    margin-right: -20px;
    justify-content: flex-end;
    border-radius: 10px 0 0 10px;
}

/* 斜めストライプ装飾 */
.club-ribbon__accent {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.club-ribbon--left .club-ribbon__accent {
    right: 30px;
}

.club-ribbon--right .club-ribbon__accent {
    left: 30px;
}

.club-ribbon__stripe {
    position: absolute;
    background-color: #fff1f1;
    transform: rotate(46.79deg);
    transform-origin: center;
}

.club-ribbon__stripe--thick {
    width: 220px;
    height: 12px;
    top: 30px;
    left: -60px;
}

.club-ribbon__stripe--thin {
    width: 220px;
    height: 4px;
    top: 54px;
    left: -60px;
}

/* 部活動グリッドレイアウト */
.club-grid {
    display: flex;
    gap: 36px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.club-grid--reverse {
    flex-direction: row-reverse;
}

/* 青の大きな四角 (集合写真) */
.club-box-blue {
    background-color: #b6dcdd;
    border-radius: 46px;
    width: min(793px, 100%);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    flex: 1 1 500px;
}

.club-box-blue__label {
    font-size: 36px;
    color: #000000;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 2;
}

.club-box__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.club-group-image-area .club-box__photo {
    object-position: top;
}

/* グレーの四角のグリッド (メンバー) */
.club-box-gray-grid {
    display: grid;
    grid-template-columns: repeat(2, 175px);
    grid-template-rows: repeat(2, 209px);
    gap: 18px;
    justify-content: center;
}

.club-box-gray {
    background-color: #d9d9d9;
    border-radius: 16px;
    width: 175px;
    height: 209px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.club-box-gray:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    background-color: #cecece;
}

.club-box-gray__label {
    font-size: 16px;
    color: #555555;
    pointer-events: none;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   5. レスポンシブ対応 (Mobile / Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .club-grid {
        flex-direction: column !important;
    }

    .club-box-blue {
        width: 100%;
        height: clamp(260px, 45vw, 400px);
        border-radius: 28px;
    }

    .club-box-gray-grid {
        grid-template-columns: repeat(2, minmax(140px, 175px));
        grid-template-rows: repeat(2, minmax(170px, 209px));
        width: 100%;
        max-width: 370px;
    }

    .club-box-gray {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 600px) {
    .club-hero {
        min-height: 400px;
        padding: 40px 20px;
    }

    .club-summary__inner {
        height: auto;
        flex-direction: column;
        padding: 20px 0;
    }

    .club-summary__badge {
        width: 100%;
        height: 50px;
        flex-direction: row;
        font-size: 24px;
        letter-spacing: 0.3em;
    }

    .club-summary__badge span {
        display: inline;
    }

    .club-summary__list {
        padding: 20px 0 0 0;
        align-items: center;
    }

    .club-ribbon {
        height: 60px;
        padding: 0 20px;
        max-width: 280px;
    }

    .club-ribbon__title {
        font-size: 24px;
    }

    .club-box-blue__label {
        font-size: 26px;
    }
}
