/* =========================================================
   LKA Global UI (Cleaned / Updated)
   ========================================================= */

/* ---------- Mobile-first base ---------- */
:root {
  --lka-radius: 18px;
  --lka-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  --lka-soft: 0 6px 18px rgba(0, 0, 0, .06);
}

/* 全体余白をモバイル寄りに */
.site-content {
  padding-top: 0;
}

/* =========================================================
   HERO (Home)
   ========================================================= */
.lka-hero {
  min-height: 380px;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  overflow: hidden;
}

.lka-hero .wp-block-cover__inner-container {
  padding: 0;
}

/* Hero card (overlapping) */
.lka-hero-card {
  width: min(520px, 92vw);
  background: rgba(255, 255, 255, .93);
  border-radius: var(--lka-radius);
  box-shadow: var(--lka-shadow);
  padding: 22px 18px;
  text-align: center;
  margin: -90px auto 0;
}

.lka-hero-card .wp-block-group__inner-container {
  padding: 15px;
}

.lka-hero-card h1 {
  margin: 6px 0 10px;
  font-size: 26px;
  line-height: 1.15;
}

.lka-hero-card p {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: .75;
}

.lka-hero-card h2,
.lka-hero-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.lka-hero-card a {
  text-decoration: none;
  font-weight: 600;
}

/* Desktop enhancement */
@media (min-width: 900px) {
  .lka-hero {
    min-height: 560px;
  }

  .lka-hero-card {
    margin-top: -120px;
    padding: 28px 24px;
  }

  .lka-hero-card h1 {
    font-size: 38px;
  }
}

/* ---------- Home-specific stable overlap (ONE source of truth) ---------- */
.home .lka-hero {
  min-height: 430px;
  padding-bottom: 90px;
  /* 白ボックスが被る分 */
}

.home .lka-hero-card {
  margin: 0 auto 18px;
  transform: translateY(-70px);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
  border-radius: 18px;
  padding: 18px 16px;
}

.home .lka-hero-card+* {
  margin-top: -50px;
}

/* 画面が小さい端末 */
@media (max-width: 360px) {
  .home .lka-hero {
    min-height: 400px;
  }

  .home .lka-hero-card {
    transform: translateY(-55px);
  }
}

/* ちょい大きい端末 */
@media (min-width: 420px) {
  .home .lka-hero {
    min-height: 460px;
  }

  .home .lka-hero-card {
    transform: translateY(-75px);
  }
}

/* =========================================================
   Headings / Chips
   ========================================================= */
.lka-h2 {
  text-align: center;
  margin: 28px 0 10px;
  font-size: 22px;
}

.lka-p-tag {
  margin: 0 0 14px;
  font-size: 13px;
}

.lka-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px auto 12px;
  width: min(560px, 92vw);
}

@media (min-width: 640px) {
  .lka-chips {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lka-chips .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #0b5560;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  border: 2px solid #0b5560;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);

  transition:
    background-color .15s ease,
    color .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

/* hover / focus */
.lka-chips .wp-block-button__link:hover,
.lka-chips .wp-block-button__link:focus-visible {
  background: #0b5560;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}

/* 遷移感 */
.lka-chips .wp-block-button__link::after {
  content: "→";
  margin-left: 8px;
  font-size: 14px;
  opacity: .8;
}

/* tap */
.lka-chips .wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}


/* =========================================================
   Featured (Home)
   ========================================================= */
.lka-feature-title {
  text-align: center;
  margin: 0 0 14px;
  font-size: 22px;
}

.lka-featured {
  width: min(520px, 92vw);
  margin: 0 auto;
}

.lka-featured .wp-block-post {
  position: relative;
  cursor: pointer;
  background: #fff;
  border-radius: var(--lka-radius);
  box-shadow: var(--lka-shadow);
  padding: 16px;
  margin: 0 0 14px;
  border: 0;
}

.lka-featured .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.lka-featured .wp-block-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* キーボード操作の見た目も残す */
.lka-featured .wp-block-post-title a:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .25);
  outline-offset: 4px;
  border-radius: 10px;
}

.lka-featured .wp-block-post-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.lka-featured .wp-block-post-excerpt {
  margin: 0 0 10px;
  font-size: 12px;
  opacity: .75;
}

.lka-featured .wp-block-post a {
  text-decoration: none;
  font-weight: 600;
}

/* =========================================================
   Why section
   ========================================================= */
.lka-why {
  width: min(560px, 92vw);
  margin: 18px auto 0;
  background: #eef6f6;
  border-radius: 22px;
  padding: 18px 16px;
}

.lka-why .wp-block-group__inner-container {
  padding: 0;
}

.lka-why h2,
.lka-why h3 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 22px;
}

.lka-why p {
  margin: 0;
  font-size: 12px;
  opacity: .75;
  line-height: 1.7;
}

/* =========================================================
   Site-wide Card UI (except Home)
   Applies: Blog / Archives / Single / Pages
   ========================================================= */
body:not(.home) {
  background: #f6fbfb;
}

body:not(.home) .site-main {
  padding: 18px 0 28px;
}

body:not(.home) .inside-article {
  width: min(760px, 92vw);
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, .94);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  padding: 20px 18px;
  border: 0;
}

body:not(.home) .entry-title,
body:not(.home) .page-title {
  text-align: center;
  margin: 6px 0 14px;
  line-height: 1.2;
}

body:not(.home) .entry-content {
  font-size: 15px;
  line-height: 1.85;
}

body:not(.home) .entry-content h2 {
  margin: 26px 0 10px;
  font-size: 20px;
}

body:not(.home) .entry-content h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}

body:not(.home) .entry-content p {
  margin: 0 0 14px;
}

body:not(.home) .entry-content hr,
body:not(.home) .wp-block-separator {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, .10);
  margin: 18px 0;
}

body:not(.home) .post-image img,
body:not(.home) .wp-post-image {
  border-radius: 16px;
}

body:not(.home) .entry-meta {
  font-size: 12px;
  opacity: .7;
}

/* Post title size (mobile) */
@media (max-width: 600px) {
  body.single .entry-title {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  body.single .inside-article {
    padding: 22px 18px;
  }

  body.single .entry-content p {
    margin-bottom: 16px;
  }
}

/* =========================================================
   Footer (single definition)
   ========================================================= */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.site-footer .inside-site-info,
.site-footer .inside-footer-widgets {
  padding-left: 16px;
  padding-right: 16px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-info {
  font-size: 12px;
  opacity: .75;
}

/* Home bottom spacing */
.home .site-main {
  padding-bottom: 28px;
}

/* Mobile footer: centered + reduced padding */
@media (max-width: 768px) {
  .footer-widgets-container {
    padding: 16px 12px;
  }

  .site-footer,
  .site-footer .inside-footer-widgets,
  .site-footer .footer-widgets-container,
  .site-footer .inside-site-info {
    text-align: center !important;
  }

  /* Override WordPress block alignment classes */
  .site-footer .has-text-align-right,
  .site-footer .has-text-align-left {
    text-align: center !important;
  }

  /* ウィジェット内のリストもセンタリング */
  .site-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
  }

  .site-footer .widget li {
    display: inline-block;
    margin: 0 4px;
  }

  /* サイト情報のセンタリング */
  .site-info {
    text-align: center;
  }
}

/* =========================================================
   Mobile: Prevent content jump when GeneratePress menu opens
   Replace previous "mobile-menu-open" fixes
   ========================================================= */
@media (max-width: 768px) {

  /* メニュー開いたら背景スクロール固定 */
  html.mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  /* メニュー開いてる間はスクロール位置を維持して固定 */
  html.mobile-menu-open body {
    width: 100%;
    left: 0;
    right: 0;
    top: calc(-1 * var(--lock-scroll-y, 0px));
    overflow: hidden;
  }

  /* ブラウザのスクロールアンカーでガクッとなるのを抑える */
  html,
  body {
    overflow-anchor: none;
  }

  /* ハンバーガー固定 */
  .menu-toggle {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 9999;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 6px !important;
    line-height: 1;
  }

  .menu-toggle:hover,
  .menu-toggle:focus,
  .menu-toggle:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }

  /* 以下メニューの見た目 */
  .main-navigation {
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-navigation.toggled .main-nav {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .main-navigation.toggled .main-nav>ul {
    position: fixed;
    top: 52px;
    right: 10px;
    left: auto;
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100vh - 70px);
    overflow: auto;
    background: rgba(255, 255, 255, .96);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    padding: 10px;
    z-index: 9998;
  }

  .main-navigation .main-nav>ul {
    margin: 0 !important;
  }

  .main-navigation.toggled .main-nav>ul li a {
    padding: 2px 12px;
  }
}


/* Hide GeneratePress tag links only */
.tags-links {
  display: none !important;
}

/* =========================================================
   Related guides (Hub bottom) - Card UI + Whole Click (stable)
   IMPORTANT: Post Title must be a link (a tag)
   ========================================================= */
.lka-related-guides {
  width: min(760px, 92vw);
  margin: 14px auto 28px;
}

.lka-related-guides .wp-block-post-template {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .lka-related-guides .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lka-related-guides .wp-block-post {
  position: relative;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  padding: 16px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.lka-related-guides .wp-block-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
  border-color: rgba(0, 0, 0, .10);
}

.lka-related-guides .wp-block-post-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.lka-related-guides .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

/* Whole click: stretch the title link over the card */
.lka-related-guides .wp-block-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* Excerpt */
.lka-related-guides .wp-block-post-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: .78;
}

.lka-related-guides .wp-block-post-excerpt__excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.lka-related-guides .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.lka-related-guides .wp-block-post-title a:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .25);
  outline-offset: 4px;
  border-radius: 10px;
}

/* =========================================================
   Blog page (optional): Pillar / Latest cards
   Use by adding these classes to each Query Loop block:
   - lka-blog-pillar
   - lka-blog-latest
   ========================================================= */
@media (max-width: 600px) {
  .blog .inside-article {
    width: 96vw !important;
  }
}

/* width shrink fix (if you wrap with Group or Query) */
.lka-blog-pillar,
.lka-blog-latest {
  width: 100%;
  max-width: none;
}

/* shared list reset */
.lka-blog-pillar .wp-block-post-template,
.lka-blog-latest .wp-block-post-template {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

/* latest: 2 columns on desktop */
@media (min-width: 860px) {
  .lka-blog-latest .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* pillar: big cards */
.lka-blog-pillar .wp-block-post {
  position: relative;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.lka-blog-pillar .wp-block-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
  border-color: rgba(0, 0, 0, .10);
}

/* latest: compact cards */
.lka-blog-latest .wp-block-post {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
  padding: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.lka-blog-latest .wp-block-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
  border-color: rgba(0, 0, 0, .10);
}

.lka-blog-pillar .wp-block-post-title,
.lka-blog-latest .wp-block-post-title {
  margin: 0;
  line-height: 1.25;
}

.lka-blog-pillar .wp-block-post-title {
  font-size: 19px;
}

.lka-blog-latest .wp-block-post-title {
  font-size: 15px;
}

.lka-blog-pillar .wp-block-post-excerpt,
.lka-blog-latest .wp-block-post-excerpt {
  margin: 0;
  opacity: .78;
  line-height: 1.6;
}

.lka-blog-pillar .wp-block-post-excerpt {
  font-size: 14px;
}

.lka-blog-latest .wp-block-post-excerpt {
  font-size: 12px;
}

/* excerpt clamp */
.lka-blog-pillar .wp-block-post-excerpt__excerpt,
.lka-blog-latest .wp-block-post-excerpt__excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
}

/* whole click for blog lists (title must be a link) */
.lka-blog-pillar .wp-block-post-title a,
.lka-blog-latest .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.lka-blog-pillar .wp-block-post-title a::after,
.lka-blog-latest .wp-block-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* =========================================================
   FIX: Blog page (page template) widen cards on mobile
   Triggered by lka-blog-pillar / lka-blog-latest
   ========================================================= */
@media (max-width: 600px) {

  /* この2つのセクションを“画面いっぱい寄り”に */
  .entry-content .lka-blog-pillar,
  .entry-content .lka-blog-latest {
    width: 96vw;
    max-width: none;
    margin-left: calc(50% - 48vw);
    margin-right: calc(50% - 48vw);
  }

  /* 中の constrained が幅を絞るので解除 */
  .entry-content .lka-blog-pillar .wp-block-group__inner-container,
  .entry-content .lka-blog-latest .wp-block-group__inner-container {
    max-width: none !important;
  }
}

/* =========================================================
   Header icon
   ========================================================= */

/* ヘッダー全体を左基準に */
.inside-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* ← 左寄せの核 */
  padding: 8px 14px;
  /* 左余白を少しだけ */
}

/* ブランド（ロゴ＋タイトル）を左に固定 */
.site-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  /* 中央寄せ解除 */
}

/* ロゴ位置をさらに左に */
.site-branding .site-logo {
  margin-left: 0;
  line-height: 0;
}

/* ロゴサイズ（微調整） */
.site-branding .site-logo img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

/* タイトルも左寄せに固定 */
.site-title {
  margin: 0;
  text-align: left;
  font-size: 16px;
  /* モバイルでちょうどええ */
  line-height: 1.2;
}

/* hub-related-guidesの余白を消す */
.site-main .hub-related-guides>.wp-block-group__inner-container {
  padding: 0;
}

/* =========================================================
   Breadcrumb
   ========================================================= */

/* 全体の枠組み */
.rank-math-breadcrumb-container {
    margin-bottom: 20px;       /* 下（タイトルとの間）に余白を作る */
    font-size: 0.9em;          /* 文字サイズを本文より少し小さく */
    color: #888;               /* 全体を落ち着いたグレーに */
    font-family: sans-serif;   /* すっきりしたフォントに */
}

/* リンク（クリックできる部分）のデザイン */
.rank-math-breadcrumb-container a {
    color: #888;               /* リンクの色もグレーに統一 */
    text-decoration: none;     /* 下線を消す */
    transition: color 0.3s;    /* ホバー時の変化を滑らかに */
}

/* マウスを乗せた時 */
.rank-math-breadcrumb-container a:hover {
    color: #1F6F78;
    text-decoration: underline;
}

/* 現在のページ（最後の項目）を目立たせない、あるいは少し濃くする */
.rank-math-breadcrumb-container .last {
    color: #555;               /* 現在地だけ少し濃い色にする */
    font-weight: normal;
}

/* =========================================================
   Mobile First Design Overrides (Inbound Style)
   ========================================================= */

/* 1. フォント：スマホでも読みやすいGoogle Fonts設定 */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Nunito:wght@400;700&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    color: #2D3748; /* 真っ黒より少し柔らかいダークグレー */
}

h1, h2, h3 {
    font-family: 'Merriweather', serif; /* 見出しは高級感のあるセリフ体 */
}

/* 2. ヒーローセクション：スマホ画面の75%を占有して没入感を出す */
.home .lka-hero {
    min-height: 75svh !important; /* svh = アドレスバーを除いた高さ基準 */
    max-height: 800px;
    background-position: center center !important;
}

/* 画像を少し暗くして、上の文字や要素を目立たせる */
.home .lka-hero .has-background-dim {
    opacity: 0.2 !important;
}

/* 3. ヒーローカード：iOS風のフロストガラス（すりガラス）効果 */
.home .lka-hero-card {
    /* 白背景を半透明にして背景をぼかす */
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* 枠線を薄く入れて境界をはっきりさせる（Retina対応） */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    
    /* マージン調整：画像を隠しすぎない位置へ */
    margin-top: -80px !important; 
    width: 94vw !important; /* スマホではほぼ全幅 */
    padding: 24px 20px !important;
}

/* キャッチコピーをスマホで見やすく */
.lka-hero-card h1 {
    font-size: clamp(24px, 6vw, 36px) !important; /* 画面幅に応じて可変 */
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
    color: #1F6F78; /* ブランドカラーを強調 */
}

/* 4. エリアナビ（Chips）：アプリのボタンのような押し心地 */
.lka-chips {
    gap: 12px !important;
    width: 94vw !important;
}

.lka-chips .wp-block-button__link {
    width: 100%;
    padding: 14px 10px !important; /* タップ領域を広げる */
    font-size: 15px !important;
    background-color: #F7FAFC !important; /* 薄いグレー背景 */
    color: #2D3748 !important;
    border: 1px solid #E2E8F0 !important; /* 薄い枠線 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スマホでタップした瞬間のフィードバック */
.lka-chips .wp-block-button__link:active {
    background-color: #E2E8F0 !important;
    transform: scale(0.98);
}

/* 5. 記事リスト（Featured）：カードの立体感アップ */
.lka-featured .wp-block-post {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important; /* ふんわりした影 */
    margin-bottom: 20px !important;
}

.lka-featured .wp-block-post-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* "Read more" のような誘導をつける */
.lka-featured .wp-block-post::after {
    content: "Read Article →";
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #1F6F78;
    font-weight: 700;
}

/* =========================================
   横スクロール全体枠 (コンテナ)
   ========================================= */
.horizontal-scroller {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* lka-featuredの影が見切れないよう上下にpadding確保 */
    padding: 10px 4px 30px; 
    gap: 16px; /* lka-featuredのpaddingに合わせると綺麗 */
    
    /* スクロール挙動 */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* スクロールバー非表示 */
.horizontal-scroller::-webkit-scrollbar {
    display: none;
}
.horizontal-scroller {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   カード本体 (デザインを .lka-featured に統一)
   ========================================= */
.horizontal-scroller > .gb-container {
    /* --- レイアウト機能 --- */
    flex: 0 0 85%; /* スマホ: 85%幅 */
    scroll-snap-align: start;
    
    /* --- デザイン定義 (lka-featuredから移植) --- */
    position: relative; /* リンク拡張の基準点 */
    
    /* 変数が効かない場合のフォールバック用に第2引数を指定 */
    border-radius: var(--lka-radius, 12px); 
    box-shadow: var(--lka-shadow, 0 2px 8px rgba(0,0,0,0.1));
    
    /* 背景画像があるため白背景は指定せず、ボーダーなどもリセット */
    border: 0;
    margin: 0; /* 横並びなのでgapで調整 */
    
    /* 内部レイアウト */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 文字を下揃え */
    overflow: hidden; /* 角丸からはみ出した画像をカット */
    
    /* 高さ確保 (Query Loopのカード高さとバランスを取る) */
    min-height: 280px; 
    padding: 16px; /* lka-featuredと同じ余白 */
    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時の動き（PC用） */
.horizontal-scroller > .gb-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* 浮き上がる演出 */
}

/* PCサイズ (768px以上) */
@media (min-width: 768px) {
    .horizontal-scroller > .gb-container {
        flex: 0 0 30%; /* 3カラム */
    }
}

/* =========================================
   リンクの拡張 (Stretched Link)
   lka-featuredと同様の挙動を再現
   ========================================= */

/* GenerateBlocksのHeadline内のリンク色リセット */
.horizontal-scroller a {
    color: inherit;
    text-decoration: none;
}

/* リンクをカード全体に広げる魔法 (.wp-block-post-title a::after と同じ) */
.horizontal-scroller h3 a::after,
.horizontal-scroller .gb-headline a::after {
    content: "";
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 の短縮 */
    z-index: 10;
    cursor: pointer;
}

/* フォーカス時のアクセシビリティ対応 (キーボード操作) */
.horizontal-scroller h3 a:focus-visible,
.horizontal-scroller .gb-headline a:focus-visible {
    outline: 2px solid rgba(0, 0, 0, .25);
    outline-offset: 4px;
    border-radius: 10px;
}

/* =========================================
   タイトルの見た目調整
   ========================================= */
.horizontal-scroller h3, 
.horizontal-scroller .gb-headline {
    /* 画像上の文字なので視認性を確保 (テキストシャドウを追加) */
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    z-index: 2; /* リンクより手前には来ないが背景より上 */
    pointer-events: none; /* リンククリックを阻害しないように */
    
    /* lka-featuredのスタイルに準拠 */
    font-size: 20px; /* 画像上なので少し大きめ推奨 */
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
    color: #fff; /* 画像背景なので白文字強制 */
}