/* 予約ページ全体のスタイル - 遊庵HPデザインに合わせて */
.reservation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'メイリオ', sans-serif;
}

/* ローディングインジケーター */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 1.2em;
    margin: 0;
    font-weight: 300;
}

.reservation-container h1 {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    font-size: 2.8em;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* カレンダーセクション - 遊庵HPスタイル */
.calendar-section {
    background: #2c5530; /* ダークグリーン */
    border-radius: 0;
    padding: 60px 40px;
    margin-bottom: 60px;
    box-shadow: none;
    position: relative;
}

.calendar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9) 0%, rgba(60, 100, 65, 0.9) 100%);
    z-index: 1;
}

.calendar-section > * {
    position: relative;
    z-index: 2;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 300;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.05em;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.5);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.month-range {
    color: white;
    font-size: 1.8em;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-shadow: none;
}

/* カレンダーグリッド - 遊庵HPスタイル */
.calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.calendar-month {
    background: rgba(255,255,255,0.95);
    border-radius: 0;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

.month-header {
    text-align: center;
    font-size: 1.4em;
    font-weight: 300;
    color: #2c5530;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
    letter-spacing: 0.05em;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    background: #f5f5f5;
    color: #2c5530;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 300;
    border: 1px solid #e8e8e8;
}

.calendar-table th:nth-child(6) {
    color: #4a90e2; /* 土曜日は青 */
}

.calendar-table th:nth-child(7) {
    color: #e74c3c; /* 日曜日は赤 */
}

.calendar-table td {
    padding: 12px 8px;
    text-align: center;
    vertical-align: top;
    height: 70px;
    position: relative;
    border: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

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

.calendar-table td.other-month {
    background: #f8f8f8;
    color: #ccc;
}

.calendar-table td.today {
    background: #e8f4e8;
    font-weight: 500;
}

.date-number {
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 8px;
    color: #333;
}

.date-number.saturday {
    color: #4a90e2;
}

.date-number.sunday {
    color: #e74c3c;
}

.availability-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.availability-checkbox {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #2c5530;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.availability-checkbox.checked {
    background: #2c5530;
}

.availability-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.availability-checkbox.unavailable {
    background: #f0f0f0;
    border-color: #ccc;
    cursor: not-allowed;
}

.availability-checkbox.unavailable::after {
    content: '×';
    position: absolute;
    top: -2px;
    left: 5px;
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

.price-display {
    font-size: 0.85em;
    color: #2c5530;
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-display.special {
    color: #e74c3c;
}

/* フォームセクション - 遊庵HPスタイル */
.form-section {
    background: #f8f6f0; /* ベージュ系 */
    border-radius: 0;
    padding: 60px 40px;
    box-shadow: none;
    margin-top: 0;
    border-top: 1px solid #e8e8e8;
}

.form-section h2 {
    color: #2c5530;
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.2em;
    font-weight: 300;
    letter-spacing: 0.1em;
}

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

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

.required {
    color: #FF6B6B;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    font-weight: 300;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: white;
    color: #333;
    letter-spacing: 0.02em;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 2px rgba(44, 85, 48, 0.1);
}

.guest-count {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.guest-item {
    display: flex;
    flex-direction: column;
}

.guest-item input {
    margin-top: 5px;
}

.payment-options,
.checkin-options,
.purpose-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-options label,
.checkin-options label,
.purpose-options label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.payment-options input[type="radio"],
.checkin-options input[type="radio"],
.purpose-options input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.options input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.price-summary {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 30px;
    margin: 30px 0;
}

.price-summary h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.4em;
    letter-spacing: 0.05em;
}

.total-price {
    font-size: 1.4em;
    color: #2c5530;
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    font-weight: 500;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 18px 40px;
    border: 1px solid #2c5530;
    border-radius: 0;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: #2c5530;
    color: white;
}

.btn-primary:hover {
    background: #3d6b42;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2c5530;
    border-color: #2c5530;
}

.btn-secondary:hover {
    background: #2c5530;
    color: white;
    transform: translateY(-1px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .reservation-container {
        padding: 20px 10px;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendar-section {
        padding: 20px 10px;
        margin-bottom: 30px;
    }
    
    .form-section {
        padding: 30px 10px;
    }
    
    .month-range {
        font-size: 1.2em;
    }
    
    .calendar-table td {
        height: 50px;
        padding: 5px 2px;
    }
    
    .date-number {
        font-size: 1em;
    }
    
    .price-display {
        font-size: 0.7em;
        white-space: nowrap;
    }
    
    .guest-count {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .reservation-container {
        padding: 15px 8px;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .calendar-section {
        padding: 15px 8px;
        margin-bottom: 20px;
    }
    
    .form-section {
        padding: 20px 8px;
    }
    
    .calendar-navigation {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 0 0 auto;
    }
    
    .month-range {
        font-size: 1em;
        flex: 1;
        text-align: center;
    }
    
    .calendar-month {
        padding: 15px 8px;
    }
    
    .calendar-table th {
        padding: 8px 4px;
        font-size: 0.8em;
    }
    
    .calendar-table td {
        padding: 4px 2px;
        height: 45px;
    }
    
    .price-display {
        font-size: 0.65em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .form-section h2 {
        font-size: 1.6em;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .price-summary {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 14px;
    }
}

/* 画面全体のローディングインジケーター */
.full-screen-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 85, 48, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner-large {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.loading-message {
    font-size: 1.5em;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* サンクスページ */
.thanks-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 85, 48, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 40px 20px;
}

.thanks-content {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 10px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.thanks-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: #2c5530;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    font-weight: bold;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thanks-title {
    font-size: 2em;
    color: #2c5530;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.thanks-message {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.8;
}

.thanks-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.thanks-info p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

#closeThanks {
    min-width: 200px;
    background: #2c5530;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#closeThanks:hover {
    background: #1e3a20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .thanks-content {
        padding: 40px 30px;
    }
    
    .thanks-icon {
        width: 80px;
        height: 80px;
        font-size: 50px;
    }
    
    .thanks-title {
        font-size: 1.5em;
    }
    
    .thanks-message {
        font-size: 1em;
    }
}
