/* ================================================
   テイクアウト予約ページ - 専用スタイル
   既存サイト (Rhythm テーマ) との統一感を維持
   ================================================ */

/* -- ページ全体 -- */
.takeout-page {
    color: #111;
    font-family: 'Open Sans', arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}

/* -- ナビゲーション -- */
.takeout-nav {
    background: rgba(17, 17, 17, 0.95);
    padding: 14px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.takeout-nav .nav-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.takeout-nav .logo img {
    height: 30px;
}

.takeout-nav .nav-links a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-family: Dosis, arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    margin-left: 25px;
    transition: color .2s;
}

.takeout-nav .nav-links a:hover {
    color: #fff;
}

/* -- ヒーローセクション -- */
.takeout-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 140px 0 80px;
    text-align: center;
}

.takeout-hero h1 {
    font-family: Dosis, arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
}

.takeout-hero p {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* -- セクション -- */
.takeout-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.takeout-section-title {
    font-family: Dosis, arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #111;
}

.takeout-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #111;
    margin: 12px auto 0;
}

/* -- 商品カード -- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .3s, transform .2s;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-card .product-info {
    padding: 18px 20px;
}

.product-card .product-name {
    font-family: Dosis, arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #111;
}

.product-card .product-desc {
    color: #999;
    font-size: 12px;
    margin: 0 0 10px;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px;
}

.product-card .product-price span {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.product-card .quantity-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card .qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 2px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    color: #111;
    line-height: 1;
}

.product-card .qty-btn:hover {
    background: #eee;
}

.product-card .qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 5px;
    font-size: 14px;
}

/* Chrome等 spinnerを非表示 */
.product-card .qty-input::-webkit-inner-spin-button,
.product-card .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.product-card .qty-input[type=number] {
    -moz-appearance: textfield;
}

/* -- 合計欄 -- */
.order-summary {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 30px;
    text-align: center;
}

.order-summary .total-label {
    font-family: Dosis, arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.order-summary .total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.order-summary .total-amount small {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

/* -- フォームセクション (区切り線) -- */
.form-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

/* -- 予約フォーム -- */
.reservation-form {
    max-width: 900px;
    margin: 0 auto;
}

.reservation-columns {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.reservation-col-left {
    flex: 0 0 auto;
    min-width: 0;
}

.reservation-col-right {
    flex: 1;
    min-width: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: Dosis, arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #e41919;
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Open Sans', arial, sans-serif;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0l6 6 6-6z' fill='%23777'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* -- 送信ボタン -- */
.btn-reserve {
    display: block;
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: Dosis, arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
    margin-top: 10px;
}

.btn-reserve:hover {
    background: #333;
}

.btn-reserve:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* -- メッセージ -- */
.msg-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.msg-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* -- フッター -- */
.takeout-footer {
    background: #f4f4f4;
    padding: 30px 0;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.takeout-footer a {
    color: #777;
    text-decoration: none;
}

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
    .takeout-hero {
        padding: 110px 20px 50px;
    }

    .takeout-hero h1 {
        font-size: 20px;
        letter-spacing: 0.15em;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .takeout-section {
        padding: 30px 15px;
    }

    .takeout-nav .nav-links a {
        font-size: 10px;
        margin-left: 12px;
    }

    .takeout-nav .logo img {
        height: 24px;
    }

    .order-summary .total-amount {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .takeout-hero h1 {
        font-size: 17px;
    }

    .product-card .product-image {
        height: 160px;
    }
}

/* ================================================
   カレンダーウィジェット
   ================================================ */
.calendar-widget {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    max-width: 400px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1a1a2e;
    color: #fff;
}

.cal-title {
    font-size: 15px;
    font-weight: 600;
    font-family: 'Dosis', sans-serif;
    letter-spacing: 0.5px;
}

.cal-nav {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.cal-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 8px;
}

.cal-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #777;
    padding: 4px 0 8px;
    text-transform: uppercase;
}

.cal-weekday.sun {
    color: #c0392b;
}

.cal-weekday.sat {
    color: #2980b9;
}

.cal-cell {
    text-align: center;
    padding: 6px 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
    position: relative;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-cell.empty {
    cursor: default;
}

.cal-day {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* 選択可能な日のホバー */
.cal-cell[data-date]:hover {
    background: #f0f0f0;
}

/* 選択中 */
.cal-cell.selected {
    background: #1a1a2e;
    color: #fff;
}

.cal-cell.selected .cal-day {
    color: #fff;
}

/* 今日 */
.cal-cell.today .cal-day {
    font-weight: 700;
}

.cal-cell.today:not(.selected):not(.closed):not(.disabled) {
    border: 2px solid #1a1a2e;
}

/* 日曜・土曜 */
.cal-cell.sun .cal-day {
    color: #c0392b;
}

.cal-cell.sat .cal-day {
    color: #2980b9;
}

.cal-cell.selected.sun .cal-day,
.cal-cell.selected.sat .cal-day {
    color: #fff;
}

/* 範囲外（過去日・90日以降） */
.cal-cell.disabled {
    cursor: default;
}

.cal-cell.out-of-range .cal-day {
    color: #ccc;
}

/* 定休日 */
.cal-cell.regular-closed {
    background: #fde8e8;
    cursor: not-allowed;
}

.cal-cell.regular-closed .cal-day {
    color: #c0392b;
}

.cal-cell.regular-closed::after {
    content: '×';
    position: absolute;
    bottom: 1px;
    right: 4px;
    font-size: 9px;
    color: #e74c3c;
    font-weight: 700;
}

/* 臨時休業 */
.cal-cell.adhoc-closed {
    background: #f5f5f5;
    cursor: not-allowed;
}

.cal-cell.adhoc-closed .cal-day {
    color: #999;
    text-decoration: line-through;
}

/* 特別営業日（定休日だけど営業） */
.cal-cell.special-open {
    cursor: pointer;
}

.cal-cell.special-open::after {
    content: '◎';
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 8px;
    color: #27ae60;
    font-weight: 700;
}

/* 凡例 */
.cal-legend {
    display: flex;
    gap: 14px;
    padding: 8px 14px 10px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.legend-dot.regular {
    background: #fde8e8;
    border: 1px solid #e74c3c;
}

.legend-dot.adhoc {
    background: #f5f5f5;
    border: 1px solid #999;
}

.legend-dot.special {
    background: #e8f5e9;
    border: 1px solid #27ae60;
}

/* -- レスポンシブ -- */
@media (max-width: 768px) {
    .reservation-columns {
        flex-direction: column;
    }

    .reservation-col-left,
    .reservation-col-right {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .calendar-widget {
        max-width: 100%;
    }
}