/* ===== RESET & BASE STYLES ===== */
:root {
    --primary: #ff3366;
    --secondary: #6a11cb;
    --accent: #41E0FD;
    --dark: #121212;
    --light: #f8f9fa;
    --text: #333;
    --card-bg: rgba(255, 255, 255, 0.9);
    --gradient: linear-gradient(135deg, #6a11cb 0%, #ff3366 100%);
}

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

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
    border: none; /* 画像の境界線を削除 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

section {
    padding: 120px 20px;
}

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

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

.section-title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--gradient);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.4s ease;
}

header.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1010; /* メニューより前面に表示 */
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

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

/* オーバーレイ（メニュー表示時の背景） */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    background: var(--dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 1;
    position: relative;
}

.cursor {
    display: inline-block;
    animation: cursor-blink 0.8s infinite;
    color: white;
    font-weight: 300;
    position: relative;
    margin-left: 2px;
}

.hero-title.typing-done .cursor {
    display: none;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
    margin-top: 20px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(65, 224, 253, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards 1.1s;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(65, 224, 253, 0.4);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    position: relative;
    border: none;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

/* 特定の見出し用のクラス */
.main-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* ===== IDOL GROUPS SECTION ===== */
.idol-groups {
    background-color: var(--light);
    position: relative;
}

.idol-groups::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.05;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.group-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.group-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* 画像の上部を表示 */
    transition: transform 0.6s ease;
}

.group-card:hover .group-image img {
    transform: scale(1.1);
}

.group-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.group-info {
    padding: 25px;
    position: relative;
}

.group-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.group-desc {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-more:hover {
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.btn-group {
    display: flex;
    gap: 10px;
}

.btn-social {
    padding: 8px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BUSINESS SECTION ===== */
.business {
    background-color: white;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.business-card {
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.business-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* 画像の上部を表示 */
    transition: transform 0.6s ease;
}

.business-card:hover .business-image img {
    transform: scale(1.1);
}

.business-info {
    padding: 25px;
}

.business-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.business-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('images/contact-bg.jpg');
    background-size: cover;
    opacity: 0.1;
}

.contact-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: var(--accent);
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-box {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mail-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
    border-radius: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.mail-btn:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 280px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-desc {
    margin-bottom: 20px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-nav {
    flex: 1;
    min-width: 180px;
}

.footer-nav h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image img {
        width: 70%;
        margin: 0 auto;
        display: block;
        border: none;
    }
    
    .business-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 20px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-text h3 {
        font-size: 2rem;
    }
    
    .groups-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .contact-box {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .hero-btn {
        padding: 12px 30px;
    }
    
    /* 特定の見出しだけをヒーロータイトルと同じサイズに */
    .main-subtitle {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }
    
    .group-image, .business-image {
        height: 200px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
}