:root {
    --ui-top: calc(env(safe-area-inset-top, 0px) + 18px);
    --ui-side: 22px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
header {
    position: relative;
    padding-top: calc(env(safe-area-inset-top, 0px) + 90px); /* ロゴ/ボタンの高さ分。必要なら調整 */
}
/* MENU */
.header-nav-content {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px 24px;
    margin: 20px auto;
    z-index: 1000;
}
.site-logo {
    position: absolute;
    top: var(--ui-top);
    left: var(--ui-side);
    z-index: 2000;
}
.site-logo img {
    height: 60px;
    width: auto;
}
/* 背景要素（opacity:0→1） */
body.is-scrolled .header-nav-content {
    position: fixed;
    top: 0;
}
body.is-scrolled .nav-bg {
    opacity: 0.8;
}
.header-nav-content ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: nowrap;
}
.header-nav-content li a {
    font-family: "Aboreto", system-ui;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.08rem;
    white-space: nowrap; /* 念のため */
}
/* MENU button */
/* カラー */
.menu-btn, .menu-btn span, .menu-btn::before, .menu-btn::after {
    color: #000 !important;
    background-color: #000 !important;
}
.menu-btn a {
    color: #000 !important;
    text-decoration: none;
}
.hamburger, .hamburger.sp {
    color: #000 !important;
}
button.hamburger.sp {
    color: #000 !important;
}
button.hamburger.sp .hamburger__bars .bar {
    background-color: currentColor !important; /* 念のため */
}
/* buttonのデフォルト見た目を消す */
.hamburger.sp {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    outline: none;
}
/* キーボード操作の時だけフォーカス見せる */
.hamburger.sp:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}
.hamburger.sp {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
.hamburger {
    position: fixed;
    top: var(--ui-top);
    right: var(--ui-side);
    left: auto;
    z-index: 3000;
}
.hamburger__label {
    color: #000000;
    font-family: "Marcellus", serif;
    letter-spacing: .16em;
    font-size: 12px;
    line-height: 1;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}
.hamburger__label--close {
    display: none;
}
body.is-menu-open .hamburger__label--menu {
    display: none;
}
body.is-menu-open .hamburger__label--close {
    display: inline;
}
.hamburger__bars {
    position: relative;
    width: 50px;
    height: 28px;
}
.hamburger__bars::after {
    content: "";
    position: absolute;
    top: 0; /* いちばん上の線と同じ高さ */
    right: 0;
    height: 1px;
    background: currentColor;
    transform: translateX(100%); /* 右側に伸ばす */
    opacity: .9;
}
.hamburger__bars .bar {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .45s ease, width .45s ease, opacity .2s ease;
    transform-origin: 50% 50%;
}
.hamburger__bars .bar:nth-child(1) {
    top: 0;
}
.hamburger__bars .bar:nth-child(2) {
    top: 10px;
}
.hamburger__bars .bar:nth-child(3) {
    top: 20px;
}
/* OPEN時：上＋下の2本が×、真ん中はそのまま残す */
body.is-menu-open .hamburger__bars .bar:nth-child(1), body.is-menu-open .hamburger__bars .bar:nth-child(3) {
    width: 100%;
}
body.is-menu-open .hamburger__bars .bar:nth-child(1) {
    transform: translateY(10px) rotate(30deg);
}
body.is-menu-open .hamburger__bars .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-30deg);
}
body.is-menu-open .hamburger__bars .bar:nth-child(2) {
    opacity: 0;
}
/* メニュー本体 */
.sp-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.6s ease, visibility 0s linear 0.6s; /* ← 閉じる時にだけ遅らせる */
}
.sp-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.6s ease, visibility 0s;
}
.sp-nav ul {
    list-style: none;
    padding: 10rem 5rem;
}
.sp-nav ul li {
    margin: 0;
    list-style: none;
}
.sp-nav a {
    font-family: "Aboreto", system-ui;
    font-size: 1.6rem;
    color: #000;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左：テキスト / 右：矢印 */
    width: 100%; /* aタグをliいっぱいに広げる */
    padding: 0.7em 0; /* 上下余白は調整 */
    text-decoration: none;
}
.sp-nav .menu-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-left: 40px;
}
@media screen and (min-width: 768px) {
    .site-logo {
        left: 50%;
        transform: translateX(-50%);
        padding-top: 1rem;
    }
    .site-logo img {
        height: 80px;
    }
    .hamburger, .sp-nav {
        display: none !important;
    }
    /* MENU */
    .header-nav-content {
        position: absolute; /* ← fixed にしない */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
        margin: 20px 0;
        padding-top: 2rem;
    }
    .header-nav-content li a {
        font-size: 1.7vw;
    }
    /* ナビ全体のレイアウト */
    .pc-nav {
        display: flex;
        align-items: center;
    }
    .pc-nav li {
        display: flex;
        align-items: center;
    } /* 区切りドット（最後のliには付けない） */
    .pc-nav li:not(:last-child)::after {
        content: "";
        display: inline-block;
        width: 2px;
        height: 2px;
        border-radius: 50%;
        background: currentColor;
        margin: 0 20px; /* ← 左右均等なスペース */
    } /* リンクの当たり判定 */
    .pc-nav a {
        display: inline-block;
        text-decoration: none;
        color: inherit; /* liの色を継承 */
        padding: 10px 0;
        transition: opacity 0.6s ease;
    }
    .pc-nav a:hover {
        opacity: 0.4;
    }
    .pc-nav li.selected a {
        opacity: 0.3;
        pointer-events: none;
    }
}
@media screen and (min-width: 1400px) {
	    .header-nav-content li a {
        font-size: 23.8px;
    }

}