/* ============================
   MB Sticky CTA (mobile)
   - tap bar -> fullscreen chooser
   ============================ */

:root{
  --mb-sticky-h: 44px;
}

/* 旧版（もし残ってても殺す） */
.mb-sticky-cta{ display:none !important; }

/* ページ下が追従に隠れないように（バー分だけ確保） */
@media (max-width: 980px){
  body{ padding-bottom: calc(var(--mb-sticky-h) + env(safe-area-inset-bottom)); }
}

/* 追従本体（バー） */
.mb-sticky{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 9999;
  padding: 8px 12px 0;
  pointer-events: none;
}
.mb-sticky > *{ pointer-events: auto; }

.mb-sticky-bar{
  width: min(520px, calc(100vw - 24px));
  margin: 0 auto;
  height: var(--mb-sticky-h);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;

  border: 2px solid rgba(6,48,85,.35);
  border-radius: 999px;

  /* さわやか＆ポップ */
  background: linear-gradient(135deg, rgba(40,200,255,.98), rgba(120,255,214,.92));
  box-shadow: 6px 6px 0 rgba(6,48,85,.25), 0 14px 34px rgba(11,42,85,.16);
  color: #063055;

  padding: 0 14px;
  cursor: pointer;
}

.mb-sticky-title{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-sticky-hint{
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
}

.mb-sticky-chevron{
  font-size: 14px;
  transition: transform .18s ease;
}

.mb-sticky.is-open .mb-sticky-chevron{ transform: rotate(180deg); }

@media (max-width: 360px){
  .mb-sticky-hint{ display:none; }
}

/* ===== フルスクリーン選択 UI ===== */
.mb-sticky-panel{
  position: fixed;
  inset: 0;
  z-index: 10000;

  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(246,251,255,.90);
  backdrop-filter: blur(10px);

  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mb-sticky.is-open .mb-sticky-panel{ display:flex; }

/* 閉じるボタン（はっきり） */
.mb-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(6,48,85,.35);
  background: #ffffff;
  color: #063055;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 6px 6px 0 rgba(6,48,85,.18), 0 12px 28px rgba(11,42,85,.18);
  cursor: pointer;
}

/* 中央2択 */
.mb-center{
  width: min(560px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 大きいカード（共通） */
.mb-big{
  min-height: 34vh;
  border-radius: 26px;
  border: 3px solid rgba(6,48,85,.55);
  box-shadow: 10px 10px 0 rgba(6,48,85,.55), 0 18px 44px rgba(11,42,85,.18);
  text-decoration: none;
  padding: 18px 16px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;

  color: #fff;
  transform: rotate(-.6deg);
  transition: transform .10s ease, box-shadow .10s ease, filter .10s ease;
}
.mb-big:active{
  transform: translateY(2px) rotate(-.2deg) scale(.99);
  filter: saturate(1.05);
  box-shadow: 6px 6px 0 rgba(6,48,85,.55), 0 12px 30px rgba(11,42,85,.18);
}

.mb-big-title{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .02em;
  line-height: 1.2;
}

/* リスト（縦箇条書き） */
.mb-big-list{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  font-size: 12.5px;
  line-height: 1.55;
}

.mb-big-list li{
  position: relative;
  padding: 8px 10px 8px 28px;
  margin: 0 0 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  border: 1px dashed rgba(255,255,255,.55);
  color: rgba(255,255,255,.95);
}

.mb-big-list li::before{
  content: "✓";
  position: absolute;
  left: 10px;
  top: 8px;
  font-weight: 900;
  color: rgba(255,255,255,.9);
}

/* 困っている：クール×緊急 */
.mb-big--trouble{ background: var(--blue-600); }
.mb-big--want{ background: var(--accent-orange); }


/* 下の小さめPOST（“非常口”っぽく強め） */
.mb-post{
  width: min(560px, 92vw);
  text-align: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 3px solid rgba(6,48,85,.65);
  background: #063055;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .10em;
  box-shadow: 8px 8px 0 rgba(0,0,0,.55), 0 18px 44px rgba(11,42,85,.18);
  transform: rotate(-.6deg);
}
.mb-post:active{ transform: translateY(2px) rotate(-.2deg) scale(.99); }

/* 狭い端末は縦並び */
@media (max-width: 420px){
  .mb-center{ grid-template-columns: 1fr; }
  .mb-big{ min-height: 26vh; }
}

/* ===== carousel (NEWS) ===== */
.posts-carousel{
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* ボタン：ポスターっぽく強く */
.carousel-btn{
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(6,48,85,.55);
  background: #fff;
  box-shadow: 6px 6px 0 rgba(6,48,85,.25), 0 14px 34px rgba(11,42,85,.16);
  cursor: pointer;
  font-weight: 900;
}
.carousel-btn:active{ transform: translateY(2px); }
.carousel-btn:disabled{ opacity:.35; cursor:not-allowed; }

/* ★ここが重要：横スクロール実体にする */
.posts-track{
  overflow-x: auto;               /* ← hidden だと動かない */
  overflow-y: hidden;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 14px;
  padding: 6px 6px 10px;

  scroll-snap-type: x mandatory;  /* ←カルーセル感 */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}
.posts-track::-webkit-scrollbar{ display:none; }

.posts-item{
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 18px;
  overflow: hidden;

  /* “紙”っぽく */
  background: #fff;
  border: 2px solid rgba(6,48,85,.25);
  box-shadow: 8px 8px 0 rgba(6,48,85,.18), 0 18px 44px rgba(11,42,85,.12);
  transform: rotate(-.3deg);
}
.posts-item:nth-child(even){ transform: rotate(.35deg); }

.posts-thumb{
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.04);
  overflow: hidden;
}
.posts-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.posts-body{ padding: 14px 14px 16px; }
.posts-date{
  font-size: 12px;
  font-weight: 800;
  color: rgba(6,48,85,.55);
  margin-bottom: 6px;
}
.posts-title{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .02em;
}

/* スマホ：ボタン小さめ */
@media (max-width: 560px){
  .posts-carousel{ grid-template-columns: 46px 1fr 46px; }
  .carousel-btn{ width:46px; height:46px; }
  .posts-track{ grid-auto-columns: minmax(240px, 82vw); }
}

.posts-loading{
  padding: 12px 4px;
  color: rgba(6,48,85,.6);
  font-weight: 800;
}

/* ===== NEWS : messy media mode ===== */

/* セクション自体も色面を作る */
.latest-blog{
  background: linear-gradient(180deg, rgba(255,229,106,.22), rgba(240,249,255,.80));
  border-top: 3px solid rgba(6,48,85,.18);
}

/* 見出しを「雑誌ラベル」っぽく */
.latest-blog .section-head h2{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
  transform: rotate(-.6deg);
}

.latest-blog .section-head h2::before{
  content: "LATEST";
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #ff2a6d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 3px 3px 0 rgba(6,48,85,.55);
  transform: rotate(-6deg);
}

/* trackは“台紙”っぽく */
.posts-track{
  padding: 10px 10px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.55);
  border: 2px solid rgba(6,48,85,.10);
  box-shadow: 0 18px 44px rgba(11,42,85,.10);
}

/* 記事カードを「切り抜き」っぽく */
.posts-item{
  border-radius: 20px;
  border: 3px solid rgba(6,48,85,.55);
  box-shadow: 10px 10px 0 rgba(6,48,85,.35), 0 18px 44px rgba(11,42,85,.14);
  overflow: hidden;
  position: relative;
}

/* 角度をもっと強める（わちゃ感） */
.posts-item{ transform: rotate(-.9deg); }
.posts-item:nth-child(2n){ transform: rotate(.8deg); }
.posts-item:nth-child(3n){ transform: rotate(-.4deg); }

/* 右上に“ピン”を打ったみたいな丸 */
.posts-item::before{
  content:"";
  position:absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f1ff45;
  border: 2px solid rgba(6,48,85,.65);
  box-shadow: 2px 2px 0 rgba(6,48,85,.45);
  z-index: 3;
}

/* サムネの上に「タグ帯」を乗せる */
.posts-thumb{
  position: relative;
}
.posts-thumb::after{
  content: "NEWS";
  position:absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6,48,85,.92);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}

/* テキスト部分を“紙”っぽく */
.posts-body{
  background: linear-gradient(180deg, #ffffff, rgba(240,249,255,.8));
}

/* タイトルをちょい大きめ・強め */
.posts-title{
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .02em;
}

/* 日付も可愛く小タグ */
.posts-date{
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255,229,106,.55);
  border: 1px solid rgba(6,48,85,.18);
  font-weight: 900;
}

/* ボタンも「厚み」 */
.carousel-btn{
  border: 3px solid rgba(6,48,85,.55);
  box-shadow: 6px 6px 0 rgba(6,48,85,.25), 0 14px 34px rgba(11,42,85,.16);
}
/* NEWSカード：色のバリエ（HEROと統一） */
.posts-item:nth-child(4n+1){ background: linear-gradient(180deg, #fff, rgba(40,200,255,.16)); }
.posts-item:nth-child(4n+2){ background: linear-gradient(180deg, #fff, rgba(255,42,109,.14)); }
.posts-item:nth-child(4n+3){ background: linear-gradient(180deg, #fff, rgba(241,255,69,.18)); }
.posts-item:nth-child(4n){   background: linear-gradient(180deg, #fff, rgba(6,48,85,.10)); }



/* =========================
   MB STICKY - PC: RIGHT BOTTOM
   ========================= */
@media (min-width: 861px){
  .mb-sticky{
    position: fixed;
    right: 18px;
    bottom: 18px;
    top: auto;
    left: auto;
    transform: none;
    z-index: 9999;
  }

  .mb-sticky-bar{
    width: 68px;
    height: 210px;
    border-radius: 999px;

    writing-mode: vertical-rl;
    text-orientation: mixed;

    background: linear-gradient(180deg, #37e0ff, #7cf3e6);
    color: #0b2a55;

    font-weight: 1000;
    letter-spacing: .12em;

    box-shadow:
      0 0 0 4px #0b2a55,
      10px 10px 0 rgba(0,0,0,.45);

    transition: transform .18s ease, box-shadow .18s ease;
  }

  .mb-sticky-bar:hover{
    transform: translate(-4px,-4px);
    box-shadow:
      0 0 0 4px #0b2a55,
      16px 16px 0 rgba(0,0,0,.55);
  }

  .mb-sticky-hint,
  .mb-sticky-chevron{
    display:none;
  }
}

/* =========================
   MB STICKY - MOBILE BOOST
   ========================= */
@media (max-width: 860px){
  .mb-sticky-bar{
    min-height: 74px;
    padding: 16px 18px;

    font-size: 16px;
    font-weight: 1000;

    background: linear-gradient(90deg, #37e0ff, #7cf3e6);

    box-shadow:
      0 0 0 3px #0b2a55,
      0 -6px 20px rgba(0,0,0,.25);
  }

  .mb-sticky-title{
    font-size: 16px;
  }

  .mb-sticky-hint{
    font-size: 12px;
    opacity: .9;
  }

  .mb-sticky-chevron{
    font-size: 18px;
  }
}


/* =========================================================
   REQUEST helpers (safe / low specificity)
   ========================================================= */

/* badge */
:where(.badge){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  border: 2px solid rgba(11,42,85,.28);
  color: #0b2a55;
  background: rgba(255,255,255,.80);
}
:where(.badge-soft){
  background: rgba(11,42,85,.06);
  border-color: rgba(11,42,85,.22);
}

/* buttons */
:where(.btn){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration:none;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .02em;
  border: 2px solid rgba(11,42,85,.22);
  color:#0b2a55;
  background:#fff;
  box-shadow: 8px 8px 0 rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover:hover){
  :where(.btn:hover){
    transform: translate(-2px,-2px);
    box-shadow: 12px 12px 0 rgba(0,0,0,.28);
  }
}
:where(.btn:active){
  transform: translateY(2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,.22);
}
:where(.btn:focus-visible){
  outline: 3px solid rgba(0,140,255,.35);
  outline-offset: 2px;
}

:where(.btn-primary){
  background: #0b2a55;
  color: #fff;
  border-color: transparent;
}
:where(.btn-ghost){
  background: rgba(11,42,85,.06);
}


/* varが死んでも色が必ず出るように */
.mb-big--trouble{ background: var(--blue-600, #0f6fb8) !important; }
.mb-big--want{ background: var(--accent-orange, #ff7a18) !important; }

/* ============================
   MB Sticky CTA (mobile)
   - tap bar -> fullscreen chooser
   ============================ */

:root{
  --mb-sticky-h: 44px;
}

/* 旧版（もし残ってても殺す） */
.mb-sticky-cta{ display:none !important; }

/* ページ下が追従に隠れないように（バー分だけ確保） */
@media (max-width: 980px){
  body{ padding-bottom: calc(var(--mb-sticky-h) + env(safe-area-inset-bottom)); }
}

/* 追従本体（バー） */
.mb-sticky{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 9999;
  padding: 8px 12px 0;
  pointer-events: none;
}
.mb-sticky > *{ pointer-events: auto; }

.mb-sticky-bar{
  width: min(520px, calc(100vw - 24px));
  margin: 0 auto;
  height: var(--mb-sticky-h);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;

  border: 2px solid rgba(6,48,85,.35);
  border-radius: 999px;

  /* さわやか＆ポップ */
  background: linear-gradient(135deg, rgba(40,200,255,.98), rgba(120,255,214,.92));
  box-shadow: 6px 6px 0 rgba(6,48,85,.25), 0 14px 34px rgba(11,42,85,.16);
  color: #063055;

  padding: 0 14px;
  cursor: pointer;
}

.mb-sticky-title{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-sticky-hint{
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
}

.mb-sticky-chevron{
  font-size: 14px;
  transition: transform .18s ease;
}

.mb-sticky.is-open .mb-sticky-chevron{ transform: rotate(180deg); }

@media (max-width: 360px){
  .mb-sticky-hint{ display:none; }
}

/* ===== フルスクリーン選択 UI ===== */
.mb-sticky-panel{
  position: fixed;
  inset: 0;
  z-index: 10000;

  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(246,251,255,.90);
  backdrop-filter: blur(10px);

  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mb-sticky.is-open .mb-sticky-panel{ display:flex; }

/* 閉じるボタン（はっきり） */
.mb-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(6,48,85,.35);
  background: #ffffff;
  color: #063055;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 6px 6px 0 rgba(6,48,85,.18), 0 12px 28px rgba(11,42,85,.18);
  cursor: pointer;
}

/* 中央2択 */
.mb-center{
  width: min(560px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 大きいカード（共通） */
.mb-big{
  min-height: 34vh;
  border-radius: 26px;
  border: 3px solid rgba(6,48,85,.55);
  box-shadow: 10px 10px 0 rgba(6,48,85,.55), 0 18px 44px rgba(11,42,85,.18);
  text-decoration: none;
  padding: 18px 16px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;

  color: #fff;
  transform: rotate(-.6deg);
  transition: transform .10s ease, box-shadow .10s ease, filter .10s ease;
}
.mb-big:active{
  transform: translateY(2px) rotate(-.2deg) scale(.99);
  filter: saturate(1.05);
  box-shadow: 6px 6px 0 rgba(6,48,85,.55), 0 12px 30px rgba(11,42,85,.18);
}

.mb-big-title{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .02em;
  line-height: 1.2;
}

/* リスト（縦箇条書き） */
.mb-big-list{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  font-size: 12.5px;
  line-height: 1.55;
}

.mb-big-list li{
  position: relative;
  padding: 8px 10px 8px 28px;
  margin: 0 0 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  border: 1px dashed rgba(255,255,255,.55);
  color: rgba(255,255,255,.95);
}

.mb-big-list li::before{
  content: "✓";
  position: absolute;
  left: 10px;
  top: 8px;
  font-weight: 900;
  color: rgba(255,255,255,.9);
}

/* 困っている：クール×緊急 */
.mb-big--trouble{ background: var(--blue-600); }
.mb-big--want{ background: var(--accent-orange); }


/* 下の小さめPOST（“非常口”っぽく強め） */
.mb-post{
  width: min(560px, 92vw);
  text-align: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 3px solid rgba(6,48,85,.65);
  background: #063055;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .10em;
  box-shadow: 8px 8px 0 rgba(0,0,0,.55), 0 18px 44px rgba(11,42,85,.18);
  transform: rotate(-.6deg);
}
.mb-post:active{ transform: translateY(2px) rotate(-.2deg) scale(.99); }

/* 狭い端末は縦並び */
@media (max-width: 420px){
  .mb-center{ grid-template-columns: 1fr; }
  .mb-big{ min-height: 26vh; }
}

/* ===== carousel (NEWS) ===== */
.posts-carousel{
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* ボタン：ポスターっぽく強く */
.carousel-btn{
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(6,48,85,.55);
  background: #fff;
  box-shadow: 6px 6px 0 rgba(6,48,85,.25), 0 14px 34px rgba(11,42,85,.16);
  cursor: pointer;
  font-weight: 900;
}
.carousel-btn:active{ transform: translateY(2px); }
.carousel-btn:disabled{ opacity:.35; cursor:not-allowed; }

/* ★ここが重要：横スクロール実体にする */
.posts-track{
  overflow-x: auto;               /* ← hidden だと動かない */
  overflow-y: hidden;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 14px;
  padding: 6px 6px 10px;

  scroll-snap-type: x mandatory;  /* ←カルーセル感 */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}
.posts-track::-webkit-scrollbar{ display:none; }

.posts-item{
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 18px;
  overflow: hidden;

  /* “紙”っぽく */
  background: #fff;
  border: 2px solid rgba(6,48,85,.25);
  box-shadow: 8px 8px 0 rgba(6,48,85,.18), 0 18px 44px rgba(11,42,85,.12);
  transform: rotate(-.3deg);
}
.posts-item:nth-child(even){ transform: rotate(.35deg); }

.posts-thumb{
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.04);
  overflow: hidden;
}
.posts-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.posts-body{ padding: 14px 14px 16px; }
.posts-date{
  font-size: 12px;
  font-weight: 800;
  color: rgba(6,48,85,.55);
  margin-bottom: 6px;
}
.posts-title{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .02em;
}

/* スマホ：ボタン小さめ */
@media (max-width: 560px){
  .posts-carousel{ grid-template-columns: 46px 1fr 46px; }
  .carousel-btn{ width:46px; height:46px; }
  .posts-track{ grid-auto-columns: minmax(240px, 82vw); }
}

.posts-loading{
  padding: 12px 4px;
  color: rgba(6,48,85,.6);
  font-weight: 800;
}

/* ===== NEWS : messy media mode ===== */

/* セクション自体も色面を作る */
.latest-blog{
  background: linear-gradient(180deg, rgba(255,229,106,.22), rgba(240,249,255,.80));
  border-top: 3px solid rgba(6,48,85,.18);
}

/* 見出しを「雑誌ラベル」っぽく */
.latest-blog .section-head h2{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
  transform: rotate(-.6deg);
}

.latest-blog .section-head h2::before{
  content: "LATEST";
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #ff2a6d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 3px 3px 0 rgba(6,48,85,.55);
  transform: rotate(-6deg);
}

/* trackは“台紙”っぽく */
.posts-track{
  padding: 10px 10px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.55);
  border: 2px solid rgba(6,48,85,.10);
  box-shadow: 0 18px 44px rgba(11,42,85,.10);
}

/* 記事カードを「切り抜き」っぽく */
.posts-item{
  border-radius: 20px;
  border: 3px solid rgba(6,48,85,.55);
  box-shadow: 10px 10px 0 rgba(6,48,85,.35), 0 18px 44px rgba(11,42,85,.14);
  overflow: hidden;
  position: relative;
}

/* 角度をもっと強める（わちゃ感） */
.posts-item{ transform: rotate(-.9deg); }
.posts-item:nth-child(2n){ transform: rotate(.8deg); }
.posts-item:nth-child(3n){ transform: rotate(-.4deg); }

/* 右上に“ピン”を打ったみたいな丸 */
.posts-item::before{
  content:"";
  position:absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f1ff45;
  border: 2px solid rgba(6,48,85,.65);
  box-shadow: 2px 2px 0 rgba(6,48,85,.45);
  z-index: 3;
}

/* サムネの上に「タグ帯」を乗せる */
.posts-thumb{
  position: relative;
}
.posts-thumb::after{
  content: "NEWS";
  position:absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6,48,85,.92);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}

/* テキスト部分を“紙”っぽく */
.posts-body{
  background: linear-gradient(180deg, #ffffff, rgba(240,249,255,.8));
}

/* タイトルをちょい大きめ・強め */
.posts-title{
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .02em;
}

/* 日付も可愛く小タグ */
.posts-date{
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255,229,106,.55);
  border: 1px solid rgba(6,48,85,.18);
  font-weight: 900;
}

/* ボタンも「厚み」 */
.carousel-btn{
  border: 3px solid rgba(6,48,85,.55);
  box-shadow: 6px 6px 0 rgba(6,48,85,.25), 0 14px 34px rgba(11,42,85,.16);
}
/* NEWSカード：色のバリエ（HEROと統一） */
.posts-item:nth-child(4n+1){ background: linear-gradient(180deg, #fff, rgba(40,200,255,.16)); }
.posts-item:nth-child(4n+2){ background: linear-gradient(180deg, #fff, rgba(255,42,109,.14)); }
.posts-item:nth-child(4n+3){ background: linear-gradient(180deg, #fff, rgba(241,255,69,.18)); }
.posts-item:nth-child(4n){   background: linear-gradient(180deg, #fff, rgba(6,48,85,.10)); }



/* =========================
   MB STICKY - PC: RIGHT BOTTOM
   ========================= */
@media (min-width: 861px){
  .mb-sticky{
    position: fixed;
    right: 18px;
    bottom: 18px;
    top: auto;
    left: auto;
    transform: none;
    z-index: 9999;
  }

  .mb-sticky-bar{
    width: 68px;
    height: 210px;
    border-radius: 999px;

    writing-mode: vertical-rl;
    text-orientation: mixed;

    background: linear-gradient(180deg, #37e0ff, #7cf3e6);
    color: #0b2a55;

    font-weight: 1000;
    letter-spacing: .12em;

    box-shadow:
      0 0 0 4px #0b2a55,
      10px 10px 0 rgba(0,0,0,.45);

    transition: transform .18s ease, box-shadow .18s ease;
  }

  .mb-sticky-bar:hover{
    transform: translate(-4px,-4px);
    box-shadow:
      0 0 0 4px #0b2a55,
      16px 16px 0 rgba(0,0,0,.55);
  }

  .mb-sticky-hint,
  .mb-sticky-chevron{
    display:none;
  }
}

/* =========================
   MB STICKY - MOBILE BOOST
   ========================= */
@media (max-width: 860px){
  .mb-sticky-bar{
    min-height: 74px;
    padding: 16px 18px;

    font-size: 16px;
    font-weight: 1000;

    background: linear-gradient(90deg, #37e0ff, #7cf3e6);

    box-shadow:
      0 0 0 3px #0b2a55,
      0 -6px 20px rgba(0,0,0,.25);
  }

  .mb-sticky-title{
    font-size: 16px;
  }

  .mb-sticky-hint{
    font-size: 12px;
    opacity: .9;
  }

  .mb-sticky-chevron{
    font-size: 18px;
  }
}


/* =========================================================
   REQUEST helpers (safe / low specificity)
   ========================================================= */

/* badge */
:where(.badge){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  border: 2px solid rgba(11,42,85,.28);
  color: #0b2a55;
  background: rgba(255,255,255,.80);
}
:where(.badge-soft){
  background: rgba(11,42,85,.06);
  border-color: rgba(11,42,85,.22);
}

/* buttons */
:where(.btn){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration:none;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .02em;
  border: 2px solid rgba(11,42,85,.22);
  color:#0b2a55;
  background:#fff;
  box-shadow: 8px 8px 0 rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover:hover){
  :where(.btn:hover){
    transform: translate(-2px,-2px);
    box-shadow: 12px 12px 0 rgba(0,0,0,.28);
  }
}
:where(.btn:active){
  transform: translateY(2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,.22);
}
:where(.btn:focus-visible){
  outline: 3px solid rgba(0,140,255,.35);
  outline-offset: 2px;
}

:where(.btn-primary){
  background: #0b2a55;
  color: #fff;
  border-color: transparent;
}
:where(.btn-ghost){
  background: rgba(11,42,85,.06);
}


/* varが死んでも色が必ず出るように */
.mb-big--trouble{ background: var(--blue-600, #0f6fb8) !important; }
.mb-big--want{ background: var(--accent-orange, #ff7a18) !important; }

/* 閉じてるときは絶対にイベントを食わない */
.mb-sticky-panel{
  pointer-events: none;
}

.mb-sticky.is-open .mb-sticky-panel{
  pointer-events: auto;
}
/* components.css の一番下に */
.mb-sticky-panel{
  pointer-events: none;
}
.mb-sticky.is-open .mb-sticky-panel{
  pointer-events: auto;
}