/* -----------------------------------------------------------------------------
 * トップページ（中央カラム）のモダン化スタイル。
 * サイト共通のカード調（cards.css / member_hero.css）とトーンを合わせる。
 * 対象はトップの中央カラムのみ（ナビ・サイド・広告位置には影響しない）。
 * --------------------------------------------------------------------------- */

/* ---- 配色ポリシー ----
   ベースは白＋グレー。アクセントは推し（倉野尾成美）カラーの赤(#ff0000)と緑(#1fa67a)
   ＝ヘッダーの上下ライン（額縁）と同じ2色に限定。ピンクは特設バナー専用の一点豪華。
   グラデ・影は多用せず、装飾はホバー時のみ。 */

/* サイト紹介（ヒーロー）。フラットな淡地＋左にAKBピンク一色の縦棒。
   縦棒は border-left だと角丸で端が曲がるため、背景レイヤーの直線ストリップで描く */
#main .home-hero {
    background:
        linear-gradient(180deg, #FF7FB8, #FF7FB8) left top / 4px 100% no-repeat,
        linear-gradient(135deg, #fbfdfe, #f2f6f9);
    border: 1px solid #e3e7ec;
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 10px 0 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
#main .home-hero p {
    margin: 0;
    line-height: 1.9;
    color: #1f2937;
    font-weight: 500;
}

/* 注目リンク（新譜特設ページ等）。ピンクグラデの全面バナー＋白文字。
   ホバーで光沢の帯が左から右へ走る */
#main a.home-feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(120deg, #ee6ea6 0%, #e0568f 45%, #cc4586 100%);
    border-radius: 14px;
    padding: 13px 18px;
    margin: 0 0 6px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(224, 86, 143, .32);
    transition: box-shadow .2s, transform .2s;
}
#main a.home-feature::after {
    /* 光沢の帯（ホバーで左→右へスイープ） */
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -70%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
    pointer-events: none;
}
#main a.home-feature:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(224, 86, 143, .45);
}
#main a.home-feature:hover::after { left: 125%; }
#main .home-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    flex-shrink: 0;
    font-size: 1.5em;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
}
#main .home-feature-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#main .home-feature-badge {
    align-self: flex-start;
    font-size: .62em;
    font-weight: 700;
    letter-spacing: .14em;
    color: #fff;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    padding: 1px 9px;
}
#main .home-feature-title { font-weight: 700; color: #fff; line-height: 1.4; text-shadow: 0 1px 2px rgba(140, 30, 80, .25); }
#main .home-feature-sub { font-size: .78em; color: rgba(255, 255, 255, .88); }
#main .home-feature-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    margin-left: auto;
    flex-shrink: 0;
    color: #e0568f;
    font-weight: 700;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(140, 30, 80, .3);
    transition: transform .2s;
}
#main a.home-feature:hover .home-feature-arrow { transform: translateX(3px); }

/* 最新ブログカード：フラットな白＋細枠。影はホバー時のみ */
#main a.home-blog-card {
    display: block;
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 12px;
    padding: 10px 16px;
    margin: 2px 0;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: box-shadow .15s, border-color .15s, transform .15s;
}
#main a.home-blog-card:hover {
    transform: translateY(-1px);
    border-color: #1fa67a;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}
#main .home-blog-title { display: block; font-weight: 700; margin: 2px 0 4px; line-height: 1.4; }
#main .home-blog-desc { display: block; font-size: .82em; color: #666; line-height: 1.6; }
#main .home-blog-date { display: block; font-size: .78em; color: #999; margin-top: 6px; }
#main .home-more { text-align: right; margin: 4px 2px 4px; }
#main .home-more a {
    font-size: .82em;
    color: #17835f;   /* アクセント緑(#1fa67a)の文字用ダークトーン */
    font-weight: 600;
    text-decoration: none;
}
#main .home-more a:hover { text-decoration: underline; }

/* TOPICS：カテゴリ小見出しはチップ（水色地に白文字。ピンク＝線/バナーと役割を分ける） */
#main h3.topic-cat {
    display: inline-flex;
    align-items: center;
    margin: 16px 2px 7px;
    padding: 3px 14px;
    font-size: .78em;
    font-weight: 700;
    color: #fff;
    background: #5fb4df;
    border-radius: 999px;
    letter-spacing: .08em;
}

/* TOPICS：フラットな白カードのグリッド。影なし・ホバーで緑の枠 */
#main .topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
#main a.topic-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 10px;
    padding: 9px 12px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: .92em;
    line-height: 1.4;
    overflow-wrap: break-word;   /* 切れ目のない英数字列でもはみ出さない予防線 */
    min-width: 0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: box-shadow .15s, border-color .15s, transform .15s;
}
/* 右端のシェブロン（絵文字の代わりの上品なディテール。ホバーで緑になり右へ動く） */
#main a.topic-card::after {
    content: "›";
    margin-left: auto;
    padding-left: 8px;
    color: #c3ccd6;
    font-weight: 700;
    transition: color .15s, transform .15s;
}
#main a.topic-card:hover::after {
    color: #1fa67a;
    transform: translateX(2px);
}
#main a.topic-card:hover {
    border-color: #1fa67a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

/* BOOKMARK / ABOUT：チップ（ピル型リンク） */
#main .bm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
#main a.bm-chip {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 999px;
    padding: 7px 15px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: .9em;
    overflow-wrap: break-word;   /* 同上の予防線 */
    min-width: 0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: box-shadow .15s, border-color .15s, transform .15s;
}
#main a.bm-chip:hover {
    border-color: #1fa67a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

/* セクション見出し：トップのみグラデ帯をやめ、太字＋AKBピンクのアンダーラインに。
   色はAKB48公式ショップのヘッダー背景色(#FF7FB8)。長めに伸ばして右へ徐々にフェードアウト。
   上に大きめの余白を取りセクション区切りも明確にする（home.cssはトップ専用・他ページ不変） */
#main h2.item {
    position: relative;
    margin-top: 32px;
    margin-bottom: 10px;
    padding: 0 0 9px 2px;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 1.22em;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: .02em;
}
#main h2.item::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: 0;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        #FF7FB8 0%,
        rgba(255, 127, 184, .55) 40%,
        rgba(255, 127, 184, .18) 65%,
        rgba(255, 127, 184, 0) 85%);
}

/* スマホ：余白を少し詰め、TOPICSは2列固定で並びを安定させる */
@media (max-width: 600px) {
    #main .home-hero { padding: 12px 14px; }
    #main .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #main a.topic-card { font-size: .85em; padding: 8px 9px; }
    /* 特設バナー：タイトルが標準的なスマホ幅(375px〜)で1行に収まるよう圧縮 */
    #main a.home-feature { gap: 10px; padding: 11px 14px; }
    #main .home-feature-icon { width: 38px; height: 38px; font-size: 1.25em; }
    #main .home-feature-title { font-size: .88em; }
    #main .home-feature-sub { font-size: .72em; }
    #main .home-feature-badge { font-size: .58em; }
    #main .home-feature-arrow { width: 28px; height: 28px; }
}
