﻿  :root {
    --transition-duration: 600ms;
    --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: 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;
  }

  /* ハンバーガーメニュー */
  .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: 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 {
    font-family: sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    color: #222;
    text-shadow: none;
    text-decoration: none;
    font-size: 1.1rem;
    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: 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; }
    .mobile-panel { display: flex; }
    .site-header .logo { font-size: 1.5rem; }
  }
  @media (min-width: 901px) {
    .mobile-panel { display: none !important; }
  }

  /* リスポンシブデザイン */
  @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: 768px) {
    :root {
      --header-height: 48px;
    }
    .site-header {
      font-size: 0.8rem;
    }
    .site-header .logo {
      font-size: 1.3rem;
    }
  }

  /* 追加: レスポンシブ最適化（フォームページ） */
  @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; }
  }

  @media (min-width: 481px) and (max-width: 900px) {
    .mobile-panel { width: min(var(--side-panel-width), 86vw); }
    iframe { min-height: 900px; }
  }

  .report-list {
    font-size: clamp(1rem, 2.5vw, 1.18rem);
    line-height: 2;
    padding-left: 0;
    margin: 0 auto;
    text-align: center;
    list-style-position: inside;
  }
  .report-list li {
    margin-bottom: 0.2em;
    word-break: break-word;
    display: inline-block;
    text-align: left;
    width: 100%;
    max-width: 420px;
    list-style-position: inside;
  }
  @media (max-width: 600px) {
    .report-list-section {
      max-width: 98vw !important;
      padding-left: 0.5em;
      padding-right: 0.5em;
      text-align: center;
    }
    .report-list {
      font-size: clamp(0.98rem, 4vw, 1.08rem);
      text-align: center;
    }
    .report-list li {
      max-width: 98vw;
      text-align: left;
      margin-left: auto;
      margin-right: auto;
      display: inline-block;
      /* 追加: タップしやすいように行間・余白を拡大 */
      line-height: 2.4 !important;
      padding-top: 10px !important;
      padding-bottom: 10px !important;
    }
    /* 追加: 本文をさらに小さく（スマホ） */
    main, .report-list, .report-list li, .pdf-icon {
      font-size: 13px !important;
      line-height: 1.45 !important;
    }
  }
  @media (max-width: 420px) {
    .report-list li {
      max-width: 99vw;
      /* 追加: さらにタップしやすく */
      line-height: 2.7 !important;
      padding-top: 12px !important;
      padding-bottom: 12px !important;
    }
    /* 追加: さらに小さいスマホで本文をさらに小さく */
    main, .report-list, .report-list li, .pdf-icon {
      font-size: 12px !important;
      line-height: 1.35 !important;
    }
  }
  .report-link {
    text-decoration: none;
    color: #0b66c2;
    font-weight: 600;
    border-bottom: 1px solid #b3c8e8;
    padding-bottom: 1px;
    transition: color .18s;
  }
  .pdf-icon {
    display: inline-block;
    margin-left: 0.4em;
    padding: 0 0.3em;
    font-size: 0.78em;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    border-radius: 2px;
    background: none;
    vertical-align: middle;
    font-family: inherit;
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, filter 0.18s;
  }
  .pdf-icon:hover,
  .pdf-icon:focus {
    background: #ffeaea;
    color: #b71c1c;
    border-color: #b71c1c;
    /* 下線は付けない */
    text-decoration: none;
    filter: brightness(1.15) drop-shadow(0 0 6px #ffbdbd);
    box-shadow: 0 0 0 3px #ffd6d6;
  }
  @media (max-width: 600px) {
    .report-list-section {
      max-width: 98vw !important;
      padding-left: 0.5em;
      padding-right: 0.5em;
    }
    .report-list {
      font-size: clamp(0.98rem, 4vw, 1.08rem);
    }
    .pdf-icon {
      font-size: 0.98em;
      padding: 0 0.38em;
    }
  }

  /* 追加: Adobe Reader ダウンロード案内 */
  .adobe-note{
    max-width:520px;                 /* 最適な最大幅 */
    width: min(760px, 94%);          /* 大きい画面では760px、狭い画面では余白を確保 */
    margin: 14px auto 22px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e6e9ee;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 11px;                 /* 説明文は小さめ */
    color: #333;
  }
  .adobe-note-text{ margin:0 0 8px; line-height:1.5; font-size:11px; color:#333; }

  /* アイコン（既存定義を補強） */
  .adobe-note .adobe-logo{
    display:inline-block;
    height:36px;
    width:auto;
    padding:6px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    box-shadow:0 2px 4px rgba(0,0,0,0.10);
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.12s, background 0.18s;
    cursor:pointer;
    vertical-align:middle;
  }
  .adobe-note .adobe-logo:hover,
  .adobe-note .adobe-logo:focus{
    border-color:#0b66c2;
    box-shadow:0 6px 18px rgba(11,102,194,0.12);
    background:#f3f7fa;
    transform: translateY(-2px);
    outline: none;
  }

  /* モバイル最適化（狭い画面では更にコンパクトに） */
  @media (max-width: 420px) {
    .adobe-note { max-width: 92%; padding: 8px; margin: 10px auto 16px; }
    .adobe-note .adobe-logo { height:32px; padding:4px; }
    .adobe-note-text { font-size:10px; line-height:1.45; }
  }

  .footer-link {
    white-space: nowrap;
    display: inline-block;
  }
  
  /* モバイル専用クイックリンク（事故・お問い合わせ） */
  .hero-quick-links {
    display: none;
    position: absolute;
    bottom: 20px;
    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 {
    width: auto !important;
    height: 18px !important;
    object-fit: contain !important;
    flex-shrink: 0;
  }
  .hero-quick-btn svg {
    flex-shrink: 0;
  }
  
  /* hero文字レスポンシブ */
  .hero h1 { font-size: clamp(1.2rem, 5.5vw, 2rem) !important; line-height: 1.25 !important; }
  .hero p  { font-size: clamp(0.8rem, 3.2vw, 1rem) !important; line-height: 1.7; }
  
  /* リンクデフォルトスタイルリセット */
  a { text-decoration: none; transition: opacity 0.18s; }
  a:hover { text-decoration: none; opacity: 0.72; }

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