/* ------------------------- Reset / Base ------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #222;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------- Header ------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ヘッダーロゴのサイズを固定する（←★追加） */
.site-header .logo img {
  height: 40px;      /* ここを好みの高さに調整 */
  width: auto;       /* アスペクト比を維持して横幅は自動 */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* ハンバーガー */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #222;
  transition: transform 0.3s, top 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.make-bold {
  font-weight: bold;
}

/* ---------- Hero (小さめアイキャッチ) ---------- */
  .post-hero{
    position:relative;
    height:35vh; max-height:420px; min-height:220px;
    overflow:hidden;
    margin-bottom:clamp(32px,6vw,80px);
  }
  @media(min-width:768px){ .post-hero{ height:65vh;} }

  .post-hero .inner{
    height:100%; overflow:hidden; border-radius:12px;
  }
  .post-hero img{
    width:100%; height:100%; object-fit:cover; object-position:center;
    display:block;
  }

  /* ---------- 記事ヘッダー ---------- */
  .post-title{
    font-size:clamp(1.8rem,4vw,2.6rem);
    margin:0 0 12px; line-height:1.3; font-weight:800;
  }
  .post-meta{
    color:#666; font-size:.85rem;
    margin-bottom:clamp(32px,6vw,80px);
  }

  /* ---------- 横棒アクセント付き h2 ---------- */
  .section-band{            /* ラッパー */
    display:flex; align-items:center; gap:.6em;
    margin:clamp(48px,6vw,72px) 0 24px;
  }
  .section-band::before{    /* 横棒 */
    content:''; flex:0 0 56px; height:4px;
    background:rgb(37,56,100);
  }
  .section-band h2{         /* 本文見出し */
    font-size:1.4rem; font-weight:700; margin:0;
    letter-spacing:.02em;
  }

  /* ---------- 本文 ---------- */
  .post-content p{
    margin:0 0 32px; font-size:.95rem; line-height:1.8;
  }

  .text-center {
    text-align: center;
  }

  /* ===== パンくず ===== */
.breadcrumbs{
  margin:0 0 24px;            /* 下にゆとり */
  font-size:.86rem;
  color:#444;                 /* 本文より少し薄いグレー */
}
.breadcrumbs ol{
  display:flex;
  flex-wrap:wrap;
  gap:.5em;
  list-style:none;
  padding:0;
  margin:0;
}
.breadcrumbs li a{
  text-decoration:none;       /* デコレーション無し */
  color:#444;                 /* リンクも同色で統一 */
}
.breadcrumbs li+li::before{
  content:"›";                /* 区切り矢印 */
  margin-right:.5em;
  opacity:.6;
}
.breadcrumbs li span[aria-current="page"]{
  font-weight:600;
}


.post-meta time + time::before{
  content:"｜";           /* 縦バー */
  margin:0 .5em;          /* 両側に余白 */
  opacity:.6;
}

/* ------------------------- Footer ------------------------- */
.site-footer {
  background: #fff;
  color: #111;
  padding: 40px 20px;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  width: 140px;
  margin: 0 auto 16px;
}

.copy {
  font-size: 0.75rem;
  color: #000000;
}

/* ------------------------- Responsive – Nav ------------------------- */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 60px;
    flex-direction: column;
    width: 200px;
    background: #fff;
    padding: 20px;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li + li {
    margin-top: 12px;
  }
}

/* ------------------------- Responsive –  Wider Screens ------------------------- */
@media (min-width: 1024px) {
  #hero .catchcopy {
    font-size: 1.5rem;
  }
  #hero .subcopy {
    font-size: 1rem;
  }
  section h2 {
    font-size: 2.6rem;
  }
}

.make-link {
  text-decoration: none;
  color: #116b86;
  overflow-wrap: anywhere;
}


/* ------------------------- Table ------------------------- */


/* ---------- GX 比較表 ---------- */
.gx-table{
  width:100%;
  border-collapse:collapse;
  margin:24px 0 40px;
  font-size:.95rem;
}
.gx-table thead th{
  background:rgb(15,89,120);   /* ヘッダー濃紺 */
  color:#fff;
  padding:10px 12px;
  text-align:center;
  font-weight:700;
}
.gx-table th[scope="row"]{
  background:#e2ecf0;          /* 行見出しの淡いグレー */
  text-align:left;
  white-space:nowrap;
}
.gx-table td{
  background:#f7f9fa;
}
.gx-table th, .gx-table td{
  border:1px solid #ccd5da;
  padding:10px 12px;
}
@media(max-width:600px){
  .gx-table{font-size:.85rem;}
  .gx-table thead th{padding:8px;}
  .gx-table th, .gx-table td{padding:8px;}
}

.eco-label-img {
  width: 100%;
  height: auto;
  max-width: 100px;
  max-height: 60px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}



/* nav */
.post-nav{
  margin: clamp(64px,8vw,96px) 0 0;
  border-top: 1px solid #e5e5e5;
  padding-top: 32px;
}
.post-nav ul{
  list-style: none; padding:0; margin:0;
  display:flex; justify-content:space-between; gap:24px;
}
.post-nav a{
  display:block; text-decoration:none; color:#253864;
  font-size:.9rem; line-height:1.4;
}
.post-nav .title{ font-weight:700; }
@media(max-width:600px){
  .post-nav ul{flex-direction:column;}
  .post-nav .prev,.post-nav .next{margin-bottom:24px;}
}

.pt-1 {
  padding-top: 1rem;
}

.pt-2 {
  padding-top: 2rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 1rem  !important;;
}

.mt-2 {
  margin-top: 2rem  !important;;
}

.img-800-responsive {
    max-width: 800px;  /* または 720〜1024px に調整 */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}



.btn {
  align-self: flex-start;
    background: rgb(37, 56, 100);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: var(--text-body);
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
  background-color: rgb(4, 26, 79);
}



/* ---------- 関連記事 ---------- */
/* ===== 横並びメディアカード（全文リンク） ===== */
.cta-card{
  --card-bg: #fff;
  --card-bd: #e5e7eb;
  --card-hov: rgba(37,56,100,.09);
  --ink: #253864;

  display:grid;
  grid-template-columns: auto 1fr auto;  /* 左：ロゴ / 中：本文 / 右：矢印 */
  gap: 16px;
  align-items: center;

  padding: 16px 18px;
  margin-top: 14px;

  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);

  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

/* ホバー/フォーカス */
.cta-card:hover{
  background: var(--card-bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  border-color: #d8dee6;
}
.cta-card:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(37,56,100,.45);
  border-color: rgba(37,56,100,.45);
}

/* 左側ロゴ：サイズを厳格に制御（“小さく、上品”） */
.cta-media{
  display:grid; place-items:center;
  inline-size: min(18vw, 110px); /* カード内のロゴ枠幅 */
  block-size: 72px; /* ロゴ枠の高さ（見た目の安定） */
}
.cta-media img{
  max-height: 56px; /* 実ロゴサイズ：ここだけで制御 */
  width: auto;
  aspect-ratio: 16/9; /* 実寸比が分かれば置換可 */
  object-fit: contain;
}

/* 本文側 */
.cta-body{ min-width: 0; } /* テキストのオーバーフロー対策 */
.cta-eyebrow{
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #8aa0b8;
  margin-bottom: 2px;
}
.cta-title{
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  line-height: 1.35;
  margin: 0 0 2px 0;
  font-weight: 800;
  color: #253864;
}
.cta-desc{
  margin: 0;
  font-size: .9rem;
  color: #44536a;
}

/* 右端チップ（矢印） */
.cta-chip{
  white-space: nowrap;
  font-weight: 700;
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #dfe5ee;
  background: #f7f9fc;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.cta-card:hover .cta-chip{
  background: #eef3fa;
  border-color: #d5deea;
  transform: translateX(2px);
}

/* モバイル：縦積みで端正に */
@media (max-width: 560px){
  .cta-card{
    grid-template-columns: 1fr auto; /* 本文 / 矢印 */
    grid-template-areas:
      "media chip"
      "body  chip";
    row-gap: 10px;
    align-items: start;
  }
  .cta-media{ grid-area: media; inline-size: 92px; block-size: 60px; }
  .cta-media img{ max-height: 44px; }
  .cta-body{ grid-area: body; }
  .cta-chip{ grid-area: chip; align-self: center; }
}

/* 動きが苦手な方向け */
@media (prefers-reduced-motion: reduce){
  .cta-card, .cta-chip{ transition: none; }
}
