/* ==========================================================
   仏光殿 ご供花・供物注文サイト - 統合スタイルシート
   
   ■ 構成
   1. 変数定義 (CSS Custom Properties)
   2. リセット・ベース
   3. ヘッダー（共通）
   4. ステップナビ - 注文フロー（6ステップ）
   5. ステップナビ - カートフロー（4ステップ）
   6. レイアウト・ヒーロー・カード
   7. ボタン
   8. フォーム部品
   9. 会館選択ページ
   10. 葬儀情報ページ
   11. 商品選択ページ
   12. カートページ
   13. お客様情報ページ
   14. 決済ページ
   15. 注文確認ページ
   16. 注文完了ページ
   17. 電話サポート・フッター（共通）
   18. レスポンシブ
   ========================================================== */

/* ==========================================================
   1. 変数定義
   ========================================================== */
:root {
    /* Color Palette */
    --color-bg-primary: #FAF9F6;
    --color-bg-secondary: #FFFFFF;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-accent: #C5A059;
    --color-accent-hover: #B08D46;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(197, 160, 89, 0.1);
    --glass-blur: blur(12px);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Transitions */
    --transition-base: all 0.3s ease;

    /* Fonts */
    --font-serif: "Shippori Mincho", "Noto Serif JP", serif;
    --font-sans: "Inter", "Noto Sans JP", sans-serif;
}

/* ==========================================================
   2. リセット・ベース
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background decoration */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(232, 230, 225, 0.6) 0%, rgba(250, 249, 246, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -5%;
    left: -5%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, rgba(250, 249, 246, 0) 70%);
    z-index: -1;
    filter: blur(50px);
}

/* ==========================================================
   3. ヘッダー（共通）
   ========================================================== */
header {
    width: 100%;
    padding: var(--space-md) 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.header-nav {
    display: flex;
    gap: var(--space-md);
}

.header-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: var(--transition-base);
}

.header-nav a:hover {
    color: var(--color-accent);
}

/* ==========================================================
   4. ステップナビ - 注文フロー（6ステップ）
   ========================================================== */
.step-nav {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-sm) 5%;
}

.step-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.step.active .step-number {
    background: var(--color-accent);
    color: #FFFFFF;
}

.step-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.step.active .step-text {
    color: var(--color-text-main);
    font-weight: 700;
}

.step-container::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: rgba(197, 160, 89, 0.2);
    z-index: 0;
}

/* ==========================================================
   5. ステップナビ - カートフロー（4ステップ）
   ========================================================== */
.cart-step-nav {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-sm) 5%;
}

.cart-step-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cart-step {
    flex: 1;
    max-width: 200px;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cart-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-step.active .cart-step-number {
    background: var(--color-accent);
    color: #FFFFFF;
}

.cart-step.done .cart-step-number {
    background: var(--color-accent);
    color: #FFFFFF;
    opacity: 0.6;
}

.cart-step-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.cart-step.active .cart-step-text {
    color: var(--color-text-main);
    font-weight: 700;
}

.cart-step-container::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 15%;
    width: 70%;
    height: 1px;
    background: rgba(197, 160, 89, 0.2);
    z-index: 0;
}

/* ==========================================================
   6. レイアウト・ヒーロー・カード
   ========================================================== */
main {
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.hero-section h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text-main);
    letter-spacing: 0.1em;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-lg);
    box-shadow: var(--glass-shadow);
    margin-bottom: var(--space-lg);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    text-align: center;
}

.notice-list {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.notice-list li {
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: 1.5rem;
}

.notice-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-item {
    background: rgba(255, 255, 255, 0.3);
    padding: var(--space-md);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.info-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-accent);
}

.info-item p {
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.cta-container {
    text-align: center;
    margin-top: var(--space-lg);
}

/* ==========================================================
   7. ボタン
   ========================================================== */
.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: #FFFFFF;
    padding: 1.2rem 4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-primary.disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-text-muted);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #DDDDDD;
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background: #EEEEEE;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* <button> に .btn-* を当てたとき UA 枠などだけ消し、寸法・字組は .btn-* に任せる */
button.btn-primary,
button.btn-secondary {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: inherit;
}
button.btn-primary {
    border: none;
}

/* input.btn-* を <a>/<button> と同じ見た目にする */
input.btn-primary,
input.btn-secondary {
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    appearance: none;
    -webkit-appearance: none;
}
input.btn-primary {
    border: none;
}

/* ==========================================================
   8. フォーム部品
   ========================================================== */
.form-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: var(--space-lg);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-main);
}

.label-required {
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.label-optional {
    background: #CCCCCC;
    color: #FFFFFF;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.input-text, .select-box {
    padding: 0.8rem 1rem;
    border: 1px solid #DDDDDD;
    background: #FFFFFF;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
}

.input-text:focus, .select-box:focus {
    outline: none;
    border-color: var(--color-accent);
}

.input-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #FFFFFF;
    transition: var(--transition-base);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.input-field.error {
    border-color: #CC3333;
}

.error-message {
    font-size: 0.8rem;
    color: #CC3333;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.datetime-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.datetime-row input[type="date"] { flex: 2; }
.datetime-row select { flex: 1; }

.privacy-area {
    height: 100px;
    overflow-y: scroll;
    padding: var(--space-sm);
    background: #F9F9F9;
    border: 1px solid #EEEEEE;
    font-size: 0.75rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
}

.agreement-box {
    text-align: center;
    margin: var(--space-md) 0;
    font-size: 0.9rem;
}

.form-footer-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.refund-important {
    color: #A0522D;
    font-weight: 700;
}

/* Summary Table */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 0.9rem;
    background: transparent;
}

.summary-table th, .summary-table td {
    padding: 1rem;
    border: 1px solid #EEEEEE;
    text-align: left;
}

.summary-table th {
    background: rgba(197, 160, 89, 0.05);
    font-weight: 600;
    color: var(--color-text-main);
    width: 120px;
}

/* ==========================================================
   9. 会館選択ページ
   ========================================================== */
.selection-container {
    margin-top: var(--space-md);
    padding-bottom: var(--space-xl);
}

.region-section { margin-bottom: var(--space-lg); }

.region-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text-main);
    padding: var(--space-xs) var(--space-md);
    background: rgba(197, 160, 89, 0.1);
    border-left: 4px solid var(--color-accent);
    margin-bottom: var(--space-md);
    border-radius: 0 8px 8px 0;
}

.hall-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #EEEEEE;
}

.hall-item {
    background: transparent;
    border-bottom: 1px solid #EEEEEE;
    padding: var(--space-md) var(--space-sm);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
}

.hall-item:hover { background: rgba(197, 160, 89, 0.03); }
.hall-item.selected { background: rgba(197, 160, 89, 0.05); }

.select-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.hall-item.selected .select-indicator { border-color: var(--color-accent); }

.hall-item.selected .select-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: scaleUp 0.2s ease-out;
}

@keyframes scaleUp {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.hall-item-content {
    flex: 1;
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: var(--space-md);
}

.hall-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.hall-info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    gap: var(--space-lg);
}

.hall-phone {
    font-weight: 600;
    color: var(--color-text-main);
}

/* ==========================================================
   10. 葬儀情報ページ
   ========================================================== */
.hall-summary {
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid var(--color-accent);
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hall-summary-content h3 {
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.hall-summary-name {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-serif);
}

.hall-summary-details {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.info-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .info-panels {
        grid-template-columns: 1fr 1fr;
    }
}

.info-panel {
    background: #FFFFFF;
    padding: var(--space-md);
    border-radius: 12px;
    border: 1px solid #EEEEEE;
    font-size: 0.85rem;
}

.info-panel h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-bg-primary);
    padding-bottom: 4px;
}

.info-panel ul { padding-left: 1.2rem; }
.info-panel li { margin-bottom: 4px; }

/* ==========================================================
   11. 商品選択ページ
   ========================================================== */
/* ここに商品グリッド画像を配置: img/products/ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
    border-color: var(--color-accent);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-serif);
}

.bk-product-card-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.55;
}
.bk-product-card-desc--compact {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
}
.bk-product-card-desc p {
    margin: 0;
}
.bk-product-card-desc p + p {
    margin-top: 6px;
}
.bk-product-card-desc br {
    content: '';
}

.price-container {
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.price-row small {
    font-size: inherit;
    font-weight: inherit;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 80px;
    margin-bottom: 25px;
    font-family: var(--font-serif);
    border-left: 5px solid var(--color-accent);
    padding-left: 20px;
}

.category-title:first-of-type { margin-top: 0; }

.banner-box {
    margin-top: 80px;
    padding: 50px;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    text-align: center;
}

/* ==========================================================
   12. カートページ
   ========================================================== */
.cart-table-wrap {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.cart-table { width: 100%; border-collapse: collapse; }

.cart-table thead th {
    text-align: left;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    border-bottom: 2px solid rgba(197, 160, 89, 0.2);
    white-space: nowrap;
}

.cart-table tbody td {
    padding: 1.2rem;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: middle;
}

.cart-table tbody tr:last-child td { border-bottom: none; }

.cart-product-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.05rem;
}

.cart-product-detail {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.cart-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #EEEEEE;
}

.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-price { font-weight: 600; white-space: nowrap; }
.cart-subtotal { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }

.qty-control { display: flex; align-items: center; gap: 8px; }

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #DDDDDD;
    background: #FFFFFF;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    color: var(--color-text-main);
}

.qty-btn:hover {
    border-color: var(--color-accent);
    background: rgba(197, 160, 89, 0.05);
}

.qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.qty-input:focus { outline: none; border-color: var(--color-accent); }

.cart-action-btns { display: flex; flex-direction: column; gap: 8px; }

.btn-update {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
    white-space: nowrap;
}

.btn-update:hover { background: var(--color-accent-hover); }

.btn-delete {
    display: inline-block;
    padding: 6px 16px;
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
    white-space: nowrap;
}

.btn-delete:hover { color: #993333; border-color: #993333; }

.cart-total-area {
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.cart-total-label { font-size: 1.1rem; font-weight: 600; }

.cart-total-price {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.cart-total-price small { font-size: 0.9rem; font-weight: 400; }

.cart-notes {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.cart-notes ul { list-style: none; padding: 0; }

.cart-notes li {
    padding: 6px 0;
    padding-left: 1.5em;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cart-notes li::before {
    content: "※";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================
   13. お客様情報ページ
   ========================================================== */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-lg);
    align-items: start;
}

/* step3 お支払い：aside 無し（step2 と同じ main のみ・1カラム） */
.page-layout.page-layout--no-aside {
    grid-template-columns: 1fr;
}

.customer-form-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: var(--space-lg);
}

.form-section-title {
    font-family: var(--font-serif) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--color-text-main) !important;
    margin-bottom: var(--space-md) !important;
    padding-bottom: var(--space-xs) !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2) !important;
    line-height: inherit !important;
    background-color: transparent !important;
    height: auto !important;
    padding-left: 0 !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.postal-row { display: flex; gap: 12px; align-items: flex-start; }
.postal-row .input-field { max-width: 180px; }

.btn-address-search {
    padding: 0.85rem 1.5rem;
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-address-search:hover { background: var(--color-accent-hover); }

.email-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Order Summary Sidebar */
.order-summary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: var(--space-md);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 0.9rem;
}

.summary-row:last-child { border-bottom: none; }

.summary-label { color: var(--color-text-muted); font-weight: 500; min-width: 80px; }
.summary-value { text-align: right; font-weight: 600; color: var(--color-text-main); }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0 0;
    margin-top: var(--space-sm);
    border-top: 2px solid rgba(197, 160, 89, 0.3);
}

.summary-total-label { font-weight: 600; }

.summary-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

/* Welcart step2/3：div ベースのカード構造（step3 は aside 無しで同じ main クラス） */
#customer-info.bk-welcart-customer .bk-welcart-customer__main > form,
#delivery-info.bk-welcart-delivery .bk-welcart-customer__main > form {
    display: block;
}

#customer-info.bk-welcart-customer .customer-form-card .input-field,
#delivery-info.bk-welcart-delivery .customer-form-card .input-field {
    width: 100%;
}

/*
 * 別送先 #delivery_table：プラグインの #delivery-info #delivery_table input { width:50% } が
 * id が外側 div に付いたためカード内の input すべてに効く → 打ち消して全幅に。
 * 郵便番号（#zipcode）だけ .postal-row で幅を抑える。
 */
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack .customer-form-card .input-field,
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack .customer-form-card select.input-field,
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack .customer-form-card textarea.input-field {
    width: 100%;
    max-width: 100%;
}

#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack .postal-row input#zipcode {
    max-width: 180px;
    width: 100%;
    box-sizing: border-box;
}

/* 別送先がテーブルフォールバックのときも同様 */
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack table.customer_form input[type="text"],
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack table.customer_form input[type="tel"],
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack table.customer_form input[type="email"],
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack table.customer_form input[type="number"],
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack table.customer_form select,
#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack table.customer_form textarea {
    width: 100%;
    max-width: 100%;
}

#delivery-info.bk-welcart-delivery #delivery_table.bk-delivery-address-stack table.customer_form input#zipcode {
    max-width: 180px;
    width: auto;
}

/* payment-card 内のネストカードは余白のみ（二重ガラスを薄める） */
#delivery-info.bk-welcart-delivery .payment-card .customer-form-card.bk-welcart-delivery-nested-card {
    background: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-lg);
}

#delivery-info.bk-welcart-delivery .payment-form-area .bk-welcart-delivery-ship-card {
    margin-bottom: var(--space-lg);
}

/* step3 #time：ラベル上・入力下（step2 の form-group と同じ流れ） */
#delivery-info.bk-welcart-delivery #time.bk-welcart-delivery-ship-card .form-group {
    margin-bottom: var(--space-lg);
}

#delivery-info.bk-welcart-delivery #time .bk-welcart-field-cell {
    width: 100%;
}

#delivery-info.bk-welcart-delivery #time .bk-welcart-field-cell > select.input-field {
    width: 100%;
    max-width: 100%;
}

/* お届け先ラジオ・支払方法：会館選択（page-hall-selection）と同系 */
#delivery-info.bk-welcart-delivery .bk-welcart-payment-dl .bk-welcart-field-cell dl.hall-list--payment,
#delivery-info.bk-welcart-delivery .hall-list--delivery-flag {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #EEEEEE;
    margin: 0;
    width: 100%;
}

#delivery-info.bk-welcart-delivery .bk-delivery-flag-card .hall-list--delivery-flag {
    margin-top: 8px;
}

#delivery-info.bk-welcart-delivery .hall-payment-dt {
    margin: 0;
    padding: 0;
}

#delivery-info.bk-welcart-delivery label.hall-item--payment,
#delivery-info.bk-welcart-delivery label.hall-item--delivery-flag {
    position: relative;
    background: transparent;
    border-bottom: 1px solid #EEEEEE;
    padding: var(--space-md) var(--space-sm);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

#delivery-info.bk-welcart-delivery label.hall-item--payment:hover,
#delivery-info.bk-welcart-delivery label.hall-item--delivery-flag:hover {
    background: rgba(197, 160, 89, 0.03);
}

#delivery-info.bk-welcart-delivery label.hall-item--payment:focus-within,
#delivery-info.bk-welcart-delivery label.hall-item--delivery-flag:focus-within {
    outline: 2px solid rgba(197, 160, 89, 0.35);
    outline-offset: 1px;
}

#delivery-info.bk-welcart-delivery label.hall-item--payment:has(.hall-payment-input:checked),
#delivery-info.bk-welcart-delivery label.hall-item--delivery-flag:has(.hall-delivery-flag-input:checked) {
    background: rgba(197, 160, 89, 0.05);
}

#delivery-info.bk-welcart-delivery label.hall-item--payment .select-indicator,
#delivery-info.bk-welcart-delivery label.hall-item--delivery-flag .select-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

#delivery-info.bk-welcart-delivery label.hall-item--payment:has(.hall-payment-input:checked) .select-indicator,
#delivery-info.bk-welcart-delivery label.hall-item--delivery-flag:has(.hall-delivery-flag-input:checked) .select-indicator {
    border-color: var(--color-accent);
}

#delivery-info.bk-welcart-delivery label.hall-item--payment:has(.hall-payment-input:checked) .select-indicator::after,
#delivery-info.bk-welcart-delivery label.hall-item--delivery-flag:has(.hall-delivery-flag-input:checked) .select-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: scaleUp 0.2s ease-out;
}

/* ネイティブ radio は会館選択同様に隠し、indicator で表現 */
#delivery-info.bk-welcart-delivery .hall-payment-input,
#delivery-info.bk-welcart-delivery .hall-delivery-flag-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#delivery-info.bk-welcart-delivery .hall-item-content--payment,
#delivery-info.bk-welcart-delivery .hall-item-content--delivery-flag {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

#delivery-info.bk-welcart-delivery .hall-name--payment,
#delivery-info.bk-welcart-delivery .hall-name--delivery-flag {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
}

#delivery-info.bk-welcart-delivery label.hall-item--payment:has(.hall-payment-input:disabled) {
    cursor: not-allowed;
    opacity: 0.65;
}

#delivery-info.bk-welcart-delivery .hall-payment-disabled-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

#delivery-info.bk-welcart-delivery .hall-payment-dd {
    margin: 0;
    padding: 0 var(--space-md) var(--space-md) calc(22px + var(--space-md) * 2 + var(--space-sm));
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    border-bottom: 1px solid #EEEEEE;
}

#customer-info.bk-welcart-customer input.btn-address-search,
#customer-info.bk-welcart-customer .btn-address-search {
    padding: 0.85rem 1.5rem;
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

#customer-info.bk-welcart-customer input.btn-address-search:hover,
#customer-info.bk-welcart-customer .btn-address-search:hover {
    background: var(--color-accent-hover);
}

/*
 * Welcart usces_cart.css は #customer-info / #delivery-info 配下に
 * .customer_form input { width:50%; } や tr.inp1 input { width:82%; } など詳細度が高い。
 * ID + 追加クラスでプラグインより詳細度を上げてデザインの input / select に統一する。
 */
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table,
#delivery-info.bk-welcart-delivery table.customer_form {
    width: 100%;
    border-collapse: collapse;
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table th,
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table td,
#delivery-info.bk-welcart-delivery table.customer_form th,
#delivery-info.bk-welcart-delivery table.customer_form td {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-main);
    text-align: left;
    border: none;
    background: transparent;
    padding: 0;
    vertical-align: top;
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table th,
#delivery-info.bk-welcart-delivery table.customer_form th {
    font-weight: 600;
    padding: 12px 12px 6px 0;
    width: auto;
    max-width: 200px;
    white-space: normal;
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table td,
#delivery-info.bk-welcart-delivery table.customer_form td {
    padding: 0 0 var(--space-md);
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table th em,
#delivery-info.bk-welcart-delivery table.customer_form th em {
    color: var(--color-accent);
    font-style: normal;
    margin-right: 2px;
}

/* 姓・名・フリガナ：2カラム（プラグインの width:82% を打ち消し） */
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table tr.inp1 td.name_td,
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table tr#furikana_row td.name_td,
#delivery-info.bk-welcart-delivery table.customer_form#delivery_table tr.inp1 td.name_td,
#delivery-info.bk-welcart-delivery table.customer_form#delivery_table tr#furikana_row td.name_td {
    width: 50%;
    box-sizing: border-box;
    padding-right: 8px;
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table .name_td,
#delivery-info.bk-welcart-delivery table.customer_form#delivery_table .name_td {
    vertical-align: top;
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table .member_name,
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table .member_furigana,
#delivery-info.bk-welcart-delivery table.customer_form#delivery_table .member_name,
#delivery-info.bk-welcart-delivery table.customer_form#delivery_table .member_furigana {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

/* テキスト系・セレクト・テキストエリア（チェック・ラジオ・隠し・検索ボタンは除外） */
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input[type="text"],
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input[type="password"],
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input[type="email"],
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input[type="tel"],
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input[type="number"],
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table select,
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table textarea,
#delivery-info.bk-welcart-delivery table.customer_form input[type="text"],
#delivery-info.bk-welcart-delivery table.customer_form input[type="password"],
#delivery-info.bk-welcart-delivery table.customer_form input[type="email"],
#delivery-info.bk-welcart-delivery table.customer_form input[type="tel"],
#delivery-info.bk-welcart-delivery table.customer_form input[type="number"],
#delivery-info.bk-welcart-delivery table.customer_form select,
#delivery-info.bk-welcart-delivery table.customer_form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #FFFFFF;
    box-sizing: border-box;
    transition: var(--transition-base);
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input[type="checkbox"],
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input[type="radio"],
#delivery-info.bk-welcart-delivery table.customer_form input[type="checkbox"],
#delivery-info.bk-welcart-delivery table.customer_form input[type="radio"] {
    width: auto;
    max-width: none;
    margin-right: 6px;
    vertical-align: middle;
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input#search_zipcode,
#delivery-info.bk-welcart-delivery table.customer_form input#search_zipcode {
    width: auto;
    max-width: 12rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table input:focus,
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table select:focus,
#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table textarea:focus,
#delivery-info.bk-welcart-delivery table.customer_form input:focus,
#delivery-info.bk-welcart-delivery table.customer_form select:focus,
#delivery-info.bk-welcart-delivery table.customer_form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

#delivery-info.bk-welcart-delivery table.customer_form textarea.notes,
#delivery-info.bk-welcart-delivery #time textarea {
    min-height: 100px;
}

#customer-info.bk-welcart-customer table.customer_form.bk-welcart-customer-table select,
#delivery-info.bk-welcart-delivery table.customer_form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

#customer-info.bk-welcart-customer .button-group input.btn-primary,
#delivery-info.bk-welcart-delivery .button-group input.btn-primary {
    padding: 1.2rem 4rem;
}

/* ==========================================================
   14. 決済ページ
   ========================================================== */
.payment-panel { max-width: 680px; margin: 0 auto; }

.payment-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    margin-bottom: var(--space-lg);
}

.payment-card-header { text-align: center; margin-bottom: var(--space-lg); }

.payment-card-header h2 {
    font-family: var(--font-serif) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: var(--space-md) !important;
    line-height: inherit !important;
    background-color: transparent !important;
    height: auto !important;
    padding-left: 0 !important;
    color: inherit !important;
    border-bottom: none !important;
}

.card-brands {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 40px;
    background: #F8F8F8;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-brand.active {
    border-color: var(--color-accent);
    background: rgba(197, 160, 89, 0.05);
}

.payment-form-area {
    border-top: 1px solid #F0F0F0;
    padding-top: var(--space-md);
}

.input-card {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1.1rem;
    background: #FFFFFF;
    letter-spacing: 0.15em;
    transition: var(--transition-base);
}

.input-card:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.input-card.error { border-color: #CC3333; }

.expiry-cvc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.expiry-selects { display: flex; gap: 10px; align-items: center; }

.expiry-selects select {
    flex: 1;
    padding: 0.9rem 0.8rem;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #FFFFFF;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2rem;
    transition: var(--transition-base);
}

.expiry-selects select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.expiry-separator { font-size: 1.2rem; color: var(--color-text-muted); font-weight: 300; }
.input-cvc { max-width: 160px; letter-spacing: 0.3em; }

.cvc-help {
    margin-top: 8px;
    padding: 12px 16px;
    background: #F9F8F5;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.cvc-help strong { color: var(--color-text-main); }

.security-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-md);
    background: #F9F8F5;
    border: 1px solid #EEEEEE;
    border-radius: 10px;
    margin-bottom: var(--space-lg);
}

.security-icon { font-size: 1.8rem; flex-shrink: 0; }

.security-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.security-text strong { color: var(--color-text-main); }

/* ==========================================================
   15. 注文確認ページ
   ========================================================== */
.confirm-section {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.confirm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(197, 160, 89, 0.06);
    border-bottom: 1px solid #F0F0F0;
}

.confirm-section-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
}

.edit-link {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.edit-link:hover { color: var(--color-accent-hover); text-decoration: underline; }

.confirm-section-body { padding: var(--space-md); }

.confirm-table { width: 100%; border-collapse: collapse; }

.confirm-table th,
.confirm-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #F5F5F5;
    vertical-align: top;
}

.confirm-table tr:last-child th,
.confirm-table tr:last-child td { border-bottom: none; }

.confirm-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    width: 160px;
    white-space: nowrap;
}

.product-confirm-table { width: 100%; border-collapse: collapse; }

.product-confirm-table thead th {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 2px solid rgba(197, 160, 89, 0.15);
    text-align: left;
    white-space: nowrap;
}

.product-confirm-table thead th:last-child { text-align: right; }

.product-confirm-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #F5F5F5;
    vertical-align: middle;
}

.product-confirm-table tbody tr:last-child td { border-bottom: none; }

.product-name-cell { display: flex; align-items: center; gap: 14px; }

.product-confirm-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #EEEEEE;
    flex-shrink: 0;
}

.product-confirm-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-confirm-name { font-weight: 600; font-family: var(--font-serif); }

.product-confirm-detail {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.td-right { text-align: right; white-space: nowrap; }

.confirm-total {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(197, 160, 89, 0.06);
    border-top: 2px solid rgba(197, 160, 89, 0.2);
}

.confirm-total-final,
.confirm-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.confirm-total-breakdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-sm);
}

.confirm-total-label { font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.confirm-total-price { font-size: 1.8rem; font-weight: 700; font-family: var(--font-serif); white-space: nowrap; }

.confirm-breakdown-row .confirm-total-label {
    font-size: 1rem;
}
.confirm-breakdown-row .confirm-total-price {
    font-size: 1.2rem;
}

.message-preview {
    background: #FAFAF8;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    padding: var(--space-md);
    line-height: 2;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.order-notice {
    background: #FFF9F0;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 10px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.order-notice ul { list-style: none; padding: 0; }

.order-notice li {
    padding: 4px 0;
    padding-left: 1.5em;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.order-notice li::before {
    content: "※";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.btn-order {
    display: inline-block;
    background: var(--color-accent);
    color: #FFFFFF;
    padding: 1.4rem 5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-order:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.4);
}

/* Welcart confirm purchase buttons -> match design buttons */
#purchase_form .send {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin: 96px 0 80px;
    flex-wrap: wrap;
}

.send {
    text-align: center;
}

#purchase_form input.back_to_delivery_button,
#purchase_form input#back_button,
.back_to_delivery_button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #DDDDDD;
    background: transparent;
    color: var(--color-text-muted);
    border-radius: 50px;
    padding: 1.2rem 4rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: inherit;
}

#purchase_form input.checkout_button,
#purchase_form input#purchase_button {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: var(--color-accent);
    color: #FFFFFF;
    border-radius: 999px;
    padding: 1.4rem 5rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
}

#purchase_form input.checkout_button:hover,
#purchase_form input#purchase_button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.4);
}

#purchase_form input.back_to_delivery_button:hover,
#purchase_form input#back_button:hover {
    border-color: var(--color-accent);
    background: rgba(197, 160, 89, 0.08);
}

/* ==========================================================
   16. 注文完了ページ
   ========================================================== */
.complete-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: var(--space-lg);
}

.complete-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
    background: rgba(197, 160, 89, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    animation: gentleFadeIn 1.2s ease-out;
}

@keyframes gentleFadeIn {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.complete-heading {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.08em;
    animation: gentleFadeIn 1.2s ease-out 0.2s both;
}

.complete-sub {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    animation: gentleFadeIn 1.2s ease-out 0.4s both;
}

.complete-message {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 16px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    text-align: left;
    line-height: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    animation: gentleFadeIn 1.2s ease-out 0.6s both;
}

.complete-message p { margin-bottom: var(--space-sm); }
.complete-message p:last-child { margin-bottom: 0; }
.message-highlight { color: var(--color-text-main); font-weight: 600; }

.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-xl);
    animation: gentleFadeIn 1.2s ease-out 0.8s both;
}

.flow-step { text-align: center; flex: 0 0 auto; }

.flow-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 10px;
}

.flow-step-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.flow-arrow {
    font-size: 1.2rem;
    color: var(--color-accent);
    padding: 0 20px;
    margin-bottom: 20px;
}

.complete-cta {
    margin-bottom: var(--space-xl);
    animation: gentleFadeIn 1.2s ease-out 1s both;
}

/* Index page decoration */
.flower-decoration {
    position: absolute;
    top: 5rem;
    right: 0%;
    width: 300px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================
   17. 電話サポート・フッター（共通）
   ========================================================== */
.phone-support-box {
    background: #FFFFFF;
    margin-top: var(--space-md);
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.phone-support-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #003366;
    margin: 15px 0;
    white-space: nowrap;
}

.support-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

footer {
    text-align: center;
    padding: 2rem 5%;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ==========================================================
   18. レスポンシブ
   ========================================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; }
    .hall-item-content { grid-template-columns: 1fr; gap: 4px; }
    .hall-info { flex-direction: column; gap: 4px; }
    .hall-item { align-items: flex-start; }
    .select-indicator { margin-top: 4px; }
    .form-row { grid-template-columns: 1fr; }
    .confirm-table th { width: 100px; }
    .product-confirm-table thead { display: none; }
    .product-confirm-table tbody td { display: block; padding: 6px 16px; border-bottom: none; }
    .product-confirm-table tbody tr { border-bottom: 1px solid #F5F5F5; padding: 8px 0; display: block; }
    .td-right { text-align: left; }
    .cart-table thead { display: none; }
    .cart-table tbody tr { display: block; padding: var(--space-md) 0; border-bottom: 1px solid #F0F0F0; }
    .cart-table tbody td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: none; }
    .cart-table tbody td::before { content: attr(data-label); font-weight: 600; font-size: 0.85rem; color: var(--color-text-muted); min-width: 80px; }
    .cart-action-btns { flex-direction: row; justify-content: flex-end; }
}

@media (max-width: 600px) {
    .hero-section h1 { font-size: 1.8rem; }
    .glass-card { padding: var(--space-md); }
    .phone-support-number { font-size: 1.8rem; gap: 10px; }
    .flower-decoration { width: 150px; top: 0; }
    .expiry-cvc-row { grid-template-columns: 1fr; }
    .flow-diagram { flex-direction: column; gap: 10px; }
    .flow-arrow { transform: rotate(90deg); padding: 5px 0; margin-bottom: 0; }
}

/* BEGIN SP MOBILE FIXES */
@media (max-width: 768px) {
    /* Step alignment */
    .step { justify-content: flex-start !important; }
    .step-text { word-break: keep-all; font-size: 0.65rem; width: 100%; white-space: nowrap; line-height: 1.2; }
    .step-number { margin-bottom: 2px; }

    /* Button Layout */
    .button-group { 
        flex-direction: row !important; 
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 10px !important;
        margin: 20px 0 !important;
    }
    .btn-primary, .btn-secondary, .btn-order {
        padding: 0.8rem 0.5rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        flex: 1 1 50%;
        text-align: center;
        box-sizing: border-box;
    }

    /* 選択中の会館 */
    .hall-summary { flex-direction: column !important; align-items: flex-start !important; gap: 6px; }

    /* image upload stretch fix */
    .upload-box { flex-direction: column !important; }
    .upload-box > div { border-right: none !important; border-bottom: 1px solid #DDD !important; }
    .upload-box input[type="file"] { width: 100%; }

    /* Banner box */
    .banner-box { padding: 1.5rem 1rem !important; }
    .banner-box .btn-primary { 
        white-space: pre-wrap !important; 
        flex: none; 
        padding: 1rem !important; 
    }

    /* Form margins */
    main { padding: 0 15px !important; margin: 2rem auto !important; }
    .selection-container { padding: 0 !important; margin-top: 1rem !important; }
    
    /* Cart padding fix */
    .cart-product-cell { padding: 0 !important; }
    
    /* Wrap prevention */
    .confirm-total, .confirm-total-price, .cart-price, .cart-subtotal { white-space: nowrap !important; }
}

.sp-only { display: none; }
@media (max-width: 768px) {
    .sp-only { display: block; }
    br.sp-only { display: block; }
}

.table-pc { display: table; }
.table-sp { display: none; }
@media (max-width: 768px) {
    .table-pc { display: none !important; }
    .table-sp { display: table !important; width: 100%; border-collapse: collapse; margin-top: 10px; }
    .table-sp th, .table-sp td { display: block; width: 100%; box-sizing: border-box; padding: 10px; }
    .table-sp th { background: #F2F2F2 !important; border-bottom: none !important; }
    .table-sp td { border-top: none !important; margin-bottom: 5px; }
}
/* END SP MOBILE FIXES */

@media (max-width: 768px) {
    /* 6. Cart layout fix */
    .cart-table tbody td[data-label="商品名"]::before {
        display: none !important;
    }
    .cart-table tbody td[data-label="商品名"] {
        justify-content: flex-start !important;
    }
    .cart-table-wrap {
        padding: 15px !important;
    }
    
    /* 8. 9. Form padding fixes */
    .customer-form-card, .payment-card {
        padding: 20px 15px !important;
    }
}

/* Hamburger Menu Functionality */
.menu-toggle-checkbox {
    display: none !important; /* Forces checkbox to hide */
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle-label span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-base);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .menu-toggle-label {
        display: flex;
    }
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(250, 249, 246, 0.98);
        flex-direction: column;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        text-align: center;
        padding: 0;
        margin: 0;
    }
    .header-nav a {
        padding: 20px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid #EEE;
    }
    .header-nav a:last-child {
        border-bottom: none;
    }
    
    .menu-toggle-checkbox:checked ~ .header-nav {
        display: flex;
    }
    
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* 注文フロー AJAX エラー */
.bk-flow-errors {
    margin-bottom: 1rem;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #cc2222;
    border-radius: 6px;
}
.bk-flow-error {
    margin: 0;
    color: #b30000;
    font-size: 0.9rem;
    line-height: 1.5;
}
.bk-flow-error + .bk-flow-error {
    margin-top: 6px;
}
.cursor-pointer {
    cursor: pointer;
}

.error_message {
    margin-bottom: 20px;
    font-size: .875rem !important;
}

#delivery-info .notes {
    width: 100% !important;
}

table#sbps_form th{
    display: none !important;
}

table#sbps_form .sbps_new_card_area {
    margin: 0 !important;
}

table#sbps_form .sbps_new_card_area dl dt {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-main);
    padding-top: 0;
}

table#sbps_form .sbps_new_card_area dl dd {
    padding-left:0;
}

table#sbps_form .sbps_new_card_area dl dd .attention {
    font-size: 0.688rem;
    margin-bottom: var(--space-md);
}

table#sbps_form .sbps_new_card_area dl dd select {
    width: 118px !important;
}

table#sbps_form .sbps_new_card_area dl dd select.cc_expyy {
    margin-left: 15px;
}

table#sbps_form .sbps_new_card_area dl dd input[type="tel"].cc_seccd {
    width: 160px !important;
}