/* ===================================================
   おおみやチャンネル - nigiyaka (明るいグレー系テーマ)
   =================================================== */

:root {
    --main-color: #0d9488;
    --main-hover: #0f766e;
    --main-glow: rgba(13, 148, 136, 0.18);
    --light-bg: #f1f5f9;
    --light-bg-gradient: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 60%, #e2e8f0 100%);
    --light-surface: #ffffff;
    --light-card: rgba(255, 255, 255, 0.95);
    --light-card-hover: #ffffff;
    --border-color: #e2e8f0;
    --border-color-hover: #0d9488;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --warning-yellow: #d97706;
}

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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    background: var(--light-bg);
    background-image: var(--light-bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==========================================
   共通ヘッダー（nigiyakaページ専用オーバーライド）
   ========================================== */
#oyc-global-header {
    background-color: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

#oyc-global-header .global-nav a {
    color: #334155 !important;
}

#oyc-global-header .global-nav a:hover {
    color: var(--main-color) !important;
}

#oyc-global-header .hamburger-btn span {
    background-color: #334155 !important;
}

#oyc-global-header .hamburger-btn.active span:nth-child(1),
#oyc-global-header .hamburger-btn.active span:nth-child(3) {
    background-color: var(--main-color) !important;
}

@media (max-width: 768px) {
    #oyc-global-header .global-nav {
        background-color: rgba(248, 250, 252, 0.98) !important;
    }
    #oyc-global-header .global-nav a {
        color: #0f172a !important;
    }
}

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

.bg-glow-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.09) 0%, rgba(241, 245, 249, 0) 70%);
    top: 5%;
    left: 8%;
}

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

/* ==========================================
   全体レイアウト（3カラム：左右広告＋中央メイン）
   ========================================== */
.layout-wrapper {
    display: flex;
    justify-content: center;
    max-width: 1560px;
    margin: 0 auto;
    padding: 24px 16px;
    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(--text-muted);
    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 16px;
    }
}

/* 中央メインコンテンツ */
.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: 8px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.section-title::before,
.section-title::after {
    content: '';
    display: inline-block;
    width: 36px;
    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.92rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

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

.top-img-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.top-img-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px var(--border-color);
}

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

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

.catchphrase {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.45;
    background: linear-gradient(135deg, #0f172a 35%, var(--main-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

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

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

/* ニュースウィジェット */
.news-widget-wrapper .omiyach-news-wrap {
    background: var(--light-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px;
    padding: 22px 26px !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.05) !important;
}

.news-widget-wrapper .omiyach-news-title {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    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: #f8fafc !important;
    border-left: 3px solid var(--main-color) !important;
    border-top: 1px solid var(--border-color) !important;
    border-right: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 8px;
    padding: 14px 18px !important;
    margin-bottom: 14px !important;
}

.news-widget-wrapper .omiyach-latest-box h3 {
    font-size: 1.05rem !important;
    margin: 4px 0 8px 0 !important;
    color: var(--text-primary) !important;
}

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

.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;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary) !important;
}

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

.news-widget-wrapper .omiyach-btn {
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 6px;
    background: var(--main-color) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.news-widget-wrapper .omiyach-btn:hover {
    background: var(--main-hover) !important;
}

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

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

.news-widget-wrapper .omiyach-list li a {
    font-size: 0.92rem !important;
    margin-top: 0 !important;
    color: var(--text-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.news-widget-wrapper .omiyach-btn-wrap-center {
    margin-top: 12px;
    text-align: right !important;
}

.news-widget-wrapper .omiyach-btn-outline {
    padding: 6px 18px !important;
    font-size: 0.85rem !important;
    border-radius: 6px;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* 注意喚起バナー */
.warning-card {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid var(--warning-yellow);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.05);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b45309;
    font-weight: bold;
    font-size: 1.1rem;
}

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

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

.warning-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(--light-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

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

.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.09), 0 0 16px var(--main-glow);
    background: #ffffff;
    text-decoration: none;
}

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

.card-icon-box {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    margin-right: 18px;
    border: 1px solid var(--border-color);
    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.12rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* バッジ（明るいテーマ用の洗練された配色） */
.badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-popular {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-tool {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.badge-game {
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

.badge-train {
    background: #dcfce7;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.badge-shop {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.card-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-arrow {
    font-size: 1.2rem;
    color: #cbd5e1;
    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: var(--light-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px 18px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.community-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: var(--border-color-hover);
    box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.08), 0 0 16px var(--main-glow);
    text-decoration: none;
}

.comm-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

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

.comm-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.comm-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================
   サポート & インフォメーション
   ========================================== */
.support-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--light-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

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

.support-link:hover {
    background: #f1f5f9;
    color: var(--main-color);
    text-decoration: none;
}

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

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

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

footer nav a {
    color: var(--text-muted);
    text-decoration: none;
    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.45rem;
    }

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