@charset "UTF-8";

/* --- テーマの幅 --- */
html, body {
    width: 100% !important;
    overflow-x: hidden !important;
    background-color: #f8fafc;
}

#content,
.content,
#content-in,
.content-in,
#main,
.main,
.site-main,
.entry-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: none !important;
    background: transparent !important;
}

#sidebar,
.sidebar {
    display: none !important;
}

/* --- テーマ標準リンクのホバー色打ち消し --- */
.top-main-content a:hover:not(.button):not(.button-solid):not(.button-outline):not(.bl-action-link):not(.bl-action-link-x):not(.bl-action-link-home):not(.x-account-tab):not(.bl-group-link):not(.bl-member-link) {
    color: inherit;
}

/* --- グループカラー定義 --- */
.group-nogizaka46 {
    --theme-color: var(--nogizaka-color);
    --theme-bg-color: rgba(158, 62, 178, 0.20);
}
.group-sakurazaka46 {
    --theme-color: var(--sakurazaka-color);
    --theme-bg-color: rgba(241, 157, 181, 0.30);
}
.group-hinatazaka46 {
    --theme-color: var(--hinatazaka-color);
    --theme-bg-color: rgba(91, 190, 229, 0.30);
}
.group-keyakizaka46 {
    --theme-color: var(--keyakizaka-color);
    --theme-bg-color: rgba(160, 212, 104, 0.30);
}

/* --- 背景ランダムリボンCanvas --- */
.custom-ribbon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- 全体レイアウト --- */
.custom-top-wrap {
    position: relative;
    z-index: 1;
    max-width: clamp(1200px, 94vw, 2400px);
    margin: 0 auto;
    padding: clamp(16px, 2vw, 44px) clamp(16px, 2.5vw, 56px);
    box-sizing: border-box;
    width: 100%;
}

.top-section {
    margin-bottom: clamp(24px, 2vw, 44px);
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.top-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(12px, 1vw, 20px);
    gap: clamp(12px, 1.2vw, 24px);
}

/* --- 流体H2見出し --- */
.top-section-title-wrap {
    display: flex;
    align-items: center;
}

.top-section-title {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: clamp(6px, 0.6vw, 12px);
    border: none;
    background: none;
}

.top-section-title .title-main {
    font-size: clamp(1.25rem, 1.05rem + 0.45vw, 2.1rem);
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.top-section-title .title-sub {
    font-size: clamp(0.52rem, 0.45rem + 0.2vw, 0.88rem);
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.top-section-actions {
    display: flex;
    gap: clamp(8px, 0.6vw, 14px);
}

.top-section-actions.mobile-only {
    display: none;
    margin-top: 16px;
}

/* --- ボタン共通スタイル --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: clamp(7px, 0.4vw + 3px, 13px) clamp(14px, 0.8vw + 4px, 24px);
    border-radius: clamp(16px, 1.2vw, 26px);
    text-decoration: none !important;
    font-weight: bold;
    cursor: pointer;
    font-size: clamp(0.8rem, 0.74rem + 0.2vw, 1.08rem);
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.button-solid {
    background-color: var(--theme-color, #555) !important;
    color: #fff !important;
    border: 1.5px solid var(--theme-color, #555) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.button-solid:hover {
    background-color: #fff !important;
    color: var(--theme-color, #555) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.button-outline {
    background-color: #fff !important;
    color: var(--theme-color, #555) !important;
    border: 1.5px solid var(--theme-color, #555) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.button-outline:hover {
    background-color: var(--theme-color, #555) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* --- 2カラムレイアウト --- */
.top-two-columns {
    display: flex;
    flex-direction: row;
    gap: clamp(16px, 1.5vw, 32px);
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.top-two-columns > * {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

.top-column-news {
    order: 1;
}

.top-column-x {
    order: 2;
}

/* --- 2カラムブレイクポイント: 1024px以下で縦並び --- */
@media screen and (max-width: 1024px) {
    .top-two-columns {
        flex-direction: column;
        gap: 0;
    }

    .top-two-columns > * {
        flex: none;
        width: 100%;
    }

    .top-column-news {
        order: 1;
    }

    .top-column-x {
        order: 2;
    }
}

@media screen and (max-width: 768px) {
    .custom-top-wrap {
        padding: 12px 10px 36px;
    }
}