/* ===== PC用固定ヘッダー整形 ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* ←これで上下中央揃え */
    height: 110px;
    /* ← 高さ固定で崩れ防止 */
    padding: 0 5%;
    box-sizing: border-box;
}

/* body側に高さ分の余白を確保 */

body {
    padding-top: 110px;
}

/* ロゴの調整 */

.logo img {
    height: 114px;
    width: auto;
    position: absolute;
    display: block;
    margin: 0;
    top: 21px;
}

/* ナビゲーション */

.nav ul {
    list-style: none;
    display: flex;
    gap: 60px;
    margin: 0;
    padding: 0;
    align-items: center;
    /* ← 中央揃えを強制 */
}

.nav a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Noto Serif JP", serif;
    transition: color 0.3s ease;
}

.nav a span {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.nav a small {
    font-size: 0.7rem;
    font-family: "Playfair Display", serif;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
    margin-top: 4px;
}

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

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

/* 🌸 ハンバーガーの基本 */

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 999;
}

.menu-toggle span {
    position: absolute;
    width: 24px;
    height: 2.5px;
    background: #333;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 線の位置 */

.menu-toggle span:nth-child(1) {
    top: 13px;
}

.menu-toggle span:nth-child(2) {
    top: 22px;
}

.menu-toggle span:nth-child(3) {
    top: 31px;
}

/* 🌸 active（バツ状態） */

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 22px;
    /* 真ん中に寄せる */
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 22px;
    /* 真ん中に寄せる */
}

/* ====== 📱スマホ用 ====== */

.nav-sp {
    display: none;
}

.menu-toggle,
.line_menu,
.frex_menu {
    display: none;
}

@media (max-width: 850px) {
    .logo img {
        height: 84px;
        top: 10px;
    }
    .menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        z-index: 200;
    }
    .nav {
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translate(-50%, -20px);
        width: 90%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
    }
    .nav.active {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 36px 0;
        font-size: 17px;
    }
    .header {
        height: auto;
        padding: 12px 5%;
    }
    .logo img {
        height: 64px;
    }
    body {
        padding-top: 90px !important;
    }
    .nav-sp {
        display: block;
    }
    .line_menu {
        width: 48px;
        height: 48px;
        display: block;
    }
    .line_menu img {
        width: 100%;
        height: auto;
    }
    .frex_menu {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
    }
}

.main {
    max-width: 1920px;
    width: 96%;
    height: auto;
    margin: 0 auto;
    padding: 0 2%;
}

.cart_menu {
    position: relative;
}

.cart_menu p {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #5fbf9a;
    /* CONYのミントトーン */
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
