/* ===== 共通 ===== */

header{
    background-color: white;
    padding: 30px;
    text-align: center;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: white;
}
.site-header a {
    font-size: 1rem;
    font-weight: lighter;
    margin: 0;
}

body {
  padding-top: var(--header-height, 0px);
}

body.no-scroll {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* ===== ナビ共通 ===== */

.nav__wrapper {
    list-style: none;
    font-family: "游ゴシック体","Yu Gothic","游ゴシック","Yu Gothic UI",sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding-right: 50px;
}

.nav__wrapper a {
    position: relative;
    display: inline-block;
    color: black;
    text-decoration: none;
    line-height: 1;
}

/* PJ色 */
.nav__item.PJ a {
    color: rgb(254,135,33);
}

/* 下線アニメーション */
.nav__wrapper a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.nav__wrapper a:hover::after {
    width: 100%;
}

/* 各項目 */
.nav__item {
    padding: 0 1.5rem;
    border-right: 1px solid #ccc;
}

.nav__item:last-child {
    border-right: none;
}

.nav__item a {
    display: block;
    padding: 1.5rem 1rem;
    font-weight: 500;
}

/* ===== ヘッダー内部 ===== */

.site-header__wrapper {
    padding: 1rem 0;
}

@media (min-width: 850px) {
    .site-header__wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }
}

/* ===== ハンバーガー ===== */

.nav__toggle {
    display: none;
}


.hamburger-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* ===== スマホ ===== */

@media (max-width: 849px) {

    header {
        padding: 0;
    }

    .brand {
        display: none !important;
    }

    body {
        padding-top: 80px;
    }

    .nav__toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 10000;
    }

    .nav__wrapper {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;

        display: flex;
        flex-direction: column;
        overflow-y: auto;

        visibility: hidden;
        opacity: 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav__wrapper.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav__item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0;
    }

    .nav__item:last-child {
        border-bottom: none;
    }

    .nav__item a {
        text-align: center;
        font-size: 1.2rem;
    }
}

/* ===== スクロール固定 ===== */

body.no-scroll {
    overflow: hidden;
}


