

#single_page {
    overflow-x: hidden;
}
/* 記事タイトルブロック */
#single_page .article_tit {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1em;
    margin-bottom: 8%;
}
#single_page .article_tit .txt {
    width: 60%;
}
#single_page .article_tit .eyecatch {
    width: 40%;
}
#single_page .article_tit .eyecatch img {
    display: block;
    height: auto; 
    border-radius: 12px;
    box-shadow: 5px 5px 12px #c7eaeb;
}
#single_page h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: #686767;
    margin-bottom: .5em;

}
#single_page .panel_date {
    font-size: clamp(14px, 2.5vw, 24px);
    text-align: left;
    margin-bottom: .8em;
}
#single_page .badge_group {
    margin-bottom: 1em;
}

/* 目次 */
#single_page .title_list {
    position: relative;
    background-color: rgba(255, 255, 255, .4);
    padding-block: 2.5% 4%;
    padding-inline: 16%;
}
#single_page .title_list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main);
}
#single_page .title_list::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main);
}
#single_page .title_list .title_item {
    font-size: clamp(20px, 2.91vw, 28px);
    font-weight: 700;
    color: var(--main);
    text-align: center;
    margin-inline: auto;
    margin-bottom: 1em;
}
#single_page .title_list ol li {
    list-style: decimal-leading-zero;
    margin-bottom: .25em;
}
#single_page .title_list ol li::marker {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--main);
}
#single_page .title_list ol li a {
    font-size: clamp(16px, 2.08vw, 20px);
    transition: .4s color ease;
}
#single_page .title_list ol li a:hover {
    color: #e33636;
}


/* 記事詳細 */
#single_page .article_detail {
    background-color: #fff;
    padding: 4% 6%;
    border-radius: 12px;
}
#single_page h2 {
    line-height: 1.4;
    color: var(--main);
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: .5em;
    margin-top: 2em;
    padding-bottom: .25em;
    background-image: repeating-linear-gradient(
        to right,
        var(--main) 0,
        var(--main) 8px,
        transparent 8px,
        transparent 12px
    );
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}
#single_page h2::before {
    content: "";
    flex: none;
    background: url(../../assets/images/car-life-adviser/car.png) no-repeat center center /contain;
    width: clamp(50px, 9.37vw, 90px);
    aspect-ratio: 34 / 21;
    margin-bottom: -.25em;
}
#single_page h2[id] {
    scroll-margin-top: 190px;
}
#single_page h3 {
    font-size: clamp(15px, 1.87vw, 18px);
    line-height: 1.4;
    color: var(--main);
}
#single_page p {
    line-height: 2;
    margin-bottom: 1.5em;
}
#single_page p:has(strong) {
    margin-bottom: .5em;
    display: flex;
    align-items: center;
    gap: .5em;
}
#single_page p:has(strong)::before,
#single_page p:has(strong)::after {
    content: "";
    flex: 0 0 auto;
    width: 15px;
    height: 13px;
    background-color: #000;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

#single_page p:last-of-type {
    margin-bottom: 8%;
}
#single_page .all_btn {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1em;
    
}
#single_page .table_wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin-bottom: 1.5em;
}
#single_page table {
    vertical-align: middle;
    width: 100%;
    max-width: none;
    text-align: center;
    border-collapse: collapse;
    border: 1px solid #aaa;
    background-color: #fbf5eb;
}

#single_page table td {
    font-size: clamp(14px, 1.66vw, 16px);
    padding-inline: 1em;
    padding-block: .5em;
    border: 1px solid #aaa;
    min-width: 10em;
}

#single_page table td b {
    white-space: nowrap
}

/* リンクボタン */
#single_page .article_detail a {
    font-weight: 700;
    color: #fff;
    display: inline-block;
    margin-bottom: .8em;
    padding-inline: 1em 2.5em;
    padding-block: 1em;
    width: 50%;
    text-align: center;
    background-color: var(--main);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .15);
    word-break: auto-phrase;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    transition: .4s transform ease, .4s box-shadow ease;
}
#single_page .article_detail a:last-of-type {
    margin-bottom: 1.5em;
}
#single_page .article_detail a:hover {
    transform: translateX(-50%) translateY(6px);
    box-shadow: none;
}
#single_page .article_detail a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: .8em;
    transform: translateY(-50%) rotate(45deg);
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    width: 12px;
    aspect-ratio: 1 / 1;
}

/* 本文中のテキストリンク */
#single_page .article_detail a.text-link {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--main);
    font-weight: 700;
    text-decoration: underline;
    position: static;
    left: auto;
    transform: none;
    text-align: inherit;
}
#single_page .article_detail a.text-link::after {
    content: none;
}
#single_page .article_detail a.text-link:hover {
    transform: none;
    box-shadow: none;
    opacity: .7;
}
#single_page .article_detail a.text-link:last-of-type {
    margin-bottom: 0;
}


/* もどるボタン */
#single_page .all_btn a {
    padding-block: 1em;
}
#single_page .all_btn a::before {
    background-image: none;
}


@media screen and (max-width: 768px){

    /* 記事タイトルブロック */
    #single_page .article_tit {
        flex-direction: column;
        align-items: center;
    }
    #single_page .article_tit > div,
    #single_page .article_tit > img {
        width: 100%;
    }


    /* 記事詳細 */
    #single_page .article_detail {
        padding: 1em;
    }

    #single_page .article_tit .txt,
    #single_page .article_tit .eyecatch {
        width: 100%;
    }
    #single_page h2[id] {
        scroll-margin-top: 90px;
    }
    #single_page h2 {
        flex-direction: column;
        align-items: center;
}
    #single_page table {
        width: auto;
    }
    #single_page .article_detail p a {
        width: 100%;
    }
}