@charset "utf-8";

/*
  能代運輸 統合スタイルシート
  - styleguide.css と style.css を統合
  - 最終更新: 2026-01-11

  【セクション構成】
  1. デザイントークン（CSS変数）
  2. 基本スタイル（リセット）
  3. レイアウト（コンテナ、セクション）
  4. ユーティリティクラス
  5. サイトヘッダー・ナビゲーション
  6. 固定ヘッダー
  7. ファーストビュー・ヒーロー
  8. コンポーネント（ボタン、カード、ニュース等）
  9. フッター
  10. スクロールアニメーション

  【ページ固有の値を変更したい場合】
  各HTMLファイル内の<style>タグでCSS変数を上書きしてください：
  - --section-padding: セクション上下余白（デフォルト: 72px）→ index.htmlは80px
  - --section-padding-mobile: モバイル時のセクション余白（デフォルト: 56px）
  - --reveal-translate: フェードイン時の移動距離（デフォルト: 12px）→ index.htmlは14px
  - --reveal-duration: フェードインアニメーション時間（デフォルト: 520ms）→ index.htmlは560ms
*/

/* =============================================================================
   1. デザイントークン（CSS変数）
   修正箇所: 全サイトで使用される色・フォント・サイズ・余白の基準値
   影響範囲: 全ページ全コンポーネント
   - カラー: ブランドカラー、グレースケール、リンク色
   - フォント: 日本語フォント（--font-sans）、英字フォント（--font-display）
   - サイズ: フォントサイズ（12px〜72px）、スペーシング（4px〜96px）
   ============================================================================= */

:root {
  /* カラートークン（ブランドカラー）
     --color-brand-1: メインのCTAボタン等で使用（緑）
     --color-sub-1: セカンダリボタン等で使用（青） */
  --color-brand-1: #22ac38;
  --color-brand-1-hover: #1f8134;
  --color-sub-1: #004ea2;
  --color-sub-1-border: #39a1ff;
  --color-link: #00a0e9;

  /* グレースケール（--gray-0: 白 〜 --gray-900: ほぼ黒）
     各数値が大きいほど暗い色 */
  --gray-0: #ffffff;
  --gray-50: #fbfff8;
  --gray-100: #f5f5f5;
  --gray-150: #f3f3f3;
  --gray-200: #ededed;
  --gray-250: #e5e5e5;
  --gray-300: #cccccc;
  --gray-350: #c3c0c0;
  --gray-400: #9f9f9f;
  --gray-500: #707070;
  --gray-600: #606060;
  --gray-700: #3f3f3f;
  --gray-800: #333333;
  --gray-900: #001e3c;

  /* セマンティックカラー（用途別の色）
     --color-text: 本文テキスト
     --color-surface: 背景色
     --color-border: 境界線 */
  --color-text: var(--gray-800);
  --color-text-strong: var(--gray-900);
  --color-surface: var(--gray-0);
  --color-border: var(--gray-300);
  --color-border-muted: var(--gray-250);

  /* エラー・警告色 */
  --color-danger: #ff0000;
  --color-danger-bg: #ffeeee;

  /* フォントファミリー
     --font-sans: 日本語・本文用フォント
     --font-display: 英字・見出し用フォント（Saira） */
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, "BIZ UDPGothic",
    "YuGothic", "メイリオ", meiryo, sans-serif;
  --font-display: "Saira", sans-serif;

  /* フォントウェイト */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* 行高さ */
  --lh-tight: 1.2;
  --lh-snug: 1.33;
  --lh-base: 1.5;
  --lh-body: 2;

  /* フォントサイズ（px固定）
     修正例: --fs-16 を変更すると .btn や .control 等に影響 */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-36: 36px;
  --fs-40: 40px;
  --fs-50: 50px;
  --fs-72: 72px;

  /* スペーシングトークン（8px基準）
     --space-4: 16px はボタン内のgap等で使用
     --space-6: 24px はカード内のpadding等で使用 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-11: 64px;
  --space-12: 80px;
  --space-13: 96px;

  /* 角丸・シャドウ
     --radius-12: ボタン・カードの角丸
     --shadow-1: カード・ドロップダウンの影 */
  --radius-4: 4px;
  --radius-5: 5px;
  --radius-6: 6px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-pill: 9999px;

  --shadow-0: none;
  --shadow-1: 0 12px 13px rgba(169, 182, 183, 0.6);

  /* フォーカスリング（アクセシビリティ用） */
  --focus-ring: 0 0 0 3px rgba(57, 161, 255, 0.35);
}

/* =============================================================================
   2. 基本スタイル（リセット）
   修正箇所: 全ページの基本的な見た目に影響
   影響範囲: 全ページ
   - body: 背景グラデーション（白→水色→緑）、フォント、文字色
   - a: リンクの色と下線
   ============================================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: linear-gradient(180deg, var(--gray-0) 0%, #dff2f7 40%, #e7fce4 100%);
}

* {
  box-sizing: border-box;
}

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

/* =============================================================================
   3. レイアウト
   修正箇所: ページ全体の構造・余白
   影響範囲: 全ページのコンテンツ幅・セクション間隔
   ============================================================================= */

/* -----------------------------------------------------------------------------
   コンテナ（.wrap）
   - max-width: コンテンツの最大幅（現在1160px）
   - padding: 左右の余白（PC: 36px、モバイル: 20px）
   ----------------------------------------------------------------------------- */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 36px;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 20px;
  }
}

/* -----------------------------------------------------------------------------
   セクション（.section）
   - padding: 上下の余白（CSS変数で各ページごとに調整可能）
   - h2: セクション見出しのスタイル
   - .lead: 見出し下の説明文
   ----------------------------------------------------------------------------- */

.section {
  padding: var(--section-padding, 72px) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile, 56px) 0;
  }
}

.section h2 {
  margin: 0 0 18px;
  font-size: var(--fs-32);
  line-height: var(--lh-snug);
  font-weight: var(--fw-medium);
}

.section .lead {
  margin: 0 0 28px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* サブページ用のリードテキスト（上マージン小さめ） */
.lead {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.9;
}

/* =============================================================================
   4. ユーティリティクラス
   修正箇所: 汎用的なスタイル調整クラス
   影響範囲: クラスを付与した任意の要素
   - .gf: 英字フォント（Saira）+ letter-spacing
   - .muted: グレーテキスト
   - .stack: グリッドギャップ付きコンテナ
   - .center: テキスト中央揃え
   - .sr-only: スクリーンリーダー専用（非表示）
   ============================================================================= */

.gf {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.muted {
  color: var(--gray-600);
}

.stack {
  display: grid;
  gap: var(--space-4);
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =============================================================================
   5. サイトヘッダー・ナビゲーション
   修正箇所: 全ページ上部のナビゲーションバー
   影響範囲: 全ページのヘッダー部分
   - .site-header: ヘッダーコンテナ
   - .site-nav: メインナビゲーション
   - .site-nav-aux: 補助ナビゲーション（採用情報等）
   - .dropdown-menu: ドロップダウンメニュー
   - .site-menu-button: モバイル用ハンバーガーボタン
   ============================================================================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-12);
  border: 1px solid var(--color-border-muted);
  background: var(--gray-0);
  overflow: visible;
  position: relative;
  font-family: var(--font-sans);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .logo img {
  width: 160px;
  height: auto;
}

/* ハンバーガーメニューボタン（モバイル用、PCでは非表示） */
.site-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-10);
  border: 1px solid var(--color-border-muted);
  background: var(--gray-0);
  cursor: pointer;
  transition: opacity 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.site-menu-button:hover {
  opacity: 0.7;
  background: var(--gray-100);
}

.site-menu-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ハンバーガーアイコン（3本線） */
.hamburger {
  display: grid;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-pill);
}

/* ナビゲーションパネル（メニューコンテナ） */
.site-nav-panel {
  display: block;
}

.site-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  justify-content: flex-end;
  flex: 1 1 auto;
}

/* 補助ナビゲーション（採用情報等の上段メニュー） */
.site-nav-aux {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.site-nav-aux > li {
  position: relative;
}

.site-nav-aux .aux-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-10);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.8);
}

.site-nav-aux .aux-link:hover {
  opacity: 1;
  background: var(--gray-100);
}

/* メインナビゲーション（会社案内、事業内容等） */
.site-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.site-nav > li {
  position: relative;
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: var(--radius-10);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-14);
  color: var(--color-text);
}

.site-nav button.nav-link {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.site-nav .nav-link:hover {
  opacity: 1;
  background: var(--gray-100);
}

/* ドロップダウントグル（下向き矢印） */
.site-nav .dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gray-600);
  transform: translateY(1px);
}

/* ドロップダウンメニュー（サブメニュー） */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--gray-0);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-1);
  padding: 10px;
  display: none;
  z-index: 20;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 10px;
  border-radius: var(--radius-10);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-base);
}

.dropdown-menu a:hover {
  opacity: 1;
  background: var(--gray-100);
}

.site-nav li.dropdown.open .dropdown-menu {
  display: block;
}

/* -----------------------------------------------------------------------------
   モバイル用ナビゲーション（768px以下）
   - ハンバーガーメニュー表示
   - ドロップダウンがアコーディオン形式に変化
   ----------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .site-menu-button {
    display: inline-flex;
  }

  .site-nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--gray-0);
    border: 1px solid var(--color-border-muted);
    border-radius: var(--radius-12);
    box-shadow: var(--shadow-1);
    padding: 12px;
    z-index: 30;
  }

  .site-header.is-open .site-nav-panel {
    display: flex;
  }

  .site-nav-wrap {
    align-items: stretch;
    gap: 10px;
  }

  /* モバイルメニュー順序: メインナビ→補助ナビ */
  .site-nav {
    order: 1;
  }

  .site-nav-aux {
    order: 2;
  }

  .site-nav-aux,
  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav-aux .aux-link,
  .site-nav .nav-link {
    justify-content: space-between;
    padding: 12px 12px;
  }

  /* モバイル用ドロップダウン（アコーディオン形式） */
  .dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: var(--shadow-0);
    padding: 0;
    margin-top: 6px;
    margin-left: 12px;
  }

  .dropdown-menu a {
    position: relative;
    padding: 10px 12px 10px 26px;
    font-family: var(--font-sans);
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
  }

  .dropdown-menu a::before {
    content: "・";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
  }

  .site-nav li.dropdown .dropdown-menu {
    display: none;
  }

  .site-nav li.dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu::before {
    display: none;
  }

  .site-nav .dropdown-toggle::after {
    border-top-color: var(--gray-500);
    transition: transform 0.15s ease;
  }

  .site-nav li.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg) translateY(-1px);
  }

  /* タッチデバイスではホバーでメニューを開かない */
  .site-nav li.dropdown:not(.open):hover .dropdown-menu {
    display: none;
  }
}

/* =============================================================================
   6. 固定ヘッダー（.page-header）
   修正箇所: 全ページの上部固定ヘッダー
   影響範囲: スクロール時のヘッダー表示
   - position: fixed で画面上部に固定
   - .is-solid: スクロール後に背景色が白に変化
   - ロゴサイズ、ナビゲーションリンクのパディング等
   ============================================================================= */

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0);
  border-bottom: 0;
  box-shadow: none;
  transition: background-color 260ms ease, box-shadow 260ms ease;
}

.page-header.is-solid {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.page-header .site-header {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 12px;
}

.page-header .site-header .logo img {
  width: 120px;
  height: auto;
  transform: scale(1.7);
  transform-origin: left center;
}

.page-header .site-nav .nav-link,
.page-header .site-nav-aux .aux-link,
.page-header .site-menu-button,
.page-header .hamburger span,
.page-header .site-nav .dropdown-toggle::after {
  transition: color 260ms ease, background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.page-header .site-nav .nav-link,
.page-header .site-nav-aux .aux-link {
  padding: 8px 8px;
}

/* ナビゲーションホバー時の背景を透明に */
.page-header .site-nav .nav-link:hover,
.page-header .site-nav-aux .aux-link:hover {
  background: transparent;
}

@media (max-width: 768px) {
  .page-header .site-header .logo img {
    width: 112px;
    transform: scale(1.6);
  }

  .page-header .site-menu-button {
    width: 38px;
    height: 38px;
  }
}

/* -----------------------------------------------------------------------------
   アンカーオフセット
   - ページ内リンクでジャンプした時の位置調整
   - scroll-margin-top: 固定ヘッダー分（64px）下にずらす
   ----------------------------------------------------------------------------- */

.anchor,
section[id] {
  scroll-margin-top: 64px;
}

/* =============================================================================
   7. ファーストビュー・ヒーロー
   修正箇所: 各ページ上部のメインビジュアル領域
   影響範囲: トップページ・各サブページのヒーロー部分
   ============================================================================= */

/* -----------------------------------------------------------------------------
   ファーストビュー（.firstview）
   - ヒーロー＋オーバービューを画面高さに収めるレイアウト
   - min-height: 100svh/100vh で画面全体の高さ
   - grid-template-rows: ヒーローが伸縮、オーバービューは固定高さ
   ----------------------------------------------------------------------------- */

.firstview {
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

/* -----------------------------------------------------------------------------
   ヒーローセクション（.hero）
   - .hero-media: 背景画像（各HTMLで background-image を指定）
   - .hero-media::before: 左上からの白グラデーションオーバーレイ
   - .hero-copy: タイトル・キャッチコピーのテキストエリア
   - .eyebrow: 「ABOUT」「SERVICE」等の英字ラベル
   ----------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
}

.hero-content {
  position: relative;
  min-height: 100%;
  display: grid;
  align-items: start;
  justify-items: start;
  padding: 90px 0 60px;
}

.hero-copy {
  max-width: 860px;
  margin-top: clamp(56px, 10vh, 80px);
  margin-left: clamp(18px, 4vw, 36px);
  color: var(--color-text);
}

.hero-copy .eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-weight: var(--fw-semibold);
  font-size: calc(var(--fs-28) * 0.8);
  opacity: 0.95;
  margin-bottom: 10px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 52px;
  line-height: 1.12;
  font-weight: var(--fw-medium);
  font-family: var(--font-sans);
}

@media (max-width: 768px) {
  .hero-content {
    padding: 72px 0 54px;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
}

/* -----------------------------------------------------------------------------
   オーバービューセクション（.section--overview）
   - ヒーロー直下のキャッチフレーズエリア
   - padding: 上下の余白（通常セクションより狭め）
   - .overview-message: 中央揃えの太字メッセージ
   ----------------------------------------------------------------------------- */

.section.section--overview {
  padding: 40px 0 48px;
}

@media (max-width: 768px) {
  .section.section--overview {
    padding: 28px 0 36px;
  }
}

.section h2.overview-message {
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

/* =============================================================================
   8. コンポーネント
   修正箇所: 再利用可能なUIパーツ
   影響範囲: 各コンポーネントを使用している全ページ
   ============================================================================= */

/* -----------------------------------------------------------------------------
   ボタン（.btn）
   - .btn.primary: 緑の主要ボタン（CTA用）
   - .btn.secondary: 青のセカンダリボタン
   - .btn.outline: 枠線のみのボタン
   - .btn.ghost: 透明背景のボタン
   - .btn.sm / .btn.lg: サイズバリエーション
   ----------------------------------------------------------------------------- */

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 52px;
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  line-height: 1;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 140ms ease, background-color 140ms ease, border-color 140ms ease;
  user-select: none;
}

.btn:hover {
  opacity: 0.7;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn.primary {
  background: var(--color-brand-1);
  color: var(--gray-0);
}

.btn.primary:hover {
  background: var(--color-brand-1-hover);
}

.btn.secondary {
  background: var(--color-sub-1);
  color: var(--gray-0);
}

.btn.outline {
  background: var(--gray-0);
  color: var(--color-sub-1);
  border-color: var(--color-sub-1-border);
}

.btn.ghost {
  background: transparent;
  color: var(--color-text-strong);
  border-color: var(--color-border-muted);
}

.btn.sm {
  height: 40px;
  border-radius: var(--radius-10);
  font-size: var(--fs-14);
  padding: 0 14px;
}

.btn.lg {
  height: 60px;
  border-radius: var(--radius-12);
  font-size: var(--fs-18);
  padding: 0 22px;
}

/* -----------------------------------------------------------------------------
   カード（.card）
   - お知らせやサービス紹介で使用
   - .card .media: サムネイル画像エリア
   - .card .body: テキストコンテンツエリア
   - .card .kicker: カテゴリラベル
   ----------------------------------------------------------------------------- */

.card {
  overflow: hidden;
  border-radius: var(--radius-12);
  border: 1px solid var(--color-border-muted);
  background: var(--gray-0);
  box-shadow: var(--shadow-1);
}

.card .media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0, 160, 233, 0.25), rgba(34, 172, 56, 0.25));
}

.card .body {
  padding: var(--space-6);
}

.card .kicker {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: var(--fs-14);
  color: var(--gray-600);
  margin: 0 0 var(--space-2);
}

.card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-22);
  line-height: var(--lh-snug);
  font-weight: var(--fw-bold);
}

.card p {
  margin: 0;
  color: var(--gray-600);
  font-size: var(--fs-14);
  line-height: 1.8;
}

/* -----------------------------------------------------------------------------
   ニュースリスト（.news）
   - お知らせ一覧で使用
   - .news-item: 各ニュース項目
   - .news-meta: 日付・タグエリア
   - .news-title: ニュースタイトル
   - .tag: カテゴリタグ（青: デフォルト、.tag.green: 緑）
   ----------------------------------------------------------------------------- */

.news {
  display: grid;
  gap: 10px;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 14px;
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-10);
  background: var(--gray-0);
  color: inherit;
  text-decoration: none;
  transition: opacity 140ms ease;
}

a.news-item:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.news-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-date {
  font-family: var(--font-display);
  font-size: var(--fs-14);
  color: var(--gray-600);
  letter-spacing: 0.04em;
}

.tag {
  display: inline-block;
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  color: var(--gray-0);
  background: var(--color-link);
  border-radius: var(--radius-6);
  padding: 4px 8px;
  line-height: 1;
  width: fit-content;
}

.tag.green {
  background: #8fc31f;
}

.news-title {
  font-size: var(--fs-16);
  font-weight: var(--fw-bold);
  line-height: var(--lh-base);
}

.news-title,
.news-title a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-title a {
  color: inherit;
}

/* -----------------------------------------------------------------------------
   フォーム（.form）
   - お問い合わせフォームで使用
   - .field: 入力項目のコンテナ
   - .label-row: ラベルと必須バッジの行
   - .req: 必須バッジ（赤）
   - .control: テキストフィールド・テキストエリア
   - .error-box: エラーメッセージボックス
   ----------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-6);
}

.field {
  display: grid;
  gap: 8px;
}

.label-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
}

.req {
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  color: var(--gray-0);
  background: var(--color-danger);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  line-height: 1;
}

.help {
  font-size: var(--fs-14);
  color: var(--gray-600);
  line-height: 1.6;
}

.control {
  width: 100%;
  max-width: 769px;
  height: 60px;
  border: 1px solid var(--gray-350);
  border-radius: var(--radius-5);
  background: var(--gray-0);
  padding: 0 1em 0 1.2em;
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  color: var(--gray-800);
  font-family: var(--font-sans);
}

.control::placeholder {
  color: var(--gray-400);
}

.control:focus {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--color-sub-1-border);
}

textarea.control {
  height: auto;
  min-height: 160px;
  padding: 1em 1.2em;
  resize: vertical;
}

.control.error {
  border-color: var(--color-danger);
}

.error-box {
  border-radius: var(--radius-12);
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger);
  padding: 14px 18px;
  font-weight: var(--fw-bold);
  color: var(--color-danger);
  font-size: var(--fs-14);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   パンくずナビゲーション（.breadcrumb）
   - サブページの上部で使用
   - 現在位置を示すナビゲーション
   ----------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-14);
  line-height: var(--lh-base);
}

.breadcrumb a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb .sep {
  color: var(--gray-500);
}

/* =============================================================================
   9. フッター
   修正箇所: 全ページ下部のフッター
   影響範囲: 全ページのフッター部分
   - .site-footer: デフォルト（暗い背景）
   - .site-footer--light: 白背景バリアント
   - .footer-logo: ロゴ画像のサイズ
   - .footer-address: 住所テキストのスタイル
   ============================================================================= */

.site-footer {
  border-radius: var(--radius-12);
  background: var(--gray-900);
  color: var(--gray-0);
  padding: var(--space-7);
  font-family: var(--font-sans);
}

.site-footer .cols {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .site-footer .cols {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer .brandline {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-weight: var(--fw-semibold);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer small {
  display: block;
  margin-top: var(--space-6);
  color: rgba(255, 255, 255, 0.7);
}

/* 白背景フッター（サブページ用） */
.site-footer.site-footer--light {
  background: #fff;
  color: var(--color-text);
  border: 0;
  border-radius: 0;
}

.site-footer.site-footer--light a {
  color: inherit;
}

.site-footer.site-footer--light small {
  color: var(--gray-600);
}

.footer-address {
  line-height: 1.8;
  color: var(--gray-700);
  font-size: var(--fs-14);
}

.footer-logo img {
  width: 180px;
  height: auto;
}

@media (max-width: 768px) {
  .footer-logo img {
    width: 160px;
  }
}

/* =============================================================================
   10. スクロールアニメーション（.reveal）
   修正箇所: 全ページのフェードイン表示効果
   影響範囲: .revealクラスを持つ全要素
   - translateY: 下から上への移動距離（CSS変数で調整可能）
   - duration: アニメーション時間（CSS変数で調整可能）
   - .reveal-enabled: index.htmlで使用（JS有効時のみ動作）
   - .reveal: サブページで使用（常時動作）
   ============================================================================= */

/* サブページ用（about/, news/, service/, contact/） */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-translate, 12px));
  transition: opacity var(--reveal-duration, 520ms) ease, transform var(--reveal-duration, 520ms) ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* index.html用（.reveal-enabledクラスがhtml要素に付与される） */
.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-translate, 12px));
  transition: opacity var(--reveal-duration, 520ms) ease, transform var(--reveal-duration, 520ms) ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* 表示状態（要素が画面内に入った時） */
.reveal.is-visible,
.reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 表示完了後（ホバー等のインタラクション用に遷移を短縮） */
.reveal.is-visible.reveal-done,
.reveal-enabled .reveal.is-visible.reveal-done {
  transition: opacity 140ms ease, transform 140ms ease;
  transition-delay: 0ms;
}

/* ホバー時の透明度変更（リンク・ボタン） */
.reveal-enabled a.reveal.is-visible:hover,
.reveal-enabled button.reveal.is-visible:hover {
  opacity: 0.7;
}

.reveal-enabled .card-link.reveal.is-visible:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

/* アニメーション無効設定のユーザー向け */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .reveal-enabled .reveal,
  .reveal-enabled .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
