/* =========================================================
   雑誌執筆・掲載一覧 タブ切替用スタイル
   既存の newstyle.css / new.css / nomal_page.css / commmon.css
   には追記せず、本ファイル単体で完結させています。
   ========================================================= */

.zasshi-tabs {
    margin-top: 20px;
}

/* タブボタン行 */
.zasshi-tab-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 50px;
    padding: 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.zasshi-tab-btn {
    font-family: "じゅん 501", "Meiryo", sans-serif;
    font-size: 95%;
    font-weight: bold;
    line-height: 1.4;
    color: #2f5597;
    background-color: #ffffff;
    border: 2px solid #2f5597;
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    text-decoration: none;
    display: inline-block;
    transition: background-color .2s ease, color .2s ease;
    -webkit-appearance: none;
}

.zasshi-tab-btn:hover {
    background-color: #eef2f8;
}

.zasshi-tab-btn.is-active {
    background-color: #2f5597;
    color: #ffffff;
}

/* タブ中身 */
.zasshi-tab-panel {
    display: none;
}

.zasshi-tab-panel.is-active {
    display: block;
    animation: zasshiFadeIn .25s ease;
}

@keyframes zasshiFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* スマホ表示 */
@media screen and (max-width: 768px) {
    .zasshi-tab-nav {
        gap: 6px;
        margin: 20px 0 30px;
        justify-content: flex-start;
    }

    .zasshi-tab-btn {
        font-size: 82%;
        padding: 7px 12px;
    }
}
.zasshi-tab-link {
    text-decoration: none;
}