/* 01. Design Tokens */
:root {
  --charcoal: #1c1c1e;
  --charcoal-mid: #2c2c2e;
  --charcoal-light: #3a3a3c;
  --cream: #faf9f7;
  --off-white: #f2f0ec;
  --pure-white: #ffffff;
  --red: #006a77;
  --red-dark: #00bcd4;
  --red-light: rgba(192,40,30,0.12);
  --red-border: rgba(192,40,30,0.3);
  --amber: #c6b471;
  --amber-light: #e8a84a;
  --text-dark: #1c1c1e;
  --text-mid: #4a4a4c;
  --text-muted: #8a8a8e;
  --text-on-dark: #f0ece4;
  --text-on-dark-muted: rgba(240,236,228,0.68);
  --border-light: rgba(28,28,30,0.1);
  --border-dark: rgba(240,236,228,0.14);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-hover: 0 20px 52px rgba(0,0,0,0.28);
  --gold: var(--amber);
  --gold-light: var(--amber-light);
  --vermilion: var(--red);
  --bg-dark: var(--charcoal);
  --bg-dark-sub: var(--charcoal-mid);
  --bg-light: var(--cream);
  --font-serif: "Noto Serif JP", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: "Montserrat", sans-serif;
  --ease: cubic-bezier(0.22,1,0.36,1);
}

/* 02. Base Reset / Typography */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
body::before { display: none; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease; }
a:hover { color: #00bcd4; }
button { font: inherit; }

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }

/* 03. Shared Section Headings */
.section-header,
.menu-section-header,
.slf-header,
.course-list-header,
.news-section-header,
.job-section-header,
.contact-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2,
.menu-main-title,
.slf-main-title,
.course-list-title,
.news-main-title,
.job-main-title,
.contact-main-title {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-en);
  font-size: clamp(2rem, 4.8vw, 3.45rem);
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.1;
  text-transform: uppercase;
}
.section-header p,
.menu-sub-text,
.slf-sub-text,
.course-list-desc,
.news-sub-text,
.job-sub-text,
.contact-sub-text {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 2;
}

/* 04. Global Header / Navigation */
.global-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 90px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.global-header::after { display: none; }
.header-logo {
  display: flex;
  align-items: center;
  color: var(--pure-white);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-logo img { width: auto; max-height: 48px; object-fit: contain; }
.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-width: 0;
}
.desktop-nav a {
  position: relative;
  color: var(--pure-white);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--pure-white);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after { width: 100%; }
.header-btns { display: none; }
.btn-header-tel { color: var(--pure-white); font-weight: 800; }

/* 05. Common Buttons */
.btn-header-reserve,
.course-list-reserve,
.slf-reserve-btn,
.btn-menu-more,
.btn-recruit-link,
.btn-job-apply,
.btn-submit-contact,
.btn-nab-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 26px;
  border: 1px solid var(--red-dark);
  border-radius: 0;
  background: var(--red-dark);
  color: var(--pure-white);
  font-family: var(--font-en), var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
}
.btn-header-reserve:hover,
.course-list-reserve:hover,
.slf-reserve-btn:hover,
.btn-menu-more:hover,
.btn-recruit-link:hover,
.btn-job-apply:hover,
.btn-submit-contact:hover,
.btn-nab-back:hover {
  background: var(--pure-white);
  border-color: var(--pure-white);
  color: var(--red-dark);
}
.menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pure-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(28,28,30,.97);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity .35s ease, visibility .35s ease, transform .35s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.mobile-nav-overlay a {
  color: var(--text-on-dark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .18em;
}
.mobile-nav-overlay a:hover { color: var(--amber); }

/* 06. Hero Blocks: hero_main / hero_page */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  text-align: center;
}
.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(0deg, rgba(28,28,30,.7) 0%, rgba(28,28,30,.1) 30%, rgba(28,28,30,.1) 70%, rgba(28,28,30,.5) 100%);
  pointer-events: none;
}
.hero-img-window { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-img-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(28,28,30,.38);
  pointer-events: none;
}
.hero-img-window img,
.hero-img-window video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) contrast(1.08) saturate(.92);
}
@keyframes heroPagePanBg {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-2%, -1%); }
}

.page-hero-wrapper {
  position: relative;
  min-height: 480px;
  padding: 200px 20px 100px;
  overflow: hidden;
  text-align: center;
  color: var(--pure-white);
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-wrapper::after,
.ph-overlay {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,8,6,.60) 0%, rgba(10,8,6,.18) 45%, rgba(10,8,6,.72) 100%);
  pointer-events: none;
}
.page-hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--page-hero-bg);
  background-size: cover;
  background-position: center;
  animation: heroPagePanBg 40s linear infinite alternate;
}
.ph-container {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}
.ph-title {
  display: inline-block;
  margin: 0;
  color: var(--pure-white);
  font-family: var(--font-en), var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.2;
  text-shadow: 0 4px 24px rgba(0,0,0,.65);
}
.ph-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.ph-desc {
  max-width: 580px;
  margin: 22px auto 0;
  color: rgba(240,236,228,.65);
  font-size: .95rem;
  line-height: 2;
  letter-spacing: .04em;
}

/* 07. Global Footer */
.global-footer {
  padding: 86px 40px 58px;
  background: #0f0f11;
  color: var(--pure-white);
  border-top: 1px solid rgba(255,255,255,.08);
}
.global-footer-clean-v5,
.pizza-footer {
  padding: 80px 40px 60px;
  background: #0f0f11;
  color: var(--pure-white);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-container-v5 {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-nav-links-v5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 35px;
  margin-bottom: 50px;
}
.footer-nav-links-v5 a {
  color: rgba(255,255,255,.62);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.footer-nav-links-v5 a:hover,
.footer-nav-links-v5 a.active {
  color: #b89c50;
}
.footer-brand-logo-v5 {
  margin-bottom: 42px;
}
.footer-logo-img-v5 {
  width: auto;
  max-height: 48px;
  margin: 0 auto;
  object-fit: contain;
}
.footer-brand-logo-v5 h2 {
  margin: 0;
  color: var(--pure-white);
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-genre-v5 {
  margin: 14px 0 0;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.footer-copyright-v5 p {
  margin: 0;
  color: rgba(255,255,255,.32);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .1em;
}
.info-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px,.9fr) 1.1fr;
  gap: 54px;
  align-items: stretch;
}
.footer-brand h2 {
  margin: 0;
  color: var(--pure-white);
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-genre { margin-top: 8px; color: rgba(255,255,255,.54); font-size: 12px; letter-spacing: .12em; }
.footer-table { width: 100%; margin-top: 30px; border-collapse: collapse; }
.footer-table th,
.footer-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.footer-table th { width: 96px; color: var(--amber); }
.footer-table td { color: rgba(255,255,255,.76); }
.footer-tel strong { color: var(--pure-white); font-size: 22px; }
.payment-title { margin: 24px 0 10px; color: var(--amber); font-size: 12px; font-weight: 800; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.7); }
.pay-tag { border: 1px solid rgba(255,255,255,.16); padding: 3px 8px; font-size: 11px; }
.gmap-wrap { min-height: 320px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: var(--charcoal-mid); }
.gmap-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.15) contrast(.95); }
.gmap-placeholder { min-height: 320px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.58); }
.footer-copy-text,
.footer-copy {
  padding: 20px;
  background: #0f0f11;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.34);
  text-align: center;
  font-size: 11px;
}

/* 07b. Floating Action Buttons */
.fc-floating-actions {
  position: fixed;
  right: 0;
  top: 55%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
}
.fc-floating-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
  padding: 22px 12px;
  background: var(--red);
  border: 1px solid #b89c50;
  border-right: 0;
  color: var(--pure-white);
  font-weight: 800;
  letter-spacing: .08em;
}
.fc-floating-action i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pure-white);
  border-radius: 50%;
}
.fc-floating-action span { writing-mode: vertical-rl; text-orientation: upright; font-size: 14px; }
.fc-floating-action:hover { background: #fff; color: #00bcd4; }

/* 08. Responsive Overrides */
@media (max-width: 991px) {
  .global-header {
    min-height: 60px;
    padding: 0 20px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .header-logo img { max-height: 35px; }
  .desktop-nav,
  .header-btns { display: none; }
  .menu-trigger { display: inline-flex; }
}

@media (max-width: 768px) {
  body { letter-spacing: .03em; }
  .hero-wrapper { height: 62vh; min-height: 460px; }
  .page-hero-wrapper { min-height: 340px; padding: 140px 20px 72px; }
  .ph-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .ph-title::after { display: none; }
  .info-grid { grid-template-columns: 1fr; gap: 34px; }
  .global-footer { padding: 64px 22px 42px; }
  .global-footer-clean-v5,
  .pizza-footer { padding: 60px 20px 40px; }
  .footer-nav-links-v5 {
    gap: 22px 28px;
    margin-bottom: 40px;
  }
  .footer-nav-links-v5 a {
    font-size: 11px;
  }
  .footer-brand-logo-v5 {
    margin-bottom: 34px;
  }
  .footer-brand-logo-v5 h2 {
    font-size: 22px;
  }
  .fc-floating-actions {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    flex-direction: row;
    gap: 0;
    transform: none;
  }
  .fc-floating-action {
    flex: 1;
    min-width: 0;
    flex-direction: row;
    justify-content: center;
    padding: 13px 10px;
    border-right: 1px solid #b89c50;
    border-left: 0;
    border-bottom: 0;
  }
  .fc-floating-action span {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 13px;
  }
  .fc-floating-action i { width: 28px; height: 28px; }
}
