/* =================================
   lp-service-blocks.css
   template-parts/common/lp-service-blocks.php
================================= */

.lp-service-section {
    position: relative;
}

.lp-service-section::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-main);
    clip-path: polygon(0 7%, 100% 3%, 100% 100%, 0% 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.lp-service-section_head,
.lp-service-section_body {
    position: relative;
    z-index: 1;
}

.lp-service-section_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px 16px 16px;
    max-width: 600px;
    margin: 0 auto 50px;
}

.lp-service-section_head_inner {

}

.lp-service-section_label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-black);
}

.lp-service-section_title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1.35;
}

.lp-service-section_title_line1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
}

.lp-service-section_title_line2,
.lp-service-section_title__main {
    font-size: 30px;
    font-weight: bold;
    color: #FFA234;
}

/* ----- 黄ボディ（1項目＝縦並び・モバイルLP想定） ----- */
.lp-service-section_body {
    max-width: 600px;
    padding: 0 12px;
    margin: 0 auto; 
}

.lp-service-section_body_inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-service-item {
    border-bottom: 1px solid #fff;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.lp-service-item:last-child {
    border-bottom: none;
}

/* 1項目の内側余白（タイトル・本文の左揃え） */
.lp-service-item_inner {
}

.lp-service-item_ttl {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--color-black);
    text-align: left;
}

.lp-service-item_txt {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-black);
    text-align: left;
}

/* 画像＋Before/Afterバーを黒枠で一体表示（角はシャープ） */
.lp-service-item_compare {
    margin: 0 0 16px;
}

.lp-service-item_compare_view {
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: #d9d9d9;
    overflow: hidden;
}

.lp-service-item_compare_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-service-item_compare_img[hidden] {
    display: none !important;
}

.lp-service-item_ba {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
}

.lp-service-item_ba_btn {
    margin: 0;
    padding: 12px 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 非選択＝薄グレー地・黒字（見本の After 側） */
.lp-service-item_ba_btn:not(.is-active) {
    background-color: #ddd;
    color: var(--color-black);
}

/* 選択中＝黒地・白字（見本の Before 側） */
.lp-service-item_ba_btn.is-active {
    background-color: var(--color-black);
    color: var(--color-white);
}

.lp-service-item_ba_btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: -4px;
    z-index: 1;
}

/* CTA：白・黒枠・角なし・文言中央・矢印は右端 */
.lp-service-item_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 40px 14px 16px;
    background-color: var(--color-white);
    border: 1px solid var(--color-black);
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    transition: opacity var(--transition);
}

.lp-service-item_btn:hover {
    opacity: 0.88;
}

.lp-service-item_btn_txt {
    text-align: center;
}

.lp-service-item_btn i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

@media (max-width: 768px) {
    .lp-service-section_title_line2,
    .lp-service-section_title__main {
        font-size: 24px;
    }
}
@media (max-width: 600px) {
    .lp-service-section::before {
        clip-path: polygon(0 7%, 100% 4%, 100% 100%, 0% 100%);
    }
}
