/* ============================================================
   style_column.css
   コラム記事共通スタイル（column04以降、claude移行分）
   ============================================================ */

/* ----------------------------------------------------------
   吹き出しレイアウト（キャラクター紹介・ユーザーの声）
   使用: column06_payagency.html
   ---------------------------------------------------------- */
.col-speech {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.col-speech__avatar {
    text-align: center;
    flex-shrink: 0;
    width: 130px;
}

.col-speech__avatar img {
    width: auto;
    display: block;
    margin: 0 auto;
}

.col-speech__avatar p {
    font-size: 0.85em;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* 冒頭キャラクター（幅広め） */
.col-speech__avatar--intro {
    width: 100px;
}

.col-speech__avatar--intro img {
    width: auto;
}

/* 吹き出し本体 */
.col-speech__bubble {
    flex: 1;
    min-width: 200px;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

/* 左突起（共通）: ::before=枠線色の三角、::after=背景色の三角で重ねて枠線付き突起を表現 */
.col-speech__bubble::before,
.col-speech__bubble::after {
    content: '';
    position: absolute;
    top: 1.2rem;
    border-style: solid;
}

.col-speech__bubble::before {
    left: -11px;
    border-width: 8px 11px 8px 0;
}

.col-speech__bubble::after {
    left: -9px;
    border-width: 7px 10px 7px 0;
}

.col-speech__bubble--gray {
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.col-speech__bubble--gray::before {
    border-color: transparent #ddd transparent transparent;
}

.col-speech__bubble--gray::after {
    border-color: transparent #f5f5f5 transparent transparent;
}

.col-speech__bubble--blue {
    background: #eef4fb;
    border: 1px solid #b0cceb;
}

@media (max-width: 767px) {
    .col-speech__bubble::before,
    .col-speech__bubble::after {
        display: none;
    }
}

.col-speech__bubble--blue::before {
    border-color: transparent #b0cceb transparent transparent;
}

.col-speech__bubble--blue::after {
    border-color: transparent #eef4fb transparent transparent;
}

.col-speech__bubble--red {
    background: #fef0f0;
    border: 1px solid #e8b0b0;
}

.col-speech__bubble--red::before {
    border-color: transparent #e8b0b0 transparent transparent;
}

.col-speech__bubble--red::after {
    border-color: transparent #fef0f0 transparent transparent;
}

/* ----------------------------------------------------------
   目次ネスト（paper-frame内のサブ項目）
   使用: column07_usersvoice.html
   ---------------------------------------------------------- */
/* ネストulを持つliを折り返し可能にする */
.paper-frame ul li:has(> ul) {
    flex-wrap: wrap;
}

/* ネストulを持つliのリンクを▶の横に表示（テキスト折り返しを内部で行う） */
.paper-frame ul li:has(> ul) > a {
    flex: 1;
}

/* ネストulをli内で1行占有させ、▶幅(15px)分インデント */
.paper-frame ul ul {
    flex-basis: 100%;
    padding: 0 0 0 5px;
    font-size: 0.95em;
    margin-top: 0.3rem;
    margin-bottom: 0;
}

.paper-frame ul ul li:before {
    display: none;
}

/* ----------------------------------------------------------
   お客様の声カード
   使用: column07_usersvoice.html
   ---------------------------------------------------------- */
.col-voice-frame {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.col-voice-frame__item {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.col-voice-frame__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.col-voice-frame__title {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #333;
}

.col-voice-frame__client {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* 右側に画像を配置するバリアント */
.col-voice-frame--with-image {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.col-voice-frame--with-image .col-voice-frame__items {
    flex: 1;
    min-width: 0;
}

.col-voice-frame--with-image .col-voice-frame__image {
    flex-shrink: 0;
    width: 30%;
}

@media (max-width: 767px) {
    .col-voice-frame--with-image .col-voice-frame__image {
        display: none;
    }
}

.col-voice-frame--with-image .col-voice-frame__image img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

/* ----------------------------------------------------------
   導入事例スライダー補正
   使用: column07_usersvoice.html
   ---------------------------------------------------------- */

.column07_usersvoice-page .section--bg-2.case-studies {
    overflow: hidden;
}

/* デスクトップ: top-page と同じカード幅を適用 */
@media only screen and (min-width: 768px) {
    .column07_usersvoice-page .section--bg-2.case-studies .case-studies__item {
        width: 350px !important;
    }

    /* 左右ボタンをコンテナ幅(1100px)内に収める */
    .column07_usersvoice-page .case-studies .splide .splide__arrows {
        width: 1100px;
        max-width: 100%;
        position: absolute;
        left: 50%;
        top: 180px;
        z-index: 999;
        transform: translateX(-50%);
        display: flex;
        justify-content: space-between;
    }
    .column07_usersvoice-page .case-studies .splide .splide__arrow {
        width: 50px;
        height: 50px;
        position: unset;
        transform: unset;
        top: 0;
    }
}

/* ----------------------------------------------------------
   冒頭チェックリスト（箇条書き・アイコン付き）
   使用: column08_nencyou_alldegital.html
   ---------------------------------------------------------- */
.col-check-list {
    padding: 0 0 0 1.2em;
    margin: 0 0 1.5rem;
    list-style: disc;
}

.col-check-list li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   インラインハイライト・強調
   使用: column09_nencyou2023.html
   ---------------------------------------------------------- */
.col-line-marker {
    background: linear-gradient(transparent 55%, #fff200 55%);
}

.col-r4-rev {
    color: #c00;
    font-weight: bold;
}

.col-small {
    font-size: 0.85em;
}

/* ----------------------------------------------------------
   コラム用テーブル
   使用: column09_nencyou2023.html
   ---------------------------------------------------------- */
.col-tbl-scroll {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.col-tbl {
    width: 100%;
    border-collapse: collapse;
    line-height: 1.6;
}

.col-tbl-wide {
    min-width: 700px;
}

@media (max-width: 767px) {
    .col-tbl-wide {
        min-width: 0;
    }
    .col-tbl th,
    .col-tbl td {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
}

.col-tbl th,
.col-tbl td {
    border: 1px solid #ccc;
    padding: 0.55rem 0.8rem;
    vertical-align: top;
    text-align: left;
}

.col-tbl th {
    background: #e8f0fb;
    font-weight: bold;
}

.col-tbl th.center,
.col-tbl td.center {
    text-align: center;
}

/* ----------------------------------------------------------
   手続き一覧ボックス（3カラムグリッド内の各ボックス）
   使用: column04_eltax.html
   ---------------------------------------------------------- */
.col-procedure {
    margin-bottom: 1rem;
}

.col-procedure__box {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 4px;
}

/* ----------------------------------------------------------
   記事内画像レスポンシブ（スマホで幅いっぱいに広げる）
   使用: column11, column12 以降
   ---------------------------------------------------------- */
@media (max-width: 767px) {
    .sec-content picture img {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   画像中央配置（sec-content外に単体画像を配置する場合）
   使用: column14_nencyou2025.html
   ---------------------------------------------------------- */
.col-img-center {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .col-img-center {
        display: block;
    }
    .col-img-center picture img {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   吹き出しレイアウト スマホ対応
   スマホでは縦並び（アバター上・吹き出し下）、三角を上向きに変更
   ---------------------------------------------------------- */
@media (max-width: 767px) {
    .col-speech {
        flex-direction: column;
        align-items: flex-start;
    }

    /* アバター：画像と名前を横並びに */
    .col-speech__avatar {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
        width: auto;
        text-align: left;
    }

    .col-speech__avatar p {
        margin-top: 0;
    }

    /* 左向き三角をリセット → 上向き三角に変更 */
    .col-speech__bubble::before,
    .col-speech__bubble::after {
        top: auto;
        left: 1.5rem;
    }

    .col-speech__bubble::before {
        top: -11px;
        left: 1.5rem;
        border-width: 0 8px 11px 8px;
    }

    .col-speech__bubble::after {
        top: -9px;
        left: calc(1.5rem + 1px);
        border-width: 0 7px 10px 7px;
    }

    /* 色を上向き三角用に上書き */
    .col-speech__bubble--gray::before {
        border-color: transparent transparent #ddd transparent;
    }
    .col-speech__bubble--gray::after {
        border-color: transparent transparent #f5f5f5 transparent;
    }
    .col-speech__bubble--blue::before {
        border-color: transparent transparent #b0cceb transparent;
    }
    .col-speech__bubble--blue::after {
        border-color: transparent transparent #eef4fb transparent;
    }
    .col-speech__bubble--red::before {
        border-color: transparent transparent #e8b0b0 transparent;
    }
    .col-speech__bubble--red::after {
        border-color: transparent transparent #fef0f0 transparent;
    }
}

/* ----------------------------------------------------------
   ぶら下げインデント
   使用: 丸数字など先頭記号付きのリスト項目が折り返す場合
   ---------------------------------------------------------- */
.hanging-indent a {
    padding-left: 1em;
    text-indent: -1em;
}
