/* ============================================
   全体
============================================ */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================
   固定ヘッダー（高さ1.5倍版）
============================================ */
.header-flex.new-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 30px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  z-index: 9999;
  height: 85px;
}

body {
  padding-top: 85px;
}

/* 左ロゴ */
.header-left img {
  height: 70px;
  width: auto;
}

/* ============================================
   PCメニュー
============================================ */
.pc-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.top-menu {
  display: flex;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.top-menu li {
  position: relative;
}

.top-menu li a {
  text-decoration: none;
  color: #666;
  font-weight: 600;
  padding: 8px 4px;
  position: relative;
  padding-bottom: 4px;
}

.top-menu li a:hover {
  color: #1e90ff;
}

/* 下線アニメーション */
.top-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #1e90ff;
  transition: width 0.25s ease;
}

.top-menu li a:hover::after {
  width: 100%;
}

@media screen and (max-width: 1100px) {
  .top-menu {
    gap: 30px;
  }
  .top-menu li a {
    font-size: 14px;
  }
}
.sp-only {
  display: none;
}
.hamburger-menu {
  display: none;
}

/* ============================================
   スマホメニュー（1160px以下）
============================================ */
@media screen and (max-width: 1160px) {

  .pc-menu { display: none; }
  .pc-only { display: none; }
  .sp-only { display: block; }

  .header-left img {
    height: 40px;
  }

  .hamburger-btn {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }

  .hamburger-menu {
    display: block; 
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: #454545;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .hamburger-menu.active {
    transform: translateX(0);
  }

  .hamburger-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .hamburger-menu a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #666;
  }
 /* ★ 追加：× 専用の固定レイヤー */
  .menu-header {
    position: relative;
    height: 50px; /* × の高さ分だけ確保 */
  }
  /* ★ これをここに入れるのが正解！ */
  .menu-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 11000;
  }

}

/* ============================================
   共通タイトル
============================================ */
.page-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #007BFF;
  color: #333;
  text-align: center
}
.page-title .model-name {
  font-size: 1.5em;   /* 親要素の1.5倍 */
  font-weight: bold;  /* 太字を維持 */
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-left: 14px;
  border-left: 8px solid #ccc;
  scroll-margin-top: 80px;
}

/* ============================================
   共通カードデザイン
============================================ */
.card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 6px;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   共通ボタン
============================================ */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1e90ff;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.btn:hover {
  background: #005bbb;
}

/* =========================
   フッター（コンパクト版）
========================= */
footer {
  margin-top: 40px;
  width: 100%;
  padding: 0;
  color: #ffffff;
  font-size: 13px;
}

.footer-container {
  background: #003366;
  width: 100%;
  padding: 20px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-copy {
  background: #002244;
  width: 100%;
  padding: 10px 0;
}

.footer-copy-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-size: 13px;
}

.footer-left p,
.footer-right a {
  color: #ffffff;
  font-size: 13px;
}

/* フッター右側を縦2段にする */
.footer-right {
  display: flex;
  flex-direction: column; /* 上：リンク群、下：SNSアイコン群 */
  align-items: flex-start;
}

/* リンク類はそのまま縦並び */
.footer-right a {
  display: block;
  margin: 2px 0;
}

/* SNSアイコンだけ横並びにする */
.footer-right .sns-wrapper {
  margin-top: 8px;
}

/* SNSアイコン（Facebookのクリアスペース＋距離規定に準拠） */
.footer-right .sns-icon {
  display: inline-block;
  margin-right: 15px; /* ロゴ幅の半分以上 → 15px */
  padding: 7.5px;     /* ロゴ幅の1/4 → 7.5px */
}

/* SNSアイコン画像（Instagram 29px以上、Facebook 16px以上） */
.footer-right .sns-img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}
/* ============================
   お問い合わせボタン
============================ */
.contact-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1e90ff;
  color: #fff !important;
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: bold;
  transition: 0.2s;
  white-space: nowrap;
}

.contact-btn:hover {
  background: #005bbb;
}

/* ============================
   ニュース関連
============================ */
.news-block .content img {
  max-width: 45%;
  height: auto;
  margin-right: 10px;
  vertical-align: top;
}

.news-two-column {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 10px;
}

.news-two-column .text {
  flex: 1;
}

.news-two-column .images {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.news-two-column .images img {
  width: 150px;
  height: auto;
  border-radius: 4px;
}

@media screen and (max-width: 768px) {
  .news-two-column {
    flex-direction: column;
  }

  .news-two-column .images {
    flex-direction: column;
  }

  .news-two-column .images img {
    width: 100%;
  }
}

.news-two-column .images img {
  height: 120px;
  width: auto;
  object-fit: cover;
  border-radius: 4px;
}

.news-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-link:hover .news-block {
  opacity: 0.85;
  transition: 0.2s;
}

.year-index {
  margin: 20px 0;
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.year-index strong {
  margin-right: 10px;
}

.year-index a {
  text-decoration: none;
  color: #0073aa;
}

.year-index a:hover {
  text-decoration: underline;
}
/* ▼ ハンバーガーメニュー用オーバーレイ（背景の黒い幕） */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 9000; /* メニューより後ろ、ヘッダーより前 */
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}
/* ここをメディアクエリの外に置く */
.hamburger-btn span {
  display: block;
  height: 3px;
  background: #333;
  transition: 0.3s;
}
/* ハンバーガー → × アニメーション */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hamburger-btn span {
  transition: 0.3s;
}
/* ============================================
   印刷用：完全安定版（Edge / Chrome 両対応）
============================================ */
@media print {

  /* 固定ヘッダーを解除して通常のブロックに */
  .header-flex.new-header {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 0 !important;
    box-shadow: none !important;
    display: block !important;
    text-align: left !important;
  }

  /* ロゴだけ印刷（メニューは非表示） */
  .pc-menu,
  .pc-only,
  .contact-btn {
    display: none !important;
  }

  /* スマホメニューも非表示 */
  .hamburger-btn,
  .hamburger-menu,
  .overlay {
    display: none !important;
  }

  /* ヘッダーのロゴを適切なサイズに */
  .header-left img {
    height: 50px !important;
    width: auto !important;
  }

  /* ページ全体を紙幅に合わせる */
  body {
    width: 700px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
  }

  /* flex を印刷用に安定化 */
  .result-item {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .related-btn-group {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .related-btn {
    display: inline-block !important;
  }

  /* 画像は紙幅に合わせて縮小 */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ▼ ここが最重要：ヘッダー内部の flex を解除 */
  .header-left,
  .header-right {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 5px !important;
  }

  .header-flex.new-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}
.sns-embed-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap; /* スマホでは縦並びに落ちる */
  margin-top: 20px;
}

.sns-embed-item {
  flex: 1;
  min-width: 300px;
}