* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebe8 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #3388c1 0%, #4a9dd4 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.header-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.95;
}

/* メインコンテンツ */
.main-content {
    flex: 1;
    padding: 3rem 1rem;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ステップインジケーター */
.steps {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step.completed:not(:last-child)::after {
    background: #3388c1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #3388c1;
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #3388c1;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: #6c757d;
}

.step.active .step-label {
    color: #3388c1;
    font-weight: 700;
}

/* フォームステップ */
.reservation-form {
    padding: 2rem;
}

.form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step-title {
    font-size: 1.8rem;
    color: #3388c1;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

/* 予約種別カード */
.reservation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.type-card {
    position: relative;
    cursor: pointer;
}

.type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.type-card-content {
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.type-card:hover .type-card-content {
    border-color: #3388c1;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(51, 136, 193, 0.15);
}

.type-card input[type="radio"]:checked + .type-card-content {
    background: #3388c1;
    border-color: #3388c1;
    color: white;
}

.type-card-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3388c1;
    transition: color 0.3s ease;
}

.type-card input[type="radio"]:checked + .type-card-content i {
    color: white;
}

.type-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.type-card-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* イベントカード（リンク型） */
.type-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.type-card-link .type-card-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.type-card-link .type-card-content i {
    color: white;
}

.type-card-link:hover .type-card-content {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* フォームセクション */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.3rem;
    color: #3388c1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.3rem;
    background: #3388c1;
    border-radius: 2px;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.form-group label.required::after {
    content: ' *';
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3388c1;
    box-shadow: 0 0 0 3px rgba(51, 136, 193, 0.1);
}

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

.note-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    line-height: 1.6;
}

.note-text i {
    color: #ffc107;
    margin-right: 0.5rem;
}

/* ラジオグループ */
.radio-group {
    display: grid;
    gap: 1rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.radio-card:hover .radio-card-content {
    border-color: #3388c1;
    background: #e8f4fb;
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    background: #d4ebf7;
    border-color: #3388c1;
    border-width: 3px;
}

.radio-card-content strong {
    display: block;
    color: #3388c1;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.radio-card-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* インラインラジオグループ */
.radio-inline-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-inline {
    position: relative;
    cursor: pointer;
}

.radio-inline input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-inline span {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.radio-inline:hover span {
    border-color: #3388c1;
    background: #e8f4fb;
}

.radio-inline input[type="radio"]:checked + span {
    background: #3388c1;
    border-color: #3388c1;
    color: white;
}

/* カレンダー */
.calendar-container {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
}

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

.calendar-month {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3388c1;
}

.calendar-nav-btn {
    background: white;
    border: 2px solid #dee2e6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3388c1;
}

.calendar-nav-btn:hover {
    background: #3388c1;
    color: white;
    border-color: #3388c1;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-weight: 700;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #dee2e6;
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
    cursor: not-allowed;
}

.calendar-day.available {
    color: #333;
    border-color: #3388c1;
}

.calendar-day.available:hover {
    background: #e8f4fb;
    transform: scale(1.05);
}

.calendar-day.unavailable {
    color: #999;
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.selected {
    background: #3388c1;
    color: white;
    border-color: #3388c1;
    transform: scale(1.05);
}

.calendar-day.today {
    border-color: #ffc107;
    font-weight: 700;
}

.calendar-day.full {
    color: #999;
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.calendar-day.full:hover {
    background: #f5f5f5;
    transform: none;
}

.full-badge {
    font-size: 0.65rem;
    color: #dc3545;
    font-weight: 700;
    white-space: nowrap;
}

/* 時間枠グリッド */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
}

.time-slot {
    position: relative;
}

.time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.time-slot label {
    display: block;
    padding: 0.8rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover label {
    border-color: #3388c1;
    transform: translateY(-2px);
}

.time-slot input[type="radio"]:checked + label {
    background: #3388c1;
    border-color: #3388c1;
    color: white;
}

.time-slot.unavailable label {
    background: #f1f3f5;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 当日予約メッセージ */
.same-day-notice {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border: 3px solid #ff9800;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.same-day-notice i.fa-phone-alt {
    font-size: 3.5rem;
    color: #ff9800;
    margin-bottom: 1.5rem;
}

.same-day-notice h3 {
    color: #e65100;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.same-day-notice p {
    color: #5d4037;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.same-day-notice .phone-number {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.same-day-notice .phone-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.same-day-notice .phone-number i {
    margin-right: 0.5rem;
}

.same-day-notice .business-hours {
    font-size: 0.9rem;
    color: #6d4c41;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.same-day-notice .btn-back-to-calendar {
    background: white;
    color: #ff9800;
    border: 2px solid #ff9800;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.same-day-notice .btn-back-to-calendar:hover {
    background: #ff9800;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.2);
}

/* 確認画面 */
.confirmation-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.confirmation-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.confirmation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.confirmation-item strong {
    display: block;
    color: #3388c1;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.confirmation-item p {
    color: #333;
    font-size: 1.05rem;
    margin: 0;
    white-space: pre-wrap;
}

/* ボタン */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-primary {
    background: #3388c1;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2670a0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 136, 193, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

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

/* フッター */
.footer {
    background: #3388c1;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* 読み込み中 */
.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .steps {
        padding: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .reservation-form {
        padding: 1.5rem;
    }

    .form-step-title {
        font-size: 1.4rem;
    }

    .reservation-types {
        grid-template-columns: 1fr;
    }

    .type-card-content {
        padding: 1.5rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem 0.5rem;
    }

    .form-container {
        border-radius: 12px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .calendar-container {
        padding: 1rem;
    }

    .calendar-month {
        font-size: 1.1rem;
    }

    .calendar-nav-btn {
        width: 35px;
        height: 35px;
    }

    .calendar-weekday {
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    .calendar-days {
        gap: 0.3rem;
    }

    .calendar-day {
        font-size: 0.9rem;
    }
}
