/* ============================================================
   azhers framework - base.css
   リセット・変数・基礎タイポグラフィ
   ============================================================ */

/* Webfont source for --f-serif (Noto Serif JP) and --f-sans (Noto Sans JP) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* ===== TOKENS ===== */
:root {
  /* JSONから動的に上書きされる変数 */
  --c-primary: #0f1d33;
  --c-accent: #d97326;
  --c-bg: #fbf8f1;

  /* 派生色 */
  --c-primary-dark: color-mix(in oklab, var(--c-primary) 85%, #000);
  --c-primary-light: color-mix(in oklab, var(--c-primary) 30%, #fff);
  --c-accent-dark: color-mix(in oklab, var(--c-accent) 85%, #000);
  --c-accent-light: color-mix(in oklab, var(--c-accent) 20%, #fff);

  /* Neutral */
  --c-bg-alt: color-mix(in oklab, var(--c-bg) 92%, #000);
  --c-bg-deep: color-mix(in oklab, var(--c-bg) 85%, #000);
  --c-surface: #ffffff;
  --c-text-1: #1a1f2e;
  --c-text-2: #4a5266;
  --c-text-3: #5e6677;
  --c-border: #e5dec9;
  --c-border-strong: #d4cbb1;

  --c-success: #2d8659;
  --c-danger: #c0392b;

  /* Typography */
  --f-serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif; /* @kind font */
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif; /* @kind font */

  /* Spacing & layout */
  --header-h: 76px;
  --container-max: 1180px;
  --section-py: clamp(4rem, 9vw, 7rem); /* @kind spacing */

  /* Radius & shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --shadow-sm: 0 2px 6px rgba(15, 29, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 29, 51, 0.1);
  --shadow-lg: 0 20px 50px rgba(15, 29, 51, 0.15);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 18px !important;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 76px) + 1rem);
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-text-1);
  background: var(--c-bg);
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
@media (max-width: 767px) {
  html { font-size: 16px; }
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
input, textarea, select { font: inherit; }
address { font-style: normal; }

/* ===== ACCESSIBILITY: FOCUS ===== */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ===== JAPANESE TEXT BREAKING ===== */
.hero__subtitle,
.section__lead,
.section__title,
.strength-card__title,
.strength-card__desc,
.service-item__title,
.service-item__desc,
.contact-cta__title,
.contact-cta__desc {
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}
@supports not (word-break: auto-phrase) {
  .hero__subtitle,
  .section__lead,
  .strength-card__desc,
  .service-item__desc {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section {
  padding-block: var(--section-py);
  position: relative;
}
.section--alt {
  background-color: var(--c-bg-alt);
  position: relative;
}

/* ===== SECTION HEAD ===== */
.section__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--c-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--f-serif);
  font-size: clamp(1.625rem, 4vw, 2.625rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.section__lead {
  font-size: 1rem;
  color: var(--c-text-2);
  line-height: 2;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.22s; }
.stagger-3 { transition-delay: 0.34s; }
.stagger-4 { transition-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== UTILITIES ===== */
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: block; }
  .pc-only { display: none; }
}

/* ===== FOOTER COL TITLE LINK (shared) ===== */
.footer__col-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__col-title a:hover { color: var(--c-accent); }
