/*
Theme Name: ohka-tcg
Theme URI: https://example.com/
Author: Web Developer
Author URI: https://example.com/
Description: カードショップ桜華 WordPress テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ohka-tcg
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/*-----------------お知らせ / トピックス-----------------*/

/*本文CSS*/
.jc_subtitle {
  font-weight: bold;
}
.news_title2 {
  padding: .4em .75em;
  background-color: #e5e5e5;
  font-size: 1.3em;
  line-height: 1.4;
  margin-bottom: 30px;
}
.news_title3 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  font-size: 1.2em;
  line-height: 1.4;
  margin-bottom: 30px;
}
.news_title4 {
  border-left: 5px solid #A22337;
  padding-left: 10px;
  font-size: 1.1em;
  line-height: 1.4;
  margin-bottom: 30px;
}
.news_float_pic {
  line-height: 0;
  margin: 0 0 30px 20px;
  float: right;
}
.news_float_pic img {
  max-width: 250px;
}
.news_border_box {
  padding: 20px;
  border: 1px solid #999;
  margin-bottom: 30px;
}
.news_border_box_title {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #555;
  font-weight: bold;
}
.movie_box {
  position: relative;
  width: 100%;
  border: 1px solid #ddd;
}
.movie_box:before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.movie_box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.juunan_contents_body {
  border-bottom: 1px solid #ddd;
  padding-bottom: 40px;
}
.news_navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #aaa;
}
.news_prev_btn,
.news_next_btn {
  width: 20%;
}
.news_back_btn {
  width: 40%;
}
.news_back_btn a,
.news_prev_btn a,
.news_next_btn a {
  text-decoration: none;
  background: #222;
  position: relative;
  color: #fff;
  padding: 10px;
  display: block;
  width: 100%;
}
.news_prev_btn a,
.news_next_btn a {
  background: none;
  color: #333;
}
.news_back_btn a:hover,
.news_prev_btn a:hover,
.news_next_btn a:hover {
  opacity: .7;
}

/* サブページ：背景動画の透明度 */
.subpage-bg-video {
  opacity: 0.15;
}

/* サブページ共通バナー */
.subpage-main-title-section {
  position: relative;
  overflow: hidden;
}
.subpage_main_title_text,
.subpage_main_title_text_sub {
  opacity: 0;
  transform: translateY(20px);
  animation: subpageTitleFadeUp 0.7s ease forwards;
}
.subpage_main_title_text_sub {
  animation-delay: 0.15s;
}
@keyframes subpageTitleFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   NEWS アーカイブ カテゴリタブ
   ============================================ */
.news-cat-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #374151;
  background: #e5e7eb;
  border: none;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.news-cat-tab:hover {
  background: #d1d5db;
  color: #111827;
}
.news-cat-tab.is-active {
  color: #fff;
  background: linear-gradient(90deg, #07AEEA, #2BF598);
}
.news-cat-tab.is-active:hover {
  background: linear-gradient(90deg, #0580AC, #0D8A4A);
  color: #fff;
}

/* ページネーション */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  border: 1px solid #d1d5db;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: #fff;
  border-radius: 4px;
}
.nav-links .page-numbers:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.nav-links .page-numbers.current {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.nav-links .page-numbers.dots {
  border: none;
}

@media screen and (max-width:767px) {
  .news-cat-tab {
    padding: 0.55rem 1.5rem;
    font-size: 0.8rem;
  }
}

@media screen and (max-width:767px) {
  .news_float_pic {
    margin: 0 0 20px;
    float: none;
    text-align: center;
  }
  .news_back_btn a,
  .news_prev_btn a,
  .news_next_btn a {
    padding: 6px;
    font-size: .9em;
  }
  .news_prev_btn,
  .news_next_btn {
    width: 34%;
  }
  .news_back_btn {
    width: 32%;
  }
  .news_navigation {
    margin-top: 50px;
  }
}



/*-----------------お知らせ-----------------*/
/*柔軟コンテンツCSSここから*/
.jc_subtitle {
  font-weight: bold;
}
.news_title2 {
  padding: .4em .75em;
  background-color: #e5e5e5;
  font-size: 1.3em;
  line-height: 1.4;
  margin-bottom: 30px;
}
.news_title3 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  font-size: 1.2em;
  line-height: 1.4;
  margin-bottom: 30px;
}
.news_title4 {
  border-left: 5px solid #666;
  padding-left: 10px;
  font-size: 1.1em;
  line-height: 1.4;
  margin-bottom: 30px;
}
.news_yohaku {
  height: 80px;
}
.news_yohaku_s {
  height: 40px;
}
.news_kugirisen_hasen {
  margin-top: 80px;
  height: 80px;
  border-top: 1px dashed #aaa;
}
.news_float_pic {
  line-height: 0;
  margin: 0 0 30px 20px;
  float: right;
}
.news_float_pic img {
  max-width: 250px;
}
.news_link_list li {
  line-height: 1.4;
  text-indent: -1.5em;
  margin-left: 1.5em;
}
.news_link_list li:before {
  content: "\f138";
  font-family: FontAwesome;
  margin-right: 10px;
  color: #aaa;
}
.news_link_list li:nth-child(n+2), .news_file_list li:nth-child(n+2) {
  margin-top: 15px;
}
.news_link_list li a[target$='_blank']:after {
  content: "\f08e";
  font-family: FontAwesome;
  margin-left: 30px;
  color: #888;
  text-decoration: none;
  display: inline-block;
}
.news_border_box {
  padding: 20px;
  border: 1px solid #999;
  margin-bottom: 30px;
}
.news_border_box_title {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #555;
  font-weight: bold;
}
.news_border_box_title i {
  margin-right: 10px;
}
.news_link_list a:hover strong,
.news_file_list a:hover strong {
  text-decoration: underline;
}
.news_file_list a[href$='.pdf']:before,
.news_file_list a[href$='.pdf#view=FitH']:before {
  content: "\f1c1";
  font-family: FontAwesome;
  margin-right: 5px;
  color: #D14244;
  text-decoration: none;
  display: inline-block;
}
.news_file_list a[href$='.doc']:before, .news_file_list a[href$='.rtf']:before, .news_file_list a[href$='.docx']:before {
  content: "\f1c2";
  font-family: FontAwesome;
  margin-right: 5px;
  color: #344290;
  text-decoration: none;
  display: inline-block;
}
.news_file_list a[href$='.xls']:before, .news_file_list a[href$='.xlsx']:before {
  content: "\f1c3";
  font-family: FontAwesome;
  margin-right: 5px;
  color: #4C7B3B;
  text-decoration: none;
  display: inline-block;
}
.hukusuu_gazou_wrap {
  margin-left: -30px;
  line-height: 0;
}
.hukusuu_gazou_wrap > * {
  padding-left: 30px;
  margin-bottom: 30px;
  transition: .3s;
}
.hukusuu_gazou_wrap_size_2 > * {
  width: 50%;
}
.hukusuu_gazou_wrap_size_3 > * {
  width: 33.333%;
}
.hukusuu_gazou_wrap_size_4 > * {
  width: 25%;
}
.hukusuu_gazou_wrap_size_6 > * {
  width: 16.6666%;
}
.hukusuu_gazou_a {
  display: block;
  background-size: cover;
  background-position: center;
  transition: .3s;
  position: relative;
}
.hukusuu_gazou_wrap_juuou_yoko .hukusuu_gazou_a {
  padding-top: 71.42%;
}
.hukusuu_gazou_wrap_juuou_tate .hukusuu_gazou_a {
  padding-top: 140%;
}
.hukusuu_gazou_wrap_juuou_seihoukei .hukusuu_gazou_a {
  padding-top: 100%;
}
.hukusuu_gazou_a:hover {
  opacity: .7;
}
.hukusuu_gazou_a:nth-child(5n-4) {
  margin-left: 0;
}
.hukusuu_gazou_a:nth-child(n+6) {
  margin-top: 20px;
}
.hukusuu_gazou_a img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.news_back_btn a, .news_prev_btn a, .news_next_btn a {
  text-decoration: none;
  background: #222;
  position: relative;
  color: #fff;
  padding: 10px;
  display: block;
  width: 100%;
}
.news_prev_btn a, .news_next_btn a {
  background: none;
  color: #333;
}
.news_next_btn a::after {
  position: absolute;
  top: 50%;
  left: 15px;
  display: block;
  content: '';
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-bottom: 3px solid #333;
  border-left: 3px solid #333;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.news_prev_btn a::after {
  position: absolute;
  top: 50%;
  right: 15px;
  display: block;
  content: '';
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-top: 3px solid #333;
  border-right: 3px solid #333;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.news_back_btn a:hover, .news_prev_btn a:hover, .news_next_btn a:hover {
  opacity: .7;
}
.news_navigation {
  padding-top: 60px;
  margin-top: 80px;
  border-top: 1px solid #aaa;
  text-align: center;
}
.news_prev_btn, .news_next_btn {
  width: 20%;
}
.news_back_btn {
  width: 40%
}
.hukusuu_gazou_wrap {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.news_navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
}
.juunan_contents_body {
  border-bottom: 1px solid #ddd;
  padding-bottom: 40px;
}
.movie_box {
  position: relative;
  width: 100%;
  border: 1px solid #ddd;
}
.movie_box:before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.movie_box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.jc_tbl table {
  min-width: 500px;
}
.jc_tbl th, .jc_tbl td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #D1D1D1;
  background: #fff;
}
.jc_tbl th {
  background: #F5F4F0;
}
@media screen and (max-width:1200px) {
  .jc_tbl table {
    min-width: 300px;
  }
  .jc_tbl th, .jc_tbl td {
    padding: 10px 12px;
  }
  .hukusuu_gazou_wrap {
    margin-left: -20px;
  }
  .hukusuu_gazou_wrap > * {
    padding-left: 20px;
    margin-bottom: 20px;
  }
}
@media screen and (max-width:959px) {
  .news_content {
    width: 100%;
  }
  .news_sidebar {
    width: 100%;
    margin-top: 50px;
  }
  .hukusuu_gazou_wrap_size_2 > * {
    width: 50%;
  }
  .hukusuu_gazou_wrap_size_3 > * {
    width: 33.333%;
  }
  .hukusuu_gazou_wrap_size_4 > * {
    width: 25%;
  }
  .hukusuu_gazou_wrap_size_6 > * {
    width: 20%;
  }
}
@media screen and (max-width:767px) {
  .jc_tbl table {
    border-bottom: 1px solid #D1D1D1;
  }
  .jc_tbl th, .jc_tbl td {
    padding: 6px 8px;
    display: block;
    font-size: .9em;
    border-bottom: none;
  }
  .hukusuu_gazou_wrap {
    margin-left: -15px;
  }
  .hukusuu_gazou_wrap > * {
    padding-left: 15px;
    margin-bottom: 15px;
  }
  .news_float_pic {
    margin: 0 0 20px;
    float: none;
    text-align: center;
  }
  .news_back_btn a, .news_prev_btn a, .news_next_btn a {
    padding: 6px;
    font-size: .9em;
  }
  .news_back_btn a {
    padding: 6px 12px;
  }
  .news_prev_btn, .news_next_btn {
    width: 34%;
  }
  .news_back_btn {
    width: 32%;
  }
  .news_prev_btn a::after, .news_next_btn a::after {
    display: none;
  }
  .news_navigation {
    margin-top: 50px;
  }
  .hukusuu_gazou_wrap_size_2 > * {
    width: 50%;
  }
  .hukusuu_gazou_wrap_size_3 > * {
    width: 50%;
  }
  .hukusuu_gazou_wrap_size_4 > * {
    width: 33.3333%;
  }
  .hukusuu_gazou_wrap_size_6 > * {
    width: 25%;
  }
}

/* ============================================
   画像モーダル（a.swipe）
   ============================================ */
.ohka-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.ohka-modal.is-open {
  display: flex;
}
.ohka-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  animation: ohkaModalFadeIn 0.25s ease forwards;
}
.ohka-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ohka-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.ohka-modal__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: calc(100vw - 3rem);
  animation: ohkaModalZoomIn 0.25s ease forwards;
}
.ohka-modal__img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.ohka-modal__caption {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.5;
}
@keyframes ohkaModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ohkaModalZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* a.swipe のカーソル */
a.swipe {
  cursor: zoom-in;
}
/*柔軟コンテンツCSSここまで*/