﻿/* style.css - Consolidated & Refactored v2.9.106 */

/* ==========================================================================
   1. Root Variables & Base Settings
   ========================================================================== */

html {
    scrollbar-gutter: stable;
}

.hidden {
    display: none !important;
}

/* Maintenance Mode Overlay */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.maintenance-content {
    max-width: 500px;
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.maintenance-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.maintenance-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.maintenance-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

:root {
    --primary-color: #1a1a1a;
    --accent-manned: #e67e22;
    --accent-unmanned: #3498db;
    --bg-color: #f8fafb;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #edf2f7;
    --success-color: #27ae60;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.08);
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

/* ==========================================================================
   2. Typography & UI Components (Cards, Badges)
   ========================================================================== */

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.badge-required {
    background: #e74c3c;
    color: #fff;
}

.badge-optional {
    background: #94a3b8;
    color: #fff;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
    padding: 0 24px;
    height: 44px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
    flex-shrink: 0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-color);
}

.btn-full {
    width: 100%;
}

/* 次へ進むボタン (Special Style) */
#to-next-step {
    font-size: 18px;
    height: 54px !important;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #444 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: pulse-button 2s infinite;
}

#to-next-step:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #000;
}

#to-next-step:disabled {
    opacity: 0.35;
    background: #94a3b8 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(26, 26, 26, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0);
    }
}

/* LINE Login Button (Header) */
.btn-login-line {
    background-color: #06C755;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Reservation History Button */
.header-history-btn {
    height: 41px !important;
    min-width: 120px;
    border-radius: 50px;
    padding: 0 16px;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ==========================================================================
   4. Header & User Profile
   ========================================================================== */

.header {
    padding: 20px 0 40px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.logo span {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-unmanned);
    margin-left: 8px;
    letter-spacing: 0.1em;
}

.system-version {
    font-size: 14px;
    background: #1a1a1a;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    margin-left: 15px;
    vertical-align: middle;
    font-weight: 700;
}

.header-right {
    height: 44px;
    display: flex;
    align-items: center;
}

.user-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-profile-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-user-profile-container {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 41px;
    min-width: 120px;
    max-width: 200px;
    padding: 0 12px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: #fff;
    box-sizing: border-box;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-user-profile-container:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.header-user-profile-container:active {
    transform: scale(0.98);
}

.header-user-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    display: none;
    flex-shrink: 0;
}

.header-user-icon.show {
    display: block;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    overflow: hidden;
    flex: 1;
}

.header-user-info-status {
    font-size: 8px;
    color: #06C755;
    font-weight: 700;
    white-space: nowrap;
}

.header-user-name-text {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.header-dropdown-icon {
    font-size: 10px;
    color: #999;
    flex-shrink: 0;
}

/* User Profile (Member Page style) */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

/* ==========================================================================
   5. Dropdown Menu & Navigation
   ========================================================================== */

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #ffffff !important;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.1s;
}

.menu-link:hover {
    background: #f8fafb;
    color: var(--primary-color);
}

.menu-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

.menu-link.danger {
    color: #e74c3c;
}

.menu-link.danger:hover {
    background: #fff5f5;
}

/* ==========================================================================
   6. Calendar Controls & Legend
   ========================================================================== */

.calendar-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.reservation-limit-status-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding-left: 5px;
}

.limit-note {
    font-size: 11px;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.02em;
}

.reservation-limit-status {
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: none;
}

.limit-text-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.limit-label {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.02em;
}

.limit-value {
    font-size: 18px;
    font-weight: 800;
    color: #0f766e;
    /* Teal accent */
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    padding: 0 2px;
}

.limit-value.limit-alert {
    color: #dc2626;
}




.legend-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.legend-item strong {
    font-size: 17px;
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.price-desc {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.5;
}

.price-highlight {
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(transparent 70%, rgba(230, 126, 34, 0.2) 70%);
}

.unmanned .price-highlight {
    background: linear-gradient(transparent 70%, rgba(52, 152, 219, 0.2) 70%);
}

.price-note-sub {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Legend Waitlist Note */
.legend-icon-bell {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-top: 4px;
}

.legend-text-booked {
    font-size: 14px;
    font-weight: 700;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    line-height: inherit;
}

.legend-note-micro {
    font-size: 11px;
    color: #94a3b8;
    margin-top: -6px;
    margin-bottom: 12px;
    padding-left: 26px;
    /* Align after the icon/dot */
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.dot.manned {
    background: var(--accent-manned);
}

.dot.unmanned {
    background: var(--accent-unmanned);
}

.dot.booked {
    background: #dcdde1;
}

/* Usage Guide */
.usage-link-container {
    position: relative;
    margin-top: 15px;
    padding-top: 10px;
}

.usage-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.2s ease;
}

.usage-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.usage-arrow {
    font-size: 1.2em;
}

.popup-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent-manned);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    animation: floating 2s infinite ease-in-out;
}

.popup-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 15px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--accent-manned);
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ==========================================================================
   7. Navigation & Instructions
   ========================================================================== */

.date-navigator-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.date-navigator {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.current-week {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    background: #f1f3f5;
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}



/* ==========================================================================
   8. Calendar Grid & Slots
   ========================================================================== */

.calendar-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 24px;
}

.calendar-wrapper {
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.calendar-grid {
    display: flex;
    touch-action: manipulation;
    /* ズームロールを許可 */
}

.time-col {
    width: 50px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 10;
    border-right: 1px solid var(--border-color);
}

.time-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    font-weight: 800;
    font-size: 13px;
    color: var(--primary-color);
}

.time-header-inner {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.time-header-month {
    font-size: 20px;
}

.time-header-unit {
    font-size: 11px;
}

.day-header {
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-bottom: 2px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    font-weight: 800;
    font-size: 13px;
    color: var(--text-main);
}

.day-header span {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.day-header.sun,
.day-header.sun span,
.day-header.holiday,
.day-header.holiday span {
    color: #e74c3c !important;
}


.day-header.sat,
.day-header.sat span {
    color: #3498db !important;
}

.day-col {
    flex: 1;
    border-right: 1px solid var(--border-color);
}

.time-slot-label {
    height: 30px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    background: #fff;
    gap: 1.5px;
    padding-top: 4px;
}

.time-slot-label .hour {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.slot {
    height: 30px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.1s;
    user-select: none;
    touch-action: manipulation;
    /* ✨アイコン用の右寄せ */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 3px;
}

.slot:nth-child(even) {
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.40);
}

/* 直前予約アイコンのスタイル */
.quick-icon {
    font-size: 14px;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    animation: shine-effect 2s infinite ease-in-out;
}

@keyframes shine-effect {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 予約済みスロットではアイコンを隠す */
.slot.booked .quick-icon {
    display: none;
}

@media (hover: hover) {
    .slot:hover {
        opacity: 0.8;
    }
}

.slot.booked {
    background: #eee;
    cursor: not-allowed;
    opacity: 1;
}

/* 遨�E�縺肴棧縺�E�濶�E�蛻�E��E� */
.slot.unmanned {
    background-color: var(--accent-unmanned);
}

.slot.manned {
    background-color: var(--accent-manned);
}

.day-col.beyond-limit {
    background-color: #f8f9fa !important;
    opacity: 0.6;
}

.day-col.beyond-limit .day-header {
    background-color: #e9ecef !important;
    color: #adb5bd !important;
}

.day-col.beyond-limit .slot {
    pointer-events: none;
    background-color: #f1f3f5 !important;
}

.slot.in-range {
    background: #2d3436 !important;
    opacity: 1 !important;
    color: #fff;
}

.slot.in-range.unmanned {
    background: #0055ff !important;
}

.slot.in-range.manned {
    background: #ff5500 !important;
}

/* ==========================================================================
   9. Selection Summary Area
   ========================================================================== */
/* Waitlist Styling */
.slot.booked {
    cursor: pointer;
    /* Clickable */
    position: relative;
    overflow: hidden;
}

.slot.booked::after {
    /* Optional: pattern to suggest "waiting" */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 5px,
            transparent 5px,
            transparent 10px);
    pointer-events: none;
}

.slot.waitlisted {
    position: relative;
}

/* 自分の予約を区別するスタイル */
.slot.my-booking {
    position: relative;
    cursor: default;
    pointer-events: none;
    /* キャンセル待ちを押せなくする */
}

/* 自分の予約（無人プラン） */
.slot.my-booking-unmanned {
    border-left: 3px solid #2563eb !important;
}

.slot.my-booking-unmanned::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 800;
    color: #1d4ed8;
}

/* 自分の予約（有人プラン） */
.slot.my-booking-manned {
    border-left: 3px solid #ea580c !important;
}

.slot.my-booking-manned::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 800;
    color: #c2410c;
}


.slot.waitlisted::before {
    content: '🔔';
    position: absolute;
    top: 50%;
    left: 4px;
    /* 左端から4pxの位置に配置 */
    transform: translateY(-50%);
    /* 垂直方向のみ中央合わせ */
    font-size: 13px;
    /* 少しだけ小さく調整 */
    z-index: 10;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    /* 白い影にして左端で見やすく */
    animation: bell-bounce-left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bell-bounce-left {
    0% {
        transform: translateY(-50%) scale(0);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes bell-bounce {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 41, 59, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}















/* Clickable time triggers in summary */
.time-picker-trigger {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    margin: 0 4px;
}

.time-picker-trigger:hover {
    background: var(--primary-color);
    color: #fff;
}

.time-separator {
    font-size: 20px;
    font-weight: 800;
    color: #94a3b8;
}

.badge-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 4px;
}


.segment-row {
    margin-bottom: 8px;
    padding-left: 12px;
}

.time-range-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.summary-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
}

.summary-tag.unmanned {
    background: var(--accent-unmanned);
}

.summary-tag.manned {
    background: var(--accent-manned);
}

.segment-note {
    font-size: 12px;
    font-weight: 500;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* Action Area (Warnings & Price) */
.summary-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    padding: 0 0 0 40px;
    margin: 0;
    align-self: stretch;
    border-left: 1px solid var(--border-color);
}



.unmanned-warning,
.simultaneous-booking-warning {
    background: transparent;
    border: none;
    color: #e53e3e;
    padding: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.simultaneous-booking-warning .warning-icon {
    font-size: 20px;
    margin-top: -2px;
}

.simultaneous-booking-warning .warning-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #c53030;
}

.simultaneous-booking-warning .warning-text p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}



/* ==========================================================================
   10. Reservation Form (Inputs & Flow)
   ========================================================================== */

.form-card {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 40px;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.05);
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
}

.form-actions-row {
    margin-top: 40px;
    display: flex;
    gap: 16px;
}

.form-actions-row .btn {
    flex: 1;
}

.confirm-alert {
    background: #fff9db;
    border: 2px solid #ffcc80;
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: #ffcc80;
        box-shadow: 0 0 0 0 rgba(255, 204, 128, 0.4);
    }

    70% {
        border-color: #ffa726;
        box-shadow: 0 0 0 10px rgba(255, 204, 128, 0);
    }

    100% {
        border-color: #ffcc80;
        box-shadow: 0 0 0 0 rgba(255, 204, 128, 0);
    }
}

.alert-icon {
    font-size: 24px;
}

.alert-text strong {
    display: block;
    color: #e65100;
    font-size: 16px;
    margin-bottom: 2px;
}

.alert-text p {
    margin: 0;
    font-size: 13px;
    color: #6d4c41;
    font-weight: 500;
}

/* ==========================================================================
   12. Completion Screen
   ========================================================================== */

.completion-card {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: #4caf50;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.check-icon {
    width: 40px;
    height: 20px;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
    transform: rotate(-45deg);
    margin-top: -5px;
}

.completion-header h2 {
    font-size: 28px;
    font-weight: 800;
}

.completion-msg {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.ticket-lock-row {
    padding: 0 24px 8px;
    background: #fff;
    border-bottom: none;
}

.ticket-lock-inner {
    background: #fff;
    padding: 20px 20px 4px;
    border-radius: 8px;
    border-left: none;
    color: var(--text-main);
    text-align: center;
    box-shadow: none;
}

.ticket-lock-instruction {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
    color: var(--text-main);
}

.ticket-lock-code {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent-unmanned);
    line-height: 1.2;
}

.ticket-lock-note {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 8px;
    margin-bottom: 0;
}



.completion-summary-box {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    margin-bottom: 40px;
}

.completion-summary-box h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.completion-ticket-mini {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 24px;
    text-align: left;
}

/* ==========================================================================
   13. Modals & Auth Modal
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeIn 0.3s ease-out;
    padding: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    width: 100%;
    max-width: 440px;
    padding: 0;
    position: relative;
    border-radius: 24px;
}

.auth-modal-content {
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.auth-modal-header {
    background: linear-gradient(135deg, #06C755 0%, #05a346 100%);
    padding: 50px 20px 40px;
    text-align: center;
    position: relative;
}

.auth-modal-icon-wrapper {
    background: white;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
}

.auth-modal-title {
    color: white;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-modal-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 20px 20px;
}

.auth-modal-body {
    padding: 32px 28px;
    background: white;
}

.auth-feature-list {
    margin-bottom: 30px;
}

.auth-feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.auth-feature-item.last {
    margin-bottom: 24px;
}

.auth-feature-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.auth-feature-text-group {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.4;
}

.auth-feature-desc {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.auth-note {
    text-align: center;
    margin-bottom: 12px;
}

.auth-note span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.btn-login-modal {
    background-color: #06C755;
    border: none;
    color: #fff;
    height: 64px !important;
    font-size: 18px;
    font-weight: 900;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(6, 199, 85, 0.25);
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(6, 199, 85, 0.3);
}

.btn-login-modal:active {
    transform: translateY(0);
}

.btn-modal-cancel {
    width: 100%;
    margin-top: 20px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-modal-cancel:hover {
    color: #4b5563;
}

/* ==========================================================================
   14. Utilities & Notifications
   ========================================================================== */

.hidden {
    display: none !important;
}

.hidden-important {
    display: none !important;
}

/* ==========================================================================
   17. Member Page Specific (Refactored from internal style)
   ========================================================================== */

.member-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px 80px;
}

.member-header-card {
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
    color: #fff;
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-header-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.member-header-card p {
    opacity: 0.8;
    font-size: 15px;
}

.list-title-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.reservation-list-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0;
    /* Modified */
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.2;
}

.list-title-header .reservation-limit-status-wrapper {
    margin-bottom: 0;
    padding: 0;
}

/* Modal / Overlay Styles */
.details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.details-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.details-card {
    background: #fff;
    width: 500px;
    max-width: 95%;
    border-radius: 20px;
    border: none !important;
    padding: 0;
    box-shadow: none;
    transform: translateY(20px);
    transition: transform 0.3s;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    min-height: 0;
}

.details-overlay.active .details-card {
    transform: translateY(0);
}

.details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-height: 85vh;
    width: 100%;
    max-width: 500px;
}

/* Modal Close Button */
.details-card .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.details-card .close-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.details-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    padding: 0 10px;
    width: 100%;
    margin-top: 0px;
    flex-shrink: 0;
}

/* Action Buttons */
.details-btn {
    flex: 1;
    max-width: 160px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    font-family: inherit;
}

.edit-btn {
    background-color: #1a2b4b;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.edit-btn:hover {
    background-color: #243b66;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* 編集確定（保存）ボタン - 成功を連想させる青系 */
.save-btn {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.save-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.save-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cancel-btn {
    background-color: #fff;
    color: #c05a4d;
    border: 1.5px solid #c05a4d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cancel-btn:hover {
    background-color: #fefefe;
    transform: translateY(-2px);
    border-color: #a84e43;
    color: #a84e43;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* 編集中止ボタン - ニュートラルなグレー系 */
.cancel-edit-btn {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cancel-edit-btn:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* 延長ボタン - オレンジ系グラデーション */
.extend-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.extend-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 152, 0, 0.4);
}

/* チェックアウトボタン - グリーン系グラデーション */
.checkout-btn {
    background: linear-gradient(135deg, #06C755, #05a346);
    color: white;
    box-shadow: 0 8px 24px rgba(6, 199, 85, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #05a346, #048b3c);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(6, 199, 85, 0.4);
}

/* チェックアウト内容修正ボタン - アンバー系 */
.edit-checkout-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-checkout-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}

#modal-content-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    border: none !important;
    /* 隠れた20pxの壁（犯人）を削除 */
    -webkit-overflow-scrolling: touch;
}

.btn-close-details {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-close-details:hover {
    background: #fff;
    color: #000;
}

.lock-display-area {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.lock-display-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.lock-display-code {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 4px;
    line-height: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-val {
    font-weight: 600;
    color: var(--text-main);
}

.cancel-section {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.btn-change-res {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    max-width: 160px;
}

.btn-cancel {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    max-width: 160px;
}

.btn-change-res:hover {
    background: #e2e8f0;
}

.btn-cancel:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.cancel-note {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

.btn-save-ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-save-ticket:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-save-ticket svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================================================
   18. Reusable Dynamic Component Styles (JS generated)
   ========================================================================== */

/* Lock PIN Code Display (Premium) */
.lock-pin-card {
    background: linear-gradient(135deg, var(--accent-unmanned), #2c3e50);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.lock-pin-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2.5px;
    opacity: 0.8;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.lock-pin-code {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 4px;
}

.lock-pin-note {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Centered Status / Loading Helpers */
.list-loading-msg,
.list-empty-msg {
    text-align: center;
    padding: 40px;
    color: #999;
}

.list-error-msg {
    text-align: center;
    padding: 40px;
    color: #ef4444;
}

.list-error-detail {
    font-size: 10px;
}


/* ==========================================================================
   15. Member & Admin Dashboard Components
   ========================================================================== */

.reservation-item.ticket-style {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.reservation-item.ticket-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.reservation-item.ticket-style.finished,
.reservation-item.ticket-style.cancelled {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.8;
}





#reservation-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}







/* Admin Table */


table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 12px;
}

.clickable {
    cursor: pointer;
}



/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(33, 33, 33, 0.9);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Completion adjustments */
.completion-card .success-checkmark {
    margin-bottom: 24px;
}

/* Payment Warning Note for Unmanned Plan (Inline) */




.ticket-status-badge.editing {
    background-color: #2563eb !important;
    color: #fff !important;
}

/* 既決済額のグレーアウト */
.total-price.is-paid-gray {
    color: #94a3b8 !important;
    font-size: 20px !important;
}

/* --- 予約リストのセクション見出し --- */
.list-section-header {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 24px 0 16px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.list-section-header.history-header {
    border-left-color: #94a3b8;
    color: #64748b;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    background: transparent;
    border-radius: 0;
    width: 100%;
}

/* --- 過去履歴折りたたみ --- */
.history-accordion {
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.history-accordion summary {
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    width: 100%;
    margin: 0;
    transition: all 0.2s;
}

.history-accordion summary:hover {
    background: #f1f5f9;
}

.history-accordion summary::-webkit-details-marker {
    display: none;
}

.history-accordion[open] summary {
    margin-bottom: 24px;
}

.history-accordion summary::before {
    content: '▶';
    font-size: 10px;
    transition: transform 0.2s;
}

.history-accordion[open] summary::before {
    transform: rotate(90deg);
}

.reservation-item.ticket-style.past-item {
    opacity: 0.6;
    border-color: #f1f5f9;
    background: #fafafa;
}

.reservation-item.ticket-style.past-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    background: #fff;
}

/* --- キャンセルステータス別デザイン --- */

/* 取消（通常キャンセル） */
.status-cancelled,
.ticket-status-badge.cancelled {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: none !important;
}

/* 直前（直前キャンセル） */
.status-cancelled-late,
.ticket-status-badge.late-cancel {
    background: #fff1f0 !important;
    color: #cf1322 !important;
}

/* 無断（無断キャンセル） */
.status-cancelled-noshow,
.ticket-status-badge.noshow {
    background: #262626 !important;
    color: #ff4d4f !important;
    border: 2px solid #ff4d4f !important;
}

/* 編集モードのレイアウト：横並び（縮小防止） */




/* 警告ボックスの安定化（スペースを予約） */
#edit-warning-box {
    min-height: 64px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    margin: 5px 0 15px;
    text-align: center;
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

#edit-warning-box.show {
    visibility: visible;
}

/* 警告ボックスの状態別スタイル */
#edit-warning-box.warning-error {
    background-color: #fff1f0;
    color: #e74c3c;
    border-color: #ffa39e;
}

#edit-warning-box.warning-info {
    background-color: #e6f7ff;
    color: #1890ff;
    border-color: #91d5ff;
}

#edit-warning-box.warning-success {
    background-color: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

#edit-warning-box.warning-neutral {
    background-color: #f0f0f0;
    color: #666;
    border-color: #ccc;
}

/* 追加チャージ行の装飾 */


.ticket-v {
    font-size: 10px;
    opacity: 0.4;
    font-weight: 400;
    margin-left: 5px;
    vertical-align: middle;
}

#target-ticket {
    margin-bottom: 0 !important;
}

/* Cancellation Reason Modal Style */
.reason-option:has(input:checked) {
    border-color: #2563eb !important;
    background-color: #eff6ff !important;
    box-shadow: 0 0 0 1px #2563eb;
}

#emergency-reason-text:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}



/* Modal Overlay for Confirm and Cancel (Fallback) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.confirm-box {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 400px;
}

.modal-overlay.active .confirm-box {
    transform: scale(1);
}

/* 予約リストのユーティリティ */
.list-divider {
    margin-top: 40px;
}

.history-accordion summary {
    list-style: none;
    cursor: pointer;
}

.history-accordion-header {
    margin-bottom: 10px;
}

.reservation-item-wrapper {
    cursor: pointer;
    margin-bottom: 16px;
}

.list-empty-msg {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
}

#reason-selection-area.hidden {
    display: none;
}

.res-cancel-actions {
    display: none;
    flex: 1;
    gap: 12px;
    justify-content: center;
}

.res-cancel-actions.show {
    display: flex;
}

.edit-op-btn {
    max-width: none;
    flex: 1;
}

.expired-notice {
    display: none;
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 10px;
    font-weight: 500;
}

.expired-notice.show {
    display: block;
}

/* 確認モーダルの装飾 */
.confirm-modal-title {
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.confirm-modal-body-text {
    text-align: left;
    font-size: 14px;
    margin-bottom: 20px;
}

.confirm-body-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.text-success {
    color: #10b981;
}

.text-error {
    color: #ef4444;
}

.text-primary {
    color: #2563eb;
}

/* チケット内レイアウトクラス */
.ticket-user-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ticket-name-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ticket-date-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.summary-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.summary-tag.edit-mode-tag {
    margin: 4px 0 0 0;
    width: 60px;
    text-align: center;
    display: block;
    font-size: 10px;
    padding: 2px 0;
}

/* 予約サマリーボックス共通 */
.res-summary-box,
.cancel-policy-note {
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
    text-align: left;
    border-style: solid;
    border-width: 1px 1px 1px 4px;
}

.res-summary-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.res-summary-box p {
    margin: 0 !important;
    padding: 0;
    line-height: 1.4;
}

/* 状態別カラー */
.res-summary-box.cancel-target {
    background: #f8fafc;
    border-color: #cbd5e1;
    border-left-color: #64748b;
}

.res-summary-box.update-target {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left-color: #2563eb;
}

.policy-manned {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
    color: #92400e;
}

.policy-unmanned {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-left-color: #3b82f6;
    color: #475569;
}

/* サマリー内部要素 */
.summary-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin: 0;
}

.cancel-target .summary-label {
    color: #64748b;
}

.update-target .summary-label {
    color: #1d4ed8;
}

.summary-datetime {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.01em;
    margin: 0;
}

.cancel-target .summary-datetime {
    color: #1e293b;
}

.update-target .summary-datetime {
    color: #1e3a8a;
}

/* 予約変更時の元時間表示 */
.original-time-display {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    padding: 0 4px;
}

.time-stepper-vertical-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.original-time-display .label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.original-time-display .value {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

.summary-plan-badge-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.cancel-policy-note p {
    margin: 0;
    line-height: 1.5;
    padding: 0;
}

.final-total-label.error-red {
    color: #e74c3c;
    font-weight: 800;
}

.total-price.error-red {
    color: #e74c3c;
    font-size: 24px;
}

/* Brush up confirm buttons */
.confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.confirm-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

.confirm-btn.cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.confirm-btn.cancel:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.confirm-btn.ok {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.confirm-btn.ok:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.confirm-btn.ok:active {
    transform: translateY(0);
}

.confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.stepper-btn:disabled {
    opacity: 0.3;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}





/* 時刻表示の等幅フォント設定 */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}



/* ==========================================================================
   19. Responsive Design (Mobile First Adjustments)
   ========================================================================== */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
        /* 10px padding on all sides, ensuring 10px margin from screen edges */
    }

    /* Header optimization */
    .header {
        padding: 15px 0 10px;
        position: relative;
    }

    .header-inner {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .logo {
        font-size: 20px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .logo span:not(.system-version) {
        font-size: 10px;
        margin-left: 0;
    }

    .system-version {
        position: absolute;
        top: 5px;
        right: 10px;
        margin: 0;
        font-size: 10px;
        z-index: 100;
        background: #1a1a1a;
        color: #fff;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .header-right {
        width: 100%;
        justify-content: flex-end;
        height: auto;
    }

    .user-profile-wrapper {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    /* Legend Accordion (Only for manned/unmanned) */
    .legend-item.unmanned,
    .legend-item.manned {
        cursor: pointer;
        position: relative;
        padding-right: 35px;
        transition: background 0.2s ease;
    }

    .legend-item.unmanned .price-desc,
    .legend-item.manned .price-desc {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    }

    .legend-item.is-open .price-desc {
        max-height: 200px;
        opacity: 1;
        margin-top: 10px;
    }

    .legend-item.unmanned::after,
    .legend-item.manned::after {
        content: '▼';
        position: absolute;
        right: 15px;
        top: 15px;
        font-size: 10px;
        color: #999;
        transition: transform 0.3s ease;
    }

    .legend-item.is-open::after {
        transform: rotate(180deg);
    }

    /* Calendar Grid optimization for scroll */
    .calendar-wrapper {
        overflow-x: auto;
        /* 讓ｪ繧�E�繧�E�繝ｭ繝ｼ繝ｫ險�E�蜿�E� */
        -webkit-overflow-scrolling: touch;
    }

    .calendar-grid {
        width: fit-content;
        /* 1騾�E�髢灘�繧偵�E�縺�E�縺九ｊ陦�E�遉ｺ(100px/譌･ 遞句�E��E�) */
        touch-action: manipulation;
        /* 邵�E�讓ｪ譁懊�E�繧�E�繧�E�繝ｭ繝ｼ繝ｫ繧定ｨ�E�蜿�E� */
    }

    .day-col {
        min-width: 70px;
        /* 繝槭せ繧貞､�E�縺阪�E�縺励※繧�E�繝��E�縺励�E�E��吶�E� */
    }

    /* 繝槭せ縺�E�鬮倥�E�E��貞､画峩 (萓�: 30px) */
    .slot,
    .time-slot-label {
        height: 40px;
        /* 縺薙！E��貞､画峩 */
    }

    /* 日付ナビゲーションの期間選択ボタンを非表示 */
    .date-navigator-container {
        display: none !important;
    }

    .time-col {
        width: 40px;
        z-index: 150;
        position: sticky;
        /* 霑ｽ蜉� */
        left: 0;
        /* 霑ｽ蜉� */
        background: #fff;
        /* 閭梧勹濶�E�縺後�E縺�E�→騾上￠縺�E�縺励∪縺�E��E�縺�E�蠢�E��E��E� */
    }

}

/* --- Month Grouping & Sticky Header Styles (Mobile Optimization) --- */
.month-group {
    display: flex;
    flex-direction: column;
    width: fit-content;
    position: relative;
}

/* 譛医�E�陦�E�遉ｺ縺吶�E�豌ｴ蟷�E�繝�E�E� */
.month-label-strip {
    height: 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 145;
    /* 譌･莉倥�E�繝�ム繝ｼ(z:140)繧医�E�荳翫∵凾髢灘�(z:150)繧医�E�荳�E� */
    width: 100%;
}

/* 繝�E�E�縺�E�荳�E�縺�E�讓ｪ縺�E�霑ｽ蠕薙☁E��九�E�1譛医阪↑縺�E�縺�E�譁E���E��E� */
.month-label-sticky {
    position: sticky;
    left: 40px;
    /* 譎る俣蛻�E�(50px)縺�E�縺吶�E�E���E�縺�E�蜷�E�逹 */
    line-height: 30px;
    font-size: 18px;
    font-weight: bold;
    padding-left: 12px;
    display: block;
    width: fit-content;
}

.days-flex-container {
    display: flex;
}

@media (max-width: 768px) {

    /* 蟾E荳翫E隗抵E域E髢楢EE縺E繝倥ャ繝繝ｼEE */
    .time-header {
        height: 100px !important;
        position: sticky;
        top: 0;
        left: 0;
        z-index: 200;
        /* 蜈ｨ縺E縺E繝倥ャ繝繝ｼ縺E譛蜑埼擁E*/
        background: #fff;
        border-right: 1px solid var(--border-color);
    }


    /* 譌･莉倥E繝ム繝ｼ縺E譎る俣EE2谿E逶EE峨E菴咲EE隱E謨E */
    .day-header {
        height: 60px !important;
        position: sticky;
        top: 40px;
        /* 譛医E繝EE(20px)縺E荳九E蜷E逹 */
        z-index: 140;
    }

    /* 譎る俣繝ｩ繝吶Ν縺E蛻励E讓ｪ譁E蜷代↓蝗E螳E */
    .time-col {
        position: sticky;
        left: 0;
        background: #fff;
        z-index: 150;
    }

    .time-header-inner {
        display: none !important;
    }

    .time-slot-label .minutes {
        display: none !important;
    }

    .form-card {
        padding: 24px 10px !important;
    }

    /* [ルール] すべての白い箱の内側の左右余白を 10px に統一（カレンダーを除く） */
    .card:not(.calendar-card),
    .reservation-item.ticket-style {
        padding: 10px !important;
    }

    .reservation-item.ticket-style {
        gap: 10px !important;
    }

    /* 【最優先】最終確認画面・完了画面：
       外枠を完全に無効化（パディングも0）し、中のチケットを画面端 10px の位置に配置する。
       ※下の一般ルールよりも後に書くことで、確実に 0 を適用する。 */
    #payment-section,
    #completion-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* 完了画面・確認画面の見出しテキストの左右余白を 10px に設定 */
    .completion-header,
    .completion-msg,
    .form-header {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .form-actions-row {
        flex-direction: column-reverse !important;
        gap: 12px !important;
        height: auto !important;
        margin-top: 30px !important;
    }

    /* 【最優先】モーダルが透明な壁として画面を塞ぐのを防止 */
    .modal,
    .details-overlay {
        padding: 0 10px !important;
        /* display: flex !important; は削除（hiddenクラスを優先させるため） */
    }

    /* 【復旧】アクションボタンの高さと横幅を 54px / 100% に固定 */
    .form-actions-row .btn,
    #to-payment-step,
    #back-to-calendar-from-info,
    #back-to-info-v2,
    #execute-reservation,
    .btn-full {
        width: 100% !important;
        height: 54px !important;
        min-height: 54px !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 詳細モーダルのカードだけを透明化（ログイン画面などは透明にしない） */
    .details-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        /* はみ出しを許可して閉じるボタンを見せる */
    }

    /* 閉じるボタンをチケットの真上に浮かせる */
    .btn-close-details {
        top: -40px !important;
        /* チケットより上の暗い背景部分に配置 */
        right: 0 !important;
        color: white !important;
        font-size: 36px !important;
        z-index: 100 !important;
        opacity: 0.8;
    }

    /* 詳細モーダル内のアクションボタンエリアの最適化 */
    .details-actions {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        /* チケットの端（10pxライン）にピッタリ合わせる */

        /* 縦積みに変更 */
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
        /* 幅いっぱいに引き伸ばす */
    }

    .res-cancel-actions {
        gap: 10px !important;
        width: 100% !important;
    }

    /* ボタン自体のサイズと形状の調整 */
    .details-btn,
    /* ← 全ボタン共通クラスを追加 */
    .btn-change-res,
    .btn-cancel,
    .edit-op-btn {
        height: 54px !important;
        border-radius: 12px !important;
        /* 角丸を少し抑えてプレミアム感 */
        max-width: none !important;
        font-size: 16px !important;
        flex: 1 !important;
    }
}





.summary-login-message p {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--primary-color);
    line-height: 1.3;
}

.summary-login-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-login-summary {
    background-color: #06C755;
    padding: 0 30px;
    height: 48px;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.2);
}

.btn-login-summary:hover {
    background-color: #05b54c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(6, 199, 85, 0.3);
}

@media screen and (max-width: 768px) {
    .summary-login-overlay {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 5px 0 10px;
    }

    .summary-login-message {
        align-items: center;
    }

    .btn-login-summary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
    Top Login Alert
   ========================================================================== */
.login-alert-card {
    background: #fff;
    border-left: 5px solid #06C755;
    /* LINE Green */
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Summary Note/Warning Boxes */
.summary-note-box {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    border: 1px solid transparent;
}

/* Variant: Warning (Orange) */
.summary-note-box.warning {
    background-color: #fff4e5;
    border-color: #ffcc80;
    color: #e65100;
}

/* Variant: Info/Benefit (Teal) */
.summary-note-box.info {
    background-color: #f0fdfa;
    border-color: #ccfbf1;
    color: #0f766e;
}

.summary-note-icon {
    font-size: 16px;
}

/* --- Modern Tooltip (Idea 3) --- */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
}

.tooltip-trigger {
    padding: 0 10px;
    height: 24px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: tooltip-pulse 3s infinite ease-in-out;
}

.tooltip-trigger-icon {
    width: 14px;
    height: 14px;
    background: #64748b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.tooltip-trigger-label {
    white-space: nowrap;
}

.tooltip-container:hover .tooltip-trigger {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tooltip-container:hover .tooltip-trigger-icon {
    background: #fff;
    color: var(--primary-color);
}

@keyframes tooltip-pulse {

    0%,
    100% {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: scale(1.03);
        border-color: #cbd5e1;
    }
}

.tooltip-content {
    visibility: hidden;
    width: 260px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: left;
    border-radius: 12px;
    padding: 16px;
    position: absolute;
    z-index: 2000;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .reservation-limit-status {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .tooltip-container {
        margin-left: 0;
    }
}

.tooltip-title {
    display: block;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 6px;
}

.tooltip-bold {
    font-weight: 800;
    color: #fff;
}

.tooltip-alert {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    color: #ffb74d;
    /* 警告色のオレンジ */
    font-weight: 700;
    font-size: 11px;
}

.tooltip-content small {
    display: block;
    opacity: 0.8;
    margin-top: 8px;
    font-size: 11px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tooltip-content {
        left: auto;
        right: -40px;
        transform: translateX(0) translateY(10px);
        width: 240px;
    }

    .tooltip-content::after {
        left: auto;
        right: 43px;
        margin-left: 0;
    }

    .tooltip-container:hover .tooltip-content {
        transform: translateX(0) translateY(0);
    }
}

.login-alert-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    border-radius: 50%;
    color: #06C755;
    flex-shrink: 0;
}

.login-alert-text {
    flex: 1;
    min-width: 200px;
}

.login-alert-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.login-alert-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-login-line-alert {
    background-color: #06C755;
    color: white;
    font-weight: 700;
    padding: 0 30px;
    height: 50px;
    border-radius: 50px;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login-line-alert:hover {
    background-color: #05b54c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
}

@media (max-width: 768px) {
    .summary-note-box {
        align-self: center;
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .login-alert-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .login-alert-icon {
        margin: 0 auto;
    }

    .login-alert-text {
        width: 100%;
    }

    .btn-login-line-alert {
        width: 100%;
    }
}

/* ==========================================================================
    Mobile Member Page Alignment
   ========================================================================== */
@media screen and (max-width: 768px) {
    .member-container {
        padding: 0 0 80px !important;
        /* Remove horizontal padding, keep bottom padding */
        margin-top: 20px !important;
    }
}

/* Universal Access Key (RemoteLock) */
.ticket-lock-link-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.ticket-lock-link-instr {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.4;
}

.btn-lock-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
    line-height: 1;
}

.btn-lock-link:hover {
    background: #e2e8f0;
    color: #0056b3;
}

.btn-lock-link i {
    font-size: 12px;
}

/* Simple Date Row */
.summary-top-row-simple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.summary-date-text .date-main {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .summary-top-row-simple {
        gap: 8px;
    }

    .summary-date-text .date-main {
        font-size: 16px !important;
    }
}



/* Reservation Status Badge */
.calendar-status-badge {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    flex-wrap: wrap;
    /* 重要: 折り返し */
    align-items: center;
    gap: 15px;
    /* 月ごとの間隔 */
    line-height: 1.4;
    /* 古いスタイルのリセット */
    flex-direction: row;
    border-radius: 0;
}

.status-month-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    padding: 4px 0;
}

.status-month-label {
    font-weight: 700;
    font-size: 1.0rem;
    color: #333;
    margin-right: 0px;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

/* ラベルスタイル */
.status-label {
    font-size: 0.75rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1.2;
}

.status-label.manned {
    background: #fff3e0;
    color: #e67e22;
    /* --accent-manned */
    border: 1px solid #ffe0b2;
}

.status-label.unmanned {
    background: #e3f2fd;
    color: #3498db;
    /* --accent-unmanned */
    border: 1px solid #bbdefb;
}

.status-val {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.status-val.alert {
    color: #e74c3c;
}

.status-divider {
    color: #ddd;
    margin: 0 4px;
    /* 月の区切り線 */
    font-weight: 300;
    display: inline-block;
}

/* Mobile: 少し間隔を詰める */
@media (max-width: 480px) {
    .calendar-status-badge {
        gap: 8px 12px;
        /* 行間、列間 */
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .status-month-label {
        font-size: 0.9rem;
    }

    .status-month-group {
        gap: 8px;
    }

    /* Reservation Limit Status: Column Layout for Mobile */
    .list-title-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 30px;
    }

    .reservation-list-title {
        border-left: none;
        padding-left: 0;
        text-align: center;
        font-size: 20px;
    }

    .reservation-limit-status-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-bottom: 24px;
        /* Slightly more space below */
        padding-left: 0;
        /* Override PC padding */
    }

    .limit-value {
        font-size: 20px;
        /* Slightly larger on mobile for readability */
    }

    .limit-note {
        text-align: center;
        display: block;
        /* Ensure text-align works */
    }
}

/* --- About Page (Usage Guide) Styles --- */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-title {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.about-subtitle {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.step-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-content h3 i {
    color: var(--primary-color);
    font-size: 1.1em;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list li {
    position: relative;
    padding-left: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step-list li i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    margin-top: 3px;
    color: var(--primary-color);
}

.step-list li .text-manned {
    color: #d35400;
    font-weight: 700;
}

.step-list li .text-unmanned {
    color: #2980b9;
    font-weight: 700;
}

.step-list li .step-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 4px;
    vertical-align: middle;
    color: #fff;
    line-height: 1.2;
    transform: translateY(-1px);
    white-space: nowrap;
    /* テキストの折り返しを防ぐ */
    flex-shrink: 0;
    /* 親のフレックスボックスによる圧縮を防ぐ */
}

.tag-manned {
    background-color: #e67e22;
}

.tag-unmanned {
    background-color: #3498db;
}

.tag-pay {
    background-color: #95a5a6;
}

.step-list li strong {
    color: var(--primary-color);
    font-weight: 800;
}

.about-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.section-panel {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.section-panel.manned {
    border-top: 8px solid var(--accent-manned);
}

.section-panel.unmanned {
    border-top: 8px solid var(--accent-unmanned);
}

.section-panel h4 {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-footer {
    text-align: center;
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .about-container {
        padding: 40px 0;
        /* 横の余白をなくす */
    }

    .about-hero {
        margin-bottom: 0px;
        padding: 0 15px;
        /* テキストは内側に寄せる */
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-subtitle {
        font-size: 1rem;
    }

    /* 料金パネルを画面一杯に広げる */
    .about-sections {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    .section-panel {
        padding: 30px 15px;
        border-left: none;
        border-right: none;
        border-radius: 0;
        /* 横幅いっぱいに広げる */
    }

    .price-list {
        margin: 15px 0;
    }

    .price-val {
        font-size: 1.1rem;
    }

    /* STEPカードの調整 */
    .usage-steps {
        gap: 20px;
        padding: 0 15px;
    }

    .step-card {
        flex-direction: column;
        align-items: flex-start;
        /* 左揃えにして読みやすく */
        padding: 25px 20px;
        gap: 15px;
    }

    .step-num {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .step-content h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .step-list li {
        font-size: 0.9rem;
    }

    /* 機材紹介セクションの調整 */
    .about-equipment {
        padding: 0 15px;
    }

    .eq-grid {
        display: flex;
        overflow-x: auto;
        padding: 10px 15px 25px 15px;
        /* 内側に余白を作る */
        margin: 0 -15px 15px -15px;
        /* 外側を画面端まで広げる */
        scroll-snap-type: x mandatory;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .eq-card {
        min-width: 250px;
        max-width: 250px;
        scroll-snap-align: start;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        /* モバイルでの視認性向上 */
    }

    /* 注意書き・ポリシーの調整 */
    .about-policy,
    .about-notes {
        padding: 25px 20px;
        margin: 0 10px 30px 10px;
        border-radius: 12px;
        /* 少し丸みを抑えてスッキリ */
    }

    .price-detail {
        padding: 20px 15px;
        /* 料金詳細内の余白も削減 */
    }

    .policy-title,
    .notes-title {
        font-size: 1.3rem;
    }

    .notes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.price-value {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.price-value span {
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 2px;
}

.panel-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    line-height: 1.6;
}

.price-highlight-text {
    color: var(--accent-manned);
    font-weight: 800;
}

/* --- About Page Policy Section --- */
.about-policy {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
}

.policy-title,
.notes-title {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.policy-title i,
.notes-title i {
    font-size: 1rem;
    margin-right: 10px;
    vertical-align: middle;
}

.title-en {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    margin-bottom: -5px;
}

.policy-title {
    color: var(--text-main);
}

.policy-title i {
    color: #e67e22;
}

.notes-title {
    color: #c0392b;
}

.notes-title i {
    color: #c0392b;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-list li {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.policy-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.policy-list .policy-label {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: #e67e22;
    margin-bottom: 4px;
}

/* --- About Page Equipment Section --- */
.about-equipment {
    margin-top: 50px;
    margin-bottom: 50px;
}

.eq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.eq-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.eq-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eq-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.eq-card-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    margin: 0;
}

.eq-list-mini {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eq-list-mini li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.eq-list-mini li::before {
    content: '•';
    color: var(--primary-color);
}

.eq-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .eq-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        gap: 15px;
    }

    .eq-card {
        min-width: 260px;
        scroll-snap-align: center;
    }
}

.policy-list .policy-desc {
    display: block;
    padding-left: 5px;
}

/* --- About Page Old System Updates --- */
.about-old-updates {
    margin: 0px 15px 40px;
}

.update-card {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.05);
}

.update-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.update-card h3 i {
    color: var(--accent-manned);
}

.update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.update-list li:last-child {
    margin-bottom: 0;
}

.update-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-manned);
    font-size: 1.2rem;
    font-weight: 800;
}

.update-list li strong {
    color: var(--primary-color);
    font-weight: 800;
    margin-right: 4px;
}

/* --- About Page Notes Section --- */
.about-notes {
    background: #fffafa;
    border: 1px solid #ffeded;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.notes-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.note-item {
    font-size: 0.95rem;
}

.note-item h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-item p {
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- About Page Extended Styles --- */
.section-time {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.price-details {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.price-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.price-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.price-list span {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    background: linear-gradient(transparent 60%, rgba(230, 126, 34, 0.2) 60%);
    padding: 0 4px;
}

.unmanned .price-list span {
    background: linear-gradient(transparent 60%, rgba(52, 152, 219, 0.2) 60%);
}

.settlement-rule {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- About Page Price Details (Idea 2: Vitamin Colors) --- */
.section-time {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-desc {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.price-detail {
    padding: 25px;
    border-radius: 18px;
    margin-top: 15px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 有人（オレンジ系・コーヒーアイコン） */
.price-detail-manned {
    background-color: #FFF5EB;
    border-color: #e67e22;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.05);
}

.price-detail-manned h5 {
    color: #d35400;
}

.price-detail-manned .price-val {
    color: #e67e22;
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.2);
}

/* 無人（ブルー系・ヘッドホンアイコン） */
.price-detail-unmanned {
    background-color: #F0F9FF;
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.05);
}

.price-detail-unmanned h5 {
    color: #2980b9;
}

.price-detail-unmanned .price-val {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.price-detail h5 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.price-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    color: var(--text-main);
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list strong {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-val {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin: 0 2px;
}

.price-note {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ==========================================================================
   9. Login Page Refresh (Option 3: Retro Poster Style)
   ========================================================================== */

.login-poster-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 20px 0;
}

.login-poster {
    position: relative;
    width: 100%;
    max-width: 440px;
    background-color: #fcf9f2;
    /* Vintage Paper Color */
    background-image:
        radial-gradient(#dcd8c0 0.5px, transparent 0.5px),
        radial-gradient(#dcd8c0 0.5px, #fcf9f2 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border: 2px solid #2d3436;
    border-radius: 4px;
    /* Slightly sharp corners for poster feel */
    padding: 40px 30px;
    box-shadow:
        10px 10px 0px rgba(0, 0, 0, 0.05),
        20px 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.login-poster::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(45, 52, 54, 0.1);
    pointer-events: none;
}

.poster-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.poster-header {
    margin-bottom: 30px;
}

.poster-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: #b2bec3;
    margin-bottom: 8px;
}

.poster-title {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.poster-divider {
    width: 40px;
    height: 4px;
    background: #e67e22;
    /* Accent color */
    margin: 15px auto 0;
}

.poster-visual {
    padding: 20px 0;
    margin-bottom: 30px;
}

.visual-icon {
    font-size: 64px;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    animation: pulse-soft 3s infinite ease-in-out;
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.welcome-text {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.8;
    font-weight: 500;
}

.poster-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.guide-link-wrapper {
    margin-bottom: 5px;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.guide-link:hover {
    color: #e67e22;
    border-color: #1a1a1a;
}

/* Ticket-style LINE Login Button */
.btn-line-login-poster {
    display: flex;
    align-items: stretch;
    background-color: #06C755;
    color: #fff;
    padding: 0;
    height: 60px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-line-login-poster:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
}

.ticket-stub {
    width: 15px;
    background: #05b34d;
    position: relative;
    border-right: 2px dashed rgba(255, 255, 255, 0.3);
}

/* Rounded notches for ticket feel */
.ticket-stub::before,
.ticket-stub::after {
    content: '';
    position: absolute;
    left: -8px;
    width: 16px;
    height: 16px;
    background: #fcf9f2;
    /* Matches poster background */
    border-radius: 50%;
    z-index: 2;
}

.ticket-stub::before {
    top: -8px;
}

.ticket-stub::after {
    bottom: -8px;
}

.ticket-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
}

.login-note {
    font-size: 0.8rem;
    color: #8a6d3b;
    line-height: 1.4;
    background: #fef9c3;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px dashed #eab308;
    display: inline-block;
    position: relative;
    transform: rotate(-1deg);
    margin-top: 15px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.login-note::before {
    content: 'CHECK';
    position: absolute;
    top: -8px;
    right: 10px;
    background: #eab308;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.safari-note {
    color: #f39c12;
    font-size: 0.8rem;
}

/* Support Ticket Button */
.btn-support-ticket {
    margin-top: 15px;
    display: flex;
    align-items: stretch;
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 0;
    height: 50px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-support-ticket:hover {
    background-color: #bdc3c7;
    transform: translateY(-2px);
}

.btn-support-ticket .ticket-stub {
    width: 12px;
    background: #95a5a6;
    border-right: 2px dashed rgba(255, 255, 255, 0.5);
}

.btn-support-ticket .ticket-main {
    font-size: 0.95rem;
    font-weight: 700;
    gap: 8px;
}

.btn-support-ticket .ticket-main i {
    font-size: 1.1rem;
}

/* Support Modal / Guide */
.support-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.support-modal.active {
    display: flex;
}

.support-modal-content {
    background: #fcf9f2;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #1a1a1a;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.support-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
}

.support-modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 10px;
}

.support-guide-section {
    margin-bottom: 25px;
}

.support-guide-section h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #e67e22;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-guide-list {
    list-style: none;
    padding: 0;
}

.support-guide-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.support-guide-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.support-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #06C755;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.support-contact-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.4);
}

.error-highlight {
    animation: shake 0.5s ease-in-out;
    border: 2px solid #e74c3c !important;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .login-poster {
        padding: 30px 20px;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }

    .login-poster::before {
        display: none;
    }

    .poster-title {
        font-size: 1.8rem;
    }

    .ticket-stub::before,
    .ticket-stub::after {
        background: var(--bg-color);
        /* Matches mobile app background */
    }
}

/* ==========================================================================
   Support Hub (Help Button & Guide Modal)
   ========================================================================== */

/* Floating Trigger Button */
.support-hub-trigger {
    position: fixed;
    right: 20px;
    bottom: 100px;
    /* Above the summary bar if visible */
    width: 60px;
    height: 60px;
    background: var(--accent-manned);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(230, 126, 34, 0.1);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.support-hub-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    background: #f39c12;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.support-icon {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.support-label {
    font-size: 10px;
    font-weight: 800;
    margin-top: -2px;
}

/* Modal Content Customization */
.support-hub-content {
    background: #fff;
    border-radius: 30px 30px 0 0 !important;
    max-width: 500px;
    margin-top: auto !important;
    /* Forces to bottom on mobile */
    padding: 30px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 769px) {
    .support-hub-content {
        margin: auto !important;
        border-radius: 24px !important;
    }
}

.support-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 15px;
}

.support-hub-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.support-hub-header .close-btn {
    background: #f1f3f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
}

.support-hub-body h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-hub-body h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--accent-manned);
    border-radius: 2px;
}

/* Guide Steps */
.guide-steps {
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: #f8fafb;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.step-text p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Contact Section */
.guide-contact {
    text-align: center;
    background: #fff9f5;
    padding: 24px;
    border-radius: 20px;
    border: 2px dashed #ffdec9;
}

.guide-contact p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
}

.btn-line-contact {
    background: #06C755 !important;
    border: none !important;
    width: 100%;
    height: 54px !important;
    gap: 10px;
    font-size: 16px !important;
}

.btn-line-contact:hover {
    background: #05b34c !important;
}