/* ==============================================
   ヘッダー・フッター 共通CSS（ドロップダウンメニュー対応）
   ============================================== */

/* ナビゲーションバー */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.hamburger-line {
    width: 100%;
    height: 4px;
    background-color: #000;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* ナビゲーションメニュー */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.nav-link:hover {
    opacity: 0.6;
}

/* ドロップダウン矢印 */
.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ドロップダウンメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-top: 3px solid #000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #000;
    padding-left: 25px;
}

/* ドロップダウン区切り線 */
.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 15px;
}

/* お問い合わせボタン強調 */
/* お問い合わせボタン - ローズピンク＋きらっとアニメーション */
.nav-link-cta {
    background: linear-gradient(135deg, #e91e8c 0%, #d50032 100%);
    color: #fff !important;
    padding: 10px 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* きらっとアニメーション（斜め・左から右） */
.nav-link-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 25%,
        rgba(255, 255, 255, 0.15) 35%,
        rgba(255, 255, 255, 0.4) 45%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 55%,
        rgba(255, 255, 255, 0.15) 65%,
        transparent 75%,
        transparent 100%
    );
    animation: shineRightward 10s ease-in-out infinite;
    animation-delay: 5s;
}

@keyframes shineRightward {
    0% {
        transform: translateX(0);
    }
    35%, 100% {
        transform: translateX(150%);
    }
}

.nav-link-cta:hover {
    background: linear-gradient(135deg, #ff3399 0%, #e91e8c 100%);
    opacity: 1 !important;
}

/* レスポンシブ対応 */
@media (max-width: 968px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        align-items: stretch;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link {
        display: flex;
        justify-content: space-between;
        padding: 18px 0;
        font-size: 1.1rem;
        height: auto;
    }
    
    /* モバイル：ドロップダウンをアコーディオン形式に */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: #f9f9f9;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }
    
    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-menu li a {
        padding: 12px 20px;
    }
    
    .dropdown-menu li a:hover {
        padding-left: 20px;
    }
    
    .nav-link-cta {
        text-align: center;
        margin-top: 10px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #ffffff;
    padding: 60px 40px 30px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e91e8c 0%, #d50032 50%, #e91e8c 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-row {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline {
    color: #cccccc;
    font-size: 0.95rem;
    margin: 10px 0 0;
}

.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section {
    text-align: center;
}

.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e91e8c;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #e91e8c;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: #999999;
    font-size: 0.85rem;
}

/* トップへ戻るボタン - ローズピンク＋きらっとアニメーション */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e91e8c 0%, #d50032 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
    overflow: hidden;
}

/* きらっとアニメーション（水平・下から上） */
.back-to-top::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 80%;
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
    animation: shineUpward 10s ease-in-out infinite;
}

@keyframes shineUpward {
    0% {
        bottom: -100%;
    }
    35%, 100% {
        bottom: 200%;
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 28px rgba(233, 30, 140, 0.6);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
