@charset "utf-8";

/* ----------------------------------------------------------
   Article experience: /articles, /category/news, /column,
   article singles, and the editorial blocks used inside
   article bodies (TOC, callout, CTA button, balloon, FAQ).

   Loaded on top of style.css by the archive / hub / single
   layouts only, so pages that never show an article do not
   pay for it.
---------------------------------------------------------- */

:root {
    --article-measure: 74rem;
    --article-radius: 1.2rem;
}

.slot-article-toc:empty,
.slot-news-notice:empty,
.slot-column-intro:empty {
    display: none;
}

/* ----------------------------------------------------------
   Section navigation, category chips, news kinds
---------------------------------------------------------- */

.section-nav {
    margin: 0 0 3.2rem;
}

.section-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 4.4rem;
    padding: 0.6rem 1.8rem;
    border: 1px solid var(--color-border);
    border-radius: 99px;
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 1.4rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.section-nav a:hover {
    border-color: var(--color-brand-ink);
    color: var(--color-brand-ink);
}

.section-nav a[aria-current="page"] {
    border-color: var(--color-brand-ink);
    background: var(--color-brand-ink);
    color: #ffffff;
}

/* The category list used to be a second row of pills sitting directly under
   .section-nav, near enough in shape that the two read as one broken control.
   It is now demoted to what it actually is: a labelled secondary filter, in
   text, subordinate to the section tabs above it. */
.category-chips,
.news-kinds {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.8rem 1.6rem;
    margin: 0 0 3.2rem;
}

.category-chips__label,
.news-kinds__label {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.3rem;
    font-weight: 700;
}

.category-chips ul,
.news-kinds ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-chips a,
.news-kinds a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.2rem;
    color: #344054;
    font-size: 1.4rem;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    transition: color 0.2s ease;
}

.category-chips a:hover,
.news-kinds a:hover {
    color: var(--color-brand-ink);
}

.category-chips__count,
.news-kinds__count {
    color: var(--color-muted);
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.archive-header__lead {
    max-width: var(--article-measure);
    margin: 1.6rem 0 0;
    color: var(--color-muted);
    font-size: 1.5rem;
}

/* ----------------------------------------------------------
   Lightweight dated rows (news backlog, cluster overflow)
---------------------------------------------------------- */

.post-rows {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
}

.post-row {
    border-bottom: 1px solid var(--color-border);
}

.post-row__link {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1.6rem;
    align-items: baseline;
    padding: 1.6rem 0.4rem;
    transition: background 0.2s ease;
}

.post-row__link:hover {
    background: var(--color-surface-soft);
}

.post-row__date {
    color: var(--color-muted);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
}

.post-row__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.6;
}

.post-row__link:hover .post-row__title {
    color: var(--color-brand-ink);
}

.pagination__gap {
    border: 0;
    background: none;
    color: var(--color-muted);
}

.pagination__status {
    margin: 1.6rem 0 0;
    color: var(--color-muted);
    font-size: 1.3rem;
    text-align: center;
}

/* ----------------------------------------------------------
   Conversion band
---------------------------------------------------------- */

.article-cta {
    margin: 6.4rem 0 0;
    padding: 4.8rem 3.2rem;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, #e9f9fb 0%, #f4f8fc 100%);
    text-align: center;
}

.article-cta--compact {
    margin-top: 4.8rem;
    padding: 3.2rem 2.4rem;
}

.article-cta__title {
    margin: 0;
    color: #101828;
    font-size: clamp(2.2rem, 3.6vw, 3rem);
    line-height: 1.4;
}

.article-cta__lead {
    max-width: 60rem;
    margin: 1.6rem auto 0;
    color: #344054;
    font-size: 1.5rem;
}

.article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 2.8rem;
}

.article-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24rem;
    min-height: 5.2rem;
    padding: 1rem 2.4rem;
    border: 2px solid var(--color-brand-ink);
    border-radius: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.article-cta__button--primary {
    background: var(--color-brand-ink);
    color: #ffffff;
}

.article-cta__button--primary:hover {
    background: var(--color-brand-ink-dark);
}

.article-cta__button--secondary {
    background: #ffffff;
    color: var(--color-brand-ink);
}

.article-cta__button:hover {
    transform: translateY(-2px);
}

.article-cta__note {
    margin: 1.6rem 0 0;
    color: var(--color-muted);
    font-size: 1.2rem;
}

/* ----------------------------------------------------------
   /column hub
---------------------------------------------------------- */

.column-hub__header {
    margin-bottom: 3.2rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--color-border);
}

.column-hub__header h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.column-hub__lead {
    max-width: var(--article-measure);
    margin: 1.6rem 0 0;
    color: #344054;
    font-size: 1.6rem;
}

.column-hub__lead a {
    color: #076fbd;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.column-hub__body {
    margin-top: 2.4rem;
}

.cluster-nav {
    margin: 0 0 4rem;
}

.cluster-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cluster-nav a {
    display: flex;
    align-items: center;
    min-height: 6rem;
    padding: 1.2rem 1.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--article-radius);
    background: var(--color-surface);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    transition: border-color 0.2s ease, color 0.2s ease;
}

/* Drawn chevron rather than a "↓" character, so the jump affordance keeps one
   stroke weight instead of inheriting whatever the font ships. */
.cluster-nav a::after {
    width: 0.8rem;
    height: 0.8rem;
    margin-left: auto;
    border-right: 2px solid var(--color-brand-ink);
    border-bottom: 2px solid var(--color-brand-ink);
    content: "";
    transform: translateY(-0.2rem) rotate(45deg);
}

.cluster-nav a:hover {
    border-color: var(--color-brand-ink);
    color: var(--color-brand-ink);
}

.column-pillars {
    margin: 0 0 5.6rem;
    padding: 3.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--article-radius);
    background: var(--color-brand-soft);
}

.column-pillars h2 {
    margin: 0;
    font-size: 2.2rem;
}

.column-pillars__lead {
    margin: 0.8rem 0 0;
    color: var(--color-muted);
    font-size: 1.4rem;
}

.column-pillars__list {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.column-pillars__list li + li {
    margin-top: 1.2rem;
}

.column-pillars__list a {
    display: block;
    padding-left: 2.4rem;
    color: #076fbd;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    position: relative;
}

.column-pillars__list a::before {
    position: absolute;
    top: 0.9em;
    left: 0.2rem;
    width: 0.8rem;
    height: 0.8rem;
    border-top: 2px solid var(--color-brand-ink);
    border-right: 2px solid var(--color-brand-ink);
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.cluster {
    margin: 0 0 6.4rem;
    scroll-margin-top: 9rem;
}

.cluster__head {
    margin-bottom: 2.4rem;
}

.cluster__head h2 {
    margin: 0;
    font-size: clamp(2.4rem, 3.4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.cluster__lead {
    max-width: var(--article-measure);
    margin: 1.2rem 0 0;
    color: var(--color-muted);
    font-size: 1.5rem;
}

.cluster .post-rows {
    margin-top: 2.4rem;
}

/* A cluster too young for the card grid still has to look deliberate, so its
   rows carry a little more weight than the overflow rows under a full grid. */
.cluster--thin .post-rows {
    margin-top: 0;
}

.cluster--thin .post-row__link {
    padding: 2rem 0.4rem;
}

.cluster--thin .post-row__title {
    font-size: 1.8rem;
    font-weight: 700;
}

.cluster__more {
    margin: 2.4rem 0 0;
}

.cluster__more a,
.entry-related__more a,
.news-archive__crosslink a {
    color: #076fbd;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ----------------------------------------------------------
   News archive
---------------------------------------------------------- */

.news-archive__heading {
    margin: 4rem 0 2rem;
    font-size: 2rem;
}

.news-archive__heading:first-of-type {
    margin-top: 0;
}

.news-archive__notice,
.entry__notice {
    margin: 0 0 2.4rem;
    padding: 1.4rem 1.8rem;
    border: 1px solid #f0d8a0;
    border-radius: 0.6rem;
    background: #fffaf0;
    color: #6b4e00;
    font-size: 1.35rem;
    line-height: 1.7;
}

.news-archive__crosslink {
    margin: 4rem 0 0;
    font-size: 1.5rem;
}

/* ----------------------------------------------------------
   Article single
---------------------------------------------------------- */

.entry__lede {
    max-width: var(--article-measure);
    margin: 2rem 0 0;
    color: #344054;
    font-size: 1.7rem;
    line-height: 1.8;
}

.entry__author {
    font-weight: 700;
}

.entry__kind {
    padding: 0.2rem 0.8rem;
    border-radius: 0.4rem;
    background: var(--color-surface-soft);
    color: #344054;
    font-size: 1.2rem;
    font-weight: 700;
}

.entry__authorbox {
    margin: 4.8rem 0 0;
    padding: 2.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--article-radius);
    background: var(--color-surface-soft);
}

.entry__authorbox-eyebrow {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.entry__authorbox-name {
    margin: 0.6rem 0 0;
    font-size: 1.7rem;
    font-weight: 700;
}

.entry__authorbox-bio {
    margin: 0.8rem 0 0;
    color: #475467;
    font-size: 1.4rem;
}

.entry__share {
    margin: 3.2rem 0 0;
}

.entry__share:empty {
    display: none;
}

.entry-related {
    margin: 6.4rem 0 0;
    padding-top: 3.2rem;
    border-top: 1px solid var(--color-border);
}

.entry-related h2 {
    margin: 0 0 2.4rem;
    font-size: 2.2rem;
}

.entry-related__lead {
    margin: -1.6rem 0 2.4rem;
    color: var(--color-muted);
    font-size: 1.4rem;
}

.entry-related__more {
    margin: 2.4rem 0 0;
}

.post-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ----------------------------------------------------------
   Table of contents (core `toc` component)
---------------------------------------------------------- */

.td-c-toc {
    margin: 0 0 4rem;
    padding: 2.4rem 2.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--article-radius);
    background: var(--color-surface-soft);
}

.td-c-toc-title {
    margin: 0 0 1.4rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.td-c-toc-list {
    margin: 0;
    padding-left: 2rem;
    list-style: decimal;
}

.td-c-toc-item {
    margin: 0.6rem 0;
    font-size: 1.5rem;
    line-height: 1.6;
}

.td-c-toc-level-3 {
    margin-left: 1.6rem;
    font-size: 1.4rem;
    list-style: none;
}

.td-c-toc-level-3::before {
    margin-right: 0.6rem;
    content: "–";
    color: var(--color-muted);
}

.td-c-toc-list a {
    color: #076fbd;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ----------------------------------------------------------
   Editorial blocks: key points, FAQ, callout, CTA button,
   balloon. These appear inside .entry-content, so margins
   match the body rhythm.
---------------------------------------------------------- */

.column-keypoints {
    margin: 0 0 3.2rem;
    padding: 2.4rem 2.8rem;
    border: 1px solid #b6e3ea;
    border-radius: 0.8rem;
    background: var(--color-brand-soft);
}

.column-keypoints__title {
    margin: 0 0 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.column-keypoints__list {
    margin: 0;
    padding-left: 1.6em;
    list-style: disc;
    font-size: 1.55rem;
}

.column-keypoints__list li + li {
    margin-top: 0.6rem;
}

.column-faq {
    margin: 5.6rem 0 0;
}

.column-faq__title {
    margin: 0 0 2rem;
    font-size: 2.2rem;
}

.column-faq__list {
    margin: 0;
    border-top: 1px solid var(--color-border);
}

.column-faq__question {
    margin: 0;
    padding: 1.8rem 0 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.column-faq__question::before {
    margin-right: 0.8rem;
    content: "Q.";
    color: var(--color-brand-ink);
}

.column-faq__answer {
    margin: 0;
    padding: 0 0 1.8rem;
    border-bottom: 1px solid var(--color-border);
    color: #344054;
    font-size: 1.55rem;
    line-height: 1.8;
}

/* Callouts are told apart by their tint and their title, not by a coloured
   slab down the left edge. A hairline in the same hue closes the box without
   turning every aside into a tab. */
.entry-content .td-callout,
.td-callout {
    margin: 0 0 2.4rem;
    padding: 1.8rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 0.8rem;
    background: var(--color-surface-soft);
}

.td-callout--info {
    border-color: #b2ddff;
    background: #eff8ff;
}

.td-callout--success {
    border-color: #a9e5c3;
    background: #ecfdf3;
}

.td-callout--warning {
    border-color: #f0d8a0;
    background: #fffaf0;
}

.td-callout--danger {
    border-color: #f5c4c0;
    background: #fef3f2;
}

.td-callout-title {
    margin: 0 0 0.6rem;
    font-size: 1.55rem;
    font-weight: 700;
}

.td-callout-body {
    font-size: 1.5rem;
    line-height: 1.8;
}

.td-cta {
    margin: 3.2rem 0;
}

.td-cta--align-center {
    text-align: center;
}

.td-cta--align-right {
    text-align: right;
}

.td-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.8rem;
    padding: 1rem 2.8rem;
    border: 2px solid var(--color-brand-ink);
    border-radius: 0.8rem;
    background: var(--color-brand-ink);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.td-cta-button--secondary {
    border-color: #344054;
    background: #344054;
}

.td-cta-button--outline {
    background: #ffffff;
    color: var(--color-brand-ink);
}

.td-cta-button--size-small {
    min-height: 4rem;
    padding: 0.6rem 1.8rem;
    font-size: 1.4rem;
}

.td-cta-button--size-large {
    min-height: 5.6rem;
    padding: 1.2rem 3.6rem;
    font-size: 1.8rem;
}

.td-cta-button--disabled {
    border-color: var(--color-border);
    background: var(--color-surface-soft);
    color: var(--color-muted);
}

.td-cta-caption {
    margin: 1rem 0 0;
    color: var(--color-muted);
    font-size: 1.2rem;
}

.td-balloon {
    display: flex;
    gap: 1.6rem;
    margin: 0 0 2.4rem;
}

.td-balloon--right {
    flex-direction: row-reverse;
}

.td-balloon-avatar {
    flex: 0 0 6.4rem;
    text-align: center;
}

.td-balloon-avatar img,
.td-balloon-avatar-fallback {
    display: grid;
    width: 6.4rem;
    height: 6.4rem;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-surface-soft);
    object-fit: cover;
}

.td-balloon-speaker {
    display: block;
    margin-top: 0.4rem;
    color: var(--color-muted);
    font-size: 1.2rem;
}

.td-balloon-bubble {
    position: relative;
    padding: 1.6rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: var(--color-surface);
    font-size: 1.5rem;
    line-height: 1.8;
}

/* ----------------------------------------------------------
   Showcase hub and case studies
---------------------------------------------------------- */

.showcase-hub__body {
    margin-top: 2.4rem;
}

.showcase-hub__cta {
    margin: 6.4rem 0 0;
    padding: 4rem 3.2rem;
    border: 1px solid #b6e3ea;
    border-radius: 1.6rem;
    background: var(--color-brand-soft);
    text-align: center;
}

.showcase-hub__cta h2 {
    margin: 0;
    font-size: clamp(2.2rem, 3.4vw, 2.8rem);
}

.showcase-hub__cta p {
    max-width: 60rem;
    margin: 1.6rem auto 0;
    color: #344054;
    font-size: 1.5rem;
}

.showcase-hub__cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 2.8rem;
}

/* Case bodies came from ACF fields that flattened into ordinary headings, so
   the numbered section titles ("01 会社紹介") carry the visual weight. */
.entry--showcase .entry-content h2 {
    margin-top: 4.8rem;
}

.entry--showcase .entry-content h2:first-child {
    margin-top: 0;
}

/* ----------------------------------------------------------
   Comparison table (column_compare) and imported tables
---------------------------------------------------------- */

.column-compare {
    margin: 0 0 3.2rem;
}

.column-compare__caption {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.column-compare__scroll,
.entry-content .widget-custom-html {
    overflow-x: auto;
}

.column-compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.column-compare th,
.column-compare td {
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.column-compare thead th {
    background: var(--color-brand-ink);
    color: #ffffff;
    font-weight: 700;
}

.column-compare tbody th {
    background: var(--color-surface-soft);
    font-weight: 700;
}

.column-compare tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.column-compare__note {
    margin: 1rem 0 0;
    color: var(--color-muted);
    font-size: 1.3rem;
}

/* Imported WordPress tables arrive inside a custom_html block. Give them the
   same affordances as the theme's own table so the two do not look unrelated
   while the legacy bodies are still being rewritten. */
.entry-content .widget-custom-html table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.entry-content .widget-custom-html th,
.entry-content .widget-custom-html td {
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.entry-content .widget-custom-html thead th {
    background: var(--color-surface-soft);
    font-weight: 700;
}

.entry-content .widget-custom-html figure {
    margin: 0;
}

/* Imported YouTube / rich embeds keep their WordPress wrapper markup. */
.entry-content .wp-block-embed__wrapper,
.entry-content .widget-custom-html .wp-block-embed__wrapper {
    position: relative;
    padding-top: 56.25%;
}

.entry-content .wp-block-embed__wrapper > iframe,
.entry-content .widget-custom-html iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ----------------------------------------------------------
   Share links
---------------------------------------------------------- */

.td-social-share-title {
    margin: 0 0 1rem;
    color: var(--color-muted);
    font-size: 1.3rem;
    font-weight: 700;
}

.td-social-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.td-social-share-list a {
    min-height: 4rem;
    padding: 0.6rem 1.6rem;
    border-radius: 0.6rem;
    font-size: 1.35rem;
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */

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

@media (max-width: 640px) {
    .post-row__link {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    /* Reflow the comparison table into stacked rows rather than making the
       reader scroll a 4-column table sideways on a phone. */
    .column-compare thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .column-compare tr {
        display: block;
        margin-bottom: 1.6rem;
        border: 1px solid var(--color-border);
        border-radius: 0.8rem;
        overflow: hidden;
    }

    .column-compare th,
    .column-compare td {
        display: block;
        border: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .column-compare tr > :last-child {
        border-bottom: 0;
    }

    .column-compare td[data-label]::before {
        display: block;
        margin-bottom: 0.2rem;
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 1.2rem;
        font-weight: 700;
    }

    .column-compare tbody th {
        background: var(--color-brand-ink);
        color: #ffffff;
    }

    .showcase-hub__cta {
        padding: 3.2rem 2rem;
    }

    .showcase-hub__cta-actions {
        flex-direction: column;
    }

    .post-grid--related {
        grid-template-columns: 1fr;
    }

    .article-cta {
        padding: 3.2rem 2rem;
    }

    .article-cta__button {
        width: 100%;
        min-width: 0;
    }

    .article-cta__actions {
        flex-direction: column;
    }

    .column-pillars,
    .td-c-toc {
        padding: 2rem 1.8rem;
    }

    .cluster-nav ul {
        grid-template-columns: 1fr;
    }

    .entry__lede {
        font-size: 1.6rem;
    }

    .td-balloon-avatar {
        flex-basis: 4.8rem;
    }

    .td-balloon-avatar img,
    .td-balloon-avatar-fallback {
        width: 4.8rem;
        height: 4.8rem;
    }
}
