/* ====================================
    リセットスタイル
==================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 汎用: 非表示クラス */
.hidden {
    display: none !important;
}

/* ====================================
    ヘッダー (PC / モバイル共通の基本スタイル)
==================================== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    flex-shrink: 0;
}

/* ハンバーガーボタン (PCでは非表示がデフォルト) */
.nav-toggle {
    display: none; 
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s;
}


/* PC用のナビゲーションスタイル */
.nav__list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #4CAF50;
}

.nav__link--btn {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav__link--btn:hover {
    background-color: #45a049;
}

/* ====================================
    メインコンテンツ共通調整
==================================== */
/* ヘッダーの下にコンテンツが隠れないように調整 */
/* モバイル版では個別に設定するため、ここではPC版のみ */
@media (min-width: 769px) {
    .hero-section,
    .form-page-main,
    .list-page-main,
    .profile-page-main,
    .reservation-page-main {
        padding-top: 80px; 
        padding-bottom: 50px;
    }
}

/* ====================================
    メインビジュアル (Hero)
==================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 0;
}

.hero-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(60%);
    z-index: -1;
}

.hero-section__content {
    position: relative;
    z-index: 1;
}

.catch-copy {
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sub-copy {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #FF9800; 
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #FB8C00;
}

/* ====================================
    サービス紹介セクション
==================================== */
.section-padding {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.section-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 50px;
}

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.service-card--reverse {
    flex-direction: column-reverse;
}

.service-card__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-card__content {
    padding: 30px;
}

.service-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.service-card__text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.service-card__button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.service-card__button:hover {
    background-color: #45a049;
}

/* CTAバナー */
.cta-banner {
    background-color: #2196F3;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.cta-banner__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-button--inverted {
    background-color: #fff;
    color: #2196F3;
}
.cta-button--inverted:hover {
    background-color: #eee;
}

/* PCビューでのサービスカード調整 */
@media (min-width: 768px) {
    .service-card {
        flex-direction: row;
    }
    .service-card--reverse {
        flex-direction: row-reverse;
    }
    .service-card__image {
        width: 50%;
        height: auto;
    }
    .service-card__content {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ====================================
    フォームページ用スタイル
==================================== */

.form-page-main {
    background-color: #f9f9f9;
}

.signup-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.signup-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.required {
    color: #E53935;
    font-size: 14px;
    margin-left: 5px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-select {
    appearance: none;
    background-color: #fff;
    cursor: pointer;
}

.password-reset-link {
    text-align: right;
    margin-top: -10px;
}

.reset-link {
    color: #2196F3;
    font-size: 14px;
    text-decoration: none;
}

.reset-link:hover {
    text-decoration: underline;
}

.agreement {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.agreement input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.agreement a {
    color: #4CAF50;
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #45a049;
}

.switch-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.switch-link p {
    margin-bottom: 10px;
    color: #777;
}

.switch-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2196F3;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.switch-btn:hover {
    background-color: #1e88e5;
}

.sub-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ccc;
}

/* ====================================
    コーチ一覧ページ用スタイル
==================================== */

.list-page-main {
    background-color: #f4f4f4;
}

.list-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #4CAF50;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.sidebar {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.content-area {
    flex-grow: 1;
    width: 100%;
}

@media (min-width: 900px) {
    .sidebar {
        width: 250px;
        flex-shrink: 0;
    }
    .content-area {
        width: calc(100% - 280px);
    }
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #4CAF50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.sidebar-title i {
    margin-right: 8px;
}

.search-bar-group {
    display: flex;
    margin-bottom: 20px;
}

.search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

.search-button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.checkbox-label {
    display: block;
    font-weight: normal;
    margin-bottom: 5px;
}

.filter-apply-button,
.filter-reset-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.filter-apply-button {
    background-color: #FF9800;
    color: #fff;
}

.filter-reset-button {
    background-color: #E0E0E0;
    color: #333;
}

.result-info {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    padding-left: 5px;
}

.result-info strong {
    color: #4CAF50;
}

.coach-list {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr; 
}

@media (min-width: 768px) {
    .coach-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.coach-card {
    text-decoration: none; 
    color: inherit; 
    display: block; 
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.coach-card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.coach-card-info {
    padding: 15px;
}

.coach-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.coach-rating {
    margin-bottom: 5px; 
}

.coach-rating i {
    color: #FFC107;
    font-size: 14px;
    margin-right: 2px;
}

.coach-area,
.coach-specialty {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.coach-tags {
    margin-top: 10px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-weight: 500;
}

.tag-beginner {
    background-color: #E8F5E9;
    color: #388E3C;
}

.tag-pro {
    background-color: #E3F2FD;
    color: #1976D2;
}

.tag-advanced {
    background-color: #FFF3E0;
    color: #F57C00;
}

.tag-woman {
    background-color: #FCE4EC;
    color: #D81B60;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ccc;
    margin: 0 4px;
    border-radius: 5px;
    color: #555;
    text-decoration: none;
    transition: background-color 0.3s;
}

.page-link:hover {
    background-color: #eee;
}

.page-link-active {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.page-dots {
    padding: 8px 0;
    color: #aaa;
}

/* ====================================
    予約ページ用スタイル
==================================== */

.reservation-page-main {
    background-color: #f8f8f8;
}

.reservation-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 30px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 30px;
    text-align: center;
}

.step-guide {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step-item {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #999;
    font-weight: 600;
    border-radius: 50px;
    margin: 0 5px;
    font-size: 14px;
}

.step-active {
    border-color: #4CAF50;
    background-color: #E8F5E9;
    color: #4CAF50;
}

.reservation-form-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.reservation-selector,
.reservation-details {
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    background-color: #fcfcfc;
}

@media (min-width: 768px) {
    .reservation-selector {
        flex: 1;
        min-width: 350px;
    }
    .reservation-details {
        flex: 1;
    }
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    border-bottom: 3px solid #FF9800;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.section-title i {
    color: #FF9800;
    margin-right: 8px;
}

.calendar-display {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
}

.calendar-placeholder {
    font-size: 16px;
    color: #999;
    margin: 50px 0;
}

.time-slots {
    margin-top: 10px;
    text-align: left;
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

.time-slot-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4CAF50;
}

.slot-button {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #4CAF50;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background-color: #E8F5E9;
    color: #388E3C;
    font-weight: 600;
    transition: background-color 0.2s;
}

.slot-button:hover {
    background-color: #C8E6C9;
}

.slot-button input[type="radio"] {
    display: none;
}

.slot-button input[type="radio"]:checked + span {
    background-color: #4CAF50;
    color: #fff;
}

.slot-disabled {
    background-color: #f0f0f0;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}
.slot-disabled:hover {
    background-color: #f0f0f0;
}

.summary-box {
    border: 2px solid #4CAF50;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    background-color: #F0FFF0;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 15px;
}

.summary-box p {
    font-size: 16px;
    margin-bottom: 8px;
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    color: #E53935;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #C8E6C9;
}

.next-step-button {
    background-color: #FF9800;
    margin-top: 25px;
}

.next-step-button:hover {
    background-color: #FB8C00;
}

/* ====================================
    レビュー機能用スタイル
==================================== */

.review-summary {
    background-color: #F0FFF0;
    border: 1px solid #C8E6C9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.summary-score {
    margin-bottom: 10px;
}

.total-score {
    font-size: 48px;
    font-weight: 700;
    color: #4CAF50;
    line-height: 1;
}

.star-display i {
    color: #FFC107;
    font-size: 24px;
}

.review-count {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.review-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px dashed #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 700;
    color: #333;
}

.review-date {
    font-size: 14px;
    color: #999;
}

.review-rating-stars i {
    color: #FFC107;
    font-size: 16px;
    margin-right: 2px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
    color: #555;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.review-note {
    font-size: 14px;
    color: #E53935;
    margin-top: -10px;
    margin-bottom: 20px;
}

.rating-input {
    margin-top: 5px;
}

.rating-input .star-icon {
    font-size: 24px;
    color: #ccc;
    margin-right: 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.review-submit-button {
    background-color: #4CAF50;
}

.review-submit-button:hover {
    background-color: #45a049;
}

/* ====================================
    モバイル対応 (768px以下)
==================================== */
@media (max-width: 768px) {
    
    /* ヘッダーの調整 */
    .site-header {
        padding: 0 10px;
        background-color: #fff !important;
        z-index: 1000;
    }
    
    .header-container {
        height: 60px;
        padding: 0 10px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* ロゴの調整 - 全部表示 */
    .site-logo {
        font-size: 15px;
        font-weight: bold;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
        display: inline-block;
        color: #4CAF50 !important;
        text-decoration: none;
        z-index: 1001;
        position: relative;
        line-height: 1.2;
    }
    
    /* ヘッダーコンテナ内のナビゲーションメニューとユーザーエリアを非表示（ハンバーガーメニューに置き換え） */
    .header-container > .main-navigation,
    .header-container > .header-user-area {
        display: none !important;
    }
    
    /* ハンバーガーボタンを表示 */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .nav-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* モバイルメニュー（ハンバーガーメニュー） - ドロップダウン式に下に表示 */
    .mobile-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 999;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .mobile-menu.is-active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* モバイルメニュー内のナビゲーション */
    .mobile-menu .main-navigation {
        display: block;
        margin-bottom: 30px;
    }
    
    .mobile-menu .main-navigation ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .mobile-menu .main-navigation li {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu .main-navigation a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
        text-align: left;
        color: #333;
    }
    
    .mobile-menu .main-navigation a:hover {
        background-color: #f5f5f5;
        color: #4CAF50;
    }
    
    /* モバイルメニュー内のユーザーエリア */
    .mobile-menu .header-user-area {
        display: block;
    }
    
    .mobile-menu .header-user-area .button-primary {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* モバイルメニュー内のドロップダウン */
    .mobile-menu .dropdown-menu-container {
        width: 100%;
    }
    
    .mobile-menu .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 15px 20px;
        font-size: 18px;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-bottom: 20px;
    }
    
    .mobile-menu .dropdown-trigger .fa-user-circle {
        font-size: 24px;
    }
    
    .mobile-menu .dropdown-trigger span {
        flex-grow: 1;
        text-align: left;
        margin-left: 10px;
    }
    
    .mobile-menu .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        min-width: auto;
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-top: -20px;
        margin-bottom: 20px;
    }
    
    .mobile-menu .dropdown-content.is-active {
        display: block;
    }
    
    .mobile-menu .dropdown-item {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .header__inner {
        padding: 10px 20px;
    }

    /* ヒーローセクションの調整 */
    .hero-section {
        height: auto;
        min-height: calc(85vh + 100px) !important;
        padding-top: 160px !important;
        padding-bottom: 80px !important;
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0 !important;
    }
    
    .hero-section__content {
        width: 100%;
        max-width: 100%;
        padding: 30px 10px;
        box-sizing: border-box;
    }
    
    .catch-copy {
        font-size: 20px;
        line-height: 1.6;
        padding: 0 8px;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto 25px auto;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .sub-copy {
        font-size: 14px;
        line-height: 1.7;
        margin-top: 20px;
        margin-bottom: 35px;
        padding: 0 8px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 8px;
        box-sizing: border-box;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        padding: 12px 15px;
        font-size: 13px;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
        line-height: 1.5;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .service-card {
        flex-direction: column !important;
        display: flex;
    }
    
    .service-card--reverse {
        flex-direction: column !important;
    }
    
    .list-page-container {
        flex-direction: column;
    }
    .sidebar {
        order: -1; 
    }
    .coach-list {
        grid-template-columns: 1fr;
    }
    
    /* フォームの調整 */
    .form-container {
        padding: 20px 15px;
        margin: 20px 10px;
    }
    
    .form-page-main {
        padding: 70px 10px 40px;
    }
    
    /* ボタンの調整 */
    .button-primary,
    .button-secondary,
    .submit-button {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* メインコンテンツのパディング調整（ヘッダーの高さに合わせる） */
    /* ヒーローセクションのpadding-topは上記で設定済み */
    
    .form-page-main,
    .list-page-main,
    .profile-page-main,
    .reservation-page-main {
        padding-top: 60px;
    }
    
    /* CTAバナーの調整 */
    .cta-banner {
        padding: 30px 15px;
    }
    
    .cta-banner__title {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 20px;
        padding: 0 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cta-banner .cta-button {
        padding: 14px 25px;
        font-size: 15px;
    }
    
    /* ページタイトルの調整 */
    .page-title {
        font-size: 24px;
        padding: 15px 10px;
    }
    
    /* カードの調整 */
    .card {
        padding: 20px 15px;
    }
    
    /* サービスカードの調整 - コーチ一覧のようなカード形式に */
    .service-card {
        background-color: #fff !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden !important;
        flex-direction: column !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px !important;
        transition: transform 0.3s;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    }
    
    .service-card--reverse {
        flex-direction: column !important;
    }
    
    .service-card__image {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        display: block !important;
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .service-card__content {
        order: 2 !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .service-card__title {
        font-size: 18px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-weight: 700 !important;
        color: #333 !important;
    }
    
    .service-card__text {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        color: #666 !important;
    }
    
    .service-card__button {
        display: block !important;
        width: 100% !important;
        padding: 10px 15px !important;
        text-align: center !important;
        font-size: 14px !important;
        background-color: #4CAF50 !important;
        color: #fff !important;
        border-radius: 5px !important;
        text-decoration: none !important;
        margin-top: 10px !important;
        font-weight: 600 !important;
        transition: background-color 0.3s;
    }
    
    .service-card__button:hover {
        background-color: #45a049 !important;
    }
    
    .service-cards {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 20px !important;
        align-items: stretch !important;
    }
    
    /* セクションの調整 */
    .section-padding {
        padding: 80px 0 40px 0 !important;
    }
    
    .services-section {
        padding: 80px 0 40px 0 !important;
    }
    
    .section-heading {
        font-size: 24px;
        margin-bottom: 25px;
        padding: 0 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-cards {
        gap: 25px;
        padding: 0 5px;
    }
    
    /* チャット画面の調整 */
    .chat-container {
        height: calc(100vh - 60px);
        margin: 10px;
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        max-width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .chat-main {
        flex-grow: 1;
        height: calc(100vh - 280px);
    }
    
    /* メインコンテンツの調整 */
    main.main-content {
        padding-top: 60px;
    }
    
    /* ドロップダウンメニューのアイテム調整 */
    .dropdown-item {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    /* 未読バッジの調整 */
    .unread-badge {
        font-size: 10px;
        padding: 2px 5px;
    }
}


/* ====================================
    PC対応 (769px以上)
==================================== */
@media (min-width: 769px) {
    /* モバイルメニューを完全に非表示 */
    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
        transform: translateY(-100%) !important;
    }
    
    /* ハンバーガーボタンを非表示 */
    .nav-toggle {
        display: none !important;
    }
    
    /* PC版では通常のナビゲーションとユーザーエリアを表示 */
    .header-container > .main-navigation {
        display: flex !important;
    }
    
    .header-container > .header-user-area {
        display: flex !important;
    }
    
    .nav {
        transform: translateX(0) !important; 
        display: block !important;
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
    }
    
    .nav__list {
        flex-direction: row;
    }
}

/* bodyのスクロールロック (JavaScriptで使用) */
.no-scroll {
    overflow: hidden;
}

/* レビュー星のハイライトスタイル (JavaScriptで使用) */
.rating-input .star-icon:hover,
.rating-input .star-icon.fas {
    color: #FFC107;
}
/* ====================================
   クラブ・学校一覧ページのデザイン
   ==================================== */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.team-card__content {
    padding: 20px;
}

.team-card__title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.team-card__area,
.team-card__target,
.team-card__slogan {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.team-card__area i,
.team-card__target i {
    margin-right: 8px;
    color: var(--color-accent);
}

.team-card .cta-button {
    margin-top: 15px;
    display: block; /* ボタンを横幅いっぱいに広げる */
    text-align: center;
}


/* --- モバイル対応 --- */
@media (max-width: 768px) {
    .team-cards-grid {
        grid-template-columns: 1fr; /* スマホでは1列表示 */
    }
}
.card {
    padding: 30px 2em; 
}
/* ====================================
    フォーム幅の調整
==================================== */

.form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-page-main {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.form-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}
.form-link-separator {
    margin: 0 10px;
    color: #ccc;
}
.hero-cta-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta-group .cta-button {
    min-width: 180px; 
    text-align: center;
}
.form-link-group {
    text-align: center;
    margin-bottom: 20px;
}

.action-btn.action-default {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.action-btn.action-default:hover {
    background-color: #e0e0e0;
}

.form-link.form-link--primary {
    color: #4CAF50;
    font-weight: 700;
}
.form-link.form-link--primary:hover {
    text-decoration: underline;
}
.register-switch-box {
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.register-switch-box .switch-text {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

.register-switch-box .switch-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s;
}

.register-switch-box .switch-button:hover {
    background-color: #0056b3;
}

.required-text {
    color: #dc3545;
    font-weight: 400;
    font-size: 0.9em;
}
.form-links--small-margin {
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
    text-align: center;
}
.form-links--small-margin p {
    font-size: 0.9em;
}
/* --- ヘッダーナビゲーションの調整 --- */
.nav__list {
    display: flex;
    align-items: center;
    gap: 20px; /* メニュー間の余白を追加 */
}

/* --- ドロップダウンメニューのスタイル --- */
.nav__item--dropdown {
    position: relative; /* ドロップダウンの基準位置 */
}

.dropdown-menu {
    display: none; /* 通常は非表示 */
    position: absolute;
    top: 100%; /* 親要素のすぐ下に表示 */
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    margin-top: 5px; /* メニューとの間に少し隙間を空ける */
    z-index: 1000;
}

/* ナビゲーション項目にマウスが乗った時にドロップダウンを表示 */
.nav__item--dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 0.9em;
    white-space: nowrap; /* 折り返しを防ぐ */
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
}
/* ====================================
    カレンダー & モーダル専用スタイル
==================================== */

/* --- カレンダー全体 --- */
.calendar-container {
    margin: 20px 0;
}
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.calendar-nav h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}
.calendar-nav a {
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}
.calendar-nav a:hover {
    background-color: #e8f8ee;
    text-decoration: none;
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.calendar-table th, .calendar-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: top;
    height: 80px;
}
.calendar-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}
.calendar-table .day-number {
    font-size: 1.1em;
    font-weight: bold;
}
.calendar-table td.today {
    background-color: #fffbe6;
}
.calendar-table td.today .day-number {
    color: #f39c12;
}

/* --- 予約可能日のスタイル --- */
.calendar-table td.available {
    background-color: #e0f2f1;
    cursor: pointer;
    transition: background-color 0.2s;
}
.calendar-table td.available .day-number {
    font-weight: bold;
    color: #00796b;
}
.calendar-table td.available:hover {
    background-color: #b2dfdb;
}

/* --- スケジュール編集で選択中の日付 --- */
.calendar-table td.selected {
    background-color: #4CAF50;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}
.calendar-table td.selected .day-number {
    color: #fff;
}

/* --- 時間選択モーダル --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.hidden {
    display: none;
}
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}
.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8em;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}
.timeslot-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}
.timeslot-button {
    display: block;
    padding: 12px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}
.timeslot-button:hover {
    background-color: #45a049;
    color: #fff;
    text-decoration: none;
}
/* ====================================
    予約管理カードデザイン
==================================== */
.reservation-list {
  display: flex;
  flex-direction: column;
  gap: 10px; /* カード間の隙間 */
  padding-top: 10px;
  max-width: 900px; /* カード全体の最大幅を指定 */
  margin: 0 auto;   /* 中央寄せ */
}

/* PC表示用のヘッダー行 */
.reservation-list-header {
    display: none; /* スマホでは非表示 */
}

.reservation-card {
  display: grid;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
  border-left: 5px solid #ccc; /* ステータス色用のボーダー */
}

/* マイ予約ページ (player) の列設定 */
.player-reservations-list .reservation-card,
.player-reservations-list .reservation-list-header {
  grid-template-columns: 1.5fr 1.5fr 1fr auto;
}

/* 予約管理ページ (coach) の列設定 */
.coach-reservations-list .reservation-card,
.coach-reservations-list .reservation-list-header {
  grid-template-columns: 1fr 1.2fr 1.5fr 1fr auto;
}

/* ステータスに応じた左のボーダー色 */
.reservation-card.status-confirmed { border-left-color: #4CAF50; }
.reservation-card.status-pending { border-left-color: #f39c12; }
.reservation-card.status-canceled,
.reservation-card.status-rejected,
.reservation-card.status-canceled_by_player { border-left-color: #e74c3c; }

/* カード内の各項目 */
.card-item .label {
  display: none; /* PCではラベルを非表示 */
}

.card-item .value {
  font-weight: 500;
}

/* アクションボタンの配置 */
.action-buttons {
  text-align: right;
}

/* レスポンシブ対応 (768px以上のPC表示) */
@media (min-width: 769px) {
  .reservation-list-header {
    display: grid;
    padding: 0 20px;
    font-size: 0.9em;
    color: #555;
    font-weight: bold;
  }
  
  /* カード内の項目間に区切り線を追加 */
  .reservation-card > .card-item {
    border-right: 1px solid #eee;
    padding-right: 15px;
  }
}


/* レスポンシブ対応 (768px以下のスマホ表示) */
@media (max-width: 768px) {
  .reservation-card,
  .coach-reservations-list .reservation-card,
  .player-reservations-list .reservation-card {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 12px;
  }

  /* スマホではラベルを表示して分かりやすくする */
  .card-item .label {
     display: inline-block;
     font-size: 0.8em;
     color: #888;
     width: 80px; /* ラベルの幅を揃える */
  }

  .action-buttons {
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }
}
/* ====================================
    予約フォーム専用スタイル
==================================== */

.reservation-container .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.reservation-container .section-title i {
    color: #4CAF50;
    margin-right: 8px;
}

.reservation-form-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.reservation-selector { flex: 1; min-width: 350px; }
.reservation-details { flex: 1; }

.timeslot-selection-area {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
#time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

/* 時間選択ボタンのスタイル */
.time-slot-button {
    display: block;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s, border-color 0.2s;
}
.time-slot-button:hover {
    background-color: #f1f1f1;
}
/* 選択されたボタンのスタイル */
.time-slot-button.selected {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}
/* ====================================
    予約確認ページ専用スタイル
==================================== */
.confirmation-box {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.confirmation-box > p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.summary-item:last-of-type {
    border-bottom: none;
}

.summary-label {
    width: 120px;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
}

.summary-value {
    flex-grow: 1;
}
.summary-value ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.summary-value.message-value {
    white-space: pre-wrap; /* 改行を反映させる */
    line-height: 1.7;
}

.total-price-item {
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #333;
}
.total-price-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
    text-align: right;
}

.confirmation-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.confirmation-actions .button-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #777;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.confirmation-actions .button-secondary:hover {
    background-color: #555;
}
.confirmation-actions .submit-button {
    margin-top: 0; /* 元の余白をリセット */
    width: auto;
}
/* ====================================
    予約完了ページ専用スタイル
==================================== */
.completion-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.completion-icon {
    font-size: 4em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.completion-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.completion-message {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.reservation-id-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.completion-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.completion-actions .submit-button,
.completion-actions .button-secondary {
    margin-top: 0;
    width: auto;
    min-width: 200px;
}
/* ====================================
    予約確認・完了ページのデザイン
==================================== */
.confirmation-box,
.completion-box {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-top: 5px solid #4CAF50;
}

.confirmation-lead {
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.summary-item:first-of-type {
    padding-top: 0;
}
.summary-item:last-of-type {
    border-bottom: none;
}

.summary-label {
    width: 140px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}
.summary-label i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: #4CAF50;
}

.summary-value {
    flex-grow: 1;
    color: #555;
}
.summary-slot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.summary-slot-list li {
    padding-bottom: 5px;
}
.summary-value.message-value {
    white-space: pre-wrap;
    line-height: 1.7;
}

.total-price-item {
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #333;
}
.total-price-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #e74c3c;
    text-align: right;
}

.confirmation-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto 0;
    max-width: 700px;
}
.confirmation-actions .button-secondary {
    padding: 12px 25px;
    background-color: #aaa;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.confirmation-actions .button-secondary:hover {
    background-color: #888;
}
.confirmation-actions .submit-button {
    margin-top: 0;
    width: auto;
    font-size: 1.1em;
    padding: 12px 30px;
}

/* --- 完了ページ --- */
.completion-box {
    text-align: center;
    padding: 40px;
}
.completion-icon {
    font-size: 4.5em;
    color: #4CAF50;
    margin-bottom: 20px;
}
.completion-title {
    font-size: 2em;
    margin-bottom: 15px;
}
.completion-message {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}
.reservation-id-info {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 30px;
    font-size: 1em;
    border: 1px solid #eee;
}
.completion-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.completion-actions .submit-button,
.completion-actions .button-secondary {
    margin-top: 0;
    width: auto;
    min-width: 220px;
}
/* ====================================
    新しいトップページのデザイン（提供されたHTML準拠）
==================================== */

/* --- ヒーローセクション --- */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ▼▼▼ 実際の背景画像へのパスをご指定ください ▼▼▼ */
    background-image: url('hero_background.jpg');
    background-size: cover;
    background-position: center;
    /* 画像を少し暗くして文字を読みやすくするフィルター */
    filter: brightness(0.6);
    z-index: 1;
}

.hero-section__content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.catch-copy {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.sub-copy {
    font-size: 1.1em;
    margin-bottom: 2em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px; /* 角を丸く */
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
    background-color: #45a049;
    transform: translateY(-3px);
}

/* --- サービス紹介セクション --- */
.section-padding {
    padding: 60px 20px;
}
.section-heading {
    text-align: center;
    font-size: 2em;
    margin-bottom: 50px;
    position: relative;
}
.section-heading span {
    background-color: #fff;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.section-heading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    z-index: 0;
}

.service-cards {
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}
.service-card--reverse {
    flex-direction: row-reverse;
}

.service-card__image {
    width: 45%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card__content {
    width: 55%;
}

.service-card__title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}
.service-card__text {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
}

/* --- CTAバナーセクション --- */
.cta-banner {
    background-color: #f8f9fa;
    padding: 50px 20px;
    text-align: center;
}
.cta-banner__title {
    font-size: 1.6em;
    margin-bottom: 25px;
}
.cta-button--inverted {
    background-color: #fff;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}
.cta-button--inverted:hover {
    background-color: #4CAF50;
    color: #fff;
}
/* ====================================
    トップページ ボタン追加のデザイン
==================================== */

/* --- ヒーローセクションのボタンを横並びにする --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* ボタンの間のスペース */
    flex-wrap: wrap; /* スマホ表示でボタンが改行されるように */
}

/* --- 団体一覧を見るボタン（アウトラインスタイル） --- */
.cta-button--secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.15); /* ホバー時に少し白く */
    color: #fff;
}

/* --- サービスカード内のボタン --- */
.service-card__button {
    display: inline-block;
    margin-top: 20px; /* 説明文とのスペース */
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.service-card__button:hover {
    background-color: #4CAF50; /* ホバー時にメインカラーに */
    color: #fff;
}
/* ====================================
    トップページ追加修正のデザイン
==================================== */

/* --- サービスカードの画像を大きくする --- */
.service-card {
    align-items: stretch; /* カードの高さを内容物で揃える */
}

.service-card__image {
    width: 50%; /* 画像の横幅をカードの半分に */
    object-fit: cover; /* 画像の比率を保ったまま領域を埋める */
}

/* --- CTAバナーの文字色を黒にする --- */
.cta-banner__title {
    color: #333; /* 文字色を黒に近いグレーに */
}
/* ====================================
    絞り込み検索ボタンのデザイン
==================================== */
.filter-button-group {
    display: flex;
    gap: 10px; /* ボタンの間のスペース */
    margin-top: 15px;
}

/* 「絞り込む」ボタンの調整 */
.filter-apply-button {
    flex-grow: 2; /* リセットボタンより幅を広く取る */
    margin: 0;
}

/* 「リセット」ボタンの調整 */
.filter-reset-button {
    flex-grow: 1; /* 幅の比率 */
    display: flex; /* 文字を中央揃えにするため */
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 0.9em;
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.filter-reset-button:hover {
    background-color: #e0e0e0;
}
/* ====================================
    ヘッダーボタンのデザイン調整
==================================== */
.nav__link--btn {
    padding: 8px 14px; /* 少しだけ余白を調整 */
    font-size: 0.9em; /* 少しだけ文字を小さく */
}
/* ====================================
    登録・ログインフォーム共通デザイン (最新版)
==================================== */
.form-container {
    max-width: 750px;
    margin: 40px auto;
    padding: 30px 40px 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-top: 5px solid #4CAF50;
}

.form-description {
    text-align: center;
    color: #666;
    margin: -10px 0 35px;
    line-height: 1.8;
    font-size: 0.95em;
}

.styled-form {
    width: 100%;
}

.form-section-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin-top: 35px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.styled-form h2:first-of-type {
    margin-top: 0;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #444;
    margin-bottom: 8px;
}

.form-group .required {
    background-color: #e44d26;
    color: #fff;
    font-size: 0.75em;
    padding: 3px 7px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.form-actions .submit-button {
    font-size: 1.1em;
    padding: 12px 40px;
}

/* --- メッセージ表示用のボックス --- */
.message-box {
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
}
.message-box p {
    margin: 0 0 15px 0;
    font-weight: bold;
}
.error-box {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.success-box {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.success-box .button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
/* ====================================
    選手登録フォームのコンパクトデザイン
==================================== */
.form-container--compact {
    max-width: 500px; /* 横幅を狭くする */
}
/* ====================================
    管理者ページのデザイン (最新版)
==================================== */
.admin-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.admin-section-title {
    font-size: 1.5em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.no-data-message {
    text-align: center;
    padding: 40px;
    color: #777;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9e9e9;
    vertical-align: middle;
}

.admin-table thead th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background-color: #f1f7ff;
}

.admin-table .actions-header {
    text-align: center;
}

.admin-table .actions-cell {
    text-align: center;
    white-space: nowrap;
}

.actions-cell button {
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    margin: 0 4px;
    transition: opacity 0.3s;
}
.actions-cell button:hover {
    opacity: 0.85;
}
.actions-cell button i {
    margin-right: 5px;
}

.button-approve {
    background-color: #28a745;
}
.button-deny {
    background-color: #dc3545;
}

/* --- 種別表示用のタグ --- */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
}
.tag-coach {
    background-color: #007bff; /* 青 */
}
.tag-school {
    background-color: #ffc107; /* 黄 */
    color: #333;
}
/* ====================================
    予約システムの高機能UIデザイン
==================================== */

/* --- プロフィールページのモーダルウィンドウ --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.hidden {
    display: none;
}
.modal-content {
    background-color: #fff;
    padding: 25px 35px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}
.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
}
.timeslot-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.timeslot-button-link {
    display: inline-block;
    background-color: #4CAF50; /* 緑色のボタン */
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.timeslot-button-link:hover {
    background-color: #45a049;
}

/* --- 予約フォームの時間選択チェックボックス --- */
.timeslot-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.timeslot-list li {
    flex-grow: 1;
}
.timeslot-list input[type="checkbox"] {
    display: none; /* 元のチェックボックスは隠す */
}
.timeslot-list label {
    display: block;
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.timeslot-list input[type="checkbox"]:checked + label {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: bold;
}
.timeslot-list label:hover {
    border-color: #4CAF50;
}
/* --- チャット機能のデザイン --- */

/* チャット全体のコンテナ */
.chat-container {
    display: flex;
    height: calc(100vh - 120px); /* ヘッダーの高さを引いた画面いっぱいの高さ */
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden; /* 角丸を有効にするため */
}

/* 左側の会話リスト（サイドバー） */
.chat-sidebar {
    width: 30%;
    max-width: 280px;
    background-color: #f7f7f7;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    padding: 16px;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.partner-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* 会話相手が増えたらスクロール */
}

.partner-list a {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.partner-list a:hover {
    background-color: #e9e9e9;
}

/* 選択中の会話相手をハイライト */
.partner-list li.active a {
    background-color: #e2f0ff;
    font-weight: bold;
}

.no-partners {
    padding: 16px;
    color: #888;
    font-size: 14px;
}

/* 右側のメインチャット画面 */
.chat-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #79b5c3; /* LINE風の背景色 */
    overflow: hidden;
}

/* メッセージが表示されるウィンドウ */
.chat-window {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto; /* メッセージが増えたらスクロール */
    display: flex;
    flex-direction: column;
}

/* メッセージの吹き出しの共通スタイル */
.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 18px; /* 角を丸くする */
    line-height: 1.5;
    word-wrap: break-word; /* 長い文章を折り返す */
}

/* 相手の吹き出し（左側） */
.chat-bubble.theirs {
    background-color: #ffffff;
    align-self: flex-start; /* 左寄せ */
    border-top-left-radius: 4px; /* 少しだけ角を出す */
}

/* 自分の吹き出し（右側） */
.chat-bubble.mine {
    background-color: #8de048; /* LINE風の緑色 */
    color: #000;
    align-self: flex-end; /* 右寄せ */
    border-top-right-radius: 4px; /* 少しだけ角を出す */
}

/* メッセージ入力フォーム */
.chat-form {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
}

.chat-form textarea {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.4;
    resize: none; /* テキストエリアのサイズ変更を禁止 */
    max-height: 100px; /* 高くなりすぎないように制限 */
}

.chat-form button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 16px;
    margin-left: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-form button:hover {
    background-color: #0056b3;
}

/* 相手が選択されていない時の表示 */
.no-chat-selected {
    margin: auto;
    text-align: center;
    color: rgba(255,255,255,0.8);
}
.no-chat-selected i {
    font-size: 48px;
    margin-bottom: 16px;
}
/* --- 全体レイアウトの微調整 --- */
/* ヘッダーの裏にコンテンツが隠れないようにする */
main.main-content {
    padding-top: 70px; /* ヘッダーの高さ分だけ余白を確保 */
}
/* --- ヘッダー全体のレイアウト --- */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
    position: fixed; /* ヘッダーを画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 他の要素より手前に表示 */
}

.header-container {
    display: flex; /* ★これが最重要！要素を横並びにする */
    align-items: center; /* 要素の縦方向の位置を中央に揃える */
    justify-content: space-between; /* 要素を両端に配置する */
    max-width: 1200px;
    margin: 0 auto;
    height: 65px;
}

.site-logo {
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: #4CAF50; /* テーマカラーの例 */
    display: inline-block;
}

.main-navigation {
    display: flex; /* PC版で表示 */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* ナビゲーション項目を横並びにする */
    gap: 25px; /* 項目間のスペース */
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #4CAF50;
}

/* --- ヘッダーのドロップダウンメニュー --- */
.header-user-area {
    position: relative;
    display: flex; /* PC版で表示 */
}

.dropdown-menu-container {
    display: inline-block;
}

.dropdown-trigger {
    background-color: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.dropdown-trigger:hover {
    background-color: #f0f0f0;
}

.dropdown-trigger .fa-user-circle {
    font-size: 24px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%; /* 少し隙間を空ける */
    right: 0;
    background-color: white;
    min-width: 180px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    overflow: hidden;
}

.dropdown-content.is-active {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 4px 0;
}

/* =================================================================
未読メッセージバッジ
================================================================= */
.unread-badge {
    display: inline-block;
    background-color: #e63946; /* 目立つ赤色 */
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px; /* 丸くする */
    line-height: 1;
    margin-left: 6px;
    vertical-align: middle;
}

/* ヘッダーのドロップダウン内のリンクを調整 */
.dropdown-item {
    display: flex; /* Flexbox を使う */
    justify-content: space-between; /* 両端揃え */
    align-items: center; /* 中央揃え */
}

/* =================================================================
チャット画面のサイドバー調整 (未読バッジ対応)
================================================================= */
.partner-list a {
    display: flex; /* Flexbox を使う */
    justify-content: space-between; /* 両端揃え (名前が左、バッジが右) */
    align-items: center; /* 上下中央揃え */
    width: 100%;
    /* 既存の a タグのスタイル（paddingなど）はそのまま活かされます */
}

.partner-name {
    /* テキストが長い場合に「...」で省略する設定 (任意) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* 名前が可能な限り幅を取る */
    padding-right: 10px; /* 名前とバッジの間に少し隙間を空ける */
}

/* 未読バッジ (header.phpで追加したものと同じスタイル) */
/* もし .unread-badge を既に定義済みなら、このブロックは不要です */
.unread-badge {
    display: inline-block;
    background-color: #e63946;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    flex-shrink: 0; /* バッジが縮まないようにする */
}

/* =================================================================
団体一覧ページ (organization_list.php)
================================================================= */
.organization-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.organization-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column; /* 縦積み */
    overflow: hidden; /* カードの角丸を維持 */
}

.organization-card-image {
    width: 100%;
    height: 200px; /* 高さを固定 */
    background-color: #f0f0f0; /* 画像がない場合の背景色 */
}

.organization-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングしてフィット */
}

.organization-card-content {
    padding: 15px;
    flex-grow: 1; /* 内容部分が伸びるように */
}

.organization-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.organization-card-location {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}
.organization-card-location .fas {
    margin-right: 5px;
    color: #777;
}

.organization-card-bio {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
    /* 最小の高さを確保 (任意) */
    min-height: 60px; 
}

.organization-card-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background-color: #f9f9f9;
    text-align: right;
}

/* =================================================================
 団体詳細ページ (organization_profile.php)
================================================================= */

.organization-profile-header {
    display: flex;
    flex-wrap: wrap; /* スマホで折り返す */
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.organization-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* 円形にする */
    overflow: hidden;
    margin-right: 25px;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.organization-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organization-profile-info {
    flex-grow: 1;
}

.organization-profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

.organization-profile-location,
.organization-profile-website {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
}
.organization-profile-location .fas,
.organization-profile-website .fas {
    margin-right: 8px;
    color: #888;
}

/* メインレイアウト (コーチプロフィールと共通化も可能) */
.organization-profile-main {
    display: grid;
    grid-template-columns: 1fr; /* スマホは1カラム */
    gap: 25px;
}

/* PC (769px以上) では2カラム */
@media (min-width: 769px) {
    .organization-profile-main {
        grid-template-columns: 2.5fr 1fr; /* 2.5 : 1 の割合 */
    }
}

/* =================================================================
 プロフィール編集の写真プレビュー
================================================================= */
.profile-photo-preview-container {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.profile-photo-preview {
    width: 220px; /* プレビュー画像の幅 */
    height: 220px; /* プレビュー画像の高さ */
    border: 2px solid var(--border-color);
    border-radius: 8px; /* 団体の場合は四角（コーチは円形） */
    object-fit: cover; /* 画像をトリミングしてフィット */
    background-color: #f0f0f0;
    display: block;
}

.profile-photo-input {
    display: block;
    margin: 10px auto 0;
    font-size: 0.9rem;
}

.profile-edit-form {
    max-width: 700px;
    margin: 0 auto 40px;
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.profile-edit-form .form-group {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.profile-edit-form .button-primary {
    display: inline-block;
    min-width: 220px;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}
.profile-edit-form .button-primary:hover {
    background-color: #43a047;
}

/* =================================================================
 団体詳細ページ (所属コーチのミニカード)
================================================================= */
.affiliated-coach-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* カード間の隙間 */
}

.coach-mini-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.coach-mini-card:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.coach-mini-card-image {
    width: 45px;
    height: 45px;
    border-radius: 50%; /* 円形 */
    overflow: hidden;
    margin-right: 12px;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.coach-mini-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-mini-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* =================================================================
 コーチ詳細ページ (coach_profile.php) - ★新デザイン (緑テーマ)
================================================================= */

/* --- ヘッダー (カード) --- */
.coach-profile-header-card {
    display: flex;
    flex-wrap: wrap; /* スマホで折り返す */
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 左側: 写真コンテナ */
.coach-profile-image-container {
    width: 300px; /* 幅を固定 */
    flex-shrink: 0;
    margin-right: 25px;
    position: relative;
}
.coach-profile-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 評価バッジ (写真の上) */
.coach-profile-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FFC107; /* 星の色 (黄色) */
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.coach-profile-rating-badge .fas {
    color: #333;
}


/* 右側: 情報コンテナ */
.coach-profile-info-container {
    flex-grow: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.coach-profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
}

/* 所属団体 */
.coach-profile-organization {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}
.coach-profile-organization .fas {
    margin-right: 6px;
    color: #888;
}
.coach-profile-organization a {
    color: #4CAF50; /* 緑色 */
    text-decoration: none;
    font-weight: 600;
}
.coach-profile-organization a:hover {
    text-decoration: underline;
}

/* タグ (指導対象・地域) */
.coach-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.coach-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
.coach-tag .fas {
    margin-right: 5px;
}
.tag-level {
    background-color: #E8F5E9; /* 緑系 */
    color: #388E3C;
}
.tag-location {
    background-color: #EEEEEE; /* グレー系 */
    color: #555;
}

/* 料金 */
.coach-profile-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #E53935; /* 赤色 */
    margin-bottom: 20px;
    padding: 15px;
    background-color: #F0FFF0; /* 薄い緑 */
    border-radius: 8px;
    border: 1px solid #C8E6C9;
    text-align: center;
}

/* 予約ボタン (★重要) */
.coach-profile-actions .button-reserve {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    /* ★緑色のボタンになるように既存のクラスを上書き */
    background-color: #FF9800; /* オレンジ色 */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}
.coach-profile-actions .button-reserve:hover {
    background-color: #FB8C00;
    color: #ffffff;
}
.coach-profile-actions .button-reserve .fas {
    margin-right: 8px;
}

.coach-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 768px) {
    .coach-profile-actions {
        flex-direction: row;
        align-items: center;
    }
}

.button-message {
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #2196F3; /* ブルー系 */
    color: #fff;
    font-weight: 600;
}
.button-message .fas {
    margin-right: 6px;
}
.button-message:hover {
    background-color: #1e88e5;
    color: #fff;
}

/* --- スマホ用調整 --- */
@media (max-width: 768px) {
    .coach-profile-header-card {
        padding: 15px;
    }
    .coach-profile-image-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}


/* --- メイン (タブ) --- */
.profile-page-main {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

/* (タブのCSSは既存のものを流用) */
.detail-tabs .tab-item.tab-active {
    color: #4CAF50; /* 緑色 */
    border-bottom-color: #4CAF50;
}

/* (セクションタイトルのCSSも既存のものを流用) */
/* (スクリーンショット 195029.png に合わせてオレンジの線にします) */
.profile-page-main .section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
    margin-bottom: 15px;
    border-bottom: 3px solid #FF9800; /* オレンジの線 */
    padding-bottom: 5px;
    display: inline-block;
}


.bio-content {
    line-height: 1.7;
    color: #333;
}

/* --- レビュー投稿欄 --- */
.review-post-section {
    background-color: #fdfdfd;
    border: 1px dashed #4CAF50; /* 緑の破線 */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.review-post-section .section-title {
    color: #4CAF50; /* 緑色 */
    border-bottom-color: #4CAF50;
}

/* --- レビュー一覧 --- */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0; /* シンプルに */
    border-bottom: none;
    background-color: transparent;
}
.review-rating {
    color: #FFC107; /* 星の色 */
    font-size: 1rem;
}
.review-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}
.review-date {
    font-size: 0.85rem;
    color: #888;
    margin-left: auto; /* 日付を右寄せ */
}
.review-body {
    padding: 0;
    margin-top: 5px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* ★ レビュー一覧の平均評価 (h2 の中) */
.review-average-display {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #FFC107; /* 星の色 */
    background-color: #fffaf0;
    border: 1px solid #f3e5c9;
    padding: 3px 8px;
    border-radius: 15px;
    margin-left: 15px;
    vertical-align: middle;
}
.review-average-display .fas {
    margin-right: 3px;
}

/* --- カレンダーモーダル (共通) --- */
/* (既存のモーダルスタイルが .modal-overlay などで定義されているため、ここでは色を上書き) */
.timeslot-button-link {
    background-color: #4CAF50; /* 緑色 */
}
.timeslot-button-link:hover {
    background-color: #45a049;
}
.coach-profile-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 24px;
    margin-top: 24px;
}

/* 団体カード用のリンク (全体クリック可能) */
.organization-card-link {
    text-decoration: none;
    color: inherit;
}
.organization-card-link .organization-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.organization-card-link:hover .organization-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}