/*
 * 松本会社設立 Auto Post - Front Styles
 * 自動生成記事本文向けの装飾（FAQ / 関連記事カード・リスト / チェックリスト）。
 * 会社設立メディアにふさわしい、上品で信頼感のあるネイビー×グレー基調。
 * プレフィックスは msa- に統一。ダークモード非対応・レスポンシブ配慮あり。
 */

/* ---------------------------------------------------
 * FAQ（よくある質問）
 * section.msa-faq > h2.msa-faq-title, div.msa-faq-item > h3.msa-faq-q, div.msa-faq-a > p
 * --------------------------------------------------- */
.msa-faq {
    max-width: 100%;
    margin: 2.5em 0;
    padding-top: 1.75em;
    border-top: 1px solid #dde1e7;
}

.msa-faq-title {
    margin: 0 0 1em;
    padding-left: 0.7em;
    border-left: 4px solid #1c2b45;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.5;
    color: #1c2b45;
}

.msa-faq-item {
    max-width: 100%;
    margin: 0 0 1em;
    padding: 1.1em 1.3em;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background-color: #fafbfc;
}

.msa-faq-item:last-child {
    margin-bottom: 0;
}

.msa-faq-q {
    display: flex;
    gap: 0.5em;
    margin: 0 0 0.6em;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.6;
    color: #1c2b45;
}

.msa-faq-a {
    padding-left: 1.6em;
    color: #444b56;
}

.msa-faq-a p {
    margin: 0;
    line-height: 1.9;
}

/* ---------------------------------------------------
 * 関連記事カード（横並び・カード全体がリンク）
 * aside.msa-related-card > p.msa-related-label
 *   + div.msa-related-body > (p.msa-related-thumb > a > img)
 *     + div.msa-related-info > (div.msa-related-meta > p.msa-related-cat + p.msa-related-date) + p.msa-related-title > a + p.msa-related-excerpt
 * 配色・書体はテーマの記事カード(.o-blog_archive__content__detail)に合わせる:
 *   文字 #231D15 / カテゴリー #D9D2C4 / 差し色 ゴールド #C0943E・オレンジ #F18500 / タイトルは太字＋下線
 * カード全体のクリックは、タイトルリンクの ::after をカード全面に広げて実現（<a>でブロックを包まない）。
 * テーマ(.p-single__content p 等)に負けないよう aside.msa-related-card を前置して詳細度を上げている。
 * --------------------------------------------------- */
.msa-related-card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 2em 0;
    padding: 0;
    border: 1px solid #E3DDD1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.msa-related-card:hover {
    border-color: #C0943E;
    box-shadow: 0 4px 14px rgba(35, 29, 21, 0.10);
}

.msa-related-card .msa-related-label {
    margin: 0;
    padding: 0.55em 1.1em 0.55em 1em;
    background-color: #F7F4EE;
    border-bottom: 1px solid #E3DDD1;
    border-left: 4px solid #F18500;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: #231D15;
    text-align: left;
}

.msa-related-card .msa-related-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

aside.msa-related-card .msa-related-body > p {
    margin: 0;
}

aside.msa-related-card .msa-related-thumb {
    flex: 0 0 220px;
    width: 220px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.msa-related-card .msa-related-thumb a {
    display: block;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #EFEBE3;
}

aside.msa-related-card .msa-related-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin: 0;
    border: 0;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.msa-related-card:hover .msa-related-thumb img {
    opacity: 0.85;
    transform: scale(1.03);
}

.msa-related-card .msa-related-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
}

aside.msa-related-card .msa-related-info p {
    margin: 0;
    padding: 0;
}

aside.msa-related-card .msa-related-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 10px;
}

.msa-related-card .msa-related-cat {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    background-color: #D9D2C4;
    color: #231D15;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.msa-related-card .msa-related-date {
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #231D15;
}

.msa-related-card .msa-related-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.msa-related-card .msa-related-title a {
    color: #231D15;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* タイトルリンクをカード全面に広げ、どこをクリックしても記事へ飛べるようにする */
.msa-related-card .msa-related-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.msa-related-card:hover .msa-related-title a {
    color: #F18500;
}

.msa-related-card .msa-related-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #5C554C;
}

@media (max-width: 767px) {
    .msa-related-card .msa-related-body {
        gap: 12px;
        padding: 14px;
    }

    aside.msa-related-card .msa-related-thumb {
        flex-basis: 120px;
        width: 120px;
    }

    .msa-related-card .msa-related-title {
        font-size: 15px;
    }

    .msa-related-card .msa-related-excerpt {
        display: none;
    }
}

/* 旧マークアップ（背景画像div・リンクなし）が残っている記事向けの最低限の見た目 */
.msa-related-card .msa-related-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #EFEBE3;
    background-size: cover;
    background-position: center;
}

/* 本文中の外部リンク（青・下線）は全記事共通のため assets/css/links.css に移動（v1.6.6） */

/* ---------------------------------------------------
 * 関連記事リスト（末尾の箇条書き）
 * aside.msa-related-list > p.msa-related-label + ul > li > a
 * --------------------------------------------------- */
.msa-related-list {
    max-width: 100%;
    margin: 2.5em 0;
    padding: 1.2em 1.4em;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background-color: #f7f8fa;
}

.msa-related-list .msa-related-label {
    margin: 0 0 0.7em;
    font-size: 0.92em;
    font-weight: 700;
    color: #1c2b45;
}

.msa-related-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.msa-related-list li {
    margin: 0;
    padding: 0.5em 0;
    border-top: 1px solid #e3e6ea;
}

.msa-related-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.msa-related-list li:last-child {
    padding-bottom: 0;
}

.msa-related-list li a {
    text-decoration: none;
    color: #2f4568;
    line-height: 1.6;
}

.msa-related-list li a::before {
    content: '›';
    display: inline-block;
    margin-right: 0.5em;
    color: #1c2b45;
    font-weight: 700;
}

.msa-related-list li a:hover {
    text-decoration: underline;
    color: #1c2b45;
}

/* ---------------------------------------------------
 * チェックリスト（本文中の行動可能な項目・チェックポイント）
 * ul.msa-checklist > li
 * --------------------------------------------------- */
ul.msa-checklist {
    max-width: 100%;
    margin: 1.6em 0;
    padding: 1.2em 1.4em 1.2em 1.6em;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    background-color: #f4f7fb;
    list-style: none;
}

ul.msa-checklist::before {
    content: 'チェックポイント';
    display: block;
    margin: -0.2em 0 0.8em -0.2em;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #5b6472;
}

ul.msa-checklist li {
    position: relative;
    margin: 0 0 0.7em;
    padding-left: 1.6em;
    line-height: 1.8;
    color: #333a44;
}

ul.msa-checklist li:last-child {
    margin-bottom: 0;
}

ul.msa-checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    border-radius: 4px;
    background-color: #1c2b45;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1;
}
