/*
 * Theme Name: Kuwae Elegant
 * Theme URI: https://kuwae.cc
 * Author: Kuwae
 * Author URI: https://kuwae.cc
 * Description: Elegant WordPress theme for Kuwae artist website
 * Version: 1.0.0
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: kuwae-elegant
 * Domain Path: /languages
 * Tags: elegant, responsive, minimal, music, artist
 */

/* =====================================
   ELEGANT DESIGN CSS - すべてのセクション
   ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* Base Tailwind - handled by CDN */
:root {
    --color-primary: #e0b329;
    --color-sakura: #fce7f3;
    --color-bg-light: #fefcf9;
    --color-bg-dark: #211d11;
    --color-rose: #d4889a;
    --color-rose-dark: #a85574;
}

/* ----------------------------------------
   1. HEADER / NAVIGATION - エレガント化
   ---------------------------------------- */

/* Site Header - Fixed position for auto-hide functionality */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    transform: translateY(0) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    background: linear-gradient(135deg, #d4889a 0%, #b86b82 50%, #a85574 100%) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Site Navigation */
.site-navigation {
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 40px !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

nav, .menu, [role="navigation"], .wp-block-navigation {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 0 !important;
}

nav a, .menu a, nav li a, .wp-block-navigation a, a[role="menuitem"] {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    letter-spacing: 0.08em !important;
    text-transform: none !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    padding: 12px 20px !important;
    display: inline-block !important;
    border-radius: 4px !important;
}

nav a:hover, .menu a:hover, nav li a:hover, .wp-block-navigation a:hover, a[role="menuitem"]:hover {
    background-color: rgba(0, 0, 0, 0.12) !important;
    color: #fffacd !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.2) !important;
    border-bottom: 2px solid #ffd700 !important;
    transform: translateY(-2px) !important;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3) !important;
}

/* ----------------------------------------
   2. HERO SECTION - エレガント化
   ---------------------------------------- */

/* Hero Section - Only outer container */
.kuwae-hero, .hero-section {
    /* Background handled by inline styles in index.php */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    padding: 80px 40px !important;
    border-bottom: 1px solid rgba(212, 136, 154, 0.15) !important;
}

.kuwae-hero h1, .kuwae-hero h2, .hero-section h1, .hero-section h2 {
    font-size: 48px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    color: #2c1810 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 20px !important;
}

.kuwae-hero p, .hero-section p {
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    color: #54453a !important;
    line-height: 1.6 !important;
    max-width: 600px !important;
}

/* ----------------------------------------
   3. NEWS TICKER - エレガント化
   ---------------------------------------- */

.kuwae-news-ticker, .news-section {
    padding: 40px !important;
    background: linear-gradient(180deg, #faf8f3 0%, #f5f1e8 100%) !important;
}

.kuwae-news-ticker .news-item, .news-section .news-item, [class*="news"] li {
    background: #ffffff !important;
    border-left: 4px solid #d4889a !important;
    box-shadow: 0 4px 16px rgba(212, 136, 154, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    border-radius: 8px !important;
    padding: 24px !important;
    margin-bottom: 16px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    backdrop-filter: blur(4px) !important;
}

.kuwae-news-ticker .news-item:hover, .news-section .news-item:hover, [class*="news"] li:hover {
    box-shadow: 0 12px 32px rgba(212, 136, 154, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-4px) !important;
    border-left-color: #a85574 !important;
}

.kuwae-news-ticker .news-title, .news-section .news-title, [class*="news"] .title {
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: #2c1810 !important;
    margin-bottom: 8px !important;
}

.kuwae-news-ticker .news-date, .news-section .news-date, [class*="news"] .date {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #b86b82 !important;
    letter-spacing: 0.08em !important;
}

/* ----------------------------------------
   4. MOVIE GALLERY - エレガント化
   ---------------------------------------- */

.kuwae-movie-section, .gallery-section {
    padding: 60px 40px !important;
    background: linear-gradient(180deg, #f5f1e8 0%, #faf8f3 100%) !important;
    border-top: 1px solid rgba(212, 136, 154, 0.15) !important;
}

.kuwae-movie-section h3, .gallery-section h3, [class*="gallery"] h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #2c1810 !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

.kuwae-movie-grid, .gallery-grid, [class*="gallery"] ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 32px !important;
}

.kuwae-movie-item, .gallery-item, [class*="gallery"] li {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    border: 1px solid rgba(212, 136, 154, 0.1) !important;
}

.kuwae-movie-item:hover, .gallery-item:hover, [class*="gallery"] li:hover {
    box-shadow: 0 16px 48px rgba(212, 136, 154, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-8px) scale(1.02) !important;
    border-color: #d4889a !important;
}

.kuwae-movie-item img, .gallery-item img, [class*="gallery"] li img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.kuwae-movie-item:hover img, .gallery-item:hover img, [class*="gallery"] li:hover img {
    transform: scale(1.05) !important;
}

.kuwae-movie-info, .gallery-info, [class*="gallery"] .info {
    padding: 20px !important;
}

.kuwae-movie-title, .gallery-title, [class*="gallery"] .title {
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: #2c1810 !important;
    margin-bottom: 8px !important;
}

/* ----------------------------------------
   5. LIVE SCHEDULE - エレガント化
   ---------------------------------------- */

.kuwae-live-section, .schedule-section {
    padding: 60px 40px !important;
    background: #ffffff !important;
}

.kuwae-live-section h3, .schedule-section h3, [class*="schedule"] h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #2c1810 !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

.kuwae-live-table, .schedule-table, [class*="schedule"] table {
    width: 100% !important;
    border-collapse: collapse !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.kuwae-live-table th, .schedule-table th, [class*="schedule"] table th {
    background: linear-gradient(135deg, #d4889a 0%, #b86b82 100%) !important;
    color: #ffffff !important;
    padding: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    font-size: 13px !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

.kuwae-live-table td, .schedule-table td, [class*="schedule"] table td {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(212, 136, 154, 0.15) !important;
    color: #54453a !important;
    font-size: 14px !important;
}

.kuwae-live-table tr:hover, .schedule-table tr:hover, [class*="schedule"] table tr:hover {
    background-color: rgba(212, 136, 154, 0.05) !important;
    transition: background-color 0.3s ease !important;
}

.kuwae-live-table tr:last-child td, .schedule-table tr:last-child td, [class*="schedule"] table tr:last-child td {
    border-bottom: none !important;
}

/* ----------------------------------------
   6. FOOTER - エレガント化
   ---------------------------------------- */

footer, .site-footer {
    background: linear-gradient(135deg, #2c1810 0%, #54453a 100%) !important;
    color: #e8dcc8 !important;
    padding: 60px 40px 40px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(212, 136, 154, 0.2) !important;
    margin: 0 !important;
    width: 100% !important;
}

footer h4, .site-footer h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
}

footer p, footer a, .site-footer p, .site-footer a {
    font-size: 14px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.8 !important;
    color: #d4a594 !important;
    transition: color 0.3s ease !important;
}

footer a:hover, .site-footer a:hover {
    color: #ffd700 !important;
    text-decoration: underline !important;
}

footer .footer-bottom, .site-footer .footer-bottom {
    border-top: 1px solid rgba(212, 136, 154, 0.15) !important;
    padding-top: 30px !important;
    margin-top: 40px !important;
    text-align: center !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    color: #998872 !important;
}

/* ----------------------------------------
   7. GLOBAL ADJUSTMENTS
   ---------------------------------------- */

* {
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif !important;
    letter-spacing: 0.01em !important;
    line-height: 1.6 !important;
    color: #54453a !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable !important;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em !important;
    font-weight: 700 !important;
}

button, .button, [role="button"] {
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(212, 136, 154, 0.15) !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
}

button:hover, .button:hover, [role="button"]:hover {
    box-shadow: 0 8px 24px rgba(212, 136, 154, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* ----------------------------------------
   8. CONTAINER & WIDTH ADJUSTMENTS
   ページ全体をフル幅に調整
   ---------------------------------------- */

.site-inner, .content-wrapper, .wp-container, [class*="container"], main {
    margin: 0 !important;
}

.site-inner, .content-wrapper, .wp-container, [class*="container"], body {
    width: 100% !important;
    max-width: none !important;
}

.site-inner, .content-wrapper, main {
    padding: 0 !important;
}

/* Ensure all sections are full width */
main, .wp-block-group, .wp-container, section {
    max-width: none !important;
    width: 100% !important;
}

/* Override max-width on inner containers */
.kuwae-hero-inner,
section > div,
[style*="max-width: 1200px"] {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Full width for News section and other similar containers */
.kuwae-hero > div,
section > div > div {
    max-width: none !important;
    width: 100% !important;
}

/* Adjust main site wrapper for fixed header */
.site {
    width: 100% !important;
    padding-top: 0 !important;
    margin: 0 !important;
}

/* Add padding to main content to account for fixed header */
main, .site-main {
    padding-top: 160px !important;
}

/* ----------------------------------------
   9. FOOTER NAV LINK OVERRIDE
   フッターのナビリンクをシンプルに
   ---------------------------------------- */

footer nav a,
footer nav li a,
.site-footer nav a,
.site-footer nav li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
    color: #d4a594 !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    background: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: color 0.2s ease !important;
    letter-spacing: 0.02em !important;
    font-weight: 400 !important;
}

footer nav a:hover,
footer nav li a:hover,
.site-footer nav a:hover,
.site-footer nav li a:hover {
    color: #ffd700 !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
    border-bottom: none !important;
    text-shadow: none !important;
}

footer nav ul,
footer nav li,
.site-footer nav ul,
.site-footer nav li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ----------------------------------------
   10. RESPONSIVE - スマホ・タブレット対応
   ---------------------------------------- */

/* タブレット（768px〜1024px） */
@media (max-width: 1024px) {
    .kuwae-hero-inner,
    section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }

    .footer-col-3 {
        grid-column: 1 / -1;
    }
}

/* スマートフォン（〜767px） */
@media (max-width: 767px) {

    /* ヘッダー */
    .site-header {
        position: fixed !important;
    }

    /* ヘッダーのロゴ部分 */
    .site-header > div:first-child {
        padding: 12px 16px !important;
    }

    .site-header h1 {
        font-size: 20px !important;
    }

    /* ナビゲーション - スマホでは小さく */
    .site-navigation {
        padding: 0 8px !important;
        overflow-x: auto !important;
    }

    .site-navigation > div {
        padding: 0 8px !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        min-width: max-content !important;
    }

    .site-navigation a {
        padding: 10px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    /* メインコンテンツのpadding-top調整 */
    main, .site-main {
        padding-top: 120px !important;
    }

    /* ヒーローセクション */
    .kuwae-hero {
        padding: 30px 16px !important;
    }

    .kuwae-hero-inner,
    .kuwae-hero > div > div[style*="grid"] {
        display: block !important;
    }

    .kuwae-hero h1 {
        font-size: 36px !important;
    }

    /* 各セクションのpadding調整 */
    section[style*="padding: 60px 40px"],
    section[style*="padding: 50px 40px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    div[style*="padding: 60px 40px"],
    div[style*="padding: 20px 40px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* ライブスケジュール - モバイルで縦積み */
    div[style*="grid-template-columns: 120px 1fr 150px"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* ニュースページ */
    .kuwae-news-header {
        padding: 30px 16px 24px !important;
    }

    .kuwae-news-header h1 {
        font-size: 36px !important;
    }

    .kuwae-news-filter > div {
        padding: 0 16px !important;
    }

    /* ニュースカード */
    .kuwae-news-card > div {
        padding: 16px !important;
    }

    /* フッター */
    .site-footer {
        padding: 40px 16px 30px !important;
    }

    .footer-container {
        padding: 0 !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* 言語セレクター - スマホでは小さく */
    div[style*="position: fixed; top: 20px; right: 20px"] {
        top: 10px !important;
        right: 10px !important;
        gap: 5px !important;
    }

    div[style*="position: fixed; top: 20px; right: 20px"] a {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }

    /* Movie Gallery - 1カラム */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* ヒーローボタン群 */
    div[style*="display: flex; gap: 18px"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Signature Song セクション */
    section > div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }

    section > div[style*="grid-template-columns: 1fr 1fr"] h3 {
        font-size: 24px !important;
    }
}

/* 超小型スマホ（〜375px） */
@media (max-width: 375px) {
    .site-navigation a {
        padding: 8px 8px !important;
        font-size: 11px !important;
    }

    .kuwae-hero h1,
    section h1[style*="font-size: 56px"] {
        font-size: 30px !important;
    }
}
