@charset "UTF-8";

/* =====================================================
   base.css
   Base Style for IYOPLAN ADS（2025）
   - Typography
   - Base Elements
   - Global Layout
   ===================================================== */


/* =====================================================
   1. Body / Global
   ===================================================== */

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;

  /* Text Rendering */
  -webkit-font-smoothing: antialiased;
          font-smoothing: antialiased;
}


/* =====================================================
   2. Typography
   ===================================================== */

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--fz-3xl); }
h2 { font-size: var(--fz-2xl); }
h3 { font-size: var(--fz-xl); }
h4 { font-size: var(--fz-lg); }
h5 { font-size: var(--fz-md); }
h6 { font-size: var(--fz-sm); }

/* Paragraph */
p {
  margin-bottom: var(--space-md);
  font-size: var(--fz-lg);
  font-weight: 400;
  line-height: 1.8;
}
@media (max-width: 1300px) {
  h1 { font-size: var(--fz-2xl); }
  h2 { font-size: var(--fz-xl); }
  h3 { font-size: var(--fz-lg); }
  h4 { font-size: var(--fz-md); }
  h5 { font-size: var(--fz-sm); }
  h6 { font-size: var(--fz-sm); }

  p {
    font-size: var(--fz-md);
    line-height: 1.4;
  }
}

@media (max-width: 768px) {
  h1 { font-size: var(--fz-3xl); }
  h2 { font-size: var(--fz-2xl); }
  h3 { font-size: var(--fz-xl); }
  h4 { font-size: var(--fz-lg); }
  h5 { font-size: var(--fz-md); }
  h6 { font-size: var(--fz-sm); }

  p {
    font-size: var(--fz-lg);
    font-weight: 400;
    line-height: 1.8;
  }
}

/* =====================================================
   3. Inline Elements
   ===================================================== */

/* Link */
a {
  transition: var(--motion-fast);
}

a:hover {
  opacity: .85;
}

/* Image */
img {
  border-style: none;
  vertical-align: middle;
}


/* =====================================================
   5. Accessibility / UX
   ===================================================== */

/* Focus Ring */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* Anchor Scroll Offset (for fixed header) */
:target {
  scroll-margin-top: var(--layout-header-height);
}


