/* ===================================================
   おおみやチャンネル - index2.html 専用スタイル
   =================================================== */

:root {
    --main-color: #00c8c8;
    --main-hover: #00ffff;
    --main-glow: rgba(0, 200, 200, 0.25);
    --dark-bg: #0f1115;
    --dark-surface: #171b22;
    --dark-card: rgba(28, 33, 43, 0.7);
    --dark-border: rgba(255, 255, 255, 0.08);
    --dark-border-hover: rgba(0, 200, 200, 0.5);
    --dark-text: #e6edf3;
    --dark-sub-text: #8b949e;
    --warning-yellow: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 背景のネオングロー装飾 */
.bg-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 200, 200, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    top: 5%;
    left: 10%;
}

.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: 40%;
    right: 5%;
}

/* ==========================================
   全体レイアウト（3カラム：左右広告＋中央メイン）
   ========================================== */
.layout-wrapper {
    display: flex;
    justify-content: center;
    max-width: 1560px;
    margin: 0 auto;
    padding: 20px 15px;
    gap: 30px;
    position: relative;
}

/* 左右の広告枠 */
.side-ad-area {
    width: 160px;
    min-width: 160px;
    display: block;
}

.ad-sticky-box {
    position: sticky;
    top: 80px;
    /* ヘッダー下で固定追従 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--dark-sub-text);
    letter-spacing: 0.05em;
    text-align: center;
}

.ad-container {
    width: 160px;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
}

.ad-container ins.adsbygoogle {
    width: 160px !important;
    min-width: 160px !important;
}

/* 画面幅が狭い場合は左右広告を非表示 */
@media (max-width: 1260px) {
    .side-ad-area {
        display: none !important;
    }

    .layout-wrapper {
        padding: 20px;
    }
}

/* 中央メインコンテンツ */
.main-container {
    flex: 1;
    max-width: 960px;
    width: 100%;
}

/* ==========================================
   各セクション共通
   ========================================== */
section {
    margin-bottom: 55px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title::before,
.section-title::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--main-color));
}

.section-title::after {
    background: linear-gradient(90deg, var(--main-color), transparent);
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-sub-text);
    margin-bottom: 25px;
}

/* ==========================================
   ヒーロー / トップビジュアル
   ========================================== */
.hero-section {
    text-align: center;
    padding-top: 10px;
}

.top-img-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--main-glow);
    border: 1px solid var(--dark-border);
    transition: transform 0.3s ease;
}

.top-img-wrapper:hover {
    transform: translateY(-2px);
}

.top-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-catch {
    margin-top: 30px;
}

.catchphrase {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
    background: linear-gradient(135deg, #ffffff 40%, var(--main-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.sub-catch {
    color: var(--dark-sub-text);
    font-size: 1rem;
}

/* ==========================================
   お知らせ & 警告（横並びまたは整理レイアウト）
   ========================================== */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 45px;
}

/* ニュースウィジェットのコンパクト化 */
.news-widget-wrapper .omiyach-news-wrap {
    background: var(--dark-card) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--dark-border) !important;
    border-radius: 12px;
    padding: 20px 24px !important;
    margin: 0 auto !important;
}

.news-widget-wrapper .omiyach-news-title {
    font-size: 1.2rem !important;
    font-weight: 700;
    margin-bottom: 16px !important;
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-widget-wrapper .omiyach-news-title::before {
    content: '📢';
    font-size: 1.1rem;
}

/* 最新記事ボックスをスッキリ */
.news-widget-wrapper .omiyach-latest-box {
    background: rgba(0, 0, 0, 0.25) !important;
    border-left: 3px solid var(--main-color) !important;
    border-radius: 6px;
    padding: 12px 16px !important;
    margin-bottom: 14px !important;
}

.news-widget-wrapper .omiyach-latest-box h3 {
    font-size: 1.05rem !important;
    margin: 4px 0 8px 0 !important;
    color: #ffffff !important;
}

.news-widget-wrapper .omiyach-date {
    font-size: 0.8rem !important;
    color: var(--dark-sub-text) !important;
}

/* 本文が長大化しないよう最大3行で省略 */
.news-widget-wrapper .omiyach-content {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #cbd5e1;
}

.news-widget-wrapper .omiyach-btn-wrap {
    display: inline-block;
}

.news-widget-wrapper .omiyach-btn {
    padding: 5px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 4px;
    box-shadow: none !important;
}

/* リスト一覧をコンパクトに */
.news-widget-wrapper .omiyach-list {
    margin: 0 0 14px 0 !important;
}

.news-widget-wrapper .omiyach-list li {
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline;
    gap: 12px;
}

.news-widget-wrapper .omiyach-list li a {
    font-size: 0.9rem !important;
    margin-top: 0 !important;
    color: var(--dark-text) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-widget-wrapper .omiyach-list li a:hover {
    color: var(--main-color) !important;
}

.news-widget-wrapper .omiyach-btn-wrap-center {
    margin-top: 10px;
    text-align: right !important;
    /* 右寄せにして小さく見せる */
}

.news-widget-wrapper .omiyach-btn-outline {
    padding: 6px 18px !important;
    font-size: 0.85rem !important;
    border-radius: 4px;
    border: 1px solid var(--dark-border) !important;
    color: var(--dark-sub-text) !important;
}

.news-widget-wrapper .omiyach-btn-outline:hover {
    border-color: var(--main-color) !important;
    color: var(--main-color) !important;
    transform: none !important;
}

/* 注意喚起バナー */
.warning-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(20, 20, 20, 0.5) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid var(--warning-yellow);
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--warning-yellow);
    font-weight: bold;
    font-size: 1.1rem;
}

.warning-card p {
    font-size: 0.92rem;
    color: #f3f4f6;
    line-height: 1.6;
}

.warning-link {
    color: var(--warning-yellow);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.warning-link:hover {
    opacity: 0.8;
}

/* 情報バナー */
.info-card {
    background: linear-gradient(135deg, rgba(11, 92, 245, 0.08) 0%, rgba(20, 20, 20, 0.5) 100%);
    border: 1px solid rgba(11, 92, 245, 0.35);
    border-left: 4px solid var(--main-color);
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.info-card p {
    font-size: 0.92rem;
    color: #f3f4f6;
    line-height: 1.6;
}

.info-link {
    color: var(--main-color);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.info-link:hover {
    opacity: 0.8;
}

/* ==========================================
   制作物・サービスカード（メイン）
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.content-card {
    display: flex;
    align-items: center;
    background: var(--dark-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--main-color);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--dark-border-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--main-glow);
    background: rgba(35, 42, 54, 0.8);
    text-decoration: none;
}

.content-card:hover::before {
    opacity: 1;
}

.card-icon-box {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 10px;
    background: #000;
    overflow: hidden;
    margin-right: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .card-icon-img {
    transform: scale(1.08);
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-popular {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-tool {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-game {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-train {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-shop {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--dark-sub-text);
    line-height: 1.45;
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--dark-sub-text);
    margin-left: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.content-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--main-color);
}

/* ==========================================
   公式SNS & コミュニティセクション
   ========================================= */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(23, 27, 34, 0.6);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 22px 16px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    background: rgba(30, 36, 48, 0.9);
    border-color: var(--main-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.comm-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.comm-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.comm-desc {
    font-size: 0.8rem;
    color: var(--dark-sub-text);
}

/* ==========================================
   サポート & インフォメーション
   ========================================== */
.support-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 16px 20px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-text);
    font-size: 0.95rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.support-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--main-color);
    text-decoration: none;
}

.support-link img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* ==========================================
   フッター
   ========================================== */
footer {
    border-top: 1px solid var(--dark-border);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-sub-text);
    background: #0b0d10;
}

footer nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

footer nav a {
    color: var(--dark-sub-text);
    transition: color 0.2s;
}

footer nav a:hover {
    color: var(--main-color);
}

/* ==========================================
   レスポンシブ対応 (タブレット・スマホ)
   ========================================== */
@media (max-width: 820px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .catchphrase {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.35rem;
    }
}