/*
Theme Name: 奈良食べ歩き
Theme URI:
Author: Lusties
Author URI: https://lusties-jp.com
Description: 奈良の飲食店・カフェ・スイーツを紹介する食べ歩きガイドテーマ
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nara-tabearuki
*/

:root {
  --color-primary: #8E3B1E;
  --color-primary-light: #B5502A;
  --color-accent: #C8A45A;
  --color-green: #4A7C59;
  --color-dark: #2D2624;
  --color-bg: #FBF8F3;
  --color-card: #FFFFFF;
  --color-border: #E8DDD0;
  --color-text: #3D302C;
  --color-text-muted: #7A6B65;
  --font-serif: 'Noto Serif JP', Georgia, serif;
  --font-sans: 'Noto Sans JP', 'Helvetica Neue', sans-serif;
  --container-width: 1160px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-light); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); line-height: 1.3; color: var(--color-dark); }

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

/* ==================
   HEADER
================== */
.site-header { background: var(--color-dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-branding { display: initial; align-items: baseline; gap: 12px; }
.site-title a { font-family: var(--font-serif); font-size: 1.25rem; color: #fff; font-weight: 700; letter-spacing: 0.05em; }
.site-title a:hover { color: var(--color-accent); }
.site-description { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid transparent; border-radius: 50%; cursor: pointer; padding: 10px; position: relative; z-index: 2; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.main-navigation { display: flex; align-items: center; margin-left: auto; }

.main-navigation ul { list-style: none; display: flex; gap: 4px; }
.main-navigation a { color: rgba(255,255,255,0.8); font-size: 0.875rem; padding: 6px 14px; border-radius: 4px; transition: var(--transition); }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: #fff; background: rgba(255,255,255,0.12); }

/* ==================
   HERO
================== */
.hero { background: linear-gradient(135deg, var(--color-dark) 0%, #4A2818 100%); color: white; padding: 80px 0 64px; text-align: center; }
.hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--color-accent); text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 3.2rem); color: white; margin-bottom: 16px; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 32px; }
.hero-search { display: flex; max-width: 480px; margin: 0 auto; }
.hero-search input[type="search"] { flex: 1; padding: 14px 20px; border: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 0.95rem; font-family: var(--font-sans); outline: none; }
.hero-search button { padding: 14px 24px; background: var(--color-primary); color: white; border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 0.95rem; transition: background var(--transition); }
.hero-search button:hover { background: var(--color-primary-light); }

/* ==================
   SECTION TITLES
================== */
.section { padding: 60px 0; }
.section-light { background: white; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: var(--font-serif); font-size: 1.5rem; padding-left: 14px; border-left: 4px solid var(--color-primary); }
.section-link { font-size: 0.85rem; color: var(--color-text-muted); }
.section-link:hover { color: var(--color-primary); }

/* ==================
   GENRE TABS
================== */
.genre-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.genre-tab { padding: 8px 20px; border-radius: 24px; border: 1.5px solid var(--color-border); font-size: 0.875rem; color: var(--color-text-muted); background: white; transition: all var(--transition); }
.genre-tab:hover, .genre-tab.active { background: var(--color-primary); border-color: var(--color-primary); color: white; }

/* ==================
   RESTAURANT CARDS
================== */
.restaurants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.restaurant-card { background: var(--color-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.restaurant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-border); display: block; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.restaurant-card:hover .card-thumb img { transform: scale(1.05); }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; font-weight: 700; }
.badge-genre { background: var(--color-primary); color: white; }
.badge-area { background: var(--color-green); color: white; }

.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 8px; }
.card-title a { color: var(--color-dark); }
.card-title a:hover { color: var(--color-primary); }
.card-meta { font-size: 0.8rem; color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.card-excerpt { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: auto; }
.no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0e8df, #e0d4c8); color: var(--color-text-muted); font-size: 2.5rem; }

/* ==================
   AREA SECTION
================== */
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.area-card { display: flex; flex-direction: column; align-items: center; padding: 28px 16px; background: white; border-radius: var(--radius); border: 1.5px solid var(--color-border); text-align: center; transition: all var(--transition); color: var(--color-dark); }
.area-card:hover { border-color: var(--color-primary); background: var(--color-primary); color: white; transform: translateY(-2px); box-shadow: var(--shadow); }
.area-card-icon { font-size: 2rem; margin-bottom: 10px; }
.area-card-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; }
.area-card-count { font-size: 0.78rem; margin-top: 4px; opacity: 0.7; }

/* ==================
   BLOG POST CARDS
================== */
.post-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--color-border); display: block; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat { font-size: 0.72rem; font-weight: 700; color: var(--color-primary); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.post-card-title { font-size: 1rem; margin-bottom: 10px; }
.post-card-title a { color: var(--color-dark); }
.post-card-title a:hover { color: var(--color-primary); }
.post-card-date { font-size: 0.78rem; color: var(--color-text-muted); margin-top: auto; padding-top: 12px; }

/* ==================
   ARCHIVE HEADER
================== */
.archive-header { background: var(--color-dark); color: white; padding: 48px 0 40px; text-align: center; }
.archive-eyebrow { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--color-accent); margin-bottom: 12px; }
.archive-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 4vw, 2.5rem); color: white; }
.archive-desc { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 12px; }
.archive-count { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 20px; }

/* ==================
   SINGLE POST
================== */
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 48px 0 80px; align-items: start; }
.single-header { margin-bottom: 32px; }
.single-cat { font-size: 0.78rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.single-title { font-family: var(--font-serif); font-size: clamp(1.4rem, 3.5vw, 2.2rem); line-height: 1.4; margin-bottom: 16px; }
.single-meta { font-size: 0.82rem; color: var(--color-text-muted); display: flex; gap: 16px; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.single-thumb img { width: 100%; }

.entry-content { font-size: 0.975rem; line-height: 1.9; }
.entry-content p { margin-bottom: 1.3em; }
.entry-content h2 { font-size: 1.35rem; margin: 2.5em 0 0.8em; padding: 10px 16px; background: var(--color-bg); border-left: 4px solid var(--color-primary); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content h3 { font-size: 1.15rem; margin: 2em 0 0.6em; color: var(--color-primary); }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 3px solid var(--color-accent); margin: 1.5em 0; padding: 16px 20px; background: #FFF8EE; border-radius: 0 var(--radius) var(--radius) 0; color: var(--color-text-muted); font-style: italic; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }

/* ==================
   RESTAURANT SINGLE
================== */
.restaurant-hero { position: relative; height: 420px; overflow: hidden; background: var(--color-dark); }
.restaurant-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.restaurant-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 40px; }
.restaurant-hero-title { color: white; font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.8rem); }
.restaurant-hero-meta { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.restaurant-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 48px 0 80px; align-items: start; }
.restaurant-body { font-size: 0.975rem; line-height: 1.9; }
.restaurant-body p { margin-bottom: 1.2em; }
.restaurant-body h2 { font-size: 1.3rem; margin: 2em 0 0.8em; padding-bottom: 8px; border-bottom: 2px solid var(--color-border); }
.restaurant-body img { border-radius: var(--radius); margin: 1.5em 0; }

/* Info Card */
.info-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 80px; }
.info-card-header { background: var(--color-primary); color: white; padding: 16px 20px; font-family: var(--font-serif); font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.info-list { padding: 8px 0; }
.info-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; }
.info-item:last-child { border-bottom: none; }
.info-label { min-width: 72px; color: var(--color-text-muted); font-weight: 700; font-size: 0.78rem; padding-top: 2px; flex-shrink: 0; }
.info-value { color: var(--color-dark); line-height: 1.6; }
.info-value a { color: var(--color-primary); }
.info-map { padding: 16px 20px; border-top: 1px solid var(--color-border); }
.info-map iframe { width: 100%; height: 220px; border: none; border-radius: 6px; }
.info-cta { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.info-card-header .wishlist-btn { width: fit-content; }

/* Rating */
.rating-stars { display: flex; gap: 2px; }
.star { color: var(--color-border); font-size: 1rem; }
.star.filled { color: var(--color-accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-light); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-danger { background: #b42318; border: 1.5px solid #b42318; color: #fff; }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn:disabled { cursor: not-allowed; opacity: 0.6; }
.btn-block { width: 100%; }

/* ==================
   SIDEBAR
================== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget-title { font-family: var(--font-serif); font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); }
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: var(--color-text); }
.widget ul li a:hover { color: var(--color-primary); }

/* ==================
   PAGINATION
================== */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius); font-size: 0.875rem; background: white; border: 1.5px solid var(--color-border); color: var(--color-text); transition: all var(--transition); }
.pagination .page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: white; }

/* ==================
   SEARCH
================== */
.search-form { display: flex; max-width: 560px; margin: 0 auto 40px; }
.search-field { flex: 1; padding: 12px 18px; border: 1.5px solid var(--color-border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 0.95rem; font-family: var(--font-sans); outline: none; }
.search-field:focus { border-color: var(--color-primary); }
.search-submit { padding: 12px 24px; background: var(--color-primary); color: white; border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 0.95rem; transition: background var(--transition); }
.search-submit:hover { background: var(--color-primary-light); }

/* ==================
   404
================== */
.error-404 { text-align: center; padding: 100px 24px; }
.error-code { font-family: var(--font-serif); font-size: clamp(5rem, 15vw, 9rem); color: var(--color-border); line-height: 1; margin-bottom: 16px; }
.error-404 h1 { font-size: 1.5rem; margin-bottom: 12px; }
.error-404 p { color: var(--color-text-muted); margin-bottom: 32px; }

/* ==================
   FOOTER
================== */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .site-title-footer { font-family: var(--font-serif); font-size: 1.2rem; color: white; margin-bottom: 12px; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-heading { color: white; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 16px; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-genre-children { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-top: 5px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.15); }
.footer-genre-children a { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-genre-children a:hover { color: var(--color-accent); }
.footer-legal { display: flex; justify-content: flex-end; margin-bottom: 16px; gap: 2em; }
.footer-legal a { color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--color-accent); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.78rem; }

/* ==================
   REVIEW CARDS
================== */
.review-card { background: var(--color-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-card-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--color-border); display: block; }
.review-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.review-card:hover .review-card-thumb img { transform: scale(1.05); }

.review-score-badge { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.review-score-5 { background: #27AE60; color: white; }
.review-score-4 { background: #2980B9; color: white; }
.review-score-3 { background: #F39C12; color: white; }
.review-score-2 { background: #E67E22; color: white; }
.review-score-1 { background: #E74C3C; color: white; }
.review-score-num { font-size: 1.2rem; font-weight: 900; }
.review-score-max { font-size: 0.6rem; opacity: 0.85; }

.badge-food { background: #6C3483; color: white; font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; font-weight: 700; }
.review-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.review-dish-name { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 6px; }
.review-dish-name a { color: var(--color-dark); }
.review-dish-name a:hover { color: var(--color-primary); }
.review-restaurant-name { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 10px; }
.review-card-footer { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-price { font-size: 0.82rem; color: var(--color-text-muted); }

/* ==================
   REVIEW SINGLE
================== */
.review-hero-score { background: var(--color-accent); color: var(--color-dark); font-size: 0.82rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.review-score-large { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 4px; }
.review-score-big { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 700; color: var(--color-dark); line-height: 1; }
.review-score-large + .rating-stars { justify-content: center; }

/* ==================
   HEADER USER MENU
================== */
.header-user { display: flex; align-items: center; gap: 10px; margin-left: 16px; flex-shrink: 0; }
.header-login-btn { font-size: 0.82rem; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.35); padding: 5px 14px; border-radius: 20px; transition: all var(--transition); }
.header-login-btn:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }
.header-user-name { font-size: 0.82rem; color: var(--color-accent); padding: 5px 0; }
.header-user-name:hover { color: #fff; }
.header-logout-btn { font-size: 0.78rem; color: rgba(255,255,255,0.5); background: none; border: none; cursor: pointer; padding: 5px 0; transition: color var(--transition); }
.header-logout-btn:hover { color: rgba(255,255,255,0.9); }

/* ==================
   LIKE BUTTON
================== */
.like-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--color-border); background: white; color: var(--color-text-muted); font-size: 0.82rem; cursor: pointer; transition: all var(--transition); line-height: 1; }
.like-btn:hover { border-color: #e05a7a; color: #e05a7a; }
.like-btn.liked { border-color: #e05a7a; background: #fdf0f4; color: #e05a7a; }
.like-btn.liked .like-icon { content: '♥'; }
.like-btn .like-icon { font-size: 1rem; transition: transform 0.15s; }
.like-btn:active .like-icon { transform: scale(1.3); }
.like-btn .like-count { font-weight: 700; }

/* ==================
   WISHLIST BUTTON
================== */
.wishlist-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); border: 1.5px solid var(--color-border); background: white; color: var(--color-text-muted); font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: all var(--transition); width: 100%; justify-content: center; }
.wishlist-btn:hover { border-color: var(--color-green); color: var(--color-green); background: #f0f7f3; }
.wishlist-btn.wishlisted { border-color: var(--color-green); background: var(--color-green); color: white; }
.wishlist-btn.wishlisted:hover { background: #3d6b4a; border-color: #3d6b4a; color: white; }

/* ==================
   LOGIN MODAL
================== */
.login-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9000; align-items: center; justify-content: center; padding: 24px; }
.login-modal.open { display: flex; }
.modal-box { background: white; border-radius: 12px; width: 100%; max-width: 400px; padding: 32px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.5rem; color: var(--color-text-muted); cursor: pointer; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--color-dark); }

.auth-tabs { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: 24px; gap: 4px; }
.auth-tab-btn { flex: 1; padding: 10px; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700; color: var(--color-text-muted); cursor: pointer; transition: all var(--transition); }
.auth-tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.auth-tab-panel { display: none; }
.auth-tab-panel.active { display: block; }

.auth-form .form-group { margin-bottom: 16px; }
.auth-form label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--color-text); }
.auth-form label small { font-weight: 400; color: var(--color-text-muted); }
.auth-form input[type="text"],
.auth-form input[type="password"] { width: 100%; padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius); font-size: 0.9rem; font-family: var(--font-sans); outline: none; transition: border-color var(--transition); }
.auth-form input:focus { border-color: var(--color-primary); }
.form-msg { font-size: 0.82rem; min-height: 1.2em; margin-bottom: 12px; }
.form-msg.error { color: #c0392b; }
.form-msg.success { color: var(--color-green); }

/* ==================
   RESTAURANT REVIEWS
================== */
.restaurant-reviews-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.restaurant-reviews-empty { color: var(--color-text-muted); font-size: 0.9rem; padding: 24px 0; }

/* ==================
   RESTAURANT SINGLE PAGE
================== */
.restaurant-page { padding: 48px 0 80px; }
.info-card--inline { position: static; }
.info-card--inline .info-card-body { display: flex; align-items: stretch; }
.info-card--inline .info-card-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.info-card--inline .info-card-details { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.info-card--inline .info-card-details .info-list { flex: 1; }
.info-card--inline .info-map { width: 100%; flex-shrink: 0; padding: 10px; border-top: none; }
.info-card--inline .info-map iframe { width: 100%; height: 100%; min-height: 300px; border: none; border-radius: 0; display: block; }
.info-card--inline .info-cta { grid-column: 1 / 3; }

/* ==================
   MYPAGE
================== */
.mypage-empty { color: var(--color-text-muted); font-size: 0.9rem; padding: 32px 0; }
.mypage-withdrawal { margin-bottom: 60px; padding: 24px; border: 1px solid #e6b8b3; border-radius: 8px; background: #fff8f7; }
.mypage-withdrawal h2 { margin: 0 0 8px; font-size: 1rem; color: #8f1c13; }
.mypage-withdrawal p { margin: 0 0 18px; color: var(--color-text-muted); font-size: 0.9rem; }

/* ==================
   WP CORE CLASSES
================== */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--color-text-muted); text-align: center; margin-top: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ==================
   RESPONSIVE
================== */
@media (max-width: 960px) {
  .restaurant-layout, .single-layout { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* .info-card--inline .info-map { width: 300px; } */
  .info-card--inline .info-card-body-grid { display: block; }
}
@media (max-width: 768px) {
  .site-header .container { position: relative; }
  .site-branding { min-width: 0; }
  .site-description { display: none; }
  .nav-toggle { display: block; flex: 0 0 44px; margin-left: auto; }
  .nav-toggle.open { background: rgba(255,255,255,0.1); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-navigation { display: block; visibility: hidden; opacity: 0; pointer-events: none; position: fixed; inset: 64px 0 0; margin: 0; background: rgba(45,38,36,0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 24px; overflow-y: auto; overscroll-behavior: contain; transform: translateY(-8px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition); }
  .main-navigation.open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-navigation ul { flex-direction: column; gap: 2px; }
  .main-navigation a { display: block; padding: 12px 14px; font-size: 0.95rem; border-radius: 7px; }
  .header-user { margin: 10px 0 0; padding: 12px 4px 2px; border-top: 1px solid rgba(255,255,255,0.14); }
  .header-login-btn { width: 100%; padding: 10px 14px; text-align: center; border-color: rgba(255,255,255,0.3); }
  .header-user-name { flex: 1; padding: 8px 10px; }
  .header-logout-btn { padding: 8px 10px; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 40px 0; }
  .restaurant-hero { height: 280px; }
  .restaurant-hero-overlay { padding: 24px; }
  .info-card--inline .info-card-body { flex-direction: column; }
  .info-card--inline .info-map { width: 100%; border-left: none; border-top: 1px solid var(--color-border); }
  .info-card--inline .info-map iframe { height: 220px; min-height: 220px; }
}
@media (max-width: 480px) {
  .restaurants-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search input[type="search"], .hero-search button { border-radius: var(--radius); width: 100%; }
  .area-cards { grid-template-columns: repeat(2, 1fr); }
}
