/* Responsive styles for the Meiji Seibu website */

/* Mobile styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* 通常のナビゲーション非表示 */
    .header-nav {
        display: none;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    .logo {
    }

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

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

    /* ハンバーガーアイコンのアニメーション */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

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

    /* モバイルメニュー */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -300px; /* 初期位置：画面外 */
        width: 300px;
        height: 100vh;
        background: var(--meiji-purple);
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu.active {
        right: 0; /* アクティブ時：画面内に表示 */
    }

    .mobile-nav {
        padding: 80px 20px 20px;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list li {
        margin-bottom: 0;
    }

    .mobile-menu-list a {
        display: block;
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .mobile-menu-list a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 10px;
    }

    /* スクロール制御 */
    body.menu-open {
        overflow: hidden;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    nav li {
        margin: 5px 0;
    }

    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .introduction {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .gallery img {
        height: 200px;
    }

    .contact-form {
        padding: 20px;
        margin: 20px;
    }

    main {
        padding: 0 10px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 16px;
    }

    header .container {
        padding: 0 30px;
    }

    .hero {
        padding: 50px 30px;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery img {
        height: 220px;
    }

    main {
        padding: 0 15px;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    body {
        font-size: 18px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .gallery img {
        height: 250px;
    }

    .hero h1 {
        font-size: 2.5em;
    }
}

/* Large desktop styles */
@media (min-width: 1400px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}
