body.hx-body {
    margin: 0;
    font-family: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    color: #333;
    background: #f9f9f9;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.hx-wrap {
    max-width: 980px;
    margin: 32px auto 64px;
    padding: 0 16px;
}

.hx-breadcrumb {
    font-size: .85rem;
    color: var(--hx-muted);
    margin-bottom: 12px
}

.hx-hero {
    background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
    padding: 24px;
    box-shadow: var(--hx-shadow);
}

.hx-hero h1 {
    margin: 0 0 6px;
    font-size: 1.6rem;
}

.hx-hero .hx-sub {
    color: var(--hx-muted);
    font-size: .95rem;
    margin-top: 4px
}

.hx-badge {
    display: inline-block;
    font-size: .8rem;
    border: 1px solid var(--hx-border);
    background: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 8px;
}

.hx-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 50px 0 0;
}

@media (max-width:820px) {
    .hx-grid {
        grid-template-columns: 1fr
    }
}

.hx-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

.hx-card h3 {
    margin-top: 0;
    font-size: 1.1rem
}

.hx-list {
    padding-left: 1.1rem;
    margin: 0
}

.hx-note {
    font-size: .9rem;
    color: var(--hx-muted);
}

.hx-ref {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
    background: #fff;
    border-left: 4px solid var(--hx-accent);
    padding: 14px 16px;
    border-radius: 10px;
}

.hx-meta {
    margin-top: 16px;
    font-size: .85rem;
    color: var(--hx-muted)
}

.hx-footer {
    margin-top: 20px;
    padding-top: 8px;
    border-top: 1px dashed var(--hx-border);
    font-size: .85rem;
    color: var(--hx-muted);
}

.hx-cta {
    margin-top: 10px;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--hx-border);
    text-decoration: none;
    color: var(--hx-ink);
    background: #fff;
}

.hx-hcp-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 14px 0;
}

.hx-kakunin {
    font-size: .9rem;
    color: var(--hx-muted);
    margin: 0
}


.topics_single .inner {
    max-width: 1200px;
}

.topics_single .container {
    border-radius: 20px;
    -webkit-box-shadow: 0 0 10px #d7d7d7;
    box-shadow: 0 0 10px #d7d7d7;
    padding: 50px 80px 80px;
}

.topics_single .container .contents {
    margin-top: 50px;
}

.topics_single .container h2 {
    font-size: 1.9rem;
    line-height: 1.6;
    font-weight: bold;
    color: #000;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
    display: inline-block;
    margin-right: 10px;
}

#topics-single section {
    padding: 1rem 0;
}

#topics-single h1,
#topics-single h2,
#topics-single h3 {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #1a2c5e;
    /* æ·±ã„é’è‰² */
    margin-bottom: 0.6rem;
}

#topics-single h1 {
    font-size: 2em;
    border-bottom: 2px solid #1a2c5e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#topics-single p,
#topics-single li {
    font-size: 16px;
    /* margin-bottom: 1.8rem; */
    line-height: 1.9;
    color: #333;
    text-align: justify;
}

#topics-single ul {
    margin: 16px 0 16px 1.5em;
    padding: 0;
    list-style-type: disc;
}

#topics-single ul li {
    /* margin-bottom: 8px; */
    line-height: 1.8;
}

#topics-single ul li:last-child {
    margin-bottom: 0;
}

#topics-single h2 {
    display: block;
    font-size: 1.6em;
    /* margin: 60px 0 30px; */
    background: transparent;
    padding: 10px 15px;
    border-left: 6px solid #1a2c5e;
    border-bottom: 2px solid #1a2c5e;
    color: #1a2c5e;
    background: #f0f4f8;
    /* 薄い青グレーの背景で視認性を上げる */
}

#topics-single h3 {
    font-size: 1.3em;
    margin: 40px 0 20px;
    padding-left: 12px;
    border-left: 4px solid #1a2c5e;
    color: #1a2c5e;
    text-align: left;
    /* 中央揃えをやめて左揃えに */
}

#topics-single .figure {
    margin: 30px 0;
    text-align: center;
}

.figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.figure-caption {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    line-height: 1.6;
    text-align: left;
}

#topics-single a {
    color: #1a2c5e;
    text-decoration: underline;
}

#topics-single a:hover {
    text-decoration: none;
    opacity: 0.8;
}

strong {
    color: #1a2c5e;
    font-weight: bold;
    background: linear-gradient(transparent 70%, #dce4ef 70%);
    padding: 0 4px;
    /* å¼·èª¿ã®ãŸã‚ã®èµ¤è‰² */
}

.reference {
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}


.flex .cnt {
    width: 50%;
    /* max-width: 400px; */
    margin: 0;
}

.disclaimer {
    padding-top: 15px;
    margin-top: 30px;
    /* text-align: center; */
    font-size: 0.9em;
}

.disclaimer h4 {
    font-size: 16px;
    color: #d32f2f;
    background: #fff;
    border-left: 0;
}

.disclaimer p {
    margin: 5px 0;
}

#topics-single .references ol {
    counter-reset: number;
    /*数字をリセット*/
    list-style-type: none !important;
    /*数字を一旦消す*/
    padding: 0.5em;
}

#topics-single .references ol li {
    position: relative;
    padding-left: 30px;
    font-size: 14px;
    margin-bottom: 10px;
}

.section-container {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
}

/* 一覧 */

.article-list-container {
    /* background: #f3f6f8; */
    padding: 32px 0;
}

.article-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e0e4ea;
}

.article-card .article-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    min-width: 240px;
    height: 180px;
    background: #eee;
    padding: 20px;
    box-sizing: border-box;
}

.article-card .article-img {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    object-fit: contain;
}

.article-card .article-body {
    flex: 1;
    padding: 18px 22px 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card .article-badge {
    display: inline-block;
    background: #e3eefd;
    color: #3b5998;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 2px 10px;
    margin-bottom: 8px;
    font-weight: 600;
}

.article-card .article-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 6px;
}

.article-card .article-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
    line-height: 1.5;
}

/* PCの時: 画像ラッパーを親の高さに合わせる */
@media (min-width: 701px) {
    .article-card .article-img-wrapper {
        height: auto;
    }

    .article-card {
        align-items: stretch;
    }
}

/* スマホの時: 画像ラッパーの高さを180pxに固定 */
@media (max-width: 700px) {
    .article-card .article-img-wrapper {
        height: 180px;
    }
}

.article-card .article-desc {
    font-size: 0.98rem;
    color: #444;
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .article-card {
        flex-direction: column;
    }

    .article-card .article-img-wrapper {
        width: 100%;
        min-width: 0;
        height: 180px;
        padding: 12px;
    }

    .article-card .article-img {
        max-width: 100%;
        max-height: 140px;
    }

    .article-card .article-body {
        padding: 16px 14px;
    }
}


.callout {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 14px 16px;
    border-radius: 12px;
    margin: 14px 0;
}

.callout strong {
    display: block;
    margin-bottom: 6px
}

.note {
    background: #fff7e6;
    border: 1px solid #ffe3a3;
    padding: 12px 14px;
    border-radius: 12px;
    color: #3a2d00;
    font-size: 14px;
    margin-top: 12px;
}


.faq {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

details {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: background-color 0.2s;
    overflow: hidden;
    /* アニメーション用 */
}

details:hover {
    background: #f8fafc;
}

summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
    padding-right: 40px;
    color: #1a2c5e;
    line-height: 1.5;
    outline: none;
    font-size: 16px;
}

summary::-webkit-details-marker {
    display: none;
}

/* プラスアイコンの追加 */
summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: #1a2c5e;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #444;
    line-height: 1.8;
}

details[open] p {
    animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.kicker {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 6px
}

nav.toc {
    margin: 30px 0 50px;
    padding: 24px 30px;
    background: #fdfdfd;
    border: 2px solid #1a2c5e;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav.toc strong {
    display: block;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
    color: #1a2c5e;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
}

nav.toc ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

nav.toc li {
    margin: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

nav.toc li:last-child {
    border-bottom: none;
}

nav.toc li a {
    text-decoration: none;
    color: #333;
    display: block;
    transition: color 0.3s;
}

nav.toc li a:hover {
    color: #1a2c5e;
    text-decoration: underline;
}

/* 著者プロフィール */
.author-profile {
    margin-top: 60px;
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.author-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 0 1rem;
}

.author-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f4f8;
    background-color: #eee;
}

/* 画像がない場合のフォールバック用 */
.author-image {
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-role {
    font-size: 0.9rem;
    color: #1a2c5e;
    font-weight: bold;
    margin: 0 0 8px;
    display: inline-block;
    background: #e3eefd;
    padding: 3px 10px;
    border-radius: 99px;
}

#topics-single h3.author-name {
    font-size: 1.4rem;
    margin: 8px 0 12px;
    border: none !important;
    /* 既存CSSのリセット */
    padding: 0 !important;
    background: none !important;
    color: #333 !important;
}

.author-name span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
    margin-left: 8px;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 16px;
    text-align: left !important;
}

.author-cert {
    font-size: 0.9rem;
    color: #555;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #eee;
}

.author-cert .badg {
    background: #666;
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
}

@media (max-width: 600px) {
    .author-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-image img {
        width: 120px;
        height: 120px;
        margin-bottom: 12px;
    }

    .author-bio {
        text-align: left !important;
        /* スマホでも左揃えの方が読みやすい */
    }
}


.table-wrap {
    overflow: auto;
    margin: 16px 0
}

table.basic {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px
}

table.basic th,
table.basic td {
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: top
}

table.basic th {
    background: #f7f7f7;
    font-weight: 700
}

.keybox {
    background: #f5f9ff;
    border: 1px solid #d7e7ff;
    padding: 14px;
    border-radius: 8px;
    margin: 16px 0
}

.keybox ul {
    margin: 8px 0 0;
    padding-left: 18px
}

.mini-note {
    font-size: .9em;
    color: #666
}

.related-links {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa
}

.related-links ul {
    margin: 8px 0 0;
    padding-left: 18px
}

/* ========================================
   スマホ・タブレット向け最適化
   ======================================== */

@media (max-width: 767px) {
    .topics_single .container {
        padding: 24px 16px 48px;
    }

    #topics-single h1 {
        font-size: 1.5em;
        padding-bottom: 8px;
        margin-bottom: 16px;
    }

    #topics-single h2 {
        font-size: 1.25em;
        padding: 8px 12px;
        border-left-width: 4px;
    }

    #topics-single h3 {
        font-size: 1.1em;
        margin: 24px 0 12px;
        padding-left: 10px;
    }

    #topics-single p,
    #topics-single li {
        font-size: 16px;
    }

    nav.toc {
        margin: 20px 0 32px;
        padding: 16px;
    }

    nav.toc strong {
        font-size: 1.05rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    nav.toc li {
        font-size: 0.9rem;
        margin: 8px 0;
    }

    .keybox {
        padding: 12px;
        margin: 12px 0;
    }

    .keybox ul {
        padding-left: 1.2rem;
    }

    .callout {
        padding: 12px 14px;
        margin: 12px 0;
    }

    .note {
        padding: 10px 12px;
        font-size: 13px;
        margin-top: 10px;
    }

    .related-links {
        padding: 12px;
        margin: 14px 0;
    }

    .related-links ul {
        padding-left: 1.2rem;
    }

    .faq {
        gap: 8px;
    }

    details {
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    summary {
        font-size: 15px;
        padding-right: 36px;
    }

    details p {
        margin: 10px 0 0;
        padding-top: 10px;
        font-size: 15px;
    }

    .table-wrap {
        margin: 12px -16px;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }

    table.basic th,
    table.basic td {
        padding: 8px;
        font-size: 14px;
    }

    #topics-single section.author-profile {
        margin-top: 40px;
        padding: 20px 16px;
    }

    .author-inner {
        margin: 0;
        gap: 16px;
    }

    .author-image img {
        width: 80px;
        height: 80px;
    }

    .author-image {
        min-width: 80px;
        min-height: 80px;
    }

    .figure {
        margin: 20px 0;
    }

    .figure img {
        border-radius: 4px;
    }

    .mini-note {
        font-size: 0.85em;
    }

    .flex .cnt {
        width: 100%;
    }
}

/* ファーストビュー・パンくず（共通コンポーネントを上書きする場合） */
@media (max-width: 767px) {
    .fvProduct.subFv .inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fvProduct .title {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .fvProduct .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
}

/* 極小画面（〜480px） */
@media (max-width: 480px) {
    .topics_single .container {
        padding: 20px 12px 40px;
    }

    #topics-single h1 {
        font-size: 1.35em;
    }

    #topics-single h2 {
        font-size: 1.15em;
        padding: 6px 10px;
    }

    nav.toc {
        padding: 12px;
    }

    .keybox,
    .callout,
    .note {
        padding: 10px 12px;
    }

    details {
        padding: 10px 12px;
    }

    summary {
        font-size: 14px;
    }
}