
/*
Theme Name: IBLD Theme
Theme URI: https://diet.iblpacademy.com/
Author: 一般社団法人 国際IBLPアカデミー
Author URI: https://iblpacademy.com/
Description: インナービューティーライフダイエット 会員サイト オリジナルWordPressテーマ
Version: 1.0.0
License: All Rights Reserved
Text Domain: ibld-theme
*/

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Noto+Sans+JP:wght@400;700&family=Open+Sans&display=swap');

/* ===== CSS変数 ===== */
:root {
  --ibld-bg: #ffffff;
  --ibld-surface: #f8f8f7;
  --ibld-text: #1a1a1a;
  --ibld-text-sub: #6b6b6b;
  --ibld-teal: #4ecfc3;
  --ibld-teal-light: #7bddd7;
  --ibld-teal-hover: #3abfb3;
  --ibld-gray: #6b6b6b;
  --ibld-content-text: #737373;
  --ibld-heading: #0f0f0f;
  --ibld-white: #ffffff;
  --ibld-border: #ebebeb;
  --ibld-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ibld-shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --ibld-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ibld-radius: 4px;
  --ibld-site-width: 1114px;

  /* ===== タイポグラフィスケール ===== */
  --fs-2xs:  0.625rem; /* 10px: 極小ラベル・ENテキスト */
  --fs-xs:   0.75rem;  /* 12px: バッジ・タグ */
  --fs-sm:   0.875rem; /* 14px: ナビ・補助テキスト・メタ情報 */
  --fs-base: 1rem;     /* 16px: 本文 */
  --fs-lg:   1.25rem;  /* 20px: カード見出し */
  --fs-xl:   1.5rem;   /* 24px: セクション見出し・記事タイトル */
  --fs-2xl:  2rem;     /* 32px: ページタイトル */
}

/* ===== リセット・ベース ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--ibld-surface);
  color: var(--ibld-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.85;
}

a {
  color: var(--ibld-teal);
  text-decoration: none;
}

/* ===== アクセシビリティ：フォーカスインジケーター ===== */

/* マウスクリック時はアウトラインを非表示 */
:focus:not(:focus-visible) {
  outline: none;
}

/* キーボードフォーカス：全インタラクティブ要素共通 */
:focus-visible {
  outline: 2px solid var(--ibld-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 暗背景ボタンは白アウトライン */
.btn-15:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

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

/* ===== アニメーション定義 ===== */
@keyframes StSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes StFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ibldFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== スクロールリビール ===== */
.js-reveal {
  opacity: 0;
}

.js-reveal.is-visible {
  animation: ibldFadeUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== レイアウト ===== */
#wrapper {
  width: 100%;
}

#wrapper-in {
  max-width: var(--ibld-site-width);
  margin: 0 auto;
  padding: 0;
}

/* ===== ヘッダー ===== */
#st-headwide {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  animation-name: StSlideDown;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

/* FV非表示ページ（投稿・固定ページなど）は背景あり */
body:not(.home) #st-headwide {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--ibld-shadow-sm);
}

/* FV非表示ページは固定ヘッダー分オフセット */
body:not(.home) #wrapper-in {
  margin-top: 68px;
}

#headbox-bg {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  background-color: transparent;
  max-width: var(--ibld-site-width);
  margin: 0 auto;
}

.sitename-only-img {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.sitename-only-img a {
  display: block;
}

.sitename-only-img img {
  max-width: 160px;
  height: auto;
}

.sitename-only-img p {
  font-size: var(--fs-xs);
  color: var(--ibld-gray);
  margin: 0;
  white-space: nowrap;
  text-align: left;
  letter-spacing: 0.04em;
}

/* ===== PCナビゲーション ===== */
#st-menubox {
  width: auto;
  display: flex;
  justify-content: flex-end;
}

#st-menubox ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

#st-menubox ul li {
  position: relative;
}

#st-menubox ul li a {
  display: block;
  position: relative;
  padding: 8px 14px;
  color: var(--ibld-heading) !important;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--ibld-transition);
  letter-spacing: 0.03em;
  text-decoration: none !important;
}

#st-menubox ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  width: 0;
  height: 2px;
  background: var(--ibld-teal);
  transition: width var(--ibld-transition);
  border-radius: 1px;
}

#st-menubox ul li a:hover {
  color: var(--ibld-teal) !important;
  text-decoration: none !important;
}

#st-menubox ul li a:hover::after {
  width: calc(100% - 28px);
}

#st-menubox ul li.current-menu-item > a {
  color: var(--ibld-teal) !important;
}

#st-menubox ul li.current-menu-item > a::after {
  width: calc(100% - 28px);
}

#st-menubox ul li a .menu-item-text {
  color: inherit;
}

/* ドロップダウンメニュー */
#st-menubox ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--ibld-white);
  min-width: 164px;
  box-shadow: var(--ibld-shadow-md);
  z-index: 9999;
  flex-direction: column;
  border-radius: 0 0 var(--ibld-radius) var(--ibld-radius);
  border-top: 2px solid var(--ibld-teal);
  overflow: hidden;
}

#st-menubox ul li:hover > ul {
  display: flex;
}

#st-menubox ul li ul li {
  width: 100%;
}

#st-menubox ul li ul li a {
  padding: 10px 16px;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--ibld-border);
  letter-spacing: 0.02em;
}

#st-menubox ul li ul li a::after {
  display: none;
}

/* ===== メニューリンクスタイル（共通） ===== */
.menu-item a {
  color: var(--ibld-heading) !important;
}

.menu-item a:hover,
.menu-item a:active {
  color: var(--ibld-teal) !important;
  text-decoration: none !important;
}

.menu-item-text {
  color: inherit;
}

/* ===== メインビジュアル（旧・HTML削除済み・無効化） ===== */
#st-headerbox {
  opacity: 1;
  animation: none;
}

/* ===== ローディング ===== */
html.is-loading {
  overflow: hidden;
}

.lcl-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  /* 【Claude Code変更 2026-04-18】transition 調整 + transform追加 復旧時は opacity 1.2s, visibility 1.2s の2プロパティに戻す */
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s,
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lcl-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  /* 【Claude Code変更 2026-04-18】カーテンが開く演出 復旧時は次の1行を削除 */
  transform: scale(1.04);
  pointer-events: none;
}

.lcl-loading__logo {
  width: 180px;
  opacity: 0;
  /* 【Claude Code変更 2026-04-18】animation 短縮 復旧時は 1.6s 0.4s に戻す */
  animation: loading-logo-in 0.7s 0.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lcl-loading__logo img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes loading-logo-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 【Claude Code変更 2026-04-18】ページ進入時フェードイン（opacity only、固定ヘッダーへの影響回避）復旧時はこのブロック全体を削除 */
@keyframes page-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#wrapper {
  animation: page-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  #wrapper {
    animation: none;
  }
}
/* 【Claude Code変更ここまで】 */

/* ===== 背景カーテンパターン ===== */
.lcl-bg-pattern {
  width: 110%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 50%;
  display: flex;
  z-index: -1;
  transform: translate3d(-50%, 0, 0);
  pointer-events: none;
}

.lcl-bg-pattern__item {
  flex: 1;
  height: 150%;
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5) 10%,
    transparent 50%,
    rgba(255, 255, 255, 0.5) 90%,
    transparent
  );
}

.lcl-bg-pattern__item:nth-child(1)  { animation: curtain-move-1  4.2s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(2)  { animation: curtain-move-2  3.8s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(3)  { animation: curtain-move-3  4.6s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(4)  { animation: curtain-move-4  3.5s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(5)  { animation: curtain-move-5  4.9s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(6)  { animation: curtain-move-6  3.2s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(7)  { animation: curtain-move-7  4.4s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(8)  { animation: curtain-move-8  3.9s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(9)  { animation: curtain-move-9  4.1s ease-in-out infinite; }
.lcl-bg-pattern__item:nth-child(10) { animation: curtain-move-10 3.6s ease-in-out infinite; }

@keyframes curtain-move-1  { 0%,100% { transform: translateY(0);   } 50% { transform: translateY(-6%); } }
@keyframes curtain-move-2  { 0%,100% { transform: translateY(-4%); } 50% { transform: translateY(3%);  } }
@keyframes curtain-move-3  { 0%,100% { transform: translateY(2%);  } 50% { transform: translateY(-8%); } }
@keyframes curtain-move-4  { 0%,100% { transform: translateY(-3%); } 50% { transform: translateY(5%);  } }
@keyframes curtain-move-5  { 0%,100% { transform: translateY(5%);  } 50% { transform: translateY(-4%); } }
@keyframes curtain-move-6  { 0%,100% { transform: translateY(-6%); } 50% { transform: translateY(2%);  } }
@keyframes curtain-move-7  { 0%,100% { transform: translateY(3%);  } 50% { transform: translateY(-7%); } }
@keyframes curtain-move-8  { 0%,100% { transform: translateY(-2%); } 50% { transform: translateY(6%);  } }
@keyframes curtain-move-9  { 0%,100% { transform: translateY(6%);  } 50% { transform: translateY(-3%); } }
@keyframes curtain-move-10 { 0%,100% { transform: translateY(-5%); } 50% { transform: translateY(4%);  } }

/* ===== FV（First View） — shibuya-lp.design ===== */
#st-concept {
  font-size: 10px; /* rem基準を10pxに統一（shibuya準拠） */
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: transparent;
}

/* FVビジュアル（スライダー）コンテナ */
.fv-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  body.home #st-concept,
  body:not(.home):not(.ibld-member-login-guest) #st-concept {
    width: 100%;
    max-width: var(--ibld-site-width);
    margin-right: auto;
    margin-left: auto;
  }

  body.home #st-concept {
    margin-top: 68px;
  }

  body:not(.home):not(.ibld-member-login-guest) #st-concept {
    margin-top: 0;
  }

  body:not(.ibld-member-login-guest) .fv-visual {
    height: clamp(260px, 34vh, 340px);
    background: var(--ibld-white);
  }

  body:not(.ibld-member-login-guest) .lcl-slider-arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  body:not(.ibld-member-login-guest) .lcl-slider-arrow:hover {
    transform: translateY(-50%) scale(1.04);
  }

  body:not(.ibld-member-login-guest) #st-header-cardlink-wrapper {
    padding-top: 16px;
  }
}

body.ibld-member-login-guest #st-concept {
  display: none;
}

/* ── 回転サークル背景 ── */
.lcl-scroll-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80rem;
  height: 68rem;
  pointer-events: none;
  z-index: 0;
}

.lcl-scroll-bg__circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(78, 207, 195, 0.18);
  animation: scroll-circle-anim 80s linear infinite;
  opacity: 0.7;
  transform: scaleX(1.35);
  background: radial-gradient(ellipse at center, rgba(78, 207, 195, 0.04) 0%, transparent 70%);
}

.lcl-scroll-bg__circle::before,
.lcl-scroll-bg__circle::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(78, 207, 195, 0.10);
}

.lcl-scroll-bg__circle::before {
  inset: 12%;
}

.lcl-scroll-bg__circle::after {
  inset: 26%;
}

@keyframes scroll-circle-anim {
  from { transform: scaleX(1.35) rotate(0deg); }
  to   { transform: scaleX(1.35) rotate(-360deg); }
}

/* ── キャッチコピー：左中央配置（全面画像の前面） ── */
.lcl-catch {
  position: absolute;
  z-index: 10;
  left: 8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 56rem;
  color: #1e2d3a;
  padding: 3.2rem 3.6rem;
}

.catch-main {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 1.2rem;
}

.catch-main span {
  display: inline;
  background: #fff;
  color: #1e2d3a;
  padding: 0.1em 0.5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.catch-cta-btn {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.75rem 2rem;
  background: #4ecfc3;
  color: #fff;
  border: 2px solid #4ecfc3;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(78, 207, 195, 0.45);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

@media screen and (min-width: 768px) {
  .catch-cta-btn {
    padding: 1rem 2.8rem;
    font-size: 1.05rem;
  }
}

.catch-cta-btn::after {
  content: '▶';
  font-size: 0.65em;
  margin-left: 0.6em;
  vertical-align: middle;
}

.catch-cta-btn:hover {
  background: #3abfb3;
  border-color: #3abfb3;
  color: #fff;
  transform: translateY(-2px);
}

.catch-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: #1e2d3a;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.catch-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(78, 207, 195, 0.45);
  letter-spacing: 0.18em;
  text-transform: capitalize;
  margin: 0 0 1rem;
}

/* ── センタースライダー（全面表示） ── */
.lcl-slider-area {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lcl-slider {
  width: 100%;
  height: 100%;
}

.lcl-slider__card {
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* 画像を重ねてフェード切替 */
.lcl-slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lcl-slider__slide.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lcl-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lcl-slider__card--center {
  width: 100%;
  height: 100%;
  border-radius: 0;
  animation: none;
}


.lcl-slider__card--side {
  display: none;
}

.lcl-slider-arrow {
  position: absolute;
  z-index: 20;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(78, 207, 195, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #1e2d3a;
  box-shadow: 0 4px 18px rgba(30, 45, 58, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lcl-slider-arrow--prev {
  left: clamp(12px, 3vw, 40px);
}

.lcl-slider-arrow--next {
  right: clamp(12px, 3vw, 40px);
}

.lcl-slider-arrow span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  line-height: 1;
  margin-top: -0.16em;
}

.lcl-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(78, 207, 195, 0.95);
  box-shadow: 0 6px 22px rgba(30, 45, 58, 0.2);
  transform: translateY(-50%) scale(1.04);
}

.lcl-slider-arrow:focus-visible {
  outline: 3px solid rgba(78, 207, 195, 0.45);
  outline-offset: 3px;
}

/* ── アイコンナビ ── */
.icon-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 72rem;
  width: 92%;
  display: flex;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 0.6rem 3rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 20;
}

.icon-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem 0.6rem 1.2rem;
  text-decoration: none !important;
  color: #35383e;
  position: relative;
  transition: background 0.25s ease;
}

.icon-nav__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.4rem;
  background: linear-gradient(90deg, #4ecfc3, #00c9a7);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.icon-nav__item:hover {
  background: rgba(78, 207, 195, 0.04);
  text-decoration: none !important;
}

.icon-nav__item:hover::before {
  transform: scaleY(1);
}

.icon-nav__icon {
  font-size: 2rem;
  color: #4ecfc3;
  margin-bottom: 0.6rem;
  display: block;
}

.icon-nav__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #35383e;
  letter-spacing: 0.08em;
  display: block;
}

.icon-nav__sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  color: #7a8898;
  display: block;
  margin-top: 0.2rem;
}

/* ── スマホ ── */
@media screen and (max-width: 767px) {
  /* FV全体 */
  #st-concept {
    font-size: 8px;
  }

  /* FVビジュアル: 80vh */
  .fv-visual {
    height: calc(var(--vh, 1vh) * 50);
    min-height: 300px;
  }

  /* カードはFV後に通常フロー */
  #st-header-cardlink-wrapper {
    position: static;
    padding: 16px 12px;
  }

  /* 画像エリアは全面（ベースCSSの inset:0 をそのまま継承） */
  .lcl-slider-area {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .lcl-slider__card--center {
    border-radius: 0;
  }

  .lcl-slider-arrow {
    width: 44px;
    height: 44px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.86);
  }

  .lcl-slider-arrow--prev {
    left: 16px;
  }

  .lcl-slider-arrow--next {
    right: 16px;
  }

  .lcl-slider-arrow span {
    font-size: 2.4rem;
  }

  .lcl-slider-arrow:hover {
    transform: translateY(-50%);
  }

  /* キャッチコピー: 左寄せ・可変サイズ */
  .lcl-catch {
    position: absolute;
    left: 2vw;
    top: calc(50% + 34px); /* 50% + ヘッダー高さ(68px)の半分でヘッダー下の中央に */
    bottom: auto;
    transform: translateY(-50%);
    width: 85%;
    max-width: none;
    z-index: 15;
    min-height: auto;
    margin: 0;
    padding: 1.6rem 1.8rem;
  }

  .catch-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .catch-en {
    font-size: clamp(0.65rem, 2.2vw, 0.9rem);
  }

  .catch-logo {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .catch-main {
    font-size: clamp(1.25rem, 3.8vw, 1.4rem);
    background: none;
    padding: 0;
    line-height: 1.6;
    margin: 0 0 0.3rem;
  }

  /* アイコンナビ: 通常フロー */
  .icon-nav {
    flex-wrap: wrap;
    width: 94%;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 2rem auto 0;
    border-radius: 0.8rem;
    z-index: 15;
  }

  .icon-nav__item {
    flex: 0 0 33.333%;
    padding: 1.2rem 0.3rem 1rem;
  }

  .icon-nav__item:nth-child(n+4) {
    border-top: 1px solid #eee;
  }

  .icon-nav__item:nth-child(4) {
    border-left: none;
  }

  .icon-nav__icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.4rem;
  }

  .icon-nav__label {
    font-size: max(0.85rem, 9px);
  }

  .icon-nav__sub {
    display: none;
  }

  .lcl-scroll-bg {
    display: none;
  }
}

/* ===== カテゴリカード（4カラム・全ページ共通） ===== */
#st-header-cardlink-wrapper {
  padding: 16px 32px;
  background: #fff;
}

.header-cardlink {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: var(--ibld-site-width);
  margin: 0 auto;
}

/* カード本体 */
.cat-card {
  display: block;
  overflow: hidden;
  border-radius: var(--ibld-radius);
  text-decoration: none;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cat-card:hover {
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

/* サムネイル画像エリア */
.cat-card__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.cat-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: none;
}

/* ===== スマホ用ハンバーガーメニューボタン ===== */
#s-navi {
  display: none;
}

#s-navi button {
  background: var(--ibld-white);
  color: var(--ibld-heading);
  border: 1.5px solid var(--ibld-border);
  padding: 7px 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 1.5px;
  transition: background var(--ibld-transition), color var(--ibld-transition), border-color var(--ibld-transition);
}

#s-navi button:hover {
  background: var(--ibld-heading);
  color: var(--ibld-white);
  border-color: var(--ibld-heading);
}

/* ===== スライドメニュー（スマホ用） ===== */
#slide-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99998;
}

#slide-menu-overlay.open {
  display: block;
}

#slide-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--ibld-white);
  z-index: 99999;
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

#slide-menu.open {
  left: 0;
}

#slide-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#slide-menu ul li a {
  display: block;
  padding: 14px 20px;
  color: var(--ibld-text) !important;
  border-bottom: 1px solid var(--ibld-border);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  transition: background var(--ibld-transition), color var(--ibld-transition);
}

#slide-menu ul li a:hover {
  background-color: var(--ibld-surface);
  color: var(--ibld-teal) !important;
  text-decoration: none !important;
}

#slide-menu ul li ul {
  background-color: var(--ibld-surface);
}

#slide-menu ul li ul li a {
  padding-left: 36px;
  font-size: var(--fs-sm);
  color: var(--ibld-gray) !important;
}

#slide-menu-close {
  display: block;
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid var(--ibld-border);
  color: var(--ibld-gray);
  font-size: var(--fs-sm);
  letter-spacing: 1px;
  transition: color var(--ibld-transition);
}

#slide-menu-close:hover {
  color: var(--ibld-text);
}

/* ===== メインコンテンツエリア ===== */
#content-w {
  max-width: var(--ibld-site-width);
  margin: 0 auto;
  padding: 40px 32px;
  background-color: var(--ibld-white);
  box-shadow: var(--ibld-shadow-sm);
}

/* ===== フッター ===== */
footer {
  border-top: 1px solid var(--ibld-border) !important;
  background-color: var(--ibld-white);
  padding: 48px 32px 32px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--ibld-site-width);
  margin: 0 auto;
  text-align: center;
}

.footerlogo {
  animation-name: none !important;
  animation-duration: 0s !important;
  margin-bottom: 20px;
}

.footerlogo img {
  opacity: 1 !important;
  max-width: 180px;
  height: auto;
}

.footerlogo p {
  font-size: 0.75rem;
  color: var(--ibld-gray);
  margin: 6px 0 0;
  letter-spacing: 0.04em;
}

.footer-inner > p {
  font-size: 0.78rem;
  color: var(--ibld-gray);
  margin: 12px 0;
  letter-spacing: 0.02em;
}

.footer-nav ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav ul li a {
  color: var(--ibld-gray);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition: color var(--ibld-transition);
}

.footer-nav ul li a:hover {
  color: var(--ibld-teal);
  text-decoration: none;
}

/* ===== スマホ用フッター固定メニュー ===== */
.bottom-menu {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--ibld-border);
  display: none;
}

.bottom-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

.bottom-menu ul li {
  flex: 1;
  position: relative;
}

.bottom-menu ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  color: var(--ibld-gray) !important;
  font-size: var(--fs-2xs);
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: color var(--ibld-transition);
}

.bottom-menu ul li a:hover {
  color: var(--ibld-teal) !important;
}

.bottom-menu ul li a i {
  font-size: var(--fs-lg);
  margin-bottom: 2px;
  color: var(--ibld-teal);
}

/* フッターメニューのドロップアップ */
.bottom-menu ul li ul {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background-color: var(--ibld-white);
  min-width: 120px;
  box-shadow: var(--ibld-shadow-md);
  z-index: 9999;
  border-radius: var(--ibld-radius) var(--ibld-radius) 0 0;
  overflow: hidden;
}

.bottom-menu ul li ul li a {
  font-size: var(--fs-xs);
  padding: 10px 12px;
  border-top: 1px solid var(--ibld-border);
  flex-direction: row;
  justify-content: flex-start;
  gap: 6px;
}

/* ===== トップページ ===== */
#the-content {
  padding: 0;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

#the-content h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: var(--ibld-teal);
  text-align: center;
  font-size: var(--fs-xl);
  padding: 0.5em 0;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  border-top: solid 3px var(--ibld-teal);
  border-bottom: solid 3px var(--ibld-teal);
}

#the-content h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: #ffffff;
  background: var(--ibld-teal);
  text-align: left;
  font-size: var(--fs-base);
  margin-top: 2rem;
  line-height: 1.4;
  padding: 0.5em 0.75em;
  letter-spacing: 0.03em;
}

#the-content hr {
  border: none;
  border-top: 1px solid var(--ibld-border);
  margin: 28px 0;
}

#the-content p {
  color: var(--ibld-text);
  font-size: var(--fs-base);
  margin: 10px 0;
  text-align: left;
  line-height: 1.85;
}

/* 警告テキスト（インライン color: red を持つ p 要素） */
#the-content p[style*="color: red"] {
  background: #fff5f5;
  border-left: 3px solid #e05252;
  padding: 12px 16px;
  border-radius: var(--ibld-radius);
  margin: 16px 0;
  font-size: var(--fs-sm);
  color: #c0392b !important;
}

#the-content .the-content__cta {
  text-align: center;
  margin-top: 2rem;
}

.top-news {
  margin: 32px 0 8px;
  text-align: left;
  border: 1px solid var(--ibld-border);
  border-radius: 8px;
  background: var(--ibld-white);
  overflow: hidden;
}

#st-header-cardlink-wrapper .top-news {
  max-width: var(--ibld-site-width);
  margin: 16px auto 0;
}

.top-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: #4ecfc3;
}

#the-content .top-news__title,
.top-news__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: var(--fs-lg);
  line-height: 1.4;
  text-align: left;
  letter-spacing: 0.03em;
}

.top-news__archive {
  flex: 0 0 auto;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-decoration: none;
}

.top-news__archive:hover {
  color: #fff;
  opacity: 0.82;
  text-decoration: none;
}

.top-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-news__item + .top-news__item {
  border-top: 1px solid var(--ibld-border);
}

.top-news__link {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  color: var(--ibld-text);
  text-decoration: none;
  transition: background var(--ibld-transition), color var(--ibld-transition);
}

.top-news__link:hover {
  background: #f6fbfb;
  color: var(--ibld-teal);
  text-decoration: none;
}

.top-news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--ibld-gray);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.top-news__category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(96, 201, 195, 0.5);
  border-radius: 999px;
  color: var(--ibld-teal);
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1.2;
  background: rgba(96, 201, 195, 0.08);
}

.top-news__item-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== カテゴリページ ===== */
.category-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--ibld-heading);
  font-size: var(--fs-2xl);
  line-height: 1.0;
  text-align: center;
  margin: 24px 0 8px;
  letter-spacing: 0.04em;
}

.category-lead {
  text-align: center;
  color: var(--ibld-content-text);
  font-size: var(--fs-sm);
  margin-top: 0;
  margin-bottom: 40px;
}

.category-lead .sp-br {
  display: none;
}

.category-lead .pc-inline {
  display: inline;
}

/* ===== サービスカード（カテゴリ画像グリッド） ===== */
.entry-content {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  color: #888;
}

.entry-content a {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fs-sm);
  letter-spacing: 1px;
}

.entry-content p {
  font-size: var(--fs-sm);
  margin: 0 auto !important;
  line-height: 1.5 !important;
}

.entry-content section {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.entry-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #333;
  font-size: var(--fs-2xl);
  margin: 1.3rem 0;
}

.entry-content .section-lead {
  max-width: 600px;
  margin: 1rem auto 1.5rem;
}

.entry-content .service a {
  color: #5b7abb;
  display: block;
}

.entry-content .service h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #4ecfc3;
  font-size: var(--fs-lg);
  margin: 1rem 0 0.6rem;
}

.entry-content .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.entry-content .service {
  background: #fff;
  border: 1.5px solid var(--ibld-border);
  border-radius: var(--ibld-radius);
  overflow: hidden;
  transition: all var(--ibld-transition);
}

.entry-content .service:hover {
  box-shadow: var(--ibld-shadow-md);
  transform: translateY(-2px);
}


.entry-content .service i {
  font-size: 3.45rem;
}

/* service1〜6のホバーカラー */
.entry-content .service1 i, .entry-content .service1 h4, .entry-content .service1 .cta { color: #4ecfc3; }
.entry-content .service1:hover { border-color: #4ecfc3; }
.entry-content .service2 i, .entry-content .service2 h4, .entry-content .service2 .cta { color: #4ecfc3; }
.entry-content .service2:hover { border-color: #4ecfc3; }
.entry-content .service3 i, .entry-content .service3 h4, .entry-content .service3 .cta { color: #4ecfc3; }
.entry-content .service3:hover { border-color: #4ecfc3; }
.entry-content .service4 i, .entry-content .service4 h4, .entry-content .service4 .cta { color: #4ecfc3; }
.entry-content .service4:hover { border-color: #4ecfc3; }
.entry-content .service5 i, .entry-content .service5 h4, .entry-content .service5 .cta { color: #4ecfc3; }
.entry-content .service5:hover { border-color: #4ecfc3; }
.entry-content .service6 i, .entry-content .service6 h4, .entry-content .service6 .cta { color: #4ecfc3; }
.entry-content .service6:hover { border-color: #4ecfc3; }


.entry-content .service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-content .service:hover img {
  transform: scale(1.05);
}

/* カバー型：オーバーレイ共通（PC・SP） */
.entry-content .service a {
  position: relative;
  display: block;
  border-left: none;
}

.entry-content .service__img-wrap {
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}

/* グラデーションオーバーレイ */
.entry-content .service__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  z-index: 1;
}

/* テキストを画像底部に重ねる */
.entry-content .service__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 14px 16px 12px;
  z-index: 2;
}

.entry-content .service__label {
  font-size: var(--fs-base);
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
  line-height: 1.4;
}

.entry-content .service__en {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}



/* ===== 専用グリッドがある親カテゴリページで記事一覧非表示 ===== */
.category-workout .cat-itiran,
.category-cooking-recipes .cat-itiran {
  display: none;
}

/* ===== 記事一覧 ===== */
.cat-itiran {
  margin-top: 32px;
}

.cat-itiran .kanren {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat-itiran article {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ibld-border);
  padding: 16px 0;
  background-color: var(--ibld-white);
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  transition: background var(--ibld-transition);
}

.cat-itiran article:hover {
  background-color: var(--ibld-surface);
}

.kanren-thumb {
  width: 220px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--ibld-radius);
  order: 1; /* PC：右側 */
  position: relative;
}

.kanren-text {
  order: 0; /* PC：左側 */
}

.kanren-thumb a {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden; /* 画像のホバーズームをクリップ */
  border-radius: var(--ibld-radius);
}

.kanren-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-itiran article:hover .kanren-thumb img {
  transform: scale(1.04);
}

.kanren-text {
  flex: 1;
  padding: 4px 16px;
}

.cat-label {
  display: inline-block;
  background-color: var(--ibld-teal);
  color: #fff;
  font-size: var(--fs-xs);
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--ibld-transition), color var(--ibld-transition);
}

.cat-labels {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cat-labels .cat-label {
  margin-bottom: 0;
}

.cat-label:hover {
  background-color: var(--ibld-heading);
  color: #fff;
  text-decoration: none;
}

.kanren-text .cat-labels {
  margin-bottom: 8px;
}

.kanren-text h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ibld-heading);
  margin: 0;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.kanren-text h3 a {
  color: var(--ibld-heading);
  transition: color var(--ibld-transition);
}

.kanren-text h3 a:hover {
  color: var(--ibld-teal);
  text-decoration: none;
}

.kanren-text time {
  display: block;
  margin-top: 6px;
  color: var(--ibld-gray);
  font-size: var(--fs-xs);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.category-empty-state {
  width: 100%;
  max-width: 680px;
  margin: 8px auto 0;
  padding: 32px 28px;
  text-align: center;
  border: 1px solid var(--ibld-border);
  border-top: 4px solid var(--ibld-teal);
  border-radius: 8px;
  background: var(--ibld-white);
  box-shadow: var(--ibld-shadow-sm);
}

.category-empty-state__label {
  margin: 0 0 8px;
  color: var(--ibld-teal);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-empty-state__title {
  margin: 0;
  color: var(--ibld-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.category-empty-state__text {
  margin: 12px 0 0;
  color: var(--ibld-content-text);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.category-empty-state__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 22px;
  border: 1px solid var(--ibld-teal);
  border-radius: 999px;
  color: var(--ibld-teal);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background var(--ibld-transition), color var(--ibld-transition), transform var(--ibld-transition);
}

.category-empty-state__link:hover {
  background: var(--ibld-teal);
  color: var(--ibld-white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  margin: 0 0 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ibld-border);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: var(--fs-sm);
  color: var(--ibld-gray);
}

.breadcrumb ol li:not(:last-child)::after {
  content: ' >';
  margin-left: 4px;
}

.breadcrumb ol li a {
  color: var(--ibld-gray);
  transition: color var(--ibld-transition);
}

.breadcrumb ol li a:hover {
  color: var(--ibld-teal);
}

/* ===== 個別記事 ===== */
.post {
  background-color: var(--ibld-white);
  padding: 24px;
  max-width: var(--ibld-site-width);
  margin: 0 auto;
}

.post .cat-label {
  margin-bottom: 12px;
}

.post .cat-labels {
  margin-bottom: 12px;
}

.post .cat-labels .cat-label {
  margin-bottom: 0;
}

.post-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: var(--ibld-heading);
  font-size: var(--fs-xl);
  margin: 12px 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.post time {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ibld-gray);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.st-eyecatch-under {
  margin-bottom: 24px;
  max-width: 60%;
}

.st-eyecatch-under img {
  width: 100%;
  height: auto;
  border-radius: var(--ibld-radius);
}

/* YouTube動画レスポンシブ */
.youtube-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 24px 0;
  border-radius: var(--ibld-radius);
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== 記事本文内 iframe（YouTube等）レスポンシブ ===== */
.entry-content iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

.entry-content .wp-block-embed {
  max-width: 100%;
  overflow: hidden;
}

.entry-content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.entry-content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}

/* ===== 固定ページ ===== */
.page-content {
  max-width: var(--ibld-site-width);
  margin: 0 auto;
  padding: 24px;
  background-color: var(--ibld-white);
}

.page-content h1 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ibld-heading);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ibld-teal);
  letter-spacing: 0.03em;
}

/* ===== ページネーション ===== */
.pagination {
  text-align: center;
  margin: 36px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 7px 13px;
  margin: 0 2px;
  background-color: var(--ibld-white);
  border: 1px solid var(--ibld-border);
  color: var(--ibld-gray);
  font-size: var(--fs-sm);
  border-radius: var(--ibld-radius);
  transition: all var(--ibld-transition);
}

.pagination a:hover {
  background-color: var(--ibld-teal);
  color: var(--ibld-white);
  border-color: var(--ibld-teal);
  text-decoration: none;
}

.pagination .current {
  background-color: var(--ibld-teal);
  color: var(--ibld-white);
  border-color: var(--ibld-teal);
}

/* ===== 404ページ ===== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404 h1 {
  font-size: 5rem;
  color: var(--ibld-teal);
  margin: 0;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.error-404 h2 {
  font-size: var(--fs-xl);
  color: var(--ibld-heading);
  margin: 12px 0 24px;
  letter-spacing: 0.03em;
}

.error-404 p {
  color: var(--ibld-gray);
  margin-bottom: 24px;
}

/* ===== ボタンスタイル ===== */
.buttons {
  background-color: var(--ibld-teal);
  border: none;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  padding: .7rem 2.5rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--ibld-transition);
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(78, 207, 195, 0.25);
}

.buttons:hover {
  background-color: var(--ibld-teal-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(78, 207, 195, 0.35);
}

/* ===== カスタムボタン（btn-15） ===== */
.custom-btn {
  width: 220px;
  height: 40px;
  color: #ffffff;
  border-radius: 2px;
  padding: 10px 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),
    7px 7px 20px 0px rgba(0,0,0,.1),
    4px 4px 5px 0px rgba(0,0,0,.1);
  text-align: center;
}

.btn-15 {
  background: #2a2a2a;
  border: none;
  z-index: 1;
}

.btn-15:after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  z-index: -1;
  background-color: #FAFAFA;
  border-radius: 2px;
  box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),
    7px 7px 20px 0px rgba(0,0,0,.1),
    4px 4px 5px 0px rgba(0,0,0,.1);
  transition: all 0.3s ease;
}

.btn-15:hover { color: #0f0f0f; }
.btn-15:hover:after { left: 0; width: 100%; }
.btn-15:active { top: 2px; }

/* ===== 非表示要素 ===== */
.st-mybtn { display: none; }
#topnews-box { display: none; }
.post-86 .fa-check-circle { display: none; }
.post-86 .sns { display: none; }
.sns { display: none; }
.entry-title { display: none; }

/* ===== 特定ページでカテゴリバナー非表示 ===== */
.page-id-277 #st-header-cardlink-wrapper,
.page-id-3 #st-header-cardlink-wrapper,
.page-id-19 #st-header-cardlink-wrapper,
.page-id-338 #st-header-cardlink-wrapper,
.page-id-133 #st-header-cardlink-wrapper,
.page-id-484 #st-header-cardlink-wrapper,
.page-id-805 #st-header-cardlink-wrapper,
.page-id-804 #st-header-cardlink-wrapper,
.page-id-1260 #st-header-cardlink-wrapper {
  display: none;
}

/* ===== 体重管理プラグイン ===== */
/* Membership login FV */
body.page-id-5026 {
  overflow-x: hidden;
}

body.ibld-member-login-guest #st-menubox,
body.ibld-member-login-guest #s-navi,
body.ibld-member-login-guest #slide-menu-overlay,
body.ibld-member-login-guest #slide-menu {
  display: none !important;
}

.ibld-member-login-fv {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #55d0c6;
  overflow: hidden;
  line-height: 0;
}

.ibld-member-login-fv img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (min-width: 769px) {
  .ibld-member-login-fv {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(260px, 34vh, 340px);
  }

  .ibld-member-login-fv img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .page-id-5026 #content-w {
    padding-top: 20px;
  }

  body.page-id-5026 .page-title {
    margin-top: 1rem;
  }

  body.page-id-5026 .swpm-login-widget-form {
    margin: 1.25rem auto;
  }
}

.page-id-5026 .breadcrumb {
  display: none;
}

.page-id-5026 #content-w {
  padding-top: 48px;
  box-shadow: none;
}

.page-id-5026 .page-content {
  padding-top: 0;
}

/* Weight Tracker plugin */
.ws-ls-clear-target { display: none; }

/* ===== LINE用ページ ===== */
.related-video-list {
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 10px 0px 0px;
  outline: none;
  background-color: rgb(235, 247, 255);
  color: rgb(0, 0, 0);
  border-color: rgb(0, 0, 0);
  border-width: 1px;
  border-style: solid;
  border-radius: 12px;
}

.page-template-page02 header,
.page-template-page02 #st-header-cardlink-wrapper,
.page-template-page02 .entry-title,
.page-template-page02 footer {
  display: none;
}

/* ===== 関連記事の背景色修正 ===== */
.post h4:not(.st-css-no):not(.rankh4) .point-in,
.n-entry {
  background-color: inherit !important;
}

/* ===== ブログカード ===== */
@media all and (max-width: 900px) {
  .post-card-excerpt { display: none; }
}

.category-image { opacity: 1 !important; }

/* ===== スマホ時のヘッダー（480px以下はより小さく） ===== */
@media screen and (max-width: 480px) {
  /* 親の #st-headwide が fixed なので #headbox-bg はサイズのみ調整 */
  #headbox-bg {
    height: 56px;
    padding: 0 16px;
  }

  /* 非FVページのオフセットを56pxに上書き */
  body:not(.home) #wrapper-in {
    margin-top: 56px;
  }

  .lcl-catch {
    top: calc(50% + 28px); /* ヘッダー56px の半分 */
  }

  .acordion_tree {
    margin-top: 56px;
  }

  .bottom-menu-item {
    margin-bottom: 56px;
  }
}

/* ===== SP：サービスカード2カラム ===== */
@media screen and (max-width: 767px) {
  .category-lead .sp-br {
    display: block;
  }

  .category-lead .pc-inline {
    display: none;
  }

  .entry-content .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .entry-content .services-grid--workout {
    grid-template-columns: 1fr;
  }

  .entry-content .service {
    width: 100%;
    margin: 0;
  }
}

/* ===== レスポンシブ（スマホ768px以下） ===== */
@media screen and (max-width: 768px) {
  #s-navi {
    display: block;
  }

  #st-menubox {
    display: none;
  }

  #st-header-cardlink-wrapper {
    padding: 0 16px 16px;
  }

  body:not(.ibld-member-login-guest) #st-header-cardlink-wrapper {
    padding-top: 16px;
  }

  .header-cardlink {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .bottom-menu {
    display: block;
  }

  #content-w {
    padding: 20px 16px;
    box-shadow: none;
  }

  .page-id-5026 #content-w {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .post {
    padding: 16px;
  }

  #the-content {
    padding: 20px 16px;
  }

  .top-news {
    margin-top: 28px;
  }

  .top-news__head {
    padding: 14px 16px;
  }

  .top-news__link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }

  .top-news__item-title {
    white-space: normal;
  }

  /* ===== SP：記事一覧 カード型縦積み ===== */
  .cat-itiran .kanren {
    gap: 16px;
  }

  .cat-itiran article {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-bottom: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #fff;
  }

  /* サムネ：上に全幅 */
  .kanren-thumb {
    order: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  /* テキスト：サムネの下 */
  .kanren-text {
    order: 1;
    display: block;
    padding: 10px 12px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .kanren-text h3 {
    display: block;
    margin: 0;
    font-size: var(--fs-sm);
    line-height: 1.5;
  }

  .kanren-text h3 a {
    display: block;
  }

  .category-empty-state {
    padding: 28px 18px;
  }

  .category-empty-state__title {
    font-size: var(--fs-lg);
  }
}

@media screen and (max-width: 480px) {
  .header-cardlink {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 4px;
  }
}
