/* ==========================================================
   Albis — Base styles
   ========================================================== */
:root {
  --color-primary: #174a73;
  --color-primary-dark: #103753;
  --color-accent: #2675ad;
  --color-accent-light: #4d94c5;
  --color-accent-strong: #1f6a9e;
  --color-text: #162638;
  --color-text-sub: #5d7184;
  --color-bg: #ffffff;
  --color-bg-light: #f3f7fa;
  --color-bg-blue: #e8f2f8;
  --color-border: #d5dee7;
  --color-white: #ffffff;
  --shadow-sm: 0 8px 24px rgb(20 52 76 / 8%);
  --shadow-md: 0 18px 50px rgb(20 52 76 / 12%);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --font-sans: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
p, ul { overflow-wrap: anywhere; }

/* ----------------------------------------------------------
   Japanese line breaking（見出しの改行調整）
   - 見出しは文節単位で改行し、末尾の数文字だけが
     次の行に残らないよう行の長さを均等化する
   - .phrase は「、」「。」で区切った句のまとまり。
     幅が足りる限り、句の途中では改行しない
   ---------------------------------------------------------- */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: auto-phrase;   /* Chrome / Edge 119+：文節単位で改行 */
  line-break: strict;        /* 行頭に小書き文字・記号を置かない */
  text-wrap: balance;        /* 各行の長さを均等化 */
}
.phrase { display: inline-block; }

/* 見出しのように大きく表示する文（キャッチ・リード・メッセージ）にも
   見出しと同じ改行ルールを適用する。
   「基｜盤」のような単語の途中での改行や、「ます。」だけが残る改行を防ぐ */
.hero__lead,
.page-hero__lead,
.page-intro__message,
.feature-section__lead,
.issue-card__catch,
.service-card__catch,
.service-detail__catch,
.why-albis__message,
.article-hero__lead,
.article-body__lead {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}

/* 本文・リード文：文節単位で改行し、最終行に「ます。」などだけが残る改行を抑制 */
p, li, dd { word-break: auto-phrase; text-wrap: pretty; line-break: strict; }

:focus-visible {
  outline: 3px solid #58a9df;
  outline-offset: 3px;
}

/* Skip link
   通常時は画面外へ配置し、
   キーボードフォーカス時のみ表示する */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;

  padding: 10px 16px;

  background: #174a73;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;

  border-radius: 6px;

  transform: translateY(-200%);
  transition: transform 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .contact-cta, .anchor-nav, .menu-button { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { text-decoration: none; }
  .section, .service-detail, .page-section { padding-block: 32px !important; }
}
