/*
Theme Name: Nagi Relaxation Salon
Theme URI: https://example.com
Author: Nagi Salon
Description: リラクゼーションサロン 凪 のオリジナルWordPressテーマ。白とベージュを基調とした落ち着いたデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: nagi
*/

/* ─────────────────────────────────────
   CSS Variables
───────────────────────────────────── */
:root {
  --cream: #faf7f2;
  --beige: #e8e0d3;
  --beige-mid: #d4c9b8;
  --beige-dark: #b8a99a;
  --brown: #8b7355;
  --brown-dark: #5c4a35;
  --text-main: #3a3028;
  --text-sub: #7a6a5a;
  --text-light: #a89888;
  --white: #ffffff;
  --accent: #c4a882;
  --shadow: rgba(90,70,50,0.10);
  --header-h: 72px;
}

/* ─────────────────────────────────────
   Reset & Base
───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  font-weight: 300;
  line-height: 1.8;
  font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ─────────────────────────────────────
   Typography helpers
───────────────────────────────────── */
.serif { font-family: 'Noto Serif JP', serif; }
.italic-en { font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* ─────────────────────────────────────
   Header
───────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* Logo */
.site-logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.site-logo .logo-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.12em;
}
.site-logo .logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 26px;
  color: var(--brown);
  letter-spacing: 0.06em;
}

/* Desktop Nav */
#primary-navigation { display: flex; gap: 32px; align-items: center; }
#primary-navigation a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
#primary-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
#primary-navigation a:hover { color: var(--brown); }
#primary-navigation a:hover::after { transform: scaleX(1); }

/* CTA button in nav */
#primary-navigation .nav-cta {
  background: var(--brown);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: background 0.3s;
}
#primary-navigation .nav-cta::after { display: none; }
#primary-navigation .nav-cta:hover { background: var(--brown-dark) !important; }

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger-btn span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--brown);
  transition: 0.3s;
}

/* Mobile Nav overlay */
#mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--beige);
  flex-direction: column;
  padding: 24px 32px 32px;
  gap: 0;
  z-index: 199;
}
#mobile-nav.is-open { display: flex; }
#mobile-nav a {
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  border-bottom: 1px solid var(--beige);
  padding: 16px 0;
  display: block;
}

/* ─────────────────────────────────────
   Main content offset
───────────────────────────────────── */
#page { padding-top: var(--header-h); }

/* ─────────────────────────────────────
   Section shared
───────────────────────────────────── */
.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag.left { display: block; text-align: left; }

h2.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 16px;
}
h2.section-title.left { text-align: left; }

.section-sub {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 2;
  max-width: 460px;
  margin: 0 auto;
}

/* ─────────────────────────────────────
   Hero (Front page)
───────────────────────────────────── */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
}
.hero-text-col::before {
  content: 'NAGI';
  position: absolute;
  top: 60px; left: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  color: var(--beige);
  letter-spacing: 0.04em;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}

.hero-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-body {
  font-size: 14px;
  line-height: 2.1;
  color: var(--text-sub);
  max-width: 380px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  background: var(--brown);
  color: var(--white);
  padding: 16px 40px;
  font-size: 13px;
  letter-spacing: 0.18em;
  border-radius: 2px;
  width: fit-content;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  z-index: 1;
}
.hero-btn:hover { background: var(--brown-dark); transform: translateY(-2px); }

.hero-image-col {
  position: relative;
  overflow: hidden;
  background: var(--beige);
  min-height: 500px;
}
.hero-image-col .wp-post-image,
.hero-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-image-col .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(160deg, #e8e0d3 0%, #d4c9b8 50%, #c4b8a8 100%);
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.hero-badge {
  position: absolute;
  bottom: 40px; left: -20px;
  background: var(--white);
  padding: 20px 28px;
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 2;
  border-left: 3px solid var(--accent);
}
.hero-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-style: italic;
  color: var(--brown);
  line-height: 1;
}
.hero-badge-text { font-size: 11px; letter-spacing: 0.14em; color: var(--text-sub); margin-top: 4px; }

/* ─────────────────────────────────────
   Services section / page
───────────────────────────────────── */
.services-section { padding: 120px 0; background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--cream);
  padding: 44px 36px;
  border-top: 2px solid var(--beige);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
}
.service-icon { width: 48px; height: 48px; margin-bottom: 24px; color: var(--accent); }
.service-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text-main);
}
.service-card p { font-size: 13px; color: var(--text-sub); line-height: 2; margin-bottom: 20px; }
.service-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-top: 1px solid var(--beige);
  padding-top: 16px;
  flex-wrap: wrap;
}
.price-label { font-size: 11px; color: var(--text-light); letter-spacing: 0.1em; }
.price-num { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--brown); }
.price-unit { font-size: 11px; color: var(--text-light); }
.service-duration { font-size: 11px; color: var(--text-light); letter-spacing: 0.1em; margin-left: auto; }

/* ─────────────────────────────────────
   Divider band
───────────────────────────────────── */
.divider-band {
  text-align: center;
  padding: 72px 20px;
  background: var(--brown);
  color: var(--white);
}
.divider-band p {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 2;
  opacity: 0.92;
}

/* ─────────────────────────────────────
   About section / page
───────────────────────────────────── */
.about-section { padding: 120px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap { position: relative; }
.about-img-wrap .about-img {
  width: 100%;
  padding-bottom: 120%;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(145deg, #e8e0d3 0%, #d4c9b8 100%);
}
.about-img-wrap .about-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-wrap .about-img .placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.1em;
}
.about-img-frame {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 60%;
  padding-bottom: 40%;
  border: 2px solid var(--beige);
  border-radius: 4px;
  z-index: -1;
}

.about-text h2 { margin-bottom: 24px; }
.about-body {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2.2;
  margin-bottom: 36px;
}

.about-features { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-style: italic;
  color: var(--beige-dark);
  line-height: 1;
  min-width: 36px;
}
.feature-title { font-size: 14px; font-weight: 500; color: var(--text-main); margin-bottom: 4px; letter-spacing: 0.06em; }
.feature-desc { font-size: 12px; color: var(--text-light); line-height: 1.8; }

/* ─────────────────────────────────────
   Access section / page
───────────────────────────────────── */
.access-section { padding: 120px 0; background: var(--white); }
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.access-map-wrap { border-radius: 4px; overflow: hidden; }
.access-map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }
.access-map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 0.1em;
  border: 1px solid var(--beige-mid);
  border-radius: 4px;
}

.info-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--beige);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
}
.info-block:first-child { border-top: 1px solid var(--beige); }
.info-label { font-size: 11px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; padding-top: 2px; }
.info-value { font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.info-value strong { color: var(--text-main); font-weight: 500; }

/* ─────────────────────────────────────
   Contact section / page
───────────────────────────────────── */
.contact-section { padding: 120px 0; }
.contact-form-wrap { max-width: 640px; margin: 0 auto; }

/* CF7 / default form styles */
.wpcf7-form .form-group { margin-bottom: 28px; }
.wpcf7-form label,
.contact-form-wrap label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea,
.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--beige-mid);
  border-radius: 2px;
  background: var(--cream);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-color: var(--accent); background: var(--white); }
.wpcf7-form textarea { height: 160px; resize: vertical; }
.wpcf7-form input[type="submit"],
.submit-btn {
  width: 100%;
  background: var(--brown);
  color: var(--white);
  border: none;
  padding: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s;
  margin-top: 8px;
}
.wpcf7-form input[type="submit"]:hover,
.submit-btn:hover { background: var(--brown-dark); }
.wpcf7-not-valid-tip { color: #c0392b; font-size: 12px; margin-top: 4px; }
.wpcf7-mail-sent-ok { color: var(--brown); background: var(--beige); padding: 16px; border-radius: 2px; font-size: 14px; }

/* Required mark */
.req { color: var(--brown); margin-left: 4px; font-size: 10px; }

/* ─────────────────────────────────────
   Footer
───────────────────────────────────── */
#site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 36px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 36px;
}
.footer-brand .logo-en { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 28px; color: rgba(255,255,255,0.85); letter-spacing: 0.06em; }
.footer-brand .logo-ja { font-family: 'Noto Serif JP', serif; font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.12em; }
.footer-brand p { font-size: 12px; line-height: 2; margin-top: 16px; opacity: 0.65; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { text-decoration: none; font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.3s; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact-item { font-size: 12px; margin-bottom: 10px; display: flex; gap: 10px; }
.fc-label { color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 0.1em; min-width: 56px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }

/* ─────────────────────────────────────
   Animations
───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────
   Page banner (inner pages)
───────────────────────────────────── */
.page-banner {
  background: var(--beige);
  padding: 72px 40px 56px;
  text-align: center;
}
.page-banner .section-tag { display: block; margin-bottom: 12px; }
.page-banner h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.4;
}

/* ─────────────────────────────────────
   Responsive
───────────────────────────────────── */
@media (max-width: 900px) {
  #site-header { padding: 0 24px; }
  #primary-navigation { display: none; }
  .hamburger-btn { display: flex; }

  .hero-section { grid-template-columns: 1fr; }
  .hero-text-col { padding: 60px 28px 48px; }
  .hero-text-col::before { font-size: 72px; top: 28px; left: 12px; }
  .hero-image-col { display: none; }

  .section-wrap { padding: 0 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .services-section { padding: 80px 0; }

  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-section { padding: 80px 0; }
  .about-img-wrap { max-width: 360px; margin: 0 auto; }

  .access-grid { grid-template-columns: 1fr; }
  .access-section { padding: 80px 0; }

  .contact-section { padding: 80px 0; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  #site-footer { padding: 48px 24px 28px; }

  .page-banner { padding: 56px 24px 44px; }
}

@media (max-width: 480px) {
  .service-card { padding: 32px 24px; }
  .info-block { grid-template-columns: 80px 1fr; }
}
