/* 社用車予約システム - スタイルシート */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
}

.container {
    max-width: 448px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header h1 {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
}

.header p {
    color: #d1fae5;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    text-align: center;
}

.main-content {
    padding: 1rem;
}

.week-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
}

.week-btn {
    padding: 0.5rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.week-btn:hover {
    background-color: #e5e7eb;
}

.week-display {
    font-weight: bold;
    color: #1f2937;
}

.booking-type-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1rem;
    margin-bottom: 1rem;
}

.booking-type-section h3 {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.booking-type-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-type-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    font-family: inherit;
}

.booking-type-btn.daily {
    background-color: #eff6ff;
    border-color: #c3ddfd;
    color: #1e40af;
}

.booking-type-btn.daily:hover {
    background-color: #dbeafe;
}

.booking-type-btn.multiday {
    background-color: #fff7ed;
    border-color: #fed7aa;
    color: #ea580c;
}

.booking-type-btn.multiday:hover {
    background-color: #ffedd5;
}

.booking-type-title {
    font-weight: bold;
}

.booking-type-desc {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.date-section h2 {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.date-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.date-card {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-card.selectable {
    cursor: pointer;
    transition: all 0.2s;
}

.date-card.selectable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.date-card.selectable:active {
    transform: scale(0.98);
}

.date-card.available {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.date-card.busy {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.date-card.selected {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.date-card.in-range {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #86efac;
}

.date-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-text .main-date {
    font-weight: bold;
    font-size: 1.125rem;
}

.date-text .full-date {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}

.date-text .status {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.holiday-label {
    color: #ef4444;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.back-btn {
    margin-right: 0.75rem;
    padding: 0.5rem;
    color: #4b5563;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
}

.selection-summary {
    background-color: #eff6ff;
    border: 1px solid #c3ddfd;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.selection-summary.green {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.selection-summary .title {
    font-weight: 500;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.selection-summary.green .title {
    color: #15803d;
}

.selection-summary .detail {
    color: #1d4ed8;
}

.selection-summary.green .detail {
    color: #166534;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section label {
    display: block;
    color: #374151;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-family: inherit;
}

.form-input:focus {
    border-color: #10b981;
    outline: none;
}

.form-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn {
    flex: 1;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.95);
}

.btn-secondary {
    border: 2px solid #d1d5db;
    color: #374151;
    background: white;
}

.btn-primary {
    background-color: #10b981;
    color: white;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    background-color: #10b981;
    color: white;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: inherit;
}

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

.footer {
    padding: 1rem;
    background-color: #f3f4f6;
    text-align: center;
    font-size: 0.75rem;
    color: #4b5563;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* レスポンシブデザイン */
@media (max-width: 640px) {
    .container {
        max-width: 100%;
        margin: 0;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .form-input {
        font-size: 1rem;
    }
}