/* =========================================================
   Nagano Kaori (KOKYU) — custom styles
   Tailwind 本体は CDN、独自トークン/演出のみここに外出し
   ブレークポイント: 768px（Tailwind md と一致）
   ========================================================= */

/* ---- Base ---------------------------------------------- */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #fbf9f7;
  /* 本文 body : 15px / line-height 1.8 / letter-spacing 0.05em（SP・PC共通） */
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---- Grain overlay (ローカル完結 : inline SVG noise) ----- */
.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* ---- Parallax background -------------------------------- */
.parallax-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll; /* モバイル既定：iOSの過剰ズーム回避 */
}
@media (min-width: 768px) {
  .parallax-bg { background-attachment: fixed; } /* PC/タブレットはパララックス維持 */
}

/* =========================================================
   タイポグラフィ（768px で SP値 / PC値 を切替）
   SP(<768px)  : h1 24/2, h2 24/2/300
   PC(>=768px) : h1 38/1.2, h2 30/2/300
   ========================================================= */

/* h1 ヒーロー */
.hero-copy {
  font-size: 24px;
  line-height: 2;
}

/* h2 各セクション見出し（SPは混在値を 24/2/300 に統一） */
.section-heading {
  font-size: 24px;
  line-height: 2;
  font-weight: 300;
}

/* CTA 価格 */
.price-line {
  font-size: 24px;
  font-weight: 300;
}

@media (min-width: 768px) {
  .hero-copy {
    font-size: 38px;
    line-height: 1.2;
  }
  .section-heading {
    font-size: 30px;
    line-height: 2;
    font-weight: 300;
  }
}

/* =========================================================
   アニメーション
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.animate-fadeInUp { animation: fadeInUp 1s ease-out forwards; }
.hero-anim       { animation: fadeInUp 1.2s ease-out forwards; }
.scroll-line     { animation: scrollLine 2s ease-in-out infinite; }

/* data-aos 要素はJSで可視化されるまで透明 */
[data-aos] { opacity: 0; transition: opacity 0.2s; }

/* =========================================================
   モバイルメニュー
   ========================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: #fbf9f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  /* スライドではなくフェードで表示 */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.mobile-menu.open { visibility: visible; opacity: 1; }

/* メニュー項目：下から段差フェードイン */
.mobile-menu a {
  font-size: 18px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-of-type(1) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-of-type(2) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-of-type(3) { transition-delay: 0.35s; }
.mobile-menu.open a:nth-of-type(4) { transition-delay: 0.45s; }

/* 開いている間はヘッダー（＝ハンバーガー）を前面に出し、×で閉じられるように */
#top-nav.nav-elevated { z-index: 70; }

/* =========================================================
   ハンバーガー（細線・洗練）
   ========================================================= */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  color: #18281e; /* text-primary 相当 */
}
.menu-toggle span {
  display: block;
  width: 23px;
  height: 1px;
  background: currentColor;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu-toggle:hover span { opacity: 0.7; }

/* 開いた時：3本線が × に変形（線間 6px + 線 1px = 中心間 7px） */
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle.is-open:hover span { opacity: 1; }
.menu-toggle.is-open:hover span:nth-child(2) { opacity: 0; }

/* 閉じる（× 細線） */
.menu-close {
  width: 26px;
  height: 26px;
  position: relative;
  color: #18281e;
}
.menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: opacity 0.3s ease;
}
.menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-close:hover span { opacity: 0.7; }

/* =========================================================
   フッターのリンク（見出しなし・フラット / スマホ1列）
   ========================================================= */
.footer-links a { white-space: nowrap; }

/* =========================================================
   お問い合わせフォーム
   ========================================================= */
.form-field { margin-bottom: 28px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #434844;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1b1c1b;
  background: #ffffff;
  border: 1px solid #c3c8c2;     /* outline-variant */
  border-radius: 2px;
  transition: border-color 0.25s ease;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #18281e;          /* primary */
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #434844;
}
.form-consent input { margin-top: 4px; }
.form-submit {
  display: inline-block;
  padding: 16px 48px;
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #2d3e33;       /* primary-container */
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.form-submit:hover { transform: translateY(-2px); background-color: #18281e; }

/* =========================================================
   下層ページ（Contact / Privacy）の本文
   ========================================================= */
.page-main { padding-top: 120px; }
@media (min-width: 768px) { .page-main { padding-top: 160px; } }

.legal-body h3 {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 40px 0 12px;
  color: #18281e;
}
.legal-body p { margin-bottom: 12px; }
.legal-body ul { margin: 8px 0 16px; padding-left: 1.2em; list-style: disc; }
.legal-body li { margin-bottom: 6px; }
