/* ============================================================
   atelier b. — common.css
   barber-b.com の common.css と同じ仕組み
   ============================================================ */

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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Avenir Next', 'Avenir', sans-serif;
  background: #f2f2f2;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══ NAVBAR ══ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(242,242,242,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid #c8c8c8;
  transition: background 0.3s;
}



/* ── Logo ── */
.navbar-logo { display: flex; align-items: center; }
.navbar-logo img { height: 20px; width: auto; }
.logo-dark  { display: block; }
.logo-white { display: none; }

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

/* ── Nav links (centre) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #1a1a1a;
  transition: opacity 0.2s;
}

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

.navbar.over-hero .nav-links a { color: rgba(255,255,255,0.85); }

/* ── Right side ── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Instagram */
.insta-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
}
.insta-nav-btn svg { width: 18px; height: 18px; display: block; }
.insta-dark  { display: block; }
.insta-white { display: none; }
.navbar.over-hero .insta-dark  { display: none; }
.navbar.over-hero .insta-white { display: block; }

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}

.lang-btn {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border: 0.5px solid #c8c8c8;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:first-child { border-radius: 2px 0 0 2px; }
.lang-btn:last-child  { border-radius: 0 2px 2px 0; border-left: none; }
.lang-btn.active      { color: #f2f2f2; border-color: #1a1a1a; background: #1a1a1a; }

.navbar.over-hero .lang-btn        { border-color: rgba(255,255,255,0.7); color: rgba(255,255,255,0.9); }
.navbar.over-hero .lang-btn.active { border-color: #f2f2f2; background: #f2f2f2; color: #1a1a1a; }

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
  margin-left: 12px;
}

.burger span {
  display: block;
  width: 22px;
  height: 0.5px;
  background: #1a1a1a;
  transition: all 0.3s;
}

.navbar.over-hero .burger span { background: #ffffff !important; }

.burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ══ INNER PAGE — navbar 常に固定（barber-b.com と同じ body.inner-page） ══ */
body.inner-page .navbar {
  background: rgba(242,242,242,0.97) !important;
  border-bottom-color: #c8c8c8 !important;
}
body.inner-page .navbar .nav-links a { color: #1a1a1a !important; }
body.inner-page .logo-dark  { display: block !important; }
body.inner-page .logo-white { display: none !important; }
body.inner-page .lang-btn        { border-color: #c8c8c8; color: #aaa; }
body.inner-page .lang-btn.active { border-color: #1a1a1a; background: #1a1a1a; color: #f2f2f2; }
body.inner-page .burger span     { background: #1a1a1a; }
body.inner-page .insta-dark  { display: block !important; }
body.inner-page .insta-white { display: none !important; }

/* ══ MENU OPEN ══ */
.navbar.menu-open { background: #f2f2f2 !important; border-bottom-color: #c8c8c8 !important; }
.navbar.menu-open .nav-links a { color: #1a1a1a !important; opacity: 1 !important; }
.navbar.menu-open .logo-dark   { display: block !important; }
.navbar.menu-open .logo-white  { display: none !important; }
.navbar.menu-open .burger span { background: #1a1a1a !important; }
.navbar.menu-open .lang-btn        { border-color: #c8c8c8; color: #aaa; }
.navbar.menu-open .lang-btn.active { border-color: #1a1a1a; background: #1a1a1a; color: #f2f2f2; }
.navbar.menu-open .insta-dark  { display: block !important; }
.navbar.menu-open .insta-white { display: none !important; }

/* ══ PAGE LAYOUT ══ */
.page-body { padding-top: 64px; }

/* ══ INNER HERO ══ */
.inner-hero {
  position: relative;
  height: 55vh;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.inner-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}
.inner-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,20,20,0.1) 0%, rgba(20,20,20,0.65) 100%);
}
.inner-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 56px;
}
.inner-hero-label {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.inner-hero-title {
  font-size: 28px;
  font-weight: 200;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.4;
}

/* ══ FULL HERO (home) ══ */
.full-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #1a1a1a;
  filter: brightness(0.55);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    rgba(20,20,20,0.15) 0%,
    rgba(20,20,20,0.02) 40%,
    rgba(20,20,20,0.55) 75%,
    rgba(20,20,20,0.80) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 56px; left: 56px; right: 56px;
}
.hero-eyebrow {
  font-size: 10px; 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: #fff;
  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: #1a1a1a; color: #f2f2f2;
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.14em; text-transform: lowercase;
  padding: 14px 24px;
  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; }

/* ══ SECTIONS ══ */
.section-header { padding: 80px 56px 56px; border-bottom: 0.5px solid #c8c8c8; }
.section-label { font-size: 9px; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; color: #bbb; margin-bottom: 20px; }
.section-title { font-size: 28px; font-weight: 200; letter-spacing: 0.02em; line-height: 1.4; }

.inner { max-width: 960px; margin: 0 auto; }
.content-block { padding: 80px 56px; border-bottom: 0.5px solid #c8c8c8; }

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

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

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

.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #c8c8c8; }
.gallery-strip .img-wrap { aspect-ratio: 1; background: #f2f2f2; }

.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; }
.photo-item:hover img { transform: scale(1.05); }
.empty-msg { grid-column: 1/-1; text-align: center; padding: 60px 0; font-size: 13px; color: #bbb; }

/* Menu table */
.menu-category { margin-bottom: 44px; }
.menu-category + .menu-category { padding-top: 40px; border-top: 0.5px solid #c8c8c8; }
.menu-cat-title { font-size: 9px; font-weight: 300; letter-spacing: 0.22em; text-transform: lowercase; color: #bbb; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 0.5px solid #c8c8c8; }
.menu-item { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 0.5px 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: #1a1a1a; margin-bottom: 2px; }
.menu-item-name-en { font-size: 12px; font-weight: 300; color: #888; }
.menu-item-price { font-size: 14px; font-weight: 300; white-space: nowrap; text-align: right; flex-shrink: 0; }
.menu-note { font-size: 12px; color: #888; margin-top: 22px; line-height: 1.8; }
.menu-option { display: flex; justify-content: space-between; padding: 9px 0 9px 16px; border-bottom: 0.5px solid #f0f0f0; gap: 20px; }
.menu-option:last-child { border-bottom: none; }
.menu-option-name  { font-size: 13px; font-weight: 300; color: #888; }
.menu-option-price { font-size: 13px; font-weight: 300; color: #888; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1a1a1a; color: #f2f2f2;
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.14em; text-transform: lowercase;
  padding: 14px 24px; border: none; cursor: pointer;
  transition: background 0.25s, gap 0.25s;
  font-family: inherit;
}
.btn:hover { background: #333; gap: 18px; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }
.btn-outline { background: transparent; color: #1a1a1a; border: 0.5px solid #c8c8c8; }
.btn-outline:hover { background: #1a1a1a; color: #f2f2f2; border-color: #1a1a1a; }

/* Info */
.info-block { margin-bottom: 26px; }
.info-label { font-size: 9px; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: #bbb; margin-bottom: 7px; }
.info-value { font-size: 14px; font-weight: 300; line-height: 1.75; }

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

/* Res card */
.res-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border: 0.5px solid #c8c8c8;
  background: #fff; color: #1a1a1a;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.res-card:hover { background: #1a1a1a; color: #f2f2f2; border-color: #1a1a1a; }
.res-card svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }
.res-card-sub { font-size: 11px; color: #888; margin-top: 3px; }
.res-card:hover .res-card-sub { color: rgba(255,255,255,0.55); }

/* Blog */
.blog-body-wrap { padding: 0 56px 80px; }
.blog-list-inner { max-width: 960px; margin: 0 auto; }
.blog-item { display: grid; grid-template-columns: 160px 1fr; gap: 0 40px; padding: 36px 0; border-bottom: 0.5px solid #c8c8c8; align-items: start; }
.blog-item:first-child { border-top: 0.5px solid #c8c8c8; }
.blog-date { font-size: 12px; font-weight: 300; color: #888; margin-bottom: 6px; }
.blog-cat { display: inline-block; font-size: 10px; font-weight: 300; letter-spacing: 0.15em; text-transform: lowercase; color: #bbb; border: 0.5px solid #c8c8c8; 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: #888; 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; color: #bbb; }

/* Footer */
.site-footer { padding: 52px 56px; border-top: 0.5px solid #c8c8c8; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-brands { display: flex; align-items: center; gap: 16px; }
.footer-brand { font-size: 11px; font-weight: 300; letter-spacing: 0.06em; color: #bbb; transition: color 0.2s; }
.footer-brand:hover { color: #1a1a1a; }
.footer-brand.current { color: #1a1a1a; }
.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: #bbb; line-height: 1.8; }
.footer-copy { text-align: center; font-size: 10px; color: #c8c8c8; letter-spacing: 0.1em; margin-top: 36px; padding-top: 24px; border-top: 0.5px solid #c8c8c8; }

/* 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) {
  .navbar { padding: 0 24px; height: 60px; }

  /* nav-links: 通常は非表示、.open で縦並びドロップダウン */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #f2f2f2;
    padding: 28px 24px 36px;
    gap: 24px;
    border-bottom: 0.5px solid #c8c8c8;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #f2f2f2;
    padding: 28px 24px 36px;
    gap: 24px;
    border-bottom: 0.5px solid #c8c8c8;
    z-index: 99;
  }

  .nav-links a {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #1a1a1a !important;
    opacity: 1 !important;
  }

  .burger { display: flex; }

  /* insta と lang-toggle はスマホでも表示 */
  .navbar-right .insta-nav-btn { display: flex; }
  .navbar-right .lang-toggle   { display: flex; }

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

  /* inner hero */
  .inner-hero { height: 48vh; min-height: 260px; }
  .inner-hero-content { padding: 28px 24px; }
  .inner-hero-title { font-size: 20px; }

  /* sections */
  .content-block { padding: 52px 24px; }
  .section-header { padding: 52px 24px 36px; }
  .section-title { font-size: 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-body-wrap { padding: 0 24px 60px; }
  .blog-item { grid-template-columns: 1fr; gap: 12px; }

  .site-footer { padding: 44px 24px; grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-right-col { text-align: center; }
  .footer-brands { justify-content: center; }

  .map-wrap { aspect-ratio: 1; }
}

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