/* =============================================
   LUMIÈRE Beauty Salon — style.css
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #FAFAF8;
  --color-surface: #F2EEE9;
  --color-accent: #B8957A;
  --color-accent-dark: #8C6A54;
  --color-text: #2C2C2C;
  --color-text-light: #7A7A7A;
  --color-white: #FFFFFF;
  --color-border: #E0D8D0;
  --color-error: #C0392B;
  --color-error-bg: #FDF0EE;
  --color-success: #2D7A2D;
  --color-success-bg: #EAF5EA;

  --font-en: 'Cormorant Garamond', serif;
  --font-display: 'Playfair Display', serif;
  --font-ui: 'Raleway', sans-serif;
  --font-ja: 'Shippori Mincho', serif;

  --header-height: 80px;
  --section-padding: 100px;
  --max-width: 1100px;
  --radius: 2px;
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-weight: 300;
  line-height: 1.4;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Utility ---------- */
.hidden {
  display: none !important;
}

/* ---------- Section Common ---------- */
section {
  padding: var(--section-padding) 0;
}

section:nth-of-type(even) {
  background-color: var(--color-surface);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 56px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 1px;
  background-color: var(--color-accent);
}

/* ---------- Button ---------- */
.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
  border-radius: var(--radius);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
  background-color: var(--color-white);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-white);
  transition: color 0.4s ease;
}

#header.scrolled .logo {
  color: var(--color-text);
}

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

.nav-list a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-list a:hover {
  border-bottom-color: currentColor;
}

#header.scrolled .nav-list a {
  color: var(--color-text);
}

.nav-list a.nav-cta {
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.95);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.nav-list a.nav-cta:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

#header.scrolled .nav-list a.nav-cta {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

#header.scrolled .nav-list a.nav-cta:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.4s ease;
  transform-origin: center;
}

#header.scrolled .hamburger span {
  background-color: var(--color-text);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  background-color: var(--color-white);
  transition: max-height 0.4s ease;
}

.mobile-nav.open {
  max-height: 400px;
}

.mobile-nav ul {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav ul li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav ul li:first-child {
  border-top: 1px solid var(--color-border);
}

.mobile-nav ul li a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}


/* =============================================
   HERO
   ============================================= */
#hero {
  height: 100vh;
  min-height: 600px;
  background-image: url('image/店舗画像.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
}

.hero-content {
  position: relative;
  color: var(--color-white);
  padding: 0 24px;
}

.hero-sub {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-ja);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 48px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-content .btn-primary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.15em;
}

.hero-content .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}


/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-lead {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 28px;
  color: var(--color-accent-dark);
}

.about-text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 2;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.about-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}



/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 44px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  color: var(--color-accent);
}

.service-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.service-price {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  font-weight: 400;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 0;
}

/* Stagger animation delay for cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }


/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}



/* =============================================
   STAFF
   ============================================= */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.staff-card {
  text-align: center;
}

.staff-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 24px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.staff-name {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.staff-role {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.staff-bio {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.9;
  text-align: left;
  margin-bottom: 0;
}

/* Stagger for staff cards */
.staff-card:nth-child(1) { transition-delay: 0.05s; }
.staff-card:nth-child(2) { transition-delay: 0.15s; }
.staff-card:nth-child(3) { transition-delay: 0.25s; }


/* =============================================
   ACCESS
   ============================================= */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.access-dl dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-top: 24px;
  margin-bottom: 6px;
}

.access-dl dt:first-child {
  margin-top: 0;
}

.access-dl dd {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.access-dl dd a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}


/* =============================================
   CONTACT
   ============================================= */
#contact {
  background-color: var(--color-surface);
}

.contact-lead {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  margin-top: -32px;
}

.required-note {
  color: var(--color-error);
  margin-right: 4px;
}

#formWrapper {
  max-width: 640px;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 400;
}

.required {
  color: var(--color-error);
  margin-left: 4px;
  font-size: 0.85em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-white);
  font-family: var(--font-ja);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B8B0A8;
  font-size: 0.88rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 122, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.error-msg {
  display: block;
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 18px;
  line-height: 1.5;
}

.form-submit {
  margin-top: 40px;
}

.btn-submit {
  width: 100%;
  max-width: 320px;
  padding: 18px;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-align: center;
}

/* Success Message */
.success-msg {
  max-width: 640px;
  background-color: var(--color-success-bg);
  border: 1px solid #A8D8A8;
  border-radius: 4px;
  padding: 56px 40px;
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-success);
  color: var(--color-white);
  font-size: 1.4rem;
  line-height: 56px;
  margin: 0 auto 24px;
}

.success-title {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-success);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.success-body {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 0;
}


/* =============================================
   FOOTER
   ============================================= */
#footer {
  background-color: #1E1814;
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-address {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}


/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
  :root {
    --section-padding: 80px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-placeholder {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .staff-card:nth-child(3) {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-rows: repeat(2, 200px);
  }
}


/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --header-height: 64px;
  }

  .nav-list {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 160px);
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card:nth-child(3) {
    grid-column: span 1;
    max-width: none;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .btn-submit {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .service-card {
    padding: 32px 24px;
  }
}
