/* 
  Theme: Idol / Pop / Cute / Premium 
  Colors: White base, Pink/Green/Yellow accents, Glassmorphism
*/

:root {
    --color-bg: #FFFFFF;
    --color-text: #444444;
    --color-text-light: #777777;

    /* Accents - Refined */
    --color-pink: #FF9EAF;
    /* Softer Pink */
    --color-pink-light: #FFEEF2;
    --color-green: #B0F2B6;
    --color-yellow: #FFF9C4;
    --color-blue-light: #E1F5FE;

    /* Primary Action */
    --color-primary: #FF4081;
    --color-primary-hover: #F50057;
    --color-accent: #FF80AB;

    /* Gradients */
    --gradient-hero: linear-gradient(120deg, #fff0f5 0%, #f0fff4 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #fffbfc 100%);
    --gradient-primary: linear-gradient(45deg, #FF4081, #FF80AB);

    /* UI Elements */
    --border-radius-xl: 30px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(255, 158, 175, 0.25);
    --shadow-float: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    font-feature-settings: "palt";
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.sp-only {
    display: none;
}

.pc-only {
    display: block;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }

    .pc-only {
        display: none;
    }

    .section {
        padding: 70px 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 64, 129, 0.5);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    font-size: 1.25rem;
    padding: 18px 60px;
    width: 100%;
    max-width: 360px;
}

/* Animations */
/* 
   FIX: Changed animation logic to avoid 'transform' conflict with H2 centering.
   Instead of translating from 20px, we use a wrapper or just margin-top trick if needed.
   But better yet, let's fix the H2 CSS so it doesn't rely on transform for centering.
*/
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.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;
}

.delay-4 {
    transition-delay: 0.4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(255, 64, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
    }
}

.hover-pulse {
    animation: pulse-soft 2s infinite;
}

/* ----------------------------------------------------
   Hero Section 
---------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 60px;
    /* Space for potential fixed header */
}

/* Abstract Background Shapes (CSS Only) */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: 1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-pink-light);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-green);
    bottom: 10%;
    right: -50px;
    opacity: 0.4;
    animation: float 10s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--color-yellow);
    top: 40%;
    left: 10%;
    opacity: 0.5;
    animation: float 7s ease-in-out infinite 2s;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.5);
    max-width: 800px;
}

.logos-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0.8;
}

.logo-item {
    font-weight: 900;
    color: #555;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--color-primary);
    background: -webkit-linear-gradient(45deg, var(--color-primary), #FF80AB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .sub {
    font-size: 1rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 16px;
    letter-spacing: 0.15em;
    -webkit-text-fill-color: var(--color-text-light);
    /* Reset gradient for sub */
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-schedule {
    background: white;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-pink-light);
}

.schedule-badge {
    background: var(--color-pink);
    color: white;
    font-size: 1.1rem;
    padding: 4px 10px;
    border-radius: 12px;
    vertical-align: middle;
    margin-right: 10px;
    font-weight: bold;
    margin-bottom:15px;
}

.schedule-text {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    display: inline-block;
    vertical-align: middle;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-container {
        padding: 40px 20px;
        width: 95%;
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* ----------------------------------------------------
   Section Common Styles
---------------------------------------------------- */
/* FIX: Text align center instead of absolute positioning to fix sliding issue */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--color-primary);
    display: block;
    /* Ensure it takes full width */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--color-yellow);
    margin: 15px auto 0;
    border-radius: 4px;
    opacity: 0.7;
}

.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.hover-bounce:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ----------------------------------------------------
   About Section
---------------------------------------------------- */
.about-section {
    background: radial-gradient(circle at top right, #FAFAFA, #FFFFFF);
}

.about-content {
    background: white;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-float);
    position: relative;
}

/* Decorative corner lines */
.about-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-top: 3px solid var(--color-pink);
    border-left: 3px solid var(--color-pink);
    border-radius: 8px 0 0 0;
}

.about-content::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid var(--color-green);
    border-right: 3px solid var(--color-green);
    border-radius: 0 0 8px 0;
}

.about-content p {
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.about-content strong {
    color: var(--color-primary);
    background: linear-gradient(transparent 70%, var(--color-yellow) 70%);
}

.about-content .note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 40px;
    margin-bottom: 0;
}

/* ----------------------------------------------------
   Schedule Section
---------------------------------------------------- */
.schedule-section {
    background-color: #F8FDFF;
    /* Very subtle blue tint */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.schedule-card .card-header {
    padding: 25px;
    text-align: center;
    color: white;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Glassy header effect */
.schedule-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.color-1 {
    background: linear-gradient(135deg, #FFB7C5, #FF80AB);
}

.color-2 {
    background: linear-gradient(135deg, #B2EBF2, #4DD0E1);
}

.color-3 {
    background: linear-gradient(135deg, #E1BEE7, #BA68C8);
}

.schedule-card .date {
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-card .time {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-top: 5px;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.schedule-card .card-body {
    padding: 35px 25px;
    text-align: center;
}

.schedule-card .group-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.schedule-card .program-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ----------------------------------------------------
   Performers Section
---------------------------------------------------- */
.performers-section {
    background: white;
}

.performer-group {
    margin-bottom: 80px;
    background: #FFF;
}

.group-heading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--color-text);
    display: inline-block;
    width: 100%;
}

.group-heading span {
    display: block;
    font-size: 1rem;
    background: var(--color-text);
    color: white;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 4px 15px;
    border-radius: 20px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.members-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .members-grid,
    .members-grid.three-col {
        grid-template-columns: 1fr !important;
    }
}

.member-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.member-img-box {
    /*width: 140px;
    height: 140px;*/
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
    background: #eee;
    overflow: hidden;
}

.member-name {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.member-profile {
    font-size: 0.9rem;
    color: var(--color-text-light);
    background: #FAFAFA;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    text-align: left;
    list-style: none;
}

.member-profile li {
    margin-bottom: 4px;
    padding-left: 14px;
    position: relative;
}

.member-profile li::before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: 900;
}

/* ----------------------------------------------------
   How to Participate Section
---------------------------------------------------- */
.howto-section {
    background: linear-gradient(to bottom, #FFFDE7, #FFF);
}

.steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.step-card {
    flex: 1;
    min-width: 0;
    /* Fix flex issue */
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border-top: 13px solid var(--color-primary);
    background: white;
    z-index: 1;
}

/* FIX: Step Number Clipping */
.step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    /* Prevent text wrapping/crushing */
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.4);
    z-index: 5;
}

.step-icon {
    font-size: 3.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.step-title {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.step-desc {
    font-size: 0.95rem;
    color: #666;
}

/* FIX: Arrow direction and centering */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    opacity: 0.6;
    padding-top: 0;
}

/* Use CSS Triangle instead of text for cleaner look */
.step-arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--color-primary);
}

@media (max-width: 768px) {
    .steps-grid {
        flex-direction: column;
        gap: 40px;
    }

    /* Rotate Arrow to point down for mobile */
    .step-arrow {
        margin: -20px auto;
        /* Pull closer */
        transform: rotate(90deg);
        z-index: 0;
    }
}

.device-icons {
    background: white;
    padding: 25px 40px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-float);
    margin: 0 auto;
    width: fit-content;
}

.device-tag {
    background: #F5F5F5;
    color: #555;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ----------------------------------------------------
   Apply Section
---------------------------------------------------- */
.apply-section {
    background: linear-gradient(120deg, #FCE4EC 0%, #F8BBD0 100%);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.apply-notes{
    margin-top:25px
}

/* Subtle pattern overlay */
.apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#FFF 15%, transparent 16%), radial-gradient(#FFF 15%, transparent 16%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.2;
}

.apply-text {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #C2185B;
    position: relative;
    font-weight: 500;
}

.apply-button-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}
.store {
    font-weight: bold;
    color: #fe3f81;
    text-decoration: underline;
}
.sns-x{
    font-size:1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}
/* ----------------------------------------------------
   Watch Section
---------------------------------------------------- */
.watch-section {
    background: #FAFAFA;
}

.watch-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.watch-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    border: 1px solid white;
}

.watch-icon-box {
    width: 80px;
    height: 80px;
    background: var(--color-blue-light);
    color: #0288D1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(79, 195, 247, 0.2);
}

.watch-card h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.watch-steps {
    text-align: left;
    background: #FFF;
    padding: 20px 20px 20px 35px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid #EEE;
}

.watch-steps li {
    margin-bottom: 8px;
}

/* ----------------------------------------------------
   Footer
---------------------------------------------------- */
.footer {
    background: #212121;
    color: #E0E0E0;
    padding: 60px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-links a {
    color: #999;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #777;
    margin-top: 20px;
    font-family: sans-serif;
    letter-spacing: 0.05em;
}