/*
Theme Name: COCOiRO
Theme URI: https://coco-i-ro.com/
Author: 株式会社COCOiRO
Author URI: https://coco-i-ro.com/
Description: 株式会社COCOiRO オリジナルテーマ。2026-10 時点のTOPデザイン（円モチーフ・名刺配色）を土台に、下層ページ・ブログ・NEWS・VOICEを同じ作法でそろえるためのテーマ。TCD Cherie から移行。
Version: 1.0.4
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: cocoiro
*/

/* =========================================================
   0. デザイントークン（TOP #ct と同じ値）
   ========================================================= */
:root {
  --cc-ink: #3B3536;
  --cc-body: #4a4a4a;
  --cc-mute: #898989;
  --cc-line: #E2E0DD;
  --cc-bg: #F6F5F3;
  --cc-soft: #EFEEEC;
  --cc-accent: #7D8AA0;
  --cc-accent-deep: #3B3536;
  --cc-accent-soft: #E8EBF1;
  --cc-circle: #E8E6E2;
  --cc-circle-line: #8E9BB2;
  --cc-iro1: #E0B13C;
  --cc-iro2: #7FA6A1;
  --cc-iro3: #B48EAD;
  --cc-iro4: #C8694A;
  --cc-iro5: #8E9BB2;
  --cc-en: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --cc-jp: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --cc-header-h: 76px;
}
@media (max-width: 900px) {
  :root { --cc-header-h: 64px; }
}

/* =========================================================
   1. リセット（TCD Cherie と同じ考え方。既存ページの見た目を変えないため）
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main { display: block; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cc-header-h) + 16px); }
ul, ol { list-style: none; }
blockquote, q { quotes: none; }
blockquote::before, blockquote::after, q::before, q::after { content: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; }
input, select, textarea { font-family: inherit; }
table { border-collapse: collapse; border-spacing: 0; }

body {
  margin: 0;
  background: var(--cc-bg);
  color: var(--cc-body);
  font-family: var(--cc-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior: auto;
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}
.cc-skip:focus {
  position: fixed; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; clip: auto;
  padding: 12px 20px; border-radius: 999px; background: var(--cc-ink); color: #fff; font-size: 14px;
}

/* 下層ページ：固定ヘッダーの高さぶん下げる（TOPは #ct が自前のヘッダーを持つので不要） */
body:not(.home) #container { padding-top: var(--cc-header-h); }

/* =========================================================
   2. 共通ヘッダー（#cc-header：TCD時代のテーマオプション由来をそのまま移植）
   ========================================================= */
#cc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(246,245,243,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--cc-line);
  font-family: var(--cc-jp); letter-spacing: 0.04em; line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
.admin-bar #cc-header { top: 32px; }
#cc-header *, #cc-header *::before, #cc-header *::after { box-sizing: border-box; }
#cc-header a { text-decoration: none; }
#cc-header a:focus-visible, #cc-header .cch-toggle:focus-visible + .cch-burger { outline: 2px solid var(--cc-accent); outline-offset: 4px; }
#cc-header .cch-inner { display: flex; align-items: center; gap: 32px; max-width: 1240px; height: 76px; margin: 0 auto; padding: 0 40px; }
#cc-header .cch-logo { color: var(--cc-ink); font-family: var(--cc-en); font-size: 22px; font-weight: 500; letter-spacing: 0.08em; line-height: 1; }
#cc-header .cch-logo span { color: var(--cc-accent); }
#cc-header .cch-nav { display: flex; gap: 28px; margin-left: auto; }
#cc-header .cch-nav a { position: relative; color: var(--cc-ink); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; }
#cc-header .cch-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--cc-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
#cc-header .cch-nav a:hover::after,
#cc-header .cch-nav a[aria-current="page"]::after { transform: scaleX(1); }
#cc-header .cch-nav .cch-nav-cta { display: none; }
#cc-header .cch-cta { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px; background: var(--cc-ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em; transition: background-color .25s ease; }
#cc-header .cch-cta:hover { background: var(--cc-ink); color: #fff; }
#cc-header .cch-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
#cc-header .cch-burger { display: none; }
@media (max-width: 1080px) {
  #cc-header .cch-nav { gap: 20px; }
  #cc-header .cch-cta { display: none; }
}
@media (max-width: 900px) {
  #cc-header .cch-inner { height: 64px; padding: 0 24px; }
  #cc-header .cch-burger { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin: 0 0 0 auto; border-radius: 50%; background: var(--cc-ink); cursor: pointer; }
  #cc-header .cch-burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .3s ease; }
  #cc-header .cch-toggle:checked + .cch-burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  #cc-header .cch-toggle:checked + .cch-burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  #cc-header .cch-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 8999;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 32px;
    background: var(--cc-bg); box-shadow: 0 16px 24px rgba(0,0,0,.06);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  #cc-header .cch-toggle:checked ~ .cch-nav { opacity: 1; visibility: visible; transform: none; }
  #cc-header .cch-nav a { padding: 16px 0; border-bottom: 1px solid var(--cc-line); font-size: 16px; }
  #cc-header .cch-nav a::after { content: none; }
  #cc-header .cch-nav .cch-nav-cta { display: block; margin-top: 24px; padding: 16px; border: 0; border-radius: 999px; background: var(--cc-ink); color: #fff; text-align: center; font-weight: 700; }
}
@media (max-width: 782px) {
  .admin-bar #cc-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar #cc-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #cc-header *, #cc-header *::before, #cc-header *::after { transition: none !important; }
}

/* =========================================================
   3. 共通フッター（#cc-footer）
   ========================================================= */
#cc-footer {
  --ink: #3B3536; --body: #4a4a4a; --mute: #898989; --line: #E2E0DD; --accent-deep: #3B3536;
  margin: 0; padding: 120px 0 48px;
  border-top: 1px solid var(--cc-line);
  background: var(--cc-bg); color: var(--cc-body);
  font-family: var(--cc-jp);
  font-size: 16px; font-weight: 400; line-height: 1.9; letter-spacing: 0.04em;
  text-align: left; -webkit-font-smoothing: antialiased;
}
#cc-footer *, #cc-footer *::before, #cc-footer *::after { box-sizing: border-box; }
#cc-footer p { margin: 0; padding: 0; }
#cc-footer a { color: inherit; text-decoration: none; }
#cc-footer a:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 4px; }
#cc-footer .ccf-wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
#cc-footer .ccf-top { display: grid; grid-template-columns: 1fr 2.4fr; gap: 64px; padding: 0 0 72px; }
#cc-footer .ccf-logo { color: var(--cc-ink); font-family: var(--cc-en); font-size: 22px; font-weight: 500; letter-spacing: 0.08em; line-height: 1; }
#cc-footer .ccf-logo span { color: var(--cc-accent); }
#cc-footer .ccf-brand p { margin: 20px 0 0; font-size: 14px; line-height: 1.9; }
#cc-footer .ccf-cols { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 32px; }
#cc-footer .ccf-cols a { display: block; padding: 4px 0; color: var(--cc-body); font-size: 14px; line-height: 1.7; transition: color .2s ease; }
#cc-footer .ccf-cols a:hover { color: var(--cc-accent-deep); }
#cc-footer .ccf-head { margin: 0 0 8px; color: var(--cc-ink); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
#cc-footer .ccf-cols a + .ccf-head { margin-top: 28px; }
#cc-footer .ccf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; border-top: 1px solid var(--cc-line); font-size: 12px; color: var(--cc-mute); }
#cc-footer .ccf-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
#cc-footer .ccf-legal a:hover { color: var(--cc-ink); }
#cc-footer .ccf-copy { font-family: var(--cc-en); letter-spacing: 0.1em; }
@media (max-width: 900px) {
  #cc-footer { padding: 88px 0 40px; }
  #cc-footer .ccf-wrap { padding: 0 24px; }
  #cc-footer .ccf-top { grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; }
  #cc-footer .ccf-cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
/* 文節で折り返す（2026-10 改行調整） */
#cc-footer a, #cc-footer p, #cc-header a { word-break: auto-phrase; text-wrap: pretty; }

/* =========================================================
   4. 固定ページ
   既存の固定ページはTCDの「LPテンプレート」上で作られている。
   TCDが持っていた本文まわりのスタイルは assets/legacy-page.css に移し、固定ページでだけ読み込む。
   ページ固有のCSSは各ページの「カスタムCSS」欄（post meta: custom_css）から出力する。
   ========================================================= */

/* =========================================================
   5. テーマ側で組む画面の共通パーツ（.cc-*）
   TOPの #ct の作法（英字ラベル・大見出し・円モチーフ・丸ボタン）に合わせる
   ========================================================= */
.cc-wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.cc-wrap--narrow { max-width: 840px; }
.cc-label {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  color: var(--cc-accent);
  font-family: var(--cc-en); font-size: 13px; font-weight: 500; letter-spacing: 0.24em; line-height: 1;
  text-transform: uppercase;
}
.cc-label::before { content: ""; display: block; width: 28px; height: 1px; background: currentColor; }
.cc-h1 {
  color: var(--cc-ink);
  font-size: clamp(30px, 4vw, 52px); font-weight: 700; line-height: 1.45; letter-spacing: 0.04em;
  word-break: auto-phrase; text-wrap: pretty;
}
.cc-h2 {
  color: var(--cc-ink);
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.5; letter-spacing: 0.04em;
  word-break: auto-phrase; text-wrap: pretty;
}
.cc-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 34px; border-radius: 999px;
  background: var(--cc-ink); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em;
  transition: background-color .25s ease, color .25s ease;
}
.cc-btn:hover { background: var(--cc-accent-deep); color: #fff; }
.cc-btn__arrow { font-family: var(--cc-en); transition: transform .25s ease; }
.cc-btn:hover .cc-btn__arrow { transform: translateX(4px); }
.cc-btn--light { background: #fff; color: var(--cc-ink); }
.cc-btn--light:hover { background: var(--cc-accent-soft); color: var(--cc-ink); }
.cc-textlink {
  position: relative; display: inline-block; padding: 4px 0;
  color: var(--cc-ink); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none;
}
.cc-textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .3s ease; }
.cc-textlink:hover::after { transform: scaleX(.4); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 4px; }

/* ページ見出し（円モチーフ付き） */
.cc-pagehead { position: relative; padding: 112px 0 72px; overflow: hidden; }
.cc-pagehead::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: var(--cc-circle); top: -150px; right: calc(50% - 600px); z-index: 0; pointer-events: none;
}
.cc-pagehead::after {
  content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%;
  border: 1px solid var(--cc-circle-line); top: 40px; right: calc(50% - 560px); z-index: 0; pointer-events: none;
}
.cc-pagehead > * { position: relative; z-index: 1; }
.cc-pagehead__lead { max-width: 600px; margin: 24px 0 0; }
.cc-breadcrumb { margin: 0 0 40px; color: var(--cc-mute); font-size: 12px; line-height: 1.7; }
.cc-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.cc-breadcrumb li { display: inline-flex; align-items: center; }
.cc-breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--cc-line); }
.cc-breadcrumb a { color: var(--cc-mute); text-decoration: none; }
.cc-breadcrumb a:hover { color: var(--cc-ink); }
.cc-breadcrumb [aria-current] { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* タブ（カテゴリ切り替え） */
.cc-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.cc-tabs a {
  display: inline-block; padding: 8px 20px; border: 1px solid var(--cc-line); border-radius: 999px;
  background: #fff; color: var(--cc-body); font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.cc-tabs a:hover { border-color: var(--cc-accent); }
.cc-tabs a[aria-current="page"] { border-color: var(--cc-ink); background: var(--cc-ink); color: #fff; }

/* 記事カード（BLOG） */
.cc-section { padding: 0 0 140px; }
.cc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.cc-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.cc-card__img {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 20px; background: var(--cc-soft);
}
.cc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cc-card:hover .cc-card__img img { transform: scale(1.04); }
.cc-card__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cc-mute); font-family: var(--cc-en); font-size: 20px; letter-spacing: 0.08em; }
.cc-card__noimg span { color: var(--cc-accent); }
.cc-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 20px 0 10px; color: var(--cc-mute); font-family: var(--cc-en); font-size: 13px; letter-spacing: 0.08em; line-height: 1.4; }
.cc-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--cc-accent-soft); color: var(--cc-accent-deep); font-family: var(--cc-jp); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.5; }
.cc-card__title {
  color: var(--cc-ink); font-size: 17px; font-weight: 700; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  word-break: auto-phrase;
}
.cc-card:hover .cc-card__title { text-decoration: underline; text-decoration-color: var(--cc-accent); text-underline-offset: 4px; }

/* お知らせ（NEWS）一覧：TOPのサービス一覧と同じ罫線リスト */
.cc-rows { border-top: 1px solid var(--cc-ink); }
.cc-rows li { border-bottom: 1px solid var(--cc-line); }
.cc-rows a {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) 48px; gap: 24px; align-items: center;
  padding: 28px 16px 28px 8px; color: inherit; text-decoration: none;
  transition: background-color .3s ease;
}
.cc-rows a:hover { background: var(--cc-accent-soft); }
.cc-rows__date { color: var(--cc-mute); font-family: var(--cc-en); font-size: 14px; letter-spacing: 0.1em; }
.cc-rows__title { color: var(--cc-ink); font-size: 17px; font-weight: 700; line-height: 1.7; word-break: auto-phrase; }
.cc-rows__arrow {
  display: grid; place-items: center; justify-self: end;
  width: 44px; height: 44px; border: 1px solid var(--cc-line); border-radius: 50%;
  color: var(--cc-ink); font-family: var(--cc-en); font-size: 15px; line-height: 1;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.cc-rows a:hover .cc-rows__arrow { background: var(--cc-ink); border-color: var(--cc-ink); color: #fff; transform: translateX(4px); }

/* お客さまの声（VOICE）一覧：TOPの導入事例カードと同じ */
.cc-voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cc-voice { display: flex; flex-direction: column; padding: 48px 44px 40px; border-radius: 24px; background: #fff; color: inherit; text-decoration: none; transition: transform .35s ease; }
a.cc-voice:hover { transform: translateY(-4px); }
.cc-voice__title { position: relative; margin: 0 0 20px; padding-top: 44px; color: var(--cc-ink); font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; line-height: 1.6; word-break: auto-phrase; }
.cc-voice__title::before { content: "\201C"; position: absolute; top: -8px; left: -4px; color: var(--cc-accent); font-family: var(--cc-en); font-size: 72px; font-weight: 300; line-height: 1; }
.cc-voice__text { margin: 0 0 32px; font-size: 15px; line-height: 2; }
.cc-voice__name { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--cc-line); color: var(--cc-ink); font-size: 14px; font-weight: 700; }

/* ページ送り */
.cc-pager { margin: 72px 0 0; }
.cc-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cc-pager .page-numbers {
  display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px;
  border: 1px solid var(--cc-line); border-radius: 999px; background: #fff;
  color: var(--cc-ink); font-family: var(--cc-en); font-size: 15px; line-height: 1; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.cc-pager a.page-numbers:hover { border-color: var(--cc-ink); }
.cc-pager .page-numbers.current { border-color: var(--cc-ink); background: var(--cc-ink); color: #fff; }
.cc-pager .page-numbers.dots { border: 0; background: none; min-width: 24px; }

.cc-empty { padding: 48px 0; color: var(--cc-mute); }

/* =========================================================
   6. 記事ページ（BLOG / NEWS / VOICE）
   ========================================================= */
.cc-article { padding: 0 0 120px; }
.cc-article__head { position: relative; padding: 72px 0 48px; overflow: hidden; }
.cc-article__head::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: var(--cc-circle); top: -140px; right: calc(50% - 560px); z-index: 0; pointer-events: none;
}
.cc-article__head > * { position: relative; z-index: 1; }
.cc-article__title {
  color: var(--cc-ink);
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.55; letter-spacing: 0.03em;
  word-break: auto-phrase; text-wrap: pretty;
}
.cc-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; color: var(--cc-mute); font-family: var(--cc-en); font-size: 14px; letter-spacing: 0.08em; }
.cc-article__eyecatch { margin: 0 0 64px; }
.cc-article__eyecatch img { display: block; width: 100%; height: auto; border-radius: 24px; }

/* 記事本文。記事ごとの独自スタイル（blog-h2 など）が優先されるよう、詳細度は低めにしておく */
.cc-entry { color: var(--cc-body); font-size: 16px; line-height: 2; }
.cc-entry > :where(p) { margin: 0 0 1.8em; }
.cc-entry > :where(h2) { margin: 2.6em 0 1em; padding: 0 0 14px; border-bottom: 1px solid var(--cc-line); color: var(--cc-ink); font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; line-height: 1.6; text-align: left; }
.cc-entry > :where(h3) { margin: 2.2em 0 .8em; padding: 0 0 0 16px; border-left: 3px solid var(--cc-accent); color: var(--cc-ink); font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; line-height: 1.6; }
.cc-entry > :where(h4) { margin: 2em 0 .6em; color: var(--cc-ink); font-size: 17px; font-weight: 700; line-height: 1.6; }
.cc-entry > :where(ul) { margin: 0 0 1.8em; padding: 0 0 0 1.4em; list-style: disc; }
.cc-entry > :where(ol) { margin: 0 0 1.8em; padding: 0 0 0 1.6em; list-style: decimal; }
.cc-entry > :where(ul, ol) li { margin: 0 0 .4em; line-height: 1.9; }
.cc-entry > :where(ul) li::marker { color: var(--cc-accent); }
.cc-entry :where(a) { color: var(--cc-ink); text-decoration: underline; text-decoration-color: var(--cc-accent); text-underline-offset: 4px; }
.cc-entry :where(strong, b) { font-weight: 700; color: var(--cc-ink); }
.cc-entry > :where(blockquote) { margin: 0 0 1.8em; padding: 24px 28px; border-left: 3px solid var(--cc-accent); border-radius: 0 16px 16px 0; background: var(--cc-accent-soft); color: var(--cc-ink); }
.cc-entry > :where(figure, .wp-block-image) { margin: 0 0 2em; }
.cc-entry :where(img) { max-width: 100%; height: auto; border-radius: 12px; }
.cc-entry :where(figcaption) { margin: 10px 0 0; color: var(--cc-mute); font-size: 13px; text-align: center; }
.cc-entry > :where(table), .cc-entry :where(.wp-block-table table) { width: 100%; margin: 0 0 2em; font-size: 15px; }
.cc-entry :where(th, td) { padding: 14px 16px; border: 1px solid var(--cc-line); background: #fff; line-height: 1.8; text-align: left; vertical-align: top; }
.cc-entry :where(th) { background: var(--cc-soft); color: var(--cc-ink); font-weight: 700; }
.cc-entry :where(.wp-block-table) { overflow-x: auto; }
.cc-entry > :where(hr) { margin: 3em 0; border: 0; border-top: 1px solid var(--cc-line); }
.cc-entry > :where(pre) { margin: 0 0 1.8em; padding: 20px; border-radius: 12px; background: var(--cc-ink); color: #fff; font-size: 13px; overflow-x: auto; }
.cc-entry :where(.aligncenter) { margin-left: auto; margin-right: auto; }
.cc-entry::after { content: ""; display: block; clear: both; }

/* 記事末尾 */
.cc-article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin: 80px 0 0; padding: 32px 0 0; border-top: 1px solid var(--cc-line); }
.cc-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 0; }
.cc-postnav a { display: block; padding: 20px 24px; border: 1px solid var(--cc-line); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s ease; }
.cc-postnav a:hover { border-color: var(--cc-ink); }
.cc-postnav__label { display: block; margin: 0 0 6px; color: var(--cc-mute); font-family: var(--cc-en); font-size: 12px; letter-spacing: 0.16em; }
.cc-postnav__title { color: var(--cc-ink); font-size: 14px; font-weight: 700; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-postnav .is-next { text-align: right; }

.cc-related { padding: 120px 0 0; }
.cc-related .cc-h2 { margin: 0 0 48px; }

/* お客さまの声の詳細 */
.cc-voice-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: start; margin: 0 0 64px; }
.cc-voice-detail__img img { display: block; width: 100%; height: auto; border-radius: 24px; }
.cc-voice-detail__name { margin: 0 0 20px; color: var(--cc-ink); font-size: 15px; font-weight: 700; }
.cc-voice-detail__desc { font-size: 16px; line-height: 2.1; }

/* 相談CTA（TOPのCONTACTと同じ見た目） */
.cc-cta { padding: 0 40px 0; }
.cc-cta__inner { max-width: 1240px; margin: 0 auto; padding: 104px 80px; border-radius: 32px; background: var(--cc-ink); color: #cfcfcb; position: relative; overflow: hidden; }
.cc-cta__inner::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.cc-cta .cc-label { color: #AEB7C8; }
.cc-cta__title { margin: 0 0 24px; color: #fff; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.45; word-break: auto-phrase; text-wrap: pretty; }
.cc-cta__text { max-width: 560px; margin: 0 0 40px; line-height: 2; }
.cc-cta + #cc-footer, .cc-cta-space { margin-top: 0; }
.cc-cta-wrap { padding: 0 0 120px; }

/* 404・検索 */
.cc-notfound { padding: 0 0 160px; }
.cc-search { display: flex; gap: 10px; max-width: 520px; margin: 32px 0 0; }
.cc-search input[type="search"] { flex: 1; min-width: 0; padding: 14px 20px; border: 1px solid var(--cc-line); border-radius: 999px; background: #fff; color: var(--cc-ink); font-size: 15px; }
.cc-search button { font-family: inherit; padding: 14px 24px; border: 0; border-radius: 999px; background: var(--cc-ink); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }

/* 表示演出（TOPと同じ） */
.cc-js .cc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.cc-js .cc-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cc-js .cc-reveal { opacity: 1; transform: none; transition: none; }
  .cc-card__img img { transition: none; }
}

/* =========================================================
   7. タブレット・スマホ
   ========================================================= */
@media (max-width: 1080px) {
  .cc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cc-wrap { padding: 0 24px; }
  .cc-pagehead { padding: 72px 0 48px; }
  .cc-pagehead::before { width: 240px; height: 240px; top: -110px; right: -80px; }
  .cc-pagehead::after { width: 160px; height: 160px; top: 10px; right: -20px; }
  .cc-section { padding: 0 0 96px; }
  .cc-rows a { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 16px; padding: 24px 0; }
  .cc-rows a:hover { background: none; }
  .cc-rows__date { grid-column: 1; grid-row: 1; font-size: 13px; }
  .cc-rows__title { grid-column: 1; grid-row: 2; font-size: 16px; }
  .cc-rows__arrow { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .cc-voices { grid-template-columns: 1fr; }
  .cc-voice { padding: 40px 28px 32px; border-radius: 20px; }
  .cc-article__head { padding: 48px 0 36px; }
  .cc-article__head::before { width: 200px; height: 200px; top: -100px; right: -70px; }
  .cc-article__eyecatch { margin: 0 0 48px; }
  .cc-article__eyecatch img { border-radius: 16px; }
  .cc-voice-detail { grid-template-columns: 1fr; gap: 32px; }
    .cc-related { padding: 88px 0 0; }
  .cc-cta { padding: 0 16px; }
  .cc-cta__inner { padding: 72px 28px; border-radius: 24px; }
  .cc-cta .cc-btn { width: 100%; justify-content: center; }
  .cc-cta-wrap { padding: 0 0 88px; }
}
@media (max-width: 600px) {
  .cc-cards { grid-template-columns: 1fr; gap: 36px; }
  .cc-h1 { font-size: min(30px, calc((100vw - 48px) / 11)); }
  .cc-cta__title { font-size: min(28px, calc((100vw - 88px) / 11)); }
  .cc-postnav { grid-template-columns: 1fr; }
  .cc-postnav .is-next { text-align: left; }
  /* スマホの記事本文：本番（TCD）の読みやすさに近づける。記事内の白い箱の中で1行の文字数を確保する */
  .cc-article .cc-wrap { padding: 0 16px; }
  .cc-entry { font-size: 15px; line-height: 1.9; letter-spacing: 0.02em; }
}
