@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,200;0,9..40,300;0,9..40,400;1,9..40,200;1,9..40,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:     #f2f2f2;
  --text:   #1a1a1a;
  --mid:    #888;
  --light:  #bbb;
  --border: #c8c8c8;
  --white:  #ffffff;
  --nav-h:  64px;
  --max-w:  960px;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════
   NAVBAR — barber-b.com と同構造
   id="navbar"  class="navbar [over-hero|scrolled|menu-open]"
══════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* ヒーロー上では透明 */
.navbar.over-hero {
  background: linear-gradient(to bottom, rgba(0,0,0,0.36) 0%, transparent 100%);
  border-bottom-color: transparent;
}

/* スクロール後 */
.navbar.scrolled {
  background: rgba(242,242,242,0.97);
  border-bottom-color: var(--border);
  backdrop-filter: blur(10px);
}

/* メニューオープン時 */
.navbar.menu-open {
  background: var(--bg);
  border-bottom-color: var(--border);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  flex-shrink: 0;
}

.navbar-logo img { height: 18px; width: auto; }

.logo-dark  { display: block; }
.logo-white { display: none; }

.navbar.over-hero .logo-dark  { display: none; }
.navbar.over-hero .logo-white { display: block; }
.navbar.menu-open .logo-dark  { display: block; }
.navbar.menu-open .logo-white { display: none; }

/* Centre nav links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
  flex: 1;
  margin: 0 24px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text);
  transition: opacity 0.25s;
}

.navbar.over-hero .nav-links a { color: rgba(255,255,255,0.9); }
.navbar.menu-open .nav-links a { color: var(--text); }

.nav-links a:hover { opacity: 0.5; }
.nav-links a.current { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* Right side */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.insta-nav-btn {
  display: flex;
  align-items: center;
  color: var(--text);
  transition: opacity 0.25s;
}

.navbar.over-hero .insta-nav-btn { color: rgba(255,255,255,0.9); }
.navbar.menu-open .insta-nav-btn { color: var(--text); }
.insta-nav-btn:hover { opacity: 0.5; }

.lang-toggle { display: flex; align-items: center; gap: 4px; }

.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 300;
  letter-spacing: 0.1em; padding: 0;
  color: rgba(26,26,26,0.4);
  transition: color 0.25s;
}

.lang-btn.active { color: var(--text); }

.navbar.over-hero .lang-btn       { color: rgba(255,255,255,0.45); }
.navbar.over-hero .lang-btn.active { color: rgba(255,255,255,0.95); }
.navbar.menu-open .lang-btn       { color: rgba(26,26,26,0.4); }
.navbar.menu-open .lang-btn.active { color: var(--text); }

.lang-sep { font-size: 10px; color: var(--border); }
.navbar.over-hero .lang-sep { color: rgba(255,255,255,0.3); }

/* ── BURGER ── */
#burger {
  display: none;   /* デスクトップでは非表示 */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

#burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: all 0.3s ease;
}

.navbar.over-hero  #burger span { background: rgba(255,255,255,0.9); }
.navbar.menu-open  #burger span { background: var(--text); }
.navbar.scrolled   #burger span { background: var(--text); }

/* burger → ✕ */
#burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE NAV MENU ── */
/* デスクトップでは通常の横並びリスト */
/* スマホでは非表示 → .open で全画面表示 */

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.full-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; background: #1a1a1a; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.06) 100%);
}

.hero-content {
  position: absolute;
  bottom: 56px; left: 40px; right: 40px;
}

.hero-eyebrow {
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.5);
  text-transform: lowercase; margin-bottom: 14px; display: block;
  animation: fadeUp 0.9s 0.2s both ease-out;
}

.hero-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 200; line-height: 1.25; color: var(--white);
  letter-spacing: -0.01em; margin-bottom: 18px;
  animation: fadeUp 0.9s 0.4s both ease-out;
}

.hero-title em { font-style: italic; }

.hero-body {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.6); line-height: 1.85;
  max-width: 420px; margin-bottom: 28px;
  animation: fadeUp 0.9s 0.55s both ease-out;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--white);
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.14em; text-transform: lowercase;
  padding: 13px 22px;
  transition: background 0.25s, gap 0.25s;
  animation: fadeUp 0.9s 0.7s both ease-out;
}
.hero-cta:hover { background: #333; gap: 18px; }
.hero-cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }

/* ══════════════════════════════
   INNER HERO (non-home pages)
══════════════════════════════ */
.inner-hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 40px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.inner-hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.22em; text-transform: lowercase;
  color: var(--light); margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}

.page-eyebrow::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--border);
}

.page-title {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 200; color: var(--text);
  line-height: 1.2; letter-spacing: -0.01em;
}

/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */
section.content { padding: 76px 40px; border-bottom: 1px solid var(--border); }
.inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.22em; text-transform: lowercase;
  color: var(--light); margin-bottom: 40px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--border);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.heading-l { font-size: clamp(18px, 2.2vw, 28px); font-weight: 200; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 20px; }
.heading-m { font-size: clamp(16px, 1.6vw, 20px); font-weight: 200; line-height: 1.4; margin-bottom: 14px; }
.body-text  { font-size: 14px; font-weight: 300; line-height: 1.9; color: #555; }
.body-text + .body-text { margin-top: 13px; }

/* Images */
.img-wrap { overflow: hidden; background: #ddd; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.img-wrap:hover img { transform: scale(1.03); }
.img-portrait  { aspect-ratio: 3/4; }
.img-landscape { aspect-ratio: 4/3; }

/* Gallery */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.gallery-strip .img-wrap { aspect-ratio: 1; background: var(--bg); }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.photo-item { aspect-ratio: 1; overflow: hidden; background: #e0e0e0; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.photo-item:hover img { transform: scale(1.05); }
.empty-msg { grid-column: 1/-1; text-align: center; padding: 60px 0; font-size: 13px; color: var(--light); letter-spacing: 0.1em; }

/* ══════════════════════════════
   MENU TABLE
══════════════════════════════ */
.menu-category { margin-bottom: 44px; }
.menu-category + .menu-category { padding-top: 40px; border-top: 1px solid var(--border); }
.menu-cat-title { font-size: 10px; font-weight: 300; letter-spacing: 0.22em; text-transform: lowercase; color: var(--light); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.menu-item { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid #ebebeb; gap: 20px; }
.menu-item:last-child { border-bottom: none; }
.menu-item-left { flex: 1; }
.menu-item-name { font-size: 14px; font-weight: 300; color: var(--text); margin-bottom: 2px; }
.menu-item-name-en { font-size: 12px; font-weight: 300; color: var(--mid); }
.menu-item-price { font-size: 14px; font-weight: 300; white-space: nowrap; text-align: right; flex-shrink: 0; }
.menu-note { font-size: 12px; color: var(--mid); margin-top: 22px; line-height: 1.8; font-weight: 300; }
.menu-option { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0 9px 16px; border-bottom: 1px solid #f0f0f0; gap: 20px; }
.menu-option:last-child { border-bottom: none; }
.menu-option-name  { font-size: 13px; font-weight: 300; color: var(--mid); }
.menu-option-price { font-size: 13px; font-weight: 300; color: var(--mid); white-space: nowrap; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--white);
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.14em; text-transform: lowercase;
  padding: 13px 22px; transition: background 0.25s, gap 0.25s;
}
.btn:hover { background: #333; gap: 18px; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--text); color: var(--white); border-color: var(--text); }

/* ══════════════════════════════
   INFO / MAP / RES CARD
══════════════════════════════ */
.info-block { margin-bottom: 26px; }
.info-label { font-size: 10px; font-weight: 300; letter-spacing: 0.2em; text-transform: lowercase; color: var(--light); margin-bottom: 7px; }
.info-value { font-size: 14px; font-weight: 300; line-height: 1.75; }

.map-wrap { aspect-ratio: 4/3; background: #e8e8e8; border: 1px solid var(--border); overflow: hidden; filter: grayscale(100%); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

.res-card { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid var(--border); background: var(--white); color: var(--text); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.res-card:hover { background: var(--text); color: var(--white); border-color: var(--text); }
.res-card svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }
.res-card-sub { font-size: 11px; color: var(--mid); margin-top: 3px; }
.res-card:hover .res-card-sub { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════
   BLOG
══════════════════════════════ */
.blog-body { padding: 0 40px 80px; }
.blog-list { max-width: var(--max-w); margin: 0 auto; }

.blog-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 0 40px; padding: 36px 0;
  border-bottom: 1px solid var(--border); align-items: start;
}
.blog-item:first-child { border-top: 1px solid var(--border); }
.blog-date { font-size: 12px; font-weight: 300; color: var(--mid); letter-spacing: 0.05em; margin-bottom: 6px; }
.blog-cat { display: inline-block; font-size: 10px; font-weight: 300; letter-spacing: 0.15em; text-transform: lowercase; color: var(--light); border: 1px solid var(--border); padding: 3px 8px; }
.blog-title { font-size: 16px; font-weight: 300; line-height: 1.5; margin-bottom: 10px; }
.blog-title-en { font-size: 13px; font-weight: 300; color: var(--mid); margin-bottom: 14px; font-style: italic; }
.blog-body-text { font-size: 14px; font-weight: 300; line-height: 1.85; color: #555; }
.blog-empty { padding: 64px 0; text-align: center; font-size: 13px; font-weight: 300; color: var(--light); letter-spacing: 0.1em; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer { padding: 52px 40px; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-brands { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-size: 11px; font-weight: 300; letter-spacing: 0.06em; color: var(--light); transition: color 0.2s; }
.footer-brand:hover { color: var(--text); }
.footer-brand.current { color: var(--text); }
.footer-logo { display: flex; justify-content: center; }
.footer-logo img { height: 16px; width: auto; }
.footer-right-col { text-align: right; }
.footer-address { font-size: 11px; font-weight: 300; color: var(--light); line-height: 1.8; }
.footer-copy { text-align: center; font-size: 10px; color: #c8c8c8; font-weight: 300; letter-spacing: 0.1em; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }

/* ══════════════════════════════
   RESPONSIVE — スマホ
══════════════════════════════ */
@media (max-width: 768px) {
  /* NAV */
  .navbar { padding: 0 20px; }

  /* デスクトップのリンク・右側を隠す */
  .nav-links { display: none; }
  .navbar-right .insta-nav-btn,
  .navbar-right .lang-toggle { display: none; }

  /* バーガーを表示 */
  #burger { display: flex; }

  /* ── モバイルメニュー ──
     .open が付いたらフルスクリーン表示 */
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 199;
    padding: 0;
    margin: 0;
    gap: 0;
    overflow-y: auto;
  }

  .nav-links.open li { border-bottom: 1px solid var(--border); }
  .nav-links.open li:first-child { border-top: 1px solid var(--border); }

  .nav-links.open a {
    display: block;
    padding: 22px 28px;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--text) !important;
  }

  /* メニューオープン時に言語切り替えも表示 */
  .navbar.menu-open .navbar-right .lang-toggle {
    display: flex;
  }

  /* Hero */
  .hero-content { left: 20px; right: 20px; bottom: 36px; }

  /* Inner hero */
  .inner-hero { padding: calc(var(--nav-h) + 36px) 20px 36px; }

  /* Sections */
  section.content { padding: 52px 20px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip .img-wrap:nth-child(3) { display: none; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  /* Blog */
  .blog-body { padding: 0 20px 60px; }
  .blog-item { grid-template-columns: 1fr; gap: 12px; }

  /* Footer */
  .site-footer { padding: 36px 20px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-right-col { text-align: center; }
  .footer-brands { justify-content: center; }

  /* Map */
  .map-wrap { aspect-ratio: 1; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 20px; }
  .photo-grid { grid-template-columns: 1fr; }
}
