/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #e8eaf0;
    min-height: 100vh;
    /* display: flex; */
    align-items: flex-start;
    justify-content: center;
    /* padding: 40px 20px; */
    color: #333;
    line-height: 1.6;
}
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 1100px;
    padding: 40px 20px;
    margin: 0 auto;
}

/* フォームコンテナ */
.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* フォームヘッダー */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 流れバー */
.flow-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 40px;
    padding: 0 10px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.flow-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.flow-step-label {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
}

.flow-step.active .flow-step-num {
    background: #6c757d;
    color: white;
}

.flow-step.active .flow-step-label {
    color: #333;
    font-weight: 600;
}

.flow-step.completed .flow-step-num {
    background: #6c757d;
    color: white;
}

.flow-step.completed .flow-step-label {
    color: #666;
}

/* ②内容確認：商品選択後にクリック可能 */
.flow-step.step-enabled {
    cursor: pointer;
}

.flow-step.step-enabled .flow-step-num {
    background: #6c757d;
    color: white;
}

.flow-step.step-enabled .flow-step-label {
    color: #333;
    font-weight: 600;
}

.flow-step.step-enabled:hover .flow-step-num {
    background: #5a6268;
}

.flow-bar-line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: #e1e5e9;
    margin: 0 5px;
    margin-bottom: 24px;
}

.flow-bar-line.completed {
    background: #6c757d;
}

/* 商品グリッド */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 商品カード */
.product-card {
    display: flex;
    flex-direction: column;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.product-card:hover {
    border-color: #6c757d;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.2);
    transform: translateY(-3px);
}

.product-card-link {
    display: block;
    text-decoration: none;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* 数量コントロール */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #e1e5e9;
    background: #fafbfc;
}

.qty-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.qty-btn:hover {
    background: #e8ecf0;
    border-color: #6c757d;
}

.qty-num {
    min-width: 28px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.product-info {
    padding: 10px 14px;
    border-top: 1px solid #e1e5e9;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.product-price {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 4px;
}

/* 注文内容サマリー */
.order-summary-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    margin-top: 24px;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.summary-empty {
    color: #999;
    font-size: 0.9rem;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.summary-table thead th {
    text-align: left;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    border-bottom: 2px solid #e1e5e9;
}

.summary-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.summary-table tfoot .summary-qty-row td {
    padding: 12px 12px 6px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    border-top: 2px solid #e1e5e9;
}

.summary-table tfoot .summary-total-row td {
    padding: 12px 12px;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    border-top: 2px solid #e1e5e9;
    text-align: left;
}

.summary-table tfoot .summary-total-row td:last-child {
    color: #333;
    font-size: 1.1rem;
}

.summary-table tfoot .summary-tax-row td {
    padding: 6px 12px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.summary-table tfoot .summary-grand-row td {
    padding: 12px 12px;
    font-weight: 700;
    font-size: 1.15rem;
    color: #333;
    border-top: 2px solid #333;
}

/* レスポンシブ: SP 2列 */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .form-container {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
.about_shipping_fee {
    text-align: right;
    font-size: 12px;
}

/* 注文を確認するボタン */
.confirm-btn-wrap {
    margin-top: 20px;
    text-align: center;
}

.btn-confirm {
    padding: 14px 40px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-confirm:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-confirm:disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}

/* ご注文内容セクション */
.order-detail-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    margin-top: 24px;
}

.delivery-form {
    display: grid;
    gap: 10px;
}

.delivery-note {
    font-size: 0.9rem;
    color: #555;
}

.delivery-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
}

.delivery-form label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.required-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f3d7da;
    color: #8b1f2b;
    font-size: 0.75rem;
    line-height: 1.4;
    vertical-align: middle;
}

.delivery-form input,
.delivery-form select,
.delivery-form textarea {
    width: 100%;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
}

.delivery-form input:focus,
.delivery-form select:focus,
.delivery-form textarea:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.15);
}

.notice-box {
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #fafbfc;
}

.notice-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.notice-box p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 6px;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.agreement-check {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.agreement-check input {
    margin-top: 4px;
    width: 6%;
}

.delivery-submit-wrap {
    margin-top: 10px;
    text-align: center;
}

.zip-candidate-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: -4px;
}

.site-footer {
    margin-top: 24px;
    width: 100%;
}

.site-footer-inner {
    background: #222222;
    padding: 18px 22px;
    color: #a1a1a1;
}

.site-footer-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.site-footer-copy {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #c8c8c8;
}

@media (max-width: 768px) {
    .order-detail-section {
        padding: 20px;
    }

    .site-footer-inner {
        padding: 16px;
    }
}
