/* Variables */
:root {
    --color-bg: #FFFFFF;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-accent: #fce4ec; /* Soft Pink */
    --color-accent-dark: #f8c8d4;
    --color-border: #f0f0f0;
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.section-bg {
    background-color: #fafafa;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    position: relative;
}

.section-title span {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 10px;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.btn-container {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-text);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
    border-radius: 30px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-sns {
    display: flex;
    gap: 15px;
}

.nav-sns a {
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-sns a:hover {
    color: var(--color-accent-dark);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: slowZoom 20s ease-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.hero-logo {
    max-width: 400px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.hero-slogan {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--color-text);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--color-text);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    animation: scrollDrop 2s infinite;
}

@keyframes scrollDrop {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    display: block;
    background: var(--color-bg);
    padding: 30px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    border-radius: 8px;
}

.news-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.news-date {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-family: var(--font-secondary);
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.tag-live { background-color: #fce4ec; color: #d81b60; }
.tag-release { background-color: #e3f2fd; color: #1e88e5; }
.tag-info { background-color: #f5f5f5; color: #616161; }

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Profile Section */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.profile-card {
    cursor: pointer;
    group: profile;
    min-width: 0;
}

.profile-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
}

.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.profile-card:hover .profile-img-wrap img {
    transform: scale(1.08);
}

.profile-info {
    text-align: center;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    transition: var(--transition);
}

.profile-card:hover .profile-name {
    color: var(--color-accent-dark);
}

.profile-romaji {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    word-break: break-word;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 2001;
    background: var(--color-bg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    z-index: 2002;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--color-border);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-img {
    flex: 1;
    min-width: 300px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.modal-details {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-name {
    font-size: 2rem;
    margin-bottom: 5px;
}

.modal-romaji {
    font-family: var(--font-secondary);
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.detail-list {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.detail-label {
    width: 100px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.detail-value {
    flex: 1;
    font-weight: 500;
}

.modal-sns {
    display: flex;
    gap: 15px;
}

.modal-sns a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.modal-sns a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

/* Schedule Section */
.calendar-wrapper {
    position: relative;
    padding-bottom: 50%; /* 2:1 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background-color: var(--color-bg);
}

.calendar-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .calendar-wrapper {
        padding-bottom: 100%;
    }
}

/* Contact Section */
.contact-container {
    max-width: 800px;
}

.contact-desc {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-light);
}

.contact-form {
    background: var(--color-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-dark);
    background-color: var(--color-bg);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.footer-sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-sns a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-sns a:hover {
    color: var(--color-accent-dark);
}

.copyright {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .section-title { font-size: 2.5rem; }
    .hero-logo { max-width: 300px; }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-img img {
        border-radius: 20px 20px 0 0;
        max-height: 400px;
    }
    
    .modal-details {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-sns {
        display: none;
    }
    
    .hero-slogan { font-size: 1rem; }
    .section { padding: 70px 0; }
    .profile-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .profile-name { font-size: 1rem; }
    .profile-color { font-size: 0.8rem; }
    .profile-romaji { font-size: 0.6rem; letter-spacing: 0; }
}

@media (max-width: 480px) {
    .profile-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .profile-name { font-size: 0.85rem; }
    .profile-color { font-size: 0.7rem; }
    .profile-romaji { font-size: 0.55rem; letter-spacing: 0; }
    .profile-img-wrap { margin-bottom: 8px; border-radius: 8px; }
    .news-grid { grid-template-columns: 1fr; }
}

/* Guide Section */
.guide-banner {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.guide-banner img {
    width: 100%;
    height: auto;
}
.guide-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.guide-card {
    background: var(--color-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}
.step-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}
.guide-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.guide-card ul, .guide-card ol {
    margin: 15px 0;
    padding-left: 10px;
}
.guide-card li {
    margin-bottom: 5px;
}
.highlight {
    background-color: var(--color-accent);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
}
.note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 15px;
}
.guide-conclusion {
    text-align: center;
    background-color: #fafafa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 80px;
}
.guide-conclusion h3 {
    margin-bottom: 15px;
    color: var(--color-accent-dark);
}
.rules-section {
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}
.rules-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}
.rule-block {
    margin-bottom: 40px;
}
.rule-block h4 {
    font-size: 1.2rem;
    color: var(--color-accent-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 5px;
    display: inline-block;
}
.rule-block ul {
    list-style: none;
    padding-left: 0;
}
.rule-block li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}
.highlight-box {
    background: #fff0f5;
    border: 2px dashed var(--color-accent-dark);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}
.flow-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.flow-arrow {
    color: var(--color-accent-dark);
    font-weight: bold;
}
@media (max-width: 768px) {
    .rules-section { padding: 30px 20px; }
}


.guide-modal-body {
    padding: 40px;
    box-sizing: border-box;
    width: 100%;
}
@media (max-width: 768px) {
    .guide-modal-body {
        padding: 20px;
    }
    .rule-block h4 {
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
        line-height: 1.4;
    }
}

