/* ========================================
   GLOBAL RESET
======================================== */

html,
body {
    overflow-x: hidden;
}

.kf-header *,
.kf-header *::before,
.kf-header *::after {
    box-sizing: border-box;
}

/* ========================================
   ADMIN BAR FIX
======================================== */

body.admin-bar .kf-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .kf-header {
        top: 46px;
    }
}

/* ========================================
   HEADER BASE
======================================== */

.kf-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;
    background: #fff;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.kf-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* ========================================
   LOGO
======================================== */

.kf-header__logo img {
    height: 70px;
    width: auto;
}

/* ========================================
   NAV (PC)
======================================== */

.kf-header__nav {
    display: flex;
    align-items: center;
}

.kf-header__menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kf-header__menu li {
    white-space: nowrap;
}

.kf-header__menu a {
    position: relative;
    text-decoration: none;
    color: #222;
    font-size: 15px;
    padding: 6px 0;
}

/* 下線 */
.kf-header__menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #b2a789;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* hover時 */
.kf-header__menu a:hover::after,
.kf-header__menu a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* hover外れた時の動きを右基準に */
.kf-header__menu a:not(:hover)::after {
    transform-origin: right;
}


/* ========================================
   CONTACT BUTTON (PC)
======================================== */

.kf-header__menu .is-contact a {
    background: #b2a789;
    color: #fff;
    padding: 20px 40px;
    font-size: 18px;
    display: inline-block;
}

.kf-header__menu .is-contact a:hover {
    background: #a59a7a;
}

/* ========================================
   HAMBURGER
======================================== */

.kf-header__toggle {
    display: none;
    position: relative;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.kf-header__toggle span {
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    background: #222;
    transition: all 0.3s ease;
}

.kf-header__toggle span:nth-child(1) {
    top: 0;
}

.kf-header__toggle span:nth-child(2) {
    top: 9px;
}

.kf-header__toggle span:nth-child(3) {
    bottom: 0;
}

/* ×アニメーション */
.kf-header__toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.kf-header__toggle.active span:nth-child(2) {
    opacity: 0;
}

.kf-header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 900px) {

    .kf-header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        padding: 120px 40px 40px;
        flex-direction: column;
        gap: 32px;

        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .kf-header__nav.active {
        transform: translateX(0);
    }

    .kf-header__menu {
        flex-direction: column;
        gap: 24px;
    }

    .kf-header__menu .is-contact a {
        width: 100%;
        padding: 16px;
    }

    .kf-header__toggle {
        display: block;
    }
}