@charset "utf-8";

/**
 * Variables
 */
:root {
    /* Colors */
    --color-main: #071F4D;
    --color-key: #FFDB00;
    --color-font: #323232;
    --color-white: #FFFFFF;
    
    /* Layout */
    --header-height-pc: 80px;
    --header-height-sp: 70px;
}

/**
 * Base Header Layout
 */
.l-header {
    width: 100%;
    height: var(--header-height-pc);
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.l-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-left: clamp(0.625rem, -0.49rem + 2.32vw, 1.25rem);
    max-width: 100%;
}

.l-header__logo {
    width: 135px;
}

.l-header__logo img {
    width: 100%;
    height: auto;
}

/**
 * Common Components (Button)
 */
.c-btn-consult {
    display: flex;
    align-items: center;
    background: var(--color-white);
    color: var(--color-main);
    text-decoration: none;
    font-weight: bold;
    padding: 10px clamp(0.625rem, -0.49rem + 2.32vw, 1.25rem);
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.c-btn-consult:hover {
    transform: translateY(-2px);
    background-color: #f9f9f9;
}

.c-btn-consult span {
    font-size: clamp(0.875rem, 0.652rem + 0.46vw, 1rem);
    white-space: nowrap;
}

.c-btn-consult img {
    width: 24px;
    height: auto;
    margin-right: 8px;
}

/**
 * PC Styles (769px〜)
 */
@media screen and (min-width: 769px) {
    .l-header__logo {
        width: clamp(8.438rem, 3.419rem + 10.44vw, 11.25rem);
    }

    .l-header__nav-wrap {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        height: var(--header-height-pc);
        padding-left: clamp(2.5rem, -1.961rem + 9.28vw, 5rem);
    }

    /* 斜め背景の装飾 */
    .l-header__nav-wrap:after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: var(--color-main);
        clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
        z-index: -1;
    }

    .l-header__right {
        display: flex;
        align-items: center;
        height: 100%;
        padding-right: 20px;
    }

    .l-header__menu {
        display: flex;
        list-style: none;
        margin-right: clamp(0.625rem, -1.605rem + 4.64vw, 1.875rem);
    }

    .l-header__menu li a {
        color: var(--color-white);
        text-decoration: none;
        padding: 0 clamp(0.313rem, -0.803rem + 2.32vw, 0.938rem);
        transition: color 0.3s;
        font-size: clamp(0.875rem, 0.652rem + 0.46vw, 1rem);
        font-weight: 400;
    }

    .l-header__menu li a:hover {
        color: var(--color-key);
    }
}

/**
 * SP Styles (〜768px)
 */
@media screen and (max-width: 768px) {
    .l-header {
        height: var(--header-height-sp);
    }

    .l-header__right {
        display: flex;
        align-items: center;
        background: var(--color-main);
        height: var(--header-height-sp);
        padding: 0 10px 0 20px;
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    }

    /* SP Button Adjustments */
    .c-btn-consult {
        padding: 8px clamp(0.313rem, -0.368rem + 2.33vw, 0.75rem);
        margin-right: 10px;
    }

    .c-btn-consult span {
        font-size: clamp(0.75rem, 0.556rem + 0.66vw, 0.875rem);
    }

    .c-btn-consult img {
        width: clamp(1rem, 0.223rem + 2.66vw, 1.5rem);
        margin-right: clamp(0.125rem, -0.458rem + 1.99vw, 0.5rem);
    }

    /* Hamburger Menu Button */
    .l-header__hamburger {
        width: 30px;
        height: 24px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
    }

    .l-header__hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-white);
        position: absolute;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .l-header__hamburger span:nth-child(1) { top: 0; }
    .l-header__hamburger span:nth-child(2) { top: 11px; }
    .l-header__hamburger span:nth-child(3) { bottom: 0; }

    /* Hamburger Open Animation */
    .l-header__hamburger.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .l-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
    .l-header__hamburger.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    /* Drawer Menu */
    .l-header__drawer {
        position: fixed;
        top: var(--header-height-sp);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height-sp));
        background: var(--color-main);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 20px;
        overflow-y: auto;
    }

    .l-header__drawer.is-open {
        left: 0;
    }

    .l-header__drawer-menu {
        list-style: none;
    }

    .l-header__drawer-menu li {
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .l-header__drawer-menu li a {
        color: var(--color-white);
        text-decoration: none;
        font-size: 18px;
        display: block;
        padding-bottom: 10px;
    }
}

/**
 * Utility Classes
 */
.u-pc-only { display: block; }
.u-sp-only { display: none; }
.u-xsp-only { display: none;}

@media screen and (max-width: 768px) {
    .u-pc-only { display: none; }
    .u-sp-only { display: block; }
}
@media screen and (max-width: 768px) {
    .u-xsp-only { display: block;}
}