/**
 * Gym Booking System Styles
 * ベージュをモチーフとしたシンプルなデザイン
 */

/* グローバルスタイル */
.gym-booking-form-wrapper,
.gym-booking-calendar-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Yu Gothic', '游ゴシック', YuGothic, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #FAF8F5; /* 明るいベージュ背景 */
    border-radius: 12px;
}

/* メッセージ表示 */
.booking-message {
    display: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.booking-message.success {
    display: block;
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.booking-message.error {
    display: block;
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* 予約フォーム */
.gym-booking-form {
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gym-booking-form h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #4A4A4A;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.gym-booking-form p {
    color: #7A7A7A;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* フォームグループ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4A4A4A;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #D32F2F;
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D9D0C7;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Yu Gothic', '游ゴシック', YuGothic, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #FFFFFF;
    color: #4A4A4A;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #B8A896;
    box-shadow: 0 0 0 3px rgba(184, 168, 150, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Yu Gothic', '游ゴシック', YuGothic, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #B8A896;
    color: #FFFFFF;
    width: 100%;
}

.btn-primary:hover {
    background-color: #A69685;
}

.btn-primary:disabled {
    background-color: #D9D0C7;
    cursor: not-allowed;
    transform: none;
}

/* カレンダー */
.gym-booking-calendar {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4A4A4A;
    margin: 0;
}

.btn-prev-month,
.btn-next-month {
    background-color: #F5F1ED;
    border: 1px solid #D9D0C7;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Yu Gothic', '游ゴシック', YuGothic, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 0.9rem;
    color: #4A4A4A;
    transition: background-color 0.2s;
}

.btn-prev-month:hover,
.btn-next-month:hover {
    background-color: #E8E1D8;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.calendar-table th {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #7A7A7A;
    font-size: 0.9rem;
    background-color: #FAF8F5;
    border: 1px solid #F5F1ED;
}

.calendar-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #F5F1ED;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.95rem;
    color: #4A4A4A;
}

.calendar-table td.other-month {
    background-color: #FAFAFA;
    color: #BDBDBD;
    cursor: default;
}

.calendar-table td.available {
    background-color: #FFFFFF;
}

.calendar-table td.available:hover {
    background-color: #F5F1ED;
}

.calendar-table td.booked {
    background-color: #FFF9F5;
    color: #B8A896;
}

.calendar-table td.closed {
    background-color: #F5F5F5;
    color: #BDBDBD;
    cursor: not-allowed;
}

/* カレンダー凡例 */
.calendar-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7A7A7A;
}

.legend-color {
    width: 20px;
    height: 20px;
    border: 1px solid #D9D0C7;
    border-radius: 4px;
}

.legend-color.available {
    background-color: #FFFFFF;
}

.legend-color.booked {
    background-color: #FFF9F5;
}

.legend-color.closed {
    background-color: #F5F5F5;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .gym-booking-form-wrapper,
    .gym-booking-calendar-wrapper {
        padding: 1.5rem 1rem;
    }

    .gym-booking-form {
        padding: 1.5rem;
    }

    .gym-booking-form h3 {
        font-size: 1.5rem;
    }

    .gym-booking-calendar {
        padding: 1.5rem;
    }

    .calendar-header {
        flex-direction: column;
        gap: 1rem;
    }

    .calendar-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .calendar-table th {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gym-booking-form-wrapper,
    .gym-booking-calendar-wrapper {
        padding: 1rem 0.5rem;
    }

    .gym-booking-form {
        padding: 1rem;
    }

    .calendar-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ローディング状態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* アクセシビリティ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
