/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #d4a017;
    --color-primary-dark: #b8860b;
    --color-bg: #faf8f0;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0ddd5;
    --color-danger: #c0392b;
    --color-warning: #e67e22;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --max-width: 1100px;
}
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 15px;
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

p + p {
    margin-top: 1em;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 3px solid var(--color-primary);
    padding: 16px 0;
}

body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
}

.site-logo {
    margin: 0;
    line-height: 0;
}

.site-logo a {
    display: inline-block;
}

.site-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.site-description {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
}

.nav-search-link {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 6px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-search-link:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
}

/* === Main === */
.site-main {
    flex: 1 0 auto;
    padding: 0 0 32px 0;
}

/* === Hero === */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    overflow: hidden;
    color: var(--color-white);
    text-align: left;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(27, 21, 16, 0.92), rgba(27, 21, 16, 0.55) 55%, rgba(27, 21, 16, 0.1));
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

.hero-copy .eyebrow {
    margin: 0 0 14px;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.25;
}

.hero-copy .lead {
    margin: 20px 0 28px;
    font-size: 1rem;
    line-height: 1.9;
    opacity: 0.92;
}

.hero-button {
    display: inline-block;
}

/* === Stats === */
.stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: min(560px, calc(100% - 48px));
    margin: -40px auto 40px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stats div {
    padding: 24px 32px;
    border-right: 1px solid var(--color-border);
    text-align: center;
}

.stats div:last-child {
    border-right: 0;
}

.stats strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--color-primary-dark);
    line-height: 1;
}

.stats .count {
    display: inline-flex;
    font-variant-numeric: tabular-nums;
}

.count-digit {
    display: inline-block;
    overflow: hidden;
    height: 1em;
    line-height: 1;
    vertical-align: top;
}

.count-digit-track {
    display: flex;
    flex-direction: column;
    will-change: transform, filter;
}

.count-digit-track span {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}

.stats small {
    margin-left: 4px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.stats p {
    margin: 8px 0 0;
    color: var(--color-text-light);
    font-size: 0.8rem;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background: #f0ece0;
    text-decoration: none;
}

.btn-purchase {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 1.1rem;
    padding: 14px 32px;
}

.btn-purchase:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
}

/* === Product Grid === */
.recent-products h2,
.archive-page h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.recent-products-loader {
    height: 40px;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-products-loader.is-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: rca-spin 0.7s linear infinite;
}

@keyframes rca-spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Product Card === */
.product-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-card-image img {
    width: 100%;
    /* height: 300px; */
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.product-card-body {
    padding: 16px;
}

.product-card-title {
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-card-title a {
    color: var(--color-text);
}

.product-card-maker {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.product-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.product-card-price small {
    font-size: 0.75rem;
    font-weight: 400;
}

.product-card-weight {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* === 商品一覧のページ送り（JS無効時・クローラー向け。JS有効時はhidden） === */
.archive-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 32px;
}

.archive-pagination[hidden] {
    display: none;
}

.archive-pagination a,
.archive-pagination span {
    min-width: 36px;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
}

.archive-pagination-current {
    background: var(--color-primary);
    border-color: var(--color-primary) !important;
    color: #fff;
}

/* === 商品詳細: 同じ都道府県のカレー === */
.related-products {
    margin-top: 48px;
}

.related-products h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.related-products-more {
    text-align: right;
    margin-top: -16px;
}

/* 同じ都道府県のカレー: 横1列のカルーセル（2026-10-08）
   PC: カード幅は一覧の約半分（170px） / スマホ: 画面にカード2.5枚分が見える幅 */
.related-carousel {
    position: relative;
}

.related-carousel-track.product-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 12px;
    margin-bottom: 32px;
    scrollbar-width: thin;
}

.related-carousel-track .product-card {
    flex: 0 0 170px;
    min-width: 0;
    scroll-snap-align: start;
}

.related-carousel-track .product-card-body {
    padding: 10px;
}

.related-carousel-track .product-card-title {
    font-size: 0.85rem;
}

.related-carousel-track .product-card .wishlist-button {
    top: 6px;
    right: 6px;
    font-size: 0.7rem;
    padding: 4px 8px;
}

.related-carousel-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: var(--shadow);
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.related-carousel-nav[hidden] {
    display: none;
}

.related-carousel-prev {
    left: -16px;
}

.related-carousel-next {
    right: -16px;
}

@media (max-width: 768px) {
    .related-carousel-track.product-grid {
        gap: 12px;
    }

    /* 2.5枚 + 間隔2つ分 = 表示幅 */
    .related-carousel-track .product-card {
        flex-basis: calc((100% - 24px) / 2.5);
    }

    .related-carousel-track .product-card-body {
        padding: 8px;
    }

    .related-carousel-track .product-card-title {
        font-size: 0.8rem;
    }

    .related-carousel-track .product-card .wishlist-button {
        top: 4px;
        right: 4px;
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .related-carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }

    .related-carousel-prev {
        left: -10px;
    }

    .related-carousel-next {
        right: -10px;
    }
}

a.tag-prefecture {
    text-decoration: none;
}

a.tag-prefecture:hover {
    opacity: 0.8;
}

/* === Tags === */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-prefecture {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-spice {
    color: var(--color-white);
}

.spice-1 { background: #66bb6a; }
.spice-2 { background: #ffa726; }
.spice-3 { background: #ef5350; }
.spice-4 { background: #c62828; }
.spice-5 { background: #880e4f; }

.tag-inactive {
    background: #e0e0e0;
    color: #757575;
}

/* === Search Form === */
.search-form {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-row input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.search-row .btn {
    white-space: nowrap;
    background: var(--color-primary);
    color: var(--color-white);
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-row select,
.filter-row input[type="number"] {
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    min-width: 120px;
}

/* 都道府県ページ（/curry/osaka/）の導入文（2026-10-08） */
.pref-page-lead {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin: -8px 0 20px;
}

.result-count {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 32px 0;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.page-num.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--color-text-light);
}

/* === Breadcrumb === */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* === Single Product === */
.product-header {
    margin-bottom: 28px;
}

.product-header h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.product-meta-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-body section {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.product-body h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-primary);
}

.product-body h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    margin-top: 16px;
}

/* === Images (Slick Slider) === */
.product-images {
    padding: 16px !important;
}

.product-image-slider {
    max-width: 480px;
    margin: 0 auto 32px;
}

.product-image-slide figure {
    margin: 0;
}

.product-image-link {
    display: block;
    cursor: zoom-in;
}

.product-image-slide img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius);
}

.product-image-slide figcaption {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 4px;
}

.product-image-slider .slick-prev,
.product-image-slider .slick-next {
    width: 32px;
    height: 32px;
    z-index: 1;
}

.product-image-slider .slick-prev::before,
.product-image-slider .slick-next::before {
    color: var(--color-primary);
    font-size: 28px;
    opacity: 1;
}

.product-image-slider .slick-dots {
    bottom: -28px;
}

.product-image-slider .slick-dots li button::before {
    color: var(--color-primary);
    opacity: 0.4;
}

.product-image-slider .slick-dots li.slick-active button::before {
    color: var(--color-primary);
    opacity: 1;
}

/* === Lightbox（画像クリックで拡大表示） === */
.rca-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.rca-lightbox.is-open {
    display: flex;
}

.rca-lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.rca-lightbox-inner img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.rca-lightbox-caption {
    color: var(--color-white);
    font-size: 0.85rem;
    margin-top: 12px;
}

.rca-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.rca-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.rca-lightbox-lock {
    overflow: hidden;
}

/* === Info Table === */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.9rem;
}

.info-table th {
    width: 140px;
    color: var(--color-text-light);
    font-weight: 600;
}

/* === Spice Indicator === */
.spice-indicator {
    display: inline-flex;
    gap: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.spice-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
}

.spice-dot.active {
    background: var(--color-danger);
}

/* === Cooking Methods === */
.cooking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cooking-method {
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.cooking-method.available {
    border-color: #66bb6a;
    background: #f1f8e9;
}

.cooking-method.unavailable {
    border-color: #e0e0e0;
    background: #fafafa;
    color: var(--color-text-light);
}

.cooking-method h3 {
    margin-top: 0;
}

/* === Allergens === */
.allergen-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.allergen-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.allergen-item {
    background: #fff3e0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.allergen-item.may-contain {
    background: #fce4ec;
}

.allergen-item small {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.allergen-note {
    font-size: 0.8rem;
    color: var(--color-danger);
    margin-top: 12px;
}

/* === Nutrition Table === */
.nutrition-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
}

.nutrition-table th,
.nutrition-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.nutrition-table th {
    text-align: left;
    font-weight: 600;
}

.nutrition-table th.sub {
    padding-left: 28px;
    font-weight: 400;
    color: var(--color-text-light);
}

.nutrition-table td {
    text-align: right;
}

.serving-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

/* === Locations === */
.location-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.location-card {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.location-type {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.location-card h3 {
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 6px;
}

.location-address {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.location-links {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.location-links a {
    font-size: 0.8rem;
}

.confirmed-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* === Review === */
.review-content {
    line-height: 1.8;
}

/* === Footer === */
.product-footer {
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid var(--color-border);
}

.confirmed-info {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.info-warning {
    background: #fff8e1;
    border: 1px solid var(--color-warning);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--color-warning);
    margin-top: 8px;
}

/* === Site Footer === */
.site-footer {
    position: relative;
    flex-shrink: 0;
    background: var(--color-text);
    color: var(--color-white);
    padding: 24px 0 40px;
    text-align: center;
    font-size: 0.8rem;
}

.site-footer .copyright {
    margin-bottom: 8px;
}

.site-footer .disclaimer {
    font-size: 0.7rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.footer-legal-links {
    position: absolute;
    right: 20px;
    bottom: 12px;
    display: flex;
    gap: 16px;
}

.footer-privacy-link,
.footer-contact-link {
    font-size: 0.7rem;
    color: var(--color-white);
    opacity: 0.7;
    text-decoration: underline;
}

.footer-privacy-link:hover,
.footer-contact-link:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-legal-links {
        position: static;
        display: flex;
        justify-content: center;
        margin-top: 12px;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* スマホ幅ではヘッダーが縦積みになり高さが増えるため、固定ページの逃げも広げる */
    .static-page {
        padding-top: 230px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(27, 21, 16, 0.94) 15%, rgba(27, 21, 16, 0.2) 85%);
    }

    .hero-copy {
        width: calc(100% - 36px);
    }

    .stats {
        width: calc(100% - 36px);
        margin: -28px auto 32px;
    }

    .stats div {
        padding: 16px 12px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

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

    .filter-row select,
    .filter-row input[type="number"] {
        width: 100%;
    }

    .cooking-grid {
        grid-template-columns: 1fr;
    }

    .info-table th {
        width: 100px;
    }

    .location-list {
        grid-template-columns: 1fr;
    }
}

/* === Wishlist Button（ほしい！） === */
.wishlist-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-text-light);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.wishlist-button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.wishlist-button.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.product-card .wishlist-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    box-shadow: var(--shadow);
}

.product-header .wishlist-button {
    margin-top: 8px;
}

/* === 会員フォーム（登録・ログイン・パスワード再設定） === */
.curry-auth-form {
    max-width: 400px;
    margin: 0 0 16px;
}

.curry-auth-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.curry-auth-form input[type="email"],
.curry-auth-form input[type="password"] {
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.curry-auth-form button {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
}

.curry-auth-form button:hover {
    background: var(--color-primary-dark);
}

.curry-form-message {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.curry-form-message.curry-form-success {
    background: #eef7e8;
    color: #3a6b1f;
}

.curry-form-message.curry-form-error {
    background: #fbeaea;
    color: #a23a3a;
}

/* === 固定ページ共通（ログイン・会員登録・マイページ・プライバシーポリシー等） === */
/* .site-header は position:fixed のため、padding-top で高さ分の逃げを確保する */
.static-page {
    padding-top: 130px;
    padding-bottom: 60px;
}

.static-page h1 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.static-page .page-body {
    max-width: 680px;
}

/* --- 本文（the_content）の段落・見出し・リスト・表の体裁 --- */
.page-body > * + * {
    margin-top: 1em;
}

.page-body h2 {
    margin-top: 2.2em;
    font-size: 1.15rem;
    color: var(--color-primary-dark);
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
}

.page-body h3 {
    margin-top: 1.8em;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--color-text);
}

.page-body h2:first-child,
.page-body h3:first-child {
    margin-top: 0;
}

.page-body p {
    line-height: 1.9;
}

.page-body ul,
.page-body ol {
    padding-left: 1.4em;
}

.page-body ul {
    list-style: disc;
}

.page-body ol {
    list-style: decimal;
}

.page-body li + li {
    margin-top: 0.4em;
}

.page-body a {
    text-decoration: underline;
    word-break: break-all;
}

.page-body strong {
    font-weight: 700;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.page-body th,
.page-body td {
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.page-body th {
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-weight: 700;
    white-space: nowrap;
}

.page-body blockquote {
    padding: 12px 16px;
    border-left: 4px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-light);
}

.page-body hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5em 0;
}

/* === 都道府県から探す（一覧・都道府県ページ下部）2026-10-08 === */
.pref-index {
    margin: 48px 0 32px;
}

.pref-index h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.pref-index-region {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.pref-index-region h3 {
    flex: 0 0 7em;
    font-size: 0.85rem;
    margin: 4px 0 0;
}

.pref-index-region ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pref-index-region li {
    font-size: 0.9rem;
}

.pref-index-region small {
    margin-left: 2px;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.pref-index-region .is-current {
    font-weight: 700;
    color: var(--color-primary-dark);
}

.pref-index-region .is-empty {
    color: var(--color-border);
}

.related-products h2 a {
    color: inherit;
    text-decoration: none;
}

.related-products h2 a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pref-index-region {
        flex-direction: column;
        gap: 6px;
    }

    .pref-index-region h3 {
        flex-basis: auto;
    }
}
