@charset "utf-8";

/* =========================================
   レンタサイクル（下層）
   ========================================= */
.rental {
    overflow: hidden;
    padding-top: var(--header-h);
}

/* ---- ヒーロー（全幅画像＋パンくず＋タイトル） ---- */
.rental-hero {
    position: relative;
    padding-top: 120px;
}

.rental-hero__img img {
    width: 100%;
    aspect-ratio: 1920 / 665;
    min-height: 550px;
    object-fit: cover;
    display: block;
}

.rental-hero__head {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 500px);
    max-width: 1100px;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}

.rental-hero__head .breadcrumb {
    position: absolute;
    left: 40px;
    top: 0;
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rental-hero__head .lower-title {
    letter-spacing: 0;
    text-indent: 0;
    line-height: 1;
    padding: 26px 25px 24px;
}

/* 白ピルのタイトルは common .lower-title を流用 */

/* ---- 看板見出し（index の .signboard を踏襲） ---- */
.signboard {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.signboard::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -13px;
    bottom: -28px;
    width: 18px;
    transform: translateX(-50%);
    background: var(--yellow);
    border: 2px solid var(--green);
    z-index: 0;
}

.signboard__plate {
    position: relative;
    display: inline-block;
    min-width: clamp(300px, 22vw, 420px);
    text-align: center;
    background: var(--yellow);
    border: 2px solid var(--green);
    color: var(--green);
    font-weight: 900;
    font-size: clamp(20px, 2.2vw, 30px);
    letter-spacing: 0;
    text-indent: 0;
    line-height: 1;
    padding: 17px 40px 16px;
    z-index: 1;
}

/* ---- リード（予土まちをめぐるなら～） ---- */
.rental-lead {
    background: #fff;
    padding: 70px 0 190px;
}

.rental-lead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

.rental-lead__title {
    font-weight: 900;
    font-size: clamp(24px, 2.6vw, 40px);
    line-height: 1.9;
    color: var(--green);
    margin-bottom: 26px;
}

.rental-lead__title span {
    /* 文字の下から約35%だけ黄色のマーカー */
    background: linear-gradient(transparent 65%, var(--yellow) 65%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 2px;
}

.rental-lead__text p {
    color: var(--green);
    font-weight: 500;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.9;
    letter-spacing: 0.04em;
    max-width: 495px;
}

.rental-lead__img {
    flex: 0 0 auto;
    width: clamp(320px, 40%, 480px);
    line-height: 0;
}

.rental-lead__img img {
    width: 100%;
    aspect-ratio: 480 / 330;
    object-fit: cover;
    border-radius: 20px;
}

/* ---- レンタル方法（緑セクション） ---- */
.rental-method {
    position: relative;
    background: var(--green);
    padding: 30px 0 calc(7.308vw + 160px);
}

/* 上：緑の波（白リードへ食い込む） */
.rental-method::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: calc(100% - 1px);
    width: 100%;
    height: calc(100vw / 13.68);
    background: url("../img/wave_img_green.png") center bottom / 100% 100%
        no-repeat;
    pointer-events: none;
}

.rental-method__steps {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 3vw, 56px);
    max-width: 1120px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.step {
    position: relative;
    flex: 1 1 0;
    max-width: 340px;
    margin-top: 55px;
    background: #fff;
    border-radius: 14px;
    padding: 74px 32px 36px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step__badge {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--green);
    text-align: center;
}

.step__num {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(50% + 15px);
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

/* ラベルの高さが円の中心に来るように配置 */
.step__label {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.step__desc {
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: 0.02em;
}

.step__note {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.rental-method .bicycle_illust {
    display: none;
}

/* ---- レンタルスポット一覧（グレーセクション） ---- */
.rental-spots {
    position: relative;
    background: #e8e8e8;
    padding: 64px 0;
}

/* 上：グレーの波（緑セクションへ食い込む） */
.rental-spots::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: calc(100% - 1px);
    width: 100%;
    height: auto;
    aspect-ratio: 260/19;
    background: url("../img/wave_img_gray.png") center bottom / 100% 100%
        no-repeat;
    pointer-events: none;
}

.rental-spots__list {
    max-width: 688px;
    margin: 40px auto 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---- アコーディオン ---- */
.spot-acc {
    background: #fff;
    /* 閉じているときは左右を完全な丸（ピル）に */
    border-radius: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.spot-acc[open] {
    border-radius: 50px;
}

.spot-acc__head {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 45px 20px 30px;
}

.spot-acc__head::-webkit-details-marker {
    display: none;
}

.spot-acc[open] .spot-acc__head {
    padding: 26px 45px 8px 30px;
}

.spot-acc__area {
    display: inline-block;
    border: 1.5px solid var(--green);
    border-radius: 9999px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 14px;
    margin-bottom: 8px;
}

.spot-acc__name {
    display: block;
    color: var(--green);
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 700;
    line-height: 1.4;
}

/* ＋／－トグル */
.spot-acc__toggle {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    align-self: flex-start;
    margin-top: 15px;
}

.spot-acc__toggle::before,
.spot-acc__toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--green);
    transform: translate(-50%, -50%);
}

.spot-acc__toggle::before {
    width: 22px;
    height: 2.5px;
}

.spot-acc__toggle::after {
    width: 2.5px;
    height: 22px;
    transition: transform 0.2s ease;
}

.spot-acc[open] .spot-acc__toggle::after {
    transform: translate(-50%, -50%) scaleY(0);
}

/* スライド開閉：高さをJSでアニメーション（paddingは内側へ） */
.spot-acc__body {
    overflow: hidden;
    transition: height 0.35s ease;
}

.spot-acc__inner {
    padding: 6px 55px 34px;
}

/* リンクボタン（instagram / 公式サイト） */
.spot-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px auto 60px;
}

.spot-link {
    width: calc(calc(100% - 20px) / 3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 52px;
    border: 1.5px solid var(--green);
    border-radius: 9999px;
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    transition: all 0.25s ease;
}

/* テキストは中央、アイコンは右端 */
.spot-link img {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
}

.spot-link:hover {
    background: #78af19;
    color: #fff;
}

.spot-link:hover img {
    filter: brightness(0) invert(1);
}

/* 住所・電話 */
.spot-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 auto 10px;
}

.spot-contact img {
    flex: 0 0 auto;
}

.spot-contact .ic-pin {
    width: 15px;
}

.spot-contact .ic-tel {
    width: 15px;
}

/* マップ枠 */
.spot-map {
    margin: 16px 0 26px;
    background: #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    height: 146px;
}

.spot-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.spot-map span {
    display: block;
    width: 100%;
    background: #f0a0a0;
    color: #c0392b;
    text-align: center;
    font-weight: 700;
    padding: 26px 10px;
}

/* 見出し＋横線のフィールド */
.spot-field {
    margin-bottom: 20px;
}

.spot-field.bicycle {
    margin-top: 60px;
}

.spot-field__label {
    display: flex;
    align-items: center;
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.spot-field__label::after {
    content: "";
    flex: 1;
    /* height: 1.5px;
    background: var(--green); */
    border-top: solid 1.5px var(--green);
    margin-left: 14px;
}

/* .borrow .spot-field__label::after,
.other .spot-field__label::after {
    margin-left: 70px;
} */

.spot-field__value {
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

/* 自転車テーブル */
.bike-table {
    border: 1.5px solid var(--green);
    margin-bottom: 22px;
}

.bike-table__head {
    background: var(--green);
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 10px;
    letter-spacing: 0.04em;
}

.bike-table__row {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    padding: 9px 14px;
    border-top: 1px solid var(--green);
}

/* その他 */
.spot-note {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
}

.info__top,
.footer__illust {
    background-color: #e8e8e8;
}

@media screen and (max-width: 1640px) {
    .rental-hero__head .breadcrumb {
        top: -15px;
    }
}

@media screen and (max-width: 1024px) {
    .rental-hero {
        padding-top: 180px;
    }

    .rental-hero__head {
        top: 135px;
        width: 100%;
    }
}

/* =========================================
   SP（〜768px）
   ========================================= */
@media screen and (max-width: 768px) {
    .rental-hero {
        padding-top: 70px;
    }

    .rental-hero__img img {
        aspect-ratio: auto;
        min-height: 0;
        height: 325px;
    }

    .rental-hero__head {
        top: 12px;
        padding: 0 30px;
        flex-direction: column;
        align-items: stretch;
    }

    .rental-hero__head .breadcrumb {
        position: static;
        transform: none;
        margin-bottom: 20px;
    }

    /* タイトルを1行に収める */
    .rental-hero .lower-title {
        font-size: 17px;
        letter-spacing: 0.04em;
        text-indent: 0.04em;
        padding: 15px 12px;
    }

    /* リード */
    .rental-lead {
        padding: 40px 0 calc(16.667vw + 70px);
    }

    .rental-lead__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 0 30px;
    }

    .rental-lead__title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .rental-lead__img {
        width: 100%;
        align-self: center;
        display: none;
    }

    /* 波：SP画像に切替 */
    .rental-method::before {
        height: auto;
        aspect-ratio: 6/1;
        background-image: url("../img/wave_img_green_sp.png");
    }

    .rental-spots::before {
        aspect-ratio: 1162/395;
        background-image: url("../img/wave_img_gray_sp2.png");
    }

    .signboard {
        margin-bottom: 100px;
    }

    .signboard__plate {
        min-width: 0;
        padding: 0;
        max-width: 350px;
        width: calc(100% - 60px);
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .signboard::before {
        top: auto;
        bottom: -15px;
        width: 13px;
        height: 65px;
        border: 2px solid var(--green);
        z-index: 0;
    }

    /* レンタル方法：縦積み */
    .rental-method {
        padding: 20px 0 calc(33.9931vw + 110px);
    }

    .rental-method__steps {
        flex-direction: column;
        align-items: center;
        gap: 85px;
        margin-top: 30px;
        padding: 0 30px;
    }

    .step__badge {
        width: 145px;
        height: 145px;
        top: -72px;
    }

    .step {
        width: 100%;
        max-width: 320px;
        margin-top: 0;
    }

    .rental-method .bicycle_illust {
        display: block;
        width: 94.6667%;
        position: absolute;
        bottom: 3vw;
        left: -13%;
    }

    /* スポット */
    .rental-spots {
        padding: 100px 0 calc(33.9931vw + 110px);
    }

    .rental-spots .signboard {
        margin-bottom: 35px;
    }

    .rental-spots__list {
        padding: 0 30px;
    }

    .spot-acc,
    .spot-acc[open] {
        border-radius: 40px;
    }

    .spot-acc__head,
    .spot-acc[open] .spot-acc__head {
        padding: 18px 25px 15px;
    }

    .spot-acc__inner {
        padding: 6px 20px 28px;
    }

    .spot-links {
        flex-direction: column;
        max-width: 220px;
        margin: 14px auto 20px;
    }

    .spot-link {
        display: flex;
        height: 46px;
        width: 100%;
    }

    /* .borrow .spot-field__label::after,
    .other .spot-field__label::after {
        margin-left: 14px;
    } */

    .info__top,
    .footer__illust {
        background-color: transparent;
    }

    .info__top {
        padding-top: 2px;
    }

    .info__top::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: calc(100% - 1px);
        width: 100%;
        height: auto;
        aspect-ratio: 1162/395;
        background: url("../img/wave_img_white_sp.png") center bottom / 100%
            100% no-repeat;
        pointer-events: none;
    }
}
