/*
Theme Name: かえる恋愛サポート限定ブログ (kaeru-renai)
Theme URI: https://kaeru-renai.ukeru-llc.com/blog/
Description: かえる恋愛サポートLPの世界観をまとったSWELL子テーマ。骨格はかえる公式ブログ、肌はLP（緑#008f6d・gradB・W9）。
Author: UKERU合同会社
Template: swell
Version: 1.0.0
*/

/* ===== LPから抽出したデザイントークン（かえるブログのティール#0097b1系は不使用） ===== */
:root {
  --green: #008f6d;
  --gradB: linear-gradient(120deg, #4395AD 0%, #63B687 50%, #92D669 100%);
  --gradA: linear-gradient(120deg, #58BDDA 0%, #97CC9F 52%, #F9DF70 100%);
  --grad-progress: linear-gradient(90deg, #3FB884 0%, #92D669 38%, #FFD84D 72%, #FFD84D 100%);
  --bg-light: #f0faf6;
  --bg-soft: linear-gradient(160deg, #eafaf3 0%, #d9f3e6 60%, #f4fbe8 100%);
  --ink: #111; --ink-green: #143c30; --sub: #667;
  --line: rgba(0,143,109,.14); --rule: rgba(0,143,109,.1);
  --f-go: "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-min: "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sh-card: 0 6px 20px rgba(20,70,52,.06);
  --sh-btn: 0 6px 22px rgba(70,150,110,.32);
}

/* SWELLのブランドカラーをLPの緑へ上書き */
:root {
  --color_main: #008f6d;
  --color_link: #008f6d;
}

body { font-family: var(--f-go); font-weight: 600; color: var(--ink); line-height: 1.9; background: #fff; }
.w9, h1, h2, h3 { font-weight: 900; font-feature-settings: "palt"; letter-spacing: .01em; }

/* ===== 共通パーツ ===== */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 38px; border-radius: 999px;
  background: var(--gradB); color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: var(--sh-btn); transition: .25s ease; position: relative; text-decoration: none;
}
.pill:hover { background: #fff; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.tag-free {
  position: absolute; top: -9px; left: -6px; z-index: 6;
  background: #fff; border: 1.5px solid var(--green); border-radius: 5px;
  padding: 1px 5px; font-weight: 900; font-size: 9px; color: var(--green);
}
.grad-text { background: var(--gradB); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 読了プログレスバー（LPの世界観を上辺に） */
.kr-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 9999; background: var(--grad-progress); transition: width .1s linear; }

/* ===== ヘッダー（形=かえるブログ / 肌=LP。虹線をやめLPの細い緑線1本） ===== */
.l-header, #header { border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
.c-headTitle, .site-title a { background: var(--gradB); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 900; }
.p-gnav__item > a:hover { color: var(--green) !important; }
.l-header .pill { min-height: 40px; padding: 0 20px; font-size: 13px; }

/* ===== 記事本文（.post_content 配下にLPの肌を適用） ===== */
.post_content h2 {
  position: relative;
  /* 記事の左右パディングを打ち消して画面端まで届く緑帯にする */
  margin: 96px calc(50% - 50vw) 40px; padding: 22px calc(50vw - 50% + 4px);
  width: 100vw; max-width: 100vw;
  background: linear-gradient(135deg, #008f6d 0%, #00a87c 100%);
  border: none; border-radius: 0;
  font-size: clamp(20px, 4.6vw, 26px); line-height: 1.55; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 143, 109, .18);
}
.post_content h2::before { content: none; }
.post_content h3 { font-size: 18px; color: var(--ink); margin: 60px 0 24px; padding-left: 0; border: none; }
.post_content p { margin-bottom: 2.1em; line-height: 2.05; }
.post_content a { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.post_content ul li {
  position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--rule); list-style: none;
}
.post_content ul { list-style: none; padding-left: 0; }
.post_content ul li::before {
  content: ""; position: absolute; left: 2px; top: 1.1em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--gradB);
}
.post_content blockquote {
  font-family: var(--f-min); font-weight: 400;
  background: var(--bg-light); border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0; padding: 18px 22px;
}

/* ===== 緑まとめボックス・CTA箱（投稿HTML側の型に合わせる） ===== */
.simple-box p { margin-bottom: 0 !important; }
.cta-lp { box-shadow: var(--sh-card); }
.cta-lp .pill, .next-step a { text-decoration: none; }
.next-step a { color: var(--green); font-weight: 800; }

/* ===== 目次（LPのbig-box肌） ===== */
.post_content .toc, .swell-toc {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-card);
}

/* ===== フッター footcta / copybar ===== */
.kr-footcta { background: var(--gradB); padding: 48px 20px; }
.kr-footcta .card { background: #fff; border-radius: 18px; }
.p-copyright, .c-copyright { background: #08483b; color: #cfe8df; }

/* ===== SWELLのデモ用メインビジュアルを一覧/トップで非表示（本物のヒーローは別途） ===== */
.p-mainVisual { display: none !important; }

/* サイトタイトルをLPのgradBグラデ文字に（SWELLの実クラスに対応。c-headLogo__linkが実クラス） ===== */
.c-siteTitle a, .l-header .site-name a, .p-header__title a, .c-headLogo__link {
  background: var(--gradB); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; font-weight: 900;
}
/* カテゴリータグの色をLPの緑グラデへ（SWELL既定の紺を上書き） */
.c-postThumb__cat, .cat-label, .p-postList__cat, .post-cat { background: var(--gradB) !important; }

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  .post_content h2 { margin: 80px calc(50% - 50vw) 34px; }
}

/* ============================================================
   B2: ブログトップ＋共通パーツ（形=モック / 肌=LP）ここから
   ============================================================ */

/* ---- 共通: eyebrow（LPのセクション標識） ---- */
.kr-eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.kr-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--gradB); flex: 0 0 22px; }
.kr-eyebrow .jp { color: var(--green); font-weight: 600; font-size: 13.5px; letter-spacing: .14em; line-height: 1.7; }

/* ---- 共通: ゴーストボタン（白地・緑文字。hoverでgradB反転＝LPのpillと逆相） ---- */
.kr-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 24px; border-radius: 999px;
  background: #fff; color: var(--green); font-weight: 900; font-size: 14px;
  box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-card);
  text-decoration: none; transition: .25s ease;
}
.kr-ghost:hover { background: var(--gradB); color: #fff; box-shadow: var(--sh-btn); }

/* ---- ヒーロー帯（モックのハート柄写真帯は不採用。LPの--bg-soft） ---- */
.kr-hero { background: var(--bg-soft); padding: 56px 20px 48px; text-align: center; }
.kr-hero .kr-eyebrow { justify-content: center; }
.kr-hero h1 { font-size: clamp(26px, 5.4vw, 40px); color: var(--ink-green); line-height: 1.35; margin: 0 0 10px; }
.kr-hero .sub { font-size: clamp(13px, 3.4vw, 15px); font-weight: 600; color: var(--sub); margin: 0; }
.kr-hero br.sp { display: none; }
@media (max-width: 600px) { .kr-hero br.sp { display: block; } }

/* ---- 2カラムレイアウト（PC: 本文可変＋サイド260px固定 / 900px以下で縦積み） ---- */
.kr-wrap { max-width: 1110px; margin: 0 auto; padding: 44px 20px 90px; display: flex; justify-content: space-between; gap: 50px; }
.kr-main { flex: 1 1 auto; min-width: 0; }
.kr-wrap .l-sidebar, .kr-wrap .kr-side { flex: 0 0 260px; width: 260px; margin: 0; padding: 0; }
@media (max-width: 900px) {
  .kr-wrap { display: block; }
  .kr-wrap .l-sidebar, .kr-wrap .kr-side { width: 100%; margin-top: 72px; }
}

/* ---- 記事カード共通 ---- */
.kr-card a { display: block; color: inherit; text-decoration: none; }
.kr-card .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--bg-soft); margin-bottom: 12px; }
.kr-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.kr-card a:hover .thumb img { transform: scale(1.06); }
.kr-card .thumb .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.kr-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.kr-card .date { font-size: 12px; color: var(--sub); font-weight: 600; }
.kr-card .cat { font-size: 11px; line-height: 1; padding: 5px 12px; border-radius: 999px; background: var(--gradB); color: #fff; font-weight: 900; }
.kr-card .title { font-size: 16px; line-height: 1.6; font-weight: 900; color: var(--ink-green); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s; margin: 0; }
.kr-card a:hover .title { color: var(--green); }

/* ---- ページネーション（円形42px。the_posts_paginationの出力に適用） ---- */
.kr-main .navigation.pagination { margin-top: 54px; border: none; }
.kr-main .nav-links { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.kr-main .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); background: #fff;
  border-radius: 50%; font-size: 13px; font-weight: 900; color: var(--ink-green); text-decoration: none;
}
.kr-main .page-numbers.current { background: var(--gradB); color: #fff; border: none; box-shadow: var(--sh-btn); }
.kr-main a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.kr-main .page-numbers.dots { border: none; background: transparent; }

/* ---- プロフィール箱（上辺6px gradBバー・丸アバター・bio・一言・ボタン） ---- */
.kr-profile { max-width: 820px; margin: 72px auto 0; }
.kr-profile .box { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 38px 34px 32px; box-shadow: var(--sh-card); overflow: hidden; }
.kr-profile .box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--gradB); }
.kr-profile .head { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.kr-profile .avatar { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: var(--gradB); box-shadow: var(--sh-btn); }
.kr-profile .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.kr-profile .label { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .14em; background: var(--gradB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kr-profile .pname { font-size: 23px; font-weight: 900; color: var(--ink); margin: 2px 0; }
.kr-profile .role { font-size: 13px; color: var(--sub); font-weight: 600; margin: 0; }
.kr-profile .bio p { margin: 0 0 10px; font-size: 14px; line-height: 1.95; }
.kr-profile .hitokoto { font-family: var(--f-min); font-weight: 400; background: var(--bg-light); border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 16px 0 0; font-size: 14px; line-height: 1.9; }
.kr-profile .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.kr-profile .links .pill { min-height: 46px; padding: 11px 26px; font-size: 14px; text-decoration: none; }
@media (max-width: 600px) {
  .kr-profile .box { padding: 32px 20px 26px; }
  .kr-profile .head { flex-direction: column; text-align: center; }
  .kr-profile .links { justify-content: center; }
}

/* ---- サイドバー: ウィジェット共通（SWELLのc-widget__title・クラシックwidget両対応） ---- */
.kr-wrap .l-sidebar .widget, .kr-wrap .kr-side .widget { margin-bottom: 52px; }
.kr-wrap .l-sidebar .c-widget__title, .kr-wrap .l-sidebar .widgettitle,
.kr-wrap .kr-side .c-widget__title, .kr-wrap .kr-side .widgettitle {
  position: relative; padding: 0 0 0 18px; margin: 0 0 16px;
  font-size: 17px; font-weight: 900; color: var(--ink); line-height: 1.5;
  background: none; border: none;
}
.kr-wrap .l-sidebar .c-widget__title::before, .kr-wrap .l-sidebar .widgettitle::before,
.kr-wrap .kr-side .c-widget__title::before, .kr-wrap .kr-side .widgettitle::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; margin: auto;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gradB);
}

/* ---- サイドバー: 検索（丸枠。SWELL検索・標準検索両対応） ---- */
.kr-wrap .widget_search form, .kr-wrap .wp-block-search__inside-wrapper, .kr-wrap .c-searchForm {
  display: flex; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 18px;
  box-shadow: var(--sh-card);
}
.kr-wrap .widget_search input[type="search"], .kr-wrap .wp-block-search__input, .kr-wrap .c-searchForm__input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.kr-wrap .widget_search button, .kr-wrap .widget_search input[type="submit"],
.kr-wrap .wp-block-search__button, .kr-wrap .c-searchForm__submit {
  flex: 0 0 auto; border: none; cursor: pointer; border-radius: 999px;
  background: var(--gradB); color: #fff; font-size: 13px; font-weight: 900; padding: 8px 14px;
}

/* ---- サイドバー: カテゴリー（白pill・hoverでgradB反転） ---- */
.kr-wrap .widget_categories ul, .kr-wrap .wp-block-categories { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kr-wrap .widget_categories li, .kr-wrap .wp-block-categories li { margin: 0; padding: 0; border: none; }
.kr-wrap .widget_categories li a, .kr-wrap .wp-block-categories li a {
  display: inline-block; padding: 7px 15px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 900; color: var(--ink-green); text-decoration: none; transition: .2s;
}
.kr-wrap .widget_categories li a:hover, .kr-wrap .wp-block-categories li a:hover { background: var(--gradB); border-color: transparent; color: #fff; }

/* ---- サイドバー: 人気記事（SWELL人気記事ウィジェット。番号バッジ=モックの形をgradBで） ---- */
.kr-wrap .l-sidebar .p-postList, .kr-wrap .kr-side .p-postList { display: block; }
.kr-wrap .l-sidebar .p-postList__item, .kr-wrap .kr-side .p-postList__item { margin: 0 0 22px; padding: 0; border: none; }
.kr-wrap .l-sidebar .p-postList__thumb, .kr-wrap .l-sidebar .c-postThumb { border-radius: 12px; overflow: hidden; }
.kr-wrap .l-sidebar .p-postList__title { font-size: 13px; line-height: 1.6; font-weight: 900; color: var(--ink-green); }
.kr-wrap .l-sidebar .p-postList__link:hover .p-postList__title { color: var(--green); }
.kr-wrap .l-sidebar .p-postList__times, .kr-wrap .l-sidebar .p-postList__date { color: var(--sub); font-size: 11px; }
/* ランキング番号（実クラスはDevToolsで1回確認。候補を全部並べてある） */
.kr-wrap .l-sidebar .p-postList__rank, .kr-wrap .l-sidebar .c-postThumb__num, .kr-wrap .l-sidebar .__num, .kr-wrap .l-sidebar .-rank {
  position: absolute; z-index: 2; top: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: var(--gradB); color: #fff;
  font-size: 15px; font-weight: 900; border-radius: 10px 0 12px 0;
}
.kr-wrap .l-sidebar .p-postList__item:nth-child(1) .p-postList__rank,
.kr-wrap .l-sidebar .p-postList__item:nth-child(1) .c-postThumb__num { background: linear-gradient(135deg, #ffd34d, #e0a800); }
.kr-wrap .l-sidebar .p-postList__item:nth-child(2) .p-postList__rank,
.kr-wrap .l-sidebar .p-postList__item:nth-child(2) .c-postThumb__num { background: linear-gradient(135deg, #c3c8ce, #9aa0a6); }
.kr-wrap .l-sidebar .p-postList__item:nth-child(3) .p-postList__rank,
.kr-wrap .l-sidebar .p-postList__item:nth-child(3) .c-postThumb__num { background: linear-gradient(135deg, #d59a63, #b07a43); }

/* ---- サイドバー: ミニ面談CTA（カスタムHTMLウィジェット） ---- */
.kr-minicta { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; text-align: center; box-shadow: var(--sh-card); }
.kr-minicta .lead { font-size: 13px; font-weight: 800; color: var(--ink-green); line-height: 1.8; margin: 0 0 14px; }
.kr-minicta .pill { min-height: 44px; padding: 10px 20px; font-size: 13px; text-decoration: none; }

/* ---- footcta（gradB全幅帯＋白カード3枚＋チャンネルバー。フッターウィジェットに設置） ---- */
/* 全幅化は100vwを使わずmarginで出す（横スクロールバグ回避の確定知見） */
.kr-footcta { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: var(--gradB); padding: 64px 24px 46px; }
.kr-footcta .cta-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kr-footcta .cta-box {
  min-width: 0; background: #fff; border-radius: 18px; padding: 34px 28px 30px;
  text-align: center; box-shadow: 0 12px 30px rgba(0, 35, 26, .18);
  display: flex; flex-direction: column; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.kr-footcta .cta-box:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0, 35, 26, .24); }
.kr-footcta .cta-box .en { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: .03em; background: var(--gradB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kr-footcta .cta-box .ja { font-size: 14px; font-weight: 900; color: var(--ink); margin-top: 6px; }
.kr-footcta .cta-box .desc { font-size: 13px; font-weight: 600; color: var(--sub); line-height: 1.85; margin: 12px 0 20px; flex-grow: 1; }
.kr-footcta .cta-box .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; background: var(--gradB); color: #fff;
  font-size: 14px; font-weight: 900; box-shadow: var(--sh-btn); transition: .25s;
}
.kr-footcta .cta-box:hover .btn { background: #fff; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.kr-footcta .channels { max-width: 720px; margin: 32px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.kr-footcta .channels a {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 22px; border-radius: 999px; background: var(--bg-light);
  color: var(--ink-green); font-size: 13.5px; font-weight: 900; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 35, 26, .14); transition: transform .2s;
}
.kr-footcta .channels a:hover { transform: translateY(-2px); }
.kr-footcta .channels .ch-center { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
.kr-footcta .channels .ico { width: 26px; height: 26px; flex: 0 0 26px; display: flex; align-items: center; justify-content: center; }
.kr-footcta .channels .ico svg { width: 24px; height: 24px; display: block; }
.kr-footcta .legal { text-align: center; margin-top: 30px; }
.kr-footcta .legal a { color: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; margin: 0 12px; text-decoration: none; }
.kr-footcta .legal a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .kr-footcta .cta-grid { grid-template-columns: 1fr; }
  .kr-footcta .channels { grid-template-columns: 1fr; max-width: 460px; }
  .kr-footcta .channels .ch-center { width: 100%; }
}
/* フッターウィジェットエリアの余白と背景を消してfootctaを密着させる
   （クラスが違う場合はDevToolsで実クラスに差し替え） */
.l-footer { background: #fff; }
.l-footer__widgetArea { padding: 0; }
.l-footer__widgetArea .l-container, .l-footer__widgetArea .w-footer { max-width: none; padding: 0; margin: 0; }
.l-footer .widget { margin: 0; }

/* ---- copybar（濃緑。SWELLコピーライトの実クラス候補を併記） ---- */
.p-copyright, .c-copyright, .l-footer__copyright, .l-footer .copyright {
  background: #08483b !important; color: rgba(255, 255, 255, .9) !important;
  text-align: center; padding: 20px; font-size: 11.5px; font-weight: 800; margin: 0;
}

/* ---- ヘッダー: ナビ最後の「無料面談」をpill化（メニュー項目のCSSクラスkr-navbtn） ---- */
.kr-navbtn > a {
  display: inline-flex !important; align-items: center; min-height: 38px;
  padding: 0 20px !important; border-radius: 999px;
  background: var(--gradB); color: #fff !important;
  font-weight: 900; font-size: 13px; box-shadow: var(--sh-btn); transition: .25s;
}
.kr-navbtn > a:hover { background: #fff; color: var(--green) !important; box-shadow: inset 0 0 0 2px var(--green); }
/* ロゴ左にfrogアイコン（セレクタはDevToolsで確認。候補2つ） */
.c-headLogo__link::before, .l-header__logo a::before {
  content: ""; display: inline-block; width: 36px; height: 36px;
  margin-right: 10px; vertical-align: middle;
  background: url(https://kaeru-renai.ukeru-llc.com/frog_icon.png) center / contain no-repeat;
}

/* ---- アーカイブ・検索結果ページ（SWELL標準リストの肌だけ緑化） ---- */
.p-postList__title { color: var(--ink-green); font-weight: 900; }
.p-postList__link:hover .p-postList__title { color: var(--green); }
.p-postList__times, .p-postList__date { color: var(--sub); }
.c-pagination .page-numbers {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-weight: 900; color: var(--ink-green);
}
.c-pagination .current { background: var(--gradB); color: #fff; border: none; box-shadow: var(--sh-btn); }

/* ---- SWELL標準の「新着記事スライダー」（p-postSlider）はB2の構成に無いため非表示
   （ヒーロー帯の前に出てモックに無いカルーセルが挟まる問題の修正。カスタマイザーの
   「トップページ→新着記事スライダー」設定と二重になってもよい保険） ---- */
.p-postSlider { display: none !important; }

/* ============================================================
   B2 ここまで
   ============================================================ */

/* ============================================================
   B3: 見やすさリファイン（Pick Up廃止・一覧1カラム大カード）ここから
   ============================================================ */

/* ---- 余白: セクション間をゆったり（ヒーロー・本文枠） ---- */
.kr-hero { padding: 68px 24px 60px; }
.kr-hero h1 { margin: 0 0 14px; line-height: 1.42; }
.kr-hero .sub { line-height: 2; }
.kr-wrap { padding: 56px 24px 64px; gap: 60px; }

/* ---- 一覧見出し: 小さな静かなラベル（読む順の起点） ---- */
.kr-listhead {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 32px; padding: 0; background: none; border: none;
  font-size: 15px; font-weight: 900; color: var(--ink-green); letter-spacing: .1em; line-height: 1.5;
}
.kr-listhead::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--gradB); flex: 0 0 22px; }

/* ---- 記事一覧: 1カラム縦積み ---- */
.kr-list ul { list-style: none; margin: 0; padding: 0; display: block; }
.kr-list li.kr-card { width: 100%; margin: 0 0 24px; }
.kr-list li.kr-card:last-child { margin-bottom: 0; }

/* ---- カード: PC=横型白カード（サムネ左260px・タイトル右18px） ---- */
.kr-card a {
  display: flex; align-items: center; gap: 28px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--sh-card);
  transition: box-shadow .25s ease, transform .25s ease;
}
.kr-card a:hover { box-shadow: 0 12px 28px rgba(20, 70, 52, .13); transform: translateY(-2px); }
.kr-card a:hover .thumb img { transform: scale(1.03); }
.kr-card .thumb { flex: 0 0 260px; width: 260px; margin: 0; border-radius: 14px; }
.kr-card .body { flex: 1 1 auto; min-width: 0; }
.kr-card .title { font-size: 18px; line-height: 1.7; }
.kr-card .meta { margin: 12px 0 0; gap: 8px; }
.kr-card .cat { background: #fff; border: 1px solid var(--line); color: var(--green); font-weight: 800; padding: 4px 12px; }
.kr-card .date { font-weight: 500; }

/* ---- スマホ: 縦型・箱なし・余白で区切る（390px最優先） ---- */
@media (max-width: 700px) {
  .kr-hero { padding: 52px 20px 46px; }
  .kr-wrap { padding: 44px 20px 56px; }
  .kr-listhead { margin-bottom: 28px; }
  .kr-list li.kr-card { margin: 0 0 44px; }
  .kr-card a { display: block; padding: 0; background: transparent; border: none; box-shadow: none; border-radius: 0; }
  .kr-card a:hover { transform: none; box-shadow: none; }
  .kr-card .thumb { width: 100%; flex: none; margin: 0 0 14px; border-radius: 16px; }
  .kr-card .title { font-size: 17px; line-height: 1.6; }
  .kr-card .meta { margin-top: 10px; }
}

/* ---- ページネーション・プロフィールの余白を広げる ---- */
.kr-main .navigation.pagination { margin-top: 64px; }
.kr-profile { margin-top: 96px; }
@media (max-width: 700px) { .kr-profile { margin-top: 72px; } }

/* ---- 記事末尾の著者ボックス（single専用。LPの肌=淡緑地+緑の細線） ---- */
.kr-author {
  display: flex; align-items: center; gap: 18px;
  margin: 56px 0 0; padding: 20px 22px;
  background: var(--bg-light); border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
}
.kr-author .face { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; padding: 2px; box-shadow: 0 0 0 2px var(--line); }
.kr-author .txt { min-width: 0; }
.kr-author .label { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .12em; color: var(--green); }
.kr-author .name { font-size: 16px; font-weight: 900; color: var(--ink); margin: 2px 0 0 !important; line-height: 1.5; }
.kr-author .role, .kr-author .fact { font-size: 12px; font-weight: 600; color: var(--sub); margin: 2px 0 0 !important; line-height: 1.7; }
@media (max-width: 600px) { .kr-author { padding: 18px 16px; gap: 14px; } .kr-author .face { flex-basis: 56px; width: 56px; height: 56px; } }

/* ---- ヘッダーロゴ: 1行固定（「限定ブログ」5文字＋frogアイコン。390pxでも折れない） ---- */
.c-siteTitle a, .l-header .site-name a, .p-header__title a, .c-headLogo__link {
  white-space: nowrap; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.2;
}

/* ============================================================
   B3 ここまで
   ============================================================ */

/* ============================================================
   B4: トップ=カテゴリー入口一覧 / ヒーロー2ボタン廃止 / 下余白調整 ここから
   ============================================================ */

/* ---- カテゴリー入口カード（記事カードの肌=白地・角丸・gradB系を踏襲。サムネなし1行型） ---- */
.kr-catlist ul { list-style: none; margin: 0; padding: 0; }
.kr-catlist li.kr-catcard { margin: 0 0 16px; }
.kr-catlist li.kr-catcard:last-child { margin-bottom: 0; }
.kr-catcard a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--sh-card); text-decoration: none; color: inherit;
  transition: box-shadow .25s ease, transform .25s ease;
}
.kr-catcard a:hover { box-shadow: 0 12px 28px rgba(20, 70, 52, .13); transform: translateY(-2px); }
.kr-catcard .main { min-width: 0; flex: 1 1 auto; }
.kr-catcard .name { display: block; font-size: 17px; font-weight: 900; color: var(--ink-green); line-height: 1.5; }
.kr-catcard .desc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--sub); line-height: 1.7; }
.kr-catcard .count { flex: 0 0 auto; font-size: 11px; font-weight: 900; color: var(--green); background: var(--bg-light); border-radius: 999px; padding: 2px 10px; }
.kr-catcard .arrow { flex: 0 0 auto; font-size: 20px; font-weight: 900; color: var(--green); transition: transform .25s ease; }
.kr-catcard a:hover .arrow { transform: translateX(4px); }
/* 先頭(受講生の実例)だけ左に太いgradBの帯を足して起点を示す */
.kr-catlist li.kr-catcard:first-child a { padding-left: 32px; }
.kr-catlist li.kr-catcard:first-child a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  border-radius: 20px 0 0 20px; background: var(--gradB);
}
@media (max-width: 700px) {
  .kr-catcard a { padding: 18px 18px; border-radius: 16px; gap: 14px; }
  .kr-catlist li.kr-catcard:first-child a { padding-left: 22px; }
  .kr-catcard .name { font-size: 15.5px; }
  .kr-catcard .desc { font-size: 12px; }
  .kr-catcard .arrow { font-size: 17px; }
}

/* ============================================================
   B4 ここまで
   ============================================================ */

/* ============================================================
   記事下の重複・不要UIを整理（2026-07-17）
   ・「この記事を書いた人」= SWELL標準の著者ボックス。上のkr-author箱と二重になるため非表示
   ・シェアボタン = SEO集客ブログでは押されず、面談CTAへの集中を削ぐため非表示
   ・関連記事(.-related)とkr-author箱は残す
   ============================================================ */
.l-articleBottom__section.-author { display: none !important; }
.c-shareBtns { display: none !important; }

/* ============================================================
   限定ブログ トップページ 下部の整理（2026-07-17）
   ・プロフィール箱の面談ボタンはfront-page.phpから削除済み
   ・面談CTAウィジェット(.kr-minicta)はトップだけ非表示にして「検索」を最後に。
     .kr-wrap はfront-page.php専用なので記事ページのサイドバーCTAは残る
   ・検索とフッターの間に余白を確保
   ============================================================ */
.kr-wrap .kr-minicta { display: none !important; }
.kr-wrap .l-sidebar { margin-bottom: 3.5em; }


/* ===== タッチ端末の「1回目のタップで遷移しない」対策（2026-07-17） =====
   :hover が指のタップで先に発火して1回目が吸われるため、hover効果はマウス環境だけに限定する */
@media (hover: none) {
  .kr-catcard a:hover { box-shadow: none; transform: none; }
  .kr-catcard a:hover .arrow { transform: none; }
  .kr-card a:hover .thumb img { transform: none; }
  .kr-card a:hover .title { color: inherit; }
  .kr-footcta .cta-box:hover { transform: none; box-shadow: 0 12px 28px rgba(0,35,26,.18); }
  .kr-footcta .channels a:hover { transform: none; }
  .pill:hover { background: var(--gradB); color: #fff; box-shadow: var(--sh-btn); }
}
/* タップの取りこぼし防止 */
.kr-catcard a, .kr-card a, .kr-footcta .cta-box { -webkit-tap-highlight-color: rgba(0,143,109,.12); touch-action: manipulation; }
