/* ========================================
   common.css
   全ページ共通: リセット / ルート変数 / nav / footer / scroll reveal
   ======================================== */

:root {
  --bg: #f4f1ea;
  --bg-2: #ebe7dc;
  --ink: #0e0e0e;
  --ink-soft: #555;
  --c-ad:   #ff3d2e;
  --c-lp:   #1f7a4d;
  --c-prod: #1d49c9;
  --c-mc:   #f5c518;
  --acid:   #c8ff3a;
  --serif: "Bodoni Moda", "Noto Serif JP", serif;
  --jp: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--jp);
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  line-height: 1.7;
  overflow-x: hidden;
}

/* グレインオーバーレイ */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  mix-blend-mode: difference;
  color: white;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
  filter: invert(1);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.nav-links a {
  color: white;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: white;
  transition: width 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.nav-links a:hover::after { width: 100%; }

/* ハンバーガーボタン（モバイル用） */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
}
.nav-toggle span {
  position: absolute;
  left: 6px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1),
              opacity 0.3s ease,
              top 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.is-open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* モバイル用フルスクリーンメニュー */
.nav-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--bg);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nav-menu.is-open {
  display: flex;
  opacity: 1;
}
.nav-menu a {
  color: var(--bg);
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  letter-spacing: 0.1em;
}
.nav-menu .jp {
  display: block;
  font-family: var(--jp);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-align: center;
}

@media (max-width: 768px) {
  nav { padding: 18px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 0 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-wordmark {
  display: flex;
  justify-content: center;
  padding: 96px 24px 64px;
  position: relative;
}
.footer-wordmark img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg) brightness(1.2);
}
.footer-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  padding: 80px 40px 48px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
  font-weight: 400;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.footer-col ul a {
  color: var(--bg);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--c-mc); }

.footer-bottom {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 40px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-family: var(--serif);
  font-style: italic;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 32px 24px 0;
  }
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ SECTION COMMON ============ */
section.std { padding: 120px 40px; position: relative; }

.section-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.section-heading {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  /* 単語の途中で折れる段落ちを抑止 */
  word-break: normal;
  overflow-wrap: normal;
}

/* セクション内の見出し系コンテナの幅を共通で制限（中央寄せ・左揃え保持） */
section.std > .reveal {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  section.std { padding: 100px 24px; }
  .section-heading { margin-bottom: 48px; }
}

@media (max-width: 600px) {
  .section-heading {
    font-size: clamp(32px, 9vw, 72px);
    margin-bottom: 40px;
  }
}
