/* ============================================================
   Fika main stylesheet
   ============================================================ */

:root {
    --bg: #fafcfa;
    --ink: #14171a;
    --ink-soft: #66736d;
    --line: rgba(20,23,26,0.08);
    --accent-green:      #4fc4a0;
    --accent-green-text: #226b53; /* テキスト用グリーン（#fafcfa 上で AA 確保） */
    --accent-aqua:       #74bcd9;
    --accent-aqua-text:  #3d7e9e;
    --accent-deep:       #226b53;

    --font-sans: 'YakuHanJP', 'Archivo', 'Noto Sans JP', "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
    --font-mono: 'Archivo', 'Noto Sans JP', sans-serif;

    --max-content: 960px;
    --pad-x: 44px;
    --pad-x-sp: 22px;

    /* 下層ページの上下余白 */
    --subpage-pad-top-sp: 72px;
    --subpage-pad-top-pc: 78px;
    --subpage-pad-bottom-sp: 100px;
    --subpage-pad-bottom-pc: 120px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--ink); overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh; min-height: 100dvh;
    /* コンテンツが短いページでもフッターを最下部に貼り付ける（sticky footer） */
    display: flex;
    flex-direction: column;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.4; letter-spacing: 0.005em; }

/* ========== Grain overlay ========== */
.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 60;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
    mix-blend-mode: multiply;
}

/* ========== Main ========== */
.site-main {
    display: block;
    /* sticky footer: flex item として残り高さを吸収 */
    flex: 1 0 auto;
}

/* ========== Link arrow ========== */
.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ink);
    transition: gap 0.3s;
}
.link-arrow:hover { gap: 14px; }

/* ========== Reveal animation ========== */
/* :where(html.js) 前置: JS 無効時はコンテンツを隠さない（no-JS フォールバック・詳細度は上げない） */
:where(html.js) [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ========== Works section ========== */
.works-grid {
    display: grid; grid-template-columns: 1fr; gap: 48px;
}
.work-card { display: block; color: var(--ink); }
.work-card__img {
    aspect-ratio: 16 / 10;
    background: #ecf2ee;
    overflow: hidden; margin-bottom: 20px;
    position: relative;
}
.work-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__title {
    font-size: 19px; font-weight: 600; margin-bottom: 10px;
}
.work-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.work-card__tag {
    font-size: 11px; padding: 3px 10px;
    background: rgba(20,23,26,0.05);
    color: var(--ink-soft);
    border-radius: 100px;
    font-weight: 500;
}
.work-card__more { font-size: 13px; color: var(--ink-soft); }

@media (min-width: 960px) {
    .works-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .work-card__title { font-size: 21px; }
}

/* ========== Blog section ========== */
.blog-grid {
    display: grid; grid-template-columns: 1fr; gap: 14px;
}
.blog-card {
    display: flex; flex-direction: column;
    color: var(--ink);
    background: var(--bg);
    border: 1.25px solid var(--ink);
    padding: 20px;
    transition: background-color .25s var(--ease-out);
}
.blog-card:hover { background-color: #f0f5f1; }
.blog-card__cat {
    font-size: 11px; font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
}
.blog-card__date {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.08em;
}
.blog-card__title {
    font-size: 15px; font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.005em;
}

@media (min-width: 640px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .blog-card { padding: 22px 24px 18px; }
    .blog-card__title { font-size: 15px; }
}

/* ========== News section ========== */
.news-list {
    max-width: 780px; margin: 0 auto;
    border-top: 1px solid var(--line);
}
.news-item {
    border-bottom: 1px solid var(--line);
}
.news-item a {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 20px 8px;
    transition: background 0.3s;
}
.news-item a:hover { background: rgba(20,23,26,0.02); }
.news-item__date {
    font-family: var(--font-mono);
    font-size: 12px; color: var(--ink-soft);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.news-item__cat {
    font-family: var(--font-mono);
    font-size: 11px; color: var(--ink-soft);
    flex-shrink: 0;
}
.news-item__title {
    flex: 1; font-size: 15px; line-height: 1.6;
}

/* Contact Form 7 基本スタイル整形 */
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 15px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.3s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { outline: none; border-color: var(--ink); }
.wpcf7-form textarea { min-height: 160px; resize: vertical; }
.wpcf7-form .wpcf7-submit {
    background: var(--ink); color: var(--bg);
    border: none;
    padding: 16px 64px;
    border-radius: 4px;
    font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity 0.3s;
}
.wpcf7-form .wpcf7-submit:hover { opacity: 0.85; }

/* ========== Breadcrumbs ========== */
.breadcrumbs {
    margin-bottom: 28px;
}
.breadcrumbs ol {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 4px 10px;
    list-style: none;
    margin: 0; padding: 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(20,23,26,0.25); }
.breadcrumbs a { color: var(--ink-soft); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs li:last-child span { color: var(--ink); }
@media (min-width: 960px) {
    .breadcrumbs { margin-bottom: 36px; font-size: 12px; }
}

/* ========== Single page / article common ========== */
.page-article,
.post-article,
.work-article,
.news-article {
    padding: var(--subpage-pad-top-sp) var(--pad-x-sp) var(--subpage-pad-bottom-sp);
}
.page-article__inner,
.post-article__inner,
.work-article__inner,
.news-article__inner {
    max-width: 760px; margin: 0 auto;
}
/* work-article は max-width だけ広げる（padding は共通） */
.work-article__inner { max-width: 1040px; }
.page-article__title,
.post-article__title,
.work-article__title,
.news-article__title {
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 500; line-height: 1.4;
    margin-bottom: 24px;
}
.work-article__title { margin-bottom: 16px; }

/* Page (固定ページ) ヘッダー */
.page-article__header { margin-bottom: 40px; }
/* パンくずは archive と同じ max-width で左に揃える */
.page-article__topbar { max-width: var(--max-content); margin: 0 auto; }
@media (min-width: 960px) {
    .page-article__header { margin-bottom: 56px; }
}
.page-article__content,
.post-article__content,
.work-article__body,
.news-article__body {
    font-size: 15px; line-height: 1.9;
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 {
    font-size: 22px; font-weight: 600;
    margin-top: 2.4em; margin-bottom: 1em;
}
.entry-content h3 { font-size: 18px; font-weight: 600; margin-top: 1.8em; margin-bottom: 0.8em; }
.entry-content ul, .entry-content ol { margin-left: 1.4em; margin-bottom: 1.4em; }
.entry-content ul li { list-style: disc; margin-bottom: 0.4em; }
.entry-content ol li { list-style: decimal; margin-bottom: 0.4em; }
.entry-content a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-deep); }
.entry-content blockquote {
    border-left: 3px solid var(--line);
    padding: 0.4em 1em; margin: 1.4em 0;
    color: var(--ink-soft);
}

/* ========== Media coverage list 固定ページ (slug: media-coverage-list) ========== */
/* WP の table ブロックをタイムライン表示に CSS のみでカスタム。
   縦線は figure の ::before（border-collapse の影響を受けない）、dot は td/tr の ::before */

/* 1行目の段落 = lead 文として薄く小さく */
.page-article--media-coverage-list .entry-content > p:first-child {
    font-size: 14px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin-bottom: 40px;
}

/* WP core / theme の table 既定スタイルを全リセット */
.page-article--media-coverage-list .wp-block-table,
.page-article--media-coverage-list .wp-block-table table,
.page-article--media-coverage-list .wp-block-table thead,
.page-article--media-coverage-list .wp-block-table tbody,
.page-article--media-coverage-list .wp-block-table tfoot,
.page-article--media-coverage-list .wp-block-table tr,
.page-article--media-coverage-list .wp-block-table th,
.page-article--media-coverage-list .wp-block-table td {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
}

/* thead / tfoot は WP の border-bottom/top 3px が頑固に残るため、
   このページではそもそも表示しない（ユーザーは tbody のみで運用） */
.page-article--media-coverage-list .wp-block-table thead,
.page-article--media-coverage-list .wp-block-table tfoot {
    display: none;
}

/* WP の高 specificity (0,3,4) ルール:
     .wp-block-table table > tbody:first-child > tr:first-child > td/th { border-top: 3px solid; ... }
   こちらは page クラス + 同じ構造 (0,4,4) で打ち消す */
.page-article--media-coverage-list .wp-block-table table > tbody:first-child > tr:first-child > td,
.page-article--media-coverage-list .wp-block-table table > tbody:first-child > tr:first-child > th,
.page-article--media-coverage-list .wp-block-table table > tbody:last-child > tr:last-child > td,
.page-article--media-coverage-list .wp-block-table table > tbody:last-child > tr:last-child > th {
    border-top: 0;
    border-bottom: 0;
}

/* figure.wp-block-table = タイムラインのコンテナ */
.page-article--media-coverage-list .wp-block-table {
    position: relative;
    margin: 0;
    padding-left: 28px;
    overflow: visible; /* WP の overflow-x: auto を上書き */
}
/* 縦線（左端） */
.page-article--media-coverage-list .wp-block-table::before {
    content: '';
    position: absolute;
    left: 0;
    top: 32px;
    bottom: 28px;
    width: 1px;
    background: rgba(20,23,26,0.18);
    pointer-events: none;
}

.page-article--media-coverage-list .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.page-article--media-coverage-list .wp-block-table th,
.page-article--media-coverage-list .wp-block-table td {
    padding: 22px 0;
    vertical-align: top;
    line-height: 1.95;
    font-size: 15px;
    color: var(--ink);
}

/* 行間の薄い区切り（border-collapse の挙動に左右されないよう td 側に） */
.page-article--media-coverage-list .wp-block-table tbody tr + tr td {
    border-top: 1px solid rgba(20,23,26,0.08);
}

/* 日付セル（1列目） */
.page-article--media-coverage-list .wp-block-table td:first-child,
.page-article--media-coverage-list .wp-block-table th:first-child {
    position: relative;
    width: 180px;
    padding-left: 0;
    padding-right: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    text-align: left;
}
/* 縦線上の dot（td.left = 28、線 center は figure x=0.5、dot center を 0.5 に合わせる）
   width 11 → 中心ずらすため left = -28 - 5.5 = -33.5px、box-sizing border-box */
.page-article--media-coverage-list .wp-block-table td:first-child::before,
.page-article--media-coverage-list .wp-block-table th:first-child::before {
    content: '';
    position: absolute;
    left: -33.5px;
    top: 30px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ink-soft);
    box-sizing: border-box;
    z-index: 1;
    pointer-events: none;
}

/* 説明セル（2列目） */
.page-article--media-coverage-list .wp-block-table td:nth-child(2),
.page-article--media-coverage-list .wp-block-table th:nth-child(2) {
    padding-left: 28px;
}
.page-article--media-coverage-list .wp-block-table td p {
    margin: 0 0 0.55em;
}
.page-article--media-coverage-list .wp-block-table td p:last-child { margin-bottom: 0; }
.page-article--media-coverage-list .wp-block-table td ul,
.page-article--media-coverage-list .wp-block-table td ol {
    margin: 0.4em 0;
    padding-left: 1.2em;
}
.page-article--media-coverage-list .wp-block-table td li {
    margin-bottom: 0.3em;
    list-style: disc;
}
/* リンクは ink + 細い下線（entry-content の deep-green 上書き） */
.page-article--media-coverage-list .wp-block-table td a {
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 1px;
    transition: opacity 0.2s;
}
.page-article--media-coverage-list .wp-block-table td a:hover { opacity: 0.6; }

.page-article--media-coverage-list .wp-block-table figcaption { display: none; }

/* ----- モバイル: 縦積み ----- */
@media (max-width: 760px) {
    .page-article--media-coverage-list .wp-block-table { padding-left: 24px; }
    .page-article--media-coverage-list .wp-block-table::before {
        top: 20px;
        bottom: 20px;
    }
    .page-article--media-coverage-list .wp-block-table table,
    .page-article--media-coverage-list .wp-block-table thead,
    .page-article--media-coverage-list .wp-block-table tbody,
    .page-article--media-coverage-list .wp-block-table tr,
    .page-article--media-coverage-list .wp-block-table td,
    .page-article--media-coverage-list .wp-block-table th {
        display: block;
        width: auto;
    }
    .page-article--media-coverage-list .wp-block-table tbody tr {
        position: relative;
        padding: 18px 0;
    }
    .page-article--media-coverage-list .wp-block-table tbody tr + tr {
        border-top: 1px solid rgba(20,23,26,0.08);
    }
    .page-article--media-coverage-list .wp-block-table tbody tr + tr td { border-top: 0; }
    /* dot は tr 側に出す（SP の padding-left は 24 なので left = -24 - 5.5 = -29.5） */
    .page-article--media-coverage-list .wp-block-table tbody tr::before {
        content: '';
        position: absolute;
        left: -29.5px;
        top: 22px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--ink-soft);
        box-sizing: border-box;
        z-index: 1;
        pointer-events: none;
    }
    .page-article--media-coverage-list .wp-block-table td:first-child,
    .page-article--media-coverage-list .wp-block-table th:first-child {
        width: 100%;
        padding: 0 0 6px;
    }
    /* td 側の dot は SP では消す（tr ::before に置き換え） */
    .page-article--media-coverage-list .wp-block-table td:first-child::before,
    .page-article--media-coverage-list .wp-block-table th:first-child::before { display: none; }
    .page-article--media-coverage-list .wp-block-table td:nth-child(2),
    .page-article--media-coverage-list .wp-block-table th:nth-child(2) {
        padding: 0;
        font-size: 14px;
    }
}

/* Post meta */
.post-article__meta,
.news-article__meta {
    display: flex; gap: 12px; align-items: center;
    font-family: var(--font-mono);
    font-size: 12px; color: var(--ink-soft);
    letter-spacing: 0.05em; margin-bottom: 16px;
}
.post-article__cat {
    padding: 2px 10px;
    background: rgba(20,23,26,0.06);
    border-radius: 2px;
}
.post-article__thumb { margin: 40px 0 50px; }

/* Work article header */
.work-article__header { margin-bottom: 32px; }
.work-article__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.18em;
    margin-bottom: 18px;
}
.work-article__lead {
    margin-top: 20px;
    font-size: 14.5px; line-height: 1.85;
    color: var(--ink-soft);
    max-width: 720px;
}

/* Work article: hero + meta の 2 カラム split */
.work-article__split {
    margin: 32px 0 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}
.work-article__hero { margin: 0; }
.work-article__hero img { width: 100%; height: auto; }

/* Work article meta */
.work-article__meta {
    margin: 0;
    display: grid; grid-template-columns: 1fr; gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.work-article__meta > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    align-items: baseline;
}
.work-article__meta dt {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.14em;
}
.work-article__meta dd {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink);
}
.work-article__meta-link {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s;
}
.work-article__meta-link:hover { opacity: 0.65; }
.work-section { margin-bottom: 56px; }
.work-section h2 {
    font-size: 20px; font-weight: 600;
    padding-bottom: 10px; border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}

.work-article__back,
.news-article__back { margin-top: 80px; text-align: center; }

/* Post nav */
.post-article__nav {
    margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 20px;
    font-size: 13px; color: var(--ink-soft);
}
.post-article__nav a { color: var(--ink); }

@media (min-width: 960px) {
    .page-article, .post-article, .work-article, .news-article {
        padding: var(--subpage-pad-top-pc) var(--pad-x) var(--subpage-pad-bottom-pc);
    }
    .work-article__split {
        grid-template-columns: 58fr 42fr;
        gap: 40px;
        margin: 40px 0 72px;
    }
    .work-article__meta > div {
        grid-template-columns: 90px 1fr;
    }
}

/* ========== Archive ==========
 * NOTE: body にも `archive` クラスが WP から自動付与されるため（CPT アーカイブ時）、
 *   裸の `.archive` セレクタを書くと body にもマッチしてしまう。
 *   セクション側は必ず `section.archive` で絞ること。
 */
section.archive {
    padding: var(--subpage-pad-top-sp) var(--pad-x-sp) var(--subpage-pad-bottom-sp);
}
.archive__inner { max-width: var(--max-content); margin: 0 auto; }
.archive__header { text-align: center; margin-bottom: 40px; }
.archive__heading {
    font-size: clamp(32px, 6vw, 46px); font-weight: 500;
    letter-spacing: 0.04em;
}
.archive__empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.works-grid--archive,
.blog-grid--archive { margin-bottom: 60px; }

.pagination, .nav-links {
    text-align: center; margin-top: 40px;
    font-family: var(--font-mono); font-size: 13px;
}
.pagination .page-numbers, .nav-links .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 4px;
    border: 1px solid var(--line);
    color: var(--ink);
    transition: background 0.3s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover { background: var(--ink); color: var(--bg); }

@media (min-width: 960px) {
    section.archive {
        padding: var(--subpage-pad-top-pc) var(--pad-x) var(--subpage-pad-bottom-pc);
    }
    .archive__header { margin-bottom: 56px; }
}

/* ========== 404 ========== */
.error-404 {
    padding: var(--subpage-pad-top-sp) var(--pad-x-sp) var(--subpage-pad-bottom-sp);
    min-height: 60vh;
    display: flex; align-items: center; justify-content: center;
}
@media (min-width: 960px) {
    .error-404 {
        padding: var(--subpage-pad-top-pc) var(--pad-x) var(--subpage-pad-bottom-pc);
    }
}
.error-404__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.error-404__code {
    font-family: var(--font-mono);
    font-size: 72px; color: var(--ink-soft);
    margin-bottom: 16px; letter-spacing: 0.05em;
}
.error-404__title { font-size: 28px; font-weight: 500; margin-bottom: 16px; }
.error-404__desc { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* ========== Skip link ========== */
.skip-link {
    position: fixed; top: 8px; left: 8px; z-index: 200;
    padding: 10px 16px;
    background: #fff; color: var(--ink);
    border: 1px solid var(--accent-deep);
    border-radius: 4px;
    font-size: 13px; font-weight: 600;
    transform: translateY(-200%);
    transition: transform .15s;
}
.skip-link:focus { transform: none; }

/* ===== v3: 共通ヘッダー / フッター / ドロワー / 一画面TOP ===== */

/* ----- フレーム（header〜footer を束ねる。TOPでは一画面ロックの単位） ----- */
.frame {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    min-height: 100vh; min-height: 100dvh;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1);
}

/* ----- ヘッダー（ロゴのみの静かな帯） ----- */
.site-header {
    flex: 0 0 auto;
    display: flex; align-items: center;
    padding: 0 40px;
    height: 62px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.site-logo { display: flex; align-items: center; color: var(--ink); }
.site-logo__svg { height: 22px; width: auto; }

/* ----- フッター（帯型） ----- */
.site-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 24px;
    padding: 0 40px;
    height: 44px;
    font-size: 11px; color: var(--ink-soft);
}
.site-footer ul { display: flex; gap: 18px; margin-left: auto; }
.site-footer a:hover { color: var(--ink); }

/* ----- ハンバーガー（PC/SP共通） ----- */
.menu-btn {
    position: fixed; top: 9px; right: 18px; z-index: 80;
    width: 44px; height: 44px;
    background: transparent; border: 0; cursor: pointer;
    display: grid; place-items: center;
    padding: 0;
}
.menu-btn span {
    position: absolute;
    width: 22px; height: 1.5px;
    background: var(--ink); border-radius: 2px;
    transition: transform 0.4s var(--ease-out), background 0.3s;
}
.menu-btn span:nth-child(1) { transform: translateY(-4.5px); }
.menu-btn span:nth-child(2) { transform: translateY(4.5px); }
body.menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { transform: rotate(-45deg); }
.menu-btn:hover span { background: var(--accent-green-text); }

/* ----- スクリム ----- */
.scrim {
    position: fixed; inset: 0; z-index: 65;
    background: rgba(20,23,26,0.07);
    opacity: 0; visibility: hidden;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
body.menu-open .scrim {
    opacity: 1; visibility: visible; cursor: pointer;
    transition: opacity 0.45s ease;
}

/* ----- 引き出し（グリッド拡張ドロワー） ----- */
/* 閉時は visibility:hidden（スライド完了後に切替）でフォーカス・読み上げ対象から外す */
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
    width: 58vw; min-width: 560px;
    background: var(--bg);
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1), visibility 0s 0.6s;
    overflow: hidden;
    overscroll-behavior: contain;
}
body.menu-open .drawer {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1), visibility 0s 0s;
}
body.menu-open .frame { transform: translateX(-5vw); }
/* ドロワー開時は背面のスクロールをロック（PC含む全幅で適用） */
body.menu-open { overflow: hidden; }

/* ----- 管理バー表示時のオフセット（32px / ≤782px は 46px） ----- */
body.admin-bar .menu-btn { top: calc(9px + 32px); }
body.admin-bar .drawer,
body.admin-bar .scrim { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .menu-btn { top: calc(9px + 46px); }
    body.admin-bar .drawer,
    body.admin-bar .scrim { top: 46px; }
}

.drawer-inner {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
        "idx     preview"
        "contact contact";
}

/* --- 索引リスト --- */
.idx {
    grid-area: idx;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 8px 0 44px;
    border-right: 1px solid var(--line);
}
.idx ul { list-style: none; margin: 0; padding: 0; }
.idx li + li { border-top: 1px solid var(--line); }
.idx a, .idx .idx-link {
    display: flex; align-items: baseline; gap: 16px;
    padding: 12px 4px;
    cursor: pointer;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
body.menu-open .idx a, body.menu-open .idx .idx-link { opacity: 1; transform: none; }
/* リンク/インデックス項目のみに遅延（.idx-sub に当てるとアコーディオン開閉が遅延する） */
body.menu-open .idx li:nth-child(1) > a, body.menu-open .idx li:nth-child(1) > .idx-link { transition-delay: 0.30s; }
body.menu-open .idx li:nth-child(2) > a, body.menu-open .idx li:nth-child(2) > .idx-link { transition-delay: 0.34s; }
body.menu-open .idx li:nth-child(3) > a, body.menu-open .idx li:nth-child(3) > .idx-link { transition-delay: 0.38s; }
body.menu-open .idx li:nth-child(4) > a, body.menu-open .idx li:nth-child(4) > .idx-link { transition-delay: 0.42s; }
body.menu-open .idx li:nth-child(5) > a, body.menu-open .idx li:nth-child(5) > .idx-link { transition-delay: 0.46s; }
body.menu-open .idx li:nth-child(6) > a, body.menu-open .idx li:nth-child(6) > .idx-link { transition-delay: 0.50s; }
body.menu-open .idx li:nth-child(7) > a, body.menu-open .idx li:nth-child(7) > .idx-link { transition-delay: 0.54s; }
body.menu-open .idx li:nth-child(8) > a, body.menu-open .idx li:nth-child(8) > .idx-link { transition-delay: 0.58s; }
.idx-label {
    font-size: 17px; font-weight: 700; letter-spacing: 0.03em;
    position: relative;
}
.idx-label::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
    height: 2px; background: var(--accent-green);
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform 0.35s var(--ease-out);
}
.idx a:hover .idx-label::after,
.idx .idx-link:hover .idx-label::after,
.idx .is-active .idx-label::after,
.idx a.is-active .idx-label::after { transform: scaleX(1); }
/* 運営メディア・ツールの子リスト（モバイルのアコーディオンでのみ表示） */
.idx-sub { display: none; }

/* --- プレビュー面 --- */
.preview {
    grid-area: preview;
    position: relative;
    min-height: 0;
}
.prev-panel {
    position: absolute; inset: 0;
    padding: 0 40px;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; transform: translateY(12px);
    /* visibility で非アクティブ面のリンクをタブ順から除外 */
    visibility: hidden;
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s 0.45s;
    pointer-events: none;
}
.prev-panel.is-active {
    opacity: 1; transform: none; pointer-events: auto;
    visibility: visible;
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s 0s;
}
.prev-cap {
    font-family: var(--font-mono);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.prev-line {
    font-size: 13px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0;
    transition: opacity 0.25s;
}
a.prev-line:hover { opacity: 0.6; }
.prev-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-aqua); flex: 0 0 auto; }
.prev-title { display: none; }
.prev-thumbs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 12px;
}
.prev-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(79,196,160,0.16), rgba(116,188,217,0.12)),
        repeating-linear-gradient(135deg, rgba(20,23,26,0.05) 0 1px, transparent 1px 9px),
        var(--bg);
    transition: opacity 0.25s;
}
.prev-thumb:hover { opacity: 0.85; }
.prev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* アイキャッチ未設定時のプレースホルダー */
.prev-thumb__ph {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(135deg, #eef5f1, #dcebe3);
}
.prev-note { font-size: 12px; line-height: 1.8; color: var(--ink-soft); }

/* --- ドロワー内お問い合わせ帯 --- */
.drawer-contact {
    grid-area: contact;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 22px 44px;
    position: relative; overflow: hidden;
}
.drawer-contact::before {
    content: ""; position: absolute; inset: 0;
    background: var(--ink);
    transform: translateY(101%);
    transition: transform 0.45s cubic-bezier(.6,0,.15,1);
}
.drawer-contact > * { position: relative; z-index: 1; }
.drawer-contact:hover::before { transform: translateY(0); }
.drawer-contact:hover .contact-label { color: var(--bg); }
.drawer-contact:hover .contact-arr {
    background: var(--bg); color: var(--ink);
    transform: translateX(4px);
}

/* お問い合わせ帯の共通パーツ（TOP帯とドロワー帯で共用） */
.contact-label {
    font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
    transition: color 0.3s;
}
.contact-arr {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ink); color: var(--bg);
    display: grid; place-items: center; font-size: 14px;
    flex: 0 0 auto;
    transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

/* ----- カーソル追従の光（Canvas、TOPのみ出力） ----- */
.glowfield {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
    .glowfield { display: none; }
}

/* ===== v3: 一画面TOP（front-page の board） ===== */
body.home .site-main {
    display: flex; flex-direction: column;
    flex: 1 1 auto; min-height: 0;
}
.board {
    flex: 1 1 auto; min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
        "identity modules"
        "contact  contact";
}
.cell { position: relative; }

/* --- アイデンティティ --- */
.identity {
    grid-area: identity;
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 44px 48px;
    min-height: 0;
}
.identity-heading {
    font-size: clamp(34px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: 0.005em;
    margin-bottom: 26px;
}
.identity-heading .kp { display: inline-block; }
.u-sweep { position: relative; display: inline-block; }
.u-sweep::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em;
    height: 3px; background: var(--accent-green);
    transform: scaleX(0); transform-origin: 0 50%;
    animation: fika-sweep 1100ms var(--ease-out) 900ms forwards;
}
@keyframes fika-sweep { to { transform: scaleX(1); } }
.identity-body {
    font-size: 13.5px; line-height: 2.15;
    color: var(--ink-soft);
    max-width: 36em;
}
.identity-body + .identity-body { margin-top: 10px; }
.identity-links { display: flex; gap: 28px; margin-top: 28px; }
.tx-link {
    font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 3px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: color 0.25s, border-color 0.25s;
}
.tx-link .arr { transition: transform 0.3s var(--ease-out); }
.tx-link:hover { color: var(--accent-green-text); border-color: var(--accent-green-text); }
.tx-link:hover .arr { transform: translateX(4px); }

/* --- 右モジュール列 --- */
.modules {
    grid-area: modules;
    display: flex; flex-direction: column;
    min-height: 0;
}
.svc {
    border-bottom: 1px solid var(--line);
    padding: 24px 36px 22px;
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column;
}
.cell-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 2px 12px;
    margin-bottom: 14px;
}
.cell-title { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.cell-more {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
    color: var(--accent-green-text);
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.cell-more .arr { transition: transform 0.3s var(--ease-out); }
.cell-more:hover .arr { transform: translateX(3px); }
.svc-list {
    list-style: none; margin: 0; padding: 0;
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column; justify-content: center;
}
.svc-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 11px 0;
}
.svc-item + .svc-item { border-top: 1px solid var(--line); }
.svc-num {
    flex: 0 0 auto;
    width: 22px; height: 22px; border-radius: 50%;
    /* 白文字 11px のため AA を満たす deep green（#4fc4a0 は 2.16:1 で不可） */
    background: var(--accent-green-text); color: #fff;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.svc-name { font-size: 14px; font-weight: 700; line-height: 1.6; }
.svc-desc { font-size: 12px; line-height: 1.8; color: var(--ink-soft); margin-top: 2px; }

/* --- フィード（ブログ / お知らせ） --- */
.feeds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1 1 auto; min-height: 0;
}
.feed { padding: 22px 36px 24px; }
.feed--blog { border-right: 1px solid var(--line); }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li + li { border-top: 1px solid var(--line); }
.feed-list a {
    display: block; padding: 9px 0;
    transition: opacity 0.25s;
}
.feed-list a:hover { opacity: 0.6; }
.feed-date {
    font-family: var(--font-mono);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
    color: var(--ink-soft);
    /* color: var(--accent-green-text); */
    display: block; line-height: 1.6;
}
.feed--news .feed-date { color: var(--ink-soft); }
.feed-title {
    font-size: 12.5px; font-weight: 500; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- お問い合わせ帯（帯全体が1つのリンク） --- */
.contact {
    grid-area: contact;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 24px 48px;
    position: relative; overflow: hidden;
}
.contact::before {
    content: ""; position: absolute; inset: 0;
    background: var(--ink);
    transform: translateY(101%);
    transition: transform 0.45s cubic-bezier(.6,0,.15,1);
}
.contact > * { position: relative; z-index: 1; }
.contact:hover::before { transform: translateY(0); }
.contact:hover .contact-label { color: var(--bg); }
.contact:hover .contact-arr {
    background: var(--bg); color: var(--ink);
    transform: translateX(4px);
}

/* --- TOP の出現アニメーション --- */
.rv { opacity: 0; transform: translateY(14px); animation: fika-rv 0.9s var(--ease-out) forwards; }
.rv-1 { animation-delay: 0.15s; }
.rv-2 { animation-delay: 0.3s; }
.rv-3 { animation-delay: 0.45s; }
.rv-4 { animation-delay: 0.6s; }
.rv-5 { animation-delay: 0.75s; }
.rv-6 { animation-delay: 0.9s; }
@keyframes fika-rv { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .rv { animation-duration: 0.01s; animation-delay: 0s; }
    .u-sweep::after { animation-duration: 0.01s; animation-delay: 0s; }
}

/* ===== v3: レスポンシブ3層 ===== */
/* 1100px〜: 一画面固定（TOPのみ） / 768〜1099px: 2カラム・スクロール可 / 〜767px: 1カラム。
   ドロワーは「767px以下 または タッチ環境」でモバイル版 */

/* ----- PC 一画面固定（TOPのみ） ----- */
@media (min-width: 1100px) {
    body.home { height: 100vh; height: 100dvh; overflow: hidden; }
    body.home .frame { height: 100vh; height: 100dvh; }
}

/* ----- 低い画面（ノートPC等）：TOPの余白を圧縮して見切れを防ぐ ----- */
@media (min-width: 1100px) and (max-height: 720px) {
    .svc { padding: 16px 36px 14px; }
    .cell-head { margin-bottom: 8px; }
    .svc-item { padding: 8px 0; }
    .svc-desc { font-size: 11.5px; line-height: 1.6; }
    .feed { padding: 16px 36px 18px; }
    .feed-list a { padding: 7px 0; }
    .identity-heading { margin-bottom: 18px; }
    .identity-body { line-height: 1.95; }
    .contact { padding: 18px 48px; }
}

/* ----- さらに低い画面：一画面に収まらないためロックを解除して通常スクロール ----- */
@media (min-width: 1100px) and (max-height: 600px) {
    body.home { height: auto; overflow: auto; }
    body.home .frame { height: auto; }
}

/* ----- 中間幅（タブレット〜小さめPC） ----- */
@media (min-width: 768px) and (max-width: 1099px) {
    .site-header { padding: 0 28px; }
    .identity { padding: 40px 32px; }
    .identity-heading { font-size: clamp(24px, 3.4vw, 36px); }
    .svc { padding: 22px 28px 20px; justify-content: center; }
    .svc-list { flex: 0 0 auto; }
    .feed { padding: 20px 28px 22px; }
    .contact { padding: 22px 32px; }
}
@media (min-width: 768px) and (max-width: 899px) {
    .feeds { grid-template-columns: 1fr; }
    .feed--blog { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ----- モバイル（1カラム積み） ----- */
@media (max-width: 767px) {
    .board { display: block; }
    .identity { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 24px; }
    .identity-heading { font-size: clamp(24px, 6.8vw, 34px); }
    .feeds { grid-template-columns: 1fr; }
    .feed--blog { border-right: 0; border-bottom: 1px solid var(--line); }
    .feed, .svc { padding-left: 24px; padding-right: 24px; }
    .contact { padding: 22px 24px; }
    .site-header { padding: 0 24px; }
    .site-footer { height: auto; flex-wrap: wrap; gap: 8px 24px; padding: 14px 24px; }
    .site-footer ul { margin-left: 0; flex-wrap: wrap; }
}

/* ----- モバイル版ドロワー（狭い幅 または タッチ環境） ----- */
/* PC と同じ縦リスト。運営メディア・ツールはタップで開くアコーディオン */
@media (max-width: 767px), (hover: none) {
    body.menu-open .frame { transform: none; }
    .drawer { width: 100%; min-width: 0; border-left: 0; }
    .drawer-inner {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        grid-template-areas: "idx" "contact";
    }
    .preview { display: none; }
    .idx {
        justify-content: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 78px 24px 30px;
        border-right: 0;
    }
    .idx a, .idx .idx-link { padding: 14px 4px; }
    /* 下線アニメは PC 専用。モバイルではプレビュー連動の is-active も */
    /* タップ後に居座る :hover も意味を持たないため、すべて出さない */
    .idx a:hover .idx-label::after,
    .idx .idx-link:hover .idx-label::after,
    .idx .is-active .idx-label::after,
    .idx a.is-active .idx-label::after { transform: scaleX(0); }
    /* アコーディオン開閉マーク：＋ → － へ縦棒が縮む（背景グラデの縦棒だけ縮める） */
    .idx-has-sub .idx-link { align-items: center; }
    .idx-has-sub .idx-link::after {
        content: "";
        margin-left: auto;
        flex: 0 0 auto;
        width: 13px; height: 13px;
        background-image:
            linear-gradient(var(--ink-soft), var(--ink-soft)),
            linear-gradient(var(--ink-soft), var(--ink-soft));
        background-repeat: no-repeat;
        background-position: center;
        background-size: 13px 1.5px, 1.5px 13px; /* 横棒 / 縦棒 */
        transition: background-size 0.35s var(--ease-out);
    }
    .idx-has-sub.is-open .idx-link::after {
        background-size: 13px 1.5px, 1.5px 0; /* 縦棒が消えて － に */
    }
    /* サブリスト：実ピクセル height を JS で与えてスライド開閉（fr 補間より滑らか） */
    .idx-sub {
        display: block; /* PC の display:none を打ち消す */
        height: 0;
        overflow: hidden;
        /* visibility で閉時のリンクをタブ順から除外 */
        visibility: hidden;
        transition: height 0.35s var(--ease-out), visibility 0s 0.35s;
    }
    .idx-has-sub.is-open .idx-sub {
        visibility: visible;
        transition: height 0.35s var(--ease-out), visibility 0s 0s;
    }
    .idx-sub__inner { padding: 0 4px 16px; }
    .idx-sub .prev-line { font-size: 14px; padding: 8px 0; }
    .drawer-contact { padding: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .idx-sub, .idx-has-sub .idx-link::after { transition: none; }
}

/* ===== v3: 固定ページ本文のあしらい（表・リスト） ===== */
/* media-coverage-list はタイムライン表カスタムがあるため表スタイルから除外 */

/* --- 表：罫線だらけの格子をやめ、定義リスト型に --- */
.page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table {
    margin: 1.6em 0 2.6em;
}
.page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    font-size: 14px;
    line-height: 1.9;
}
.page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table tr {
    border-bottom: 1px solid var(--line);
}
.page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table tr:first-child {
    border-top: 1px solid var(--line);
}
.page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table th,
.page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table td {
    border: 0;
    background: transparent;
    padding: 14px 8px 14px 0;
    text-align: left;
    vertical-align: top;
    line-height: 1.85;
}
.page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table th {
    width: 9.5em;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: transparent;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table th,
    .page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table td {
        display: block;
        width: auto;
    }
    .page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table th {
        padding: 13px 0 0;
    }
    .page-article:not(.page-article--media-coverage-list) .entry-content .wp-block-table td {
        padding: 2px 0 13px;
    }
}

/* --- 箇条書き：disc をやめてブランドのドットに --- */
.entry-content ul { margin-left: 0; }
.entry-content ul li {
    list-style: none;
    position: relative;
    padding-left: 19px;
    margin-bottom: 0.55em;
}
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-aqua);
}
/* 入れ子は輪郭だけのドットで階層を表現 */
.entry-content ul ul { margin-top: 0.55em; margin-bottom: 0; }
.entry-content ul ul li::before {
    background: transparent;
    border: 1.5px solid var(--accent-aqua);
}
.entry-content ol li::marker {
    color: var(--accent-green-text);
    font-weight: 600;
}

/* ===== v3: インライン書式「緑アンダーライン」（fika/underline） ===== */
/* background-image 方式: 改行をまたいでも下線が追従する */
.fika-underline {
    background-image: linear-gradient(transparent calc(100% - 3px), var(--accent-green) calc(100% - 3px));
    background-repeat: no-repeat;
    padding-bottom: 1px;
}

/* ===== v3: 記事リッチテキスト（見出し・リスト・コード） ===== */

/* --- 見出し階層：h2 は無彩色のアンダーライン、h3 は緑の小さなスクエア --- */
.entry-content h2 {
    padding-bottom: 0.15em;
    border-bottom: 1px solid #c7c7c7;
    line-height: 1.5;
}
/* 会社概要ページのみ H2 の下線なし */
.page-article--about .entry-content h2 {
    padding-bottom: 0;
    border-bottom: 0;
}
.entry-content h3::before {
    content: "";
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 2px;
    background: var(--accent-green);
    margin-right: 10px;
    transform: translateY(-1px);
}
.entry-content h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin-top: 1.6em;
    margin-bottom: 0.7em;
}

/* --- リスト：左端から少し下げてドットが食い込んで見えないように --- */
.entry-content ul { padding-left: 6px; }
.entry-content ol { margin-left: 1.6em; }

/* --- コードブロック：ダークパネル --- */
.entry-content .wp-block-code {
    background: var(--ink);
    color: #e9efeb;
    border: 0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 1.6em 0 2em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.entry-content .wp-block-code code {
    display: block;
    background: transparent;
    color: inherit;
    padding: 0;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0;
    white-space: pre;
    tab-size: 4;
}

/* --- インラインコード：薄いグレー地のチップ --- */
.entry-content :not(pre) > code {
    background: rgba(20,23,26,0.07);
    border-radius: 4px;
    padding: 0.12em 0.45em;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86em;
}
