/* ヘッダー */

header {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 1000;
    opacity: 1;
    background: #fff;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 100%;
    margin: 0px auto;
    padding: 10px 24px;
}


.header_logo-box {
    width: 97px;
}

.header_logo,
.header_logo--joint {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header_logo {
    display: block;
    background-image: url("./images/common/sp_header_logo.png");
    max-width: 97px;
    height: 40px;
    width: 100%;
}

.header_logo--joint {
    display: none;
}

/* フロートメニュー */

.mobile_menu_wrapper {
    position: fixed;
    z-index: 1001;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #AC0D1D;
    color: #fff;
}

.mobile_menu {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 375px;
}

.mobile_menu_btn {
    max-width: 32px;
    height: 32px;
    background: none;
    padding: 0;
}

.pop-up_menu.menu-open {
    right: 0;
}

.pop-up_menu {
    position: fixed;
    background: #fff;
    width: 100%;
    height: 100vh;
    top: 0;
    right: -100%;
    z-index: 1100;
    overflow-y: auto;
    transition: 0.35s ease;
    padding: 15px;
    box-sizing: border-box;
}

.close-button {
    position: sticky;
    bottom: 0;
    right: 0;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: fit-content;
    margin-left: auto;
}

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


.pop-up_menu__wrapper {
    width: 100%;
}

.sp-nav__list {
    display: block;
    margin: 25px 0;
    padding: 0 5px;
}

.sp-nav__logo {
    width: 136px;
    margin: 0 auto 26px;
}

.sp-nav__logo a {
    display: block;
}

.sp-nav__logo img {
    height: auto;
    display: block;
}

/* 行の共通デザイン */
.sp-nav__item_link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border-top: 1px solid #979797;
    padding: 22px 24px;
    text-decoration: none;
}

.sp-nav__item:last-child .sp-nav__item_link {
    border-bottom: 1px solid #979797;
}

.sp-nav_icon {
    max-width: 24px;
    height: 24px;
}

/* テキスト */
.sp-nav__text {
    font-size: 16px;
    font-weight: 500;
    color: var(--main-color);
    line-height: calc(20 / 16);
    display: flex;
    align-items: center;
}

.sp-nav__text::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 10px;
    border-color: transparent transparent transparent #7B682C;
    position: absolute;
    top: 0;
    right: 33px;
    bottom: 0;
    margin: auto;
}

.sp-nav__item_link.sp-nav__back::after {
    content: none;
}

.sp-header_info-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header_info-item {
    aspect-ratio: 110/64;
    width: 110px;
}

[class*="header_info-link"] {
    max-width: 110px;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 14px;
    font-weight: 500;
    color: var(--point-color);
    line-height: calc(24 / 14);
    font-family: var(--main-font);
    text-align: center;
    border-radius: 8px;
    padding: 8px 10px;
    overflow: hidden;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.header_info-link--contact {
    background: linear-gradient(to bottom, #9D0505 0%, #370202 100%);
}

.header_info-link--tel {
    background: linear-gradient(to bottom, #7B682C 0%, #4C401B 100%);
}

.header_info-link--line {
    background: linear-gradient(to bottom, #00B900 0%, #005300 100%);
}

.header_info_icon {
    aspect-ratio: 32/32;
    max-width: 32px;
    width: 100%;
}

/* ▼ スライダー枠 */
.sp-nav__slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ▼ 各パネル共通 */
.sp-nav__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 400px;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(.19, 1, .22, 1);
    will-change: transform;
}

/* メイン初期表示 */
#sp-panel-main {
    transform: translateX(0);
}

/* サブ表示中 */
.sp-nav__panel.is-active {
    position: relative;
    transform: translateX(0);
    min-height: 415px;
}

/* メインが左へ退場 */
#sp-panel-main.is-exit-left {
    transform: translateX(-100%);
}

#sp-panel-category .sp-nav__text {
    font-size: 14px;
    line-height: calc(20 / 14);
}

.sp-nav__item_link.sp-nav__back {
    background: #F4F4F4;
}

.sp-nav__item_link.sp-nav__back .sp-nav_icon {
    max-width: 16px;
    height: 16px;
}

.sp-nav__item_link.sp-nav__back .sp-nav__text::after {
    content: none;
}


.pc-header_layout {
    display: none;
}

/* 例 */
.sp-nav__panel {
    display: none;
    /* アニメーション用スタイルなどは適宜 */
}

.sp-nav__panel.is-active {
    display: block;
}

@media (min-width:768px) {

    .sp-header_layout,
    .mobile_menu_wrapper,
    .pop-up_menu {
        display: none;
    }

    .header_inner {
        max-width: 1366px;
        min-height: 100px;
        padding: 0;
    }

    .header_logo-box {
        display: flex;
        align-items: center;
        gap: 16px;
        aspect-ratio: 242/56;
        width: 100%;
        max-width: 242px;
        height: 56px;
        margin-left: 40px;
    }

    .header_logo {
        max-width: 135px;
        height: 56px;
    }

    .header_logo--joint {
        display: block;
        background-image: url("./images/common/header_logo-joint.png");
        max-width: 91px;
        height: 56px;
    }

    .pc-header_layout {
        display: flex;
        align-items: center;
        gap: 63px;
    }

    .header_nav-list {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        color: #333;
    }

    .header_nav-item {
        flex: 0 0 102px;
        max-width: 102px;
        position: relative;
    }

    .header_nav-link {
        font-size: 14px;
        font-weight: 600;
        color: var(--main-color);
        line-height: calc(20 / 14);
        font-family: var(--main-font);
        text-align: center;
        display: block;
        position: relative;
    }

    .header_nav-item:not(.has-dropdown) .header_nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        background: var(--main-color);
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1);
    }

    .header_nav-item:not(.has-dropdown):hover .header_nav-link::after {
        opacity: 1;
    }


    /* ドロップダウン本体 */
    .header_dropdown {
        position: absolute;
        left: 50%;
        top: 150%;
        transform: translateX(-50%);
        min-width: 102px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.85s cubic-bezier(.16, 1, .3, 1),
            visibility 0.85s cubic-bezier(.16, 1, .3, 1),
            border-radius 0.45s cubic-bezier(.19, 1, .22, 1);
        z-index: 20;
    }

    /* ナビとドロップダウンの間をカバー */
    .header_dropdown::after {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }

    .header_nav-item.has-dropdown:hover .header_dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


    /* ▼ 三角形 */
    .header_dropdown::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%) rotate(180deg);
        border-width: 0 4px 8px 4px;
        border-style: solid;
        border-color: transparent transparent var(--main-color) transparent;
    }

    /* リスト内のリンク */
    .header_dropdown-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 102px;
        height: 42px;
        font-size: 14px;
        font-weight: 600;
        color: var(--main-color);
        line-height: calc(20 / 14);
        white-space: nowrap;
        text-align: center;
        background-color: transparent;
        transition:
            background-color 0.9s cubic-bezier(.19, 1, .22, 1),
            color 0.9s cubic-bezier(.19, 1, .22, 1);
        transition-delay: 0.08s;
    }

    .header_dropdown-item a:hover {
        background-color: #E0E0E0;
        transition:
            background-color 0.25s ease,
            color 0.25s ease;
    }

    /* 3つのボタン */
    .pc-header_info-block {
        display: flex;
        align-items: center;
        flex: 0 0 300px;
    }

    .header_info-item {
        aspect-ratio: 100/100;
        max-width: 100px;
        width: 100%;
    }

    [class*="header_info-link"] {
        width: 100%;
        height: 100%;
        max-width: 100px;
        justify-content: center;
        border-radius: 0;
        gap: 4px;
        padding: 0;
    }

    [class*="header_info-link"]::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -100%;
        width: 100%;
        height: 100%;
        transition: bottom 0.35s ease;
        z-index: -1;
    }

    .header_info-link--contact::after {
        background: linear-gradient(to bottom, #9D0505 0%, #370202 100%);
    }

    .header_info-link--tel::after {
        background: linear-gradient(to bottom, #7B682C 0%, #4C401B 100%);
    }

    .header_info-link--line::after {
        background: linear-gradient(to bottom, #00B900 0%, #005300 100%);
    }

    .header_info-link--contact {
        background: #9D0505;
    }

    .header_info-link--tel {
        background: #7B682C;
        justify-content: flex-start;
        padding-top: 21px;
    }

    .header_info-link--line {
        background: #00B900;
    }

    [class*="header_info-link"]:hover::after {
        bottom: 0;
    }

    .header_nav_contact {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 52px;
    }

    /* ▼ テキスト部分を重ねるためのラッパー */
    .header_info-link--tel .header_info_text {
        position: relative;
        display: block;
        width: 100%;
        height: 1.5em;
        overflow: hidden;
    }

    /* ▼ 共通：2つのテキストを中央に重ねて配置 */
    .header_info-link--tel .tel-label,
    .header_info-link--tel .tel-number {
        position: absolute;
        left: 50%;
        top: 68%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }

    /* ▼ 初期状態：お電話だけ表示 / 電話番号は非表示＆小さめ */
    .header_info-link--tel .tel-label {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
        transition:
            opacity 0.35s ease,
            transform 0.35s ease;
    }

    .header_info-link--tel .tel-number {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
        transition:
            opacity 0.45s cubic-bezier(.19, 1, .22, 1),
            transform 0.45s cubic-bezier(.19, 1, .22, 1);
        font-size: 18px;
        line-height: calc(18 / 18);
        text-align: left;
    }

    /* ✅ ホバー時のアニメーション */
    /* 左にスライドしながらフェードアウト */
    .header_info-link--tel:hover .tel-label {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-20px);
    }

    /* ズームアップしながらフェードイン */
    .header_info-link--tel:hover .tel-number {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

}

/* フッター */

.pc-footer_layout {
    display: none;
}

footer {
    overflow: hidden;
    background-image: url("./images/common/l-page_bg.jpg");
}

.footer_wrapper {
    background: #7B682C;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.footer_inner {
    padding: 50px 12px;
}

.sp-footer_info-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}


.footer_info_text {
    font-size: 14px;
    font-weight: 500;
    color: var(--point-color);
    font-family: var(--main-font);
    text-align: center;
    margin-bottom: 16px;
}

.footer_info_btn {
    width: 100%;
    height: 58px;
    max-width: 240px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 500;
    color: var(--point-color);
    line-height: calc(24 / 20);
    font-family: var(--main-font);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.footer_info-item--contact .footer_info_btn {
    background: #9D0505;
}

.footer_info-item--tel .footer_info_btn {
    background: #B99523;
    font-size: 24px;
}

.footer_info-item--line .footer_info_btn {
    background: #00B900;
}

.footer_info_icon {
    width: 24px;
    height: auto;
}

.sp-footer_text_link-block {
    margin-bottom: 40px;
}

.footer_text_link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
}

.footer_text_link {
    font-size: 14px;
    font-weight: 500;
    color: var(--point-color);
    line-height: calc(24 / 14);
    font-family: var(--main-font);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer_text_link::before {
    content: "";
    width: 4px;
    height: 24px;
    background: #979797;
}

.footer_logo {
    display: block;
    background-image: url("./images/common/sp_footer_logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    max-width: 193px;
    height: 80px;
    margin: 0 auto 20px;
}

.footer_company_btn {
    width: 230px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color);
    line-height: calc(24 / 14);
    font-family: var(--main-font);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.copy_right {
    font-size: 12px;
    font-weight: 400;
    color: var(--main-color);
    line-height: calc(24 / 14);
    font-family: var(--sub-font);
    text-align: center;
}


@media (min-width:768px) {

    .sp-footer_layout {
        display: none;
    }

    .pc-footer_layout {
        display: block;
    }

    .footer_nav {
        display: flex;
        align-items: center;
        gap: 40px;
        max-width: 1272px;
        margin: 0 auto;
    }

    .pc-footer_info-block {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer_info_btn_wrap {
        display: inline-block;
        background: #DFD8C3;
        border-radius: 8px;
        padding: 4px;
        box-shadow: 0 3px 0 #2F2F2F;
        transition: transform .35s ease, box-shadow .35s ease;
    }

    .footer_info_btn {
        width: 240px;
        height: 54px;
        font-weight: bold;
        color: var(--main-color);
        line-height: calc(20 / 20);
        transition:
            transform 0.75s cubic-bezier(.19, 1, .22, 1),
            opacity 0.75s ease-out;
        opacity: 1;
        position: relative;
    }

    .footer_info-item--contact .footer_info_btn,
    .footer_info-item--tel .footer_info_btn,
    .footer_info-item--line .footer_info_btn {
        background: linear-gradient(to bottom, #FFFFFF 0%, #DADADA 100%);
    }

    .footer_info_btn::before {
        content: "";
        width: 24px;
        height: 24px;
    }

    .footer_info-item--contact .footer_info_btn::before {
        background: url("./images/common/ic_contact_black.png") center / cover no-repeat;
    }

    .footer_info-item--tel .footer_info_btn::before {
        background: url("./images/common/ic_tel_black.png") center / cover no-repeat;
    }

    .footer_info-item--line .footer_info_btn::before {
        background: url("./images/common/ic_line_black.png") center / cover no-repeat;
    }

    /* ホバー時：押し込まれた感じ */
    .footer_info_btn_wrap:hover {
        transform: translateY(3px);
        box-shadow: 0 0 0 #2F2F2F;
    }

    .footer_info_btn_wrap:hover .footer_info_btn {}

    .footer_info-item--contact .footer_info_btn_wrap:hover {
        background: #9D0505;
    }

    .footer_info-item--contact .footer_info_btn_wrap:hover .footer_info_btn {
        color: #fff;
        background: #9D0505;
        transform: translateY(2px);
    }

    .footer_info-item--contact .footer_info_btn_wrap:hover .footer_info_btn::before {
        background: url("./images/common/ic_contact.png") center / cover no-repeat;
    }

    .footer_info-item--tel .footer_info_btn_wrap:hover {
        color: #fff;
        background: #665623;
    }

    .footer_info-item--tel .footer_info_btn_wrap:hover .footer_info_btn {
        color: #fff;
        background: #665623;
    }

    .footer_info-item--tel .footer_info_btn_wrap:hover .footer_info_btn::before {
        background: url("./images/common/ic_tel.png") center / cover no-repeat;
    }

    .footer_info-item--line .footer_info_btn_wrap:hover {
        color: #fff;
        background: #00B900;
    }

    .footer_info-item--line .footer_info_btn_wrap:hover .footer_info_btn {
        color: #fff;
        background: #00B900;
    }

    .footer_info-item--line .footer_info_btn_wrap:hover .footer_info_btn::before {
        background: url("./images/common/ic_line.png") center / cover no-repeat;
    }

    .footer_info_icon {
        width: 24px;
        height: 24px;
    }

    .pc-footer_text_link-block {
        margin-bottom: 0;
        flex: 0 0 154px;
    }

    .footer_text_link-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
    }

    .footer_text_link {
        font-size: 14px;
        font-weight: 500;
        color: var(--point-color);
        line-height: calc(24 / 14);
        font-family: var(--main-font);
        display: block;
    }

    .footer_text_link::before {
        display: none;
    }
}