/*
Theme Name: HIBIKI Shibuya
Theme URI: https://example.com/hibiki-shibuya
Author: HIBIKI
Author URI: https://example.com
Description: WAGYU YAKINIKU & SUKIYAKI 響 HIBIKI — Shibuya 公式テーマ。カスタマイザーから店舗情報・画像・テキストを編集、コースはカスタム投稿タイプで追加できます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hibiki-shibuya
Tags: restaurant, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============ THEME VARIABLES ============ */
:root {
  --bg: #0a0a0a;
  --bg-soft: #141210;
  --bg-card: #181613;
  --fg: #f2ede3;
  --fg-dim: #b8b0a2;
  --fg-mute: #7a7366;
  --line: rgba(242, 237, 227, 0.12);
  --line-strong: rgba(242, 237, 227, 0.22);
  --accent: #d4af37;
  --accent-2: #8b0000;
  --accent-ink: #0a0a0a;
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang^="ja"] body { font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

.serif { font-family: 'Cormorant Garamond', 'Noto Serif JP', serif; }
.display { font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif; letter-spacing: 0.04em; }

/* Screen reader only */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}

/* ============ LAYOUT HELPERS ============ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
.section__head { margin-bottom: clamp(32px, 5vw, 64px); }
.section__head--center { text-align: center; }
.section__tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.section__title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-weight: 500; font-size: clamp(32px, 5vw, 56px); line-height: 1.1;
  margin: 0 0 14px; letter-spacing: -0.01em; text-wrap: balance;
}
html[lang^="ja"] .section__title { font-weight: 600; }
.section__sub { color: var(--fg-dim); font-size: 16px; max-width: 640px; margin: 0; }
.section__head--center .section__sub { margin: 0 auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 14px; letter-spacing: 0.08em; font-weight: 600;
  text-transform: uppercase; border: 1px solid transparent; border-radius: 2px;
  transition: all .2s ease; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn--gold { background: var(--accent); color: var(--accent-ink); }
.btn--gold:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--wide { width: 100%; padding: 16px 28px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom-color: var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  letter-spacing: 0.12em; font-size: 18px;
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
}
.nav__brand img { max-height: 44px; width: auto; display: block; }
.nav__brand-text { display: flex; align-items: baseline; gap: 10px; }
.nav__brand-mark {
  color: var(--accent); font-size: 28px;
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif; font-weight: 700;
}
.nav__brand-en { font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif; }
.nav__brand-sub {
  font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.3em;
  color: var(--fg-mute); text-transform: uppercase;
}
.nav__links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-dim); transition: color .2s; position: relative;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 1px; background: var(--accent); transition: right .25s ease;
}
.nav__links a:hover::after { right: 0; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__reserve { padding: 10px 20px; font-size: 12px; letter-spacing: 0.1em; }
.nav__toggle {
  display: none; background: transparent; border: 1px solid var(--line-strong);
  color: var(--fg); padding: 8px 10px; border-radius: 2px;
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav--open .nav__links {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; padding: 20px;
    background: var(--bg-soft); border-top: 1px solid var(--line); gap: 16px;
  }
}

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; padding: 120px clamp(20px, 4vw, 64px) 80px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 20px;
}
.hero__kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-weight: 500; line-height: 0.95; margin: 0 0 24px; letter-spacing: -0.02em;
}
.hero__t1, .hero__t2 { display: block; font-size: clamp(48px, 8vw, 120px); }
.hero__t2 { font-style: italic; color: var(--fg-dim); font-size: clamp(36px, 6vw, 88px); margin-left: 0.8em; }
.hero__brand {
  display: flex; align-items: baseline; gap: 0.15em;
  font-size: clamp(80px, 13vw, 200px); line-height: 0.9;
  color: var(--accent); letter-spacing: 0.04em; margin-top: 12px; flex-wrap: wrap;
}
.hero__brand-kanji { font-family: 'Shippori Mincho', 'Noto Serif JP', serif; font-weight: 700; }
.hero__brand-en { font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif; font-weight: 400; font-size: 0.72em; }
.hero__sub {
  font-size: clamp(16px, 1.4vw, 20px); color: var(--fg-dim);
  max-width: 540px; margin: 0 0 32px; line-height: 1.5; text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__mosaic-grid {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr);
  gap: 4px; z-index: 1;
}
.mtile { background-size: cover; background-position: center; filter: saturate(1.05) contrast(1.02); }
.mtile--a { grid-column: 1 / 3; grid-row: 1 / 3; }
.mtile--b { grid-column: 3 / 5; grid-row: 1 / 4; }
.mtile--c { grid-column: 5 / 7; grid-row: 1 / 3; }
.mtile--d { grid-column: 1 / 3; grid-row: 3 / 5; }
.mtile--e { grid-column: 3 / 5; grid-row: 4 / 5; }
.mtile--f { grid-column: 5 / 7; grid-row: 3 / 5; }
.hero__mosaic-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, color-mix(in oklab, var(--bg) 85%, transparent) 0%, color-mix(in oklab, var(--bg) 55%, transparent) 40%, color-mix(in oklab, var(--bg) 30%, transparent) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 40%, transparent) 0%, color-mix(in oklab, var(--bg) 0%, transparent) 30%, color-mix(in oklab, var(--bg) 80%, transparent) 100%);
  z-index: 2;
}
.hero__content { position: relative; z-index: 3; max-width: 760px; }
.hero__scroll {
  position: absolute; bottom: 32px; right: clamp(20px, 4vw, 64px); z-index: 3;
  font-size: 11px; letter-spacing: 0.3em; color: var(--fg-mute);
  writing-mode: vertical-rl; text-transform: uppercase;
}

/* ============ ABOUT ============ */
.about { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.about__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
  max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px);
}
.about__body {
  font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75;
  color: var(--fg-dim); max-width: 560px; margin: 0 0 32px; text-wrap: pretty;
}
.about__body p { margin: 0 0 16px; }
.about__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 12px; letter-spacing: 0.05em; color: var(--fg-dim);
}
.chip::before { content: "✦"; color: var(--accent); margin-right: 8px; font-size: 10px; }
.about__visual { position: relative; }
.about__photo {
  aspect-ratio: 4/5; background-size: cover; background-position: center;
  position: relative; border-radius: 2px;
}
.about__stamp {
  position: absolute; bottom: -30px; right: -30px;
  width: 140px; height: 140px; color: var(--accent); background: var(--bg);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent);
}
.stamp-ring { position: absolute; inset: 0; animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp-center { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--accent); }
.about__caption {
  position: absolute; top: 20px; left: 20px;
  background: var(--bg); color: var(--accent);
  padding: 6px 12px; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; border: 1px solid var(--accent);
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__stamp { width: 100px; height: 100px; bottom: -20px; right: -20px; }
  .stamp-center { font-size: 32px; }
}

/* ============ COURSES (MENU variant) ============ */
.courses {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  max-width: 1400px; margin: 0 auto;
}
.menu-card { border: 1px solid var(--line); background: var(--bg-card); }
.menu-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0; }
.menu-row + .menu-row { border-top: 1px solid var(--line); }
.menu-row__photo {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  min-height: 360px; background-color: var(--bg-soft);
}
.menu-row__content { padding: clamp(28px, 4vw, 56px); }
.menu-row__top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.menu-row__num { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.2em; color: var(--accent); font-size: 16px; }
.menu-row__rule { flex: 1; height: 1px; background: var(--line-strong); }
.menu-row__price { font-family: 'Bebas Neue', sans-serif; color: var(--accent); font-size: 32px; line-height: 1; }
.menu-row__price span { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--fg-dim); margin-left: 6px; letter-spacing: 0.05em; }
.menu-row__name {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(24px, 2.4vw, 32px); margin: 0 0 4px; font-weight: 500;
}
.menu-row__sub { font-size: 11px; letter-spacing: 0.2em; color: var(--fg-mute); text-transform: uppercase; margin-bottom: 20px; }
.menu-row__desc { color: var(--fg-dim); margin: 0 0 24px; line-height: 1.7; }
.menu-row__items {
  background: var(--bg); padding: 20px 24px; margin-bottom: 24px;
  border-left: 2px solid var(--accent);
}
.menu-row__items-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
.menu-row__items ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
  font-size: 13px; color: var(--fg-dim);
}
.menu-row__items li { padding: 4px 0; }
.menu-row__items li::before { content: "・"; color: var(--accent); }
@media (max-width: 860px) {
  .menu-row { grid-template-columns: 1fr; }
  .menu-row__items ul { grid-template-columns: 1fr; }
}

/* ============ INSTAGRAM ============ */
.insta {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  max-width: 1400px; margin: 0 auto;
}
.ig-note { font-size: 11px; letter-spacing: 0.15em; color: var(--fg-mute); text-transform: uppercase; }
.insta__plugin-area { margin-top: 32px; }
.insta__placeholder {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
  padding: 48px; border: 1px dashed var(--line-strong);
  text-align: center; color: var(--fg-mute); font-size: 13px;
}
.insta__placeholder-cell {
  aspect-ratio: 1; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-mute);
}
@media (max-width: 860px) {
  .insta__placeholder { grid-template-columns: repeat(3, 1fr); }
}

/* ============ ACCESS ============ */
.access {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  max-width: 1400px; margin: 0 auto;
}
.access__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 4vw, 64px); }
.access__map {
  position: relative; aspect-ratio: 4/3;
  background: var(--bg-card); border: 1px solid var(--line); overflow: hidden;
}
.access__map iframe { filter: saturate(0.8) contrast(1.05); width: 100%; height: 100%; border: 0; }
.access__map-link {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--bg); color: var(--accent);
  padding: 10px 16px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1px solid var(--accent); transition: all .2s;
}
.access__map-link:hover { background: var(--accent); color: var(--accent-ink); }
.access__info { display: flex; flex-direction: column; }
.info-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.info-row__label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; padding-top: 2px;
}
.info-row__val { color: var(--fg); font-size: 15px; line-height: 1.6; }
.info-row__val a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.pay-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chip {
  display: inline-flex; align-items: center; padding: 4px 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.05em; color: var(--fg-dim); border-radius: 2px;
}
@media (max-width: 860px) {
  .access__grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 100px 1fr; gap: 12px; }
}

/* ============ CONTACT PAGE ============ */
.contact-page { padding-top: 120px; }
.contact {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 4vw, 64px);
  max-width: 900px; margin: 0 auto;
}
.cform { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.field__label em { font-style: normal; color: var(--accent-2); }
.field input, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--fg);
  padding: 14px 16px; font-family: inherit; font-size: 15px;
  border-radius: 2px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 180px; }
.cform__msg {
  padding: 14px 20px; font-size: 14px; letter-spacing: 0.02em; border-radius: 2px;
}
.cform__msg--ok { background: color-mix(in oklab, var(--accent) 15%, transparent); border: 1px solid var(--accent); color: var(--accent); }
.cform__msg--err { background: color-mix(in oklab, var(--accent-2) 15%, transparent); border: 1px solid var(--accent-2); color: var(--accent-2); }
.cform__hp { position: absolute; left: -9999px; opacity: 0; }

/* ============ PAGE (default) ============ */
.page-content {
  max-width: 900px; margin: 0 auto;
  padding: 140px clamp(20px, 4vw, 64px) 80px;
}
.page-content h1 {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(32px, 5vw, 56px); font-weight: 500;
  margin: 0 0 32px; letter-spacing: -0.01em;
}
.page-content p { color: var(--fg-dim); margin: 0 0 16px; line-height: 1.75; }
.page-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ============ FOOTER ============ */
.footer {
  padding: 60px clamp(20px, 4vw, 64px) 40px;
  border-top: 1px solid var(--line); background: var(--bg-soft);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  max-width: 1400px; margin: 0 auto;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer__brand {
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  font-size: 28px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px;
}
.footer__brand .f-kanji {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 700; margin-right: 8px;
}
.footer__brand img { max-height: 52px; width: auto; }
.footer__tag { color: var(--fg-dim); font-size: 14px; margin: 0 0 16px; }
.footer__col h4 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px; font-weight: 600;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg-dim); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  max-width: 1400px; margin: 0 auto; padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--fg-mute); letter-spacing: 0.05em;
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ============ FLOATING RESERVE ============ */
.float-reserve {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 22px; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700;
  border: 0; border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  animation: pulse 2.4s ease-out infinite;
  text-decoration: none;
}
.float-reserve:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
@keyframes pulse {
  0% { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 0 color-mix(in oklab, var(--accent) 80%, transparent); }
  70% { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 18px transparent; }
  100% { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 0 transparent; }
}
