* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
    gap: 15px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 54px;
    align-items: center;
}

/* Hamburger Menu */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* バツ状態のデフォルト背景 */
.hamburger-btn.active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* バツ状態のホバー効果 */
.hamburger-btn.active:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.hamburger-btn span {
    width: 20px;
    height: 1px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn:hover span {
    background-color: #666;
}

/* ハンバーガーメニューが開いた状態 */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.3px, 4.3px);
}

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

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

/* Logo */
.logo {
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.logo:hover {
    opacity: 0.8;
}

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

/* Sign In Button */
.signin-btn {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    border: 1px solid rgba(51, 51, 51, 0.7);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    height: 36px;
    display: flex;
    align-items: center;
}

.signin-btn:hover {
    background-color: #333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Left Pane */
.left-pane {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: left 0.3s ease;
}

.left-pane.show {
    left: 0;
}

.left-pane-content {
    padding: 80px 20px 20px 20px;
    list-style: none;
    margin: 0;
}

.left-pane-content li {
    margin: 0;
}

.left-pane-link {
    display: block;
    padding: 15px 35px;
    margin: 0 -20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 16pt;
}

.left-pane-link:last-child {
    border-bottom: none;
}

.left-pane-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    margin-top: 0;
    flex: 1;
    padding: 100px 20px 0 20px;
}

/* Index page specific styles */
.main-content:has(.landing-wrapper),
.main-content.index-page {
    background-image: url('/static/img/ELST3000px.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: max(100vw, 100vh);
    background-attachment: fixed;
    padding: 60px 20px 0 20px;
}

/* Fallback for browsers that don't support WebP */
@supports not (background-image: url('/static/img/ELST3000px.webp')) {
    .main-content:has(.landing-wrapper),
    .main-content.index-page {
        background-image: url('/static/img/ELST3000px.png');
    }
}

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

/* Landing Page Styles */
.landing-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 171px);
    padding: 0;
}

.landing-wrapper .container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.landing-title {
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

.landing-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Legacy styles for compatibility */
.container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.container p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Page Styles */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Artists Page */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 0;
}

.main-content:has(.artists-grid),
.main-content.artists-page {
    padding: 90px 30px 30px 30px;
}

/* Screen width 1030px to 1259px: minimum 5 tiles */
@media (min-width: 1030px) and (max-width: 1259px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fit, minmax(calc((100vw - 60px - 120px) / 5), 1fr));
    }
}

/* Screen width 1260px and above: 5 fixed tiles with responsive padding */
@media (min-width: 1260px) {
    .main-content:has(.artists-grid),
    .main-content.artists-page {
        padding: 90px calc((100vw - 1200px) / 2) 30px calc((100vw - 1200px) / 2);
    }
    
    .artists-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}
/* Screen width 770px to 1029px: minimum 4 tiles */
@media (min-width: 770px) and (max-width: 1029px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fit, minmax(calc((100vw - 60px - 90px) / 4), 1fr));
    }
}

/* Screen width 550px to 769px: minimum 3 tiles */
@media (min-width: 550px) and (max-width: 769px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fit, minmax(calc((100vw - 60px - 60px) / 3), 1fr));
    }
}

/* Screen width below 549px: minimum 2 tiles */
@media (max-width: 549px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fit, minmax(calc((100vw - 60px - 30px) / 2), 1fr));
    }
}

.artist-tile {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    container-type: inline-size;
    max-width: 250px;
}

.artist-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.artist-image {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
}

.artist-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.artist-image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #ccc;
    border-radius: 50%;
    opacity: 0.6;
}

.artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.artist-name {
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    color: #fff;
    background-color: black;
    text-align: left;
    line-height: 1.2;
    display: flex;
    align-items: center;
    height: 25cqw;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Releases Page */
.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.release-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.release-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.release-artwork {
    background: #333;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-placeholder {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.release-info {
    padding: 25px;
    flex: 1;
}

.release-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.release-type {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.release-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.release-desc {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.release-artists {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.artist-tag {
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Articles Page */
.articles-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.article-card.featured {
    border-left: 4px solid #333;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.article-category {
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.article-date {
    color: #888;
    font-size: 0.85rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.article-excerpt {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Contact Page */
.contact-description {
    text-align: left;
    margin-bottom: 2.5rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.form-input::placeholder {
    color: #aaa;
    font-size: 16px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-submit-button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-submit-button:hover {
    background-color: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-submit-button:active {
    transform: translateY(0);
}

.alert {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validation-errors {
    margin-top: 24px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

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

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-link {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #ccc;
    transform: translateY(-2px);
}

.footer__copyright {
    font-size: 11pt;
    margin: 0;
    color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .left-pane {
        width: 250px;
        left: -250px;
    }
    
    .container h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px 15px 0 15px;
    }
    
    /* Landing page mobile adjustments */
    .landing-wrapper {
        padding: 20px;
        min-height: calc(100vh - 60px);
    }
    
    .landing-wrapper .container {
        max-width: 350px;
        padding: 40px 30px;
    }
    
    .landing-title {
        margin-bottom: 20px;
    }
    
    .landing-logo {
        max-width: 200px;
    }
    
    .landing-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Contact form mobile adjustments */
    .contact-form {
        padding: 24px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-submit-button {
        padding: 14px 28px;
    }
}