/* ===============================================
   新しいヘッダーデザイン - おもちゃ再生堂
   参考: ワイテックエンジニアリングのヘッダーデザイン
   =============================================== */

/* ===== ヘッダー（新デザイン）===== */
.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 100%;
}

/* ===== ロゴエリア ===== */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-character {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.2;
}

/* ===== 右側エリア（お問合せボタン + ハンバーガーメニュー）===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* お問合せボタン */
.contact-button {
    padding: 0.5rem 1.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-button:hover {
    background: var(--primary-color);
    color: white;
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: var(--primary-color);
}

/* ハンバーガーメニューがアクティブ時 */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ===== モーダルメニュー ===== */
.modal-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.modal-menu.active {
    right: 0;
}

/* モーダルメニューコンテンツ */
.modal-menu-content {
    padding: 2rem 1.5rem;
    position: relative;
}

/* 閉じるボタン */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

/* モーダルナビゲーション */
.modal-nav {
    margin-top: 3rem;
}

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

.modal-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.modal-nav li:last-child {
    border-bottom: none;
}

.modal-nav a {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.modal-nav a:hover {
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.modal-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.modal-nav a:hover::before {
    width: 24px;
}

/* モーダル背景オーバーレイ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== レスポンシブデザイン ===== */

/* タブレット */
@media (max-width: 768px) {
    .logo-character {
        width: 45px;
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text .tagline {
        font-size: 0.7rem;
    }
    
    .contact-button {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .modal-menu {
        max-width: 350px;
    }
}

/* スマホ */
@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-character {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text .tagline {
        font-size: 0.65rem;
    }
    
    .contact-button {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .header-right {
        gap: 0.75rem;
    }
    
    .modal-menu {
        max-width: 100%;
    }
    
    .modal-menu-content {
        padding: 1.5rem 1rem;
    }
    
    .modal-nav a {
        font-size: 0.95rem;
        padding: 0.9rem 0;
    }
}

/* iPhone SE対応 */
@media (max-width: 375px) {
    .logo-text h1 {
        font-size: 0.95rem;
    }
    
    .logo-text .tagline {
        font-size: 0.6rem;
    }
    
    .contact-button {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .hamburger-menu {
        width: 26px;
        height: 20px;
    }
    
    .hamburger-menu span {
        height: 2.5px;
    }
}

/* 既存のナビゲーションを非表示 */
.nav {
    display: none !important;
}

.menu-toggle {
    display: none !important;
}
