/* ========================================
   Maison de Luna — Corporate Site
   Design: Luxury / Warm Monotone / Serif
   ======================================== */

/* --- Custom Properties --- */
:root {
  --color-bg: #FDFBF7;
  --color-bg-alt: #F4F1EB;
  --color-text: #1C1917;
  --color-text-muted: #78716C;
  --color-text-light: #A8A29E;
  --color-accent: #B8860B;
  --color-accent-light: rgba(184, 134, 11, 0.12);
  --color-border: rgba(28, 25, 23, 0.08);
  --color-hero-bg: #0C0A09;
  --color-footer-bg: #0C0A09;

  --font-serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-sans: "Inter", "Noto Serif JP", sans-serif;
  --font-body-jp: "Noto Serif JP", serif;

  --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

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

/* --- Scroll offset for fixed header --- */
[id] {
  scroll-margin-top: 80px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.4s var(--ease-luxury), border-color 0.4s var(--ease-luxury);
}

.header--scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(28, 25, 23, 0.1);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text);
}

.header__logo-image {
  height: 36px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease-luxury);
}

.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-luxury);
}

.header__nav a:hover {
  color: var(--color-text);
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-hero-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.4) 0%, rgba(12, 10, 9, 0.2) 40%, rgba(12, 10, 9, 0.6) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translateX(-50%);
  width: min(40%, 320px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
  animation: heroLine 1.8s var(--ease-luxury) 1.5s both;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 32px;
}

/* Hero ornament — crescent moon arc */
.hero__ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border: 1px solid rgba(184, 134, 11, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: heroOrnament 2s var(--ease-luxury) 0.3s both;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
  animation: heroFadeUp 1s var(--ease-luxury) 0.3s both;
}

.hero__sub::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto 20px;
  animation: heroLine 1s var(--ease-luxury) 0.1s both;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.20em;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: heroFadeUp 1.2s var(--ease-luxury) 0.6s both;
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  animation: heroFadeUp 1s var(--ease-luxury) 1.2s both;
}

/* Hero Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLine {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes heroOrnament {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* --- Section --- */
.section {
  padding: 160px 32px;
}

.section--dark {
  background: var(--color-bg-alt);
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.section__label::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.section__heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 72px;
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.about-card__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.about-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.about-card__text {
  font-family: var(--font-body-jp);
  font-size: 0.875rem;
  line-height: 2;
  color: var(--color-text-muted);
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table th,
.info-table td {
  padding: 24px 0;
  font-size: 0.9375rem;
  font-weight: 300;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 160px;
  color: var(--color-text-muted);
  font-family: var(--font-body-jp);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.info-table td {
  font-family: var(--font-body-jp);
  color: var(--color-text);
  line-height: 1.9;
}

.info-table__en {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* --- Contact --- */
.contact-lead {
  font-family: var(--font-body-jp);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 40px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text);
  padding: 16px 48px;
  border: 1px solid var(--color-accent);
  transition: all 0.4s var(--ease-luxury);
}

.contact-email:hover {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.02);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: left;
}

.contact-form__group {
  margin-bottom: 24px;
}

.contact-form__label {
  display: block;
  font-family: var(--font-body-jp);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-form__required {
  color: var(--color-accent);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  font-family: var(--font-body-jp);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-bottom: 1px solid rgba(28, 25, 23, 0.2);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s var(--ease-luxury), outline-color 0.3s var(--ease-luxury);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__submit {
  display: block;
  width: 100%;
  font-family: var(--font-body-jp);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-accent);
  padding: 16px;
  cursor: pointer;
  transition: all 0.4s var(--ease-luxury);
}

.contact-form__submit:hover {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.02);
}

.contact-note {
  font-family: var(--font-body-jp);
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-align: center;
}

.contact-note a {
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s var(--ease-luxury), border-color 0.3s var(--ease-luxury);
}

.contact-note a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* --- Footer --- */
.footer {
  background: var(--color-footer-bg);
  color: #fff;
  padding: 80px 32px;
  text-align: center;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.footer__logo-image {
  height: 36px;
  width: auto;
  filter: invert(1);
}

.footer__separator {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto 24px;
  opacity: 0.5;
}

.footer__nav {
  margin-bottom: 32px;
}

.footer__nav a {
  position: relative;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s var(--ease-luxury);
}

.footer__nav a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

/* --- Privacy Page --- */
.section--privacy {
  padding-top: 160px;
}

.privacy-body {
  max-width: 720px;
}

.privacy-body p {
  font-family: var(--font-body-jp);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 20px;
}

.privacy-body h2 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-top: 40px;
  margin-bottom: 12px;
}

.privacy-body ul {
  margin: 0 0 20px 24px;
  font-family: var(--font-body-jp);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 2;
}

.privacy-date {
  margin-top: 56px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* --- Scroll Reveal Animation --- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for about cards */
.about-card.js-reveal:nth-child(2) { transition-delay: 0.15s; }
.about-card.js-reveal:nth-child(3) { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 68px;
  }

  .header__inner {
    padding: 0 10px;
    height: 60px;
  }

  .header__nav {
    gap: 20px;
  }

  .header__nav a {
    font-size: 0.75rem;
  }

  .header__logo-text {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .hero {
    min-height: 85vh;
  }

  .hero__ornament {
    width: 160px;
    height: 160px;
  }

  .section {
    padding: 100px 24px;
  }

  .section__heading {
    font-size: 1.625rem;
    margin-bottom: 48px;
  }

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

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

  .info-table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
  }

  .info-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 20px;
  }

  .contact-email {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.9375rem;
    padding: 16px 24px;
  }

  .section--privacy {
    padding-top: 100px;
  }

  .footer {
    padding: 56px 20px;
  }

  /* Smaller reveal distance on mobile */
  .js-reveal {
    transform: translateY(16px);
  }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__inner * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__ornament {
    animation: none !important;
    opacity: 1 !important;
  }
  .hero::after {
    animation: none !important;
    opacity: 1 !important;
  }
  html {
    scroll-behavior: auto;
  }
}
/* cache-bust 1776503434 */
