/* ヒーローセクション */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* 仮背景画像 */
    background: url('images/top.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* グリッドレイアウト（TOP用） */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* カード内要素 */
.card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    border-bottom: 2px solid #000;
}

/* Tierリスト */
.tier-row {
    display: flex;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-items: stretch;
}

.tier-label {
    width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.tier-label span {
    font-size: 0.8rem;
    font-weight: 400;
}

/* 各ランクの色指定 */
.s-rank { background: var(--s-rank-color); }
.a-rank { background: var(--a-rank-color); }
.b-rank { background: var(--b-rank-color); }
.c-rank { background: var(--c-rank-color); }
.d-rank { background: var(--d-rank-color); }

.tier-chars {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    gap: 15px;
    align-items: center;
}

.char-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    position: relative;
    cursor: pointer;
}

.char-card:hover .char-img-box {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.char-img-box {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    margin-bottom: 8px;
    transition: 0.3s;
}

.char-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.char-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

/* データアクセスカード */
.data-card {
    display: block;
    background: #fff;
    padding: 30px;
    text-align: center;
    border: 2px solid #000;
    border-radius: 12px;
    transition: 0.3s;
}

.data-card .icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.data-card:hover {
    background: #000;
    color: #fff;
}
.data-card:hover h4 {
    color: #fff;
}

/* 攻略記事リスト */
.article-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.article-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background-color: #fafafa;
    padding-left: 40px;
}

.article-item .date {
    color: #888;
    font-size: 0.9rem;
    margin-right: 20px;
    font-family: monospace;
}

.article-item .title {
    font-weight: 700;
    flex-grow: 1;
}

.article-item .arrow {
    font-weight: 900;
}

/* モバイル対応（TOP） */
@media (max-width: 768px) {
    .hero-content h2 { font-size: 2rem; }
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .tier-row { flex-direction: column; }
    .tier-label { width: 100%; padding: 10px 0; font-size: 1.5rem; }
    .article-item { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* =========================================================
   ★追加プロモーションセクション (FIBALI, コミュニティ, YouTube)用
   ========================================================= */

.promo-hero {
    position: relative;
    padding: 100px 40px;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.promo-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: background 0.3s ease;
}

.promo-hero:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.promo-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.promo-hero.text-center .promo-hero-inner,
.promo-hero-inner.text-center {
    justify-content: center;
    text-align: center;
}

.promo-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.promo-title span {
    font-size: 1.8rem;
    opacity: 0.95;
    display: block;
    margin-top: 10px;
}

.promo-btn {
    display: inline-block;
    background: #fff;
    color: #111;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.promo-hero:hover .promo-btn {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.promo-img {
    flex: 1;
    max-width: 450px;
    text-align: center;
}

.promo-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
    transition: transform 0.5s ease;
}

.promo-hero:hover .promo-img img {
    transform: scale(1.08) rotate(2deg);
}

/* 各セクションの背景グラデーション */
.fibali-hero {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.commu-hero {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
}

.youtube-hero {
    background: linear-gradient(135deg, #cb2d3e, #ef473a);
}

/* プロモーションセクション用のレスポンシブ対応 */
@media (max-width: 768px) {
    .promo-hero {
        padding: 80px 20px;
        min-height: auto;
    }
    .promo-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .promo-title {
        font-size: 2rem;
    }
    .promo-title span {
        font-size: 1.3rem;
    }
    .promo-img {
        max-width: 250px;
    }
    .promo-btn {
        font-size: 1.1rem;
        padding: 15px 40px;
    }
}

/* ★アイコンのスタイル（トップページの追加セクション用） */
.promo-btn {
    display: inline-flex; /* 横並びにする */
    align-items: center; /* 垂直方向中央 */
    gap: 10px; /* アイコンとテキストの間隔 */
}

.promo-icon {
    width: 24px; /* アイコンの幅 */
    height: 24px; /* アイコンの高さ */
    object-fit: contain; /* サイズ調整 */
}

/* スマホ対応（アイコンを少し小さく） */
@media (max-width: 768px) {
    .promo-icon {
        width: 20px;
        height: 20px;
    }
}