/*
Theme Name: エスケーホーム
Author: Ropes
Description: 株式会社エスケーホーム オリジナルWordPressテーマ
Version: 1.0.0
Text Domain: sk-home
*/

/* スムーズにスクロールさせる設定（ページ全体に適用） */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

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

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(33px) brightness(1.5);
    -webkit-backdrop-filter: blur(33px) brightness(1.5);
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    will-change: transform, opacity;
}

.header_inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.header_logo-box {
    width: 206px;
}

.header_logo {
    display: block;
    max-width: 206px;
    height: 60px;
}

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

.mobile_menu_btn {
    width: 27px;
    height: 16px;
}

/* PCナビ（モバイルでは非表示） */

.header_nav-layout {
    display: none;
}

/* ナビボタン（SP・PC共通） */

.header_nav_btn {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 200px;
    margin: 0 auto;
}

[class*="header_nav_btn--"] {
    max-width: 200px;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: calc(20 / 16);
}

.header_nav_btn--recruit {
    background: #747474;
    gap: 8px;
}

.header_nav_btn--recruit::after {
    content: "";
    background: url("images/common/icon_recruit_btn.png") center / cover no-repeat;
    width: 16px;
    height: 16px;
}

.header_nav_btn--contact {
    background: #6A5D20;
}

/* ===== SPメニュー ===== */

.pop-up_menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(33px) brightness(1.5);
    -webkit-backdrop-filter: blur(33px) brightness(1.5);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .3s ease, visibility 0s linear .45s;
    overflow-y: auto;
    padding: 32px 25px;
    margin-bottom: 65px;
}

.pop-up_menu.menu-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform .3s ease, visibility 0s;
}

.pop-up_menu__wrapper {
    width: 100%;
    position: relative;
    z-index: 0;
}

.close-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    margin-left: auto;
    margin-bottom: 35px;
}

.close-button img {
    width: 100%;
}

/* SPナビ */

.sp-nav__box {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: calc(100px / 2);
}

.sp-nav__list {
    flex: 1 1 50%;
    margin-bottom: 65px;
}

.sp-nav__item:not(:last-child) {
    margin-bottom: 48px;
}

.sp-nav__item.drop_item {
    position: relative;
}

.sp-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: calc(20 / 16);
    color: #000000;
}

.sp-nav_sns__list {
    display: flex;
    flex-direction: column;
    gap: calc(40px / 2);
    margin-right: 20px;
}

.sp-nav_sns__item {
    width: calc(64px / 2);
    height: calc(64px / 2);
}

.sp-nav_sns__item a {
    display: block;
    width: 100%;
}

/* ===== オーバーレイ（タップで閉じる用） ===== */

.drop-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
}

.drop-overlay.is-open {
    display: block;
}

/* ===== ドロップダウン（SP基本スタイル） ===== */

.drop-menu-list {
    position: absolute;
    top: 300%;
    left: 0;
    right: 0;
    z-index: 99;
    width: 268px;
    min-height: 202px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.drop_item.is-open .drop-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.drop-menu-item a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

/* ===== PC（768px〜） ===== */

@media (min-width:768px) {

    .mobile_menu_btn {
        display: none;
    }

    header {
        height: fit-content;
        box-shadow: none;
    }

    .header_inner {
        height: 80px;
        padding: 0 0 0 clamp(30px, calc(60px + 50vw - 570px), 60px);
        justify-content: unset;
        gap: clamp(15px, calc(40px + 50vw - 570px), 40px);
        position: relative;
    }

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

    .header_logo {
        max-width: clamp(160px, calc(206px + 50vw - 570px), 206px);
    }

    .header_nav-layout {
        display: flex;
        align-items: center;
        gap: clamp(30px, calc(40px + 50vw - 570px), 40px);
        margin-left: auto;
    }

    .header_nav-list {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: clamp(20px, calc(40px + 50vw - 770px), 40px);
    }

    .header_nav-item.drop_item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-item_link {
        font-size: clamp(14px, calc(16px + 50vw - 770px), 16px);
        font-weight: 500;
        line-height: calc(20 / 16);
        color: #000000;
        display: inline-block;
        position: relative;
        z-index: 10;
    }

    /* ホバー */

    .header_nav-item .nav-item_link:hover {
        color: var(--main-color);
    }

    .header_nav-item.drop_item:hover .nav-item_link {
        color: #000000;
        cursor: default;
    }

    .header_nav_btn {
        width: clamp(200px, calc(324px + 50vw - 770px), 324px);
        flex-direction: row;
        justify-content: flex-end;
        gap: 0;
    }

    [class*="header_nav_btn--"] {
        max-width: clamp(100px, calc(162px + 50vw - 770px), 162px);
        font-size: clamp(14px, calc(16px + 50vw - 770px), 16px);
        height: 80px;
    }

    [class*="header_nav_btn--"]:hover {
        opacity: 0.7;
    }

    /* ドロップダウンメニュー（PC上書き） */

    .header_nav-item.drop_item:hover .drop-menu-list {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
    }

    .drop-menu-list {
        top: calc(100% + 40px);
        left: 50%;
        right: auto;
        width: max-content;
        min-height: auto;
        margin: 0;
        box-shadow: none;
        z-index: 5;
        background: rgba(255, 255, 255, 0.7);
        transform: translateX(-50%) translateY(-20px);
        transition: opacity 0.3s ease, transform 0s linear 0.3s, visibility 0s linear 0.2s;
    }

    .drop-menu-list::before {
        content: "";
        position: absolute;
        top: -35px;
        left: 0;
        width: 100%;
        height: 55px;
        display: block;
    }

    .drop-menu-item a {
        font-size: clamp(14px, calc(16px + 50vw - 770px), 16px);
        line-height: calc(32 / 16);
    }

    .drop-menu-item a:hover {
        opacity: 0.7;
    }
}



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

.footer {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.25;
    background: #fff;
}


/* SNSリスト */
.footer_sns_list {
    background: #64512B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 10px 20px;
}

.footer_sns_item {
    width: 20px;
    height: 20px;
}

.footer_sns_item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s;
}

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

/* ロゴ */
.footer_logo-box {
    text-align: center;
    margin-bottom: 40px;
}

.footer_logo {
    display: inline-block;
    max-width: 137px;
    height: auto;
}

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

/* 連絡先情報ボックス */
.footer_info_box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 25px;
}

.info_box--contact,
.info_box--tel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info_box_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #64512B;
    width: 100%;
    max-width: 252px;
    height: 48px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    position: relative;
    margin-bottom: 5px;
}

.info_box--tel .info_box_btn {
    font-size: 20px;
}

.info_box--contact .info_box_btn::before {
    content: "";
    background: url("images/common/icon_contact_mail.png") center / cover no-repeat;
    width: 20px;
    height: 16px;
}

.info_box--tel .info_box_btn::before {
    content: "";
    background: url("images/common/icon_tel.png") center / cover no-repeat;
    width: 22px;
    height: 22px;
}

.info_box_text {
    font-size: 12px;
    color: #111111;
    line-height: calc(16 / 12);
    text-align: center;
}

/* ナビ */

.footer_nav_box {
    max-width: max-content;
    margin: 0 auto 40px;
}

.footer_nav_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer_nav_item {
    font-size: 16px;
    font-weight: 500;
    color: #111111;
}

.footer_nav_item a,
.footer_nav_drop-item a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer_nav_item a:hover,
.footer_nav_drop-item a:hover {
    opacity: 0.7;
}

.footer_nav_drop-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-left: 25px;
}

.footer_copyright {
    background: #F8F8F8;
    font-size: 12px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
}

@media (min-width:768px) {

    .footer_sns_list {
        padding: 12px 20px;
        margin-bottom: 60px;
    }

    .footer_sns_item a:hover {
        opacity: .7;
    }

    .footer_logo-box {
        margin-bottom: 80px;
    }

    .footer_logo {
        max-width: 206px;
    }

    .footer_info_flex_box {
        display: flex;
        flex-direction: row-reverse;
        max-width: 1080px;
        margin: 0 auto 78px;
        padding: 0 20px;
        gap: 215px;
    }

    .footer_info_box {
        max-width: 252px;
        width: 100%;
    }

    .info_box_btn:hover {
        opacity: .7;
    }

    .footer_nav_list {
        flex-wrap: wrap;
        gap: 16px clamp(20px, calc(153px + 50vw - 570px), 153px);
        max-height: 300px;
    }

    .footer_copyright {
        font-size: 16px;
    }
}