/*
Theme Name: BEIN Hair Salon
Theme URI: https://hairsalon-bein.com
Author: BEIN
Description: 美容室BEINオリジナルテーマ
Version: 1.0
*/

:root {
  --bg:        #F4F6F2;
  --bg-warm:   #EEF0EA;
  --sage:      #B8C4B0;
  --sage-deep: #8A9E82;
  --sage-pale: #D6DDD0;
  --moss:      #5A6E52;
  --charcoal:  #2E2B28;
  --mid:       #555550;
  --light:     #808078;
  --warm-wood: #C0A882;
  --white:     #FAFBF8;
}

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

body {
  background: var(--bg);
  color: var(--charcoal);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 246, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sage-pale);
  transition: all 0.4s ease;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); }

nav { display: flex; gap: 32px; align-items: center; }

nav a {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--charcoal);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
}

nav a:hover { color: var(--moss); }

.nav-reserve {
  background: var(--moss) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  letter-spacing: 0.15em;
  font-size: 11px !important;
  font-weight: 400 !important;
  transition: background 0.3s !important;
}

.nav-reserve:hover { background: #476040 !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 101; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--charcoal); transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #C0CEB8 0%, #98AE90 40%, #7A9472 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg-photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(40,38,34,0.72) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 72px;
  color: var(--white);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s forwards;
}

.hero-tag-line { width: 24px; height: 1px; background: var(--sage); }

.hero-tag span {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--sage);
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-title em { font-style: italic; color: var(--sage); }

.hero-sub {
  font-size: 13.5px;
  line-height: 2.1;
  color: rgba(250,251,248,0.85);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s 0.7s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.9s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--moss);
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background 0.3s;
}

.btn-primary:hover { background: #476040; }

.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid rgba(250,251,248,0.55);
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 400;
  transition: all 0.3s;
}

.btn-outline:hover { border-color: var(--sage); color: var(--sage); }

.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.1s forwards;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(250,251,248,0.65);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(250,251,248,0.6), transparent);
  animation: scrollPulse 2s infinite;
}

/* ===== SECTION BASE ===== */
.section-label {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--moss);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.section-label::before { content: ''; width: 20px; height: 1px; background: var(--moss); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 18px;
}

.section-title em { font-style: italic; color: var(--moss); }
.section-body { font-size: 14px; line-height: 2.3; color: var(--mid); }
.divider { width: 32px; height: 1px; background: var(--sage); margin: 20px 0; }

/* ===== CONCEPT ===== */
.concept { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }

.concept-img {
  background: linear-gradient(150deg, #C0CEB8, #8A9E82);
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.concept-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.concept-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--white));
}

.concept-text { padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }

/* ===== MENU ===== */
.menu { padding: 100px 80px; background: var(--bg); }

.menu-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }

.menu-tabs {
  display: flex;
  border-bottom: 1px solid var(--sage-pale);
  margin-bottom: 2px;
}

.menu-tab {
  padding: 12px 28px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--mid);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s;
  font-weight: 400;
}

.menu-tab.active { color: var(--moss); border-bottom-color: var(--moss); font-weight: 400; }
.menu-tab:hover { color: var(--moss); }

.menu-panel { display: none; }
.menu-panel.active { display: block; }

.menu-table { width: 100%; border-collapse: collapse; background: var(--white); }
.menu-table tr { border-bottom: 1px solid var(--sage-pale); }
.menu-table tr:last-child { border-bottom: none; }

.menu-table td { padding: 20px 24px; font-size: 14px; line-height: 1.9; color: var(--charcoal); }
.menu-table td:first-child { width: 220px; font-weight: 400; }
.menu-table td:last-child { color: var(--mid); font-size: 13.5px; }

.menu-price-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--moss);
  margin-right: 2px;
}

.menu-note { font-size: 12.5px; color: var(--mid); margin-top: 16px; line-height: 1.9; }

/* ===== GALLERY ===== */
.gallery { padding: 80px; background: var(--bg-warm); }

.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #B8C4B0;
  aspect-ratio: 2/3;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(56,53,48,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { font-size: 12px; letter-spacing: 0.18em; color: var(--white); text-transform: uppercase; font-weight: 400; }

/* ===== STAFF ===== */
.staff { padding: 100px 80px; background: var(--white); }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.staff-card { text-align: center; }

.staff-img {
  width: 65%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #C8D4C0, #A8B8A0);
  margin: 0 auto 24px;
  overflow: hidden;
}

.staff-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.staff-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--charcoal); margin-bottom: 6px; }
.staff-role { font-size: 11px; letter-spacing: 0.28em; color: var(--moss); text-transform: uppercase; margin-bottom: 16px; font-weight: 400; }
.staff-bio { font-size: 13px; line-height: 2.1; color: var(--mid); }

/* ===== BLOG ===== */
.news { padding: 90px 80px; background: var(--bg-warm); }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }

.news-item {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--sage-pale);
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-item:hover { opacity: 0.7; }
.news-date { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--moss); letter-spacing: 0.1em; white-space: nowrap; min-width: 100px; }
.news-title { font-size: 14px; color: var(--charcoal); line-height: 1.7; }

/* ===== ACCESS ===== */
.access { display: grid; grid-template-columns: 1fr 1fr; background: var(--charcoal); }

.access-map {
  min-height: 440px;
  background: #484540;
  overflow: hidden;
}

.access-map iframe { width: 100%; height: 100%; border: none; display: block; filter: grayscale(30%); }

.access-content { padding: 80px 64px; }
.access-content .section-label { color: var(--sage); }
.access-content .section-label::before { background: var(--sage); }
.access-content .section-title { color: var(--white); }
.access-content .divider { background: var(--sage); opacity: 0.5; }

.info-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.info-table tr { border-bottom: 1px solid rgba(184,196,176,0.15); }
.info-table td { padding: 13px 0; font-size: 13px; line-height: 1.9; vertical-align: top; }
.info-table td:first-child { width: 90px; color: var(--sage); font-size: 11px; letter-spacing: 0.1em; padding-top: 15px; font-weight: 400; }
.info-table td:last-child { color: rgba(244,246,242,0.85); }

.reserve-btn {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 38px;
  background: var(--sage-deep);
  color: var(--white);
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background 0.3s;
}

.reserve-btn:hover { background: var(--moss); }

/* ===== FOOTER ===== */
.site-footer {
  background: #2C2A27;
  padding: 44px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--sage); letter-spacing: 0.2em; display: flex; align-items: center; gap: 8px; }
.footer-logo-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sage-deep); }

.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 11px; letter-spacing: 0.18em; color: rgba(184,196,176,0.65); text-decoration: none; text-transform: uppercase; transition: color 0.3s; font-weight: 400; }
.footer-nav a:hover { color: var(--sage); }
.footer-copy { font-size: 11px; letter-spacing: 0.12em; color: rgba(184,196,176,0.45); }

/* VIEW MORE */
.view-more { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.18em; color: var(--charcoal); text-decoration: none; text-transform: uppercase; transition: color 0.3s; font-weight: 400; }
.view-more:hover { color: var(--moss); }
.vm-line { width: 28px; height: 1px; background: currentColor; transition: width 0.3s; }
.view-more:hover .vm-line { width: 48px; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* RESPONSIVE */
@media (max-width: 960px) {
  header { padding: 16px 24px; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: fixed; inset: 0; background: var(--bg); justify-content: center; align-items: center; gap: 36px; z-index: 99; }
  nav.open a { font-size: 15px; }
  .hamburger { display: flex; }

  .hero-content { padding: 0 24px 60px; }
  .hero-scroll { display: none; }

  .concept { grid-template-columns: 1fr; }
  .concept-img { min-height: 260px; }
  .concept-img::after { display: none; }
  .concept-text { padding: 52px 24px; }

  .menu { padding: 70px 24px; }
  .menu-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .menu-table td:first-child { width: 140px; }

  .gallery { padding: 70px 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { aspect-ratio: 2/3; }
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .staff { padding: 70px 24px; }
  .staff-grid { grid-template-columns: 1fr; gap: 44px; }

  .news { padding: 70px 24px; }
  .news-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .news-item { flex-direction: column; gap: 4px; }

  .access { grid-template-columns: 1fr; }
  .access-map { min-height: 220px; }
  .access-content { padding: 52px 24px; }

  .site-footer { flex-direction: column; gap: 20px; text-align: center; padding: 40px 24px; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ===== MESH CANVAS ===== */
.section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero { position: relative; overflow: hidden; }
.concept { position: relative; overflow: hidden; }
.menu { position: relative; overflow: hidden; }
.staff { position: relative; overflow: hidden; }

.concept-content,
.concept-img,
.menu-head,
.menu-tabs,
.menu-panel,
.menu-note,
.staff-grid,
.staff-card,
.news,
.section-label,
.section-title,
.section-body,
.divider {
  position: relative;
  z-index: 2;
}

/* ===== SCROLL REVEAL ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up.in, .reveal-left.in, .reveal-right.in {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }
