/* ============================================================
   base.css — デザインシステム・共通スタイル
   Stepping Stones WordPress Theme
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --bg:           #ffffff;
  --bg-2:         #f7f7f7;
  --bg-3:         #efefef;
  --text:         #111111;
  --text-muted:   #555555;
  --text-dim:     #999999;
  --accent:       #2a2a2a;
  --accent-light: #444444;
  --border:       rgba(0,0,0,0.1);
  --border-dim:   rgba(0,0,0,0.06);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border-dim);
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  display: flex; flex-direction: column;
  line-height: 1; gap: 3px;
}
.site-logo span {
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* WordPress nav_menu 出力をフラットに */
.global-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.global-nav ul { list-style: none; display: flex; gap: 40px; align-items: center; }
.global-nav ul li { position: relative; }
.global-nav ul li ul { display: none; } /* サブメニュー非表示 */
.global-nav a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.3s ease;
}
.global-nav a:hover,
.global-nav .current-menu-item > a,
.global-nav .current_page_item > a { color: var(--accent); }
.global-nav .current-menu-item > a::after,
.global-nav .current_page_item > a::after {
  content: ''; display: block;
  height: 1px; background: var(--accent);
  margin-top: 3px;
}
.nav-contact-item a {
  border: 1px solid rgba(0,0,0,0.15);
  padding: 9px 22px;
  color: var(--accent) !important;
  transition: background 0.3s ease, color 0.3s ease !important;
}
.nav-contact-item a:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
}
.nav-contact-item a::after { display: none !important; }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px; z-index: 200;
}
.hamburger span {
  display: block; width: 100%; height: 1px;
  background: var(--accent);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile Menu ── */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: #ffffff; z-index: 150;
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-menu ul { list-style: none; width: 80%; }
.mobile-menu ul li ul { display: none; }
.mobile-menu a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 36px; font-weight: 300;
  letter-spacing: 0.04em; color: var(--text-muted);
  text-decoration: none; padding: 16px 0;
  border-bottom: 1px solid var(--border-dim);
  display: block; text-align: center;
  transition: color 0.3s ease;
}
.mobile-menu ul li:first-child a { border-top: 1px solid var(--border-dim); }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mobile-contact-item a {
  margin-top: 32px;
  border: 1px solid rgba(0,0,0,0.15) !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px !important; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}

/* ── Page Hero (内ページ共通) ── */
.page-hero {
  padding: 160px 52px 80px;
  border-bottom: 1px solid var(--border-dim);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #ffffff 0%, #f5f5f5 60%, #f0f0f0 100%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2) 40%, transparent);
}
.page-hero-content { position: relative; z-index: 1; }
.page-eyebrow {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.page-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px;
  background: var(--accent); opacity: 0.4;
}
.page-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 24px;
}
.page-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; font-weight: 300;
  line-height: 2; color: var(--text-muted);
  letter-spacing: 0.06em; max-width: 560px;
}

/* ── Section Commons ── */
.section { padding: 100px 52px; }

.section-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 52px;
  display: flex; align-items: center; gap: 16px;
}
.section-label::after {
  content: ''; flex: 1; max-width: 52px;
  height: 1px; background: var(--border);
}
.section-heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff; background: var(--accent);
  padding: 16px 36px; text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-light); transform: translateX(4px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border);
  padding: 13px 28px; text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline:hover { background: var(--accent); color: #ffffff; }

/* ── CTA Band ── */
.cta-band {
  background: var(--bg-2);
  padding: 80px 52px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 48px;
  border-top: 1px solid var(--border-dim);
}
.cta-band-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400; color: var(--text); line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ── .hl highlight ── */
.hl { color: var(--accent); font-style: normal; font-weight: 500; }

/* ── Footer ── */
.site-footer {
  padding: 60px 52px 40px;
  border-top: 1px solid var(--border-dim);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; align-items: start;
}
.footer-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block; text-decoration: none;
}
.footer-tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px; font-weight: 300;
  color: var(--text-dim); letter-spacing: 0.1em; line-height: 1.9;
}
.footer-nav h4 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-nav ul li ul { display: none; }
.footer-nav a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; font-weight: 300;
  color: var(--text-dim); text-decoration: none;
  letter-spacing: 0.06em; transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--text-muted); }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-dim);
  padding-top: 28px; margin-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; letter-spacing: 0.14em; color: var(--text-dim);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .site-header { padding: 24px 32px; }
  .global-nav { gap: 28px; }
  .global-nav ul { gap: 28px; }
  .page-hero { padding: 140px 32px 72px; }
  .section { padding: 80px 32px; }
  .cta-band { padding: 64px 32px; }
  .site-footer { padding: 52px 32px 36px; }
}

@media (max-width: 768px) {
  .site-header { padding: 20px 24px; }
  .global-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .page-hero { padding: 120px 24px 60px; min-height: 100svh; }
  .page-title { font-size: clamp(36px, 10vw, 56px); }
  .section { padding: 64px 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 56px 24px; }
  .site-footer { padding: 48px 24px 32px; grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 390px) {
  .mobile-menu a { font-size: 28px; padding: 14px 0; }
}
