/* -------------------------
  Reset
--------------------------*/
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    color: #111;
    background: #f7f7f7;
}

a { text-decoration: none; color: inherit; }

/* -------------------------
  Glass Header
--------------------------*/
.nc-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 58px; /* 細い帯 */
    background: rgba(255,255,255,0.15); /* ガラス */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    z-index: 999;
}

.nc-header-inner {
    width: 92%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴ大きめ（左寄せ） */
.site-logo {
    height: 66px;
    width: auto;
}

/* メニュー */
.header-menu a {
    font-size: 16px;
    padding: 10px 18px;
    font-weight: 700;
    border-radius: 6px;
    transition: 0.2s;
}

.header-menu a:hover {
    background: rgba(0,0,0,0.1);
}

/* -------------------------
  HERO
--------------------------*/
.hero {
    width: 100%;
    padding: 120px 0 80px;
    background: url("https://novacity.jp/wp-content/uploads/2025/12/nova-bg.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
}

.hero-box {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    padding: 40px 50px;
    border-radius: 18px;
    text-align: center;
}

.hero-box h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.hero-box p {
    margin-bottom: 20px;
    color: #333;
}

.btn-blue {
    background: #007bff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

/* -------------------------
  NEWS
--------------------------*/
.news-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
}

.news-list {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
    gap: 20px;
}

.news-item {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.news-item:hover {
    transform: translateY(-4px);
}

.news-item .date {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.7;
}

.none {
    text-align: center;
    color: #777;
}

/* -------------------------
  FOOTER
--------------------------*/
.footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}
.rule-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;

    /* ヘッダー分の余白を追加（被り防止） */
    margin-top: 180px;   /* ← 今はこれがおすすめ */
}


.rule-card {
    display: block;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #111;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: .2s;
}

.rule-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 6px 22px rgba(0,0,0,0.15);
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.rule-card {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: .2s;
    text-decoration: none;
    color: #111;
}

.rule-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.rules-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* 上段2枚 */
.rules-top {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 180px;
}

.rules-top .rule-card.large {
    flex: 1;
    max-width: 540px;
    padding: 40px 30px;
    border-radius: 18px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: .3s;
    border: 1px solid #e5e7eb;
}

.rules-top .rule-card.large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* 下段3枚 */
.rules-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.rule-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: .25s;
}

.rule-card:hover {
    transform: translateY(-6px);
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(0,0,0,0.09);
}

/* タイトル */
.rule-card h2,
.rule-card h3 {
    margin: 0 0 12px 0;
    font-weight: 700;
    color: #111827;
}

/* 説明文 */
.rule-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

/* 重要マーク（上段2つ） */
.rule-card.important {
    border-left: 5px solid #3b82f6;
}

.rules-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* 上段2枚 */
.rules-top {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.rules-top .rule-card.large {
    flex: 1;
    max-width: 540px;
    padding: 40px 30px;
    border-radius: 18px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: .3s;
    border: 1px solid #e5e7eb;
}

.rules-top .rule-card.large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* 下段3枚 */
.rules-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.rule-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: .25s;
}

.rule-card:hover {
    transform: translateY(-6px);
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(0,0,0,0.09);
}

.rule-card h2,
.rule-card h3 {
    margin: 0 0 12px 0;
    font-weight: 700;
    color: #111827;
}

.rule-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.rule-card.important {
    border-left: 5px solid #3b82f6;
}

/* 全ルールページの共通コンテナ */
.nc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.9;
    font-size: 18px;
}

/* タイトル (基本ルール・犯罪ルールなどの大見出し) */
.section-title {
    text-align: center;
    font-size: 42px;
    color: #0a3cff;
    margin-bottom: 50px;
    font-weight: 700;
}

/* 本文全体 */
.rule-content {
    font-size: 18px;
    line-height: 1.9;
    color: #222;
}

/* h2 - 各章見出し */
.rule-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 6px solid #0a3cff;
    color: #0a3cff;
}

/* h3 - 小見出し */
.rule-content h3 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #0033aa;
}

/* strong の強調 */
.rule-content strong {
    background: #fff4a8;
    padding: 2px 5px;
    border-radius: 4px;
}

/* 箇条書き */
.rule-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.rule-content ul li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* 注意書きブロック（★重要★） */
.rule-content .warning {
    background: #fff7d6;
    padding: 15px 20px;
    border-left: 6px solid #ff9900;
    border-radius: 4px;
    margin: 20px 0;
    font-weight: 600;
}

/* PDF ボタン */
.pdf-button {
    display: inline-block;
    background: #0a3cff;
    color: white !important;
    padding: 12px 25px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: 0.2s;
}

.pdf-button:hover {
    background: #072bb3;
}

/* 全ページ共通の背景（フルスクリーン） */
.nova-bg {
    background-image: url('/wp-content/themes/novacity/assets/img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* スクロールしても固定 */
    pointer-events: none; /* ← クリック判定を無効化 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 後ろに下げる */
    filter: brightness(55%); /* 少し暗くして文字を読みやすく */
}

body {
    background-image: url('/wp-content/themes/あなたのテーマ名/assets/img/bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

/* ページ全体を縦100%にする */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* メイン部分を伸ばして footer を最下部に押し下げる */
.site-wrapper {
    min-height: 100vh; /* 画面の高さと同じ */
    display: flex;
    flex-direction: column;
}

/* メインは残り高さを占める */
.site-content {
    flex: 1;
}

/* フッターを最下部へ固定 */
footer {
    margin-top: auto;
}

/* ページ全体を上下ピッタリにする */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* メイン全体を flex で縦並びレイアウト */
.site-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* コンテンツを押し広げて footer を一番下へ */
.nc-container {
    flex: 1;
}

/* フッター */
.site-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 22px 0;
    margin-top: auto;
    width: 100%;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.news-item {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.news-item .date {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #777;
}

.pagination {
    text-align: center;
    margin: 40px 0;
}
.pagination a {
    padding: 8px 12px;
    margin: 4px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
}
.pagination .current {
    padding: 8px 12px;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
}

/* ルール本文の読みやすさ改善（半透明白＋ぼかし） */
.rule-content-wrapper {
    background: rgba(255, 255, 255, 0.78); /* 透明度 78% の白 */
    backdrop-filter: blur(4px);           /* 背景をふわっとぼかす */
    -webkit-backdrop-filter: blur(4px);   /* Safari 対応 */
    padding: 50px 60px;
    border-radius: 20px;
    margin: 0 auto;
    max-width: 1100px;                    /* 中央寄せで読みやすくする */
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

/* ニュース記事ラッパー */
.news-article-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    padding: 40px 50px;
    border-radius: 18px;
    margin-bottom: 80px;
}

/* タイトル */
.news-title {
    font-size: 34px;
    font-weight: 700;
    color: #0a3cff;
    margin-bottom: 20px;
    text-align: center;
}

/* 日付 */
.news-meta {
    color: #666;
    font-size: 15px;
    text-align: center;
    margin-bottom: 25px;
}

/* 本文 */
.news-content {
    font-size: 18px;
    line-height: 1.9;
    color: #222;
}

/* 本文内の h2/h3 調整（ルールページと統一） */
.news-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 6px solid #0a3cff;
    color: #0a3cff;
}

.news-content h3 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #0033aa;
}

/* strong 強調 */
.news-content strong {
    background: #fff4a8;
    padding: 2px 5px;
    border-radius: 4px;
}

/* 箇条書き */
.news-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}
.news-content ul li {
    margin-bottom: 10px;
}

/* ================================
   NEWS 一覧ページデザイン
================================ */

.section-title {
    text-align: center;
    font-size: 42px;
    color: #0a3cff;
    margin-bottom: 50px;
    font-weight: 700;
}

.news-list-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    text-decoration: none;
}

.news-card-inner {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: 0.25s;
    min-height: 200px;
}

.news-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.news-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #0a0a0a;
}

.news-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-bottom: 80px;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 6px;
    padding: 10px 18px;
    background: #0a3cff;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
}

.pagination .current {
    background: #333;
}

/* Discord ボタン */
.discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(30, 35, 255, 0.85);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.25s;
}

.discord-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.discord-btn:hover {
    background: rgba(60, 65, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}