@charset "UTF-8";

/* 共通 */
.nav-container {
    display: flex;
    align-items: center;
    /* ←縦中央に揃える */
    justify-content: space-between;
    /* 左右に配置 */
    padding: 16px 24px;
}

/* 通常ナビ（PC用） */
.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-list li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* モーフィングハンバーガー */
.hamburger-morph {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: none;
    /* PCでは非表示 */
}

.hamburger-morph__icon {
    width: 100%;
    height: 100%;
}

.hamburger-morph__line {
    fill: none;
    stroke: #000;
    stroke-width: 6;
    transition: stroke-dasharray 600ms ease, stroke-dashoffset 600ms ease;
}

/* 細くて繊細な線に（stroke-width: 2） */
.hamburger-morph__line {
    stroke: #000;
    /* 黒で統一感 */
    stroke-width: 2;
    /* 細さで上品に */
    transition: stroke-dasharray 600ms ease, stroke-dashoffset 600ms ease;
}

/* 大きめサイズで余裕を持たせた余白 */
.hamburger-morph,
.hamburger-morph__icon {
    width: 100px;
    height: 100px;
}

/* ボタン配置もゆったり */
.hamburger-morph {
    top: 5px;
    right: 24px;
}

/* オーバーレイ（非表示時） */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    /* ← 透けた黒 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    z-index: 800;
}

/* 展開中（表示） */
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* アニメーション */
.hamburger-morph__line:nth-child(1) {
    stroke-dasharray: 60 207;
}

.hamburger-morph__line:nth-child(2) {
    stroke-dasharray: 60 60;
}

.hamburger-morph__line:nth-child(3) {
    stroke-dasharray: 60 207;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(1) {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(2) {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(3) {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
}

/* 展開メニュー */
.nav-morph {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(248, 241, 233, 0.9);
    /* ← 半透明ベージュ */
    clip-path: circle(0% at calc(100% - 44px) 44px);
    opacity: 0;
    transform: scale(0.98);
    transition:
        clip-path 0.7s ease,
        opacity 0.5s ease,
        transform 0.5s ease;
    z-index: 900;
    padding: 100px 0;
}

.nav-morph.active {
    clip-path: circle(150% at calc(100% - 44px) 44px);
    opacity: 1;
    transform: scale(1);
}

.nav-morph__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-morph__list {
    list-style: none;
    text-align: center;
    margin: 0;
}

.nav-morph__item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-morph.active .nav-morph__item {
    opacity: 1;
    transform: translateY(0);
}

.nav-morph.active .nav-morph__item:nth-child(1) {
    transition-delay: 0.3s;
}

.nav-morph.active .nav-morph__item:nth-child(2) {
    transition-delay: 0.4s;
}

.nav-morph.active .nav-morph__item:nth-child(3) {
    transition-delay: 0.5s;
}

.nav-morph.active .nav-morph__item:nth-child(4) {
    transition-delay: 0.6s;
}

.nav-morph.active .nav-morph__item:nth-child(5) {
    transition-delay: 0.7s;
}

.nav-morph__link {
    position: relative;
    display: inline-block;
    padding: 30px;
    font-size: 5rem;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.nav-morph__text,
.nav-morph__hover {
    display: block;
    transition: transform 0.3s ease;
}

.nav-morph__link {
    color: #000;
    /* 万が一リンクに直接色がある場合に備えて */
}

.nav-morph__text,
.nav-morph__hover {
    color: #000 !important;
    /* 黒に固定 */
}


.nav-morph__hover {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.nav-morph__link:hover .nav-morph__text {
    transform: translateY(-100%);
}

.nav-morph__link:hover .nav-morph__hover {
    transform: translateY(-100%);
}

/* ★レスポンシブ切り替え */
@media screen and (max-width: 768px) {
    header ul.nav-list {
        display: none;
    }

    .hamburger-morph {
        display: block;
    }
}