/* ========================================
   蒲田めい 公式ウェブサイト - レスポンシブスタイル
   ======================================== */

/* ========================================
   タブレット（1024px以下）
   ======================================== */
@media (max-width: 1024px) {
    .container-wide {
        padding: 0 var(--spacing-md);
    }

    /* Scheduleセクション - 2カラムに */
    .schedule-grid-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* ギャラリー - 3カラムに */
    .gallery-grid-main {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Info+SNSグリッド */
    .info-sns-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .sns-column {
        order: 2;
    }
}

/* ========================================
   タブレット小（768px以下）
   ======================================== */
@media (max-width: 768px) {

    /* セクション横スクロール防止 */
    section,
    .hero-main,
    .info-sns-section,
    .schedule-section-main,
    .banner-cta-section,
    .concept-section-main,
    .gallery-section-main {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* ナビゲーション - モバイルメニュー */
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: linear-gradient(135deg,
                rgba(43, 36, 32, 0.98) 0%,
                rgba(26, 21, 18, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px var(--spacing-lg) var(--spacing-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(201, 169, 118, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
    }

    .nav-list li {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav.active .nav-list li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav.active .nav-list li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav.active .nav-list li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav.active .nav-list li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav.active .nav-list li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav.active .nav-list li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav.active .nav-list li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav.active .nav-list li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav.active .nav-list li:nth-child(8) {
        transition-delay: 0.45s;
    }

    .nav-link {
        font-size: 1.15rem;
        font-weight: 500;
        display: block;
        padding: 16px 20px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(201, 169, 118, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        letter-spacing: 0.03em;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                rgba(201, 169, 118, 0.1) 0%,
                rgba(201, 169, 118, 0.05) 100%);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-link:hover,
    .nav-link:focus {
        background: rgba(201, 169, 118, 0.08);
        border-color: rgba(201, 169, 118, 0.3);
        transform: translateX(8px);
        color: var(--color-accent);
        box-shadow: 0 4px 20px rgba(201, 169, 118, 0.15);
    }

    .nav-link:hover::before {
        transform: scaleY(1);
    }

    .nav-link:hover::after {
        transform: translateX(0);
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

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

    /* Hero */
    .hero-main {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        letter-spacing: 0.1em;
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }

    /* Info/SNS グリッド */
    .info-sns-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .info-column,
    .sns-column {
        padding: var(--spacing-lg);
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    /* ニュースアイテム - タブレット版カード */
    .news-item-large {
        padding: var(--spacing-md);
        border-radius: 10px;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.98) 100%);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
    }

    .news-item-large:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* Scheduleセクション - 2カラムに */
    .schedule-grid-main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .schedule-section-main {
        background-attachment: scroll;
        padding: var(--spacing-xl) 0;
    }

    .schedule-card-main {
        position: relative;
        transform-style: preserve-3d;
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* バナーCTA - 2カラムに */
    .banner-cta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .banner-cta-card {
        height: 280px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .banner-cta-card:hover {
        transform: translateY(-6px);
    }

    /* Concept - 1カラムに */
    .concept-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .concept-image {
        order: 1;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }

    .concept-text {
        order: 2;
        padding: var(--spacing-md);
    }

    .concept-text p {
        font-size: 1.05rem;
        line-height: 1.9;
    }

    /* Profile - 1カラムに */
    .profile-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .profile-image-container {
        position: relative;
        top: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Contact - 1カラムに */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* ギャラリー - 3カラムに */
    .gallery-grid-main {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

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

    .gallery-item-main {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .gallery-item-main:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    }

    /* Footer */
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-md);
        justify-content: center;
    }

    .footer-artist-name {
        font-size: 2.5rem;
    }

    /* セクション余白調整 */
    .section,
    .info-sns-section,
    .schedule-section-main,
    .banner-cta-section,
    .concept-section-main,
    .gallery-section-main {
        padding: var(--spacing-xl) 0;
    }

    .schedule-section-main {
        padding-bottom: 80px;
    }

    .gallery-section-main {
        padding-bottom: 80px;
    }

    /* コンテナ余白 */
    .container,
    .container-wide {
        padding: 0 var(--spacing-lg);
    }
}

/* ========================================
   スマホ（480px以下）
   ======================================== */
@media (max-width: 480px) {

    /* タイポグラフィ改善 */
    body {
        font-size: 16px;
        line-height: 1.8;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .section-title-main {
        font-size: clamp(2rem, 10vw, 2.8rem);
        line-height: 1.3;
        letter-spacing: 0.08em;
        margin-bottom: var(--spacing-lg);
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    }

    .section-title-left {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.4;
        letter-spacing: 0.05em;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        margin-bottom: var(--spacing-lg);
    }

    /* Hero セクション強化 */
    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
        line-height: 1.25;
        letter-spacing: 0.12em;
        text-shadow:
            0 2px 10px rgba(0, 0, 0, 0.6),
            0 4px 20px rgba(0, 0, 0, 0.4),
            0 8px 40px rgba(0, 0, 0, 0.2);
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
        letter-spacing: 0.15em;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    }

    .hero-catchphrase {
        font-size: clamp(0.95rem, 4vw, 1.15rem);
        line-height: 2;
        letter-spacing: 0.06em;
    }

    /* ニュースアイテム - プレミアムカードデザイン */
    .news-item-large {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
        border-radius: 12px;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.98) 100%);
        border-left: 4px solid var(--color-accent);
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.08),
            0 4px 16px rgba(0, 0, 0, 0.04);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .news-item-large:hover {
        transform: translateY(-4px);
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.12),
            0 8px 32px rgba(0, 0, 0, 0.08);
        border-left-color: var(--color-primary);
    }

    .news-date {
        min-width: auto;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--color-accent);
        margin-bottom: var(--spacing-xs);
    }

    .news-category {
        padding: 6px 14px;
        font-size: 0.7rem;
        border-radius: 20px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        margin-bottom: var(--spacing-xs);
    }

    .news-link {
        min-width: auto;
        font-size: 1rem;
        line-height: 1.7;
        font-weight: 500;
    }

    /* SNS投稿 - カード強化 */
    .sns-post {
        padding: var(--spacing-md);
        background: rgba(255, 255, 255, 0.6);
        border-radius: 10px;
        margin-bottom: var(--spacing-sm);
        border: 1px solid rgba(201, 169, 118, 0.1);
        transition: all 0.3s ease;
    }

    .sns-post:hover {
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .sns-post p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Scheduleカード - プレミアムデザイン */
    .schedule-card-main {
        border-radius: 16px;
        overflow: hidden;
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.12),
            0 8px 32px rgba(0, 0, 0, 0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
    }

    .schedule-card-main:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.16),
            0 16px 48px rgba(0, 0, 0, 0.12);
    }

    .schedule-title-main {
        font-size: 1.15rem;
        line-height: 1.5;
        font-weight: 700;
    }

    .schedule-info-main {
        padding: var(--spacing-md);
    }

    .schedule-date-main {
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: 0.03em;
    }

    .schedule-venue-main,
    .schedule-time-main,
    .schedule-price-main {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* バナーCTA */
    .banner-cta-title {
        font-size: 2rem;
    }

    .banner-cta-text {
        font-size: 1rem;
    }

    /* ギャラリー - プレミアムグリッド */
    .gallery-grid-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .gallery-item-main {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .gallery-item-main::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom,
                transparent 0%,
                rgba(0, 0, 0, 0.3) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gallery-item-main:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .gallery-item-main:hover::after {
        opacity: 1;
    }

    .gallery-item-main img {
        transition: transform 0.4s ease;
    }

    .gallery-item-main:hover img {
        transform: scale(1.1);
    }

    /* ボタン - プレミアムスタイル */
    .btn {
        padding: 14px 32px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 50px;
        letter-spacing: 0.05em;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 16px rgba(139, 111, 71, 0.25);
        position: relative;
        overflow: hidden;
    }

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.2) 0%,
                rgba(255, 255, 255, 0) 100%);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .btn:hover::before {
        transform: translateX(0);
    }

    .btn-primary {
        background: linear-gradient(135deg,
                var(--color-primary) 0%,
                var(--color-accent) 100%);
    }

    .btn-primary:hover {
        box-shadow: 0 6px 24px rgba(139, 111, 71, 0.4);
        transform: translateY(-2px);
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(139, 111, 71, 0.3);
    }

    .btn-outline {
        background: transparent;
        border: 2px solid var(--color-primary);
        color: var(--color-primary);
    }

    .btn-outline:hover {
        background: var(--color-primary);
        color: var(--color-text-light);
        transform: translateY(-2px);
    }

    .btn-lg {
        padding: 16px 40px;
        font-size: 1.05rem;
    }

    .btn-sm {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    /* Footer - モバイル最適化 */
    .footer-social a {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(201, 169, 118, 0.1);
        border: 1px solid rgba(201, 169, 118, 0.2);
        transition: all 0.3s ease;
    }

    .footer-social a:hover {
        background: var(--color-accent);
        border-color: var(--color-accent);
        transform: translateY(-4px) scale(1.1);
        box-shadow: 0 8px 24px rgba(201, 169, 118, 0.3);
    }

    .footer-artist-name {
        font-size: 2rem;
        letter-spacing: 0.08em;
    }

    .footer-tagline {
        font-size: 1.05rem;
        opacity: 0.9;
    }

    /* コンテナ余白 - 最適化 */
    .container,
    .container-wide {
        padding: 0 var(--spacing-md);
    }

    /* Conceptテキスト */
    .concept-text p {
        font-size: 1rem;
        line-height: 1.9;
        margin-bottom: var(--spacing-md);
    }

    /* Info/SNS カラム余白 */
    .info-column,
    .sns-column {
        padding: var(--spacing-lg);
        border-radius: 12px;
    }
}

/* ========================================
   既存ページ用レスポンシブ（互換性維持）
   ======================================== */
@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: calc(var(--spacing-lg) + 60px) 0 var(--spacing-md);
    }

    .page-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: var(--spacing-sm);
    }

    .card-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   プリントスタイル
   ======================================== */
@media print {

    .header,
    .menu-toggle,
    .menu-overlay,
    .footer,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-main,
    .schedule-section-main,
    .footer-main {
        background: white;
        color: black;
    }
}