/* =========================================================
   Lirem SWELL Skin
   旧SWELLテーマで表示されるお知らせ記事の「見た目」だけを
   新Liremデザインに寄せる上書きCSS。
   記事の中身(HTML構造)は変更しない。停止で完全に元に戻る。
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Manrope:wght@600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');

:root {
  --c-primary: #4E94D6;
  --c-primary-dark: #2E6FB0;
  --c-accent: #FF8A00;
  --c-accent-2: #E63946;
  --c-ink: #0A1628;
  --c-text: #2A3548;
  --c-muted: #6B7689;
  --c-line: #E5E9F0;
  --c-bg-soft: #F6F9FC;
  --grad-brand: linear-gradient(90deg, #7C5CFF 0%, #4E94D6 55%, #3DD9C0 100%);
  --grad-fire: linear-gradient(135deg, #FFC83D 0%, #FF6B1A 55%, #E63946 100%);
  --grad-hero: radial-gradient(1000px 600px at 80% -10%, rgba(124,92,255,.18), transparent 60%),
               radial-gradient(900px 500px at -10% 30%, rgba(78,148,214,.20), transparent 60%),
               radial-gradient(700px 400px at 50% 100%, rgba(255,138,0,.10), transparent 60%);
  --font-jp: 'Noto Sans JP', -apple-system, 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

/* ===== ベース ===== */
body {
  font-family: var(--font-jp) !important;
  color: var(--c-text);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

/* ===== ヘッダー ：新デザインの白い半透明バー風に ===== */
#header.l-header,
.l-header {
  background: rgba(255,255,255,.85) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: none !important;
}
.l-header__inner { padding-top: 10px; padding-bottom: 10px; }

/* ロゴ差し替え：SWELLの旧ロゴ画像を隠し、新Liremロゴを背景で表示
   （新ロゴは有効テーマlirem側に存在。比率 490x160 = 約3.06:1）
   プラグイン停止で元のSWELLロゴに戻る。 */
.c-headLogo__img { display: none !important; }
.c-headLogo__link {
  display: inline-block !important;
  width: 124px; height: 40px;
  background-image: url('/wp-content/themes/lirem/assets/images/lirem-logo-header.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
@media (max-width: 768px) {
  .c-headLogo__link { width: 95px; height: 31px; }
}

/* グローバルナビ：色・太さ・下線アニメを新デザインに */
.c-gnav__item > a,
.c-gnav .menu-item > a {
  font-family: var(--font-jp) !important;
  font-weight: 600 !important;
  color: var(--c-ink) !important;
  letter-spacing: .01em;
}
.c-gnav__item > a:hover,
.c-gnav .menu-item > a:hover { color: var(--c-primary) !important; }

/* ナビのホバー下線をブランドグラデに */
.c-gnav__item { position: relative; }
.c-gnav__item > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px;
  height: 2px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.c-gnav__item:hover > a::after,
.c-gnav__item.current-menu-item > a::after,
.c-gnav__item.current-post-parent > a::after { transform: scaleX(1); }

/* ===== 記事タイトル帯 =====
   SWELLには2タイプある：
   (A) アイキャッチ無し = .p-articleHead.c-postTitle（明るい背景・濃色文字）
   (B) アイキャッチ有りヒーロー = .l-topTitleArea（画像＋フィルター・白文字）
   それぞれ別に扱う（白文字を濃色で潰さないことが重要） */

/* 見出しの字組み（色は各タイプで指定） */
.l-topTitleArea__title,
.c-postTitle__ttl {
  font-family: var(--font-jp) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
  line-height: 1.3 !important;
}

/* タイトル枠(.p-articleHead.c-postTitle)は常にヒーロー(.l-topTitleArea)の
   内側にある。ここに背景を付けると文字の後ろに白い帯が出るので付けない。 */
.p-articleHead.c-postTitle {
  background: transparent !important;
  border: 0 !important;
}

/* アイキャッチ有りヒーロー：白文字は維持し、青ベタのフィルターをブランドグラデに差し替え */
.l-topTitleArea { background: var(--c-ink); } /* 画像が無い場合の保険（白文字が読めるよう暗色） */
.l-topTitleArea.c-filterLayer::before {
  background: linear-gradient(115deg, rgba(124,92,255,.78) 0%, rgba(78,148,214,.62) 55%, rgba(61,217,192,.5) 100%) !important;
  opacity: 1 !important;
}
.l-topTitleArea .c-postTitle__ttl,
.l-topTitleArea .c-postTitle__date,
.l-topTitleArea .c-categoryList,
.l-topTitleArea .c-categoryList__link { color: #fff !important; }
.l-topTitleArea .c-categoryList__link {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.6) !important;
}

/* カテゴリ・日付ラベル（ヒーロー以外の通常表示） */
.c-categoryList__link {
  background: var(--c-bg-soft) !important;
  color: var(--c-primary-dark) !important;
  border-radius: 999px;
}
.p-articleMetas .c-postTimes { font-weight: 600; color: var(--c-muted); }

/* ===== 本文タイポグラフィ ===== */
.post_content {
  font-family: var(--font-jp) !important;
  font-size: 16px;
  line-height: 1.95;
  color: var(--c-text);
}
.post_content h2 {
  font-weight: 800 !important;
  color: var(--c-ink) !important;
  letter-spacing: -.01em;
  line-height: 1.4;
  border: 0;
  padding: 0 0 .4em;
  margin: 2.4em 0 1em;
  position: relative;
}
.post_content h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 999px;
  background: var(--grad-fire);
}
.post_content h3 {
  font-weight: 700 !important;
  color: var(--c-ink) !important;
  border-left: 4px solid var(--c-primary);
  padding-left: .7em;
  margin: 2em 0 .8em;
  line-height: 1.5;
}
.post_content h4 { font-weight: 700 !important; color: var(--c-ink-2, #1A2940) !important; }
.post_content a {
  color: var(--c-primary-dark) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post_content a:hover { color: var(--c-accent) !important; }
.post_content blockquote {
  border-left: 4px solid var(--c-primary);
  background: var(--c-bg-soft);
  border-radius: 0 8px 8px 0;
  color: var(--c-text);
}
.post_content img { border-radius: 12px; }
.post_content figure img { border-radius: 12px; }

/* ===== 記事内ボタン(SWELLブロック)を新デザインのピル/グラデに ===== */
.post_content .wp-block-button__link,
.post_content .swell-block-button__link,
.post_content .swell-block-button a {
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-family: var(--font-jp) !important;
  box-shadow: 0 8px 20px rgba(78,148,214,.30);
  transition: transform .25s, box-shadow .25s;
}
/* 塗りボタンはブランドグラデに（SWELLの normal / solid / shiny を対象） */
.post_content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.post_content .swell-block-button.is-style-btn_normal a,
.post_content .swell-block-button.is-style-btn_solid a,
.post_content .swell-block-button.is-style-btn_shiny a {
  background: var(--grad-brand) !important;
  color: #fff !important;
  border: 0 !important;
}
.post_content .wp-block-button__link:hover,
.post_content .swell-block-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(78,148,214,.42);
}

/* SWELLの囲み枠・キャプションボックスの角丸/色味を少しだけ寄せる */
.post_content .cap_box,
.post_content .swell-block-capbox,
.post_content .is-style-boxed,
.post_content .wp-block-group.has-background {
  border-radius: 14px !important;
}

/* ===== フッター：新デザインの濃紺基調に寄せる ===== */
.l-footer {
  background: var(--c-ink) !important;
  color: rgba(255,255,255,.72);
}
.l-footer a { color: rgba(255,255,255,.85) !important; }
.l-footer a:hover { color: #fff !important; }
.l-footer .copyright { color: rgba(255,255,255,.5); }

/* ===== パンくず・関連の細部 ===== */
.c-breadcrumb a { color: var(--c-muted) !important; }
.c-breadcrumb a:hover { color: var(--c-primary) !important; }

/* ===== レスポンシブ微調整 ===== */
@media (max-width: 768px) {
  .c-headLogo__img { height: 30px !important; }
  .post_content { font-size: 15.5px; }
}
