/*
 * shoku.css
 * カフェ＆レストランページ専用スタイル
 * Template: shoku-page.php
 */

/* -------------------------------------------------- */
/* メニューセクション                                   */
/* -------------------------------------------------- */
.shoku-menu-section {
    background-color: #70bc3a;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 2px, transparent 2px);
    background-size: 22px 22px;
}

.shoku-menu-divider {
    width: 40px;
    height: 3px;
}

.shoku-menu-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 2.25rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.shoku-menu-list-btn::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.shoku-menu-list-btn:hover {
    background: #e8f5e0;
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.shoku-menu-list-btn:hover::after {
    transform: translateX(5px);
}

.shoku-menu-img {
    aspect-ratio: 4 / 3;
}

.shoku-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.03em;
    margin: 10px 2px 0;
    /* デフォルト */
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
}

/* モーニング */
.shoku-category-badge.cat--morning {
    background: #fef3c7;
    color: #92400e;
}

/* ランチ */
.shoku-category-badge.cat--lunch {
    background: #dbeafe;
    color: #1e40af;
}

/* ディナー */
.shoku-category-badge.cat--dinner {
    background: #ede9fe;
    color: #5b21b6;
}

.shoku-ranking-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    background-color: #f97316;
    color: #fff;
}

/* -------------------------------------------------- */
/* 営業時間テーブル                                     */
/* -------------------------------------------------- */
.shoku-hours-table {
    border: 2px solid #e2e8f0;
    min-width: 700px;
    border-collapse: collapse;
}

.shoku-hours-table th,
.shoku-hours-table td {
    border: 1px solid #e2e8f0;
}

/* -------------------------------------------------- */
/* アクセス・Google Maps iframe                         */
/* -------------------------------------------------- */
.map-iframe {
    border: 0;
}

/* -------------------------------------------------- */
/* 農園セクション背景                                   */
/* -------------------------------------------------- */
.shoku-farmland-bg {
    background-size: cover;
    background-position: center;
    border-radius: 32px;
    overflow: hidden;
}

/* -------------------------------------------------- */
/* 焼き菓子ギャラリー                                   */
/* -------------------------------------------------- */

/* スマホ：横スクロール */
.shoku-gallery-scroll-wrap {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.shoku-gallery-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.shoku-gallery-item {
    flex: 0 0 75vw;
    max-width: 300px;
}

/* PC：3カラムグリッド */
@media (min-width: 768px) {
    .shoku-gallery-scroll-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .shoku-gallery-item {
        flex: none;
        max-width: none;
    }
}

.shoku-gallery-img {
    height: 240px;
}

/* -------------------------------------------------- */
/* 農園カード（食の循環セクション）                     */
/* -------------------------------------------------- */
#farmland .farmland-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    #farmland .farmland-cards {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
    }
}
#farmland .farmland-card {
    background: #f9fafb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}
#farmland .farmland-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
#farmland .farmland-card a {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
#farmland .farmland-card-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e5e7eb;
    aspect-ratio: 4 / 3;
}
#farmland .farmland-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#farmland .farmland-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
#farmland .farmland-card-body h3 {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    #farmland .farmland-card-body h3 {
        font-size: 1.125rem;
    }
}
#farmland .farmland-card-body p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* -------------------------------------------------- */
/* menu-shoku 専用アーカイブ                             */
/* Template: archive-menu-shoku.php                    */
/* -------------------------------------------------- */

/* --- Hero --- */
.archive-menu-shoku-hero {
    padding-top: 8rem;
    padding-bottom: 3.5rem;
    background: linear-gradient(150deg, var(--menu-shoku-main-light) 0%, #fff 65%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.archive-menu-shoku-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.archive-menu-shoku-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--menu-shoku-main);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}
.archive-menu-shoku-back-link:hover {
    opacity: 0.7;
}

.archive-menu-shoku-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--menu-shoku-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.archive-menu-shoku-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--menu-shoku-main);
    line-height: 1;
    margin: 0;
}

@media (min-width: 768px) {
    .archive-menu-shoku-title {
        font-size: 3rem;
    }
}

.archive-menu-shoku-title-line {
    width: 40px;
    height: 3px;
    background: var(--menu-shoku-main);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* --- Back row --- */
.archive-menu-shoku-back-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .archive-menu-shoku-back-row {
        padding: 1.5rem 2rem 0;
    }
}

.archive-menu-shoku-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.archive-menu-shoku-back-link:hover {
    opacity: 0.7;
}

/* --- Section & Wrap --- */
.archive-menu-shoku-section {
    padding: 3rem 0 4rem;
    background: #fff;
}

.archive-menu-shoku-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .archive-menu-shoku-wrap {
        padding: 0 2rem;
    }
}

/* --- Grid --- */
.archive-menu-shoku-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .archive-menu-shoku-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* --- Card link wrapper --- */
.archive-menu-shoku-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* --- Card --- */
.archive-menu-shoku-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.archive-menu-shoku-card-link:hover .archive-menu-shoku-card {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
}

/* --- Image wrap --- */
.archive-menu-shoku-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f0f2ef;
}

.archive-menu-shoku-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.archive-menu-shoku-card-link:hover .archive-menu-shoku-card-img {
    transform: scale(1.07);
}

.archive-menu-shoku-card-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f5e0 0%, #d4edbc 100%);
}

/* カテゴリオーバーレイ */
.archive-menu-shoku-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 100%);
    display: flex;
    align-items: flex-start;
}

.archive-menu-shoku-cat-pill {
    display: inline-block;
    border-radius: 100px;
    padding: 2px 9px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
    /* デフォルト（カテゴリ未分類） */
    background: rgba(255, 255, 255, 0.9);
    color: var(--menu-shoku-main);
}

/* モーニング：温かみのあるアンバー */
.archive-menu-shoku-cat-pill.cat--morning {
    background: #fef3c7;
    color: #92400e;
}

/* ランチ：さわやかなスカイブルー */
.archive-menu-shoku-cat-pill.cat--lunch {
    background: #dbeafe;
    color: #1e40af;
}

/* ディナー：落ち着いたパープル */
.archive-menu-shoku-cat-pill.cat--dinner {
    background: #ede9fe;
    color: #5b21b6;
}

/* --- Card body --- */
.archive-menu-shoku-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* --- Ranking badge (人気) --- */
.archive-menu-shoku-ranking-badge {
    display: inline-block;
    align-self: flex-start;   /* flex列で横幅いっぱいにしない */
    background: #f97316;      /* オレンジ */
    color: #fff;
    border-radius: 100px;
    padding: 2px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* --- Card title --- */
.archive-menu-shoku-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin: 0;
}

@media (min-width: 768px) {
    .archive-menu-shoku-card-title {
        font-size: 0.9rem;
    }
}

/* --- Price --- */
.archive-menu-shoku-price {
    color: var(--menu-shoku-main);
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f4ee;
    line-height: 1;
}

/* --- Empty state --- */
.archive-menu-shoku-empty {
    text-align: center;
    padding: 5rem 0;
    color: #6b7280;
    font-size: 1rem;
}

.archive-menu-shoku-empty p {
    margin-bottom: 2rem;
}

/* --- Back button --- */
.archive-menu-shoku-back-btn {
    display: inline-block;
    background-color: var(--menu-shoku-main);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.archive-menu-shoku-back-btn:hover {
    opacity: 0.85;
}

/* --- Pagination --- */
.archive-menu-shoku-pagination {
    margin-top: 3rem;
}

.archive-menu-shoku-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.archive-menu-shoku-pagination .nav-links a,
.archive-menu-shoku-pagination .nav-links span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    padding: 0 6px;
}

.archive-menu-shoku-pagination .nav-links a {
    background: #f3f4f6;
    color: #374151;
}

.archive-menu-shoku-pagination .nav-links a:hover {
    background: var(--menu-shoku-main);
    color: #fff;
}

.archive-menu-shoku-pagination .nav-links span.current {
    background: var(--menu-shoku-main);
    color: #fff;
}

.archive-menu-shoku-pagination .nav-links .dots {
    background: transparent;
    color: #9ca3af;
    cursor: default;
}
