:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #585858;
    --bg-color: #f2f2f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 🎬 ローディングアニメーション */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.loading-logo {
    margin-bottom: 2rem;
    position: relative;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    animation: logoRotate 3s linear infinite;
    backdrop-filter: blur(10px);
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: logoGlow 2s linear infinite;
}

.loading-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    animation: logoFloat 2s ease-in-out infinite alternate;
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(5px);
    }
}

.loading-text {
    margin-bottom: 3rem;
    animation: textFadeIn 1.5s ease-in-out;
}

.loading-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titlePulse 2s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titlePulse {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.loading-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, var(--accent-color), #ffffff);
    border-radius: 2px;
    animation: progressLoad 2.5s ease-in-out infinite;
}

@keyframes progressLoad {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }

    50% {
        width: 100%;
        transform: translateX(0%);
    }

    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.bg-particle:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bg-particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.bg-particle:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 30%;
    left: 70%;
    animation-delay: 2s;
}

.bg-particle:nth-child(4) {
    width: 18px;
    height: 18px;
    top: 80%;
    left: 20%;
    animation-delay: 3s;
}

.bg-particle:nth-child(5) {
    width: 12px;
    height: 12px;
    top: 10%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .loading-title {
        font-size: 1.5rem;
    }

    .loading-subtitle {
        font-size: 1rem;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .loading-logo-img {
        width: 50px;
        height: 50px;
    }

    .progress-bar {
        width: 250px;
    }
}

/* ナビゲーション */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger:hover {
    color: var(--secondary-color);
}

/* サイドメニュー */
.side-menu {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.side-menu.active {
    right: 0;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.side-menu-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.side-menu-logo img {
    height: 60px;
    width: auto;
}

.side-menu-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.side-menu-item {
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.side-menu-item:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.side-menu-social {
    text-align: center;
    margin-bottom: 2rem;
}

.side-menu-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.side-menu-social a:hover {
    color: var(--secondary-color);
}

.side-menu-banner {
    text-align: center;
    margin-bottom: 2rem;
}

.side-menu-banner img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
}

.side-menu-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* ヒーローセクション - HTMLで背景画像指定可能 */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.hero-social {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-social a {
    display: block;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--bg-color);
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: var(--text-color);
    box-shadow: 2px solid var(--text-color);
}

.hero-social a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* メインコンテンツ */
.main-content {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.content-section {
    padding: 4rem 0;
    position: relative;
}

/* セクション背景の交互変更 */
.content-section:nth-child(odd) {
    background: #ffffff;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

/* セクション区切り線 */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 50%, transparent 100%);
    margin: 0;
    opacity: 0.3;
}

/* 最新情報セクション */
.news-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.news-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.news-scroll::-webkit-scrollbar {
    width: 6px;
}

.news-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-scroll::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f8f9fa;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.news-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.news-icon.game {
    background: #3498db;
}

.news-icon.music {
    background: #1abc9c;
}

.news-icon.book {
    background: #e74c3c;
}

.news-icon.youtube {
    background: #ff0000;
}

.news-icon.material {
    background: #f39c12;
}

.news-icon.info {
    background: #9b59b6;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.news-category {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-weight: 500;
}

.news-category.game {
    background: #3498db;
}

.news-category.music {
    background: #1abc9c;
}

.news-category.book {
    background: #e74c3c;
}

.news-category.youtube {
    background: #ff0000;
}

.news-category.material {
    background: #f39c12;
}

.news-category.info {
    background: #9b59b6;
}

.news-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--secondary-color);
}

.news-item:hover .news-icon {
    transform: scale(1.1);
}

/* バナーセクション */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.banner-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.banner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.banner-item:hover .banner-image {
    transform: scale(1.1);
}

.banner-content {
    padding: 1.5rem;
}

.banner-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.banner-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .banner-image {
        height: 180px;
    }

    .banner-content {
        padding: 1rem;
    }

    .banner-title {
        font-size: 1.1rem;
    }

    .banner-description {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .banner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* セクション全体のコンテナ */
.section-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.section-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* メインカードの修正 - 画像下にテキスト表示 */
.main-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    height: auto;
    /* 高さを自動調整 */
    position: relative;
    display: flex;
    flex-direction: column;
    /* 縦方向の配置 */
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
}

.main-card-image {
    width: 100%;
    min-height: 360px;
    height: auto;
    /* 固定の高さ */
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.main-card:hover .main-card-image {
    transform: scale(1.05);
}

/* メインカードのコンテンツを画像下に配置 */
.main-card-content {
    padding: 1.5rem;
    background: white;
    position: relative;
    /* overlayではなく通常配置 */
    z-index: auto;
}

.main-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.main-card-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* サブカードも同様のスタイルに統一 */
.sub-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 50%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
}

.sub-card:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sub-card-image {
    width: 100%;
    height: calc(360p);
    /* 固定の高さ */
    object-fit: cover;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    /* 画像サイズを固定 */
}

.sub-card-content {
    padding: 1rem;
    flex-grow: 1;
    /* 残りのスペースを使用 */
    display: flex;
    flex-direction: column;
}

.sub-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.sub-card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
    /* 残りのスペースを使用 */
}

/* ゲームタグやメタ情報のスタイル */
.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.game-tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-tag.difficulty {
    background: var(--accent-color);
}

.game-tag.platform {
    background: var(--primary-color);
}

.game-tag.genre {
    background: #1abc9c;
}

/* ゲームリンクボタン */
.game-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.game-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    padding: 0.6rem 1.0rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.game-button:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.game-button.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.4rem 1rem;
}

.game-button.secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* セクションボタン */
.section-button-container {
    text-align: center;
    margin-top: 2rem;
}

.section-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.section-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
    color: white;
}

.section-button i {
    margin-right: 0.5rem;
}

/* Aboutセクション */
.about-simple {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-role {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-description {
    line-height: 1.8;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 横5列ギャラリーグリッド - style.cssの最後に追加してください */

/* ギャラリーグリッド（横5列） */
.gallery-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    /* 正方形に統一 */
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ギャラリー展開機能 */
.gallery-visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.gallery-show {
    opacity: 1;
    transform: scale(1);
    height: auto;
    margin: initial;
    transition: all 0.5s ease;
}

/* ギャラリー展開ボタン */
.gallery-toggle-container {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.gallery-toggle-container .section-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transition: all 0.3s ease;
    min-width: 200px;
}

.gallery-toggle-container .section-button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px) scale(1.05);
}

.gallery-toggle-container .section-button i {
    transition: transform 0.3s ease;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .gallery-grid-5 {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 992px) {
    .gallery-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .gallery-overlay i {
        font-size: 1.5rem;
    }

    .gallery-toggle-container .section-button {
        min-width: 150px;
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid-5 {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .gallery-toggle-container .section-button {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }
}

/* Lightbox2カスタマイズ */
.lb-outerContainer {
    border-radius: 10px;
    overflow: hidden;
}

.lb-container {
    border-radius: 10px;
}

.lb-image {
    border-radius: 10px;
}

.lb-caption {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* ギャラリー項目のアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item.gallery-visible {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* アニメーション遅延（順番に表示） */
.gallery-item.gallery-visible:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item.gallery-visible:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item.gallery-visible:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item.gallery-visible:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item.gallery-visible:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item.gallery-visible:nth-child(6) {
    animation-delay: 0.15s;
}

.gallery-item.gallery-visible:nth-child(7) {
    animation-delay: 0.25s;
}

.gallery-item.gallery-visible:nth-child(8) {
    animation-delay: 0.35s;
}

.gallery-item.gallery-visible:nth-child(9) {
    animation-delay: 0.45s;
}

.gallery-item.gallery-visible:nth-child(10) {
    animation-delay: 0.55s;
}

/* アート専用スタイル */
.art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.art-tag {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.art-tag.style {
    background: #9b59b6;
}

.art-tag.medium {
    background: #f39c12;
}

.art-tag.theme {
    background: #2ecc71;
}

/* ギャラリーセクションの背景 */
.content-section:has(.gallery-grid-5) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0;
}

/* プリロード効果 */
.gallery-image {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* フォーカス対応（アクセシビリティ） */
.gallery-item a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 10px;
}

/* ギャラリー項目のアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* アニメーション遅延（順番に表示） */
.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

.gallery-item:nth-child(7) {
    animation-delay: 0.7s;
}

.gallery-item:nth-child(8) {
    animation-delay: 0.8s;
}

.gallery-item:nth-child(9) {
    animation-delay: 0.9s;
}

.gallery-item:nth-child(10) {
    animation-delay: 1.0s;
}

.gallery-item:nth-child(n+11) {
    animation-delay: 1.1s;
}

/* セクションタイトルのアート専用スタイル */
.content-section .section-title {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #e74c3c);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 素材ページ専用スタイル */
.license-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.license-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.license-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.license-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.license-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.license-card li:last-child {
    border-bottom: none;
}

.license-card li:before {
    content: "• ";
    color: var(--secondary-color);
    font-weight: bold;
}

/* 🌟 フッター - 大幅改善！ */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-title i {
    color: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ✨ 改善されたフッターリンク - ブロック統一 + アニメーション */
.footer-link {
    color: #bbb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* 💫 閃光アニメーション */
.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

/* 🎯 ホバーエフェクト */
.footer-link:hover {
    color: white;
    background: rgba(52, 152, 219, 0.2);
    border-color: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.footer-link:hover::before {
    left: 100%;
}

.footer-link i {
    font-size: 1.1rem;
    width: 20px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-link:hover i {
    transform: scale(1.2);
    color: white;
}

.footer-link span {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 📞 コンタクト情報 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #bbb;
    padding: 0.5rem 0;
    line-height: 1.6;
}

.contact-text i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
}

/* ソーシャルメディア */
.footer-social {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #444;
    margin-top: 2rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        margin: auto 40px;
    }

    .side-menu {
        width: 70%;
        right: -100%;
    }

    .side-menu-items {
        grid-template-columns: 1fr 1fr;
    }

    .hero-social {
        right: 1rem;
        bottom: 1rem;
    }

    .hero-social a {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .main-card-image {
        height: 200px;
    }

    .main-card-content {
        padding: 1rem;
    }

    .main-card-title {
        font-size: 1.3rem;
    }

    .sub-card-image {
        height: 200px;
    }

    .sub-card-content {
        padding: 0.8rem;
    }

    .sub-card-title {
        font-size: 0.9rem;
    }

    .sub-card-description {
        font-size: 0.8rem;
    }

    .game-links {
        flex-direction: column;
    }

    .game-button {
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .section-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* モバイル時のニュースアイテム調整 */
    .news-item {
        padding: 1rem 0;
        gap: 0.8rem;
    }

    .news-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-title {
        font-size: 0.9rem;
    }

    .news-scroll {
        max-height: 350px;
    }

    /* 📱 モバイル用フッターレイアウト */
    .footer-links {
        gap: 0.3rem;
    }

    .footer-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .contact-info {
        gap: 0.5rem;
    }

    .contact-text {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
}