/* ============================================================
   月灯 公式サイト  style.css
   Brand Guideline v1.0 / Web Design Guideline v1.0 準拠
   スマホファースト・レスポンシブ
   ============================================================ */

:root {
  --navy: #2E3A59;
  --bluegray: #AAB4CE;
  --gold: #D9B96A;
  --gold-hover: #C6A755;
  --gold-text: #3A2F14;
  --cream: #FAF8F4;
  --alt: #F0F2F7;
  --text: #3A3A3A;
  --sub: #707070;
  --error: #B0655A;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Lora", serif;
  --shadow: 0 2px 12px rgba(46, 58, 89, 0.08);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

/* --- アクセシビリティ --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- レイアウト --- */
.inner { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.inner-wide { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--alt); }

/* --- 見出し --- */
.sec-en {
  text-align: center; font-family: var(--en); font-size: 12px;
  color: var(--bluegray); letter-spacing: 0.25em; text-transform: uppercase;
}
.sec-title {
  font-family: var(--serif); text-align: center; font-size: 22px;
  color: var(--navy); font-weight: 600; letter-spacing: 0.08em; margin-top: 6px;
}
.sec-bar { width: 36px; height: 2px; background: var(--gold); margin: 16px auto 34px; border: 0; }
h3 { font-family: var(--serif); color: var(--navy); font-size: 19px; font-weight: 600; }

/* --- ヘッダー --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 6px rgba(46, 58, 89, 0.08);
}
.site-header .logo img { height: 30px; width: auto; }
.header-right { display: flex; align-items: center; gap: 10px; }
.btn-header {
  background: var(--gold); color: var(--gold-text); font-weight: 700;
  font-size: 12px; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; white-space: nowrap; transition: background 0.2s ease-out;
}
.btn-header:hover { background: var(--gold-hover); }

/* ハンバーガー */
.menu-toggle {
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.3s ease-out; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ドロワー */
.drawer {
  position: fixed; top: 0; right: 0; z-index: 150;
  width: min(78vw, 320px); height: 100vh;
  background: var(--navy); color: #fff;
  padding: 80px 32px 32px;
  transform: translateX(100%); transition: transform 0.3s ease-out;
}
.drawer.is-open { transform: translateX(0); }
.drawer nav a {
  display: block; color: #fff; text-decoration: none;
  padding: 13px 0; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.drawer .drawer-cta {
  display: block; margin-top: 26px; background: var(--gold); color: var(--gold-text);
  text-align: center; font-weight: 700; padding: 14px 0; border-radius: 999px; text-decoration: none;
}
.drawer-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer;
}
.drawer-overlay {
  position: fixed; inset: 0; z-index: 140; background: rgba(46, 58, 89, 0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease-out;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

/* PCナビ */
.global-nav { display: none; }

/* --- ボタン --- */
.btn-primary {
  display: block; width: 100%; max-width: 320px; margin: 0 auto;
  background: var(--gold); color: var(--gold-text);
  font-weight: 700; font-size: 16px; text-align: center;
  padding: 16px 0; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 10px rgba(46, 58, 89, 0.12);
  transition: background 0.2s ease-out;
}
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary {
  display: block; width: 100%; max-width: 320px; margin: 0 auto;
  background: #fff; color: var(--navy);
  font-weight: 700; font-size: 15px; text-align: center;
  padding: 13px 0; border-radius: 999px; border: 1.5px solid var(--navy);
  text-decoration: none; cursor: pointer; transition: background 0.2s ease-out;
}
.btn-secondary:hover { background: var(--alt); }

/* --- パンくず --- */
.breadcrumb { background: #fff; padding: 10px 0; font-size: 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--bluegray); }
.breadcrumb a { color: var(--sub); text-decoration: none; }

/* --- ページヘッダー --- */
.page-header { background: var(--alt); text-align: center; padding: 48px 20px; }
.page-header .sec-title { font-size: 24px; }

/* --- ヒーロー(TOP) --- */
.hero { background: var(--cream); text-align: center; padding: 64px 24px 56px; }
.hero-moon { width: 84px; margin: 0 auto; }
.hero-lead { font-size: 14px; color: var(--sub); margin-top: 18px; letter-spacing: 0.08em; }
.hero h1 {
  font-family: var(--serif); font-size: 27px; color: var(--navy);
  font-weight: 600; letter-spacing: 0.06em; margin-top: 10px; line-height: 1.5;
}
.hero-sub { font-size: 14px; margin-top: 16px; line-height: 2; }
.hero-btns { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* --- カード --- */
.cards { display: flex; flex-direction: column; gap: 20px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; }
.card h3 { margin-bottom: 10px; }
.card-desc { font-size: 14px; line-height: 1.9; }
.card-note { font-size: 12px; color: var(--sub); margin: 12px 0 16px; }
.card .btn-secondary { max-width: none; font-size: 14px; padding: 11px 0; }
.section-note { text-align: center; font-size: 12px; color: var(--sub); margin-top: 22px; }

/* --- ネイビーセクション --- */
.navy-section { background: var(--navy); color: #fff; text-align: center; padding: 64px 24px; }
.navy-section .sec-en { color: var(--gold); }
.navy-section .sec-title { color: #fff; }
.navy-section p { color: #E8EAF2; font-size: 14px; margin-top: 20px; line-height: 2.1; }
.btn-gold-line {
  display: block; width: 100%; max-width: 320px; margin: 30px auto 0;
  border: 1.5px solid var(--gold); color: var(--gold); font-weight: 700;
  font-size: 15px; text-align: center; padding: 13px 0; border-radius: 999px;
  text-decoration: none; transition: background 0.2s ease-out;
}
.btn-gold-line:hover { background: rgba(217, 185, 106, 0.12); }

/* --- ステップ --- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 14px; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--en); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-family: var(--sans); font-size: 15px; color: var(--navy); }
.step p { font-size: 13px; color: var(--sub); line-height: 1.7; }

/* --- FAQ(アコーディオン) --- */
.faq-item {
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 700; font-size: 14px;
  cursor: pointer; list-style: none; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-mark { color: var(--gold); font-family: var(--en); font-size: 17px; }
.faq-arrow { margin-left: auto; color: var(--bluegray); transition: transform 0.3s ease-out; }
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px 47px; font-size: 13.5px; color: var(--sub); line-height: 1.9; }

/* --- フォーム --- */
.form-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.required-badge {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
.optional-badge {
  display: inline-block; background: var(--bluegray); color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--bluegray); border-radius: 8px;
  font-family: var(--sans); font-size: 16px; background: #fff; color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border: 2px solid var(--navy); outline: none; }
.form-hint { font-size: 12px; color: var(--sub); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--error); margin-top: 6px; display: none; }
.form-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.form-agree input { width: 18px; height: 18px; min-height: 0; margin-top: 4px; }
.form-note {
  background: var(--alt); border-radius: 8px; padding: 16px 18px;
  font-size: 13px; color: var(--sub); margin-bottom: 24px; line-height: 1.9;
}

/* --- CTA --- */
.cta-section { background: var(--cream); text-align: center; padding: 64px 24px; }
.cta-section h2 { font-family: var(--serif); font-size: 21px; color: var(--navy); font-weight: 600; line-height: 1.8; }
.cta-section p { margin-top: 14px; font-size: 14px; color: var(--sub); }
.cta-section .btn-primary { margin-top: 28px; }

/* --- 固定CTA(スマホ) --- */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 244, 0.95); box-shadow: 0 -2px 10px rgba(46, 58, 89, 0.1);
  transition: transform 0.3s ease-out;
}
.fixed-cta.is-hidden { transform: translateY(110%); }
.fixed-cta a {
  display: block; background: var(--gold); color: var(--gold-text);
  font-weight: 700; font-size: 15px; text-align: center;
  padding: 13px 0; border-radius: 999px; text-decoration: none;
}

/* --- テーブル --- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { padding: 14px 16px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--alt); vertical-align: top; }
.info-table th { width: 34%; background: var(--alt); color: var(--navy); font-weight: 700; }

/* --- 記事系 --- */
.prose h2 { font-family: var(--serif); color: var(--navy); font-size: 19px; margin: 36px 0 14px; }
.prose p { margin-bottom: 14px; font-size: 14.5px; }
.prose ul { margin: 0 0 14px 22px; font-size: 14.5px; }
.prose li { margin-bottom: 6px; }

/* --- フッター --- */
.site-footer { background: var(--navy); color: #fff; text-align: center; padding: 48px 24px 28px; }
.site-footer .footer-logo img { height: 34px; margin: 0 auto; }
.footer-links { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; }
.footer-links a { font-size: 12px; color: #D8DCE8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-insta { display: inline-block; margin-top: 24px; font-size: 12.5px; color: var(--gold); letter-spacing: 0.1em; text-decoration: none; }
.footer-copy { margin-top: 26px; font-size: 11px; color: #8892AC; }

/* --- スクロールフェード --- */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* --- 準備中表示 --- */
.tbd {
  background: var(--alt); border: 1px dashed var(--bluegray); border-radius: 8px;
  padding: 18px; text-align: center; font-size: 13.5px; color: var(--sub);
}

/* ============================================================
   PC (768px〜)
   ============================================================ */
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .site-header { height: 72px; padding: 0 40px; }
  .site-header .logo img { height: 38px; }
  .menu-toggle, .drawer, .drawer-overlay, .fixed-cta { display: none; }
  .global-nav { display: flex; align-items: center; gap: 26px; }
  .global-nav a { font-size: 14px; color: var(--text); text-decoration: none; white-space: nowrap; }
  .global-nav a:hover { color: var(--navy); }
  .btn-header { font-size: 14px; padding: 10px 22px; }
  .hero { padding: 110px 0 90px; }
  .hero-moon { width: 110px; }
  .hero-lead { font-size: 17px; margin-top: 26px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 16px; margin-top: 22px; }
  .hero-btns { flex-direction: row; justify-content: center; margin-top: 40px; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 300px; margin: 0; }
  .sec-title { font-size: 30px; }
  .page-header { padding: 64px 20px; }
  .page-header .sec-title { font-size: 32px; }
  .cards { flex-direction: row; justify-content: center; }
  .cards .card { width: 315px; }
  .navy-section { padding: 96px 0; }
  .navy-section p { font-size: 15px; }
  .steps { flex-direction: row; justify-content: center; gap: 20px; }
  .step { flex-direction: column; align-items: center; text-align: center; width: 185px; gap: 10px; }
  .faq-list { max-width: 720px; margin: 0 auto; }
  .cta-section h2 { font-size: 28px; }
  .form-block { padding: 40px 48px; }
  .site-footer { padding: 64px 0 32px; }
  .site-footer .footer-logo img { height: 40px; }
}

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fade-in { opacity: 1; transform: none; }
}
