/*
Theme Name: TOTONOU
Theme URI:
Author: ropes
Author URI:
Description: 株式会社布都天堂 TOTONOUブランドサイト オリジナルWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: totonou
*/

/* =========================================
   グローバル
========================================= */

html {
    scroll-behavior: smooth;
}

/* =========================================
   ヘッダー（共通）
========================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    z-index: 1000;
    background: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.header_inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: min(1.3888888889vw, 20px);
    padding: 0 min(4vw, 15px);
}

/* --- ロゴ＋キャッチ --- */

.header_brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header_logo {
    display: block;
    width: min(35.2vw, 132px);
}

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

.header_catch {
    display: none;
}

/* --- LINEボタン --- */

.header_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: min(7.4666666667vw, 28px);
    padding: min(1.3333333333vw, 5px) min(7.4666666667vw, 28px);
    border-radius: 20px;
    font-size: min(3.7333333333vw, 0.875rem);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.header_btn--line {
    background: #06C755;
    color: #fff;
}

/* --- SP右側エリア --- */

.header_sp-right {
    margin-right: min(12vw, 45px);
}

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

.header_nav-layout {
    display: none;
}

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

.mobile_menu_btn {
    position: fixed;
    top: 8px;
    right: 15px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile_menu_btn span {
    display: block;
    width: 28px;
    height: 2px;
    background: #000;
    border-radius: 1px;
    transition: background 0.3s ease;
}

.mobile_menu_btn.is-active span {
    background: #fff;
}

/* 開く（＝ → ×） */

.mobile_menu_btn.is-active span:nth-of-type(1) {
    animation: hamburger-bar01-open 0.75s forwards;
}

.mobile_menu_btn.is-active span:nth-of-type(2) {
    animation: hamburger-bar02-open 0.75s forwards;
}

@keyframes hamburger-bar01-open {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(4px) rotate(0);
    }

    100% {
        transform: translateY(4px) rotate(45deg);
    }
}

@keyframes hamburger-bar02-open {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-4px) rotate(0);
    }

    100% {
        transform: translateY(-4px) rotate(-45deg);
    }
}

/* 閉じる（× → ＝） */

.mobile_menu_btn.is-closing span:nth-of-type(1) {
    animation: hamburger-bar01-close 0.75s forwards;
}

.mobile_menu_btn.is-closing span:nth-of-type(2) {
    animation: hamburger-bar02-close 0.75s forwards;
}

@keyframes hamburger-bar01-close {
    0% {
        transform: translateY(4px) rotate(45deg);
    }

    50% {
        transform: translateY(4px) rotate(0);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes hamburger-bar02-close {
    0% {
        transform: translateY(-4px) rotate(-45deg);
    }

    50% {
        transform: translateY(-4px) rotate(0);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

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

.pop-up_menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2000;
    width: 85%;
    height: 100dvh;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px 0 0 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

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

.sp-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.sp-nav__link {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
}

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

@media (min-width: 768px) {

    header {
        height: 70px;
    }

    .header_inner {
        padding: 0 min(6.1111111111vw, 88px) 0 min(1.3888888889vw, 20px);
    }

    /* --- ロゴ＋キャッチ --- */

    .header_brand {
        gap: min(2.0833333333vw, 30px);
    }

    .header_logo {
        width: min(9.7222222222vw, 140px);
    }

    .header_catch {
        display: block;
        font-size: clamp(0.6875rem, 0.8333333333vw, 0.75rem);
        font-weight: 400;
        color: var(--text-gray-color);
        line-height: 1.4;
        letter-spacing: 0.4em;
        white-space: nowrap;
    }

    /* --- SP要素を非表示 --- */

    .header_sp-right {
        display: none;
    }

    .mobile_menu_btn {
        display: none;
    }

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

    .header_nav-layout {
        display: flex;
        align-items: center;
        gap: min(2.4305555556vw, 35px);
        margin-left: auto;
    }

    .header_nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px min(2.4305555556vw, 35px);
    }

    .nav-item_link {
        display: block;
        font-size: clamp(0.75rem, 1.0416666667vw, 0.9375rem);
        font-weight: 500;
        color: var(--text-color);
        line-height: 1;
        letter-spacing: 0.04em;
        text-decoration: none;
        transition: opacity 0.2s ease;
    }

    .nav-item_link:hover {
        opacity: 0.6;
    }

    /* --- LINEボタン（PC） --- */

    .header_btn {
        height: 34px;
        padding: 0 min(2.1527777778vw, 31px);
        font-size: clamp(0.75rem, 1.0416666667vw, 0.9375rem);
        transition: opacity 0.3s ease;
    }

    .header_btn--line:hover {
        opacity: 0.7;
    }
}

/* =========================================
   フッター
========================================= */

footer {
    background: #F5F5F5;
    color: #fff;
    padding: 0 10px 10px;
}

.footer_inner {
    position: relative;
    margin: 0 auto;
    padding: min(16vw, 60px) min(5.3333333333vw, 20px);
    background: linear-gradient(to top right, #000 0%, #3E3E3E 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: min(16vw, 60px);
}

.footer_privacy {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: min(3.2vw, 0.75rem);
    color: #fff;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.footer_privacy:hover {
    opacity: 0.7;
}

/* 上部：2カラム */

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

.footer_heading {
    font-size: min(4.2666666667vw, 1rem);
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin-bottom: min(4vw, 15px);
}

.footer_text {
    font-size: min(3.7333333333vw, 0.875rem);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.04em;
    margin-bottom: min(4vw, 15px);
}

.footer_corp-link {
    display: inline-block;
    font-size: min(3.7333333333vw, 0.875rem);
    font-weight: 400;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.footer_corp-link:hover {
    opacity: 0.7;
}

.footer_line {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: min(6.6666666667vw, 25px);
}

.footer_line .footer_text {
    letter-spacing: 0;
}

.footer_line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 260px;
    height: min(8.5333333333vw, 32px);
    margin: 0 auto;
    background: #06C755;
    border-radius: 30px;
    color: #fff;
    font-size: min(3.7333333333vw, 0.875rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s ease;
    transition: opacity 0.3s ease;
}

.footer_line-btn:hover {
    opacity: 0.7;
}

/* 下部：ロゴ＋コピーライト */

.footer_bottom {
    display: flex;
    flex-direction: column;
    gap: min(6.6666666667vw, 25px);
}

.footer_brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(6.6666666667vw, 25px);
}

.footer_logo {
    display: block;
    width: 161px;
}

.footer_catch {
    font-size: min(3.2vw, 0.75rem);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.4em;
}

.footer_copyright {
    font-size: 12px;
    font-family: var(--sub-font);
    line-height: 1;
    text-align: center;
}

@media (min-width: 768px) {

    .footer_inner {
        padding: 60px min(4.8611111111vw, 70px);
        gap: min(2.7777777778vw, 40px);
    }

    .footer_top {
        flex-direction: row;
        align-items: flex-start;
        gap: min(1.3888888889vw, 20px);
    }

    .footer_about {
        flex: 1;
    }

    .footer_line {
        flex: 1;
        padding: 25px;
    }

    .footer_heading {
        font-size: 1.125rem;
        margin-bottom: min(1.1111111111vw, 16px);
    }

    .footer_text {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .footer_corp-link {
        font-size: 0.875rem;
    }

    .footer_line-btn {
        height: 32px;
        margin: 0 auto 0 0;
        font-size: 0.875rem;
    }

    .footer_bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .footer_brand {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: min(2.0833333333vw, 30px);
    }

    .footer_logo {
        width: min(9.7222222222vw, 140px);
    }

    .footer_privacy {
        font-size: clamp(0.75rem, 0.8333333333vw, 0.75rem);
    }

    .footer_catch {
        font-size: clamp(0.75rem, 0.8333333333vw, 0.75rem);
    }
}

/* =========================================
   フロートバナー（お問い合わせ）
========================================= */

.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 {
        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_text--sp {
        display: none;
    }

    .float-banner_text--pc {
        display: block;
        order: -1;
    }

    .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;
        transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .float-banner_link:hover {
        background: #fff;
        color: var(--accent-color);
        border-color: 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%);
    }
}