@charset "UTF-8";
/* カテゴリごとのカラー設定 */
[data-id=""]    { --cat-color: #426E9B/*var(--accent)*/; } /* 「すべて」ボタン */
[data-id="game"]  { --cat-color: #6E7E42; }
[data-id="event"] { --cat-color: #963714; }
[data-id="ob"]    { --cat-color: #988844; }
[data-id="news"]    { --cat-color: #1A3B68; }

/*
* =====================================================
* お知らせ一覧
* =====================================================
*/
.news-page-section {
  padding: 48px 0 50px;
}

/* カテゴリフィルター */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}
.news-filter-btn {
  background-color: #fff;
  border: 1px solid var(--cat-color);
  color: var(--cat-color);
  font-family: var(--font-ja);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  font-weight: 600;
  padding: 10px 24px;
  min-width: 155px;
  font-size: 17px;
}
.news-filter-btn:hover {
  opacity: 0.8;
}
.news-filter-btn.active {
  background-color: var(--cat-color);
  border: 1px solid var(--cat-color);
  color: #fff;
}

/* ニュースリスト */
#news-list {}
.news-full-list {
  max-width: 700px;
  margin: auto;
}
.news-full-item {
  display: block;
  border: 1px solid #1C357B;
  text-decoration: none;
  position: relative;
  border-radius: 7px;
  padding: 25px 60px 25px 30px;
  margin-bottom: 15px;
}
.news-full-item:after {
  content: '';
  display: block;
  position: absolute;
  background: url(/test/images/ico_right_news.png)no-repeat;
  background-size: cover;
  width: 27px;
  height: 27px;
  right: 20px;
  top: calc((100% - 27px) / 2);
}
.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.news-date {
  color: #667EAF;
  letter-spacing: 0.04em;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 18px;
  min-width: 90px;
}
.news-cat {
  display: inline-block;
  font-weight: 600;
  color: var(--cat-color);
  border: 1px solid var(--cat-color);
  text-align: center;
  min-width: 96px;
  font-size: 12px;
  padding: 0 8px;
  letter-spacing: 0.04em;
}
.news-title {
  font-weight: 600;
  font-size: 19px;
  margin: 7px 0 0;
}
.news-excerpt {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-top: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .news-page-section {
    padding: 40px 0 50px;
  }
  .filter-bar {
    width: 300px;
    margin: 0 auto 40px;
  }
  .news-filter-btn {
    width: calc((100% - 20px) / 2);
    min-width: unset;
    padding: 10px;
    font-size: 15px;
  }
  .news-full-item {
    max-width: 100%;
    padding: 17px 20px;
  }
  .news-full-item:after {
    content: none;
  }
  .news-meta {
    gap: 7px;
  }
  .news-date {
    font-size: 14px;
  }
  .news-cat {
    font-size: 11px;
    padding: 0;
    min-width: 70px;
  }
  .news-title {
    font-size: 16px;
    margin: 5px 0;
  }
  .news-excerpt {
    font-size: 13px;
  }
}

/*
* =====================================================
* カテゴリ一覧
* =====================================================
*/

/* カテゴリグリッド */
#category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cat-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s;
}
.cat-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
.cat-card:hover::before { transform: scaleY(1); }

.cat-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cat-count {
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.cat-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border);
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.2s;
}
.cat-card:hover .cat-arrow { color: var(--accent); transform: translateY(-50%) translateX(3px); }

@media (max-width: 768px) {
  #category-grid { grid-template-columns: 1fr; }
}


/* =====================================================
   ページネーション
   ===================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  cursor: pointer;
  background: #C43704;
  border: none;
}
.page-btn:hover {
  opacity: 0.8;
}
.page-btn.disabled {
  background: #A7A7A7;
  pointer-events: none;
}

/* ページ番号エリア */
.page-numbers {
  display: flex;
  align-items: center;
  gap: 15px;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6A6A6A;
  font-weight: 500;
  font-family: var(--font-en);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
}
.page-num:hover {
  opacity: 0.8;
}
.page-num.current {
  color: #C43704;
  cursor: default;
  pointer-events: none;
}

/* 省略記号 */
.page-ellipsis {
  color: #6A6A6A;
  font-size: 0.85rem;
  padding: 0 4px;
  user-select: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .pagination {
    gap: 15px;
  }
  .page-btn {
    padding: 0;
  }
  .page-num {
    min-width: 3px;
  }
}


/*
* =====================================================
* お知らせ詳細
* =====================================================
*/

.container.news-detail {
  padding: 0;
}
.news-layout {
  padding: 48px 0 80px;
}
.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
}
.news-detail-main {
  width: 670px;
}

/* 記事ヘッダー */
.article-header {
  margin-bottom: 30px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.article-date {
  font-family: var(--font-en);
  font-size: 19px;
  color: #667EAF;
  font-weight: 500;
}
.article-cat {
  display: inline-block;
  font-size: 13px;
  padding: 0 10px;
  border: 1px solid var(--cat-color, var(--accent));
  color: var(--cat-color, var(--accent));
  letter-spacing: 0.04em;
}
.title-box {
  position: relative;
  display: block;
}
.article-title {
  color: #3B4043;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-size: 25px;  
  padding-bottom: 15px;
}
.title-box .article-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1C357B;
  height: 3px;
}
.title-box .article-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  background: #758FC3;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 8px 100%);
  width: 56px;
  height: 3px;
}

/* 本文 */
.article-body {
  line-height: 1.95;
  font-weight: 300;
  font-size: 15px;
}
.article-body p {
  margin-bottom: 1.4em;
}
.article-body h2 {
  position: relative;
  display: block;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 30px;
  padding-bottom: 10px;
}
.article-body h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  background: #1C357B;
  clip-path: polygon(0% 0%, calc(100% - 8px) 0%, 100% 100%, 0% 100%);
  z-index: 1;
  width: 56px;
  height: 3px;
}
.article-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #939393;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 20px;
}
.article-body a {
  text-decoration: underline;
}
.article-body img {
  max-width: 100%;
  margin-bottom: 20px;
}


/* 前後記事ナビ */
.article-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin-top: 50px;
  padding-top: 10px;
  border-top: 1px solid #C1C1C1;
}

.nav-link {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
  font-weight: 600;
  color: #3B4043;
  gap: 4px;
  padding: 16px 18px;
}
.nav-link:hover {
  opacity: 0.8;
}
.nav-link.nav-prev {
  border-right: 1px solid #C1C1C1;
}
.nav-link.nav-next {
  border-left: 1px solid #C1C1C1;
}
.nav-link.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.nav-label {
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  font-size: 15px;
  gap: 15px;
}
.nav-link.nav-prev .nav-label::before {
  display: inline-block;
  content: '';
  background: url(/test/images/ico_pagenav_detail_prev.png)no-repeat;
  background-size: cover;
  width: 20px;
  height: 20px;
}
.nav-link.nav-next .nav-label::after {
  display: inline-block;
  content: '';
  background: url(/test/images/ico_pagenav_detail_next.png)no-repeat;
  background-size: cover;
  width: 20px;
  height: 20px;
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #A84826;
  font-weight: 600;
  width: 230px;
  padding: 10px 20px;
  font-size: 16px;
}

/* ========== サイドバー ========== */
.news-detail-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  padding-top: 0;
  gap: 40px;
  width: 260px;
  margin-top: 24px;
}
.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #8D98AD;
  font-family: var(--font-en);
  font-weight: 500;
  color: #575757;
  font-size: 25px;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 5px;
}
.sidebar-heading span {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 13px;
}

/* カテゴリリスト */
.sidebar-cat-list {
  list-style: none;
}
.sidebar-cat-list li {
  border-bottom: 1px solid #C1C1C1;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #3B4043;
  padding: 10px 0;
  font-size: 15px;
}
.sidebar-cat-list li a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.sidebar-cat-list li a::before {
  content: '-';
  display: inline-block;
  color: #023192;
  margin: 0 10px;
}
.sidebar-cat-list li a::after {
  content: '';
  border: 0;
  border-top: solid 1px #023192;
  border-right: solid 1px #023192;
  transform: rotate(45deg);
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  right: 10px;
  width: 8px;
  height: 8px;
}

/* 新着記事リスト */
.sidebar-news-list {
  list-style: none;
}
.sidebar-news-list li {
  border-bottom: 1px solid #C1C1C1;
  color: #3B4043;
  padding: 10px 0;
}
.sidebar-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.sidebar-news-list li a {
  text-decoration: none;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.sidebar-news-list li a::after {
  content: '';
  border: 0;
  border-top: solid 1px #023192;
  border-right: solid 1px #023192;
  transform: rotate(45deg);
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  right: 10px;
  width: 8px;
  height: 8px;
}
.sidebar-news-date {
  font-family: var(--font-en);
  font-weight: 500;
  color: #575757;
  font-size: 15px;
}
.sidebar-news-cat {
  font-size: 10px;
  padding: 1px 6px;
  border: 1px solid var(--cat-color);
  color: var(--cat-color);
}
.sidebar-news-title {
  font-weight: 300;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  margin-right: 25px;
}

/* サイドバーローディング */
.sidebar-loading {
  padding: 18px;
  text-align: center;
}
.sidebar-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .container.news-detail {
    padding: 0 30px;
  }
  .news-layout {
    padding: 30px 0 50px;
  }
  .news-detail-layout {
    display: block;
  }
  .news-detail-main {
    width: 100%;
  }
  .article-header {
    margin-bottom: 20px;
  }
  .article-meta {
    gap: 10px;
    margin-bottom: 10px;
  }
  .article-date {
    font-size: 15px;
  }
  .article-cat {
    font-size: 11px;
    padding: 0 5px;
  }
  .title-box .article-title::before {
    height: 2px;
  }
  .title-box .article-title::after {
    width: 50px;
    height: 2px;
  }
  .article-title {
    font-size: 18px;
    padding-bottom: 12px;
  }
  .article-body {
    line-height: 1.8;
    font-size: 14px;
  }
  .article-footer {
    margin-top: 40px;
    gap: 0;
  }
  .nav-link {
    padding: 0;
    font-size: 14px;
  }
  .nav-link.nav-prev {
    padding: 10px 5px 10px 0;
  }
  .nav-link.nav-next {
    padding: 10px 0 10px 5px;
  }
  .nav-label {
    font-size: 14px;
    gap: 5px;
  }
  .nav-link.nav-prev .nav-label::after,
  .nav-link.nav-next .nav-label::after {
    width: 16px;
    height: 16px;
  }
  .back-link {
    width: 130px;
    padding: 10px 0;
    font-size: 14px;
  }
  .news-detail-sidebar {
    gap: 30px;
    width: 96%;
    margin: 50px auto 0;
  }
  .sidebar-heading {
    margin-bottom: 10px;
  }
  .sidebar-news-list li {
    padding: 8px 5px 10px;
  }
  .sidebar-news-title {
    width: 100%;
    display: block;
    padding: 0 25px 0 0;
    height: auto;
    margin-right: 25px;
  }
  .sidebar-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .sidebar-cat-list li {
    border-bottom: none;
    border: 2px solid var(--cat-color);
    border-radius: 50px;
    display: block;
    color: var(--cat-color);
    padding: 5px 0;
    font-size: 15px;
    text-align: center;
    font-weight: 600;
    width: calc((100% - 10px) / 3);
    margin-top: 5px;
  }
  .sidebar-cat-list li a::before,
  .sidebar-cat-list li a::after {
      content: none;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
}