/* ========================================
   戻るボタン
======================================== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-button:hover {
    color: #007BFF;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
}

.back-button:active {
    transform: scale(0.98);
}

.back-button svg {
    flex-shrink: 0;
}

/* ========================================
   基本スタイル
======================================== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding: 20px;
    max-width: 600px;
    margin: auto;
}

h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #007BFF;
    margin-top: 10px;
}

/* ========================================
   セクションコンテナ
======================================== */
.section-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 16px 0;
    color: #007BFF;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 8px;
}

/* ========================================
   フォーム要素
======================================== */
.input-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
    box-sizing: border-box;
    min-height: 44px;
}

.input-field:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* セレクトボックス */
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
    background-color: white;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='%23007BFF'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 35px;
}

select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* 時刻選択 */
.hour-half .flex {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.hour-half .flex .hour-half {
    font-weight: bold;
    margin: 0 10px;
}

.hour-half .flex select {
    font-size: 20px;
    box-sizing: border-box;
    padding: 10px 55px 10px 14px;
}

/* ========================================
   ホテル選択ボタン
======================================== */
.hotel-select-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 2px solid #007BFF;
    border-radius: 8px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.hotel-select-btn:hover {
    background: #f0f8ff;
}

.hotel-select-btn:active {
    transform: scale(0.98);
}

#dropoff-hotel-display,
#pickup-hotel-display {
    display: block;
    color: #666;
}

/* ホテル案内文 */
.hotel-guidance {
    margin: 10px 0 0 0;
    padding: 10px 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

/* ========================================
   バリデーションメッセージ
======================================== */
.validation-message {
    padding: 12px;
    margin: 16px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* 保管情報 */
.storage-info {
    background: #e3f2fd;
    border-left: 4px solid #007BFF;
    padding: 12px;
    margin-top: 16px;
    border-radius: 4px;
}

.storage-info p {
    margin: 8px 0;
    font-size: 14px;
}

.storage-fee {
    color: #d32f2f;
    font-weight: bold;
}

/* ========================================
   テーブル
======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

th, td {
    padding: 15px;
    text-align: center;
}

th {
    background-color:rgb(0, 116, 211);
    color: white;
}

td {
    border-bottom: 1px solid #ddd;
}

.quantity {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: 0.3s;
}

.quantity:focus {
    border-color: #007BFF;
    outline: none;
}

@media (max-width: 480px) {
    .quantity {
        width: 30px;
        padding: 8px 3px;
        font-size: 0.9rem;
    }
}

/* ========================================
   合計セクション
======================================== */
.total-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.total-section h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #007BFF;
}

#total-price {
    font-size: 2rem;
    font-weight: bold;
    color: #007BFF;
}

/* ========================================
   ボタン
======================================== */
button {
    background: linear-gradient(to right, #007BFF, #0056b3);
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

#checkout-button {
    margin-bottom: 20px;
}

#apply-coupon {
    width: auto;
    padding: 8px 16px;
    margin-top: 10px;
    background: #007BFF;
    font-size: 16px;
}

#apply-coupon:hover {
    background: #1976D2;
}

/* ========================================
   キャンセルポリシー
======================================== */
.cancel-policy {
    border: 1px solid #d93026;
    background: #ffd3d3;
    box-sizing: border-box;
    padding: 15px;
    width: 90%;
    margin: 20px auto;
    border-radius: 8px;
}

.cancel-policy-title {
    margin-top: 0;
    font-size: 15px;
    padding: 5px;
    background: #fff;
    text-align: center;
    color: #000000;
    font-weight: bold;
    border-radius: 8px;
}

.check-policy {
    text-align: center;
}

/* ========================================
   モーダル
======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-content {
    background: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #007BFF;
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: white;
    background: transparent;
    padding: 0;
    box-shadow: none;
    text-align: left;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 検索コンテナ */
.search-container {
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: white;
    padding-bottom: 10px;
    z-index: 10;
}

#hotel-search {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #007BFF;
    border-radius: 8px;
    box-sizing: border-box;
}

/* ホテルリスト */
.hotel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotel-item {
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.hotel-item:hover {
    background: #f0f8ff;
    border-color: #007BFF;
}

.hotel-item:active {
    transform: scale(0.98);
}

.hotel-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 16px;
}

/* ========================================
   Pikadayカレンダースタイル
======================================== */
.pika-single {
    box-sizing: border-box;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pika-table td,
.pika-table th {
    box-sizing: border-box;
    padding: 7px 0;
    text-align: center;
    max-width: 100%;
}

.pika-table th {
    color:#ffffff !important;
}

.pika-button {
    text-align: center !important;
    width: 90% !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
}

.pika-lendar {
    width: 95%;
    max-width: 100%;
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (min-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 600px;
        height: 80%;
        max-height: 700px;
        border-radius: 8px;
        margin: auto;
    }

    .section-container {
        padding: 24px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 8px;
    }

    .back-button {
        font-size: 13px;
        gap: 4px;
    }

    .back-button svg {
        width: 16px;
        height: 16px;
    }

    h2 {
        font-size: 1.3rem;
    }

    .input-field, button {
        font-size: 1rem;
        padding: 10px;
    }

    select {
        appearance: auto;
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        background-image: none;
        padding-right: 12px;
    }

    th, td {
        padding: 10px 8px;
    }

    table {
        font-size: 0.9rem;
    }

    .cancel-policy-title {
        font-size: 13px;
        padding: 10px;
    }

    .cancel-policy p {
        font-size: 14px;
    }

    .total-section h3 {
        font-size: 1.1rem;
    }

    #total-price {
        font-size: 1.8rem;
    }
}

@media (max-width: 414px) {
    th, td {
        padding: 7px 6px;
        font-size: 13px;
    }
}

@media (max-width: 395px) {
    th, td {
        padding: 5px 4px;
        font-size: 12px;
    }
}
