/*
Theme Name: ISLANDレンタカー
Theme URI: https://islandresort.local/
Author: ISLAND RESORT
Author URI: https://islandresort.local/
Description: ISLANDレンタカー オリジナルWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: islandresort
*/

/* スムーズにスクロールさせる設定（ページ全体に適用） */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
    /* ヘッダーの高さ分の余白を確保 */
}

@media (min-width: 768px) {
    html {
        scroll-padding-top: 85px;
        /* ヘッダーの高さ分の余白を確保 */
    }
}

/*---------------------------------
ヘッダー
---------------------------------*/

/* --- ヘッダー本体 --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header_inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 4px 15px;
}

/* --- ロゴ --- */

.header_logo-box {
    width: 100px;
    height: 40px;
    flex-shrink: 0;
}

.header_logo {
    display: block;
    width: 100%;
    height: 100%;
}

.header_logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- 言語セレクター --- */

.header_lang {
    position: relative;
    margin-left: auto;
}

.header_lang_btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 6px 8px;
    border: 1px solid #042B6D;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #042B6D;
    cursor: pointer;
    white-space: nowrap;
}

.header_lang_arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #042B6D;
    border-bottom: 1.5px solid #042B6D;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.25s ease, margin-top 0.25s ease;
}

.header_lang_list {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1);
    z-index: 2001;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.header_lang.is-open .header_lang_list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header_lang_item {
    border-bottom: 1px solid #303030;
}

.header_lang_item:last-child {
    border-bottom: none;
}

.header_lang_item--label {
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 400;
    background: #D7D7D7;
    color: #303030;
    text-align: center;
}

.header_lang_item a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 400;
    color: #303030;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
}

/* --- ハンバーガーボタン（SP） --- */

.mobile_menu_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile_menu_btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 30px;
}

.mobile_menu_btn span:last-child {
    width: auto;
    height: auto;
    background: none;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    margin-top: 1px;
}

/* --- PCナビ・CTA（SP非表示） --- */

.header_nav-layout,
.header_cta {
    display: none;
}

/*---------------------------------
SPメニュー（ポップアップ）
---------------------------------*/

/* --- オーバーレイ --- */

.pop-up_menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    z-index: 2000;
    background: #fff;
    padding: 15px 20px 30px;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease, visibility 0s linear .4s;
}

.pop-up_menu.menu-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition: opacity .4s ease, visibility 0s linear;
    overflow-x: hidden;
}

/* --- SPメニューヘッダー --- */

.pop-up_menu__header-spacer {
    width: 50px;
}

.pop-up_menu__header .header_logo-box {
    width: 160px;
    height: 65px;
    margin: 0 auto 25px;
}

/* --- 閉じるボタン --- */

.close-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 30px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: fixed;
    right: 15px;
    top: 10px;
}

.close-button_icon {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
}

.close-button_icon::before,
.close-button_icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}

.close-button_icon::before {
    transform: rotate(45deg);
}

.close-button_icon::after {
    transform: rotate(-45deg);
}

.close-button_text {
    font-size: 10px;
    font-weight: 500;
    color: var(--accent-color);
}

/* --- SPナビ --- */

.sp-nav__box {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sp-nav__list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sp-nav__item {
    border-bottom: 1px solid #D9D9D9;
}

.sp-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.75;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
}

.sp-nav__arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* --- SPメニューボタン --- */

.sp-nav__contact {
    display: flex;
    gap: 15px;
}

.sp-nav__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 60px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.75;
    padding: 6px;
}

.sp-nav__btn-icon {
    width: 24px;
    height: 24px;
}

.sp-nav__btn--outline {
    background: #DDF2FF;
    color: #1a5ca3;
    font-weight: bold;
}

.sp-nav__btn--primary {
    background: var(--accent-color);
    color: #fff;
}

/*---------------------------------
ヘッダー（PC）
---------------------------------*/

@media (min-width:768px) {

    /* --- ヘッダー本体 --- */

    /* 翻訳時（Google Translate）はテキストが長くなるため上端起点に切り替え */
    .translated-ltr .header_nav-list,
    .translated-rtl .header_nav-list {
        gap: clamp(0.625rem, 1.3vw, 1.563rem);
    }


    header {
        height: 85px;
    }

    .header_inner {
        padding: 0 0 0 30px;
        gap: clamp(15px, calc(25px + 50vw - 570px), 25px);
    }

    /* --- ロゴ --- */

    .header_logo-box {
        width: clamp(100px, calc(160px + 50vw - 570px), 160px);
        height: 65px;
        max-width: 100%;
    }

    /* --- ハンバーガー非表示 --- */

    .mobile_menu_btn {
        display: none;
    }

    /* --- PCナビ --- */

    .header_nav-layout {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .header_nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: clamp(15px, calc(25px + 50vw - 570px), 25px);
    }

    .nav-item_link {
        display: block;
        position: relative;
        font-size: clamp(0.75rem, 0.583rem + 0.35vw, 1rem);
        font-weight: bold;
        color: var(--text-color);
        line-height: 1;
        text-decoration: none;
        white-space: normal;
        transition: color 0.3s;
    }

    .nav-item_link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: width 0.3s;
    }

    .nav-item_link:hover {
        color: var(--accent-color);
    }

    .nav-item_link:hover::after {
        width: 100%;
    }

    /* --- 言語セレクター --- */

    .header_lang {
        margin-left: 0;
    }

    .header_lang_btn {
        font-size: clamp(12px, calc(16px + 50vw - 570px), 16px);
        gap: 10px;
    }

    .header_lang_list {
        min-width: 115px;
    }

    .header_lang_item--label {
        padding: 10px 4px;
        font-size: clamp(12px, calc(14px + 50vw - 570px), 14px);
    }

    .header_lang_item a:hover {
        background: var(--accent-color);
        color: #fff;
    }

    /* --- ヘッダーCTA --- */

    .header_cta {
        display: flex;
        margin-left: 10px;
    }

    .header_cta-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: clamp(85px, calc(120px + 50vw - 570px), 120px);
        height: 85px;
        padding: 0 10px;
        text-decoration: none;
        font-size: clamp(12px, calc(16px + 50vw - 570px), 16px);
        font-weight: bold;
        line-height: 1.75;
        text-align: center;
        transition: opacity 0.3s ease;
        white-space: nowrap;
    }

    .header_cta-btn:hover {
        opacity: 0.8;
    }

    .header_cta-icon {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .header_cta-btn--contact {
        background: #DDF2FF;
        color: var(--accent-color);
    }

    .header_cta-btn--reserve {
        background: var(--accent-color);
        color: #fff;
    }
}



/*---------------------------------
フッター
---------------------------------*/

footer {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    background: url("images/common/footer_bg_sp.jpg") top center / cover no-repeat;
    padding: 25px 0 70px;
}

/* --- ロゴ --- */

.footer_logo {
    display: block;
    width: 160px;
    margin: 0 auto 15px;
}

.footer_logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- 店舗情報 --- */

.footer_company {
    text-align: center;
    margin-bottom: 25px;
}

.footer_company_name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 8px;
}

.footer_address {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1;
}

.footer_tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 10px;
}

.footer_tel_icon {
    width: 21px;
    height: 21px;
}

.footer_tel a {
    font-size: 21px;
    font-weight: 700;
    font-family: var(--sub-font);
    color: var(--text-color);
    text-decoration: none;
    line-height: 1;
}

.footer_hours {
    font-size: 14px;
    font-weight: 500;
}

/* --- CTAボタン --- */

.footer_cta {
    display: none;
}

.ui_cp-btn--footer {
    max-width: 180px;
    height: 44px;
    gap: 6px;
    font-size: 14px;
}

.footer_btn_icon {
    width: 18px;
    height: 18px;
}

.footer_btn_icon {
    transition: none;
}

/* --- ナビ --- */

.footer_nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 0;
    margin-bottom: 30px;
}

.footer_nav-list {
    display: contents;
}

.footer_nav-list li {
    display: flex;
    align-items: center;
}

.footer_nav-list li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #042B6D;
    margin: 0 8px;
}

.footer_nav-list li.no-border::after {
    display: none;
}

.footer_nav-list a {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 2;
    text-decoration: none;
}


/* --- 言語切替（SPは非表示、PC表示はpc-layoutで制御） --- */
.footer_nav-lang.pc-layout {
    display: none;
}


.footer_language_label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer_language_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer_language_list a {
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}

/* --- 大文字ブランドロゴ --- */

.footer_brand {
    font-size: clamp(2.563rem, 0.231rem + 9.95vw, 5rem);
    font-weight: bold;
    text-align: center;
    color: #fff;
    line-height: 0.8;
    opacity: 0.7;
}

/* --- コピーライト --- */

.copyright_text {
    font-size: 12px;
    line-height: 1;
    text-align: center;
    color: var(--accent-color);
    background: #fff;
    padding: 15px 0;
}

/* --- PC --- */

@media (min-width:768px) {

    footer {
        background: url("images/common/footer_bg.jpg") center / cover no-repeat;
        padding: 50px 0 0;
    }

    .footer_inner {
        padding: 0 20px;
    }

    footer .section_space {
        max-width: 1100px;
        margin: 0 auto;
    }

    /* 上部レイアウト */

    .footer_top {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "company cta"
            "company nav";
        column-gap: 45px;
        row-gap: 25px;
        align-items: start;
        margin-bottom: 70px;
    }

    .footer_company {
        grid-area: company;
        text-align: left;
        margin-bottom: 0;
        max-width: 185px;
    }

    .footer_logo {
        margin: 0 0 20px;
    }

    .footer_tel {
        justify-content: flex-start;
    }

    .footer_tel a {
        pointer-events: none;
    }

    /* CTA */

    .footer_cta {
        display: flex;
        grid-area: cta;
        justify-content: flex-start;
        align-self: start;
        gap: 24px;
        margin-bottom: 0;
    }

    .ui_cp-btn--footer:hover {
        background-color: #fff;
        color: #1a5ca3;
        border-color: #fff;
    }

    .ui_cp-btn--footer:not(.ui_cp-btn--footer-outline):hover .footer_btn_icon {
        filter: brightness(0) saturate(100%) invert(27%) sepia(82%) saturate(1500%) hue-rotate(196deg) brightness(92%) contrast(92%);
    }

    .ui_cp-btn.ui_cp-btn--footer.ui_cp-btn--footer-outline {
        background-color: #fff;
        border-color: var(--accent-color);
        color: var(--accent-color);
    }

    .ui_cp-btn.ui_cp-btn--footer.ui_cp-btn--footer-outline:hover {
        border-color: #3B96E5;
    }

    .ui_cp-btn.ui_cp-btn--footer.ui_cp-btn--footer-outline:hover span {
        color: #3B96E5;
    }

    .ui_cp-btn.ui_cp-btn--footer.ui_cp-btn--footer-outline:hover .footer_btn_icon--default {
        filter: brightness(0) saturate(100%) invert(65%) sepia(65%) saturate(1000%) hue-rotate(186deg) brightness(85%);
    }

    /* ナビ */

    .footer_nav {
        grid-area: nav;
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 0;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer_nav-list {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px 25px;
    }

    .footer_nav-list li:not(:last-child)::after {
        display: none;
    }

    .footer_nav-list a {
        font-size: 16px;
    }

    .footer_nav-list a:hover {
        opacity: 0.7;
    }

    /* 言語（ナビ内） */

    .footer_nav-lang {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer_nav-lang>a {
        font-size: 16px;
        font-weight: bold;
        cursor: default;
    }

    .footer_nav-lang>a:hover {
        opacity: 1;
    }

    .footer_nav-lang .footer_language_list {
        margin-top: 6px;
        flex-direction: column;
        gap: 4px;
    }

    .footer_nav-lang.pc-layout {
        display: flex;
    }

    .footer_language_list a {
        color: var(--text-color);
        font-size: 14px;
        font-weight: 400;
    }

    .footer_language_list a:hover {
        opacity: 0.7;
    }

    .footer_nav-list--sub a {
        font-size: 14px;
        font-weight: 400;
    }

    /* ブランド */

    .footer_brand {
        font-size: clamp(5.25rem, 3.333rem + 3.99vw, 8.125rem);
    }

    .ui_cp-btn.ui_cp-btn--footer {
        margin: 0;
    }

    .footer_btn_icon {
        width: 27px;
        height: 27px;
    }
}

/* フロートバナー（SP専用） */

.float-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    background: #2C2C2C;
    box-shadow: 0 0 12px rgba(4, 43, 109, 0.2);
}

.float-banner_item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 4px;
    text-decoration: none;
    color: #1a5ca3;
    background: #fff;
}

.float-banner_item:last-child {
    border-right: none;
}

.float-banner_item--guide {
    background: #DDF2FF;
}

.float-banner_item--primary {
    background: #0B71C9;
    color: #fff;
    font-weight: 600;
    border-right: none;
}

.float-banner_icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.float-banner_text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .float-banner {
        display: none;
    }
}

/* =========================
   GTranslate 言語切替
   ========================= */
.header_lang {
    position: relative;
    display: inline-block;
    width: 150px;
}

/* select本体 */
.header_lang .gt_selector {
    width: 100%;
    height: 35px;
    padding: 0 38px 0 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: #1d3f8f;
    background: #fff;
    border: 1.5px solid #1d3f8f;
    border-radius: 6px;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* IEの矢印消し */
.header_lang .gt_selector::-ms-expand {
    display: none;
}

/* 右の矢印 */
.header_lang::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #1d3f8f;
    border-bottom: 1.5px solid #1d3f8f;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

/* 開いた一覧の基本色 */
.header_lang .gt_selector option {
    background: #fff;
    color: #333;
}

/* 先頭の Select Language だけグレー */
.header_lang .gt_selector option:first-child {
    background: #d9d9d9;
    color: #555;
}

/* 繁體中文 と English の下に線を入れる */
.header_lang .gt_selector option[value="ja|zh-TW"],
.header_lang .gt_selector option[value="ja|en"] {
    border-bottom: 1px solid #303030;
}

.post-type__no-post {
    text-align: center;
    padding-top: 80px;
    margin-bottom: 80px;
}