@charset "UTF-8";

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-main: #0D518C;
  --blue-dark: #294257;
  --blue-bright: #0D518C; /* === --blue-main（命名互換のため残置） */
  --text-main: #3B4E59;
  --text-sub: #666666;
  --border-light: #eeeeee;
  --bg-gray: #f5f5f5;
  --btn-hover: #75838A;
  --gradient-blue: linear-gradient(90deg, #368ABF 60.1%, #0D518C 100%);
  --header-h-pc: 115px;
  --header-h-sp: 69px;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background: #E9EBEC;
  color: #3B4E59;
  font-family: 'Noto Sans JP', sans-serif;
  padding-top: var(--header-h-pc);
}
@media (max-width: 768px) {
  body { padding-top: var(--header-h-sp); }
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
ul { list-style: none; }


/* ── 共通コンテナ ── */
.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* SP時も含め全ページ左右余白をここで一括管理 */
}


/* ── 表示切り替えユーティリティ ── */
.sp-only { display: none; }
.pc-only { display: block; }

@media (max-width: 768px) {
  .pc-only { display: none !important; }
  .sp-only { display: block; }
}


/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-light);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 20px;
}

@media (max-width: 768px) {
  .header-top { padding: 10px 15px; }
}


/* ── LOGO ── */
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 185px; height: auto; }
@media (max-width: 768px) {
  .logo img { width: 145px; }
}

.logo-text {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: 0.05em;
  color: var(--blue-dark);
}

@media (max-width: 768px) {
  .logo-text { font-size: 20px; }
}


/* ── HEADER BUTTONS ── */
.header-btns { display: flex; gap: 12px; }
.header-btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 20px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  height: 32px;
  min-width: 170px;
  box-sizing: border-box;
  line-height: 1;
}
.btn-blue { background: var(--blue-bright); color: #fff; transition: background 0.3s ease; }
.btn-blue:hover { background: var(--btn-hover); }
.btn-dark { background: #3B4E59; color: #fff; transition: background 0.3s ease; }
.btn-dark:hover { background: var(--btn-hover); }

/* ── ボタン矢印：デザイン（PDF）準拠の太めシェブロンに統一（SVG） ──
   対象：ヘッダー／SPメニュー／CONTACTの「お問い合わせフォーム・製品カタログ」＋TOPICS
   文字の「›」は各HTMLから除去し、ここで白矢印アイコンを付与 */
.btn-blue::after, .btn-dark::after,
.gnav-btn--blue::after, .gnav-btn--dark::after,
.contact-btn::after,
.topic-banner-text::after,
.detail-example-btn a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 13px;
  background: url('../images/common/icon-arrow-white.svg') no-repeat center / contain;
  flex-shrink: 0;
}

/* ヘッダーボタン：ホバー時もテキスト白のまま → 矢印もそのまま */


/* ── HAMBURGER ── */
.hamburger {
  display: none;
  width: 48px; height: 48px;
  background: transparent; border: none; cursor: pointer;
  position: relative; z-index: 1001;
  outline: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}

.hamburger-line {
  display: block; width: 24px; height: 2px;
  background-color: #828282;
  position: absolute; left: 12px;
  transition: 0.3s ease-in-out;
}
.hamburger-line:nth-child(1) { top: 10px; }
.hamburger-line:nth-child(2) { top: 18px; }
.hamburger-line:nth-child(3) { top: 26px; }

.hamburger-label {
  display: block; font-size: 9px; font-weight: 550; color: #828282;
  letter-spacing: 0.08em; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%); white-space: nowrap;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
}


/* ── NAVIGATION (PC) ── */
@media (min-width: 769px) {
  .gnav {
    position: fixed;
    top: 60px; /* header-top の下に固定 */
    left: 0;
    right: 0;
    z-index: 999; /* ヘッダー(1000)より下、オーバーレイ(1001)より下 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0px 0.1px 5px 1px rgb(0 0 0 / 0.4);
  }
}

.gnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gnav-list.pc-only {
  display: flex;
  width: 100%;
  justify-content: space-between; /* テキスト間を均等配置 */
  align-items: center;
}

.gnav-list.pc-only .gnav-item {
  flex: 1;
  text-align: center;
}

.gnav-list.pc-only .gnav-item a {
  display: block;
  padding: 18px 0;
  font-size: 13px;
  font-weight: 550;
  color: #3B4E59;
  white-space: nowrap;
  transition: color 0.3s ease;
  position: relative;
}

/* ホバー時の下線（テキスト幅いっぱい） */
.gnav-list.pc-only .gnav-item a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--blue-main);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.gnav-list.pc-only .gnav-item a:hover::after,
.gnav-list.pc-only .gnav-item.is-active a::after {
  transform: scaleX(0.7);
}


/* ── NAVIGATION (SP) ── */
@media (max-width: 768px) {
  .gnav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: #fff;
    transition: right 0.3s ease-in-out;
    z-index: 1002;
    border: none;
    overflow-y: auto;
    visibility: hidden;
  }
  .gnav.is-active {
    right: 0;
    visibility: visible;
  }

  .gnav-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
  }

  .gnav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
  }

  .gnav-close {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .gnav-close-icon {
    font-size: 18px;
    color: #333;
    line-height: 1;
  }
  .gnav-close-label {
    font-size: 9px;
    font-weight: 550;
    color: #333;
    letter-spacing: 0.08em;
  }

  .gnav-list {
    display: flex;
    flex-direction: column;
  }

  .gnav-item { flex: none; }

  .gnav-item--home a {
    display: block;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 550;
    color: #fff;
    background: var(--blue-dark);
  }
  .gnav-item--home a:hover { opacity: 0.85; }

  .gnav-item--category {
    display: block;
    padding: 14px 20px 8px;
    font-size: 13px;
    font-weight: 550;
    color: var(--blue-dark);
    border-bottom: 1px solid var(--border-light);
  }
  .gnav-category-label {
    display: block;
    font-size: 13px;
    font-weight: 550;
    color: var(--blue-dark);
  }

/* ── アコーディオン親枠 ── */
 .gnav-item--accordion {
    border-bottom: 1px solid var(--border-light);
  }

  .gnav-accordion-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #3B4E59;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
  }

  /* 閉じた時の左ボーダー */
  .accordion-unit .gnav-accordion-btn      { border-left: 8px solid #0D518C; }
  .accordion-panel .gnav-accordion-btn     { border-left: 8px solid #368ABF; }
  .accordion-water .gnav-accordion-btn     { border-left: 8px solid #368ABF; }
  .accordion-encourage .gnav-accordion-btn { border-left: 8px solid #4A7C3F; }

  /* 開いた時の背景塗りつぶし */
  .accordion-unit .gnav-accordion-btn.is-open      { background: #0D518C; color: #fff; border-left-color: #0D518C; }
  .accordion-panel .gnav-accordion-btn.is-open     { background: #368ABF; color: #fff; border-left-color: #368ABF; }
  .accordion-water .gnav-accordion-btn.is-open     { background: #368ABF; color: #fff; border-left-color: #368ABF; }
  .accordion-encourage .gnav-accordion-btn.is-open { background: #4A7C3F; color: #fff; border-left-color: #4A7C3F; }

  /* ── アイコン（＋ から － へアニメーション） ── */
 .gnav-accordion-icon {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    font-size: 0;
  }

  .gnav-accordion-icon::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 2px;
    background-color: currentColor;
    transform: translateY(-50%);
  }

  .gnav-accordion-icon::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 100%;
    background-color: currentColor;
    transform: translateX(-50%);
    transition: transform 0.2s;
  }

  .gnav-accordion-btn.is-open .gnav-accordion-icon::after {
    transform: translateX(-50%) scaleY(0);
  }
  .gnav-accordion-btn.is-open .gnav-accordion-icon {
    color: #fff !important;
  }

  /* ── サブメニュー ── */
  .gnav-accordion-body {
    display: none;
    background: #F4F7F9;
    border-top: 1px solid var(--border-light);
  }
  .gnav-accordion-body.is-open {
    display: block;
    animation: submenuFade 0.3s ease forwards;
  }
  @keyframes submenuFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── サブメニューリンク（ドット削除、フォントを細く調整） ── */
  .gnav-accordion-body li a {
    display: block;
    padding: 14px 20px 14px 24px;
    font-size: 13px;
    font-weight: 400; /* 500から400へ細く */
    color: #4B5B64;
    border-bottom: 1px solid #E1E7EC;
    transition: background 0.2s;
  }
  .gnav-accordion-body li a:hover {
    background: #e9eef2;
  }
  .gnav-accordion-body li:last-child a {
    border-bottom: none;
  }

  .gnav-item--encourage {
    display: block;
    border-bottom: 1px solid var(--border-light);
    border-left: 8px solid #CECECE;
  }
  .gnav-item--encourage a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    color: #4B5B64;
  }

  .gnav-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px 16px;
  }

  .gnav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 550;
    border-radius: 4px;
  }
  .gnav-btn--blue { background: var(--blue-bright); color: #fff; }
  .gnav-btn--blue:hover { opacity: 0.85; }
  .gnav-btn--dark { background: #3B4E59; color: #fff; }
  .gnav-btn--dark:hover { opacity: 0.85; }

  .gnav-tel {
    display: block;
    text-align: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
  }
  .gnav-tel-num {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 550;
    color: #333;
    margin-bottom: 4px;
  }
  .gnav-tel-num u {
    font-family: 'Inria Sans', 'Noto Sans JP', sans-serif;
    text-decoration: none;
    background-image: linear-gradient(90deg, #368ABF 60.1%, #0D518C 100%);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 1px;
    padding-bottom: 2px;
  }
  .gnav-tel-hours {
    font-size: 11px;
    color: #666;
  }

  .gnav-sub-list {
    display: flex;
    flex-direction: column;
    margin-top: auto;
  }
  .gnav-sub-list li { flex: none; }
  .gnav-sub-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid var(--border-light);
  }
  .gnav-sub-list a:hover { background: #f9f9f9; }
  .gnav-sub-icon { display: flex; align-items: center; }

  .gnav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78); /* メニュー開時：背景を暗く */
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    visibility: visible;
  }
  .gnav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }
}


/* ── PAGETOP WRAPPER ── */
.pagetop-wrap {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background: #E9EBEC;
  border-top: 1px solid transparent; /* 上部へ戻るの線：細く */
  border-image: linear-gradient(to right, #368ABF, #0D518C) 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* pagetop-wrap内のパンくず：背景透明にしてグレー統一 */
.pagetop-wrap .breadcrumb {
  background: #F7F7F7;
}

.breadcrumb {
  width: 100%;
  display: block;
  background: #F7F7F7;
  font-family: 'Inria Sans', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #4B5B64;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
}

.pagetop-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  font-size: 12px;
  font-weight: 400;
  color: #4B5B64;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}


/* ── セクション共通タイトル（中央PC・左SP / 下線フル幅） ── */
.section-title-lined {
  display: block;
  text-align: center;
  font-family: 'Inria Sans', 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #294257;
  border-bottom: 1px solid #294257;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .section-title-lined {
    font-size: 20px;
    text-align: left;
    padding-bottom: 10px;
    margin-bottom: 24px;
  }
}


/* ── CONTACT ── */
.contact-section {
  background: #ffffff;
  padding: 20px 20px 30px; /* 下のグラデ帯をtelに寄せる */
  color: #333;
  text-align: center;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-image: linear-gradient(to right, #368ABF, #0D518C) 1;
}

@media (max-width: 768px) {
  .contact-section { padding: 30px 16px 24px; }
}


/* ── CONTACT TITLE（左右の線を画面端まで完全に伸ばす - negative margin で外側まで） ── */
.contact-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0 -20px 10px;
  padding: 0;
}
.contact-title-wrap::before,
.contact-title-wrap::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #294257;
}
@media (max-width: 768px) {
  .contact-title-wrap { gap: 16px; margin: 0 -16px 10px; }
}
.contact-title {
  font-family: 'Inria Sans', 'Noto Sans JP', sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #294257;
  display: block;
}
.contact-h2 {
  font-size: 14px;
  font-weight: 550;
  color: #666;
  margin-top: 10px;
  margin-bottom: 10px;
}


/* ── CONTACT GRID ── */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 900px; /* CONTACTボタンを少し広く */
  margin: 0 auto 20px;
}
.contact-col { flex: 1; text-align: center; }
.contact-col-label { font-size: 15px; color: #666; margin-bottom: 15px; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-weight: 550;
  text-align: center;
  line-height: 1;
  transition: opacity 0.2s;
  border-radius: 2px;
}
.contact-btn.blue { background: var(--blue-bright); color: #fff; transition: background 0.3s ease; }
.contact-btn.blue:hover { background: var(--btn-hover); }
.contact-btn.gray { background: #3B4E59; color: #fff; transition: background 0.3s ease; }
.contact-btn.gray:hover { background: var(--btn-hover); }

/* CONTACTボタン：白テキスト維持 → 矢印そのまま */

@media (max-width: 768px) {
  .contact-grid { flex-direction: column; gap: 16px; }
  .contact-btn { padding: 16px; }
}


/* ── TEL SECTION ── */
.tel-section {
  position: relative;
  border: 1px solid;
  border-image-source: linear-gradient(90deg, #368ABF 60.1%, #0D518C 100%);
  border-image-slice: 1;
  padding: 40px 40px 30px;
  max-width: 800px;
  margin: 40px auto 0;
}

.tel-label {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 20px;
  font-size: 16px;
  color: #333;
  font-weight: 550;
  white-space: nowrap;
  text-align: center;
}

.tel-hours { font-size: 12px; color: #666; margin-bottom: 20px; }

.tel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.tel-num {
  font-size: 30px;
  font-weight: 550;
  color: #333;
  letter-spacing: 0.04em;
}

.fax-num {
  font-size: 30px;
  font-weight: 550;
  color: #333;
  letter-spacing: 0.04em;
}
.fax-num::before {
  content: 'FAX ';
  font-size: 16px;
  font-weight: 400;
  color: #666;
}

.icon-tel { width: 24px; height: auto; margin-right: 8px; vertical-align: middle; }

.tel-num u,
.fax-num u {
  font-family: 'Inria Sans', 'Noto Sans JP', sans-serif;
  font-size: 32px;
  font-weight: 550;
  letter-spacing: 0.05em;
  color: #333;
  vertical-align: middle;
  text-decoration: none;
  background-image: linear-gradient(90deg, #368ABF 60.1%, #0D518C 100%);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  padding-bottom: 3px;
}

@media (max-width: 768px) {
  /* CONTACT見出しの罫線を端まで伸ばす */
  .contact-title-wrap { max-width: none; padding: 0; gap: 12px; }
  .contact-title { font-size: 32px; }
  .contact-h2 { font-size: 16px; margin-bottom: 20px; }
  .contact-col-label { font-size: 15px; }
  .contact-btn { font-size: 16px; font-weight: 700; padding: 14px; }

  .tel-section { padding: 24px 16px 20px; margin-top: 40px; }
  .tel-label { font-size: 13px; padding: 0 12px; }
  .tel-hours { font-size: 11px; margin-bottom: 14px; }
  .tel-row { gap: 10px; align-items: flex-start; }
  .tel-num { font-size: 24px; display: flex; align-items: center; gap: 10px; }
  .fax-num { font-size: 24px; display: flex; align-items: center; gap: 10px; }
  .tel-num u,
  .fax-num u { font-size: 24px; font-variant-numeric: tabular-nums; }
  .fax-num::before { font-size: 14px; font-weight: 550; line-height: 1; width: 26px; display: inline-block; }
  .icon-tel { width: 26px; margin-right: 0; vertical-align: unset; }
}


/* ── FOOTER ── */

footer {
  position: relative;
  background: #294257;
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin: 0 auto 30px;
  max-width: 1200px;
  padding: 0 20px; /* 左右余白を .breadcrumb と統一 */
  font-family: 'Inria Sans', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.footer-links a {
  text-decoration: none;
  color: #F5F5F5;
}

.footer-links a:hover {
  color: #aaa;
}

.copyright {
  font-size: 11px;
  color: #E0E0E0;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  .footer-links a {
    text-decoration: underline;
  }
}

/* ── PAGETOP FIXED ── */
.pagetop-fixed {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(41, 66, 87, 0.75);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--blue-dark);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.pagetop-fixed img {
  width: 20px;
  height: auto;
  filter: brightness(0) invert(1);
}

.pagetop-fixed.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .pagetop-fixed { z-index: 200; }
}

/* ── TOPICSセクション（製品情報とコンテンツ幅統一） ── */
.top-topics-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0;
}

@media (max-width: 768px) {
  .top-topics-section { margin: 0; padding: 0; }
}


/* ── TOPICS CARD ── */
.topics-card {
  background: #fff;
  border: none;
  padding: 20px 20px 40px;
  text-align: center;
}

@media (max-width: 768px) {
  .topics-card { padding: 24px 0; border-radius: 0; }
  .topics-card .section-title-lined { padding-left: 16px; padding-right: 16px; }
  .topics-banners { gap: 0; }
}


/* ── TOPICS BANNERS ── */
.topics-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .topics-banners { grid-template-columns: 1fr; gap: 0; }
}


/* ── TOPIC BANNER ── */
.topic-banner {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}
.topic-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 75px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}
.topic-banner:nth-child(1)::after {
  background: rgba(41, 66, 87, 0.8);
  transition: background 0.3s ease;
}
.topic-banner:nth-child(2)::after {
  background: rgba(13, 81, 140, 0.8);
  transition: background 0.3s ease;
}
.topic-banner:nth-child(1):hover::after { background: rgba(41, 66, 87, 0.55); }
.topic-banner:nth-child(2):hover::after { background: rgba(13, 81, 140, 0.55); }
.topic-banner:hover img { transform: scale(1.05); }
.topic-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

@media (max-width: 768px) {
  .topic-banner { aspect-ratio: 1 / 1; }
}


/* ── TOPIC BANNER TEXT ── */
.topic-banner-text {
  position: absolute;
  bottom: 37.5px;
  left: 50%;
  transform: translate(-50%, 50%);
  border: 2px solid #fff;
  padding: 12px 28px;
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: 48px;
  min-width: 280px;
  justify-content: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .topic-banner-text {
    font-size: 14px;
    padding: 10px 24px;
    min-width: auto;
    width: calc(100% - 32px);
  }
}

/* =========================================
   ヘッダー自動表示/非表示
   下スクロールで隠す・上スクロール/上部ホバーで表示
   （SPスライドメニューには影響させない＝PC限定でgnavをtransform）
========================================= */
header,
.gnav { transition: transform 0.3s ease; }
header.is-hidden { transform: translateY(-100%); }
@media (min-width: 769px) {
  .gnav.is-hidden { transform: translateY(calc(-100% - 65px)); }
}
