/* メインエリアの余白調整 */
.main {
    padding: 20px;
    color: #fff;
}

/* ボタンコンテナ */
.tab-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-button {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.tab-button img {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.tab-button span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 選択状態のスタイル */
.tab-button.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: #5752EC; /* 原神らしい金色のアクセント */
}

.tab-button.active span {
    color: #5752EC;
    font-weight: bold;
}

/* リスト表示エリア */
#tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 各チュートリアルブロック */
.tutorial-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
}

.tutorial-header {
    margin-bottom: 20px;
    border-left: 4px solid #5752EC;
    padding-left: 15px;
}

.tutorial-n {
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
}

.tutorial-s {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.tutorial-t-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tutorial-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;

    flex: 0 1 calc(50% - 20px); 

    max-width: 600px; 
    min-width: 300px;
}

/* モバイル対応：1列にする */
@media (max-width: 640px) {
    .tutorial-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.tutorial-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.tutorial-item p {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ece5d8;
}