﻿/*
Theme Name: trustplan-shun
Theme URI: https://trustplanshun.com/
Author: ropes
Author URI: https://ropes.co.jp/
Description: 株式会社トラストプラン・シュン オリジナルWordPressテーマ
Version: 1.0.0
License: proprietary
Text Domain: trustplan-shun
*/

/* スムーズにスクロールさせる設定（ページ全体に適用） */
html {
    scroll-behavior: smooth;
}

/*---------------------------------
ヘッダー
---------------------------------*/

/* --- ヘッダー本体 --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    background: var(--main-color);
    box-shadow: 0px 2px 14px 0px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease-out, background 0.3s ease;
    will-change: transform;
}

.header_inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
}

/* --- ロゴ --- */

.header_logo-box {
    width: 42px;
}

.header_logo {
    display: block;
    max-width: 42px;
    height: 43px;
}

.header_logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- ハンバーガーボタン（SP） --- */

.mobile_menu_btn {
    width: 30px;
    height: 30px;
}

/* --- PCナビ（SP非表示） --- */

.header_nav-layout {
    display: none;
}

/*---------------------------------
SPメニュー（ポップアップ）
---------------------------------*/

/* --- オーバーレイ --- */

.pop-up_menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    z-index: 2000;
    background: url("images/common/pop-up_menu_bg.jpg") center / cover no-repeat;
    padding: 25px 20px;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform .45s ease, visibility 0s linear .45s;
}

.pop-up_menu.menu-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform .5s ease, visibility 0s linear;
    overflow-x: hidden;
}

/* --- SPメニューヘッダー --- */

.pop-up_menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 5px 15px;
    margin: -25px -20px 30px;
}

.close-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
}

.close-button img {
    width: 100%;
}

/* --- SPナビ --- */

.sp-nav__box {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.sp-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: max-content;
    margin: 0 auto;
}

.sp-nav__link {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-decoration: none;
}

/* --- SPドロップダウン --- */

.sp-nav__item.drop_item .sp-nav__link {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sp-nav__item.drop_item .sp-nav__link::after {
    content: "";
    width: 10px;
    height: 8px;
    background: url("images/common/item_arrow_down.png") center / cover no-repeat;
    transition: transform 0.3s ease;
}

.sp-nav__item.drop_item.is-open .sp-nav__link::after {
    transform: rotate(180deg);
}

.pop-up_menu .drop-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.pop-up_menu .sp-nav__item.drop_item.is-open .drop-menu-list {
    max-height: 500px;
    opacity: 1;
    margin-top: 25px;
}

.pop-up_menu .drop-menu-item a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-align: center;
}

/* --- SP連絡先・ボタン --- */

.header_nav_contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact_tel a {
    display: block;
    font-size: 24px;
    font-weight: 600;
    font-family: var(--pinpoint-font);
    line-height: calc(28 / 24);
    color: #fff;
    text-align: center;
}

.contact_hours {
    font-size: 14px;
    line-height: calc(26 / 14);
    color: #fff;
    text-align: center;
}

.pop-up_menu .ui_cp-btn {
    height: 40px;
    border-radius: 20px;
}

.article__no-post {
    font-size: 16px;
    font-weight: 400;
    color: rgb(64, 64, 64);
    line-height: calc(40 / 16);
    text-align: center;
}

/*---------------------------------
ヘッダー（PC）
---------------------------------*/

@media (min-width:768px) {

    /* --- ヘッダー本体 --- */

    header {
        height: 80px;
    }

    .header_inner {
        padding: 8px 64px;
    }

    /* --- ロゴ --- */

    .header_logo-box {
        width: 60px;
    }

    .header_logo {
        max-width: 60px;
        height: 60px;
    }

    /* --- ハンバーガー非表示 --- */

    .mobile_menu_btn {
        display: none;
    }

    /* --- PCナビ --- */

    .header_nav-layout {
        display: flex;
        align-items: center;
        gap: clamp(1.25rem, -0.208rem + 3.04vw, 3.438rem);
        margin-left: auto;
    }

    .header_nav-list {
        display: flex;
        gap: clamp(1.25rem, 0.417rem + 1.74vw, 2.5rem);
    }

    .nav-item_link {
        display: block;
        font-size: clamp(0.875rem, 0.792rem + 0.17vw, 1rem);
        font-weight: 500;
        color: #fff;
        line-height: 1;
        text-decoration: none;
    }

    .nav-item_link:hover {
        opacity: .7;
    }

    .header_nav-item.drop_item .nav-item_link:hover {
        opacity: 1;
    }

    /* --- PCドロップダウン --- */

    .header_nav-item.drop_item {
        position: relative;
    }

    .header_nav-item.drop_item>.nav-item_link {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        cursor: default;
    }

    .header_nav-item.drop_item>.nav-item_link::after {
        content: "";
        display: block;
        width: 10px;
        height: 8px;
        background: url("images/common/item_arrow_down_bold.png") center / contain no-repeat;
    }

    .drop-menu-list {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 185px;
        margin-top: 5px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .header_nav-item.drop_item:hover .drop-menu-list,
    .header_nav-item.drop_item:focus-within .drop-menu-list {
        opacity: 1;
        visibility: visible;
    }

    .drop-menu-item a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 8px 13px 15px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-color);
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

    .drop-menu-item a:hover {
        color: var(--accent-color);
    }

    .drop-menu-item a::after {
        content: "";
        flex-shrink: 0;
        width: 15px;
        height: 15px;
        background: url("images/common/drop-menu-icon.png") center / contain no-repeat;
        margin-left: 15px;
    }

    /* --- PCボタン --- */

    .header_nav_contact .ui_cp-btn {
        width: clamp(8.75rem, 6.25rem + 5.21vw, 12.5rem);
        height: 40px;
        flex-shrink: 0;
        padding: 10px clamp(0.313rem, -0.313rem + 1.3vw, 1.25rem);
    }

    .header_nav_contact .ui_cp-btn span {
        font-size: clamp(0.75rem, 0.583rem + 0.35vw, 1rem);
    }
}



/*---------------------------------
フッター
---------------------------------*/

footer {
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    background: #5D5D5D;
}

.footer_inner {
    padding: 40px 0 60px;
}

/* ロゴ */
.footer_logo {
    display: block;
    max-width: 170px;
    margin: 0 auto 10px;
}

.footer_logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 会社情報 */
.footer_company {
    text-align: center;
    margin-bottom: 30px;
}

.footer_company_info {
    margin-bottom: 15px;
}

.footer_company_name,
.footer_address,
.footer_tel,
.footer_hours,
.footer_note {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
}

.footer_tel a {
    color: #fff;
}

/* SNS */
.footer_sns_list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer_sns_item a {
    display: block;
    width: 25px;
    height: 25px;
}

/* ナビ（SP非表示） */
.footer_nav {
    display: none;
}

/* 施設情報 */
.footer_facilities {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.footer_facility {
    text-align: center;
}

.footer_facility_logo {
    display: block;
    max-width: 170px;
    margin: 0 auto 10px;
}

.footer_facility_info {
    font-size: 12px;
    line-height: 1.8;
}

.footer_facility_name {
    font-weight: 500;
    margin-bottom: 4px;
}

.tel_link a {
    color: #fff;
    text-decoration: underline;
}

/* CTA */
.footer_cta {
    margin-bottom: 30px;
}

/* コピーライト */
.copyright_text {
    font-size: 11px;
    line-height: 1;
    text-align: center;
}

@media (min-width:768px) {

    .footer_inner {
        padding: 60px 30px 5px;
    }

    footer .section_space {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* 上部レイアウト */
    .footer_top {
        display: flex;
        align-items: flex-start;
        gap: 60px;
        margin-bottom: 40px;
    }

    .footer_logo {
        margin: 0 0 10px;
        max-width: 255px;
        transition: opacity 0.3s ease;
    }

    .footer_logo:hover {
        opacity: .7;
    }

    .footer_facility_logo {
        transition: opacity 0.3s ease;
    }

    .footer_facility_logo:hover {
        opacity: .7;
    }

    .footer_sns_list {
        justify-content: flex-start;
    }

    .footer_sns_item a:hover {
        opacity: .7;
    }

    .footer_tel a {
        pointer-events: none;
    }

    /* ナビ */
    .footer_nav {
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
        padding-top: 75px;
    }

    .footer_nav-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer_nav-item .footer_nav-heading {
        font-size: 14px;
        font-weight: 500;
        color: #fff;
    }

    .footer_nav-item a {
        font-size: 12px;
        font-weight: 400;
        color: #fff;
        line-height: 1;
    }

    .footer_nav-item a:hover {
        opacity: .7;
    }

    /* グリッドレイアウト */
    footer .section_space {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "company nav"
            "facilities cta"
            "copyright copyright";
        column-gap: 60px;
        row-gap: 40px;
    }

    .footer_top {
        display: contents;
    }

    .footer_company {
        grid-area: company;
        text-align: left;
        margin-bottom: 0;
    }

    .footer_nav {
        grid-area: nav;
        justify-content: flex-start;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* 施設情報 */
    .footer_facilities {
        grid-area: facilities;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 0;
    }

    .footer_facility {
        text-align: left;
    }

    .footer_facility_logo {
        margin: 0 0 10px;
        max-width: 255px;
    }

    .footer_facility_info {
        font-size: 13px;
    }

    /* CTA */
    footer .footer_cta {
        grid-area: cta;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .footer_cta .ui_cp-btn {
        width: 200px;
        margin: 0 auto 0 0;
        height: 40px;
    }

    /* コピーライト */
    .copyright_text {
        grid-area: copyright;
    }
}

/* フロートバナー（お問い合わせ） */

.float-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.float-banner_link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 15px 20px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.float-banner_text--pc {
    display: none;
}

.float-banner_icon {
    margin-top: 1px;
    width: 23px;
    height: auto;
}

@media (min-width: 768px) {
    .float-banner_text--sp {
        display: none;
    }

    .float-banner_text--pc {
        display: block;
        order: -1;
    }

    .float-banner {
        top: auto;
        bottom: clamp(15px, 1.8vw, 30px);
        left: auto;
        right: clamp(15px, 1.8vw, 30px);
        width: clamp(80px, 6.9vw, 100px);
        height: clamp(80px, 6.9vw, 100px);
    }

    .float-banner_link {
        flex-direction: column;
        gap: clamp(2px, 0.3vw, 4px);
        width: clamp(80px, 6.9vw, 100px);
        height: clamp(80px, 6.9vw, 100px);
        padding: 0;
        border: 2px solid #fff;
        border-radius: 50%;
        font-size: clamp(11px, 0.97vw, 14px);
        font-weight: 400;
        text-align: center;
        line-height: 1.3;
    }

    .float-banner_link {
        transition: background 0.3s, color 0.3s ease, border-color 0.3s ease;
    }

    /* ホバー時 */

    .float-banner_link:hover {
        background: #fff;
        color: var(--accent-color);
        border: 2px solid var(--accent-color);
    }

    .float-banner_icon {
        width: clamp(18px, 1.6vw, 23px);
        transition: filter 0.3s;
    }

    .float-banner_link:hover .float-banner_icon {
        filter: brightness(0) saturate(100%) invert(18%) sepia(90%) saturate(3000%) hue-rotate(345deg) brightness(90%) contrast(95%);
    }
}