/* =========================================================
   Tanagokoro Seikotsuin — Styles
   ========================================================= */
:root {
  --c-bg: #f4f6f8;
  --c-bg-alt: #edf0f4;
  --c-ink: #1a2030;
  --c-mute: #5a6880;
  --c-line: rgba(27,46,74,.12);
  --c-accent: #d45f20;
  --c-accent-d: #b04c10;
  --c-navy: #1b2e4a;
  --c-dark: #111820;
  --ff-jp: "Noto Sans JP", sans-serif;
  --ff-display: "Oswald", sans-serif;
  --w-max: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,.84,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--c-bg); color: var(--c-ink); font-family: var(--ff-jp); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Loader ===== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-brand {
  font-family: var(--ff-display);
  font-size: 24px; letter-spacing: .45em;
  color: var(--c-accent); display: block; margin-bottom: 24px;
}
.loader-bar { width: 160px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; background: var(--c-accent); border-radius: 2px; animation: load-fill 1s var(--ease-out) forwards; }
@keyframes load-fill { from { width: 0; } to { width: 100%; } }

/* ===== Demo Badge ===== */
.demo-badge {
  position: fixed; bottom: 16px; right: 16px; z-index: 999;
  background: rgba(0,0,0,.7); color: #fff;
  font-family: var(--ff-jp); font-size: 10px; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 2px; pointer-events: none;
}

/* ===== Header ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--pad-x);
  transition: background .4s var(--ease), box-shadow .4s;
}
#header.is-scrolled {
  background: rgba(17,24,32,.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.hd-inner {
  max-width: var(--w-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.hd-logo { display: flex; flex-direction: column; }
.hd-logo-en {
  font-family: var(--ff-jp); font-size: 18px; font-weight: 700;
  letter-spacing: .12em; color: #fff;
}
.hd-logo-jp {
  font-size: 11px; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
}
.hd-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { list-style: none; display: flex; gap: 4px; }
.nav-list a {
  font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.75);
  padding: 8px 12px; transition: color .2s;
}
.nav-list a:hover, .nav-list a.is-active { color: #fff; }
.nav-cta {
  background: var(--c-accent); color: #fff !important;
  padding: 8px 16px !important; font-weight: 500;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--c-accent-d) !important; }

/* ===== Hamburger ===== */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 6px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; height: 1.5px; background: #fff;
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Drawer ===== */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-inner { text-align: center; }
.drawer-inner ul { list-style: none; }
.drawer-inner li { margin: 4px 0; }
.drawer-inner a {
  font-family: var(--ff-display); font-size: 28px; font-weight: 300;
  letter-spacing: .1em; color: rgba(255,255,255,.7);
  transition: color .2s; display: block; padding: 10px 0;
}
.drawer-inner a:hover { color: #fff; }
.drawer-contact { margin-top: 40px; }
.drawer-tel a { font-family: var(--ff-display); font-size: 22px; color: var(--c-accent); }
.drawer-hours { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 6px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, #0d1a2e 0%, #1b2e4a 40%, #1e3a5a 70%, #111820 100%);
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 60px);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 10% 90%, rgba(212,95,32,.15), transparent 60%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 120px var(--pad-x) 80px;
  max-width: var(--w-max); margin: 0 auto; width: 100%;
}
.hero-history {
  display: inline-flex; align-items: baseline; gap: 10px;
  border: 1px solid rgba(212,95,32,.4);
  padding: 8px 20px; margin-bottom: 32px;
}
.hero-history-num {
  font-family: var(--ff-display); font-size: 36px; font-weight: 500;
  color: var(--c-accent); line-height: 1;
}
.hero-history-num sup { font-size: 14px; }
.hero-history-txt { font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.hero-en {
  font-family: var(--ff-display); font-size: clamp(48px,8vw,110px);
  font-weight: 300; letter-spacing: .05em; color: #fff;
  line-height: 1; margin-bottom: 16px; display: block;
}
.hero-jp {
  font-family: var(--ff-jp); font-size: clamp(26px,4vw,52px);
  font-weight: 700; color: #fff; margin-bottom: 20px;
  line-height: 1.4; letter-spacing: .04em;
}
.hero-lead {
  font-size: clamp(13px,1.8vw,16px); line-height: 2;
  color: rgba(255,255,255,.6); margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-accent); color: #fff;
  padding: 14px 32px; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--c-accent-d); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.35); color: #fff;
  padding: 14px 32px; font-size: 13px; letter-spacing: .12em;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline {
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-accent); color: var(--c-accent);
  padding: 13px 40px; font-size: 13px; letter-spacing: .12em;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--c-accent); color: #fff; }
.btn-instagram {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff; padding: 13px 28px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; transition: opacity .2s;
}
.btn-instagram:hover { opacity: .85; }
.hero-scrolldown {
  position: absolute; bottom: 40px; left: var(--pad-x);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scrolldown span {
  font-family: var(--ff-display); font-size: 10px;
  letter-spacing: .3em; color: rgba(255,255,255,.4);
  writing-mode: vertical-rl;
}
.hero-scrolldown-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrolldown 2s ease-in-out infinite;
}
@keyframes scrolldown { 0%,100%{transform:scaleY(0);transform-origin:top;} 50%{transform:scaleY(1);transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* ===== Ticker ===== */
.ticker {
  background: var(--c-accent); color: #fff;
  overflow: hidden; padding: 13px 0; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 56px;
  animation: ticker 20s linear infinite;
}
.ticker-track span {
  font-family: var(--ff-display); font-size: 12px;
  letter-spacing: .28em; flex-shrink: 0;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections common ===== */
.inner { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-label {
  font-family: var(--ff-display); font-size: 11px;
  letter-spacing: .35em; color: var(--c-accent);
  margin-bottom: 12px; display: block;
}
.sec-title {
  font-family: var(--ff-jp); font-size: clamp(24px,3.5vw,40px);
  font-weight: 700; line-height: 1.4; color: var(--c-ink);
}
.sec-lead { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--c-mute); }

/* ===== Features ===== */
.features { padding: 96px 0; background: var(--c-bg-alt); }
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feat-card {
  background: var(--c-bg); padding: 32px 24px;
  border: 1px solid var(--c-line); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27,46,74,.1); }
.feat-num {
  font-family: var(--ff-display); font-size: 11px; letter-spacing: .25em;
  color: var(--c-accent); margin-bottom: 16px;
}
.feat-icon { width: 44px; height: 44px; color: var(--c-navy); margin-bottom: 16px; }
.feat-icon svg { width: 100%; height: 100%; }
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feat-card p { font-size: 13px; line-height: 1.8; color: var(--c-mute); }

/* ===== Menu ===== */
.menu { padding: 96px 0; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.menu-card {
  border: 1px solid var(--c-line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27,46,74,.1); }
.menu-card-head { padding: 28px 22px; }
.menu-en {
  font-family: var(--ff-display); font-size: 10px;
  letter-spacing: .3em; color: rgba(255,255,255,.6); margin-bottom: 6px;
}
.menu-card-head h3 { font-size: 18px; font-weight: 700; color: #fff; }
.menu-list { list-style: none; padding: 20px 22px; background: var(--c-bg); }
.menu-list li {
  font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid var(--c-line); color: var(--c-mute);
}
.menu-list li:last-child { border-bottom: none; }
.menu-note {
  font-size: 11px; letter-spacing: .1em; color: var(--c-accent);
  padding: 10px 22px 16px; background: var(--c-bg);
  font-weight: 500;
}

/* ===== Staff ===== */
.staff { padding: 96px 0; background: var(--c-bg-alt); }
.staff-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.staff-card {
  background: var(--c-bg); border: 1px solid var(--c-line); padding: 40px;
}
.staff-card-inner { display: flex; gap: 28px; }
.staff-photo-wrap { flex-shrink: 0; }
.staff-photo-placeholder {
  width: 96px; height: 96px;
  background: var(--c-bg-alt); border: 1px solid var(--c-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(27,46,74,.3);
}
.staff-photo-placeholder svg { width: 48px; height: 48px; }
.staff-role { font-size: 10px; letter-spacing: .2em; color: var(--c-accent); margin-bottom: 4px; }
.staff-name { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.staff-kana { font-size: 12px; font-weight: 400; color: var(--c-mute); margin-left: 8px; }
.staff-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.staff-tags span {
  font-size: 11px; letter-spacing: .08em; padding: 4px 10px;
  border: 1px solid var(--c-line); color: var(--c-navy);
}
.staff-bio { font-size: 13px; line-height: 1.9; color: var(--c-mute); margin-bottom: 16px; }
.staff-spec-label { font-size: 10px; letter-spacing: .15em; color: var(--c-accent); margin-bottom: 4px; }
.staff-spec p { font-size: 12px; color: var(--c-mute); }

/* History Timeline */
.staff-history { padding: 40px; background: var(--c-navy); }
.staff-history-label {
  font-family: var(--ff-display); font-size: 11px;
  letter-spacing: .3em; color: var(--c-accent); margin-bottom: 28px;
}
.history-timeline { display: flex; flex-direction: column; gap: 0; }
.history-item {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 20px; padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.history-item:last-child { border-bottom: none; }
.history-year {
  font-family: var(--ff-display); font-size: 18px;
  color: var(--c-accent); font-weight: 400; padding-top: 2px;
}
.history-body strong { font-size: 14px; color: #fff; display: block; margin-bottom: 4px; }
.history-body p { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.5); }

/* ===== Hours ===== */
.hours { padding: 96px 0; }
.hours-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table th, .hours-table td {
  padding: 12px 10px; text-align: center;
  border: 1px solid var(--c-line);
}
.hours-table thead th {
  background: var(--c-navy); color: #fff;
  font-family: var(--ff-display); font-size: 13px; letter-spacing: .1em;
  font-weight: 400;
}
.hours-table tbody th {
  font-size: 12px; background: var(--c-bg-alt); color: var(--c-mute); text-align: left; white-space: nowrap;
}
.hours-table td.open { color: var(--c-accent); font-weight: 700; font-size: 18px; }
.hours-table td.half { color: var(--c-navy); font-weight: 700; font-size: 18px; }
.hours-table td.closed { color: rgba(27,46,74,.2); font-size: 18px; }
.hours-note { font-size: 12px; color: var(--c-mute); margin-top: 10px; line-height: 1.8; }

.hours-info { display: flex; flex-direction: column; gap: 24px; }
.access-item { display: flex; gap: 16px; align-items: flex-start; }
.access-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--c-navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent);
}
.access-icon svg { width: 18px; height: 18px; }
.access-label { font-size: 10px; letter-spacing: .15em; color: var(--c-accent); margin-bottom: 3px; }
.access-item p { font-size: 13px; line-height: 1.8; color: var(--c-mute); }
.access-item a { color: var(--c-accent); }
.access-item a:hover { text-decoration: underline; }

/* ===== Contact ===== */
.contact { padding: 96px 0; background: var(--c-dark); }
.contact .sec-label { color: var(--c-accent); }
.contact .sec-title { color: #fff; }
.contact .sec-lead { color: rgba(255,255,255,.5); }
.contact-box {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 48px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 48px 56px; max-width: 820px; margin: 0 auto;
}
.contact-tel { text-align: center; }
.contact-tel-label { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-bottom: 10px; }
.contact-tel-num {
  font-family: var(--ff-display); font-size: 34px;
  color: var(--c-accent); letter-spacing: .04em; font-weight: 400;
  display: block; transition: color .2s;
}
.contact-tel-num:hover { color: #fff; }
.contact-tel-hours { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 8px; }
.contact-divider { width: 1px; height: 100px; background: rgba(255,255,255,.1); }
.contact-web { text-align: center; }
.contact-web-label { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.contact-web-note { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 12px; }

/* ===== Footer ===== */
.footer { background: var(--c-dark); border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner {
  max-width: var(--w-max); margin: 0 auto;
  padding: 48px var(--pad-x); text-align: center;
}
.footer-logo { margin-bottom: 12px; }
.footer-logo-name {
  font-family: var(--ff-jp); font-size: 20px; font-weight: 700;
  letter-spacing: .12em; color: #fff;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.9; margin-bottom: 20px; }
.footer-cr { font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: .05em; }

/* ===== Reveal ===== */
.reveal, .reveal-hero { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in, .reveal-hero.is-in { opacity: 1; transform: none; }
.reveal-hero:nth-child(2) { transition-delay: .1s; }
.reveal-hero:nth-child(3) { transition-delay: .2s; }
.reveal-hero:nth-child(4) { transition-delay: .3s; }
.reveal-hero:nth-child(5) { transition-delay: .4s; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-layout { grid-template-columns: 1fr; }
  .hours-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hd-nav { display: none; }
  .hamburger { display: flex; }
  .feat-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .staff-card-inner { flex-direction: column; }
  .contact-box { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .contact-divider { width: 60px; height: 1px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-history { flex-direction: column; gap: 4px; }
}
