

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap');

:root {
    --color-bg: #f0f4f8;
    --color-surface: #ffffff;
    --color-surface-alt: #e8eef4;
    --color-primary: #2563b0;
    --color-primary-glow: #3b82d6;
    --color-primary-light: #e8f0fe;
    --color-accent: #e8820c;
    --color-accent-light: #fff4e5;
    --color-text: #1e2a3a;
    --color-text-sub: #6b7d94;
    --color-border: #c8d6e2;
    --color-success: #0f8a4f;
    --color-danger: #cc3333;
    --color-warm: #e8820c;
    --font-display: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(30,60,100,.08);
}

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(37,99,176,.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.site-header {
    background: linear-gradient(135deg, #1e4b8a 0%, #2563b0 40%, #3b82d6 100%);
    padding: 30px 0;
    position: relative;
    box-shadow: 0 4px 24px rgba(37,99,176,.25);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #f5c842, var(--color-accent));
}

.site-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.site-header h1 span { color: #fff; }

.header-sub {
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,.8);
    margin-top: 6px;
    letter-spacing: .12em;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    border-left: 5px solid var(--color-primary);
    padding-left: 16px;
    margin: 40px 0 20px;
}

.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.product-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .05em;
    padding: 14px 16px;
    text-align: left;
}

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

.product-table tbody tr { transition: background .2s; }
.product-table tbody tr:nth-child(even) { background: var(--color-surface-alt); }
.product-table tbody tr:hover { background: var(--color-primary-light); }

.product-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.product-table tbody td:last-child {
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    white-space: nowrap;
}

.product-table .product-img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    background: var(--color-surface-alt);
}

.product-name { font-weight: 700; font-size: 1rem; }

.cta-wrapper { text-align: center; margin: 48px 0; }

.cta-button {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent) 0%, #d97706 100%);
    padding: 20px 48px;
    border-radius: 60px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 16px rgba(232,130,12,.35),
        0 0 48px rgba(232,130,12,.15),
        0 6px 24px rgba(0,0,0,.1);
    animation: ctaPulseBlue 2.5s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 24px rgba(232,130,12,.5),
        0 0 64px rgba(232,130,12,.2),
        0 10px 32px rgba(0,0,0,.12);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-25deg);
    animation: shimmer 2.8s ease-in-out infinite;
}

@keyframes shimmer { 0% { left: -100%; } 100% { left: 150%; } }

@keyframes ctaPulseBlue {
    0%, 100% {
        box-shadow: 0 0 16px rgba(232,130,12,.35), 0 0 48px rgba(232,130,12,.15), 0 6px 24px rgba(0,0,0,.1);
    }
    50% {
        box-shadow: 0 0 28px rgba(232,130,12,.55), 0 0 72px rgba(232,130,12,.25), 0 6px 24px rgba(0,0,0,.1);
    }
}

.site-footer {
    background: var(--color-surface);
    border-top: 2px solid var(--color-border);
    padding: 24px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer a { color: var(--color-text-sub); text-decoration: none; font-size: .85rem; transition: color .2s; }
.site-footer a:hover { color: var(--color-primary); }
.footer-copy { color: var(--color-text-sub); font-size: .75rem; margin-top: 10px; }

.order-section {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-top: 32px;
    border: 1px solid var(--color-border);
}

.order-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }

.order-table th {
    background: var(--color-surface-alt);
    font-size: .85rem; font-weight: 700;
    padding: 10px 12px;
    border-bottom: 2px solid var(--color-primary);
    text-align: left;
    color: var(--color-primary);
}
.order-table th:nth-child(n+2) { text-align: center; }

.order-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.order-table td:nth-child(n+2) { text-align: center; }

.order-table input[type="number"] {
    width: 70px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    padding: 8px 10px;
    text-align: center;
    font-size: .95rem;
}
.order-table input[type="number"]:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,176,.15);
}

.order-table .row-total { font-weight: 700; color: var(--color-primary); }

.order-total-row td {
    font-weight: 900; font-size: 1.2rem; color: var(--color-primary);
    padding-top: 16px;
    border-top: 3px solid var(--color-primary);
    border-bottom: none;
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.form-group label .required {
    background: var(--color-danger); color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: 2px 6px; border-radius: 4px; margin-left: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    padding: 12px 14px;
    font-size: .95rem;
    font-family: var(--font-body);
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,176,.15);
}
.form-group textarea { height: 100px; resize: vertical; }

.submit-btn {
    display: block; width: 100%;
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 800; letter-spacing: .08em;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-glow) 100%);
    border: none; border-radius: var(--radius);
    padding: 16px; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(37,99,176,.25);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,176,.4); }
.submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.law-table {
    width: 100%; border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.law-table th, .law-table td { padding: 16px 20px; border-bottom: 1px solid var(--color-border); text-align: left; }
.law-table th {
    width: 180px; background: var(--color-surface-alt);
    font-weight: 700; color: var(--color-primary); font-size: .9rem; white-space: nowrap;
}

.msg-success {
    background: #e8f5ee; border: 1px solid var(--color-success); color: var(--color-success);
    padding: 20px; border-radius: var(--radius); text-align: center; font-weight: 700; margin: 32px 0;
}
.msg-error {
    background: #ffeef0; border: 1px solid var(--color-danger); color: var(--color-danger);
    padding: 16px; border-radius: var(--radius); margin-bottom: 20px;
}
.back-link {
    display: inline-block; color: var(--color-primary); text-decoration: none;
    font-weight: 700; margin-top: 16px; transition: color .2s;
}
.back-link:hover { color: var(--color-primary-glow); }

.admin-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 20px; margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
}
.admin-card .form-group { margin-bottom: 12px; }
.admin-card .form-group label { font-size: .8rem; }
.admin-card .form-group input { padding: 8px 10px; font-size: .85rem; }

.admin-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn-small { font-size: .8rem; font-weight: 700; padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; transition: opacity .2s; }
.btn-small:hover { opacity: .8; }
.btn-save { background: var(--color-success); color: #fff; }
.btn-delete { background: var(--color-danger); color: #fff; }

.btn-add {
    display: block; width: 100%; padding: 14px;
    font-size: 1rem; font-weight: 700;
    background: var(--color-primary); color: #fff;
    border: none; border-radius: var(--radius);
    cursor: pointer; margin-top: 20px; transition: opacity .2s;
}
.btn-add:hover { opacity: .85; }

.login-form {
    max-width: 360px; margin: 80px auto;
    background: var(--color-surface); padding: 40px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.login-form h2 { font-family: var(--font-display); color: var(--color-primary); margin-bottom: 24px; text-align: center; }

@media (max-width: 640px) {
    .container { padding: 0 12px; }
    .product-table thead { display: none; }
    .product-table tbody tr {
        display: block; background: var(--color-surface);
        margin-bottom: 12px; border-radius: var(--radius);
        padding: 16px; border: 1px solid var(--color-border);
    }
    .product-table tbody tr:nth-child(even) { background: var(--color-surface); }
    .product-table tbody td { display: block; border: none; padding: 4px 0; text-align: left !important; }
    .product-table tbody td:first-child { text-align: center !important; margin-bottom: 8px; }
    .product-table .product-img { width: 100%; max-width: 200px; height: auto; aspect-ratio: 1; }

    .order-table thead { display: none; }
    .order-table tbody tr { display: block; border-bottom: 2px solid var(--color-border); padding: 12px 0; }
    .order-table td { display: flex; justify-content: space-between; align-items: center; text-align: right !important; padding: 4px 0; }
    .order-table td::before { font-weight: 700; font-size: .8rem; color: var(--color-text-sub); }
    .order-table td:nth-child(1)::before { content: '商品'; }
    .order-table td:nth-child(2)::before { content: '単価'; }
    .order-table td:nth-child(3)::before { content: '個数'; }
    .order-table td:nth-child(4)::before { content: '合計'; }

    .law-table th { display: block; width: 100%; padding-bottom: 4px; border-bottom: none; }
    .law-table td { display: block; padding-top: 0; }
    .cta-button { padding: 16px 32px; }
    .order-section { padding: 20px 16px; }
}

.product-img-wrap {
    position: relative;
    display: inline-block;
}
.soldout-badge-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(204,51,51,.9);
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: .1em;
    white-space: nowrap;
    pointer-events: none;
}
.soldout-badge {
    display: inline-block;
    background: var(--color-danger, #cc3333);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: .08em;
    vertical-align: middle;
}
.is-soldout {
    opacity: .5;
}
.is-soldout .product-img {
    filter: grayscale(80%);
}
.soldout-price {
    text-decoration: line-through;
    opacity: .5;
}

.header-tel {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: .05em;
}
.header-tel-note {
    font-size: .75rem;
    font-weight: 400;
    opacity: .75;
    margin-left: 4px;
}
.payment-banner {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--radius, 10px);
    padding: 16px 20px;
    margin: 24px 0 0;
    text-align: center;
    box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,.06));
}
.payment-title {
    font-weight: 700;
    font-size: .85rem;
    color: var(--color-text-sub, #888);
    margin-bottom: 8px;
    letter-spacing: .08em;
}
.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.payment-item {
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-text, #333);
    background: var(--color-surface-alt, #f5f5f5);
    padding: 4px 12px;
    border-radius: 6px;
}
.payment-cards {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.payment-cards svg {
    vertical-align: middle;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.payment-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.payment-option {
    cursor: pointer;
    display: block;
}
.payment-option input[type="radio"] {
    display: none;
}
.payment-option-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--color-surface-alt, #f5f5f5);
    border: 2px solid var(--color-border, #ddd);
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    transition: all .2s;
}
.payment-option input[type="radio"]:checked + .payment-option-inner {
    border-color: var(--color-primary, #2563b0);
    background: var(--color-primary-light, #e8f0fe);
    box-shadow: 0 0 0 3px rgba(37,99,176,.12);
}
.payment-option-cards {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}
.payment-option-cards svg {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
@media (max-width: 640px) {
    .payment-option-cards {
        margin-left: 0;
        margin-top: 4px;
    }
}

.seo-section {
    margin-top: 48px;
}
.seo-content {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--radius, 10px);
    padding: 24px 28px;
    box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,.06));
}
.seo-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary, #2563b0);
    margin: 16px 0 6px;
}
.seo-content h3:first-child {
    margin-top: 0;
}
.seo-content p {
    font-size: .9rem;
    color: var(--color-text-sub, #666);
    line-height: 1.8;
    margin-bottom: 4px;
}
