/* =========================================================
   Nail Salon SARONIA - Base Stylesheet
   ========================================================= */

:root {
  --accent: #FF582F;
  --accent-dark: #E04520;
  --accent-soft: #FFF1EB;
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --ink-3: #8A8A8A;
  --line: #E8E4E1;
  --bg: #FFFFFF;
  --bg-soft: #FAF8F6;
  --bg-warm: #F5F1EE;

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;

  --max: 1200px;
  --gap: clamp(16px, 3vw, 32px);
  --radius: 4px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .2s var(--ease), color .2s var(--ease); }
a:hover { opacity: .7; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 500; letter-spacing: .05em; line-height: 1.35; }
p { margin: 0; }

/* Utilities */
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.container-wide { width: min(100% - 32px, 1400px); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}
.section-title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: .1em;
}
.section-title .en {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 84px);
  color: var(--ink);
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 12px;
}
.section-title .en em {
  font-style: italic;
  color: var(--accent);
}
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--ink-2); font-size: 14px; margin-top: 16px; }
.section { padding-block: clamp(64px, 10vw, 120px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .15em;
  border-radius: 999px;
  transition: all .3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(255,88,47,.5);
}
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  opacity: 1;
}
.btn-arrow::after {
  content: "→";
  font-family: var(--font-serif);
  transition: transform .3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: all .3s var(--ease);
  --header-h: 68px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  gap: 24px;
  min-height: var(--header-h);
}
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo .dot { color: var(--accent); }
.site-logo small {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-3);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list {
  display: flex;
  gap: 28px;
}
.nav-list a {
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all .3s var(--ease);
  transform: translateX(-50%);
}
.nav-list a:hover, .nav-list a.active {
  opacity: 1;
  color: var(--accent);
}
.nav-list a.active::after { width: 20px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-dark); opacity: 1; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all .3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { --header-h: 60px; }
  .menu-toggle {
    display: flex;
    order: 3;
    margin-right: -8px; /* optical align to edge */
  }
  .header-inner {
    padding: 10px 20px;
    gap: 12px;
  }
  .site-logo { font-size: 22px; }
  .site-logo small { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 24px 24px 40px;
    gap: 0;
    transform: translateY(-110%);
    transition: transform .4s var(--ease);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }
  .site-nav.open { transform: translateY(0); }
  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-list a {
    display: block;
    padding: 18px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a::after { display: none; }
  .nav-cta {
    margin-top: 24px;
    justify-content: center;
    padding: 16px;
    font-size: 13px;
    align-self: stretch;
  }
}

@media (max-width: 480px) {
  .site-header { --header-h: 56px; }
  .header-inner { padding: 8px 16px; gap: 8px; }
  .site-logo { font-size: 20px; }
  .menu-toggle { width: 40px; height: 40px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0F0F0F;
  color: #DCDCDC;
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .site-logo { color: #fff; font-size: 32px; }
.footer-brand p { font-size: 13px; color: #999; margin-top: 20px; line-height: 1.9; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}
.footer-col ul li { margin-bottom: 12px; font-size: 13px; }
.footer-col ul li a:hover { color: var(--accent); opacity: 1; }
.footer-contact-item {
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.footer-contact-item strong {
  display: block;
  font-size: 11px;
  letter-spacing: .15em;
  color: #999;
  margin-bottom: 4px;
  font-weight: 400;
}
.footer-sns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-sns a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease);
}
.footer-sns a:hover {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}
.footer-sns svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 11px;
  color: #666;
  letter-spacing: .1em;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* =========================================================
   Page Hero (sub pages)
   ========================================================= */
.page-hero {
  padding-top: clamp(100px, 14vw, 160px);
  padding-bottom: clamp(48px, 8vw, 80px);
  background: var(--bg-warm);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 400px at 100% 0%, rgba(255,88,47,.06), transparent 70%);
  pointer-events: none;
}
.page-hero .en-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 1;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.page-hero .en-title em { color: var(--accent); font-style: italic; }
.page-hero .jp-title {
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--ink-2);
}
.breadcrumb {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--ink-3);
  margin-top: 32px;
}
.breadcrumb a:hover { color: var(--accent); opacity: 1; }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

/* =========================================================
   Common animated reveal
   ========================================================= */
/* Reveal-on-scroll — safe implementation.
   Default state = visible. When JS is loaded and detects the element is
   below the fold, it adds .reveal-pending to hide it, then .visible to
   animate it in. This guarantees content is never trapped invisible. */
.reveal { opacity: 1; transform: none; }
.reveal-pending {
  opacity: 0 !important;
  transform: translateY(24px) !important;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-pending.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-pending, .reveal-pending.visible {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* Placeholder image */
.placeholder {
  background:
    linear-gradient(135deg, rgba(255,88,47,.08), rgba(255,88,47,0)),
    repeating-linear-gradient(45deg, #EFEAE6 0 8px, #F5F1EE 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  letter-spacing: .1em;
}

/* Fixed CTA (mobile) */
.fixed-cta {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  display: none;
  gap: 8px;
}
.fixed-cta a {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  border-radius: 999px;
  font-weight: 500;
}
.fixed-cta .cta-tel { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.fixed-cta .cta-line { background: #06C755; color: #fff; }
.fixed-cta .cta-book { background: var(--accent); color: #fff; }
@media (max-width: 700px) {
  .fixed-cta { display: flex; }
  main { padding-bottom: 80px; }
}
/* Hide bottom fixed CTA while mobile menu is open */
body.nav-open .fixed-cta { display: none; }
