/*********************************************
コンテナハウス＆トレーラーハウス（compare)
*****************************/
:root {
    --navy: #2e4554;
    --attention-color1: #d93b00;
}

#compare {
    width: 100%;
    padding: 60px 0 0;
    margin: 0 auto;
}

#compare .sub-cont {
    padding: 50px 20px;
}

#compare-top h2.compare-catch-copy {
    font-size: clamp(1.2rem, 0.909rem + 1.45vw, 2rem);
    line-height: 2;
    margin-bottom: 0.5em;
}

#compare-top p.introduction {
    font-size: 18px;
    line-height: 1.8;
}

#compare h2 {
    font-size: clamp(1.5rem, 0.445rem + 4.28vw, 2.5rem);
    line-height: 1.5;
    margin-bottom: 0.5em;
    color: var(--navy);
    font-weight: 800;
}

#compare h3 {
    font-size: clamp(1.5rem, 0.287rem + 3.56vw, 2rem);
    margin: 20px;
    color: #333;
    font-weight: 800;
    z-index: 100;
    position: relative;
    letter-spacing: 0.05em;
    text-align: center;

}

#compare p {
    font-size: clamp(0.875rem, 0.636rem + 1.02vw, 1.125rem);
}

#compare #all section:nth-of-type(2n+1) h3 {
    color: #fff;
}

#compare .introduction {
    font-size: clamp(0.85rem, 0.601rem + 1.25vw, 1.2rem);
    color: #555;
    line-height: 1.8;
}

#compare ul.flex-2 {
    display: flex;
    flex-wrap: nowrap;
    text-align: center;
    gap: 1rem;
}

.inline-block {
    display: inline-block;
}

#compare section:nth-of-type(2n+1) {
    background: var(--navy);
}

#compare section:nth-of-type(2n+1)::after {
    color: rgba(255, 255, 255, 0.09);
}

#compare .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5%;
}

#compare .flex .flex-innerbox {
    width: calc((100% - 5%) / 2);
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    background: #fff;
    border-radius: 20px;
    text-align: justify;
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    border: 5px solid var(--navy);
    transition: 0.3s;
    color: var(--navy);
}

#compare .flex .flex-innerbox:hover {
    transform: translateY(-10px);
    transition: 0.3s;
}

#compare .flex .flex-innerbox img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#compare #all section:nth-of-type(2n+1) .flex-innerbox h3 {
    color: #fff;
}

#compare .flex-innerbox .checked-list,
#compare .flex-innerbox p {
    padding: 0 4% 6%;
    letter-spacing: 0.02em;
    line-height: 1.8;
}

#compare .flex-innerbox .checked-list {
    margin: 0 auto 0.5em;
    font-size: 1.3rem;
}

#compare .flex-innerbox .checked-list li {
    list-style: none;
    color: var(--navy);
    margin-bottom: 0.5em;
}

#compare .flex-innerbox .checked-list li::before {
    content: url(../../../image/compare/checked-circle.svg);
    margin-right: 8px;
    transform: translateY(7px);
}

#compare .flex-innerbox p {
    text-align: center;
    font-size: 1rem;
}

#compare #hikaku h2,
#compare #hikaku p {
    color: #fff;
}

#compare #hikaku table {
    width: 100%;
    margin: 30px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 20px;
    font-size: 1.2rem;
    overflow: hidden;
    border: 1px solid #ddd;
    line-height: 1.5;
}

#compare #hikaku table tr {
    line-height: 2.5;
}

#compare #hikaku table tr:hover {
    background: #ffe8ca;
    transition: 0.5s;
}

#compare #hikaku table th {
    font-size: 1.3rem;
    background: #fb9527;
    border: 1px solid #ddd;
}

#compare #hikaku table td {
    border: 1px solid #ddd;
    padding: 10px 0;
    position: relative;
}

#compare #hikaku table .compare-point {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: #fff;
    padding: 5px 10px 6px 8px;
    height: auto;
    background: var(--attention-color1);
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%);
    width: 60px;
    line-height: 1;
    border-radius: 50px;
    line-height: 10px;
    letter-spacing: 0.1em;
    padding-bottom: 8px;
}

#compare section[id^="feature-"] .flex {
    gap: 0;
    justify-content: space-between;
    margin-top: 30px;
}

#compare section[id^="feature-"] .flex-innerbox {
    width: calc((100% - 5%) / 3);
}

#compare .flex-innerbox p.comment {
    text-align: left;
}

#feature-trailer h2,
#feature-trailer h2+p {
    color: #fff;
}


#faq .faq-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 3px solid var(--navy);
    border-radius: 20px;
    text-align: justify;
    font-size: clamp(1rem, 0.761rem + 1.02vw, 1.25rem);
    line-height: 1.8;
    color: var(--navy);
    margin-bottom: 30px;
    text-align: justify;
}

#faq dd,
#faq dt {
    position: relative;
    margin-left: 60px;
}

#faq dt {
    font-weight: 800;
    font-size: clamp(1.125rem, 0.886rem + 1.02vw, 1.375rem);
    letter-spacing: 0.05em;
    margin-bottom: 0.7em;
}

#faq dt::before {
    content: 'Q';
    position: absolute;
    display: inline-block;
    background: var(--attention-color1);
    color: #fff;
    width: 44px;
    height: 40px;
    text-align: center;
    border-radius: 40px;
    padding-bottom: 4px;
    transform: translateX(-60px);
}

#faq dd {
    font-size: clamp(1rem, 0.881rem + 0.51vw, 1.125rem);
}

#faq dd::before {
    content: 'A';
    position: absolute;
    display: inline-block;
    font-weight: 800;
    background: var(--navy);
    color: #fff;
    width: 44px;
    height: 44px;
    text-align: center;
    border-radius: 47px;
    box-sizing: border-box;
    transform: translateX(-60px);
    font-size: clamp(1.125rem, 0.886rem + 1.02vw, 1.375rem);
}

#faq strong {
    font-weight: 800;
}

#faq ol {
    list-style-position: inside;
    margin: 10px auto;
}

#faq ol li {
    margin: 10px 0;
    font-weight: bold;
}

#faq ul li {
    margin: 10px 0;
    list-style: none;

}

#compare #apply {
    background: url(../../../../image/compare/bg_trailerhouse.webp) no-repeat center center;
    background-size: cover;
}

#apply h2,
#apply p {
    color: #fff;
    letter-spacing: 0.085em;
    text-shadow: 0 0 15px #000050;
}

#apply h2 {
    font-size: clamp(1.3rem, 0.445rem + 4.28vw, 3rem);
    margin-top: 20px;
}

#apply p {
    margin-bottom: 0.5em;
}

#apply .btn-apply {
    display: block;
    color: #fff;
    background: #d93b00;
    text-align: center;
    margin: 30px;
    font-size: 23px;
    padding: 30px;
    border-radius: 10px;
    transition: .3s;
    letter-spacing: 0.085em;
    font-weight: 600;
    max-width: 600px;
    margin: 30px auto;
}

#apply .btn-apply:hover {
    opacity: .5;
    transition: .3s;
}

@media screen and (max-width: 960px) {
    #compare section[id^="feature-"] h3 {
        font-size: 2.4vw;
        margin: 10px;
    }

    #compare table.sp .koumoku {
        line-height: 1;
        background: #ffe8ca;
    }

    #compare table.sp {
        overflow: auto;
        font-size: 1rem;
    }

    #compare table.sp th {
        position: sticky;
        top: 0;
    }

    #compare #faq dd,
    #compare #faq dt {
        line-height: 1.5;
    }
}

@media screen and (max-width: 480px) {
    #compare .sub-cont {
        padding: 20px 10px;
    }

    #compare .flex,
    #compare section[id^="feature-"] .flex {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 20px;
    }

    #compare .flex .flex-innerbox,
    #compare section[id^="feature-"] .flex-innerbox {
        width: 100%;
    }

    #compare section[id^="feature-"] h3 {
        font-size: 1.5rem;
        margin: 20px;
    }

    #compare .flex-innerbox .checked-list,
    #compare .flex-innerbox p {
        padding: 0 4% 4%;
        letter-spacing: 0.02em;
        line-height: 1.5;
    }

    #compare .flex-innerbox .checked-list {
        font-size: 1.2rem;
    }

    #compare .flex-innerbox .checked-list li {
        padding-left: 2rem;
    }

    #compare .flex-innerbox .checked-list li::before {
        content: url(../../../image/compare/checked-circle.svg);
        margin-right: 8px;
        transform: translate(-32px, 0px);
        position: absolute;
    }

    #compare #hikaku table tr {
        line-height: 1;
    }

    #compare #hikaku table th {
        font-size: 1.1em;
        padding: 10px 0;
    }

    #compare #hikaku table td {
        font-size: 1rem;
        line-height: 1.5;
    }

    #compare #faq .faq-box {
        padding: 20px;
        margin: 20px auto 0;
    }

    #compare #faq dd,
    #compare #faq dt {
        margin-left: 40px;
    }

    #compare #faq dt::before {
        content: 'Q';
        position: absolute;
        display: inline-block;
        background: var(--attention-color1);
        color: #fff;
        width: 36px;
        height: 32px;
        text-align: center;
        border-radius: 40px;
        padding-bottom: 4px;
        transform: translateX(-50px);
        line-height: 1.8;
    }

    #compare #faq dd::before {
        content: 'A';
        position: absolute;
        display: inline-block;
        font-weight: 800;
        background: var(--navy);
        color: #fff;
        width: 36px;
        height: 36px;
        text-align: center;
        border-radius: 47px;
        box-sizing: border-box;
        transform: translateX(-49px);
        font-size: clamp(1.125rem, 0.886rem + 1.02vw, 1.375rem);
        line-height: 1.8;
    }

    #compare #hikaku table .compare-point {
        display: inline-block;
        margin-left: 10px;
        font-size: 14px;
        color: #fff;
        padding: 5px 10px 6px 8px;
        height: auto;
        background: var(--attention-color1);
        position: absolute;
        top: -17px;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        line-height: 1;
        border-radius: 50px;
        line-height: 10px;
        letter-spacing: 0.1em;
        padding-bottom: 8px;
        animation: swing;
    }

    #compare #hikaku table .compare-point::after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        border: 10px solid var(--attention-color1);
        position: absolute;
        border-color: var(--attention-color1) transparent transparent;
        transform: translate(-50%, 0%) scaleX(0.5);
        top: 94%;
        left: 50%;
    }
}