/* =========================================================
 * 著者情報ボックス（p-author-box）
 * ========================================================= */

.p-author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0 40px;
}

.p-author-box__photo {
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
}

.p-author-box__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-top: 0 !important;
}

.p-author-box__body {
    flex: 1;
}

.p-author-box__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.p-author-box__label {
    display: inline-block;
    border: 1px solid #333;
    font-size: 13px;
    padding: 3px 10px;
    line-height: 1.4;
    flex-shrink: 0;
}

.p-author-box__name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.p-author-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-author-box__list li {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    padding-left: 0;
}

.p-author-box__list li::before {
    display: none;
}

@media screen and (max-width: 767px) {
    .p-author-box {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px;
        text-align: center;
    }

    .p-author-box__photo {
        width: 80px;
        min-width: 80px;
    }

    .p-author-box__head {
        justify-content: center;
    }

    .p-author-box__name {
        font-size: 15px;
    }

    .p-author-box__list {
        text-align: center;
    }

    .p-author-box__list li {
        font-size: 13px;
    }
}

/* =========================================================
 * 入れ子 TOC: 子リスト（H3/H4）のインデント
 * ========================================================= */

/* 子リスト共通 */
.article-toc__list--child {
    margin-top: 10px;
    padding-left: 20px;
}

/* H3 レベルの子アイテム */
.article-toc__list--child .article-toc__item {
    font-size: 14px;
}

/* H3 の先頭マーカーを短い横線に */
.article-toc__list--child .article-toc__item::before {
    width: 6px;
    background: rgba(0, 0, 0, 0.3);
}

/* H3 のカウンターは非表示（数字なし） */
.article-toc__list--child .article-toc__link::before {
    display: none;
}

/* H3 のリンクは字下げ分を調整 */
.article-toc__list--child .article-toc__link {
    gap: 0;
}

@media screen and (max-width: 767px) {
    .article-toc__list--child {
        padding-left: 12px;
    }
}

/* =========================================================
 * .article-toc が column-post-content 内に移動した場合の調整
 *   archive.css の "#single-column .column-post-content a" ルールが
 *   目次リンクにも border-bottom を適用してしまうのを打ち消す
 * ========================================================= */

.column-post-content .article-toc a,
.column-post-content .article-toc__link {
    border-bottom: none !important;
}

/* =========================================================
 * .post-data: 日付＋カテゴリーバッジ（single.php）
 * ========================================================= */

.post-data span {
    display: inline-block;
    font-size: 16px;
}

.post-data .cat {
    background: #00a0aa;
    color: #fff;
    line-height: 1;
    padding: 6px;
    margin-left: 6px;
    font-size: 14px;
    vertical-align: middle;
}

/* =========================================================
 * 本文内 URL → 内部リンクカード（p-url-card）
 * ========================================================= */

.p-url-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 24px 0;
    overflow: hidden;
    transition: box-shadow .2s;
}

.p-url-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.p-url-card__link {
    display: flex;
    align-items: stretch;
    text-decoration: none !important;
    color: inherit;
    border-bottom: none !important;
}

.p-url-card__img {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.p-url-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-top: 0 !important;
}

.p-url-card__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.p-url-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #1d3d82;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

.p-url-card:hover .p-url-card__title {
    text-decoration: underline;
}

.p-url-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-url-card__domain {
    font-size: 12px;
    color: #999;
}

/* サムネイルなしの場合 */
.p-url-card__link:not(:has(.p-url-card__img)) .p-url-card__body {
    padding: 20px;
}

/* フォールバック（記事未移行のURL）: URL のみ表示するミニカード */
.p-url-card--fallback {
    background: #fafafa;
}

.p-url-card--fallback .p-url-card__title {
    font-size: 14px;
    font-weight: 400;
    color: #00a0aa;
    word-break: break-all;
    text-decoration: underline;
}

@media screen and (max-width: 767px) {
    .p-url-card__link {
        flex-direction: column;
    }

    .p-url-card__img {
        width: 100%;
        min-width: unset;
        height: 160px;
    }
}

/* =========================================================
 * .switching-container: 画像切替ブロック
 * ========================================================= */

.switching-container {
    margin-bottom: 20px;
}

/* =========================================================
 * .column-post-content SP パディング
 * ========================================================= */

@media screen and (max-width: 767px) {
    .column-post-content {
        padding: 20px 0 0;
    }
}

/* =========================================================
 * 本文内画像の margin-top をリセット
 *   archive.css が一律 margin-top:50px を付けているのを上書き
 * ========================================================= */

.column-post-content img:not(.a-blur-photo__img, .blur-icon),
.column-post-content .a-blur-photo,
.news-post-content img:not(.a-blur-photo__img, .blur-icon),
.news-post-content .a-blur-photo,
.case-post-content img:not(.a-blur-photo__img, .blur-icon),
.case-post-content .a-blur-photo {
    margin-top: 0;
}

/* =========================================================
 * 本文 <p> の基本スタイル
 *   旧サイトの .single .entry-content p 相当を
 *   新テーマの各コンテンツラッパーに適用
 * ========================================================= */

.single .entry-content p,
.page .entry-content p,
.single .column-post-content p,
.single .news-post-content p,
.single .case-post-content p {
    margin-bottom: 2em;
    color: #333333;
    font-size: 16px;
    font-weight: 300;
    line-height: 32px;
}

/* =========================================================
 * 投稿本文（the_content() 出力）の共通スタイル
 *  - 新テーマでは記事本文の wrapper が
 *      single-news.php   → .news-post-content
 *      single-case.php   → .case-post-content
 *      single-column.php → .column-post-content
 *    と CPT 毎に異なるため、全て列挙する。
 *  - 現行サイト（kaz-hakata-clinic.jp）の見出し意匠を踏襲。
 */

/* xcd-h2-N スタイルを持つ h2 は xcd 側の CSS が担当するので除外 */
.single .news-post-content h2:not([class^="xcd-"]):not([class*=" xcd-"]),
.single .case-post-content h2:not([class^="xcd-"]):not([class*=" xcd-"]),
.single .column-post-content h2:not([class^="xcd-"]):not([class*=" xcd-"]) {
    font-size: 26px;
    line-height: 33px;
    margin: 72px -45px 30px;
    padding: 18px;
    background: #1d3d82;
    border-bottom: none;
    color: #fff;
}

@media screen and (max-width: 767px) {
    .single .news-post-content h2:not([class^="xcd-"]):not([class*=" xcd-"]),
    .single .case-post-content h2:not([class^="xcd-"]):not([class*=" xcd-"]),
    .single .column-post-content h2:not([class^="xcd-"]):not([class*=" xcd-"]) {
        font-size: 22px;
        line-height: 31px;
        padding: 20px 12px;
        margin: 20px -10px 20px;
    }
}

/* =========================================================
 * 本文中のテーブル（現行サイトの意匠を踏襲）
 *   元CSS：
 *     .single .entry-content table th, .single .entry-content table td { ... }
 *     .entry-content table th, .entry-content table td { ... }
 *     table td, table th { ... }
 *   新テーマでは entry-content の代わりに
 *     .news-post-content / .case-post-content / .column-post-content
 *   が wrapper として使われている。
 * ========================================================= */

.entry-content table,
.single .news-post-content table,
.single .case-post-content table,
.single .column-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    margin-bottom: 20px !important;
}

.single .news-post-content table th,
.single .news-post-content table td,
.single .case-post-content table th,
.single .case-post-content table td,
.single .column-post-content table th,
.single .column-post-content table td {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    border: 1px solid #e5e5e5;
    padding: 8px 10px;
    text-align: left;
    word-break: break-all;
    vertical-align: middle;
}

/* 表内のp要素は記事本文と同じ余白だと詰まる。テーブル内に閉じる */
.single .news-post-content table p,
.single .case-post-content table p,
.single .column-post-content table p {
    margin: 0;
}

@media screen and (max-width: 767px) {
    .single .news-post-content table th,
    .single .news-post-content table td,
    .single .case-post-content table th,
    .single .case-post-content table td,
    .single .column-post-content table th,
    .single .column-post-content table td {
        font-size: 14px;
        line-height: 22px;
        padding: 6px 8px;
    }
}

/* =========================================================
 * <pre> タグの折り返し
 *   デフォルトの white-space:pre は長い行が改行されず横スクロールに。
 *   break-spaces で「半角スペースで折り返し可・先頭/末尾の空白も保持」する。
 * ========================================================= */

.single .news-post-content pre,
.single .case-post-content pre,
.single .column-post-content pre {
    white-space: break-spaces;
}

/* =========================================================
 * 本文中の iframe（YouTube 埋め込み等）
 *   投稿エディタで埋め込まれた iframe は width/height 属性のままだと
 *   コンテンツ幅をはみ出したり小さすぎたりする。横幅100%に揃える。
 * ========================================================= */

.single .news-post-content iframe,
.single .case-post-content iframe,
.single .column-post-content iframe {
    width: 100%;
}

/* =========================================================
 * single-news 本文前のアイキャッチ
 * ========================================================= */

.news-post-thumbnail {
    margin: 20px 0 30px;
    text-align: center;
}

.news-post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

@media screen and (max-width: 767px) {
    .news-post-thumbnail {
        margin: 16px 0 22px;
    }
}

/* =========================================================
 * 旧サイト（kaz-hakata-clinic.jp）記事デコレーション移植
 *   xcd- プレフィックス（Xeory Contents Decorator 由来）と
 *   f-marker- プレフィックスの装飾スタイルを新テーマ向けに移植。
 *
 * カラーパレット:
 *   col1 = #999      (グレー)
 *   col2 = #1dbbda   (シアン)
 *   col3 = #1abb9a   (グリーン)
 *   col4 = #2581c4   (ブルー)
 *   col5 = #fb6c4d   (オレンジ)
 * ========================================================= */

/* =========================================================
 * f-marker: テキストマーカー（下線蛍光ペン風）
 * ========================================================= */

.column-post-content .f-marker-y,
.news-post-content .f-marker-y,
.case-post-content .f-marker-y {
    background-image: linear-gradient(0deg, #f8eba9, #f8eba9 30%, transparent 30%, transparent);
}

.column-post-content .f-marker-p,
.news-post-content .f-marker-p,
.case-post-content .f-marker-p {
    background-image: linear-gradient(0deg, #ffc7f6, #ffc7f6 30%, transparent 30%, transparent);
}

.column-post-content .f-marker-w,
.news-post-content .f-marker-w,
.case-post-content .f-marker-w {
    background-image: linear-gradient(0deg, #abeffe, #abeffe 30%, transparent 30%, transparent);
}

.column-post-content .f-marker-g,
.news-post-content .f-marker-g,
.case-post-content .f-marker-g {
    background-image: linear-gradient(0deg, #afffb1, #afffb1 30%, transparent 30%, transparent);
}

/* =========================================================
 * xcd-h2-1: 背景付き見出し（矢印：左下）
 * ========================================================= */

.column-post-content h2.xcd-h2-1,
.news-post-content h2.xcd-h2-1,
.case-post-content h2.xcd-h2-1 {
    font-size: 26px;
    padding: 28px 24px;
    color: #fff;
    font-weight: 700;
    position: relative;
    margin: 0 0 30px;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transition: all ease-in-out .3s;
}

@media screen and (max-width: 767px) {
    .column-post-content h2.xcd-h2-1,
    .news-post-content h2.xcd-h2-1,
    .case-post-content h2.xcd-h2-1 {
        font-size: 22px;
        margin-bottom: 24px;
        padding: 20px 12px;
    }
}

.column-post-content h2.xcd-h2-1::after,
.news-post-content h2.xcd-h2-1::after,
.case-post-content h2.xcd-h2-1::after {
    content: "";
    position: absolute;
    border-right: 15px solid transparent;
    border-left: 15px solid transparent;
    bottom: -15px;
    left: 24px;
    transition: all ease-in-out .3s;
}

.column-post-content h2.xcd-h2-1.xcd-col1,
.news-post-content h2.xcd-h2-1.xcd-col1,
.case-post-content h2.xcd-h2-1.xcd-col1 { background: #999; }
.column-post-content h2.xcd-h2-1.xcd-col1::after,
.news-post-content h2.xcd-h2-1.xcd-col1::after,
.case-post-content h2.xcd-h2-1.xcd-col1::after { border-top: 15px solid #999; }

.column-post-content h2.xcd-h2-1.xcd-col2,
.news-post-content h2.xcd-h2-1.xcd-col2,
.case-post-content h2.xcd-h2-1.xcd-col2 { background: #1dbbda; }
.column-post-content h2.xcd-h2-1.xcd-col2::after,
.news-post-content h2.xcd-h2-1.xcd-col2::after,
.case-post-content h2.xcd-h2-1.xcd-col2::after { border-top: 15px solid #1dbbda; }

.column-post-content h2.xcd-h2-1.xcd-col3,
.news-post-content h2.xcd-h2-1.xcd-col3,
.case-post-content h2.xcd-h2-1.xcd-col3 { background: #1abb9a; }
.column-post-content h2.xcd-h2-1.xcd-col3::after,
.news-post-content h2.xcd-h2-1.xcd-col3::after,
.case-post-content h2.xcd-h2-1.xcd-col3::after { border-top: 15px solid #1abb9a; }

.column-post-content h2.xcd-h2-1.xcd-col4,
.news-post-content h2.xcd-h2-1.xcd-col4,
.case-post-content h2.xcd-h2-1.xcd-col4 { background: #2581c4; }
.column-post-content h2.xcd-h2-1.xcd-col4::after,
.news-post-content h2.xcd-h2-1.xcd-col4::after,
.case-post-content h2.xcd-h2-1.xcd-col4::after { border-top: 15px solid #2581c4; }

.column-post-content h2.xcd-h2-1.xcd-col5,
.news-post-content h2.xcd-h2-1.xcd-col5,
.case-post-content h2.xcd-h2-1.xcd-col5 { background: #fb6c4d; }
.column-post-content h2.xcd-h2-1.xcd-col5::after,
.news-post-content h2.xcd-h2-1.xcd-col5::after,
.case-post-content h2.xcd-h2-1.xcd-col5::after { border-top: 15px solid #fb6c4d; }

/* =========================================================
 * xcd-h2-2: 背景付き見出し（矢印：中央下）
 * ========================================================= */

.column-post-content h2.xcd-h2-2,
.news-post-content h2.xcd-h2-2,
.case-post-content h2.xcd-h2-2 {
    font-size: 26px;
    padding: 28px 24px;
    color: #fff;
    font-weight: 700;
    position: relative;
    margin: 0 0 30px;
    text-align: center;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transition: all ease-in-out .3s;
}

@media screen and (max-width: 767px) {
    .column-post-content h2.xcd-h2-2,
    .news-post-content h2.xcd-h2-2,
    .case-post-content h2.xcd-h2-2 {
        font-size: 22px;
        margin-bottom: 24px;
        padding: 20px 12px;
    }
}

.column-post-content h2.xcd-h2-2::after,
.news-post-content h2.xcd-h2-2::after,
.case-post-content h2.xcd-h2-2::after {
    content: "";
    position: absolute;
    border-right: 15px solid transparent;
    border-left: 15px solid transparent;
    bottom: -15px;
    left: 50%;
    margin-left: -15px;
    transition: all ease-in-out .3s;
}

.column-post-content h2.xcd-h2-2.xcd-col1,
.news-post-content h2.xcd-h2-2.xcd-col1,
.case-post-content h2.xcd-h2-2.xcd-col1 { background: #999; }
.column-post-content h2.xcd-h2-2.xcd-col1::after,
.news-post-content h2.xcd-h2-2.xcd-col1::after,
.case-post-content h2.xcd-h2-2.xcd-col1::after { border-top: 15px solid #999; }

.column-post-content h2.xcd-h2-2.xcd-col2,
.news-post-content h2.xcd-h2-2.xcd-col2,
.case-post-content h2.xcd-h2-2.xcd-col2 { background: #1dbbda; }
.column-post-content h2.xcd-h2-2.xcd-col2::after,
.news-post-content h2.xcd-h2-2.xcd-col2::after,
.case-post-content h2.xcd-h2-2.xcd-col2::after { border-top: 15px solid #1dbbda; }

.column-post-content h2.xcd-h2-2.xcd-col3,
.news-post-content h2.xcd-h2-2.xcd-col3,
.case-post-content h2.xcd-h2-2.xcd-col3 { background: #1abb9a; }
.column-post-content h2.xcd-h2-2.xcd-col3::after,
.news-post-content h2.xcd-h2-2.xcd-col3::after,
.case-post-content h2.xcd-h2-2.xcd-col3::after { border-top: 15px solid #1abb9a; }

.column-post-content h2.xcd-h2-2.xcd-col4,
.news-post-content h2.xcd-h2-2.xcd-col4,
.case-post-content h2.xcd-h2-2.xcd-col4 { background: #2581c4; }
.column-post-content h2.xcd-h2-2.xcd-col4::after,
.news-post-content h2.xcd-h2-2.xcd-col4::after,
.case-post-content h2.xcd-h2-2.xcd-col4::after { border-top: 15px solid #2581c4; }

.column-post-content h2.xcd-h2-2.xcd-col5,
.news-post-content h2.xcd-h2-2.xcd-col5,
.case-post-content h2.xcd-h2-2.xcd-col5 { background: #fb6c4d; }
.column-post-content h2.xcd-h2-2.xcd-col5::after,
.news-post-content h2.xcd-h2-2.xcd-col5::after,
.case-post-content h2.xcd-h2-2.xcd-col5::after { border-top: 15px solid #fb6c4d; }

/* =========================================================
 * xcd-h2-5: POINTバルーン見出し
 * ========================================================= */

.column-post-content .xcd-h2-5,
.news-post-content .xcd-h2-5,
.case-post-content .xcd-h2-5 {
    margin: 140px 0 64px;
    position: relative;
    text-align: center;
    padding-bottom: 0;
    border: none;
    background: none;
    box-shadow: none;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-h2-5,
    .news-post-content .xcd-h2-5,
    .case-post-content .xcd-h2-5 {
        font-size: 22px;
        margin: 140px 0 40px;
    }
}

.column-post-content .xcd-h2-5 > br,
.news-post-content .xcd-h2-5 > br,
.case-post-content .xcd-h2-5 > br { display: none; }

/* バルーン（POINT円形バッジ） */
.column-post-content .xcd-h2-5 .xcd-balloon,
.news-post-content .xcd-h2-5 .xcd-balloon,
.case-post-content .xcd-h2-5 .xcd-balloon {
    font-size: 16px;
    width: 70px;
    height: 70px;
    color: #fff;
    text-align: center;
    line-height: 70px;
    vertical-align: middle;
    border-radius: 50%;
    position: absolute;
    top: -100px;
    left: calc(50% - 35px);
    font-weight: 400;
    transition: all ease-in-out .3s;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-h2-5 .xcd-balloon,
    .news-post-content .xcd-h2-5 .xcd-balloon,
    .case-post-content .xcd-h2-5 .xcd-balloon {
        font-size: 13px;
        width: 60px;
        height: 60px;
        line-height: 60px;
        top: -84px;
        left: calc(50% - 35px);
    }
}

.column-post-content .xcd-h2-5 .xcd-balloon::after,
.news-post-content .xcd-h2-5 .xcd-balloon::after,
.case-post-content .xcd-h2-5 .xcd-balloon::after {
    content: "";
    display: block;
    position: absolute;
    border: 10px solid transparent;
    bottom: -24px;
    left: 50%;
    margin-left: -10px;
    transition: all ease-in-out .3s;
}

/* タイトルテキスト */
.column-post-content .xcd-h2-5 .xcd-title,
.news-post-content .xcd-h2-5 .xcd-title,
.case-post-content .xcd-h2-5 .xcd-title {
    font-size: 26px;
    font-weight: 400;
    border: none;
    padding: 0;
    background: none;
    margin: 0;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-h2-5 .xcd-title,
    .news-post-content .xcd-h2-5 .xcd-title,
    .case-post-content .xcd-h2-5 .xcd-title {
        font-size: 22px;
    }
}

/* 下部ライン */
.column-post-content .xcd-h2-5 .xcd-line,
.news-post-content .xcd-h2-5 .xcd-line,
.case-post-content .xcd-h2-5 .xcd-line {
    position: absolute;
    bottom: -24px;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 1px;
    background: #b0b0b0;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-h2-5 .xcd-line,
    .news-post-content .xcd-h2-5 .xcd-line,
    .case-post-content .xcd-h2-5 .xcd-line {
        bottom: -16px;
    }
}

.column-post-content .xcd-h2-5 .xcd-line::after,
.news-post-content .xcd-h2-5 .xcd-line::after,
.case-post-content .xcd-h2-5 .xcd-line::after {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: -3px;
    left: calc(50% - 12px);
    width: 24px;
    height: 6px;
    transition: all ease-in-out .3s;
}

/* xcd-h2-5 カラーバリエーション */
.column-post-content .xcd-h2-5.xcd-col1 .xcd-balloon,
.news-post-content .xcd-h2-5.xcd-col1 .xcd-balloon,
.case-post-content .xcd-h2-5.xcd-col1 .xcd-balloon { background: #999; }
.column-post-content .xcd-h2-5.xcd-col1 .xcd-balloon::after,
.news-post-content .xcd-h2-5.xcd-col1 .xcd-balloon::after,
.case-post-content .xcd-h2-5.xcd-col1 .xcd-balloon::after { border-top: 30px solid #999; }
.column-post-content .xcd-h2-5.xcd-col1 .xcd-line::after,
.news-post-content .xcd-h2-5.xcd-col1 .xcd-line::after,
.case-post-content .xcd-h2-5.xcd-col1 .xcd-line::after { background: #999; }

.column-post-content .xcd-h2-5.xcd-col2 .xcd-balloon,
.news-post-content .xcd-h2-5.xcd-col2 .xcd-balloon,
.case-post-content .xcd-h2-5.xcd-col2 .xcd-balloon { background: #1dbbda; }
.column-post-content .xcd-h2-5.xcd-col2 .xcd-balloon::after,
.news-post-content .xcd-h2-5.xcd-col2 .xcd-balloon::after,
.case-post-content .xcd-h2-5.xcd-col2 .xcd-balloon::after { border-top: 30px solid #1dbbda; }
.column-post-content .xcd-h2-5.xcd-col2 .xcd-line::after,
.news-post-content .xcd-h2-5.xcd-col2 .xcd-line::after,
.case-post-content .xcd-h2-5.xcd-col2 .xcd-line::after { background: #1dbbda; }

.column-post-content .xcd-h2-5.xcd-col3 .xcd-balloon,
.news-post-content .xcd-h2-5.xcd-col3 .xcd-balloon,
.case-post-content .xcd-h2-5.xcd-col3 .xcd-balloon { background: #1abb9a; }
.column-post-content .xcd-h2-5.xcd-col3 .xcd-balloon::after,
.news-post-content .xcd-h2-5.xcd-col3 .xcd-balloon::after,
.case-post-content .xcd-h2-5.xcd-col3 .xcd-balloon::after { border-top: 30px solid #1abb9a; }
.column-post-content .xcd-h2-5.xcd-col3 .xcd-line::after,
.news-post-content .xcd-h2-5.xcd-col3 .xcd-line::after,
.case-post-content .xcd-h2-5.xcd-col3 .xcd-line::after { background: #1abb9a; }

.column-post-content .xcd-h2-5.xcd-col4 .xcd-balloon,
.news-post-content .xcd-h2-5.xcd-col4 .xcd-balloon,
.case-post-content .xcd-h2-5.xcd-col4 .xcd-balloon { background: #2581c4; }
.column-post-content .xcd-h2-5.xcd-col4 .xcd-balloon::after,
.news-post-content .xcd-h2-5.xcd-col4 .xcd-balloon::after,
.case-post-content .xcd-h2-5.xcd-col4 .xcd-balloon::after { border-top: 30px solid #2581c4; }
.column-post-content .xcd-h2-5.xcd-col4 .xcd-line::after,
.news-post-content .xcd-h2-5.xcd-col4 .xcd-line::after,
.case-post-content .xcd-h2-5.xcd-col4 .xcd-line::after { background: #2581c4; }

.column-post-content .xcd-h2-5.xcd-col5 .xcd-balloon,
.news-post-content .xcd-h2-5.xcd-col5 .xcd-balloon,
.case-post-content .xcd-h2-5.xcd-col5 .xcd-balloon { background: #fb6c4d; }
.column-post-content .xcd-h2-5.xcd-col5 .xcd-balloon::after,
.news-post-content .xcd-h2-5.xcd-col5 .xcd-balloon::after,
.case-post-content .xcd-h2-5.xcd-col5 .xcd-balloon::after { border-top: 30px solid #fb6c4d; }
.column-post-content .xcd-h2-5.xcd-col5 .xcd-line::after,
.news-post-content .xcd-h2-5.xcd-col5 .xcd-line::after,
.case-post-content .xcd-h2-5.xcd-col5 .xcd-line::after { background: #fb6c4d; }

/* =========================================================
 * xcd-attention-1: 角丸ボーダーボックス（タイトルピル付き）
 * ========================================================= */

.column-post-content .xcd-attention-1,
.news-post-content .xcd-attention-1,
.case-post-content .xcd-attention-1 {
    border: 1px solid #b0b0b0;
    border-radius: 12px;
    padding: 72px 24px 42px;
    position: relative;
    margin: 60px 0 40px;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-attention-1,
    .news-post-content .xcd-attention-1,
    .case-post-content .xcd-attention-1 {
        padding: 62px 12px 16px;
    }
}

.column-post-content .xcd-attention-1 .xcd-title,
.news-post-content .xcd-attention-1 .xcd-title,
.case-post-content .xcd-attention-1 .xcd-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    border-radius: 34px;
    padding: 12px 22px;
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    margin: 0 24px;
    transition: all ease-in-out .3s;
    display: block;
    border: none;
    background: none;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-attention-1 .xcd-title,
    .news-post-content .xcd-attention-1 .xcd-title,
    .case-post-content .xcd-attention-1 .xcd-title {
        font-size: 18px;
    }
}

.column-post-content .xcd-attention-1.xcd-col1 .xcd-title,
.news-post-content .xcd-attention-1.xcd-col1 .xcd-title,
.case-post-content .xcd-attention-1.xcd-col1 .xcd-title { background: #999; }

.column-post-content .xcd-attention-1.xcd-col2 .xcd-title,
.news-post-content .xcd-attention-1.xcd-col2 .xcd-title,
.case-post-content .xcd-attention-1.xcd-col2 .xcd-title { background: #1dbbda; }

.column-post-content .xcd-attention-1.xcd-col3 .xcd-title,
.news-post-content .xcd-attention-1.xcd-col3 .xcd-title,
.case-post-content .xcd-attention-1.xcd-col3 .xcd-title { background: #1abb9a; }

.column-post-content .xcd-attention-1.xcd-col4 .xcd-title,
.news-post-content .xcd-attention-1.xcd-col4 .xcd-title,
.case-post-content .xcd-attention-1.xcd-col4 .xcd-title { background: #2581c4; }

.column-post-content .xcd-attention-1.xcd-col5 .xcd-title,
.news-post-content .xcd-attention-1.xcd-col5 .xcd-title,
.case-post-content .xcd-attention-1.xcd-col5 .xcd-title { background: #fb6c4d; }

.column-post-content .xcd-attention-1 .xcd-content,
.news-post-content .xcd-attention-1 .xcd-content,
.case-post-content .xcd-attention-1 .xcd-content { margin: 0; }

/* =========================================================
 * xcd-attention-2: 角丸ボーダーボックス（タイトルピル付き / アイコン左余白あり）
 * ========================================================= */

.column-post-content .xcd-attention-2,
.news-post-content .xcd-attention-2,
.case-post-content .xcd-attention-2 {
    border: 1px solid #b0b0b0;
    border-radius: 12px;
    padding: 72px 24px 42px;
    position: relative;
    margin: 60px 0 40px;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-attention-2,
    .news-post-content .xcd-attention-2,
    .case-post-content .xcd-attention-2 {
        padding: 62px 12px 16px;
    }
}

.column-post-content .xcd-attention-2 .xcd-title,
.news-post-content .xcd-attention-2 .xcd-title,
.case-post-content .xcd-attention-2 .xcd-title {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border-radius: 34px;
    padding: 12px 22px 12px 50px;
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    margin: 0 24px;
    transition: all ease-in-out .3s;
    display: block;
    border: none;
    background: none;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-attention-2 .xcd-title,
    .news-post-content .xcd-attention-2 .xcd-title,
    .case-post-content .xcd-attention-2 .xcd-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 550px) {
    .column-post-content .xcd-attention-2 .xcd-title,
    .news-post-content .xcd-attention-2 .xcd-title,
    .case-post-content .xcd-attention-2 .xcd-title {
        font-size: 16px;
    }
}

/* xcd-attention-2 .xcd-title::before アイコン */
.column-post-content .xcd-attention-2 .xcd-title::before,
.news-post-content .xcd-attention-2 .xcd-title::before,
.case-post-content .xcd-attention-2 .xcd-title::before {
    position: absolute;
    content: "";
    -webkit-mask: url('../img/common/xcd-alert.svg') no-repeat;
    mask: url('../img/common/xcd-alert.svg') no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: #fff;
    left: 12px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 34px;
    height: 34px;
    transition: all ease-in-out .3s;
}

/* col2 アイコン色（デフォルト white のまま、xcd-title 背景色で見える） */
.column-post-content .xcd-attention-2.xcd-col2 .xcd-title::before,
.news-post-content .xcd-attention-2.xcd-col2 .xcd-title::before,
.case-post-content .xcd-attention-2.xcd-col2 .xcd-title::before {
    color: #1dbbda;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-attention-2 .xcd-title::before,
    .news-post-content .xcd-attention-2 .xcd-title::before,
    .case-post-content .xcd-attention-2 .xcd-title::before {
        font-size: 18px;
        padding: 2px 8px;
    }
}

@media screen and (max-width: 550px) {
    .column-post-content .xcd-attention-2 .xcd-title::before,
    .news-post-content .xcd-attention-2 .xcd-title::before,
    .case-post-content .xcd-attention-2 .xcd-title::before {
        font-size: 16px;
        padding: 2px 7px;
    }
}

.column-post-content .xcd-attention-2.xcd-col1 .xcd-title,
.news-post-content .xcd-attention-2.xcd-col1 .xcd-title,
.case-post-content .xcd-attention-2.xcd-col1 .xcd-title { background: #999; }

.column-post-content .xcd-attention-2.xcd-col2 .xcd-title,
.news-post-content .xcd-attention-2.xcd-col2 .xcd-title,
.case-post-content .xcd-attention-2.xcd-col2 .xcd-title { background: #1dbbda; }

.column-post-content .xcd-attention-2.xcd-col3 .xcd-title,
.news-post-content .xcd-attention-2.xcd-col3 .xcd-title,
.case-post-content .xcd-attention-2.xcd-col3 .xcd-title { background: #1abb9a; }

.column-post-content .xcd-attention-2.xcd-col4 .xcd-title,
.news-post-content .xcd-attention-2.xcd-col4 .xcd-title,
.case-post-content .xcd-attention-2.xcd-col4 .xcd-title { background: #2581c4; }

.column-post-content .xcd-attention-2.xcd-col5 .xcd-title,
.news-post-content .xcd-attention-2.xcd-col5 .xcd-title,
.case-post-content .xcd-attention-2.xcd-col5 .xcd-title { background: #fb6c4d; }

.column-post-content .xcd-attention-2 .xcd-content,
.news-post-content .xcd-attention-2 .xcd-content,
.case-post-content .xcd-attention-2 .xcd-content { margin: 0; }

/* =========================================================
 * xcd-attention-5: グレー背景帯タイトルボックス
 * ========================================================= */

.column-post-content .xcd-attention-5,
.news-post-content .xcd-attention-5,
.case-post-content .xcd-attention-5 {
    background: #f5f5f5;
    position: relative;
    margin: 48px 0 40px;
}

.column-post-content .xcd-attention-5 p:last-of-type,
.column-post-content .xcd-attention-5 ul:last-of-type,
.news-post-content .xcd-attention-5 p:last-of-type,
.news-post-content .xcd-attention-5 ul:last-of-type,
.case-post-content .xcd-attention-5 p:last-of-type,
.case-post-content .xcd-attention-5 ul:last-of-type {
    margin-bottom: 0;
}

.column-post-content .xcd-attention-5 .xcd-title-wrap,
.news-post-content .xcd-attention-5 .xcd-title-wrap,
.case-post-content .xcd-attention-5 .xcd-title-wrap {
    display: block;
}

.column-post-content .xcd-attention-5 .xcd-title,
.news-post-content .xcd-attention-5 .xcd-title,
.case-post-content .xcd-attention-5 .xcd-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    padding: 16px 22px 16px 22px;
    color: #fff;
    display: block;
    border: none;
    background: none;
    transition: all ease-in-out .3s;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-attention-5 .xcd-title,
    .news-post-content .xcd-attention-5 .xcd-title,
    .case-post-content .xcd-attention-5 .xcd-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 550px) {
    .column-post-content .xcd-attention-5 .xcd-title,
    .news-post-content .xcd-attention-5 .xcd-title,
    .case-post-content .xcd-attention-5 .xcd-title {
        font-size: 16px;
    }
}

.column-post-content .xcd-attention-5.xcd-col1 .xcd-title,
.news-post-content .xcd-attention-5.xcd-col1 .xcd-title,
.case-post-content .xcd-attention-5.xcd-col1 .xcd-title { background: #999; }

.column-post-content .xcd-attention-5.xcd-col2 .xcd-title,
.news-post-content .xcd-attention-5.xcd-col2 .xcd-title,
.case-post-content .xcd-attention-5.xcd-col2 .xcd-title { background: #1dbbda; }

.column-post-content .xcd-attention-5.xcd-col3 .xcd-title,
.news-post-content .xcd-attention-5.xcd-col3 .xcd-title,
.case-post-content .xcd-attention-5.xcd-col3 .xcd-title { background: #1abb9a; }

.column-post-content .xcd-attention-5.xcd-col4 .xcd-title,
.news-post-content .xcd-attention-5.xcd-col4 .xcd-title,
.case-post-content .xcd-attention-5.xcd-col4 .xcd-title { background: #2581c4; }

.column-post-content .xcd-attention-5.xcd-col5 .xcd-title,
.news-post-content .xcd-attention-5.xcd-col5 .xcd-title,
.case-post-content .xcd-attention-5.xcd-col5 .xcd-title { background: #fb6c4d; }

.column-post-content .xcd-attention-5 .xcd-content,
.news-post-content .xcd-attention-5 .xcd-content,
.case-post-content .xcd-attention-5 .xcd-content {
    padding: 24px 24px 28px;
}

@media screen and (max-width: 767px) {
    .column-post-content .xcd-attention-5 .xcd-content,
    .news-post-content .xcd-attention-5 .xcd-content,
    .case-post-content .xcd-attention-5 .xcd-content {
        padding: 16px 12px 20px;
    }
}

/* =========================================================
 * xcd-ripple: ホバーエフェクト（リップル）
 * ========================================================= */

@keyframes xcd-ripple-anim {
    0%   { transform: scale(1); opacity: .6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.column-post-content .xcd-ripple .xcd-balloon,
.news-post-content .xcd-ripple .xcd-balloon,
.case-post-content .xcd-ripple .xcd-balloon {
    overflow: visible;
}

.column-post-content .xcd-ripple:hover .xcd-balloon::before,
.news-post-content .xcd-ripple:hover .xcd-balloon::before,
.case-post-content .xcd-ripple:hover .xcd-balloon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: xcd-ripple-anim .6s ease-out forwards;
}

/* =========================================================
 * blockquote: 引用ブロック
 * ========================================================= */

.column-post-content blockquote,
.news-post-content blockquote,
.case-post-content blockquote {
    background: #f9f9f9;
    border-left: 4px solid #1dbbda;
    margin: 24px 0;
    padding: 16px 20px;
    font-style: normal;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.column-post-content blockquote p,
.news-post-content blockquote p,
.case-post-content blockquote p {
    margin: 0 0 8px;
}

.column-post-content blockquote p:last-child,
.news-post-content blockquote p:last-child,
.case-post-content blockquote p:last-child {
    margin-bottom: 0;
}

