/* ============================================================
header用スタイル
============================================================ */
.header {
    position: fixed;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    padding: 16px;
    background-color: #000;
    z-index: 1001;
}


@media (max-width: 767px) {
    .header {
        position: fixed;
        display: flex;
        align-items: center;
        width: 100%;
        height: 70px;
        top: 0;
        left: 0;
        padding: 4px;
        background-color: #000;
        z-index: 1001;
    }
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    gap: 32px;
    padding-left: 280px;
}

.nav-left {
    display: flex;
    justify-content: flex-end;
}

.nav-right {
    display: flex;
    justify-content: flex-start;
}

.header-logo {
    display: flex;
    justify-content: center;
}

.header-logo img {
    height: 44px;
}

.running-list-btn-wrap {
    display: flex;
    justify-content: flex-end;
}

/* ボタン */
.running-list-btn {
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.running-list-btn img {
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.running-list-btn:hover img {
    opacity: 0.6;
}


/* ナビ共通 */
.nav-left ul,
.nav-right ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: clamp(8px, 1vw, 16px);
    font-weight: 500;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

nav a:hover {
    color: #9F0515;
    text-decoration: none;
}

.hamburger {
    display: none;
}

/*@media screen and (max-width: 768px) {*/
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.nav-left,
.nav-right {
    display: none;
}

.header-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-left: 0px !important;
    padding-right: 0px;
}

.header-logo {
    order: 0;
    justify-content: flex-start !important;
    width: auto;
}

.menu-top-right img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
}

.menu-logo img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
}

.header-logo img {
    max-width: 48px;
    height: auto;
    width: auto;
    display: block;
}


.running-list-btn img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
}

.running-list-wrap {
    flex-shrink: 0;
    margin: 0 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    order: 1;
    margin-right: auto;
}

.running-list-wrap img {}

@media (min-width: 768px) and (max-width: 1024px) {
    .running-list-wrap {
        order: 1;
        margin: 0 8px 0 0;
        display: flex;
        align-items: center;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .running-list-wrap {
        order: 1;
        margin: 0 8px 0 0;
        display: flex;
        align-items: center;
        gap: 24px;
    }
}

.running-list-wrap {
    gap: 10px;
    /* 任意の余白 */
    align-items: center;
}

.running-list-btn {
    height: 48px;
    display: flex;
    align-items: center;
}

.running-list-btn img {
    height: 100%;
    width: auto;
    display: block;
}

.running-list-btn-02 {
    height: 48px;
    display: flex;
    align-items: center;
}

.running-list-btn-02 img {
    height: 100%;
    width: auto;
    display: block;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .running-list-btn {
        height: 32px;
        display: flex;
        align-items: center;
    }

    .running-list-btn img {
        height: 100%;
        width: auto;
        display: block;
    }

    .running-list-btn-02 {
        height: 32px;
        display: flex;
        align-items: center;
    }

    .running-list-btn-02 img {
        height: 100%;
        width: auto;
        display: block;
        border-radius: 5px;
    }
}

.hamburger {
    order: 2;
    margin-left: 8px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 999;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #2c2f33;
    color: white;
    z-index: 1000;
    padding: 60px 20px;
    transition: left 0.3s ease;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 20px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}



/* 開いたとき */
.mobile-menu.open {
    left: 0;
}

.overlay.active {
    display: block;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1101;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.full-screen-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.full-screen-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.full-screen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    color: rgb(255, 255, 255);
    padding: 27px 16px 36px;
    box-sizing: border-box;
    transform: translateY(-100%);
    /* 初期は上に隠す */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1101;
    display: flex;
    flex-direction: column;
}

/* 表示状態 */
.full-screen-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* オーバーレイも初期非表示 */
.full-screen-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

/* オーバーレイ表示 */
.full-screen-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .full-screen-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #ffffff;
        color: rgb(255, 255, 255);
        padding: 32px 16px 40px;
        box-sizing: border-box;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 1101;
        display: flex;
        flex-direction: column;
    }
}

.full-screen-menu.open {
    transform: translateY(0);
}

.close-btn {
    font-size: 48px;
    color: rgb(170, 0, 0);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
}

@media (max-width: 767px) {
    .close-btn {
        font-size: 40px;
        color: rgb(170, 0, 0);
        background: none;
        border: none;
        cursor: pointer;
        line-height: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 7px;
        margin-right: 5px;
    }
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.menu-top-right {
    display: flex;
    align-items: center;
    gap: 12px;

}




/* メニューリスト */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* メニュー項目上下に線を入れる */
.menu-list li {
    border-top: 2px solid #e6e6e6;
}

.menu-list li:last-child {
    border-bottom: 2px solid #e6e6e6;
}

.menu-list li a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: color 0.3s;
}

.menu-list li a:hover {
    color: #9F0515;
}

.hamburger.hidden {
    z-index: 2;
}

.footer-links {
    text-align: center;
    margin-top: 40px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    position: relative;
}

.footer-link {
    position: relative;
    font-size: 12px;
    text-decoration: none;
    color: #000000;
    padding-top: 12px;
}

.footer-link::after {
    content: "";
    display: block;
    width: 120%;
    height: 1px;
    background-color: #999999;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.footer-sns {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-sns a img {
    width: 36px;
    height: 36px;
}

.header-sns {
    display: flex;
    gap: 24px;
    justify-content: center;
}