/* カラルナ：記事フロント用CSS */

/* ── デザイントークン ── */
:root {
    /* メイン（レッド） */
    --cln-main: #C1273B; /* メインカラー（塗り用・見出し帯/バッジ） */
    --cln-main-dark: #A31F30; /* メイン濃（ホバー・強調） */
    --cln-main-text: #B02436; /* メイン文字用（白背景でコントラスト比6.66:1・AA） */
    --cln-main-mid: #F0C2C9; /* 中薄 */
    --cln-main-light: #F8E0E3; /* 淡背景 */
    --cln-main-pale: #FBEFF1; /* ほぼ白 */
    /* サブ（チャコール） */
    --cln-sub: #3A3236; /* サブカラー（CTA・アクセント罫） */
    --cln-sub-dark: #821B28; /* 濃赤／淡背景に乗せる文字色（7.85:1以上・AA） */
    --cln-sub-light: #DCD3D5; /* サブ淡背景 */
    /* 基本 */
    --cln-black: #111111; /* 黒 */
    --cln-text: #4e4e4e; /* 文字色 */
    --cln-muted: #777777; /* 補助テキスト */
    --cln-border: #e5e7eb; /* 枠線 */
    --cln-bg: #ffffff; /* 背景 */
    --cln-bg-thumb: #efefef; /* サムネ背景 */
    --cln-tint2:       #f9fafb; /* グレー寄りの淡い背景 */
    --cln-radius-sm: 4px;  /* 角丸(小)・フラット */
    --cln-radius-md: 6px;    /* 角丸(中)・フラット */
    --cln-shadow-sm: none;  /* フラット化で影廃止 */
    --cln-shadow-md: none; /* フラット化で影廃止 */
    /* 後方互換の別名（既存参照を壊さない） */
    --cln-navy: var(--cln-text);
    --cln-link: var(--cln-main-text);
    --cln-tint: var(--cln-main-light);
}

/* ── ベースタイポグラフィ ── */
main {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: var(--cln-text);
    font-family: 'Yu Gothic', "游ゴシック", 'YuGothic', "游ゴシック体", 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

/* ── 記事コンテナ（読みやすい本文幅で中央寄せ） ── */
.cln-article {
    /* rem は使わず px 指定で統一する。 */
    writing-mode: horizontal-tb !important;
    max-width: 740px; /* v1.0.4: 1行約44字の最適行長 */
    margin: 24px auto 64px;
    padding: 0 20px;
    color: var(--cln-text);
    word-break: break-word;
}

/* タイトル（記事の唯一のh1）：H2より大きい */
.cln-article .entry-title {
    /* v1.0.4: 案3＝黒太字＋ローズ点線下罫（帯廃止・h2の点線と呼応） */
    display: block;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.5;
    color: #111111;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--cln-main-mid);
    margin: 8px 0 12px;
}
.cln-article .entry-title::before {
    content: none; /* v1.0.4: 旧・左ライン装飾は廃止 */
}

/* 更新日 */
.cln-article .entry-dates {
    font-size: 13.6px;
    color: var(--cln-muted);
    margin-bottom: 20px;
}
.cln-article .entry-dates span + span::before {
    content: "・";
    margin: 0 6px;
}

/* アイキャッチ */
.cln-article .post-thumbnail {
    margin: 0 auto 28px;
    text-align: center;
}
.cln-article .post-thumbnail img {
    display: block;
    width: 80%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--cln-radius-sm);
}

/* ── 見出しタグ ── */
/* h2：下に赤の罫線・チャコール文字・細字（パターン2） */
.cln-article h2 {
    /* v1.0.5: 左バーは文字高に合わせた短いマーク（::before）。
       border-left方式だと下paddingの分まで伸びて点線に接し、上下センターがズレて見えるため変更 */
    display: flex;
    align-items: center;
    gap: 12px; /* バーと文字の隙間 */
    font-size: 24px;
    font-weight: 700;
    color: var(--cln-main-text); /* 白背景 6.66:1 AA */
    border-bottom: 1px dashed var(--cln-main-mid);
    padding-bottom: 10px;
    margin: 2.4em 0 1em;
    line-height: 1.5;
}
.cln-article h2::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 22px; /* 文字の高さに合わせた短いバー＝点線まで届かない */
    background: var(--cln-main);
}

/* h3：下に細いグレーの罫線・チャコール文字・細字（H2より小さく階層を区別） */
.cln-article h3 {
    /* v1.0.7: 案B＝下点線のみ（h2の点線と呼応・左バーなし） */
    font-size: 19.2px;
    font-weight: 700;
    color: #2b2e3a;
    border-bottom: 1px dashed var(--cln-main-mid);
    padding-bottom: 7px;
    margin: 2em 0 0.8em;
    line-height: 1.55;
}

/* h4：太字 */
.cln-article h4 {
    font-size: 17.6px;
    font-weight: 700;
    color: var(--cln-text);
    margin: 1.8em 0 0.6em;
    line-height: 1.6;
}

.cln-article h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--cln-text);
    margin: 1.6em 0 0.5em;
}
.cln-article h6 {
    font-size: 15.2px;
    font-weight: 700;
    color: var(--cln-muted);
    margin: 1.4em 0 0.5em;
}

/* ── 本文 ── */
.cln-article p {
    margin: 0 0 1.4em;
    line-height: 1.9;
}

.cln-article a {
    color: var(--cln-main);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cln-article a:hover {
    text-decoration: none;
}

.cln-article strong {
    font-weight: 700;
    color: var(--cln-text);
}

.cln-article em {
    font-style: italic;
}

/* ── リスト（プレーン） ── */
.cln-article ul,
.cln-article ol {
    margin: 0 0 1.4em;
    padding-left: 1.6em;
}
.cln-article li {
    margin: 0.4em 0;
    line-height: 1.8;
}
.cln-article ul > li {
    list-style: disc;
}
.cln-article ol > li {
    list-style: decimal;
}
.cln-article li > ul,
.cln-article li > ol {
    margin: 0.4em 0 0.4em;
}

/* ── 画像 ── */
.cln-article img {
    max-width: 100%;
    height: auto;
}
.cln-article .wp-block-image {
    margin: 1.6em auto;
    text-align: center;
}
.cln-article .wp-block-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--cln-radius-sm);
}
.cln-article .wp-block-image.alignleft {
    float: left;
    margin: 0.3em 1.4em 1em 0;
    max-width: 50%;
}
.cln-article .wp-block-image.alignright {
    float: right;
    margin: 0.3em 0 1em 1.4em;
    max-width: 50%;
}
/* 左右寄せ時は img の中央寄せ・block を解除（回り込みを保つ） */
.cln-article .wp-block-image.alignleft img,
.cln-article .wp-block-image.alignright img {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}
.cln-article .wp-block-image figcaption,
.cln-article .wp-element-caption,
.cln-article figcaption {
    font-size: 12.8px;
    color: var(--cln-muted);
    text-align: center;
    margin-top: 0.5em;
    line-height: 1.6;
}

/* ── 引用 ── */
.cln-article blockquote {
    margin: 1.6em 0;
    padding: 1em 1.2em;
    background: var(--cln-main-light);
    border-left: 4px solid var(--cln-main);
    border-radius: 0 var(--cln-radius-sm) var(--cln-radius-sm) 0;
    color: var(--cln-text);
}
.cln-article blockquote p:last-child {
    margin-bottom: 0;
}

/* ── v1.0.4 二層構成：表・アイキャッチ・比較ボックス・業者カードは本文740pxから
   はみ出して最大1000pxで表示（ブリード）。狭い画面では通常幅に自動収束 ── */
.cln-article .wp-block-table,
.cln-article .cln-eyecatch {
    margin-left: calc(50% - min(500px, 50vw - 20px));
    margin-right: calc(50% - min(500px, 50vw - 20px));
}

/* ── テーブル（セル padding 10px ／枠線 #e5e7eb） ── */
.cln-article .wp-block-table {
    margin: 1.6em 0;
    overflow-x: auto;
}
.cln-article .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-size: 15.2px;
}
.cln-article .wp-block-table th,
.cln-article .wp-block-table td {
    padding: 10px 12px;
    border: 1px solid #ccc;
    text-align: left;
    line-height: 1.6;
}
.cln-article .wp-block-table th {
    /* v1.0.7: 案B＝淡赤ヘッダ＋濃赤文字 */
    background: var(--cln-main-light);
    color: var(--cln-sub-dark);
    border-color: var(--cln-main-mid);
    font-weight: 700;
}
.cln-article .wp-block-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

/* ── その他要素 ── */
.cln-article dd {
    margin: 0 0 0.6em 1.4em;
}
.cln-article pre {
    background: var(--cln-tint2);
    border: 1px solid var(--cln-border);
    border-radius: var(--cln-radius-sm);
    padding: 1em;
    overflow-x: auto;
    font-size: 14.4px;
    line-height: 1.6;
}
.cln-article address {
    font-style: normal;
    color: var(--cln-muted);
}
.cln-article hr {
    border: 0;
    border-top: 1px solid var(--cln-border);
    margin: 2.4em 0;
}

/* ============================================================
   一覧（トップ／アーカイブ）カードグリッド
   ============================================================ */
.cln-card-grid {
    /* rem は使わず px 指定で統一する。 */
    writing-mode: horizontal-tb !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
}
/* ──────────────────────────────────────────────
   他CSSが見出しに大きなサイズや色を当てる場合に備え、
   カード内のタグはピンポイントで打ち消し、テーマのクラス指定を効かせる。
   詳細度の競合を避けるため !important で確実に上書きする。
   ────────────────────────────────────────────── */
.cln-card-grid .cln-card,
.cln-card-grid .cln-card * {
    box-sizing: border-box;
}
.cln-card-grid .cln-card h2,
.cln-card-grid .cln-card h3,
.cln-card-grid .cln-card p,
.cln-card-grid .cln-card figure,
.cln-card-grid .cln-card time {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: left !important;
}
/* h2::before など擬似要素も無効化 */
.cln-card-grid .cln-card h2::before,
.cln-card-grid .cln-card h2::after,
.cln-card-grid .cln-card h3::before,
.cln-card-grid .cln-card h3::after {
    content: none !important;
    display: none !important;
}
.archive-hero + .cln-card-grid {
    margin-top: 16px;
}
/* 3列 → タブレット2列 → スマホ1列 */
@media (max-width: 960px) {
    .cln-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cln-card-grid { grid-template-columns: 1fr; }
}

.cln-card-grid .cln-card {
    display: flex !important;
    flex-direction: column !important;
    background: var(--cln-bg) !important;
    border: none !important;
    border-bottom: 2px solid #f0f2f4 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    padding-bottom: 14px !important;
    color: var(--cln-text) !important;
}

/* サムネ（カテゴリ帯なし・角丸最小） */
.cln-card-grid .cln-card__thumb {
    position: relative !important;
    margin: 0 !important;
    height: 150px !important;
    background: var(--cln-bg-thumb) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    line-height: 0 !important;
}
.cln-card-grid .cln-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.cln-card-grid .cln-card__nothumb {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--cln-muted) !important;
    font-size: 12px !important;
    background: var(--cln-bg-thumb) !important;
}
/* カテゴリ帯は非表示（PHP側でも出力停止） */
.cln-card-grid .cln-card__cat {
    display: none !important;
}

/* 本文側 */
.cln-card-grid .cln-card__body {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    padding: 13px 0 0 !important;
}
.cln-card-grid .cln-card__date {
    font-size: 11px !important;
    color: var(--cln-main) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.4 !important;
}
.cln-card-grid .cln-card__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    color: #2c2c2a !important;
}
.cln-card-grid .cln-card__title a {
    color: #2c2c2a !important;
    text-decoration: none !important;
}
.cln-card-grid .cln-card:hover .cln-card__title,
.cln-card-grid .cln-card:hover .cln-card__title a {
    color: var(--cln-main) !important;
}

/* B2はミニマル構成（日付＋タイトルのみ）。抜粋・情報ボックス・ボタンは非表示 */
.cln-card-grid .cln-card__box,
.cln-card-grid .cln-card__excerpt,
.cln-card-grid .cln-card__btn {
    display: none !important;
}

/* ── アーカイブ見出し ── */
.archive-hero {
    text-align: center;
    padding: 32px 20px 0;
}
.archive-title {
    display: inline-block;
    font-size: 28.8px;
    font-weight: 700;
    color: var(--cln-text);
    position: relative;
    padding-bottom: 14px;
}
.archive-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 999px;
    background: var(--cln-main);
}
/* v1.2.2: カテゴリ記事タイトル＝黒帯デザイン（案B）
   v1.2.3: 投稿ページ（.entry-title--band）にも同デザインを適用
   v1.2.4: タイトル文字をセンター表示に */
.archive-hero--band {
    text-align: left;
    padding: 24px 0 0;     /* v1.2.6: 全幅に戻す */
}
.archive-title--band,
.cln-article .entry-title--band {
    display: block;
    background: #111111;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left; /* v1.2.7: 文字は本文幅に収めたまま左揃え */
    /* v1.2.6: 帯は全幅・文字は本文幅（760px）に収まるようpaddingで制御 */
    padding: 16px max(20px, calc(50vw - 380px));
    border-bottom: 4px solid var(--cln-main);
    margin: 0 0 16px;
    box-sizing: border-box;
}
/* v1.2.6: 投稿ページは本文コンテナ（760px）から左右にはみ出して全幅化 */
.cln-article .entry-title--band {
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw) 20px;
}
/* 100vw（スクロールバー分）の横はみ出し防止 */
body {
    overflow-x: clip;
}
.archive-title--band::after,
.cln-article .entry-title--band::before {
    content: none;
}
.archive-title__accent {
    color: var(--cln-main);
}
@media (max-width: 640px) {
    .archive-title--band,
    .cln-article .entry-title--band {
        font-size: 20px;
        padding: 14px max(16px, calc(50vw - 380px));
        border-bottom-width: 3px;
    }
}
.archive-desc {
    color: var(--cln-muted);
    font-size: 14.4px;
    margin-top: 14px;
}

/* ── 404 の戻るボタン（丸ピル） ── */
.cln-article .cln-back-home {
    display: inline-block;
    background: var(--cln-sub);
    color: #F3EDEF;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 150ms ease-out;
}
.cln-article .cln-back-home:hover {
    opacity: 0.88;
}

/* ── ページネーション ── */
.nav-links {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 20px;
    font-size: 14.4px;
}
.nav-links a {
    color: var(--cln-main);
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
    main { font-size: 15px; }

    .cln-article {
        margin: 16px auto 40px;
        padding: 0 16px;
    }
    .cln-article .entry-title { font-size: 21px; }
    .cln-article h2 { font-size: 20.8px; margin: 2em 0 0.8em; }
    .cln-article h3 { font-size: 18.4px; }
    .cln-article h4 { font-size: 16.8px; }

    .cln-card-grid {
        gap: 18px;
        margin-top: 20px;
    }
    .archive-title { font-size: 24px; }
}

/* ============================================================
   パンくず（.cln-article の外に出力）
   控えめなグレー＋「>」区切り、リンクはメインカラー
   ============================================================ */
.p-breadcrumb {
    max-width: 740px; /* v1.0.4: 記事幅と同期 */
    margin: 16px auto 0;
    padding: 0 20px;
    overflow-x: auto;
}
.p-breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--cln-muted);
}
.p-breadcrumb__item {
    display: inline-flex;
    align-items: center;
}
/* 区切り記号「>」（先頭以外の前に表示） */
.p-breadcrumb__item:not(:first-child)::before {
    content: ">";
    color: #cbd0d6;
    margin: 0 8px;
}
/* リンク項目＝メインカラー */
a.p-breadcrumb__text {
    color: var(--cln-main);
    text-decoration: none;
}
a.p-breadcrumb__text:hover {
    text-decoration: underline;
}
/* 現在ページ（リンクなし）＝グレー */
span.p-breadcrumb__text {
    color: var(--cln-muted);
}

@media (max-width: 768px) {
    .p-breadcrumb {
        margin-top: 12px;
        padding: 0 16px;
        white-space: nowrap;
    }
    .p-breadcrumb__list {
        flex-wrap: nowrap;
        font-size: 12px;
    }
}

/* ──────────────────────────────────────────────
   サイトヘッダー／フッター（手動編集用の最小スタイル）
   header.php / footer.php の枠組み用。自由に上書きしてください。
   ────────────────────────────────────────────── */
.cln-site-header {
    background: var(--cln-main); /* レッド塗り。白文字5.8:1 AA */
    border-bottom: none;
}
.cln-site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cln-site-header__logo {
    margin: 0;
    line-height: 0;
}
.cln-site-header__logo a {
    display: inline-block;
    text-decoration: none;
}
.cln-site-header__logo img {
    display: block;
    width: 156px; /* v1.0.11: 画像実体は2x(312×112)。スマホ高解像度画面の滲み解消 */
    height: 56px;
}
/* v1.0.12: SPヘッダー＝ロゴ中央寄せ・さらにスリム化 */
@media (max-width: 600px) {
    .cln-site-header__inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 8px 16px 7px;
    }
    .cln-site-header__logo img {
        width: auto;
        height: 36px;
    }
    .cln-site-header__nav .cln-nav-menu {
        justify-content: center;
        gap: 14px;
    }
    .cln-site-header__nav .cln-nav-menu a {
        font-size: 13.5px;
    }
}
.cln-site-header__site-name {
    display: block;
    color: #FFFFFF;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
}
.cln-site-header__tagline {
    display: block;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-top: 3px;
}
.cln-site-header__nav .cln-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.cln-site-header__nav .cln-nav-menu a {
    color: #FFFFFF; /* main塗り上 5.88:1 AA */
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.cln-site-header__nav .cln-nav-menu a:hover {
    text-decoration: underline;
}

.cln-site-main {
    display: block;
    min-height: 50vh;
}

.cln-site-footer {
    margin-top: 64px;
    border-top: 3px solid var(--cln-main);
    background: #FFFFFF;
}
.cln-site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.cln-site-footer__left {
    text-align: left;
}
.cln-site-footer__nav .cln-footer-menu {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.cln-site-footer__nav .cln-footer-menu a {
    color: #4e4e4e; /* 白背景 8.32:1 AAA */
    text-decoration: none;
    font-size: 14px;
    transition: color 150ms ease-out;
}
.cln-site-footer__nav .cln-footer-menu a:hover {
    color: var(--cln-main-text);
}
.cln-site-footer__copy {
    margin: 0;
    color: #6E6E6E; /* 白背景 5.1:1 AA */
    font-size: 13px;
}
.cln-site-footer__logo {
    flex-shrink: 0;
}
.cln-site-footer__logo img {
    display: block;
    width: 111px; /* v1.0.11: 画像実体は2x(222×80) */
    height: 40px;
}
.cln-site-footer__site-name {
    color: var(--cln-main-text); /* 白背景 6.66:1 AA */
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

@media ( max-width: 768px ) {
    .cln-site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cln-site-footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }
    .cln-site-footer__left {
        text-align: center;
    }
    .cln-site-footer__nav .cln-footer-menu {
        justify-content: center;
    }
}

/* ──────────────────────────────────────────────
   カテゴリページ（地方＝県リンク / 県＝本文＋エリアリンク）
   ────────────────────────────────────────────── */
.cln-region,
.cln-pref {
    max-width: 1000px;
    margin: 24px auto 48px;
    padding: 0 20px;
}
.cln-region__title,
.cln-pref__title {
    font-size: 26px;
    font-weight: 700;
    color: #2B2E3A;
    border-left: 6px solid #C1273B;
    padding-left: 12px;
    margin: 0 0 24px;
}
.cln-area-body {
    margin-bottom: 32px;
}
.cln-area-links__title {
    font-size: 20px;
    font-weight: 700;
    color: #2B2E3A;
    margin: 32px 0 16px;
}
.cln-pref-grid,
.cln-area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cln-pref-link,
.cln-area-link {
    display: block;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #e7e7ea;
    border-radius: 8px;
    color: #2B2E3A;
    text-decoration: none;
    font-size: 15px;
    background: #fff;
    transition: border-color .15s, color .15s;
}
.cln-pref-link:hover,
.cln-area-link:hover {
    border-color: #C1273B;
    color: #B02436;
}
@media ( max-width: 768px ) {
    .cln-pref-grid,
    .cln-area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ──────────────────────────────────────────────
   トップページ（front-page.php）
   ────────────────────────────────────────────── */
.cln-hero {
    background: #FBEFF1;
    border-bottom: 1px solid #e7e7ea;
    padding: 40px 20px;
    text-align: center;
}
.cln-hero__inner { max-width: 640px; margin: 0 auto; }
.cln-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: #2B2E3A;
    margin: 0 0 6px;
}
.cln-hero__lead {
    font-size: 14px;
    color: #6b6b72;
    margin: 0 0 22px;
}
.cln-hero__search {
    display: flex;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
}
.cln-hero__search input[type="search"] {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #d8d8dd;
    border-radius: 8px;
    font-size: 15px;
}
.cln-hero__search button {
    height: 46px;
    padding: 0 24px;
    background: #C1273B;
    color: #FFFFFF;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}
.cln-hero__search button:hover { background: #A31F30; }

.cln-front {
    max-width: 1000px;
    margin: 36px auto 56px;
    padding: 0 20px;
}
.cln-front__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #2B2E3A;
    margin: 0 0 16px;
}
.cln-front__mark {
    width: 6px;
    height: 24px;
    background: #C1273B;
    border-radius: 2px;
    display: inline-block;
}
.cln-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cln-chip {
    display: inline-block;
    background: #F8E0E3;
    color: #821B28;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    transition: background .15s;
}
.cln-chip:hover { background: #F0C2C9; color: #821B28; }
.cln-front__empty {
    color: #888;
    font-size: 14px;
}

/* ── トップ：都道府県から探す ── */
.cln-front__section { margin-bottom: 36px; }
.cln-region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.cln-region-card {
    border: 1px solid #e7e7ea;
    border-radius: 10px;
    padding: 14px 16px;
}
.cln-region-card__name {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #B02436;
    text-decoration: none;
    margin-bottom: 8px;
}
.cln-region-card__name:hover { text-decoration: underline; }
.cln-region-card__prefs {
    font-size: 14px;
    color: #5c5c63;
    line-height: 2;
}
.cln-region-card__prefs a {
    color: #5c5c63;
    text-decoration: none;
}
.cln-region-card__prefs a:hover { color: #B02436; text-decoration: underline; }

/* ── トップ：注目ランキング ── */
.cln-rank-list { display: flex; flex-direction: column; gap: 10px; }
.cln-rank-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e7e7ea;
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    background: #fff;
}
.cln-rank-row:hover { border-color: #C1273B; }
.cln-rank-row__no {
    flex: 0 0 30px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #9a9aa2;
    color: #fff;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.cln-rank-row__no.is-1 { background: #C1273B; }
.cln-rank-row__no.is-2 { background: #c79a3a; }
.cln-rank-row__no.is-3 { background: #b3753a; }
.cln-rank-row__thumb {
    flex: 0 0 64px;
    width: 64px; height: 46px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f2;
    display: flex; align-items: center; justify-content: center;
}
.cln-rank-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cln-rank-row__noimg { color: #b3b3ba; font-size: 10px; }
.cln-rank-row__name {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 700;
    color: #2B2E3A;
}
.cln-rank-row__name small {
    font-weight: 400;
    font-size: 12px;
    color: #9a9aa2;
    margin-left: 8px;
}
@media ( max-width: 768px ) {
    .cln-region-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────
   メディアトップ（front-page.php / カラルナ）
   ────────────────────────────────────────────── */
.cln-media {
    max-width: 1040px;
    margin: 28px auto 56px;
    padding: 0 20px;
}
.cln-media__block { margin-bottom: 32px; }
.cln-media__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 5px solid #C1273B;
    padding-left: 10px;
    margin-bottom: 14px;
}
.cln-media__cat {
    font-size: 18px;
    font-weight: 700;
    color: #2B2E3A;
    text-decoration: none;
}
.cln-media__cat:hover { color: #B02436; }
.cln-media__more {
    font-size: 13px;
    color: #B02436;
    text-decoration: none;
    white-space: nowrap;
}
.cln-media__more:hover { text-decoration: underline; }
.cln-media__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cln-media__card { text-decoration: none; display: block; }
.cln-media__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f0f0f2;
    border-radius: 8px;
    overflow: hidden;
}
.cln-media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cln-media__noimg {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: #b3b3ba; font-size: 12px;
}
.cln-media__title {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #2B2E3A;
}
.cln-media__card:hover .cln-media__title { color: #B02436; }

/* ─────────────────────────────────
   新着一覧モード（v1.3.0・案1 左右ライン型）
   英字ラベル（NEWS）＋中央見出し・左右に細ライン。
   カードはカテゴリ別セクションと同じ .cln-media__card を流用し、
   新着一覧ではカテゴリバッジ＋日付を追加表示する。
   ラベル #A31F30 on 白 = 7.51:1 AA / 見出し #821B28 = 9.83:1 AA
   ───────────────────────────────── */
.cln-news { margin-top: 6px; }
.cln-news__head {
    text-align: center;
    margin-bottom: 22px;
}
.cln-news__eyebrow {
    margin: 0 0 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #A31F30;
}
.cln-news__title {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 560px;
    margin: 0 auto;
    font-size: 21px;
    font-weight: 700;
    color: #821B28;
    letter-spacing: 0.06em;
    line-height: 1.4;
}
.cln-news__title::before,
.cln-news__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #DCD3D5;
}
.cln-news__title span { white-space: nowrap; }
.cln-news__grid { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
.cln-media__badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: #A31F30;
    background: #FBEFF1;
    border-radius: 999px;
    padding: 2px 9px;
    line-height: 1.5;
}
.cln-media__badge + .cln-media__title { margin-top: 4px; }
.cln-media__date {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: #767676;
}
@media (max-width: 782px) {
    .cln-news__title { font-size: 18px; gap: 12px; }
    .cln-news__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cln-news__grid { grid-template-columns: 1fr; }
}

.cln-media__news {
    border-top: 1px solid #eee;
    padding-top: 22px;
    margin-top: 8px;
}
.cln-media__newshead {
    font-size: 18px;
    font-weight: 700;
    color: #2B2E3A;
    border-left: 5px solid #2B2E3A;
    padding-left: 10px;
    margin-bottom: 14px;
}
.cln-media__newsitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}
.cln-media__newsthumb {
    flex: 0 0 72px;
    width: 72px; height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f2;
    display: block;
}
.cln-media__newsthumb img { width: 100%; height: 100%; object-fit: cover; }
.cln-media__newstitle {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.5;
    color: #2B2E3A;
}
.cln-media__newsitem:hover .cln-media__newstitle { color: #B02436; }

@media ( max-width: 768px ) {
    .cln-media__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ──────────────────────────────────────────────
   アイキャッチ画像＋タイトル重ね（記事ページ）
   中央配置・暗幕35%・やわらかい影
   ────────────────────────────────────────────── */
.cln-article .cln-eyecatch {
    position: relative;
    margin: 0 0 20px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}
.cln-article .cln-eyecatch__img,
.cln-article .cln-eyecatch img {
    display: block;
    width: 100%;
    height: auto;
}
.cln-article .cln-eyecatch__veil {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.cln-article .cln-eyecatch__title {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6%;
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}
@media ( max-width: 768px ) {
    .cln-article .cln-eyecatch__title { font-size: 20px; }
}
@media ( max-width: 480px ) {
    .cln-article .cln-eyecatch__title { font-size: 17px; padding: 0 5%; }
}

/* ── フォントサイズプリセット（S/M/L/XL）──
   本文基準16pxやその他指定に確実に勝つよう !important＋.cln-article スコープで指定。 */
.cln-article .has-small-font-size,
.cln-article p.has-small-font-size,
.cln-article li.has-small-font-size,
.entry-content .has-small-font-size   { font-size: 13px !important; }
.cln-article .has-medium-font-size,
.cln-article p.has-medium-font-size,
.cln-article li.has-medium-font-size,
.entry-content .has-medium-font-size  { font-size: 16px !important; }
.cln-article .has-large-font-size,
.cln-article p.has-large-font-size,
.cln-article li.has-large-font-size,
.entry-content .has-large-font-size   { font-size: 20px !important; }
.cln-article .has-x-large-font-size,
.cln-article p.has-x-large-font-size,
.cln-article li.has-x-large-font-size,
.entry-content .has-x-large-font-size { font-size: 26px !important; }

/* ============================================================
   当メディアについて（全面淡色バンド・ミッションステートメント型）
   囲み枠を使わず、余白と文字組みで見せる。オレンジは英字ラベル1箇所のみ。
   .cln-media（最大1040px）の外に出力してバンドを全幅にしている。
   ※淡背景 #FDFAFB 上のコントラストは全てAA以上を実測で確認済み
   ============================================================ */
.cln-about {
    /* v1.0.9: 参考イメージ型＝淡赤バンド＋白カード */
    margin: 56px 0 0;
    padding: 52px 20px 56px;
    background: var(--cln-main-pale);
    border-top: none;
    border-bottom: 1px solid var(--cln-main-mid);
}
/* カテゴリ一覧より前に置く場合は上の余白を詰める */
.cln-about:first-child {
    margin-top: 0;
    border-top: none;
}
/* v1.0.9: 表示位置=top はDOM構造に依存せず密着させる（無駄な白帯の解消） */
.cln-about--top {
    margin-top: 0 !important;
    border-top: none !important;
}
.cln-about__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.cln-about__eyebrow {
    margin: 0 0 20px;
    padding: 0;
    /* 淡背景上のラベルは #A31F30（AA実測済み） */
    color: #A31F30;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.4;
}
.cln-about__catch {
    /* v1.0.9: 深紅・字間広め（参考イメージの型） */
    margin: 0 0 14px;
    padding: 0;
    color: var(--cln-main-text); /* 淡赤背景 5.94:1 AA */
    font-size: 23px;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1.9;
    border: none;
    background: none;
}
.cln-about__catch::before,
.cln-about__catch::after {
    content: none;
}
/* キャッチ下の飾り罫（深紅ライン＋右端に花シンボル） */
.cln-about__rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
}
.cln-about__rule-line {
    display: block;
    width: 200px;
    max-width: 46vw;
    height: 2px;
    background: var(--cln-main);
}
.cln-about__rule img {
    display: block;
    width: 25px;
    height: 31px;
}
/* 本文は長文になるため左寄せ（中央揃えだと行頭が揃わず読みにくい）。
   英字ラベル・キャッチ・注記は中央のまま。 */
.cln-about__body {
    /* v1.0.9: 白カードに乗せる（参考イメージの型・フラット） */
    max-width: 640px;
    margin: 0 auto;
    padding: 26px 30px;
    background: #ffffff;
    border-radius: 6px;
    text-align: left;
}
.cln-about__body p {
    margin: 0 0 1.4em;
    font-size: 14px;
    line-height: 2.05;
    color: var(--cln-text);
}
.cln-about__body p:last-child {
    margin-bottom: 0;
}
.cln-about__body a {
    color: var(--cln-sub);
}
.cln-about__note {
    max-width: 640px;
    margin: 22px auto 0;
    padding-top: 0;
    border-top: none;
}
.cln-about__note p {
    margin: 0 0 0.6em;
    font-size: 11.5px;
    line-height: 1.9;
    /* #8A8078 は淡背景で3.71:1と不足するため #706A64（5.13:1） */
    color: #6E5A60;
}
/* 先頭の「※」はCSSで付与する（原稿側に書かせない） */
.cln-about__note p::before {
    content: "※";
    margin-right: 0.15em;
}
.cln-about__note p:last-child {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .cln-about {
        margin-top: 40px;
        padding: 38px 16px 42px;
    }
    .cln-about__catch { font-size: 19px; letter-spacing: 0.1em; }
    .cln-about__rule-line { width: 140px; }
    .cln-about__body { padding: 20px 18px; }
    .cln-about__eyebrow {
        margin-bottom: 16px;
        letter-spacing: 0.18em;
    }
    .cln-about__catch {
        font-size: 19px;
        line-height: 1.75;
        margin-bottom: 20px;
    }
    .cln-about__body { max-width: 100%; }
    .cln-about__body p { font-size: 14.5px; line-height: 1.95; margin-bottom: 1.3em; }
    .cln-about__note { margin-top: 24px; padding-top: 16px; }
    .cln-about__note p { font-size: 11.5px; }
}
