﻿    :root {
    --transition-duration: 600ms;
    --overlay-color: rgba(0, 0, 0, 0.25);
    --header-height: 64px; /* ヘッダーの高さ */
    --side-panel-width: 320px; /* 追加: サイドメニューの共通張り出し幅 */
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* 固定式ヘッダーのスタイル */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #fff; /* デフォルトの背景色を白に変更 */
    color: #000; /* デフォルトの文字色を黒に変更 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 通常時の影 */
    font-size: 1rem; /* デフォルトの文字サイズ */
    transition: background-color 260ms ease, color 200ms ease;
  }

  .site-header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  /* 追加: ロゴ（タイトル）ホバー時に色を明るく */
  .site-header .logo a:hover {
    opacity: 0.75;
    transition: opacity 0.18s;
  }

  .site-header nav {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .site-header nav a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: sans-serif;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }

  .accident-btn-icon { height:1.8em; width:auto; object-fit:contain; vertical-align:middle; margin-right:4px; clip-path:inset(12%); }
  .site-header nav .accident-btn-icon { filter: brightness(0); transition: filter 200ms ease; }
  .site-header nav a:hover .accident-btn-icon { filter: brightness(0) invert(1); }
  .site-header.at-top nav .accident-btn-icon { filter: brightness(0) invert(1); }
  .mobile-panel .accident-btn-icon { height:24px; }
  .site-header nav a.accident-btn,
  .site-header nav a.inquiry-btn {
    height: 2em;
  }
  .site-header.at-top nav a.accident-btn {
    background-color: transparent;
  }
  .site-header.at-top nav a.accident-btn:hover {
    background-color: #6B7B8C;
  }
  .site-header nav a.inquiry-btn {
    background-color: #0b66c2;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600;
  }
  .site-header nav a.inquiry-btn:hover {
    background-color: #0955a8 !important;
    color: #fff !important;
  }
  .site-header.at-top nav a.inquiry-btn {
    background-color: rgba(11,102,194,0.9);
  }
  .site-header nav a:hover {
    background-color: #6B7B8C; /* 落ち着いたスレートグレー */
    color: #fff;
  }

  /* スクロール時のヘッダーの色変更 */
  .site-header.at-top {
    background-color: transparent; /* スクロールトップ時に透明にする */
    color: #fff; /* スクロールトップ時は白文字 */
    box-shadow: none; /* 境界線（影）を削除 */
  }

  .site-header.at-top .logo, 
  .site-header.at-top nav a {
    color: #fff; /* スクロールトップ時は白文字 */
  }

  .site-header.at-top .hamburger .bars span {
    background: #fff;
  }

  /* リスポンシブデザイン */
  @media (max-width: 1200px) {
    :root {
      --header-height: 56px; /* ヘッダーの高さを縮小 */
    }
    .site-header {
      font-size: 0.85rem; /* ヘッダー全体の文字サイズをさらに縮小 */
    }
    .site-header nav a {
      font-size: 0.8rem; /* メニューの文字サイズをさらに縮小 */
      padding: 0.3rem 0.6rem; /* 余白をさらに調整 */
    }
  }

  @media (max-width: 900px) {
      .hamburger { display: flex; }
      .site-header nav { display: none; }
      .mobile-panel { display: flex; }
      .site-header .logo { font-size: 1.5rem; }
    }

  @media (max-width: 768px) {
    :root {
      --header-height: 48px; /* ヘッダーの高さをさらに縮小 */
    }
    .site-header {
      font-size: 0.8rem; /* ヘッダーの文字サイズをさらに縮小 */
    }
    .site-header .logo {
      font-size: 1.3rem; /* ロゴの文字サイズをさらに縮小 */
    }

    .card {
      flex: 1 1 100%; /* 縨並び時のカードの幅を画面いっぱいに設定 */
      max-width: 100%;
    }

    .news-card {
      width: 100%; /* 縨並び時のNEWSカードの幅を画面いっぱいに設定 */
      background-image: none !important; /* スマホ版は背景画像非表示 */
      background: #fff !important;
    }

    .topic-card {
      width: 100%; /* NEWSカードと同じく、縦並び時は画面いっぱいに設定 */
      background-image: none !important; /* スマホ版は背景画像非表示 */
      background: #fff !important;
    }
  }

  @media (max-width: 480px) {
    .site-header { padding: 0 0.75rem; }
    .site-header .logo { font-size: 1.3rem; }
    .site-header nav a { padding: 0.6rem 0.8rem; font-size: 0.95rem; }
    .mobile-panel { width: min(var(--side-panel-width), 90vw); padding: 16px; box-sizing: border-box; }
    .mobile-panel a { padding: 0.75rem 12px; font-size: 1.12rem; }
    .hero .content { padding: 1rem; }
    .card { height: auto; }
    .card h2 { font-size: 1.15rem; }
  }

  /* タブレット〜小デスクトップの微調整 */
  @media (min-width: 481px) and (max-width: 900px) {
    .site-header { padding: 0 1rem; }
    .site-header .logo { font-size: 1.5rem; }
    .site-header nav a { padding: 0.5rem 0.9rem; font-size: 1rem; }
    .mobile-panel { width: min(var(--side-panel-width), 90vw); }
  }

  .hero {
    position:relative;
    width:100%;
    overflow:hidden;
    background:#111;
    color:#fff;
    height:100vh;
    min-height:100vh;
    margin-top: 0;
  }

  /* svh: アドレスバー表示時の固定高さ（dvhはスクロール時にジャンプするため不使用） */
  @supports (height: 100svh) {
    .hero { height:100svh; min-height:100svh; }
  }

  /* デスクトップでは固定高に戻す */
  @media (min-width: 901px) {
    .hero { height:560px; min-height:560px; }
  }

  /* モバイル専用クイックリンク（事故・お問い合わせ） */
  .hero-quick-links {
    display: none;
    position: absolute;
    bottom: 52px;
    right: 12px;
    z-index: 10;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
  @media (max-width: 900px) {
    .hero-quick-links { display: flex; }
  }
  .hero-quick-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.42);
    color: #fff;
    text-decoration: none;
    padding: 6px 14px 6px 10px;
    border-radius: 24px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.18s;
    white-space: nowrap;
  }
  .hero-quick-btn:hover,
  .hero-quick-btn:active {
    background: rgba(11,102,194,0.72);
  }
  .hero-quick-btn img {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: 18px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    flex-shrink: 0;
  }
  .hero-quick-btn svg {
    flex-shrink: 0;
  }

  /* スマホ: hero + TOPIC でビューポートをちょうど埋める */
  @media (max-width: 900px) {
    .hero-topic-wrap {
      display: flex;
      flex-direction: column;
      height: 100vh;
      min-height: 100vh;
    }
    .hero-topic-wrap .hero {
      flex: 1 1 auto;
      height: auto;
      min-height: 0;
    }
    .hero-topic-wrap .topic-section {
      flex-shrink: 0;
      margin: 0;
    }
  }
  @supports (height: 100svh) {
    @media (max-width: 900px) {
      .hero-topic-wrap { height: 100svh; min-height: 100svh; }
    }
  }

  .hero img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top; /* 重要被写体を上寄せで見せる */
    opacity:0;
    transition:opacity var(--transition-duration) ease;
    will-change:opacity;
    display:block;
    /* 変更: Ken Burns を高速化（例: 6s に短縮） */
    animation: keyburn 6s infinite alternate ease-in-out; /* key burnエフェクト（短縮） */
  }

  @keyframes keyburn {
    0% {
      transform: scale(1); /* 初期状態 */
    }
    100% {
      transform: scale(1.1); /* ズームイン */
    }
  }

  .hero img.is-active {
    opacity: 1;
    /* 変更: アクティブ画像の Ken Burns も同じ短い速度に合わせる */
    animation: keyburn 6s infinite alternate ease-in-out; /* アクティブ画像にも適用（短縮） */
  }

  .hero .overlay{
    position:absolute;
    inset:0;
    background:var(--overlay-color);
    pointer-events:none;
  }

  .hero .content {
    position:relative;
    z-index:5;
    max-width:1200px;
    margin:0 auto;
    padding:2rem;
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
    text-align: center;
  }

  /* タイトルアニメーション */
  #hero-title {
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: scale(0.96);
    filter: blur(4px);
    animation: hero-title-in 1.0s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: 0.2s;
  }

  @keyframes hero-title-in {
    0%   { opacity: 0; transform: scale(0.96); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1);    filter: blur(0);   }
  }

  /* マーカー下線 */
  #hero-title::after {
    content: "";
    display: block;
    position: absolute;
    left: 0; bottom: -2px;
    width: 0;
    height: 8px;
    background: var(--marker-bg, linear-gradient(to right, rgba(255,210,60,0.75), rgba(255,160,20,0.58)));
    border-radius: 1px;
    z-index: -1;
  }
  #hero-title.underline::after {
    animation: marker-draw 0.9s cubic-bezier(0.25,0.1,0.35,1) forwards;
  }
  @keyframes marker-draw {
    from { width: 0; }
    to   { width: 100%; }
  }

  .hero h1{
    font-size:clamp(1.1rem, 5.5vw, 3rem);
    line-height:1.15;
    margin-bottom:.5rem;
    text-shadow:0 2px 8px rgba(0,0,0,0.5);
    white-space: nowrap;
  }
  .hero p{font-size:clamp(0.72rem,3.2vw,1.2rem);opacity:.95;line-height:1.7;}

  /* キャッチコピー説明文のアニメーション */
  .hero p.catchcopy {
    opacity: 0;
    transform: translateX(-18px);
    animation: catchcopy-slide-in 1.0s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: 1.1s;
  }

  @keyframes catchcopy-slide-in {
    0%   { opacity: 0; transform: translateX(-18px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  .hero .controls{
    position:absolute;
    z-index:6;
    top:50%;
    left:0;
    right:0;
    display:flex;
    justify-content:space-between;
    transform:translateY(-50%);
    pointer-events:none;
  }
  .hero button.slide-btn{
    pointer-events:auto;
    background:rgba(0,0,0,0.35);
    color:#fff;
    border:0;
    padding:.5rem;
    margin:.5rem;
    border-radius:4px;
    cursor:pointer;
    backdrop-filter: blur(4px);
  }
  .hero button.slide-btn:focus{outline:2px solid #fff}

  /* 高さを引き上げて縦表示領域を広くする */
  @media(min-width:1600px){
    .hero{height:900px; min-height:600px}
    .hero .content {
      padding: 4rem; /* 文字の余白を拡大 */
      font-size: 1.5rem; /* 文字サイズをさらに調整 */
      line-height: 1.6; /* 行間を調整 */
    }
  }

  @media(min-width:1200px) and (max-width:1599px){
    .hero{height:760px; min-height:520px}
    .hero .content {
      padding: 3rem;
      font-size: 1.3rem;
      line-height: 1.5;
    }
  }

  @media(min-width:768px) and (max-width:1199px){
    .hero{height:640px; min-height:480px}
    .hero .content{padding:2.5rem}
  }

  @media(min-width:420px) and (max-width:767px){
    .hero{height:480px; min-height:360px}
    .hero .content{padding:2rem}
  }

  @media(max-width:419px){
    .hero{height:360px; min-height:280px}
    .hero .content {
      padding: 1.5rem;
      font-size: 0.9rem; /* 小さい画面で文字サイズを縮小 */
      line-height: 1.3;
    }
  }

  .hero .dots{
    position:absolute;
    z-index:6;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    display:flex;
    gap:8px;
  }
  .hero .dot{
    width:10px;height:10px;border-radius:50%;
    background:rgba(255,255,255,0.5);
    transition:transform 200ms;
    cursor:pointer;
  }
  .hero .dot.is-active{background:#fff;transform:scale(1.15)}

  /* ハンバーガー（モバイル） */
  .hamburger {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
  }
  .hamburger .bars {
    width: 28px;
    height: 20px;
    position: relative;
    display: block;
  }
  .hamburger .bars span {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: transform 220ms, opacity 220ms;
    display: block;
  }
  .hamburger .bars span:nth-child(1) { top: 0; }
  .hamburger .bars span:nth-child(2) { top: 8px; }
  .hamburger .bars span:nth-child(3) { top: 16px; }

  /* ハンバーガー開閉時アニメーション */
  .hamburger.open .bars span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.open .bars span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open .bars span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* モバイルパネル（横スライド） */
  .mobile-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(var(--side-panel-width), 90vw); /* 共通幅に統一 */
    height: calc(100vh - var(--header-height));
    background: rgba(255,255,255,0.78);
    border-radius: 60px 0 0 60px / 100% 0 0 100%;
    box-shadow: -12px 0 40px rgba(12,12,12,0.22);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.5);
    border-left: 3px solid rgba(25,118,210,0.5);
    font-family: 'Poppins', sans-serif;
    letter-spacing: normal;
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(.2,.9,.3,1), opacity 200ms;
    opacity: 0;
    z-index: 1099;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 16px;
    align-items: center;
  }
  .mobile-panel.open {
    transform: translateX(0);
    opacity: 1;
  }
  .mobile-panel a {
    color: #000; /* 通常時の文字色を黒に設定 */
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    color: #222;
    text-shadow: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: background 0.18s, transform 0.2s cubic-bezier(0.22,1,0.36,1), color 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-panel a:hover {
    color: #1a56d6;
    background: rgba(11,102,194,0.09);
    transform: translateX(5px);
  }
  /* パネル内テキストもリセット */
  .mobile-panel p {
    font-family: 'Poppins', sans-serif;
    color: #888;
    letter-spacing: normal;
    text-shadow: none;
    text-align: center;
    margin-top: 32px !important;
    margin-bottom: 0 !important;
  }

  /* モバイル時のみ表示 */
  @media (max-width: 900px) {
    .hamburger { display: flex; }
    .site-header nav { display: none; }
  }
  @media (min-width: 901px) {
    .mobile-panel { display: none !important; }
  }

  /* SCROLLボタンアニメーション */
  #scroll-indicator {
    animation: scroll-bounce 1.6s infinite cubic-bezier(.22,1,.36,1);
    transition: box-shadow 0.2s, background 0.2s;
    border-radius: 2em;
    padding: 0.2em 1.2em;
    background: rgba(0,0,0,0.18);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border: 2px solid rgba(255,255,255,0.18);
  }
  #scroll-indicator:hover {
    background: #0b66c2; /* 背景色を青に変更 */
    color: #fff; /* 文字色を白に変更 */
    box-shadow: 0 8px 24px rgba(11, 102, 194, 0.5); /* 影を強調 */
    border-color: #fff; /* 枠線を白に変更 */
    letter-spacing: 0.28em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, letter-spacing 0.2s;
  }
  @keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);}
    10% { transform: translateX(-50%) translateY(-6px);}
    20% { transform: translateX(-50%) translateY(0);}
    30% { transform: translateX(-50%) translateY(-10px);}
    40% { transform: translateX(-50%) translateY(0);}
    50% { transform: translateX(-50%) translateY(-6px);}
    60%, 100% { transform: translateX(-50%) translateY(0);}
  }

  /* TOPICカードスタイル */
.topic-section {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.topic-card,
.news-card {
  position: relative;
  width: 80%;
  background: #fff;
  /* 枠線を削除しシームレスに */
  border: none !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  color: #000;
}

/* デスクトップのみ枠線・影を消してシームレスに */
@media (min-width: 769px) {
  .topic-card,
  .news-card {
    border: none !important;
    box-shadow: none !important;
  }
}

.topic-card h2 {
  font-size: 24px;
  margin: 0 0 16px;
  padding-bottom: 0.3em;
  position: relative;
  color: #0b66c2; /* 見出しを青色に変更 */
}
.topic-card h2::after,
.news-card h2::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.news-card h2 {
  font-size: 24px;
  margin: 0 0 16px;
  padding-bottom: 0.3em;
  position: relative;
  color: #0b66c2; /* 見出しを青色に変更 */
}

.topic-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-card li {
  font-size: 16px;
  margin-bottom: 8px;
  color: #000;
}
.topic-card .bullet {
  color: #0b66c2;
}

.topic-card a {
    color: #1a56d6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.18s;
  }
  .topic-card a::after {
    content: '›';
    font-size: 1.1em;
    font-weight: 400;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.22,1,0.36,1);
  }
  .topic-card a:hover::after {
    transform: translateX(4px);
  }

  /* NEWSカードスタイル */
.news-section {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.news-card {
  width: 80%; /* デフォルトは画面の80% */
  background: #fff;
  border: none; /* 枠線を削除 */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  color: #000; /* 内容を黒文字に変更 */
}

.news-card h2 {
  font-size: 24px;
  margin: 0 0 16px;
  color: #0b66c2; /* 見出しを青色に変更 */
}

.news-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-card li {
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  color: #000; /* 内容を黒文字に変更 */
  position: relative;
  padding-left: 1.2em; /* 全角約1マス分の左余白 */
  text-indent: 0; /* 第1行のぶれを抑制 */
  line-height: 1.5;
}
.news-date {
  font-size: 1.15em;
  font-weight: 700;
  color: #0b66c2;
}
.news-card li::before{
  content: "■";
  position: absolute;
  left: 0;
  top: 0;
  color: #0b66c2;
  font-weight: 700;
  line-height: 1.5;
  transform: translateY(0.05em); /* 微調整 */
}

/* NEWS アコーディオン */
.news-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 4px 14px;
  background: none;
  border: 1px solid #0b66c2;
  border-radius: 20px;
  color: #0b66c2;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.news-toggle:hover { background: rgba(11,102,194,0.12); color: #0b66c2; }
.news-toggle.is-open { background: #0b66c2; color: #fff; }
.news-toggle.is-open:hover { background: #0955a8; color: #fff; }
.news-older {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), margin-top 0.38s;
}
.news-older.is-open {
  max-height: 300px;
  margin-top: 20px;
}

/* カードセクション */
.card-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0; /* 隙間を0に設定 */
  margin: 32px 0;
}

.card {
  flex: 1 1 calc(33.333%); /* 横並び時の幅 */
  max-width: calc(33.333%);
  background-size: cover;
  background-position: center;
  border-radius: 0; /* 角の丸みを削除 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 200px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative; /* 子要素の絶対配置を可能にする */
  overflow: hidden; /* 子要素がカードの範囲を超えないようにする */
  background-repeat: no-repeat; /* 画像のリピートを防ぐ */
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease; /* ゆっくりズームイン */
  z-index: 0;
}

.card:nth-child(1)::before {
  background-image: url('../image/fudousan.jpg');
}

.card:nth-child(2)::before {
  background-image: url('../image/seiho.jpg');
}

.card:nth-child(3)::before {
  background-image: url('../image/sompo.jpg');
}

.card:hover::before {
  transform: scale(1.2); /* マウスオン時に1.2倍ズームイン */
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* オーバーレイの透明度を0.5から0.3に変更 */
  z-index: 0; /* テキストの下に配置 */
}

.card h2 {
  position: relative; /* オーバーレイの上に表示 */
  z-index: 1;
  margin: 0;
  font-size: 1.5rem;
  color: #fff; /* 白文字で視認性を向上 */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* テキストに影を追加 */
}

@media (max-width: 768px) {
  .card {
    flex: 1 1 100%; /* 縨並び時の幅を画面いっぱいに設定 */
    max-width: 100%;
  }

  .news-card {
    width: 100%; /* 縨並び時のNEWSカードの幅を画面いっぱいに設定 */
    background-image: none !important; /* スマホ版は背景画像非表示 */
    background: #fff !important;
  }

  .topic-card {
    width: 100%; /* NEWSカードと同じく、縦並び時は画面いっぱいに設定 */
    background-image: none !important; /* スマホ版は背景画像非表示 */
    background: #fff !important;
  }
}
@media (min-width: 769px) {
  .card {
    height: 350px; /* 横並び時のカードの高さを高く設定 */
  }
}

/* --- キャッチコピー・TOPIC・NEWSカードのレスポンシブ文字サイズ調整 --- */

/* デフォルト（大デスクトップ・デスクトップ） */
.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.hero p.catchcopy {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}
.topic-card,
.news-card {
  font-size: 1.2rem;
}
.topic-card li,
.news-card li {
  font-size: 1.2rem;
}
/* 見出しは元のまま */
.topic-card h2,
.news-card h2 {
  font-size: 28px;
}

/* タッチパネル（タブレット横/縦） */
@media (max-width: 1199px) {
  .hero h1 {
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  }
  .hero p.catchcopy {
    font-size: 1rem;
  }
  .topic-card,
  .news-card {
    font-size: 0.98rem;
  }
  .topic-card li,
  .news-card li {
    font-size: 0.98rem;
  }
  /* 見出しは元のまま */
  .topic-card h2,
  .news-card h2 {
    font-size: 24px;
  }
}

/* 大スマホ（600px～767px） */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 1.05rem;
  }
  .hero p.catchcopy {
    font-size: 0.92rem;
  }
  .topic-card,
  .news-card {
    font-size: 0.93rem;
  }
  .topic-card li,
  .news-card li {
    font-size: 0.93rem;
  }
  /* 見出しは元のまま */
  .topic-card h2,
  .news-card h2 {
    font-size: 24px;
  }
}

/* 小スマホ（～599px） */
@media (max-width: 599px) {
  .hero h1 {
    font-size: 0.92rem;
  }
  .hero p.catchcopy {
    font-size: 0.82rem;
  }
  .topic-card,
  .news-card {
    font-size: 0.82rem;
  }
  .topic-card li,
  .news-card li {
    font-size: 0.82rem;
  }
  /* 見出しは元のまま */
  .topic-card h2,
  .news-card h2 {
    font-size: 24px;
  }
}
  /* --- 既存のメディアクエリやスタイルはそのまま --- */
  /* --- 扉絵（hero）高さをウインドウ下端に合わせる --- */
  @media (min-width: 901px) {
    .hero {
      height: 100vh !important;
      min-height: 100vh !important;
      max-height: 100vh !important;
      /* 上部のヘッダー分だけ下にずらす */
      margin-top: 0;
      /* ヘッダー分だけ下にずらす場合はpadding-topを調整（不要なら削除） */
    }
    .hero .content {
      min-height: calc(100vh - var(--header-height));
      height: calc(100vh - var(--header-height));
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  /* --- スマホ時のTOPIC/NEWSカードの枠線をなくし、見出しにグレー下線 --- */
  @media (max-width: 768px) {
    .news-card,
    .topic-card {
      border: none !important;
      box-shadow: none !important;
      background: #fff !important;
      padding-top: 8px;
      padding-bottom: 16px;
    }
    .news-card h2,
    .topic-card h2 {
      border: none !important;
      background: none !important;
      position: relative;
      padding-bottom: 0.3em;
      margin-bottom: 12px;
      color: #0b66c2;
      font-family: 'Poppins', sans-serif;
      font-size: 24px;
      font-weight: 700;
      text-align: left;
    }
    .news-card h2::after,
    .topic-card h2::after {
      content: "";
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background: #e0e0e0;
      z-index: 0;
    }
  }

  /* リンクデフォルトスタイルリセット */
  a { text-decoration: none; transition: opacity 0.18s; }
  a:hover { text-decoration: none; opacity: 0.72; }
  a.card:hover { opacity: 1; }

  /* SCROLLボタンアニメーション */
  #scroll-indicator {
    animation: scroll-bounce 1.6s infinite cubic-bezier(.22,1,.36,1);
    transition: box-shadow 0.2s, background 0.2s;
    border-radius: 2em;
    padding: 0.2em 1.2em;
    background: rgba(0,0,0,0.18);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border: 2px solid rgba(255,255,255,0.18);
  }
  #scroll-indicator:hover {
    background: #0b66c2; /* 背景色を青に変更 */
    color: #fff; /* 文字色を白に変更 */
    box-shadow: 0 8px 24px rgba(11, 102, 194, 0.5); /* 影を強調 */
    border-color: #fff; /* 枠線を白に変更 */
    letter-spacing: 0.28em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, letter-spacing 0.2s;
  }
  @keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);}
    10% { transform: translateX(-50%) translateY(-6px);}
    20% { transform: translateX(-50%) translateY(0);}
    30% { transform: translateX(-50%) translateY(-10px);}
    40% { transform: translateX(-50%) translateY(0);}
    50% { transform: translateX(-50%) translateY(-6px);}
    60%, 100% { transform: translateX(-50%) translateY(0);}
  }
  
  /* リンクデフォルトスタイルリセット */
  a { text-decoration: none; transition: opacity 0.18s; }
  a:hover { text-decoration: none; opacity: 0.72; }
  a.card:hover { opacity: 1; }

  /* リンクデフォルトスタイルリセット */
  a { text-decoration: none; transition: opacity 0.18s; }
  a:hover { text-decoration: none; opacity: 0.72; }
  a.card:hover { opacity: 1; }

    .footer-link {
      white-space: nowrap;
      display: inline-block;
    }
    /* 追加: 事故受付カードスタイル */
    .accident-section {
      display: flex;
      justify-content: center;
      margin: 24px 0 0 0;
    }
    .accident-card {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 80%;
      max-width: 480px;
      min-height: 84px; /* 72px → 84px に変更 */
      background: #ff9800;
      color: #fff;
      font-size: 1.35rem;
      font-weight: bold;
      border-radius: 8px;
      text-decoration: none;
      box-shadow: 0 2px 8px rgba(255,152,0,0.12);
      transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
      margin: 0 auto;
      text-align: center;
      letter-spacing: 0.05em;
    }
    .acc-icon {
      width: 48px;
      height: 48px;
      margin-right: 16px;
      display: inline-block;
      vertical-align: middle;
      background: transparent;
      filter: brightness(0) invert(1);
    }
    .accident-card:hover,
    .accident-card:focus {
      background: #ff9800;
      box-shadow: 0 4px 16px rgba(255,152,0,0.18);
      transform: translateY(-2px) scale(1.02);
      color: #fff;
      text-decoration: none;
      outline: none;
      opacity: 1;
    }
    @media (max-width: 768px) {
      .accident-card {
        width: 96%;
        font-size: 1.08rem;
        min-height: 64px; /* 56px → 64px に変更 */
      }
    }
  
  /* リンクデフォルトスタイルリセット */
  a { text-decoration: none; transition: opacity 0.18s; }
  a:hover { text-decoration: none; opacity: 0.72; }
  a.card:hover { opacity: 1; }

  /* リンクデフォルトスタイルリセット */
  a { text-decoration: none; transition: opacity 0.18s; }
  a:hover { text-decoration: none; opacity: 0.72; }
  a.card:hover { opacity: 1; }

/* 大型モニターではヘッダーリンクを拡大 */
@media (min-width: 1200px) {
  .site-header nav a { font-size: 1rem; }
}
@media (min-width: 1600px) {
  .site-header nav a { font-size: 1.1rem; }
}
