/* =====================================================
   HEADER + SLIDER (Refined)
   - Prevent horizontal scroll (clip + hidden fallback)
   - Fix flex overflow (min-width:0)
   - Make slider image fill correctly (no overflow/CLS)
===================================================== */

/* ===== Header shell ===== */
.siteHeader{
  background: var(--bg);
  border-bottom: 1px solid var(--line);

  /* 横方向はヘッダー側でも確実に切る */
  overflow-x: clip;
}
@supports not (overflow: clip){
  .siteHeader{ overflow-x: hidden; }
}

.siteHeader__top{
  height: var(--header-h);
  display: flex;
  align-items: center;
}

/* コンテンツ幅 */
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;

  /* スライダーがtransformで暴れても内側で切れる保険 */
  overflow: hidden;
}

/* 上段（ロゴ + 検索） */
.topRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;

  /* flexの押し出しを防ぐ（横スクロールの根治） */
  min-width: 0;
}

/* Logo */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 250px;
}
.brand__logo{
  height: 68px;
  width: auto;
  display:block;
  object-fit: contain;
  margin: 10px;
}

/* Search */
.search{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 1;
  justify-content: flex-end;

  /* flexの子が縮めず溢れるのを防ぐ */
  min-width: 0;
  margin-top: 15px;
}

.searchForm{
  position: relative;
  width: min(520px, 100%);

  /* これも地味に効く */
  min-width: 0;
}

.searchForm__input{
  width:100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #a4a4a4;
  padding: 0 44px 0 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  background:#fff;

  /* iOS/Chromeでの横溢れ防止 */
  min-width: 0;
}
.searchForm__input:focus{
  border-color: #a9b7e6;
  box-shadow: 0 0 0 4px rgba(70,100,255,.10);
}

.searchForm__btn{
  position:absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #111827;
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.searchForm__btn:hover{ opacity: .92; }
.searchForm__btn:active{ transform: translateY(-50%) scale(.98); }

.searchForm__icon{
  width:16px;
  height:16px;
  display:block;
  fill: currentColor;
}

/* ===== Slider ===== */
.headerSlider{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  background: #fff;

  /* 無限レールのはみ出しを確実にクリップ */
  overflow-x: clip;
}
@supports not (overflow: clip){
  .headerSlider{ overflow-x: hidden; }
}

/* ✅ スライダー行だけ横幅100%にする（他の .wrap は触らない） */
.headerSlider .wrap{
  max-width: none;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.sliderFrame{
  position: relative;
  height: var(--slider-h);
  padding: 10px 0;

  /* ここが最重要：動くレールは必ず外枠で隠す */
  overflow: hidden;

  /* transform描画のはみ出しで横スクロールが出る端末対策 */
  contain: paint;

  width: 100%;
}

/* rails */
.sliderRail{
  display:flex;
  gap: 14px;
  will-change: transform;
  transform: translate3d(0,0,0);

  /* まれなサブピクセル溢れ対策 */
  max-width: 100%;
}

.slide{
  position: relative;
  flex: 0 0 auto;
  width: 550px;
  height: calc(var(--slider-h) - 20px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #f3f4f6;
  user-select: none;

  /* 画像が載っても安定 */
  max-width: 100%;
}

/* slide image (fill) */
.slide__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide__label{
  position:absolute;
  left: 10px;
  top: 10px;
  padding: 10px 40px;
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  background: rgb(138 138 138 / 90%);
  color:#fff;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #757575;
}

/* ❌ グラデーションのフレーム（左右フェード）不要なので無効化 */
.sliderHint,
.sliderHint--left{
  display: none !important;
}

/* ===== Global safety (only if you want it here) =====
   “どこか1pxでも溢れたら横スクロール” を根こそぎ止めたい場合は有効
*/
html, body{
  overflow-x: clip;
}
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}

/* ===== Responsive ===== */
@media (max-width: 700px){
  :root{ --header-h: 66px; --slider-h: 150px; }
  .wrap{padding: 0 4%;width: 92%;}
  .brand{ min-width: 120px; }
  .brand__logo{ height: 34px; }
  .searchForm__input{ height: 38px; font-size: 13px; }
  .searchForm__btn{ width: 30px; height: 30px; }
  .slide{width: 250px;border-radius: 14px;height: 240px;}

  /* ✅ スライダー行の100%は維持（スマホでもフル幅） */
  .headerSlider .wrap{
    width: 100%;
    max-width: none;
    padding: 0;
  }
}

@media (max-width: 420px){
  .topRow{ gap: 10px; }
  .brand{ min-width: 96px; }
  .brand__logo{ height: 30px; }
  .searchForm__input{ padding-left: 12px; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce){
  .sliderRail{ transition: none !important; }
}

/* =====================================================
   Below Slider: tagline + "新着記事" + card grid
   - clean, minimal, Apple-ish spacing
===================================================== */

/* イントロ（スライダー直下） */
.homeIntro{
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 26px 0 18px;
}

.homeIntro__tagline{
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  color: #3b82f6; /* screenshotの青っぽさ */
  font-weight: 700;
}

.homeIntro__title{
  margin: 14px 0 0;
  text-align: center;
  font-size: 28px;
  letter-spacing: .02em;
  line-height: 1.2;
  font-size: 26px;
  font-weight: bold;
}

.homeIntro__title span{
	font-size: 16px;
	font-weight: normal;
}

/* グリッド背景（うっすい水色） */
.homeGrid{
  padding: 22px 0 46px;
  background: linear-gradient(180deg, rgba(96,165,250,.16), rgba(96,165,250,.10) 35%, rgba(96,165,250,.08));
}

/* グリッド */
.homeGrid__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* カード */
.postCard{
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* カード全体リンク */
.postCard__link{
  display: block;
  color: inherit;
  text-decoration: none;
}

/* サムネ */
.postCard__thumb{
  position: relative;
  aspect-ratio: 4 / 3; /* スクショっぽい */
  background: #f3f4f6;
  overflow: hidden;
}

.postCard__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
}

/* NEWバッジ */
.postCard__badge{
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.92);
  color: #fff;
  letter-spacing: .03em;
}

/* 本文 */
.postCard__body{
  padding: 12px 12px 12px;
}

/* タグ行 */
.postCard__meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.postCard__chip{
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.06);
  background: #f8fafc;
  color: #111827;
  font-weight: 700;
}

/* 色は“やりすぎない”程度に */
.postCard__chip--a{ background: #ede9fe; }
.postCard__chip--b{ background: #e0f2fe; }
.postCard__chip--c{ background: #dcfce7; }
.postCard__chip--d{ background: #fee2e2; }
.postCard__chip--e{ background: #fef9c3; }

/* タイトル */
.postCard__headline{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: .01em;

  /* 2行省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* フッター（作者 + like） */
.postCard__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.postCard__author{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.postCard__avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17,24,39,.18), rgba(17,24,39,.06));
  border: 1px solid rgba(0,0,0,.06);
  flex: 0 0 auto;
}

.postCard__name{
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* like */
.postCard__like{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ef4444;
  font-weight: 800;
  flex: 0 0 auto;
}

.postCard__heart{
  font-size: 14px;
  line-height: 1;
}

.postCard__count{
  color: #ef4444;
}

/* Hover（Apple系：控えめ） */
@media (hover:hover){
  .postCard{
    transition: transform .16s ease, box-shadow .16s ease;
  }
  .postCard:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(0,0,0,.08);
  }
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .homeGrid__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .homeIntro{
    padding: 20px 0 14px;
  }
  .homeIntro__title{
    font-size: 22px;
  }
  .homeGrid__grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .postCard__thumb{
    aspect-ratio: 16 / 9; /* スマホは横長のほうが気持ちいい */
  }
}

/* 読了時間 */
.postCard__readtime{
  margin-top: 12px;
  padding-bottom: 10px;
  text-align: right;
  font-size: 12px;
  color: #6b7280;
  letter-spacing: .01em;
  display: block;
  overflow: hidden;
  width: 100%;
}

.postCard__readtimeNum{
  font-weight: 700;
  color: #111827;
  margin: 0 2px;
}

.loadMore{
  margin-top: 18px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.loadMore__btn{
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.loadMore__btn:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.loadMore__status{
  font-size: 12px;
  color: #6b7280;
}

.loadMore__sentinel{
  width: 1px;
  height: 1px;
}

/* ===== Slide body (title area) ===== */
.slide{
  position: relative;
}

/* 下部グラデーション＋余白 */
.slide__body{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 16px 18px 18px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.35) 45%,
    rgba(0,0,0,.55) 100%
  );
}

/* タイトル */
.slide__title{
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;

  /* 2行で止める */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* ===== Brand block (logo + description) ===== */

.brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand__link{
  display: inline-block;
}

.brand__logo{
  display: block;
}

/* description text */
.brand__desc{
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  font-size: 10px;
  margin-bottom: 10px;
}

@media (max-width: 700px){
  .brand__desc{
    font-size: 10px;
    max-width: 180px;
  }
}

.siteFooter{
  padding: 28px 0 34px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}

.siteFooter__copyright{
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  letter-spacing: .02em;
}

/* =========================================
   Slider: auto slide + buttons (+ optional dots)
========================================= */

/* レールは「スライド単位で止まる」ように */
.sliderRail{
  scroll-snap-type: x mandatory; /* 念のため（JS主導だけど相性◎） */
}

/* 1枚ずつ止めたいので、各スライドをスナップ対象に */
.slide{
  scroll-snap-align: start;
}

/* ボタン */
.sliderNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  z-index: 5;
  user-select: none;
}

.sliderNav--prev{ left: 10px; }
.sliderNav--next{ right: 10px; }

.sliderNav:hover{ opacity: .95; }
.sliderNav:active{ transform: translateY(-50%) scale(.98); }

/* ドット（任意） */
.sliderDots{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.sliderDot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 0;
}

.sliderDot.is-active{
  background: rgba(255,255,255,.95);
}

/* モバイル：ボタン小さめ */
@media (max-width: 700px){
  .sliderNav{
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .sliderNav--prev{ left: 8px; }
  .sliderNav--next{ right: 8px; }
}


/* スマホ調整 */
@media (max-width: 700px){
  .slide__body{
    padding: 12px 14px 14px;
  }
  .slide__title{
    font-size: 14px;
  }

  .sliderFrame{
    height: 240px;
  }

  .homeIntro__tagline{
    font-size: 1.1em;
  }

  .siteFooter{
    padding: 28px 0 34px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
  }

  .siteFooter__copyright{
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    letter-spacing: .02em;
  }
}

/* ===== FIX: slider should scroll by FRAME, not RAIL ===== */
.sliderFrame{
  overflow-x: auto;              /* ←スクロールする箱はこっち */
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* railは中身。transformで動かさない */
.sliderRail{
  width: max-content;            /* ←中身の幅を伸ばす */
  transform: none !important;    /* ←過去のtransform系と衝突させない */
}

/* 1枚ずつ止める */
.slide{
  scroll-snap-align: start;
}

/* スクロールバーを消したいなら（任意） */
.sliderFrame::-webkit-scrollbar{ display:none; }
.sliderFrame{ scrollbar-width: none; }

/* =====================================================
   SINGLE PAGE (single.php)
   - scope: main .single
   - matches your current “clean / Apple-ish” design
   - includes: layout, title/date/tags, h2/h3/h4, blockquote,
               lists, tables, links, images, ref-box, disclaimer
===================================================== */

.single{
  /* ページ全体の余白 */
  max-width: 1250px;
  margin: 0 auto;
  padding: 28px 18px 70px;
}

/* パンくず */
.breadcrumbs{
  font-size: 12px;
  color: rgba(17,24,39,.65);
  line-height: 1.6;
  margin: 6px 0 10px;
}
.breadcrumbs a{
  color: rgba(17,24,39,.72);
  text-decoration: none;
}
.breadcrumbs a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* アイキャッチ */
.single .eye{
  margin: 10px auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  background: #f3f4f6;
  width: 90%;
}
.single .eye img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* H1（記事タイトル） */
.single h1{
  margin: 18px 0 10px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: .01em;
  font-weight: 900;
  color: #111827;
}

/* 日付・更新日・タグ */
.single .date{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 10px 0 18px;
  font-size: 13px;
  color: rgba(17,24,39,.72);
}

.single .date .published,
.single .date .modified{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single .date .tags{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: rgba(17,24,39,.75);
}
.single .date .tags a{
  color: inherit;
  text-decoration: none;
}
.single .date .tags a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 本文コンテナ */
.single .single-box{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  padding: 26px 22px 28px;
}

/* 本文ベース */
.single .single-box{
  font-size: 16px;
  line-height: 1.95;
  color: #111827;
}
.single .single-box p{
  margin: 0 0 18px;
}
.single .single-box a{
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}
.single .single-box a:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* strong：黄色の下線（マーカー風） */
.single .single-box strong{
  font-weight: 900;
  color: inherit;
  background-image: linear-gradient(transparent 62%, #ffe56b 0);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 .08em;
}

/* 画像（本文内） */
.single .single-box img{
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}
.single .single-box figure{
  margin: 20px 0;
}
.single .single-box figcaption{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(17,24,39,.65);
}

/* 区切り */
.single .single-box hr{
  border: 0;
  height: 1px;
  background: rgba(0,0,0,.10);
  margin: 26px 0;
}

/* =========================
   記事本文専用 見出し
========================= */

/* h2：記事本文のセクションタイトルだけ */
.single-box > h2 {
  position: relative;
  padding: 1.2em 2.8em;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 72px 0 56px;
  color: #111;
}

/* h2 角装飾 */
.single-box > h2::before,
.single-box > h2::after {
  position: absolute;
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.single-box > h2::after {
  top: 0;
  left: 0;
  border-top: 2px solid #000;
  border-left: 2px solid #000;
}

.single-box > h2::before {
  right: 0;
  bottom: 0;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
}

/* h3：本文用（関連記事カードには当たらない） */
.single-box > h3 {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 24px;
  padding-bottom: 8px;
  border-bottom: 2px dashed #222;
  letter-spacing: 0.04em;
  color: #111;
}

/* h4：本文用 */
.single-box > h4 {
  position: relative;
  padding-left: 14px;
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 16px;
  line-height: 1.6;
  color: #111;
}


/* =====================================================
   Blockquote (指定デザインに合わせる)
===================================================== */
blockquote {
    position: relative;
    padding: 20px 45px 10px 60px;
    box-sizing: border-box;
    font-style: italic;
    background: #efefef;
    color: #555;
    width: 70%;
    margin: 50px auto;
}

blockquote:before{
    display: inline-block;
    position: absolute;
    top: 18px;
    left: 15px;
    content: "\f10d";
    font-family: FontAwesome;
    color: #cfcfcf;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

blockquote p {
    padding: 0;
    margin: 10px 0;
    line-height: 1.7;
}

/* =====================================================
   Lists / Tables / Code
===================================================== */

/* 箇条書き */
.single .single-box ul,
.single .single-box ol{
  margin: 0 0 18px;
  padding-left: 1.2em;
}
.single .single-box li{
  margin: 8px 0;
}
.single .single-box ul li::marker{
  color: rgba(17,24,39,.55);
}
.single .single-box ol li::marker{
  color: rgba(17,24,39,.65);
  font-weight: 800;
}

/* テーブル */
.single .single-box table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0 22px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}
.single .single-box th,
.single .single-box td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 14px;
  vertical-align: top;
}
.single .single-box th{
  background: rgba(96,165,250,.10);
  font-weight: 900;
  color: rgba(17,24,39,.88);
}
.single .single-box tr:last-child td{
  border-bottom: 0;
}

/* インラインコード/プリ */
.single .single-box code{
  font-size: 0.92em;
  background: rgba(0,0,0,.06);
  padding: 2px 6px;
  border-radius: 8px;
}
.single .single-box pre{
  background: rgba(17,24,39,.92);
  color: #fff;
  padding: 16px 16px;
  border-radius: 18px;
  overflow: auto;
  margin: 18px 0 22px;
  border: 1px solid rgba(0,0,0,.10);
}
.single .single-box pre code{
  background: transparent;
  padding: 0;
  color: inherit;
}

/* =====================================================
   Reference Link Box (ref-box) — your provided HTML
===================================================== */
.single .single-box .ref-box{
  position: relative;
  margin: 34px 0 40px;
  padding: 26px 22px;
  border-radius: 26px;
  background: #fff;
  border: 3px solid rgba(0,0,0,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.single .single-box .ref-label{
  position: absolute;
  top: -16px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(17,24,39,.96);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .02em;
}
.single .single-box .ref-link{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.single .single-box .ref-thumb{
  width: 140px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}
.single .single-box .ref-title{
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .01em;
}

@media (hover:hover){
  .single .single-box .ref-box{
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .single .single-box .ref-box:hover{
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0,0,0,.10);
  }
  .single .single-box .ref-link:hover .ref-title{
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* =====================================================
   Disclaimer block (.date-single)
===================================================== */
.single .date-single{
  margin: 18px 0 0;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 12px;
  line-height: 1.75;
  color: rgba(17,24,39,.70);
}

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 860px){
  .single{
    padding: 22px 14px 60px;
  }
  .single h1{
    font-size: 30px;
  }
  .single .single-box{
    padding: 22px 16px 24px;
    border-radius: 20px;
  }
}

@media (max-width: 700px){
  .single h1{
    font-size: 24px;
    line-height: 1.28;
  }

  .single .eye{
    border-radius: 18px;
  }

  .single .single-box{
    font-size: 15px;
  }

  .single .single-box h2{
    font-size: 22px;
    padding: 22px 16px;
    margin: 44px 0 22px;
  }
  .single .single-box h2::before,
  .single .single-box h2::after{
    width: 28px;
    height: 28px;
    border-radius: 10px 0 0 0;
  }
  .single .single-box h2::before{
    left: -14px;
    top: -14px;
  }
  .single .single-box h2::after{
    right: -14px;
    bottom: -14px;
  }

  .single .single-box h3{
    font-size: 18px;
  }

  .single .single-box .ref-box{
    padding: 22px 16px;
    border-radius: 22px;
  }
  .single .single-box .ref-link{
    grid-template-columns: 110px 1fr;
    gap: 14px;
  }
  .single .single-box .ref-thumb{
    width: 110px;
    height: 76px;
    border-radius: 14px;
  }
  .single .single-box .ref-title{
    font-size: 16px;
  }
}

/* =====================================================
   Related Posts (single) – redesign
   - keep independent from article h2/h3 styles
   - clean, airy, Apple-ish cards
===================================================== */

.relatedPosts{
  margin: 54px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.relatedPosts__title {
  position: relative;
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.relatedPosts__title:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  content: '';
  background-image: -webkit-repeating-linear-gradient(135deg, #000, #000 1px, transparent 2px, transparent 5px);
  background-image: repeating-linear-gradient(-45deg, #000, #000 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}


/* グリッド */
.relatedPosts__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* カード */
.relatedCard{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  overflow: hidden;
}

.relatedCard__link{
  display: block;
  color: inherit;
  text-decoration: none;
}

/* サムネ */
.relatedCard__thumb{
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  overflow: hidden;
}

.relatedCard__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
}

/* サムネ無し時 */
.relatedCard__img--ph{
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(17,24,39,.06), rgba(17,24,39,.02));
}

/* タイトル（h3タグでも「見出しデザインは当てない」ためクラスだけで完結） */
.relatedCard__headline{
  margin: 0;
  padding: 12px 12px 14px;

  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  color: #111827;
  letter-spacing: .02em;

  /* 2行で止める */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* 余計な下線などを完全無効化 */
  border: 0 !important;
  text-decoration: none !important;
}

.relatedCard__headline a{
	text-decoration: none;
}

/* Hover */
@media (hover:hover){
  .relatedCard{
    transition: transform .16s ease, box-shadow .16s ease;
  }
  .relatedCard:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,.10);
  }
  .relatedCard__img{
    transition: transform .25s ease;
  }
  .relatedCard:hover .relatedCard__img{
    transform: scale(1.03);
  }
}

/* Responsive */
@media (max-width: 980px){
  .relatedPosts__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .relatedPosts{
    margin-top: 44px;
    padding-top: 22px;
  }
  .relatedPosts__grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .relatedCard{
    border-radius: 16px;
  }
  .relatedCard__thumb{
    aspect-ratio: 16 / 9;
  }
  .relatedCard__headline{
    font-size: 14px;
    padding: 12px 12px 14px;
  }
}

.category .breadcrumbs{
	margin-left: 30px;
}