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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.8;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ========== タイポグラフィ ========== */
.en-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  color: var(--color-black);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* 塗料でサッと引いたようなアンダーライン */
.section-label::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: clamp(36px, 28%, 70px);
  height: 4px;
  background: var(--gradient-rainbow-h);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(255, 45, 85, 0.3);
}

.section-header.text-center .section-label::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 2vw, 1.15rem);
  color: var(--color-gray);
  margin-top: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ========== コンテナ（はみ出し防止） ========== */
.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  overflow-x: hidden;
}

/* ========== スクロール連動フェードイン ========== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ペンキ質感ライン ========== */
.rainbow-line {
  height: 5px;
  max-width: 100%;
  background: var(--gradient-rainbow-h);
  background-size: 200% 100%;
  animation: rainbowFlow 4s linear infinite;
  border-radius: 2px;
}

@keyframes rainbowFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ========== ペンキ波形セクション境界 ========== */
.paint-divider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.paint-divider svg {
  display: block;
  width: 100%;
  height: clamp(24px, 4vw, 60px);
}
