:root {
    --color-main: #222;
    --color-text: #333;
    --color-yellow: #FFD708;
    --color-gray: #434343;;
}

.article-detail-wrap {
    padding-top: 0;
	text-align: left;
}

.article-detail-time {
    width: fit-content;
    height: 3.5rem;
    line-height: 3.5rem;
    background: var(--color-yellow);
    color: #fff;
    padding: 0 1.2rem;
    font-size: 1.4rem;
    letter-spacing: 0.14em;
    margin: 0 auto 3rem 0;
    font-weight: 700;
    border-radius: 0.5rem;
}

.article-detail-ttl {
	text-align: left;
    font-size: 3.6rem;
    letter-spacing: 0.05em;
    line-height: 1.33;
    padding: 0 0 2rem;
    border-bottom: 1px solid #292929;
    margin: 0 0 2.6rem;
    font-weight: 600;
}

.article-detail-wrap .c-article-keyword {
    margin-bottom: 2rem;
}

.article-detail-category {
    background: #fff;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    height: 3.6rem;
    line-height: 3.6rem;
    padding: 0 2.4rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin: 0 auto 6.2rem 0;
    border-radius: 0.6rem;
}

.article-detail-content {
    line-height: 1.625;
}

.article-detail-content img {
    width: 100%;
}

.article-detail-content p {
	text-align: left;
    letter-spacing: 0.05em;
    margin: 0 0 2rem;
}

.article-detail-content p:last-child {
    margin: 0;
}

.article-detail-content h2 {
    font-size: 3.2rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.35;
    position: relative;
    padding: 0 0 0 1.7rem;
    margin: 4rem 0 2.8rem;
}

.article-detail-content h2::before {
    content: "";
    width: 0.6rem;
    height: 2.6rem;
    background: var(--color-yellow);
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 1.1rem;
}

.article-detail-content h3 {
    font-size: 2.4rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

/*見出しスクロール*/
.article-detail-content h2 span,
.article-detail-content h3 span {
    position: relative;
    padding-top: 8rem;
    margin-top: -8rem;
}

/* .article-detail-content h2 span,
.article-detail-content h3 span {
    display: block;
    scroll-margin-bottom: 8rem;
} */

.article-detail-content h4 {
    font-size: 2rem;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin: 0 0 2.2rem;
    line-height: 1.35;
    color: #0164E3;
}

.article-detail-content>ul,
.article-detail-content>ol {
    background: rgba(255, 206, 217, 0.5);
    padding: 3.2rem 3.5rem 3.2rem 5.1rem;
    margin: 0 0 2rem;
}

.article-detail-content>ul li,
.article-detail-content>ol li {
    letter-spacing: 0.05em;
    line-height: 1.35;
    margin: 0 0 2rem;
    list-style: disc;
}

.article-detail-content>ol>li {
    list-style: linear-gradient;
}

.article-detail-content ul li:last-child,
.article-detail-content ol li:last-child {
    margin: 0;
}

.article-detail-content ol li li {
    margin: 0 0 0 auto !important;
    width: calc(100% - 1.5em);
}

.article-detail-content table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-left: 1px solid #B3B3B3;
    border-top: 1px solid #B3B3B3;
    overflow: hidden;
    border-radius: 10px;
    margin: 2rem 0;
}

.article-detail-content table tr>* {
    padding: 0.5rem 1rem;
    border: none;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
}

/* .article-detail-content th,
.article-detail-content td {
    border: 0.05rem solid #B3B3B3;
} */

.article-detail-content tr:first-child th,
.article-detail-content tr:first-child td {
    background: var(--color-yellow);
	text-shadow: 1px 1px 1px #999;
    color: #fff;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    min-height: 4rem;
}

.article-detail-content tr:first-child>*:first-child {
    border-top-left-radius: 10px;
}

.article-detail-content tr:first-child>*:last-child {
    border-top-right-radius: 10px;
}

.article-detail-content tr:last-child>*:first-child {
    border-bottom-left-radius: 10px;
}

.article-detail-content tr:last-child>*:last-child {
    border-bottom-right-radius: 10px;
}

.article-detail-content .aligncenter {
    display: block;
    margin: 0 auto;
}

.writer-content {
    background: #E2EEFD;
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 5rem 5.5rem 5.5rem;
    display: flex;
    margin: 12rem 0 0;
    color: #525252;
}

.writer-tag {
    position: absolute;
    height: 3.7rem;
    width: 8.3rem;
    background: #E2EEFD;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: none;
    right: 7.7rem;
    top: -3.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem 0 0;
}

.writer-tag .border {
    display: inline-block;
    width: 0.24rem;
    height: 1em;
    border-radius: 2px;
    background: #0164E3;
    margin: 0 0.5em 0 0;
    vertical-align: -0.2rem;
}

.writer-img {
    width: 17.8rem;
    border-radius: 18px;
    overflow: hidden;
}

.writer-img img {
    width: 100%;
}

.writer-txt {
    width: calc(100% - 17.8rem);
    padding: 4rem 0 0 4rem;
}

.writer-name {
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: normal;
    margin: 0 0 2rem;
    position: relative;
}

.writer-name::before {
    content: "";
    background: #FFCED9;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    position: absolute;
    top: 0.5em;
    left: -1.6rem;
}

.writer-name .en {
    display: inline-block;
    font-size: 1.3rem;
    color: #0164E3;
    font-weight: 500;
    margin: 0 0 0 1rem;
    vertical-align: 0.2rem;
}

.writer-lead {
    font-weight: 300;
    line-height: 1.625;
    letter-spacing: 0.12rem;
    margin: 0 0 2rem;
}

/*目次*/
#toc_container {
    margin: 4rem 0 6rem;
    padding: 3rem 3rem 4rem;
    border-radius: 8px;
    background: #f7f7f7;
    border: none;
}

.toc_title {
    font-size: 2.1rem;
    font-weight: 700;
}

.article-detail-content .toc_list {
    background: transparent;
    padding: 0;
    margin: 0;
}

.toc_list li {
    list-style: none !important;
    margin: 0 0 1.4rem;
}

.toc_list li:last-child {
    margin: 0;
}

@media screen and (max-width:750px) {
    .article-detail-ttl {
        font-size: 2.1rem;
        padding: 0 0 1.4rem;
        margin: 0 0 2rem;
    }

    .article-detail-wrap .c-article-keyword {
        margin-bottom: 1.8rem;
    }

    .article-detail-category {
        height: 2.8rem;
        line-height: 2.8rem;
        padding: 0 2rem;
        margin: 15px 0;
        border-radius: 0.6rem;
        font-size: 1.4rem;
    }

    .article-detail-content {
        font-size: 1.4rem;
    }

    .article-detail-content h2 {
        font-size: 2.1rem;
        padding: 0 0 0 1.2rem;
        margin: 0 0 2.8rem;
    }

    .article-detail-content h2::before {
        width: 0.4rem;
        height: 2.6rem;
        top: 0.4rem;
    }

    .article-detail-content h3 {
        font-size: 1.8rem;
    }

    .article-detail-content h4 {
        font-size: 1.6rem;
    }

    /*見出しスクロール*/
    .article-detail-content h2 span,
    .article-detail-content h3 span {
        position: relative;
        padding-top: 6rem;
        margin-top: -6rem;
    }

    .article-detail-content>ul,
    .article-detail-content>ol {
        padding: 2rem 1.8rem 2rem 3.2rem;
    }

    .writer-content {
        padding: 3rem 2rem 3rem;
        display: block;
        margin: 8rem 0 0;
    }

    .writer-tag {
        right: 2.7rem;
    }

    .writer-img {
        border-radius: 30px;
        margin: 0 auto;
    }

    .writer-txt {
        width: 100%;
        padding: 0;
        margin: 2rem 0 0;
    }

    .writer-name {
        width: fit-content;
        margin: 0 auto 2rem;
        font-size: 2rem;
    }

    .writer-name .en {
        font-size: 1.1rem;
    }

    .writer-lead {
        font-size: 1.4rem;
    }

    .writer-content .c-btn-wh {
        margin: 0 auto;
    }

    /*目次*/
    #toc_container {
        margin: 3rem 0 4rem;
        padding: 2rem;
    }

    .toc_title {
        font-size: 1.8rem;
    }

    .toc_list li {
        margin: 0 0 1rem !important;
    }
}

/* =======================================
   記事下CTA（リクトレ）
   ======================================= */
#form-cta.p-formCta {
    /*background: var(--color-gray);
    color: #fff;*/
    color: #333;
    padding: 60px 20px 80px;
    margin: 60px 0 0;
	position: relative;
    z-index: 10;
}

#form-cta .p-formCta__inner {
    max-width: 1040px;
    margin: 0 auto;
}

/* ---------- 見出しブロック ---------- */
#form-cta .p-formCta__head {
    text-align: center;
    margin-bottom: 40px;
}

#form-cta .p-formCta__copy {
    font-size: 2rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin: 0 0 8px;
}

#form-cta .p-formCta__title {
	/*font-size: 3.7rem;*/
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* ---------- 白いカード ---------- */
#form-cta .p-formCta__form {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    color: #333;
     /* padding: 40px 40px 70px;*/
	padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

#form-cta .p-formCta-form__head {
    font-size: 2.6rem;          
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--color-yellow);
}

#form-cta .p-formCta-form__lead {
    font-size: 2.0rem;           
    font-weight: 700;
    margin: 0 0 24px;
}

/* ---------- はい／いいえボタン ---------- */
#form-cta .p-formCta-form__choices {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0 0 32px;
}

#form-cta .p-formCta-choice {
    position: relative;
    flex: 0 0 280px;
    max-width: 320px;
    height: 72px;
    border-radius: 999px;
    border: 2px solid var(--color-yellow);
    background: #fff;
    color: #333;
    font-size: 2.0rem;
    font-weight: 700;
	padding-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* 擬似ラジオボタン */
#form-cta .p-formCta-choice::before {
    content: "";
    position: absolute;
    left: 32px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--color-yellow);
    background: #fff;
}

/* アクティブ（選択中） */
#form-cta .p-formCta-choice.is-active {
    background: #ccc;
    color: #fff;
	text-shadow: 1px 1px 1px #999;
}

#form-cta .p-formCta-choice.is-active::before {
    background: #fff;
}

/* ---------- 「無料で相談する」ボタン ---------- */
#form-cta .p-formCta-form__action {
    margin-top: 16px;         
    display: flex;
    justify-content: center;   
}

#form-cta .p-formCta-form__action .c-btn {
    /*width: 100%;              
    max-width: 640px;*/    
	width: 320px; 
    margin: 0 auto;            
}

#form-cta .p-formCta-form__action .c-btn a {
    display: block;           
    width: 100%;              
    /*height: 80px;
    line-height: 80px;*/
    border-radius: 999px;
    background: var(--color-yellow);;
    color: #fff;
    font-size: 2.0rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* ---------- SP 調整 ---------- */
@media screen and (max-width: 750px) {
    #form-cta.p-formCta {
        padding: 40px 16px 56px;
        margin: 40px 0 0;
    }

    #form-cta .p-formCta__title {
        font-size: 2.3rem;
    }

    #form-cta .p-formCta__form {
        padding: 24px 16px 32px;
    }

    #form-cta .p-formCta-form__head {
        font-size: 2.0rem;
    }

    #form-cta .p-formCta-form__lead {
        font-size: 1.6rem;
    }

    #form-cta .p-formCta-form__choices {
        /*flex-direction: column;
        gap: 16px;*/
        gap: 5px;
    }

    #form-cta .p-formCta-choice {
		width: 180px;
        flex: 1 1 auto;
        max-width: none;
        /*width: 100%;*/
    }

    #form-cta .p-formCta-choice::before {
        left: 20px;
    }

    /* スマホではボタンを横幅いっぱいに */
    #form-cta .p-formCta-form__action .c-btn a {
        min-width: 0;
        width: 100%;
    }
}
