/* =============================================================
   SHIRUBE — base.css
   Reset / Base / Typography / Layout utils / Section header共通 /
   Reveal / Reduced motion
   ============================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, p { margin: 0; }

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

/* Focus ring */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--color-text);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------------
   Layout utils
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}
.section--soft { background: var(--color-bg-soft); }

.only-sp { display: none; }
@media (max-width: 767px) { .only-sp { display: inline; } }

/* -------------------------------------------------------------
   Section header共通
   ------------------------------------------------------------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .18em;
  padding: 6px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--r-pill);
  background: var(--color-bg);
  margin-bottom: 20px;
}

.section-title-en {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: .04em;
  line-height: 1;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--color-text-sub);
  font-size: 15px;
  margin-top: 4px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------
   Marker (見出し内の黄色下線ハイライト)
   ------------------------------------------------------------- */
.marker {
  background: linear-gradient(transparent 65%, var(--color-accent) 65%);
  color: var(--color-text);
  padding: 0 4px;
}

/* -------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none; }
  .fv__line { opacity: 1; transform: none; }
  .fv__shape { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
