/* =================================
   front-page.css
   トップページ専用スタイル（template-parts/top/）
================================= */

/* =================================
   Component: ページヒーロー
================================= */
.page-hero-section {
    position: relative;
    overflow: hidden;
    background: repeating-conic-gradient(
        #ffc200 0deg 9deg,
        #ffc800 9deg 18deg
    );
}

.page-hero-section_swiper {
    width: 100%;
    max-width: 600px;
}

/* スライド共通 */
.page-hero-section_slide {
    position: relative;
    min-height: 500px;
    background-color: #f5c800;
    overflow: hidden;
}


/* スライド内レイアウト */
.page-hero-section_slide_inner {
    position: relative;
    background-color: var(--color-white);
    padding: 0 0 20px;
}
.page-hero-section_slide_inner img {
    margin: 0 auto;
}

/* ページネーション */
.page-hero-section_pagination {
    position: absolute;
    bottom: 12px !important;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.page-hero-section_pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--color-black);
    opacity: 0.3;
    margin: 0 4px;
}

.page-hero-section_pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--color-black);
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero-section_slide {
        min-height: 440px;
    }

    .page-hero-section_slide_inner {
        min-height: 440px;
        padding: 0;
    }

}

/* =================================
   Component: アピールセクション
================================= */
.appeal-section {
    background-color: var(--color-white);
    padding: 32px 0;
}

.appeal-section_inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 左：テキスト */
.appeal-section_body {
    flex: 1;
    min-width: 0;
}

.appeal-section_ttl {
    font-size: 30px;
    font-weight: bold;
    color: #F7A80A;
    line-height: 1.5;
    margin: 0 0 16px;
}

.appeal-section_txt {
    font-size: 13px;
    color: var(--color-black);
    line-height: 2;
    margin: 0;
}

/* 右：おかげさまで画像 */
.appeal-section_img {
    flex-shrink: 0;
    width: 120px;
    align-self: flex-start;
}

.appeal-section_img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (min-width: 769px) {
    .appeal-section_ttl {
        font-size: 46px;
    }
    .appeal-section_txt {
        font-size: 16px;
    }
    .appeal-section_img {
        width: 200px;
    }
}
@media (max-width: 768px) {
    .appeal-section {
        padding: 28px 0;
    }

    .appeal-section_ttl {
        font-size: 18px;
    }

    .appeal-section_txt {
        font-size: 12px;
    }

    .appeal-section_img {
        width: 100px;
    }
}

/* =================================
   Component: 選ばれる理由
================================= */
.reasons-section {
    padding: 48px 0;
    background-color: var(--color-white);
}

.reasons-section_inner {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 16px;
}

/* セクション見出し */
.reasons-section_heading {
    text-align: center;
}

.reasons-section_ttl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    color: var(--color-black);
    margin: 0;
    white-space: nowrap;
}

/* 両側の横罫線 */
.reasons-section_ttl_rule {
    display: block;
    flex: 1;
    height: 4px;
    background-color: var(--color-main);
    max-width: 30px;
}

/* リスト */
.reasons-section_list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 各アイテム */
.reasons-section_item {
    padding: 24px 0;
}


/* タイトル行（チェック + テキスト） */
.reasons-section_item_head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: solid 1px var(--color-black);
    padding-bottom: 5px;
}

/* チェックアイコン円 */
.reasons-section_check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #6BC300;
    color: var(--color-white);
    font-size: 14px;
    margin-top: 1px;
}

/* タイトルテキスト */
.reasons-section_item_ttl {
    font-size: 16px;
    color: var(--color-black);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* 説明文 */
.reasons-section_item_txt {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.8;
    margin: 0 0 16px;
}

/* 画像エリア */
.reasons-section_item_img {
    width: 100%;
    min-height: 180px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.reasons-section_item:first-of-type .reasons-section_item_img,
.reasons-section_item:last-of-type .reasons-section_item_img {
    aspect-ratio: 15 / 8;
    display: flex;
    align-items: end;
    object-fit: cover;
}

.reasons-section_item_img:empty {
    background-color: #ebebeb;
}

.reasons-section_item_img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (min-width: 769px) {
    .reasons-section_ttl {
        font-size: 46px;
        margin-bottom: 16px;
    }
    .reasons-section_ttl_rule {
        max-width: 40px;
    }
    .reasons-section_item {
        display: flex;
    }
    .reasons-section_item_inner {
        width: 50%;
        padding-right: 3%;
    }
    .reasons-section_item_img {
        width: 50%;
    }
}
@media (max-width: 768px) {
    .reasons-section {
        padding: 40px 0;
    }

    .reasons-section_ttl {
        font-size: 24px;
    }

    .reasons-section_item {
        padding: 20px 0;
    }

    .reasons-section_item_ttl {
        font-size: 15px;
    }

    .reasons-section_item_img {
        min-height: 160px;
    }
}

/* =================================
   Component: 対応エリア 見た目調整
================================= */

.area-section--waterproof {
    border-bottom: 1px solid var(--color-border);
}
/* Responsive */
@media (max-width: 768px) {
    .area-section--waterproof {
        border-bottom: none;
        padding: 48px 0 0;
    }
    .area-section--waterproof .area-section_inner {
        padding: 0 0 32px;
        border-bottom: 1px solid var(--color-border);
        margin: 0 16px;
    }
}

/* PC版：Swiperを横いっぱいに広げる */
@media (min-width: 769px) {

    .page-hero-section {
        background: none !important;
    }

    /* Swiper の横幅制限を解除 */
    .page-hero-section_swiper {
        max-width: 1280px;
        margin: 0 auto;
    }

    /* スライドの高さを可変にする（縦長防止） */
    .page-hero-section_slide {
        min-height: auto;
        background: none;
    }

    /* スライド内の白背景をFigma風に調整 */
    .page-hero-section_slide_inner {
        background: #fff;
        padding: 40px;
        border-radius: 12px;
        max-width: 1500px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* 画像をPC用に大きく表示 */
    .page-hero-section_slide_inner img {
        width: 100%;
        max-width: 1500px;
        height: 700px;
        display: block;
        margin: 0 auto;
    }
    
}