/* ============================================
   ピースマイル — 共有スタイル
   ============================================ */

:root {
  /* Palette A: ナチュラル（明るめ・既定） */
  --bg: #FCFAF5;          /* 限りなく白に近い生成り */
  --bg-soft: #F3EDDE;     /* 暖かみのある差し色背景 */
  --bg-paper: #FFFFFF;
  --ink: #2A2722;
  --ink-soft: #6B6458;
  --ink-muted: #9A9385;
  --line: #ECE4D4;
  --line-soft: #F4EEDF;
  --accent: #C28A4A;       /* ハニーブラウン */
  --accent-soft: #E5C896;
  --accent-ink: #FFFFFF;
  --leaf: #8FA47A;         /* セージ */

  /* Typography */
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-display: "Murecho", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-en: "Manrope", "Murecho", system-ui, sans-serif;

  /* Scale */
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(60, 50, 30, 0.04);
  --shadow: 0 6px 24px rgba(60, 50, 30, 0.06);
  --shadow-lg: 0 20px 60px rgba(60, 50, 30, 0.10);

  /* Container */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* Palette B: セージグリーン（明るめ） */
[data-palette="sage"] {
  --bg: #FDFCF6;
  --bg-soft: #EEF3DF;
  --bg-paper: #FFFFFF;
  --ink: #2A3429;
  --ink-soft: #5F6A5E;
  --ink-muted: #9AA295;
  --line: #E2E6D3;
  --line-soft: #F0F2E2;
  --accent: #7AA85F;        /* 明るいフレッシュリーフグリーン */
  --accent-soft: #C5DAA0;
  --leaf: #C8A56C;
}

/* Palette C: テラコッタ（明るめ） */
[data-palette="terracotta"] {
  --bg: #FFFBF4;
  --bg-soft: #FBE9D5;
  --bg-paper: #FFFFFF;
  --ink: #2B201A;
  --ink-soft: #6E5B50;
  --ink-muted: #A89485;
  --line: #F0DFC9;
  --line-soft: #F8EBDA;
  --accent: #D4754E;
  --accent-soft: #F1B894;
  --leaf: #7B8A6B;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

img, svg { display: block; max-width: 100%; }

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

button { font: inherit; cursor: pointer; }

/* ============================================
   レイアウト
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
}

.section-tight {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* ============================================
   ヘッダー
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--ink); background: var(--line-soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav a.nav-cta[aria-current="page"] { color: var(--bg); }
.nav a.nav-cta[aria-current="page"]::after { display: none; }

.hamburger { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
  }
  .hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    position: relative;
  }
  .hamburger span::before, .hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
  }
  .hamburger span::before { top: -6px; }
  .hamburger span::after  { top:  6px; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    gap: 4px;
  }
  .nav.is-open a {
    padding: 14px 12px;
    border-radius: var(--r);
  }
}

/* ============================================
   タイポ
   ============================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.lead {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.small {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.en-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============================================
   ボタン
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--bg-paper);
  border-color: var(--ink);
  color: var(--ink);
}

/* ============================================
   プレースホルダー枠（画像が入る場所）
   ============================================ */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      rgba(140, 130, 110, 0.04) 14px 15px);
  background-color: #F4EFE5;
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.ph::after {
  content: attr(data-label);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.ph-icon {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink-muted);
  border-radius: 6px;
  position: relative;
  opacity: 0.55;
}
.ph-icon::before {
  content: "";
  position: absolute;
  inset: 6px 6px 16px 6px;
  background: var(--ink-muted);
  opacity: 0.35;
  border-radius: 3px;
}
.ph-icon::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
  opacity: 0.55;
}

/* ============================================
   フェードイン（スクロール）
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"].is-in { transition-delay: 80ms; }
.reveal[data-delay="2"].is-in { transition-delay: 160ms; }
.reveal[data-delay="3"].is-in { transition-delay: 240ms; }
.reveal[data-delay="4"].is-in { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   フッター
   ============================================ */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 80px 0 28px;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  color: var(--ink);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 13.5px; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.footer-mark {
  height: 20px;
  width: auto;
  display: block;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.footer-mark:hover { opacity: 0.85; }

/* ============================================
   ページ共通 — ページヘッダー（サブページ用）
   ============================================ */

.page-hero {
  padding: clamp(80px, 11vw, 140px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 360px at 80% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}

@media (max-width: 800px) {
  .page-hero .container { grid-template-columns: 1fr; }
}

.crumbs {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink-muted); }

/* ============================================
   CTA カード（全ページ共通）
   ============================================ */
.cta-section {
  padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}

.cta-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 60%, transparent), transparent 70%);
  pointer-events: none;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .cta-card { grid-template-columns: 1fr; }
}

/* ============================================
   ユーティリティ
   ============================================ */

.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

.kbd-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
