@charset "utf-8";

/* ============================ 創エネ・蓄エネ・省エネ 詳細 ============================ */

#product-energy-detail {
    --energy-create: #f6ab00;
    --energy-save: #87caac;
    --energy-line: #d9dede;
    --energy-bg: #f7f8f8;
}

.energy-hero {
    position: relative;
    background-color: #f7f8f8;
    padding: 96px 0 42px;
}

@media screen and (min-width: 769px) {
    .energy-hero > .breadcrumb {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 3;
    }
}

.energy-hero .l-inner {
    display: block;
}

.energy-hero__content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.energy-hero__title {
    color: #231815;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.22;
}

.energy-hero__title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 18px auto 0;
    background-color: #00a291;
}

.energy-hero__description {
    max-width: 620px;
    margin: 18px auto 0;
    color: #231815;
    font-size: 18px;
    line-height: 1.8;
}

.energy-detail__lead {
    text-align: center;
}

.energy-detail__lead p {
    margin-top: 18px;
    font-weight: 600;
    line-height: 2;
}

.energy-detail__intro {
    display: flex;
    gap: 42px;
    align-items: flex-start;
}

.energy-detail--v2h .energy-detail__intro {
    margin-top: 30px;
}

.energy-detail__intro-img {
    display: block;
    width: 100%;
    flex: 0 1 40%;
    min-width: 320px;
    max-height: 360px;
    object-fit: contain;
}

.energy-detail__body {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    gap: 18px;
    text-align: left;
}

.energy-detail__body h3 {
    color: #00a291;
}

.energy-detail__body p {
    font-weight: 600;
    line-height: 1.9;
}

.energy-detail__cards {
    display: flex;
    gap: 22px;
    margin-top: 32px;
}

.energy-detail__card {
    flex: 1;
    padding: 28px 24px;
    border: 1px solid var(--energy-line);
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(35, 24, 21, 0.12);
}

.energy-detail__card h3 {
    color: #231815;
    font-size: 22px;
    padding-bottom: 20px;
}

.energy-detail__card p {
    font-weight: 600;
    line-height: 1.8;
}

.energy-detail__panel {
    padding: 34px 40px;
    background-color: var(--energy-bg);
}

.energy-detail__panel h3 {
    color: #00a291;
}

.energy-detail__panel p,
.energy-detail__panel li {
    font-weight: 600;
    line-height: 1.9;
}

.energy-detail__flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.energy-detail__flow li {
    padding: 22px;
    background-color: #fff;
}

.energy-detail__faq {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.energy-detail__faq-item {
    border: 1px solid var(--energy-line);
    border-radius: 4px;
    background-color: #fff;
}

.energy-detail__faq-item summary,
.energy-detail__faq-item p {
    padding: 18px 22px;
    font-weight: 600;
    line-height: 1.8;
}

.energy-detail__faq-item summary {
    position: relative;
    display: block;
    padding-right: 60px;
    color: #00a291;
    cursor: pointer;
}

.energy-detail__faq-item summary::-webkit-details-marker {
    display: none;
}

.energy-detail__faq-item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 14px;
    height: 14px;
    border-right: 2px solid #00a291;
    border-bottom: 2px solid #00a291;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.energy-detail__faq-item[open] summary {
    border-bottom: 1px solid var(--energy-line);
}

.energy-detail__faq-item[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.energy-detail__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.energy-detail__links .c-btn-square {
    width: min(580px, 100%);
    margin: 0;
}

/* 蓄電池 */
.battery-about__intro,
.battery-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 36px;
    align-items: flex-start;
    margin-top: 34px;
}

.battery-about__intro h3,
.battery-split h3 {
    color: #00a291;
}

.battery-about__intro p,
.battery-split p,
.battery-merit__block p,
.battery-image-panel p,
.battery-type p {
    margin-top: 14px;
    font-weight: 600;
    line-height: 1.9;
}

.battery-about__intro img,
.battery-image-panel img,
.battery-split img,
.battery-type img {
    display: block;
    width: 100%;
    height: auto;
}

.battery-image-panel {
    margin-top: 40px;
    padding: 34px;
    border: 2px solid #f39b87;
    background-color: #fff;
}

.battery-image-panel h3,
.battery-type h4 {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 20px;
    color: #fff;
    line-height: 1.6;
    background-color: #f39b87;
}

.battery-image-panel>img {
    margin-top: 26px;
}

.battery-image-panel>p {
    text-align: center;
}

.battery-merit__block {
    margin-top: 34px;
    padding: 30px 34px;
    background-color: #fff;
    border-left: 8px solid #87caac;
}

.battery-merit__title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #00a291;
    line-height: 1.5;
    text-align: left;
}

.battery-merit__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    flex-direction: column;
    width: 58px;
    height: 58px;
    color: #231815;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    background-color: #fff000;
}

.battery-merit__num span {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
}

.battery-merit__block>img {
    display: block;
    width: 100%;
    margin-top: 28px;
}

.battery-split {
    margin-top: 40px;
    padding: 34px;
    background-color: #fff;
}

.battery-split--reverse {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.battery-split--reverse>div {
    order: 2;
}

.battery-split small {
    display: block;
    margin-top: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.battery-fit-price-img {
    max-width: 400px;
    margin: 0 auto;
}

.battery-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.battery-type h4 {
    margin-top: 20px;
}

.energy-detail__faq-lead {
    margin-top: 14px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

.energy-detail__faq-section > .l-inner {
    padding-top: 40px;
    padding-bottom: 46px;
}

#product-energy-detail .energy-detail__faq-section + .product-consult {
    margin-top: 36px !important;
}

@media screen and (max-width: 768px) {
    .energy-detail__faq-section > .l-inner {
        padding-top: 32px;
        padding-bottom: 36px;
    }

    #product-energy-detail .energy-detail__faq-section + .product-consult {
        margin-top: 28px !important;
    }
}

#product-energy-detail .product__recommend-table-data {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 190px;
    height: auto;
    gap: 12px;
}

#product-energy-detail .product__recommend-img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.solar-detail .product__recommend-table--dynamic .product__recommend-products,
.energy-detail--battery .product__recommend-table--dynamic .product__recommend-products,
.v2h-detail .product__recommend-table--dynamic .product__recommend-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
}

.solar-detail .product__recommend-table--dynamic .product__recommend-link,
.energy-detail--battery .product__recommend-table--dynamic .product__recommend-link,
.v2h-detail .product__recommend-table--dynamic .product__recommend-link {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product__recommend-external {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 0.35em;
    margin-top: 8px;
    color: #231815;
    font-size: 13px;
    line-height: 1.5;
}

.product__recommend-external::before {
    content: "▶";
    display: inline-grid;
    width: 1.25em;
    height: 1.25em;
    place-items: center;
    border-radius: 50%;
    background: #231815;
    color: #fff;
    font-size: 0.62em;
}

.solar-detail .product__recommend-table--dynamic .product__recommend-link::before,
.energy-detail--battery .product__recommend-table--dynamic .product__recommend-link::before,
.v2h-detail .product__recommend-table--dynamic .product__recommend-link::before {
    content: none;
}

.solar-detail .product__recommend-table--dynamic .product__recommend-maker-name,
.energy-detail--battery .product__recommend-table--dynamic .product__recommend-maker-name,
.v2h-detail .product__recommend-table--dynamic .product__recommend-maker-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    word-break: keep-all;
}

.solar-detail .product__recommend-table--dynamic .product__recommend-table-data {
    grid-template-rows: 240px !important;
}

.solar-detail .product__recommend-table--dynamic th img {
    width: min(220px, 82%);
    height: 28px;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.energy-merit__heading {
    color: #231815;
}

.product__recommend-empty {
    margin-top: 32px;
    padding: 40px 24px;
    background-color: #f7f8f8;
    font-weight: 700;
    text-align: center;
}

.battery-merit,
.solar-merit,
.v2h-merit {
    padding-top: clamp(48px, 5vw, 72px);
    padding-bottom: clamp(48px, 5vw, 72px);
}

/* 太陽光発電 */
.solar-about {
    display: flex;
    gap: 40px;
}

.solar-about__main-img {
    flex: 0 1 20%;
    min-width: 280px;
}

.solar-about__body {
    flex: 1 1 0;
    min-width: 0;
}

.solar-about__main-img,
.solar-structure__img,
.solar-equipment img,
.solar-merit__block>img {
    display: block;
    width: 100%;
    height: auto;
}

.solar-about__main-img {
    object-fit: contain;
}

.solar-about__body p,
.solar-structure p,
.solar-equipment p,
.solar-merit__block p,
.solar-merit__notes {
    margin-top: 14px;
    font-weight: 600;
    line-height: 1.9;
}

.solar-equipment h2 {
    color: #231815;
}

.solar-equipment-section .l-inner.lightgray-bg {
    margin-top: 50px;
}

.solar-equipment-section+.solar-merit {
    margin-top: 50px;
}

.solar-equipment p {
    text-align: center;
}

.solar-equipment img {
    margin-top: 28px;
}

.solar-structure__content {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-top: 28px;
}

.solar-structure__img {
    flex: 1 1 56%;
    min-width: 0;
    max-width: 550px;
    margin: 0 auto;
}

.solar-merit__block {
    margin-top: 34px;
    padding: 30px 34px;
    background-color: #fff;
    border-left: 8px solid #87caac;
}

.solar-merit__title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #00a291;
    line-height: 1.5;
    text-align: left;
}

.solar-merit__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    flex-direction: column;
    width: 58px;
    height: 58px;
    color: #231815;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    background-color: #fff000;
}

.solar-merit__num span {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
}

.solar-merit__block>img {
    margin-top: 28px;
}

.solar-merit__block--split {
    display: flex;
    gap: 34px;
    align-items: center;
}

.solar-merit__block--split>div {
    flex: 1 1 0;
    min-width: 0;
}

.solar-merit__block--split>img {
    flex: 0 1 20%;
    min-width: 280px;
    margin-top: 0;
}

.solar-merit__notes {
    padding-left: 1.5em;
    font-size: 14px;
    list-style: decimal;
}

/* V2H */
.v2h-merit__block {
    margin-top: 34px;
    padding: 30px 34px;
    background-color: #fff;
    border-left: 8px solid #87caac;
}

.v2h-merit__block h3,
.v2h-example h3 {
    color: #00a291;
}

.v2h-merit__title {
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.5;
    text-align: left;
}

.v2h-merit__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    flex-direction: column;
    width: 58px;
    height: 58px;
    color: #231815;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    background-color: #fff000;
}

.v2h-merit__num span {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
}

.v2h-merit__block p,
.v2h-example p {
    margin-top: 14px;
    font-weight: 600;
    line-height: 1.9;
}

.v2h-merit__block>img,
.v2h-example>img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 28px;
}

.v2h-merit__block--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 34px;
    align-items: center;
}

.v2h-merit__block--split>img {
    margin-top: 0;
}

.v2h-example .energy-detail__flow>div {
    padding: 22px;
    background-color: #fff;
}

.v2h-example__table {
    width: 100%;
    margin-top: 30px;
    overflow: hidden;
    border-collapse: collapse;
    background-color: #fff;
}

.v2h-example__table th,
.v2h-example__table td {
    width: 25%;
    padding: 16px 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    border: 1px solid #d9dede;
}

.v2h-example__table th {
    color: #fff;
    background-color: #00a291;
}

.v2h-example__table td {
    color: #f05a40;
    font-size: 26px;
}

@media screen and (max-width: 1024px) {
    .energy-detail__intro {
        flex-direction: column;
        align-items: stretch;
    }

    .energy-detail__intro-img {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 420px;
        margin: 0 auto;
    }

    .energy-detail__cards,
    .energy-detail__flow {
        grid-template-columns: 1fr;
    }

    .v2h-merit__block--split {
        grid-template-columns: 1fr;
    }

    .solar-structure__content {
        flex-direction: column;
        align-items: stretch;
    }

    .solar-structure__img {
        flex: 1 1 auto;
    }

    .v2h-merit__block--split>img {
        max-width: 420px;
        margin: 0 auto;
    }

    .battery-about__intro,
    .battery-split,
    .battery-split--reverse,
    .battery-type {
        grid-template-columns: 1fr;
    }

    .battery-split--reverse>div {
        order: initial;
    }
}

@media screen and (max-width: 768px) {
    .energy-hero {
        padding: 0 0 34px;
    }

    .energy-hero .l-inner {
        padding: 34px 22px 0;
    }

    .energy-hero__description {
        font-size: 16px;
        line-height: 1.8;
    }

    .energy-detail__lead p {
        text-align: left;
    }

    .energy-detail__panel {
        padding: 28px 20px;
    }

    .energy-detail__links {
        flex-direction: column;
        align-items: center;
    }

    .energy-detail__links .c-btn-square {
        width: 100%;
    }

    .battery-image-panel,
    .battery-merit__block,
    .battery-split,
    .solar-equipment,
    .solar-merit__block,
    .v2h-merit__block {
        padding: 24px 20px;
    }

    .solar-equipment p {
        text-align: left;
    }

    .battery-merit__title {
        align-items: flex-start;
    }

    .v2h-merit__title {
        align-items: flex-start;
    }

    .solar-merit__title {
        align-items: flex-start;
    }

    .battery-merit__num {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }

    .battery-merit__num span {
        font-size: 9px;
    }

    .v2h-merit__num {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }

    .v2h-merit__num span {
        font-size: 9px;
    }

    .solar-merit__num {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }

    .solar-merit__num span {
        font-size: 9px;
    }

    .solar-detail .product__recommend-table--dynamic .product__recommend-products,
    .energy-detail--battery .product__recommend-table--dynamic .product__recommend-products,
    .v2h-detail .product__recommend-table--dynamic .product__recommend-products {
        grid-template-columns: 1fr;
    }

    .solar-detail .product__recommend-table--dynamic .product__recommend-link + .product__recommend-link,
    .energy-detail--battery .product__recommend-table--dynamic .product__recommend-link + .product__recommend-link,
    .v2h-detail .product__recommend-table--dynamic .product__recommend-link + .product__recommend-link {
        padding-top: 20px;
        border-top: 1px solid #d8d8d8;
    }
}

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

    .solar-about,
    .solar-merit__block--split {
        flex-direction: column;
        align-items: stretch;
    }

    .solar-about__main-img,
    .solar-merit__block--split>img {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .energy-hero {
        padding: 0 0 30px;
    }

    .energy-hero__title {
        font-size: 32px;
    }

    .v2h-example__table,
    .v2h-example__table tbody,
    .v2h-example__table tr,
    .v2h-example__table td {
        display: block;
        width: 100%;
    }

    .v2h-example__table {
        overflow: visible;
        border-collapse: separate;
        background-color: transparent;
    }

    .v2h-example__table tr:first-child {
        display: none;
    }

    .v2h-example__table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 24px;
        border-top: 0;
        background-color: #edf8f6;
    }

    .v2h-example__table td:first-child {
        border-top: 1px solid #d9dede;
    }

    .v2h-example__table td::before {
        content: attr(data-label);
        color: #231815;
        font-size: 15px;
        line-height: 1.5;
    }

}
