/*
Theme Name: Restaurant Theme
Theme URI: https://example.com
Author: Your Name
Description: 汎用レストラン・飲食店テーマ。ピザ・和食・カフェ・居酒屋など業種を問わず使えます。カラーパレット・フォント・全セクションのテキスト・表示/非表示をカスタマイザーで設定可能。
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rtheme
Tags: restaurant, food, cafe, one-page, japanese, customizable
*/

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Defaults（CSS変数はfunctions.phpのinline CSSで上書きされる） ── */
:root {
  --primary:      #c0201a;
  --secondary:    #5a7a32;
  --accent:       #f5c100;
  --bg-alt:       #f5c100;
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* ── Page wrapper ── */
.page {
  position: relative;
  max-width: 390px;   /* JS inline CSS で上書き */
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 80px rgba(0,0,0,.55);
  overflow: hidden;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 390px; height: 56px; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  padding-left: 14px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.65rem; font-weight: 700;
  color: var(--primary); font-style: italic;
  letter-spacing: -.01em; text-decoration: none;
}
.nav-right { display: flex; align-items: center; height: 100%; }
.nav-reserve {
  background: var(--secondary); color: #fff;
  font-size: .78rem; font-weight: 500;
  padding: 0 18px; height: 100%;
  display: flex; align-items: center;
  text-decoration: none; letter-spacing: .04em; white-space: nowrap;
  transition: opacity .2s;
}
.nav-reserve:hover { color: #fff; }
.nav-hamburger {
  background: var(--primary); width: 56px; height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; flex-shrink: 0; border: none;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ── Mobile menu overlay ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(192,32,26,.97);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: .1em;
  transition: opacity .2s;
}
.mobile-menu a:hover { opacity: .75; }
.mobile-menu-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  overflow: hidden; margin-top: 56px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide  { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img, .hero-slide svg.hero-svg-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* Floating deco */
.floats { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.fi { position: absolute; animation: floatY 4s ease-in-out infinite; }
@keyframes floatY {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-14px) rotate(7deg); }
}

/* Caption */
.hero-caption {
  position: absolute; bottom: 90px; left: 0; right: 0;
  text-align: center; z-index: 10; padding: 0 16px;
}
.hero-caption p {
  display: inline-block; background: rgba(255,255,255,.92);
  color: var(--primary); font-size: 1.05rem; font-weight: 700;
  line-height: 1.75; padding: 4px 10px; letter-spacing: .02em;
}

/* Scroll button */
.scroll-btn {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 10;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(7px); }
}
.scroll-btn svg { fill: #fff; width: 20px; height: 20px; }

/* ══════════════════════════════════════════
   SECTIONS – COMMON
══════════════════════════════════════════ */
.sec-white  { background: #fff;          padding: 48px 22px; position: relative; overflow: hidden; }
.sec-yellow { background: var(--bg-alt); padding: 48px 22px; position: relative; overflow: hidden; }

.sec-label {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; color: var(--secondary); margin-bottom: 6px;
}
.sec-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; line-height: 1.3; }
.body-text  { font-size: .84rem; line-height: 2; color: #333; margin-bottom: 18px; }

.img-box { width: 100%; border-radius: 5px; overflow: hidden; margin-bottom: 18px; }
.img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Floating deco inside sections */
.deco { position: absolute; pointer-events: none; animation: floatY 4s ease-in-out infinite; }

/* ══════════════════════════════════════════
   VIDEO
══════════════════════════════════════════ */
.video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 5px; overflow: hidden; background: #111; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.vid-placeholder {
  width: 100%; aspect-ratio: 16/9; background: #111; border-radius: 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.vid-placeholder p { color: #aaa; font-size: .72rem; }

/* ══════════════════════════════════════════
   SHOP INFO TABLE
══════════════════════════════════════════ */
.info-tbl { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.info-tbl tr { border-bottom: 1px solid rgba(0,0,0,.11); }
.info-tbl td { padding: 12px 0; font-size: .82rem; vertical-align: top; line-height: 1.7; }
.info-tbl td:first-child {
  color: var(--primary); font-weight: 700; width: 86px;
  border-bottom: 2px solid var(--primary); padding-right: 10px; white-space: nowrap;
}

/* 曜日別営業時間 */
.hours-detail-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.hours-detail-tbl tr { border-bottom: 1px solid rgba(0,0,0,.08); }
.hours-detail-tbl td { padding: 8px 4px; line-height: 1.5; }
.hours-day { width: 28px; font-weight: 700; color: var(--primary); }

/* Photo strip */
.photos-strip { display: flex; gap: 6px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.photos-strip::-webkit-scrollbar { display: none; }
.photo-thumb { flex-shrink: 0; width: 120px; height: 90px; border-radius: 4px; overflow: hidden; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════
   NEWS
══════════════════════════════════════════ */
.news-item { border-bottom: 1px solid #e8e8e8; padding: 13px 0; }
.news-date  { font-size: .74rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; letter-spacing: .05em; }
.news-text  { font-size: .84rem; color: #333; }
.news-text a { color: inherit; text-decoration: none; }
.news-text a:hover { color: var(--primary); }

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.gallery-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.07); }

/* ══════════════════════════════════════════
   REVIEW SLIDER
══════════════════════════════════════════ */
.rv-wrap  { overflow: hidden; }
.rv-track { display: flex; gap: 12px; transition: transform .4s ease; }
.rv-card  {
  flex-shrink: 0; width: calc(100% - 36px);
  background: #fff; border-radius: 8px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.rv-author { font-size: .75rem; font-weight: 700; color: #555; margin-bottom: 8px; }
.rv-text   { font-size: .82rem; line-height: 1.9; color: #333; margin-bottom: 12px; }
.stars     { color: var(--primary); font-size: .95rem; letter-spacing: 2px; }
.rv-nav    { display: flex; align-items: center; margin-top: 16px; }
.dots      { display: flex; gap: 5px; align-items: center; }
.dot       { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.18); cursor: pointer; transition: background .3s; }
.dot.on    { background: var(--primary); }
.dot.sm    { width: 5px; height: 5px; }
.sec-yellow .dot    { background: rgba(255,255,255,.4); }
.sec-yellow .dot.on { background: rgba(255,255,255,.95); }
.rv-more   { margin-left: auto; font-size: .8rem; text-decoration: underline; cursor: pointer; font-weight: 500; color: #111; }

/* ══════════════════════════════════════════
   ACCESS
══════════════════════════════════════════ */
.map-embed { width: 100%; aspect-ratio: 4/3; border-radius: 5px; overflow: hidden; margin-bottom: 20px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }
.acc-row { font-size: .82rem; line-height: 1.8; margin-bottom: 5px; }
.acc-row strong { font-weight: 700; margin-right: 10px; }
.access-note { font-size: .8rem; color: #555; line-height: 1.8; margin-top: 12px; margin-bottom: 0; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-green {
  display: block; width: 100%; background: var(--secondary); color: #fff;
  text-align: center; padding: 16px; border-radius: 30px;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  letter-spacing: .05em; border: none; cursor: pointer; transition: opacity .2s;
}
.btn-red {
  display: block; width: 100%; background: var(--primary); color: #fff;
  text-align: center; padding: 16px; border-radius: 30px;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  letter-spacing: .05em; border: none; cursor: pointer; margin-top: 12px; transition: opacity .2s;
}
.btn-outline {
  display: block; width: 100%; background: #fff;
  text-align: center; padding: 16px; border-radius: 30px;
  text-decoration: none; border: 2px solid rgba(0,0,0,.1);
  cursor: pointer; margin-bottom: 14px;
}
.btn-outline .phone      { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--primary); letter-spacing: .04em; display: block; }
.btn-outline .phone-time { font-size: .68rem; color: #666; display: block; margin-top: 2px; }

/* ══════════════════════════════════════════
   SNS
══════════════════════════════════════════ */
.sns-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.sns-icon  { color: var(--primary); display: flex; align-items: center; transition: opacity .2s; }
.sns-icon:hover { opacity: .7; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer { background: var(--primary); padding: 24px 22px; text-align: center; color: #fff; }
.site-footer p { font-family: var(--font-display); font-size: .88rem; font-style: italic; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-note { font-size: .72rem; color: rgba(255,255,255,.65); margin-top: 8px; font-style: normal; font-family: var(--font-body); line-height: 1.7; }

/* ══════════════════════════════════════════
   WordPress core helpers
══════════════════════════════════════════ */
.alignleft   { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright  { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }
img { max-width: 100%; height: auto; }
