/* About Us Page Frontend Styles */

.about-us-page {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
}

/* ヘッダー */
.about-us-header {
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.header-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* メインコンテナ */
.about-us-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* セクション共通スタイル */
.about-us-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.about-us-section:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.section-image, .welcome-image, .terms-image {
    text-align: center;
    margin-bottom: 2rem;
}

.section-image img, .welcome-image img, .terms-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.welcome-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* 注意セクション */
.notice-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border-left: 5px solid #ff9800;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.notice-box h3 {
    color: #d68000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-box h3::before {
    content: "⚠️";
    font-size: 1.5rem;
}

/* 利用規約セクション */
.terms-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.terms-box h3 {
    color: #1565c0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-box h3::before {
    content: "📋";
    font-size: 1.5rem;
}

.terms-list {
    list-style: none;
    padding-left: 0;
}

.terms-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.terms-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2196f3;
    font-weight: bold;
    font-size: 1.2rem;
}

/* キャラクター */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.character-card {
    background: linear-gradient(135deg, #ffeef8 0%, #fff 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.character-card:hover::before {
    left: 100%;
}

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

.character-image-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ff6b9d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.character-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.character-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ff6b9d;
}

.character-name-romaji {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.character-description {
    text-align: left;
    line-height: 1.8;
}

/* お知らせセクション */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ff6b9d;
}

.news-card-text {
    color: #666;
    line-height: 1.6;
}

/* 最新投稿セクション */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-title {
    padding: 1rem;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
}

.no-posts {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 1.1rem;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover {
    background: #ff6b9d;
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: #ff6b9d;
    color: white;
}

/* フッター */
.about-us-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* モバイルで余白を最小化 */
    body {
        margin: 0;
        padding: 0;
    }
    
    .about-us-page {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .header-content {
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1rem;
        flex: 1;
    }
    
    /* ハンバーガーメニューボタン */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 10px;
        transition: all 0.3s;
    }
    
    /* メニューが開いた時のアニメーション */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* ナビゲーションをモバイル用に */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .header-nav a {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* オーバーレイ */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }

    /* コンテナの余白を削減 */
    .about-us-container {
        padding: 1rem 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .about-us-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .character-image-container {
        width: 200px;
        height: 200px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .news-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* PC版ではハンバーガーメニューを非表示 */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ライトボックス用（簡易実装） */
.lightbox-trigger {
    cursor: pointer;
}
