/* ===================================================
   G-Master / GOYABALL協会ページ
   =================================================== */

/* ===== ヒーローセクション ===== */
.gm-hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 75px; /* PC固定ヘッダー分 */
    display: flex;
    align-items: center;
}

body.admin-bar .gm-hero {
    margin-top: 107px;
}

.gm-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(74, 74, 74, 0.6);
    pointer-events: none;
}

.gm-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.gm-hero-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1.4;
    margin: 0 0 10px;
}

.gm-hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 40px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
}

.gm-title-white {
    display: block;
    background-color: #fff;
    color: #4BC314;
    padding: 12px 24px;
}

.gm-title-green {
    display: block;
    background-color: #4BC314;
    color: #fff;
    padding: 12px 24px;
}

.gm-entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FF5A00;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 14px 50px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.25s;
}

.gm-entry-btn:hover {
    background-color: #e65c00;
}

/* ===== 共通セクションヘッド ===== */
.gm-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.gm-section-head h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #323232;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 0;
}

.gm-bar {
    width: 50px;
    height: 5px;
    background-color: #4BC314;
    border-radius: 2px;
}

/* ===== 活動理念 ===== */
.gm-philosophy {
    background-color: #fff;
    padding: 0 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.gm-philosophy-logo {
    margin-top: -80px;
    margin-bottom: 40px;
    z-index: 2;
    position: relative;
}

.gm-philosophy-logo img {
    width: 260px;
    height: auto;
    display: block;
}

.gm-philosophy .gm-section-head {
    margin-bottom: 50px;
    padding-top: 0;
}

.gm-philosophy-body {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.gm-philosophy-lead {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #323232;
    letter-spacing: 0.08em;
    line-height: 1.65;
    margin: 0;
}

.gm-philosophy-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #323232;
    letter-spacing: 0.05em;
    line-height: 1.65;
    margin: 0;
}

/* ===== 講師・理事紹介 ===== */
.gm-members {
    background-color: #f9f9f9;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gm-members-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    letter-spacing: 0.05em;
    margin: -8px 0 0;
    text-align: center;
}

.gm-members-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.gm-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 200px;
}

.gm-member-photo {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.gm-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gm-member-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gm-member-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 16px;
    border-radius: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.gm-badge-green  { background-color: #4BC314; }
.gm-badge-dark   { background-color: #323232; }
.gm-badge-orange { background-color: #FF5A00; }

.gm-member-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #323232;
    letter-spacing: 0.08em;
    margin: 0;
    text-align: center;
}

/* ===== 活動参考例 ===== */
.gm-activities {
    background-color: #fff;
    padding: 100px 20px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gm-activities-photos {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.gm-activity-photo {
    width: 337px;
    height: 337px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.gm-activity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== ランクアップシステム ===== */
.gm-rankup {
    background-color: #373636;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.gm-rankup .gm-section-head {
    margin-bottom: 0;
}

.gm-rankup-title {
    color: #d7c5a7 !important;
}

.gm-rankup-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1.9;
    text-align: center;
    margin: 0;
    max-width: 1000px;
}

/* ===== コースカード ===== */
.gm-courses {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
}

.gm-course-card {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    padding: 40px 32px 36px;
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.gm-course-basic {
    border: 2px solid #4BC314;
}

.gm-course-pro {
    border: 2px solid #C9A448;
}

.gm-course-recommend {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #FF5A00;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.gm-course-logo {
    margin-bottom: 16px;
}

.gm-course-logo img {
    width: 80px;
    height: auto;
    display: block;
}

.gm-course-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    text-align: center;
}

.gm-course-name--basic { color: #4BC314; }
.gm-course-name--pro   { color: #C9A448; }

.gm-course-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #777;
    text-align: center;
    letter-spacing: 0.04em;
    margin: 0 0 28px;
    line-height: 1.5;
}

.gm-course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.gm-course-features li {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #444;
    letter-spacing: 0.03em;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.gm-course-basic .gm-course-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4BC314;
}

.gm-course-pro .gm-course-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #C9A448;
}

.gm-course-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-top: auto;
}

.gm-course-btn:hover { opacity: 0.85; }

.gm-course-btn--basic { background-color: #4BC314; }
.gm-course-btn--pro   { background-color: #C9A448; }

/* ===== 商品紹介セクション ===== */
.gm-product {
    background-color: #EDF9E7;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.gm-product-intro,
.gm-product-mid {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #323232;
    letter-spacing: 0.05em;
    line-height: 1.75;
    text-align: center;
    margin: 0;
    max-width: 900px;
}

.gm-hands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1040px;
    width: 100%;
}

.gm-hand-img {
    flex: 0 0 auto;
}

.gm-hand-img img {
    height: 320px;
    width: auto;
    display: block;
}

.gm-hand-detail {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    align-items: center;
}

.gm-hand-detail img {
    max-height: 160px;
    width: auto;
    display: block;
}

.gm-product-photos {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.gm-product-photo {
    width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.gm-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gm-product-cta {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #323232;
    letter-spacing: 0.08em;
    line-height: 1.65;
    text-align: center;
    margin: 0;
}

/* ===== SP対応 ===== */
@media (max-width: 1200px) {
    .gm-hero {
        margin-top: 60px;
        height: 520px;
    }

    body.admin-bar .gm-hero {
        margin-top: 92px;
    }

    .gm-hero-content {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .gm-hero {
        height: auto;
        min-height: 420px;
        padding: 50px 0 50px;
        align-items: flex-end;
        background-position: 65% center;
    }

    .gm-hero-content {
        align-items: flex-start;
        padding: 0 24px;
        text-align: left;
        width: 100%;
    }

    .gm-hero-sub {
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 10px;
    }

    .gm-hero-title {
        font-size: 2.4rem;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .gm-title-white,
    .gm-title-green {
        display: inline-block;
        padding: 8px 18px;
    }

    .gm-section-head h2 {
        font-size: 1.8rem;
    }

    .gm-philosophy {
        padding: 0 16px 60px;
    }

    .gm-philosophy-logo {
        margin-top: -50px;
    }

    .gm-philosophy-logo img {
        width: 180px;
    }

    .gm-philosophy-lead {
        font-size: 1.1rem;
    }

    .gm-philosophy-sub {
        font-size: 0.95rem;
    }

    .gm-members {
        padding: 60px 16px;
    }

    .gm-members-grid {
        gap: 40px;
    }

    .gm-activities {
        padding: 60px 16px 80px;
    }

    .gm-activity-photo {
        width: 100%;
        max-width: 340px;
        height: 240px;
    }

    .gm-rankup {
        padding: 60px 16px;
    }

    .gm-rankup-text {
        font-size: 1rem;
    }

    .gm-courses {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .gm-course-card {
        width: 100%;
        max-width: 420px;
        padding: 32px 24px 28px;
    }

    .gm-product {
        padding: 60px 16px;
        gap: 40px;
    }

    .gm-product-intro,
    .gm-product-mid {
        font-size: 1rem;
    }

    .gm-hands {
        flex-wrap: wrap;
        gap: 10px;
    }

    .gm-hand-img img {
        height: 200px;
    }

    .gm-product-photos {
        gap: 16px;
    }

    .gm-product-photo {
        width: 100%;
        max-width: 340px;
        height: 220px;
    }

    .gm-product-cta {
        font-size: 1.2rem;
    }
}
