@charset 'UTF-8';

/*
HEADER
================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: var(--z-header);
}

.header-inner {
  max-width: 2000px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

.header-title a {
  color: #26611f;
  text-decoration: none;
}

/* メインナビゲーション */
.main-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(38, 97, 31, 0.97) 0%,
        rgba(38, 97, 31, 0.95) 30%,
        rgba(38, 97, 31, 0.92) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 80px 2rem 2rem;
    z-index: var(--z-nav-overlay);
    justify-content: center;
    align-items: center;
    animation: menuFadeIn 0.5s ease forwards;
}

.main-nav ul.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 1;
    z-index: -1;
    animation: backgroundFadeIn 0.8s ease forwards;
}

@keyframes backgroundFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-nav ul.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transform: translate(-50%, -50%);
    z-index: -2;
    animation: gradientFadeIn 1s ease forwards;
}

@keyframes gradientFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.main-nav ul.active .menu-item {
    opacity: 0;
    transform: translateY(20px);
    animation: menuItemFadeIn 0.5s ease forwards;
}

.main-nav ul.active .menu-item:nth-child(1) { animation-delay: 0.2s; }
.main-nav ul.active .menu-item:nth-child(2) { animation-delay: var(--duration-base); }
.main-nav ul.active .menu-item:nth-child(3) { animation-delay: 0.4s; }
.main-nav ul.active .menu-item:nth-child(4) { animation-delay: 0.5s; }
.main-nav ul.active .menu-item:nth-child(5) { animation-delay: 0.6s; }

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav .menu-item {
    margin: 0;
    text-align: center;
}

.main-nav .menu-item a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 300;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    padding: 1.5rem;
    position: relative;
    display: block;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.1em;
}

.main-nav .menu-item a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transform: translateY(-50%);
    transition: width var(--duration-base) ease;
    opacity: 0;
}

.main-nav .menu-item a:hover::before {
    width: 15px;
    opacity: 1;
}

.main-nav .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transform: scaleX(0);
    transition: transform var(--duration-base) ease;
    transform-origin: right;
}

.main-nav .menu-item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ハンバーガーメニュー */
.hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span {
    background: var(--color-white);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(1px, 11px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(1px, -11px);
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .main-nav ul {
        display: flex;
        position: static;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        height: auto;
        background: none;
    }

    .main-nav ul.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(38, 97, 31, 0.97) 0%,
            rgba(38, 97, 31, 0.95) 30%,
            rgba(38, 97, 31, 0.92) 100%
        );
    }

    .main-nav .menu-item {
        margin-left: 2.5rem;
    }

    .main-nav .menu-item a {
        padding: 0.5rem 0;
        font-size: 1rem;
        font-weight: 500;
        font-family: "Yu Gothic", "YuGothic", sans-serif;
        color: var(--color-text);
        text-shadow: none;
        letter-spacing: 0.05em;
    }

    .main-nav .menu-item a::after {
        background: #26611f;
    }

    .main-nav ul.active .menu-item {
        margin: 1.5rem 0;
    }

    .main-nav ul.active .menu-item a {
        font-size: 2rem;
        font-weight: 300;
        font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
        padding: 1.5rem;
        color: var(--color-white);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.1em;
    }

    .main-nav ul.active .menu-item a::after {
        background: var(--color-white);
    }
}
