html, body {
    background-color: #f8f9fa;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-tap-highlight-color: transparent;
    color: #333;
}
.body-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}
@media (min-width: 480px) {
    .body-wrapper {
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-around;
    padding: 24px 16px;
    background-color: #fff;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-basis: 0;
    flex-grow: 1;
}
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}
.step-label {
    font-size: 12px;
    margin-top: 8px;
    color: #9ca3af;
    font-weight: 500;
}
.step.active .step-circle {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.15);
}
.step.active .step-label {
    color: #3b82f6;
    font-weight: 700;
}
.step.completed .step-circle {
    background-color: #4ade80;
    color: white;
    border-color: #4ade80;
}
.step.completed .step-label {
    color: #6b7280;
}
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #f3f4f6;
    transform: translateX(50%);
    z-index: -1;
}
.step.completed:not(:last-child)::after {
    background-color: #4ade80;
}

/* Font Size Toggle */
.font-size-toggle button.active {
    background-color: #3b82f6;
    color: white;
}

/* Calendar & Time Slots */
.calendar-day {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}
.calendar-day-content {
    position: absolute;
    top: 2px; bottom: 2px; left: 2px; right: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.time-slot.available {
    background-color: #fff;
    border: 1px solid #d1d5db;
    color: #3b82f6;
    cursor: pointer;
}
.time-slot.few {
    background-color: #fef9c3;
    border: 1px solid #fcd34d;
    color: #ca8a04;
    cursor: pointer;
}
.time-slot.full {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Other custom styles */
.brand-logo { width: 220px; }
.brand-logo-landing { display: block; width: 180px; }

.main-button {
    background-color: #2A5ADE;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 14px;
    width: 100%;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.main-button:hover { background-color: #204ac8; }

.back-button {
    background-color: #3b82f6;
    color: white;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.btn-sub {
    background-color: #DEEDFF;
    color: #2A5ADE;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: background-color 0.2s;
}
.btn-sub:hover { background-color: #c8dfff; }

.btn-gray {
    background-color: #e5e7eb;
    color: #1f2937;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    transition: background-color 0.2s;
}
.btn-gray:hover { background-color: #d1d5db; }

/* --- 駐車場アイコン色 --- */
.parking-green {
    background-color: #dcfce7;
    color: #166534;
}
.parking-yellow {
    background-color: #fef9c3;
    color: #854d0e;
}
.parking-red {
    background-color: #fee2e2;
    color: #991b1b;
}

/* --- 年代判定画面カード --- */
.age-check-card {
    max-width: 400px;
    margin: 0 auto;
}

/* --- 保険情報フォームグループ --- */
.insurance-group {
    background-color: #f0f7ff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
}

/* --- 和暦セレクタ レスポンシブ --- */
.wareki-grid {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 400px) {
    .wareki-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* iOS select要素のテキスト表示を確保 */
.wareki-grid select {
    font-size: 16px !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

/* ============================================
   60代以上向け 文字サイズ拡大
   Tailwind CDN (v4) が動的生成するCSSに勝つため
   html.font-size-large で詳細度を確保 + !important 使用
   ============================================ */
html.font-size-large {
    font-size: 18px !important;
}
/* 見出し */
html.font-size-large h1,
html.font-size-large .text-3xl { font-size: 2.1rem !important; }
/* 予約番号は12桁＋ハイフンで長く、大きい文字モードだと改行するため少し小さめにする */
html.font-size-large #reservation-code { font-size: 1.8rem !important; }
html.font-size-large h2,
html.font-size-large .text-2xl { font-size: 1.7rem !important; }
html.font-size-large h3,
html.font-size-large .text-xl { font-size: 1.4rem !important; }
/* 本文・ラベル（Tailwindの text-sm, text-base 等を上書き） */
html.font-size-large .text-sm { font-size: 1rem !important; }
html.font-size-large .text-xs { font-size: 0.875rem !important; }
html.font-size-large .text-base { font-size: 1.15rem !important; }
html.font-size-large .text-lg { font-size: 1.3rem !important; }
html.font-size-large p,
html.font-size-large label,
html.font-size-large span,
html.font-size-large a,
html.font-size-large div { font-size: inherit !important; }
/* フォーム要素 */
html.font-size-large input,
html.font-size-large select,
html.font-size-large textarea {
    font-size: 1.1rem !important;
    padding: 0.85rem !important;
}
html.font-size-large button {
    font-size: 1.1rem !important;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}
/* 余白調整 */
html.font-size-large .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
html.font-size-large .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
/* モバイル: 予約番号(#reservation-code)を1.2remにして1行に収める（text-3xl=1.875remだと折り返すため） */
@media (max-width: 480px) {
    #reservation-code { font-size: 1.2rem !important; }
    html.font-size-large #reservation-code { font-size: 1.5rem !important; }
}
