@import url("https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;500;600;700;900&display=swap");

/* ==========================================================
   Design Tokens
   ========================================================== */
:root {
  --font-base: "Zen Old Mincho", serif;

  --color-brand: #028760;
  --color-heading: #432f2f;
  --color-heading-strong: #250d00;
  --color-text: #2b2b2b;
  --color-muted: #727171;
  --color-hover: #82ae46;

  --color-white: #fff;
  --color-brand-soft: #eef7f3;
  --color-border-soft: #d8e6df;
  --color-section-bg: #e5e3df;
  --color-muted-accent: #78ad68;
  --color-warm-bg: #f7f4f0;

  --content-wide: 1200px;
  --content-default: 900px;
  --header-height: 50px;
  --breakpoint-sp: 768px;

  /* Compatibility aliases */
  --font-heading: var(--font-base);
  --font-body: var(--font-base);
  --color-logo: var(--color-brand);
  --color-link: var(--color-brand);
  --color-link-hover: var(--color-hover);
  --color-background: var(--color-white);
  --color-background-soft: var(--color-warm-bg);
  --color-green-soft: var(--color-brand-soft);
  --color-green-gray-light: var(--color-section-bg);
}

/* ==========================================================
   Base
========================================================== */

h1.entry-title {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden !important;
}

.top-page {
  padding-top: var(--header-height);
}

.top-fv {
  min-height: calc(100vh - var(--header-height));
}

.lp-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.l-container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 16px;
}

.l-container--narrow {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  width: 100%;
  max-width: var(--content-default);
  margin: 3rem auto;
  padding: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-base);
  font-weight: 600;
  color: var(--color-heading);
  margin: 0.5rem auto;
  text-align: center;
}

h2 {
  color: var(--color-heading-strong);
}

h3,
h4,
h5,
h6 {
  color: var(--color-heading);
}

p {
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.1em;
  margin: 0.1rem auto;
}

/* ==========================================================
   Typography
========================================================== */

body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--color-hover);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

strong,
b {
  font-weight: 700;
}

small,
.small-title {
  font-size: 0.8em;
}

::selection {
  background: rgba(2, 135, 96, 0.22);
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .sp-only {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
