/* ============================================================
   ココロシルベ（kokoro-shirube.com） 子テーマ デザイン
   002.pngから切り出した実画像パーツ（docs/@kokoro-shirube.com/wp_parts_002/）を
   そのまま使う構成。文字が焼き込まれた画像はレイアウト枠だけをCSSで用意する。
   ============================================================ */
:root{
  --kks-ink:#3d3157;
  --kks-sub:#6b5b86;
  --kks-bg:#fdfbff;
  --kks-pink:#f3a6c0;
  --kks-pink-deep:#d9508c;
  --kks-lavender:#b9a3ec;
  --kks-blue:#a7c6ef;
  --kks-gold:#c79b3e;
  --kks-line:#ece3f5;
  --kks-card:#ffffff;
  --kks-radius:16px;
}

body.kks-theme{ background:var(--kks-bg); color:var(--kks-ink); }
body.kks-theme a{ text-decoration:none; color:inherit; }
body.kks-theme ul{ list-style:none; margin:0; padding:0; }
body.kks-theme img{ max-width:100%; display:block; }
body.kks-theme .kks-inner{ max-width:1180px; margin:0 auto; padding:0 20px; }
body.kks-theme .kks-icon{ display:inline-flex; width:1em; height:1em; }
body.kks-theme .kks-icon svg{ width:100%; height:100%; }

/* -------------------- ヘッダー -------------------- */
/* 002.png実物(01_header_logo_nav.png)通り、継ぎ目なしの1ブロックにロゴ・メインナビ・
   サイト情報リンク・検索をまとめる（ナビだけを別バーに分離しない）。 */
.kks-header{ background:#fbf6fc url('img/header-bg.jpg?v=1') center/cover no-repeat; position:relative; z-index:40; }
.kks-header__inner{ max-width:none; margin:0; padding:6px 4% 6px 5%; display:flex; align-items:center; gap:36px; }
.kks-logo{ display:flex; align-items:center; flex:none; }
.kks-logo__img{ height:96px; width:auto; display:block; }
.kks-logo__img--footer{ height:64px; }

.kks-header__right{ flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
.kks-header__utility-row{ display:flex; align-items:center; justify-content:flex-end; gap:20px; }

.kks-utility{ display:flex; gap:18px; font-size:12.5px; color:var(--kks-sub); }
.kks-utility a:hover{ color:var(--kks-pink-deep); }
.kks-search{ display:flex; align-items:center; background:#fff; border:1px solid var(--kks-line); border-radius:20px; padding:5px 5px 5px 16px; min-width:220px; }
.kks-search input{ border:none; outline:none; flex:1; font-size:12.5px; background:transparent; }
.kks-search button{ background:var(--kks-lavender); color:#fff; border:none; border-radius:50%; width:27px; height:27px; display:flex; align-items:center; justify-content:center; cursor:pointer; flex:none; }
.kks-search button .kks-icon{ width:14px; height:14px; }

.kks-nav-toggle-input{ display:none; }
.kks-nav-toggle{ display:none; flex-direction:column; gap:5px; width:26px; cursor:pointer; flex:none; }
.kks-nav-toggle span{ display:block; height:2px; background:var(--kks-ink); border-radius:2px; }

.kks-mainnav > ul{ display:flex; align-items:stretch; justify-content:flex-start; margin:0 -22px; }
.kks-mainnav__item{ position:relative; }
.kks-mainnav__item > a{ display:flex; align-items:center; gap:8px; padding:6px 22px; font-size:15.5px; font-weight:600; color:var(--kks-ink); }
.kks-mainnav__item > a .kks-icon{ width:18px; height:18px; }
.kks-mainnav .kks-icon svg{ fill:none; }
.kks-mainnav .kks-nav--fortune .kks-icon svg{ stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.kks-mainnav__item.kks-nav--love > a .kks-icon{ color:#e07a9a; }
.kks-mainnav__item.kks-nav--work > a .kks-icon{ color:#6f93c9; }
.kks-mainnav__item.kks-nav--relation > a .kks-icon{ color:#6fa87e; }
.kks-mainnav__item.kks-nav--fortune > a .kks-icon{ color:var(--kks-lavender); }
.kks-mainnav__item > a:hover{ background:#faf5ff; }
.kks-subnav{ display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--kks-line); border-radius:10px; box-shadow:0 12px 24px rgba(80,50,120,.12); min-width:180px; padding:8px; z-index:50; }
.kks-mainnav__item:hover .kks-subnav,
.kks-mainnav__item:focus-within .kks-subnav{ display:block; }
.kks-subnav li a{ display:block; padding:8px 12px; font-size:13.5px; border-radius:8px; }
.kks-subnav li a:hover{ background:#f6effc; color:var(--kks-pink-deep); }

/* JIN本体の #contents(幅1200px・左右auto・上余白)を打ち消し、ヒーロー以下を全幅にする */
body.kks-theme #contents.kks-contents{ width:100%; max-width:none; margin:0; padding:0; }

/* -------------------- HERO（002.pngの左右2枚をそのまま隙間なく並べる） -------------------- */
.kks-hero{ display:flex; align-items:stretch; width:100%; overflow:hidden; background:#f3eafb; }
.kks-hero__img{ display:block; width:100%; height:auto; }

/* -------------------- カテゴリカード（002.pngのカード画像をそのまま使用） -------------------- */
.kks-section{ padding:44px 0; }
.kks-cats{ padding:10px 0 12px; }
.kks-worry{ padding:28px 0 20px; }
body.kks-theme .kks-cats .kks-inner{ max-width:none; padding:0 2%; }
.kks-cat-grid{ display:flex; gap:12px; flex-wrap:wrap; }
.kks-cat-card{ flex:1 1 0; min-width:220px; }
.kks-cat-card a{ display:block; filter:drop-shadow(0 4px 10px rgba(80,50,120,.10)); }
.kks-cat-card img{ width:100%; height:auto; display:block; }

/* -------------------- 共通セクション見出し -------------------- */
.kks-section__head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.kks-section__title{ display:flex; align-items:center; gap:8px; font-size:20px; font-weight:700; color:var(--kks-ink); margin:0; }
.kks-section__title .kks-icon{ width:20px; height:20px; color:var(--kks-gold); }
.kks-section__title--sm{ font-size:17px; }
.kks-section__more{ font-size:12.5px; color:var(--kks-sub); display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.kks-section__more .kks-icon{ width:12px; height:12px; }
.kks-section__more:hover{ color:var(--kks-pink-deep); }
.kks-tag{ display:inline-block; font-size:11px; padding:2px 10px; border-radius:999px; background:#f4e9fb; color:#8b6bb8; margin-bottom:6px; }

/* -------------------- 人気の記事 -------------------- */
.kks-pop-grid, .kks-editor-grid{ max-width:1100px; margin-left:auto; margin-right:auto; }
.kks-pop-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.kks-pop-card__thumb{ position:relative; display:block; border-radius:12px; overflow:hidden; aspect-ratio:16/9; background:#eee2f5; }
.kks-pop-card__thumb img{ width:100%; height:100%; object-fit:cover; }
.kks-pop-card__no{ position:absolute; top:8px; left:8px; width:26px; height:26px; border-radius:50%; background:rgba(60,40,80,.75); color:#fff; font-size:12.5px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.kks-pop-card__body{ display:block; padding-top:10px; }
.kks-pop-card__title{ display:block; font-size:13.5px; font-weight:600; line-height:1.5; color:var(--kks-ink); margin-bottom:4px; }
.kks-pop-card__date{ font-size:11px; color:#b3a6c4; }

/* -------------------- 悩みから探す -------------------- */
.kks-worry-list{ display:flex; flex-wrap:wrap; gap:10px; }
.kks-worry-list a{ display:inline-block; padding:9px 18px; border:1px solid var(--kks-line); border-radius:999px; font-size:13.5px; color:var(--kks-sub); background:#fff; }
.kks-worry-list a:hover{ background:var(--kks-pink); color:#fff; border-color:var(--kks-pink); }

/* -------------------- おすすめの特集（002.pngの帯を4分割した画像をそのまま使用） -------------------- */
.kks-feat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.kks-feat-card a{ display:block; border-radius:12px; overflow:hidden; box-shadow:0 6px 16px rgba(80,50,120,.08); }
.kks-feat-card img{ width:100%; height:auto; display:block; }

/* -------------------- 電話占いの基礎知識 -------------------- */
.kks-basics-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px 14px; }
.kks-basics-card__thumb{ display:block; aspect-ratio:307/240; border-radius:12px; overflow:hidden; background:#eee2f5; margin-bottom:8px; }
.kks-basics-card__thumb img{ width:100%; height:100%; object-fit:cover; }
.kks-basics-card__title{ display:block; font-size:13px; font-weight:600; line-height:1.5; color:var(--kks-ink); }

/* -------------------- 新着記事（6件・3列×2行） -------------------- */
.kks-editor-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px 16px; }
.kks-editor-card__thumb{ display:block; aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:#eee2f5; margin-bottom:8px; }
.kks-editor-card__thumb img{ width:100%; height:100%; object-fit:cover; }
.kks-editor-card__title{ display:block; font-size:12.5px; font-weight:600; line-height:1.5; color:var(--kks-ink); margin-bottom:4px; }
.kks-editor-card__date{ font-size:11px; color:#b3a6c4; }

/* -------------------- CTAバンド（002.pngのバナー画像をそのまま1枚で使用） -------------------- */
.kks-cta{ display:block; line-height:0; }
.kks-cta a{ display:block; }
.kks-cta img{ width:100%; height:auto; display:block; }

/* -------------------- フッター -------------------- */
.kks-footer{ position:relative; background:#5a4f9c; height:420px; color:#f1ebfa; padding:0 0 24px; overflow:hidden; }
/* 背景は画像の縦横比を保ったまま高さ固定で右寄せ。余った左側は同画像のぼかしで埋め、上下が切れないようにする */
.kks-footer::before{ content:''; position:absolute; inset:-20px; background:url(img/footer-bg.jpg) center/cover no-repeat; filter:blur(18px); z-index:0; }
.kks-footer::after{ content:''; position:absolute; top:0; right:0; height:100%; aspect-ratio:2048/768; background:url(img/footer-bg.jpg) 0 0/100% 100% no-repeat; -webkit-mask-image:linear-gradient(to right,transparent,#000 22%); mask-image:linear-gradient(to right,transparent,#000 22%); z-index:1; pointer-events:none; }
.kks-footer__inner{ max-width:1180px; margin:0 auto; padding:0 20px; display:grid; grid-template-columns:minmax(300px,380px) repeat(3,max-content); justify-content:start; gap:28px 56px; position:relative; z-index:2; }
.kks-footer__brand{ padding-top:0; }
.kks-footer__brand{ padding-top:36px; }
.kks-footer__inner{ padding-bottom:70px; }
.kks-footer__brand-img{ display:block; max-width:300px; }
.kks-footer__brand-img img{ width:100%; height:auto; display:block; }
.kks-footer__lead{ font-size:12.5px; line-height:1.9; color:#eee6fa; margin:10px 0 0; text-shadow:0 1px 6px rgba(40,30,90,.6); }
.kks-footer__col{ padding-top:40px; }
.kks-footer__col h3{ font-size:13px; color:#fff; margin:0 0 14px; letter-spacing:.05em; }
.kks-footer__col ul{ display:flex; flex-direction:column; gap:10px; }
.kks-footer__col a{ font-size:12.5px; color:#eee6fa; display:flex; align-items:center; gap:6px; }
.kks-footer__col a .kks-icon{ width:10px; height:10px; opacity:.8; }
.kks-footer__col a:hover{ color:#fff; }
.kks-footer__col--pick{ position:relative; }
.kks-footer__sns{ display:flex; gap:14px; justify-content:flex-start; margin:16px 0 12px; padding:0; position:relative; z-index:2; }
.kks-footer__sns a{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; color:#fff; }
.kks-footer__sns .kks-icon{ width:16px; height:16px; }
.kks-footer__totop{ position:absolute; right:24px; bottom:56px; width:40px; height:40px; border-radius:50%; background:rgba(60,45,120,.65); display:flex; align-items:center; justify-content:center; color:#fff; z-index:3; }
.kks-footer__copy{ text-shadow:0 1px 6px rgba(40,30,90,.8); text-align:center; font-size:11px; color:#f1ebfa; margin:24px 0 0; position:relative; z-index:2; }

/* -------------------- レスポンシブ -------------------- */
@media (max-width:1024px){
  .kks-feat-grid{ grid-template-columns:repeat(2,1fr); }
  .kks-footer__inner{ grid-template-columns:minmax(200px,230px) repeat(3,max-content); gap:16px 24px; }
}
@media (max-width:860px){
  .kks-footer{ height:auto; background:#69609f; }
  .kks-footer::before{ display:none; }
  .kks-footer::after{ height:300px; top:auto; bottom:0; -webkit-mask-image:linear-gradient(to bottom,transparent,#000 15%); mask-image:linear-gradient(to bottom,transparent,#000 15%); }
  .kks-footer__inner{ grid-template-columns:1fr 1fr; }
  .kks-footer__brand{ grid-column:1 / -1; }
}

@media (max-width:768px){
  .kks-utility{ display:none; }
  .kks-header__inner{ position:relative; flex-wrap:wrap; gap:8px 14px; padding:8px 20px; }
  .kks-logo{ flex:1 1 100%; }
  .kks-logo__img{ height:64px; }
  .kks-header__right{ flex:1 1 100%; gap:0; }
  .kks-header__utility-row{ justify-content:flex-start; }
  .kks-search{ min-width:0; flex:1 1 auto; order:1; }
  .kks-nav-toggle{ display:flex; order:2; }
  .kks-mainnav{ display:none; margin-top:10px; }
  .kks-header:has(.kks-nav-toggle-input:checked) .kks-mainnav{ display:block; }
  .kks-mainnav > ul{ flex-direction:column; margin:0; }
  .kks-mainnav__item > a{ padding:12px 4px; border-bottom:1px solid var(--kks-line); }
  .kks-subnav{ display:block; position:static; border:none; box-shadow:none; padding:0 0 6px 30px; }
  .kks-cat-grid{ flex-wrap:wrap; }
  .kks-cat-card{ flex:1 1 45%; min-width:150px; }
  .kks-pop-grid{ grid-template-columns:repeat(2,1fr); }
  .kks-feat-grid{ grid-template-columns:1fr 1fr; }
  .kks-basics-grid, .kks-editor-grid{ grid-template-columns:repeat(2,1fr); }
  .kks-footer__inner{ grid-template-columns:1fr; text-align:left; }
  }

@media (max-width:480px){
  .kks-cat-card{ flex:1 1 100%; }
  .kks-pop-grid{ grid-template-columns:1fr 1fr; }
  .kks-feat-grid{ grid-template-columns:1fr; }
  .kks-basics-grid, .kks-editor-grid{ grid-template-columns:1fr 1fr; }
}

/* トップ 新着記事下のページ送り */
.kks-pager{display:flex;justify-content:center;align-items:center;gap:10px;margin:36px 0 8px;flex-wrap:wrap}
.kks-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#fff;color:#8a8a9a;font-size:14px;text-decoration:none;box-shadow:0 2px 8px rgba(60,60,90,.12)}
.kks-pager a.page-numbers:hover{background:#eceef7;color:#3b4575}
.kks-pager .page-numbers.current{background:#3b4575;color:#fff}
.kks-pager .page-numbers.dots{background:none;box-shadow:none;width:auto;height:auto}

/* 記事ヘッダーの更新日は表示しない（公開日のみ） */
.cps-post-date-box .timeslash, .cps-post-date-box time.updated{ display:none; }

/* 前後記事：該当記事が無い側の空の枠は表示しない（配置は維持） */
#prev-next .prevnext-none{ visibility:hidden; }
