/*
Theme Name: 麺屋 海心
Theme URI: https://kaishin-ramen.com/
Description: 麺屋 海心（辻堂）公式サイト用テーマ。静的HTML版のデザインをそのまま移植し、各ページの本文・お知らせ・店舗情報を管理画面から編集できるようにしたもの。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kaishin
*/

/* ── 共通（全ページ） ── */
:root {
  --black: #1a1a1a;
  --dark: #2b2118;
  --red: #b22222;
  --red-accent: #c41e3a;
  --gold: #c5a55a;
  --cream: #f5f0e8;
  --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--black);
  color: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ログイン中の管理バー分だけ固定ナビを下げる */
.admin-bar .nav-bar,
.admin-bar .scroll-nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .nav-bar,
  .admin-bar .scroll-nav { top: 46px; }
}

/* ── Nav Bar（下層ページ） ── */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.nav-bar-logo {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.nav-bar-logo span {
  font-size: 0.8rem;
  margin-right: 4px;
  color: rgba(245, 240, 232, 0.6);
}

.nav-bar-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-bar-links a {
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.nav-bar-links a:hover,
.nav-bar-links a.current {
  color: var(--cream);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 310;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: 0.3s;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26, 26, 24, 0.95);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.mobile-overlay.open { display: flex; }

.mobile-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
  list-style: none;
}

.mobile-overlay-links a {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.3rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

.mobile-overlay-links a:hover {
  color: var(--red-accent);
}

/* ── Page Hero（下層ページ） ── */
.page-hero {
  padding: 140px 40px 80px;
  text-align: center;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.page-hero-en {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
}

.page-hero-jp {
  font-family: 'Zen Old Mincho', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.5);
  letter-spacing: 0.6em;
  position: relative;
}

.page-hero-line {
  width: 30px;
  height: 2px;
  background: var(--red-accent);
  margin: 25px auto 0;
  position: relative;
}

/* ── 汎用本文（新規ページ・お知らせ詳細） ── */
.entry {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.8);
  line-height: 2;
}

.entry > * + * { margin-top: 1.4em; }

.entry h2,
.entry h3,
.entry h4 {
  font-family: 'Zen Old Mincho', serif;
  color: var(--cream);
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.entry h2 {
  font-size: 1.4rem;
  margin-top: 2.4em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
}

.entry h3 { font-size: 1.15rem; margin-top: 2em; }

.entry a { color: var(--cream); border-bottom: 1px solid var(--red-accent); text-decoration: none; }
.entry a:hover { color: var(--red-accent); }

.entry ul,
.entry ol { padding-left: 1.5em; }

.entry img { max-width: 100%; height: auto; }

.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 0.8rem; color: rgba(245, 240, 232, 0.45); margin-top: 8px; }

.entry blockquote {
  padding: 20px 25px;
  background: rgba(196, 30, 58, 0.06);
  border-left: 3px solid var(--red-accent);
}

.entry table { width: 100%; border-collapse: collapse; }
.entry th,
.entry td { padding: 12px 10px; border-bottom: 1px solid rgba(245, 240, 232, 0.08); text-align: left; }

.entry .wp-block-button__link {
  border: 1px solid var(--red-accent);
  background: transparent;
  color: var(--cream);
  border-radius: 0;
  padding: 14px 40px;
}

/* ── Footer ── */
footer {
  background: #0d0d0d;
  padding: 70px 20px 40px;
  text-align: center;
}

.footer-logo {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.8rem;
  color: var(--cream);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 240, 232, 0.2);
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.footer-social a:hover {
  border-color: var(--red-accent);
  color: var(--cream);
}

.footer-info {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.3);
  line-height: 2.2;
  margin-bottom: 30px;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.2);
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  padding-top: 25px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-bar {
    padding: 0 20px;
    height: 50px;
  }

  .nav-bar-links { display: none; }

  .hamburger { display: flex; }

  .nav-bar-logo { font-size: 1.3rem; }

  .page-hero {
    padding: 100px 20px 50px;
  }

  .page-hero-en {
    font-size: 1.6rem;
  }

  .entry { padding: 40px 20px 70px; }

  .footer-logo { font-size: 1.3rem; }
}
