/* ==========================================================================
   base.css  —  リセット・全体・幅クラス・共通パーツ
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

ul, ol { list-style: none; }

/* --- Selection --- */
::selection {
  background: var(--c-accent);
  color: var(--c-paper);
}

/* ==========================================================================
   Layout: 幅クラス（中山さんルール 2026-05-04 準拠）
   ========================================================================== */

/* 端から端まで、内側もそのまま */
.section--full {
  width: 100%;
}

/* 写真・カードグリッド：端まで広げる広コンテナ */
.section--wide {
  width: min(96%, var(--s-container-wide));
  margin-inline: auto;
}

/* 背景フル幅 + 内側中央寄せ（標準1280） */
.section--bg {
  width: 100%;
}
.section--bg > .container,
.section--bg .container {
  width: min(92%, var(--s-container));
  margin-inline: auto;
}

/* 読み物・テキスト主体：720〜880 */
.section--readable {
  width: min(92%, var(--s-container-narrow));
  margin-inline: auto;
}

.container {
  width: min(92%, var(--s-container));
  margin-inline: auto;
}

/* セクション垂直余白 */
.section {
  padding-block: var(--s-section-y);
}
.section--tight {
  padding-block: var(--s-section-y-tight);
}

/* ==========================================================================
   Common parts
   ========================================================================== */

/* Eyebrow / Kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-garamond);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Section heading (ja) */
.s-heading-ja {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}
.s-heading-ja--on-dark { color: var(--c-snow); }

/* Section heading (en, decorative) */
.s-heading-en {
  font-family: var(--f-garamond);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  letter-spacing: 0.08em;
  color: var(--c-ice-deep);
  margin-bottom: 0.5rem;
}

/* Lead body */
.lead {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 2;
  color: var(--c-text);
  letter-spacing: 0.04em;
}

/* Inter で実用数字 */
.num {
  font-family: var(--f-num);
  font-weight: 500;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 2.25rem;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  border-radius: var(--r-pill);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 48px;
}
.btn--primary {
  background: var(--c-accent);
  color: var(--c-paper);
}
.btn--primary:hover {
  background: var(--c-accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(200, 71, 45, 0.55);
}
.btn--ghost {
  border: 1px solid currentColor;
  color: var(--c-snow);
}
.btn--ghost:hover {
  background: var(--c-snow);
  color: var(--c-ink);
}
.btn--ink {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn--ink:hover {
  background: var(--c-ink-2);
  transform: translateY(-2px);
}
.btn .arrow {
  width: 16px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { transform: translateX(6px); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-l {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-l.is-visible {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l { opacity: 1; transform: none; transition: none; }
}

/* Decorative watermark text */
.watermark {
  font-family: var(--f-garamond);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 1;
  color: rgba(184, 207, 223, 0.18);
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}
