/* =========================================================
   MAGIC BAR-Packet- website
   Design: 深夜のマジックバーの静けさと非日常感
   Palette: 漆黒 × 燻んだゴールド × 深い紫
   ========================================================= */

:root {
  --bg: #0d0a10;
  --bg-alt: #161119;
  --card: #1c1622;
  --card-border: rgba(201, 168, 106, 0.18);
  --gold: #c9a86a;
  --gold-bright: #e6c98a;
  --burgundy-bright: #d1596e;
  --text: #f3ede2;
  --text-mute: #b9aec0;
  --text-faint: #8b8194;
  --serif: "Shippori Mincho", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --max: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--gold-bright);
  color: #1a1410;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus {
  top: 12px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 0.6em;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; color: var(--text-mute); }

ul { padding-left: 1.2em; color: var(--text-mute); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 10, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand img { height: 34px; width: auto; flex-shrink: 0; }

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  color: var(--gold-bright);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  font-size: 1.2rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text-mute);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.tel-link {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tel-link .tel-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--gold);
  transition: transform .2s, background .2s, color .2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a9853f);
  color: #1a1410;
  border: none;
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  color: var(--gold-bright);
  background: transparent;
}
.btn-ghost:hover { background: rgba(201,168,106,0.08); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 30%;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,10,16,0.35) 0%, rgba(13,10,16,0.55) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13,10,16,0.75) 0%, rgba(13,10,16,0.15) 60%);
  z-index: -1;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 24px 70px;
  width: 100%;
}

.eyebrow {
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--text);
  max-width: 14em;
  margin-bottom: 0.4em;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-size: 0.85rem;
  border: 1px solid var(--card-border);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  transition: border-color .2s;
}
.rating-badge:hover { border-color: var(--gold); }
.rating-badge .stars { letter-spacing: 2px; }

.hero .lead {
  font-size: 1.05rem;
  color: var(--text-mute);
  max-width: 34em;
  margin-bottom: 2em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  min-height: 38vh;
  align-items: center;
}
.page-hero .hero-inner { padding: 90px 24px 40px; text-align: center; }
.page-hero h1 { margin: 0 auto 0.7em; }
.page-hero .lead { margin-left: auto; margin-right: auto; margin-top: 0; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text); }
.section-head p { margin-top: 14px; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.card h2, .card h3 {
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.card .num {
  font-family: var(--serif);
  color: var(--burgundy-bright);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 14px;
}

.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; height: 240px; object-fit: cover; }
.photo-card .cap { padding: 20px 22px; }

/* ---------- Voice / quotes ---------- */
.quote-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}
.quote-card .who {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-top: 16px;
  display: block;
}

/* ---------- Price table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th, .price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
}
.price-table th {
  color: var(--text-faint);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-table td.amount { color: var(--gold-bright); font-family: var(--serif); font-size: 1.05rem; text-align: right; }
.price-table tr:last-child td { border-bottom: none; }

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}
.menu-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--card-border);
  color: var(--text-mute);
  font-size: 0.92rem;
}
.menu-list li span:last-child { color: var(--gold-bright); white-space: nowrap; padding-left: 12px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--card-border);
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 4px;
  font-family: var(--serif);
  color: var(--text);
  font-size: 1.02rem;
  display: flex;
  gap: 14px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  color: var(--gold-bright);
  font-family: var(--serif);
  flex-shrink: 0;
}
.faq-item .a {
  display: flex;
  gap: 14px;
  padding: 0 4px 24px;
  color: var(--text-mute);
}
.faq-item .a::before {
  content: "A";
  color: var(--burgundy-bright);
  font-family: var(--serif);
  flex-shrink: 0;
}

/* ---------- Shop info ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}
.info-table th {
  width: 9em;
  color: var(--text-faint);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.info-table td { color: var(--text); }

.map-frame {
  width: 100%;
  height: 340px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #fff;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(120% 140% at 20% 0%, rgba(168,52,74,0.35), transparent 60%), var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
}
.cta-band h2 { color: var(--text); }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), #a9853f);
  color: #1a1410;
  font-weight: 600;
  padding: 13px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a080c;
  padding: 60px 0 30px;
  border-top: 1px solid var(--card-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; }
.footer-col h4 {
  color: var(--gold-bright);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-bright); }
.social-row { display: flex; gap: 14px; margin-top: 6px; }
.social-row a {
  width: 44px; height: 44px;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.social-row a:hover { border-color: var(--gold); color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 16px 0 0;
}
.breadcrumb a:hover { color: var(--gold-bright); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: 0.8rem; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Hamburger nav kicks in whenever the full nav no longer fits next to the
   logo and phone/CTA — tuned for long Japanese nav labels, not just phones. */
@media (max-width: 1400px) {
  .main-nav {
    position: fixed;
    top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 20px 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .25s ease, visibility 0s linear 0s;
  }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-toggle { display: block; }
  .header-cta .tel-link { display: none; }
}

@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .menu-list { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 66px; }
  /* Desktop-tuned <br> placements in hero headings (e.g. "一生忘れられない
     体験を、<br>目の前30cmの魔法で。") wrap one character too early at the
     clamp()'d 2rem floor, splitting words like 体験/カクテル mid-character.
     Shrinking to 1.5rem lets the line reach its intended <br> naturally. */
  .hero h1 { font-size: 1.5rem; }
  /* Sticky mobile-call-bar already covers this CTA below 720px; the header
     button was pushing the brand lockup wide enough to clip off-screen. */
  .header-cta .btn-primary { display: none; }
}

@media (max-width: 400px) {
  .brand small { display: none; }
}

/* OSの「視差効果を減らす」設定を尊重し、ホバー/メニュー開閉の
   トランジションを実質即時にする(表示・非表示のロジック自体は
   visibility/transformのままなので機能は変わらない)。 */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
