@charset "UTF-8";
/*
  Theme Name:  x7-gamewidth
  Description: x7-gamewidth Parent Theme　for Wordpress Education
*/

/* css リセット 読み込み */
@import url(sanitize.css);

/* Bootstrap カストマイズ 読み込み */
/* @import url(./css/bootstrap.custom.css); /* Function.php 記載している */

/* Bootstrap Frame
// Extra small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

// Large devices (desktops, 992px and up) 1080px 変更
@media (min-width: 992px) { ... }

// Extra large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }

/* Upload Thubnails 728*428 range is better for widget thumbnails */

/* Add your custom styles below this line */

/* 他のメニューアイテムに対するアイコンも同様に追加 */



a {
    text-decoration: none;
}


h3 { text-decoration: none; }
*  { text-decoration: none; }


/* =========================================================
   Ad Rails：大画面PCだけ表示（1720px以上）／それ以外は常に非表示
   - 必要最小幅（衝突しない条件）
     required = content_w + 2*(rail_w + rail_gap)
     例) 1200 + 2*(240 + 16) = 1712px
   - ここでは余裕をみて 1720px 以上で解禁
========================================================= */

:root{
  --content-w: 1200px;                  /* 中央本文幅 */
  --rail-gap: 16px;                     /* 本文とレールのすき間 */
  --rail-w: clamp(180px, 14vw, 240px);  /* レール幅（180～240の間で可変） */
  --fixedbar-h: 56px;                   /* .top-fixed-bar の実高さ */
  --site-nav-h: 64px;                   /* #site-nav の実高さ */
  --rail-top: calc(var(--fixedbar-h) + var(--site-nav-h) + 12px); /* ナビ直下に少し余白 */
}

/* デフォルト：常に非表示（タブレット・ノート含む） */
.ad-rail{ display:none !important; }

/* 1720px以上のみ左右レールを解禁 */
@media (min-width: 1720px){
  /* レールは viewport 基準で固定（親DOMに依存しない） */
  .ad-rail{
    position: fixed;
    top: var(--rail-top);
    width: var(--rail-w);
    display: block !important;
    z-index: 9000;
    box-sizing: border-box;
  }

  /* 左レール = 中央(50%) - コンテンツ半分 - 隙間 - レール幅 */
  .ad-rail--left{
    left: calc(50% - (var(--content-w)/2) - var(--rail-gap) - var(--rail-w));
  }

  /* 右レール = 中央(50%) + コンテンツ半分 + 隙間 */
  .ad-rail--right{
    left: calc(50% + (var(--content-w)/2) + var(--rail-gap));
  }

  /* レール表示時のみ本文を内側へ（左右で同量押し込む） */
  .page-wrapper{
    margin-left:  calc(var(--rail-w) + var(--rail-gap));
    margin-right: calc(var(--rail-w) + var(--rail-gap));
    max-width: var(--content-w);
    box-sizing: border-box;
    margin-inline-start: calc(var(--rail-w) + var(--rail-gap));
    margin-inline-end:   calc(var(--rail-w) + var(--rail-gap));
  }
}

/* WP管理バー（ログイン時）の上補正：PC/モバイル */
body.admin-bar .ad-rail{ top: calc(var(--rail-top) + 32px); }
@media (max-width: 782px){
  body.admin-bar .ad-rail{ top: calc(var(--rail-top) + 46px); }
}

/* 無配信時に容器が潰れないよう最低高だけ確保（見た目の空白回避） */
.ad-rail__slot .adsbygoogle{
  display:block !important;
  width:100% !important;
  min-height:600px; /* 300～600で調整（スカイスクレイパー想定） */
}



/* ---- AdBar: タイトル＆フレーム付きバリエーション ---- */

/* タイトル行（「広告 / Sponsored」など） */
.gw-adbar__title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 0 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  line-height:1;
}

/* ピル型バッジ（「広告」） */
.gw-adbar__badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:11px;
  letter-spacing:.06em;
  background:#eef2ff;     /* 明色 */
  color:#4f46e5;
  border:1px solid #dbe3ff;
}

/* 補助テキスト（Sponsored等） */
.gw-adbar__sub{
  font-size:12px;
  color:#6b7280;
  letter-spacing:.02em;
}

/* 枠・背景つきのバリエーション（必要なら .gw-adbar--framed を付与） */
.gw-adbar--framed .gw-adbar__inner{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}

/* ダークテーマ対応（サイトのクラスに合わせて調整） */
body.dark-theme .gw-adbar--framed .gw-adbar__inner{
  background:rgba(255,255,255,.04);
  border-color:#2a2a2a;
}
body.dark-theme .gw-adbar__badge{
  background:rgba(79,70,229,.12);
  color:#c7d2fe;
  border-color:rgba(79,70,229,.25);
}
body.dark-theme .gw-adbar__sub{
  color:#9ca3af;
}

/* 備考・注意書き（任意） */
.gw-adbar__note{
  margin-top:6px;
  font-size:11px;
  color:#9ca3af;
}

/* 既存のフルブリード基礎（あなたのCSSに追記でOK） */
.gw-adbar--fullbleed{ width:100%; display:block; clear:both; }
.gw-adbar--fullbleed .gw-adbar__inner{
  max-width:1200px;
  margin:0 auto;
  padding:8px 15px;
  width:100%;
  box-sizing:border-box;
  text-align:center;
}
/* AdSense本体は幅だけ指定（高さは触らない） */
.gw-adbar--fullbleed .adsbygoogle{
  display:block !important;
  width:100% !important;
  height:auto;
}



.character-showcase lite-youtube{
  max-width: 100% !important;
  width: 100%;
}
.character-showcase{ /* 念のため親もフル幅に */
  max-width: 100%;
}


/* === フッター固定位置調整 === */
#footer {
  width: 100%;
  clear: both;
  background-color: #222;   /* デフォルト背景（ダーク系） */
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
  box-sizing: border-box;
}

#copyright {
  margin: 0;
  font-size: 14px;
}

/* === Light Theme === */
html[data-theme="light"], body.light-theme {
  --main-text: #111;
  --main-bg: #fff;
  --grey: #aaa;
  --sub-grey: #eee;

  --link-color-blue: #0066cc;
  --footer-link: #2589d0;
  --footer-link-hover: #5aaaff;
}

/* === Dark Theme === */
html[data-theme="dark"], body.dark-theme {
  --main-text: #ddd;
  --main-bg: #000;
  --grey: #666;
  --sub-grey: #333;

  --link-color-white: #fff;
  --link-color-red: #FF0099;
  --link-color-blue: #0bd;
  --footer-link: #58a6ff;
  --footer-link-hover: #79c0ff;
}


/* =========================================================
   固定バー (top-fixed-bar)
   - 左: メニュー, 中央: SNS, 右: ダークモードスイッチ
   - html[data-theme] / body class の両方式に対応
========================================================= */

/* 固定バー用トークン（テーマで変えたいならここ） */
:root{
  --fixedbar-h: 56px;
  --icon-size: 22px;

  /* 固定バー：ライト */
  --header-bg-light: transparent;
  --header-fg-light: var(--main-text);
  --header-border-light: #e5e5e5;

  /* 固定バー：ダーク */
  --header-bg-dark: rgba(15,15,15,.85);
  --header-fg-dark: var(--main-text);
  --header-border-dark: #2a2a2a;

  /* SNSリンク色（ライト基準） */
  --link-blue: #0d6efd;
}

/* 固定バー本体 */
.top-fixed-bar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;

  backdrop-filter: saturate(120%) blur(6px);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 14px;
  min-height: var(--fixedbar-h);

  border-bottom: 1px solid var(--header-border-light);
  background: var(--header-bg-light);
  color: var(--header-fg-light);
}

/* 中央に収める */
.top-fixed-bar .inner{
  width: min(1200px, 100%);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* --- ダークモード時（html[data-theme] と body class 両対応） --- */
html[data-theme="dark"] .top-fixed-bar,
body.dark-theme .top-fixed-bar{
  background: var(--header-bg-dark);
  color: var(--header-fg-dark);
  border-bottom: 1px solid var(--header-border-dark);
}

/* 左：ハンバーガー */
#touch-menu{
  width: 60px;
  height: 16px;
  position: relative;
  cursor: pointer;
  color: currentColor;
}
#touch-menu .tm-bar,
#touch-menu .tm-bar::before,
#touch-menu .tm-bar::after{
  content:"";
  display:block;
  position:absolute;
  left:0; right:0;
  height:2px;
  background: currentColor;
  border-radius:1px;
  transition: transform .22s ease, opacity .18s ease;
}
#touch-menu .tm-bar{ top:50%; transform:translateY(-50%); }
#touch-menu .tm-bar::before{ top:-6px; }
#touch-menu .tm-bar::after{ top:6px; }

#touch-menu.on .tm-bar{ background:transparent; }
#touch-menu.on .tm-bar::before{ transform:translateY(6px) rotate(45deg); }
#touch-menu.on .tm-bar::after{ transform:translateY(-6px) rotate(-45deg); }

/* 中央：SNS */
.social-icons{
  display:flex;
  gap:8px;
}
.social-icons a{
  display:flex;
  align-items:center;
  justify-content:center;

  width:28px;
  height:28px;

  color: var(--link-blue);
  text-decoration:none;
}
.social-icons svg{
  width: var(--icon-size);
  height: var(--icon-size);
  fill: currentColor;
  stroke: currentColor;
}

/* ダーク時SNS色（白にしたい場合） */
html[data-theme="dark"] .social-icons a,
body.dark-theme .social-icons a{
  color: var(--link-color-white, #fff);
}

/* 右：トグル */
.color-mode{
  display:flex;
  align-items:center;
  gap:8px;
}
.color-mode .mode-label{
  font-size:14px;
}

/* スイッチ */
.btn-switch{
  display:inline-block;
  width:44px;
  height:24px;
  position:relative;

  border:1px solid var(--header-border-light);
  border-radius:999px;
  background:#f6f6f6;
}

/* inputは見えなくする（labelクリックで切替） */
#btn-mode{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* つまみ */
#btn-mode + .btn-switch::before{
  content:"";
  position:absolute;
  top:2px; left:2px;
  width:20px; height:20px;
  border-radius:50%;
  background:#333;
  transition: transform .2s ease, background .2s ease;
}
#btn-mode:checked + .btn-switch::before{
  transform: translateX(20px);
}

/* ダーク時スイッチ */
html[data-theme="dark"] .btn-switch,
body.dark-theme .btn-switch{
  border-color: var(--header-border-dark);
  background:#1e1e1e;
}
html[data-theme="dark"] #btn-mode + .btn-switch::before,
body.dark-theme #btn-mode + .btn-switch::before{
  background:#ddd;
}



/* === Footer Privacy Policy Link === */
#footer .footer-link {
  color: var(--footer-link);
  font-weight: 600;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

#footer .footer-link:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}



#main {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
}

#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6 {
  line-height: 1.3;
  font-weight: bold;
}

#main h1 {
  font-size: clamp(24px, 4vw, 36px);
}
/*#main h2 {
  font-size: clamp(20px, 3.5vw, 30px);
}*/
#main h3 {
  font-size: clamp(18px, 3vw, 26px);
}
#main h4 {
  font-size: clamp(16px, 2.5vw, 22px);
}
#main h5 {
  font-size: clamp(15px, 2vw, 20px);
}
#main h6 {
  font-size: clamp(14px, 1.5vw, 18px);
}

#main p,
#main li,
#main td,
#main th,
#main span,
#main div {
  font-size: clamp(14px, 2vw, 18px);
}

#main table {
  font-size: clamp(13px, 1.8vw, 17px);
}


/*モーダルウィンドー*/

.modal-content {
    background-color: #ffffff;
}

/*#eventDetails {
    color: #000;
}*/

#eventEyecatch {
    cursor: pointer; /* サブネイルにポインターカーソルを表示 */
}

#eventModal {
    z-index: 99999;
}

/*FullCarendar*/
.fc-h-event .fc-event-main {
    cursor: pointer; /* 記事タイトルポインターカーソルを表示 */

}

/*ロゴ*/

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width:1200px;
    margin: 15px auto;
      margin-top: var(--fixedbar-h);

}

.customizer-logo img {
    float: left;
}

.management-logo img {
    float: right;
}

/* モバイルデバイス用のスタイル */
@media (max-width: 767px) {
    .logo-container .customizer-logo img {
        display: none;
    }
    
    .management-logo img {
        display: none;
    }
}


//* ＝＝＝＝＝＝＝＝＝＝＝＝＝ フォントサイズ & Typography ＝＝＝＝＝＝＝＝＝＝＝＝＝ */



h4 {
  font-size: 1.125rem;
  line-height: 1.4;
  background: url(images/sprite.svg) no-repeat;
  background-size: 302px 900px;
  background-position: 0 -200px;
  border-block: 3px #f8bbd0 solid;
  padding: 10px 0 8px 25px;
  margin-bottom: 15px;
  fill: #000;
}

h4 {
  position: relative;
  border-top: solid 2px #f8bbd0;
  border-bottom: solid 2px #f8bbd0;
  border-left: solid 2px #f8bbd0;
  border-right: solid 2px #f8bbd0;
  border-radius: 5px 5px 5px 5px;
  background: -webkit-repeating-linear-gradient(-45deg, #ffe6e6, #ffe6e6 3px, #ffd9d9 3px, #ffd9d9 7px, #ffe6e6 7px);
  background: repeating-linear-gradient(-45deg, #ffe6e6, #ffe6e6 3px, #ffd9d9 3px, #ffd9d9 7px, #ffe6e6 7px);
  padding: 0.4em 0.5em;
  margin: 2em 0 0.5em;
  color: #000;
}

h4:after {
  /*タブ*/
  position: absolute;
  font-family: "Font Awesome 5 Free",'Quicksand','Avenir','Arial',sans-serif;
  font-weight: 900;
  content: '\f0a7\ POINT';
  background: #f8bbd0;
  color: #fff;
  left: 0px;
  bottom: 100%;
  border-radius: 5px 5px 0 0;
  padding: 5px 7px 3px;
  /*font-size: 0.7em;*/
  line-height: 1;
  letter-spacing: 0.05em;
}

  /*Check*/
h5 {
  position: relative;
  color: #000;
  outline: auto;
  outline-color: #6cb4e4;
  background: -webkit-repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px,#e9f4ff 3px, #e9f4ff 7px);
  background: repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px,#e9f4ff 3px, #e9f4ff 7px);
  padding:0.4em 0.5em;
  margin: 2em 0 0.5em;
  border-radius: 0 5px 5px 5px;
}

h5:after {
  position: absolute;
  font-family: "Font Awesome 5 Free",'Quicksand','Avenir','Arial',sans-serif;
  font-weight: 900;
  content: '\f00c Check';
  background: #2196F3;
  color: #fff;
  left: 0px;
  bottom: 100%;
  border-radius: 5px 5px 0 0;
  padding: 3px 7px 1px;
  /*font-size: 0.7em;*/
  line-height: 1;
  letter-spacing: 0.05em
}

h6 {
  font-size: 1.125rem;
  line-height: 1.4;
  background: url(images/sprite.svg) no-repeat;
  background-size: 302px 900px;
  background-position: 0 -200px;
  border-block: 3px #f8bbd0 solid;
  padding: 10px 0 8px 25px;
  margin-bottom: 15px;
  fill: #000;
}　


/* ＝＝＝＝＝＝＝＝＝＝＝＝＝ Swiper Customize & look at Bundle Page too  ＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/*@import url('/css/swiper-bundle.css');*/

/* Swiperの基本設定 */
.swiper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1280px; /* 追加 */
    margin: 0 auto; /* 追加 */
}



/* スライド要素 */
.swiper-slide {
    text-align: center;
    font-size: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* ナビゲーションボタンのスタイル */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    width: 27px;
    height: 44px;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
    display: block;
}

/* 前へボタンの位置 */
.swiper-button-prev {
    left: 10px;
}

/* 次へボタンの位置 */
.swiper-button-next {
    right: 10px;
}

/* アイコン位置の微調整 */
.swiper-button-prev:after {
    margin-left: 0; /* 必要に応じて調整 */
}

/* カスタムスタイルの追加 */
/*.nav-item-thumbnail {
    max-width: 100px; 
    margin-right: 10px; 
}*/

.swiper {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
}


/* =========================================================
   Single Slider (main + thumbs)　single.php記事　
   - 上：メイン1枚
   - 下：サムネ横並び（見た目3カラム）
========================================================= */

/* 全体 */
.gw-single-slider{
  max-width: 100%;
  margin: 18px 0;
}

/* ---------- 上：メイン ---------- */
.gw-single-slider .gw-swiper-main{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.gw-single-slider .gw-swiper-main .swiper-slide img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;   /* 必要なら変更 */
  object-fit: cover;
}

/* 矢印（好みで） */
.gw-single-slider .gw-swiper-main .swiper-button-prev,
.gw-single-slider .gw-swiper-main .swiper-button-next{
  /* Swiper標準の色が見づらい時だけ */
  /* color: #fff; */
}

/* ---------- 下：サムネ ---------- */
.gw-single-slider .gw-swiper-thumbs{
  margin-top: 10px;
  width: 100%;
}

/* サムネのスライド枠 */
.gw-single-slider .gw-swiper-thumbs .swiper-slide{
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: .82;
  transform: translateZ(0);
}

/* サムネ画像 */
.gw-single-slider .gw-swiper-thumbs .swiper-slide img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;  /* メインと揃える */
  object-fit: cover;
}

/* アクティブサムネ（選択中） */
.gw-single-slider .gw-swiper-thumbs .swiper-slide-thumb-active{
  opacity: 1;
  outline: 2px solid rgba(255,255,255,.95);
  outline-offset: 2px;
}

/* サムネが小さくて押しづらい時の最小高さ（任意） */
@media (max-width: 520px){
  .gw-single-slider .gw-swiper-thumbs .swiper-slide img{
    aspect-ratio: 16 / 10;
  }
}


/*スクロールボタン*/
#topBtn{
  background:#111;
  color:#fff;
  border:0;
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}
#topBtn:hover{ opacity:1 !important; }




/* Dark Mode */
.color-mode p {
    color: #ccc;
    font-size: .875rem;
    margin: 4px 10px 0 0
}

.color-mode #btn-mode {
    opacity: 0;
    -webkit-appearance: none;
    appearance: none;
    position: absolute
}

.color-mode #btn-mode:checked+.btn-switch {
    background-color: #0bd;
}

.color-mode #btn-mode:checked+.btn-switch:after {
    content: "ON";
    left: 30px
}

.color-mode .btn-switch {
    width: 68px;
    height: 24px;
    background: #ccc;
    position: relative;
    display: inline-block;
    margin: 5px;
}

.color-mode .btn-switch:after {
    color: #666;
    content: "OFF";
    text-align: center;
    padding: 0;
    position: absolute;
    width: 40px;
    background: #f6f6f6;
    left: 0;
    transition: .5s;
    height: -webkit-fill-available;
}

.color-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

body.light-theme{
  --main-text:#333;
  --main-bg:#fff;
  --grey:#ccc;
  --sub-grey:#eee;
}

body.dark-theme{
  --main-text:#ddd;
  --main-bg:#000;
  --grey:#666;
  --sub-grey:#333;
}

/* 実際に使う（これがないと変わった気がしない） */
body{
  background: var(--main-bg);
  color: var(--main-text);
}


/* SNS footer header */
.foot-socials ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.foot-socials li {
    margin-right: 10px;
}

.foot-socials a {
    text-decoration: none;
    /*color: #333;*/
}

.icon {
    width: 24px;
    height: 24px;
    fill: #007bff;
}

/* PCの場合のスタイル */
@media (min-width: 768px) {
    .foot-socials ul {
        justify-content: flex-start !important;
    }
}

/* モバイル、タブレット */
@media (max-width: 991px) {
    .foot-socials ul {
        align-items: center;
    }

    .foot-socials li {
        margin-right: 0;
        margin-bottom: 10px;
    }
}



/* bodyの基本スタイル */
body {
    /* 共通のスタイル */
    color: var(--main-text);
    background-color: var(--main-bg);
    padding: 0;
    margin: 0 auto;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
    font-family: "Inter","Lucida Grande", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", "Yu Gothic", sans-serif;
    /*font-size: 16px;
    line-height: 1.7; /* 16pxのテキストに対する行の高さの倍率 */
}

/* 768px以下の画面サイズに対するスタイル */
@media (max-width: 768px) {
    body {
        font-size: 0.875rem; /* 14px */
    }
}

/* 576px以下の画面サイズに対するスタイル */
@media (max-width: 576px) {
    body {
        font-size: 0.75rem; /* 12px */
    }
}

/* 共通のリンクスタイル */
.my-link-blue {
    color: var(--link-color-blue);
}

.my-link-red {
    color: var(--link-color-red);
}

.my-link-white {
    color: var(--link-color-white);
}

.my-link-black {
    color: var(--link-color-black);
}

/* ライトモードテーマごとのスタイル */
body.light-theme {
    --main-text: #333;
    --main-bg: #fff;
    --grey: #ccc;
    --sub-grey: #eee;
    --link-color-blue: #0bd; /* ライトモード時の青のリンクの色を以前の色に戻す */
}

/* ▼ ダークテーマ変数 */
body.dark-theme {
    --main-text: #ddd;
    --main-bg: #000;
    --grey: #666;
    --sub-grey: #333;
    --link-color-white: #fff;
    --link-color-red: #FF0099;
    --link-color-blue: #0bd;
}

/* ▼ ライトテーマ変数 */
body.light-theme {
    --main-text: #111;
    --main-bg: #fff;
    --grey: #aaa;
    --sub-grey: #eee;
    --link-color-blue: #0066cc;
}

/* ▼ フッター内リンク共通 */
.footer-wrapper a {
    color: var(--link-color-blue);
    text-decoration: none;
}
.footer-wrapper a:hover {
    color: var(--link-color-red); /* hover時ピンクに */
    text-decoration: underline;
}


/* ダークモード時のリンクの色 */
body.dark-theme .my-link-blue {
    color: var(--link-color-white); /* ダークモード時のリンクの色を白に変更 */
}

/* ライトモード時のリンクの色 */
body.light-theme .my-link-white {
    color: var(--link-color-blue); /* ライトモード時のリンクの色を青に変更 */
}

/* ダークモード時のリンクの色 */
body.dark-theme .my-link-red {
    color: var(--link-color-red);
}

/* 通常のリンクの色 */
.my-link-black {
    color: var(--link-color-black);
}

/* グローバルなリンクの色変数 */
:root {
    --link-color-blue: #0bd; /* 青のリンクの色 */
    --link-color-red: #FF0099; /* 赤のリンクの色 */
    --link-color-white: #fff; /* 白のリンクの色 */
    --link-color-black: #333; /* 黒のリンクの色 */
}



/* OK: #main h1, #main h2  ← #main配下だけに限定 */
#main h1,
#main h2 {
  font-size: 1.125rem;
  line-height: 1.4;
  background: url(images/sprite.svg) no-repeat;
  background-size: 302px 900px;
  background-position: 0 -200px;
  padding: 5px 20px 5px;
  margin-bottom: 0px;
  fill: #000;
  color: var(--link-color-blue);
  display: flex;
  white-space: normal;
  justify-content: space-between;
}


#main h3 {
    font-size: 1.125rem;
    line-height: 1.4;

}

/* ===== pタグ共通スタイル ===== */
#main p,
#single p,
#sidebar p {
    font-family: 'Arial', sans-serif;  /* 読みやすいフォント */
    /*font-size: 14px;*/               /* 標準本文サイズ */
    line-height: 1.6;                  /* 行間を広めに */
    margin: 0 0 12px;                  /* 段落間の余白 */
    padding: 5px;
    word-break: break-word;            /* 単語の折り返し */
}

/* サイドバー専用で少し小さくしたい場合 */



/* Thumbnail for Ribon* for blog.php */

/* 投稿・リボンスタイル */
.box {
    position: relative;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 15px rgba(0,0,0,.1);
    z-index: 1;
}

.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
}

.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid #2980b9;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 5px 0;
    background-color: #3498db;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    color: #fff;
    font: 700 18px/1 'Lato', sans-serif;
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
    text-transform: uppercase;
    text-align: center;
}

.ribbon-top-left {
    top: -10px;
    left: -10px;
}

.ribbon-top-left::before,
.ribbon-top-left::after {
    border-top-color: transparent;
    border-left-color: transparent;
}

.ribbon-top-left::before {
    top: 0;
    right: 0;
}

.ribbon-top-left::after {
    bottom: 0;
    left: 0;
}

.ribbon-top-left span {
    right: 5px;
    top: 18px;
    transform: rotate(-45deg);
}

/* ヘッダーアサイドスタイル */
/*swiper slide と重なるために調整*/
.header-aside {
    left: 0;
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 10000;
    display: none; /* 初期状態では非表示 */

}

/*@media screen and (max-width: 1080px) {
    .social-icons {
        display: none;
    }
}*/


.ta-icon {
    display: block;
    background: url(images/social-sprite.jpeg) no-repeat;
    height: 21px;
    margin-bottom: 18px;
    text-indent: 110%;
    overflow: hidden;
    width: 22px;
    color: #fff;
    text-decoration: none;
}

.ta-facebook {
    background-position: -31px 0;
}

.ta-google {
    background-position: -66px 0;
}

.ta-instagram {
    background-position: -99px 0;
}

.ta-pinterest {
    background-position: -130px 0;
}

.ta-vimeo {
    background-position: -163px 0;
}

.ta-youtube {
    background-position: -196px 0;
}

.ta-linkedin {
    background-position: -230px 0;
}


/*メガメニューh7*/

@media (min-width: 990px) {

h7 {
    display: flex;
    white-space: normal;
    justify-content: space-between;
    flex-wrap: wrap;
        /*color: var(--link-color-black);*/
    }

}

@media (max-width: 989px) {
    h7 {
        display: flex;
        white-space: normal;
        justify-content: space-between;
        flex-wrap: wrap;
        color: var(--link-color-black);
        /*text-align: center;*/
        padding-left: 20px;
        /*margin: 20px 100px 0px;*/
    }
}





/* =========================================================
   GLOBAL NAV（style.css：セレクタ設計側 / 完全統一版）
   目的：
   - 背景ホバー禁止（transparent固定）
   - Top(1階層) hover=赤 / Panel(サブ・メガ) hover=ピンク
   - “spanだけ黒/プラグイン色固定” を根絶（inherit）
   - “1文字改行” を nav 内だけ正常化
   - 2階層は「右に出す」（横並び）
   - 角丸は不要（radius=0）
========================================================= */

/* =========================================================
   0) DEFAULT TOKENS（原神以外でも成立）
   ※ 原神ページは sample.css が上書きする
========================================================= */
:root{
  /* TOP BAR（上の帯） */
  --nav-bar-bg: #2a2f38;
  --nav-bar-text: #ffffff;

  /* PANELS（ドロップダウン/メガ/メガパネルの箱） */
  --nav-panel-bg: #2a2f38;
  --nav-panel-text: #f2f2f2;
  --nav-panel-border: #3a404b;

  /* HOVER */
  --nav-hover-top-text: #ff3b30;   /* ★トップ(1階層) hover = 赤 */
  --nav-hover-panel-text: #fe56aa;/* ★パネル内 hover = ピンク */

  /* サイズ */
  --submenu-minw: 260px;           /* 1文字改行の主犯＝幅不足対策 */
  --submenu-font-size: 14px;
  --submenu-pad-y: 8px;
  --submenu-pad-x: 12px;

  --icon-size: 28px;
  --max-width: 1200px;

  /* 見た目（角丸いらない） */
  --nav-bar-radius: 0px;
  --nav-panel-radius: 5px;
  --nav-bar-shadow: none;
  --nav-panel-shadow: 0 16px 40px rgba(0,0,0,.35);
}

/* =========================================================
   1) 共通：NAV内の色は “継承” に統一
   - a に色を直書きしない
   - 親（#primary-menu / パネル）に color を置いて、a は inherit
   - hover時：a の color を変えれば span 等も全部ついてくる
========================================================= */
#site-nav #primary-menu a{
  text-decoration: none;
  color: inherit;               /* ★親の color を必ず継承 */
  background: transparent;      /* 背景ホバー禁止 */
}

/* “縦文字(1文字改行)” を nav 内だけ正常化 */
#site-nav #primary-menu,
#site-nav #primary-menu *{
  word-break: normal;
  overflow-wrap: normal;
}

/* menu-image系（プラグインが色固定するのを戻す） */
#site-nav #primary-menu .menu-image-title,
#site-nav #primary-menu .menu-image-title-before,
#site-nav #primary-menu .menu-image-title-after{
  color: inherit;
}

/* 画像は消さない（最小限） */
#site-nav #primary-menu img,
#site-nav #primary-menu .menu-image,
#site-nav #primary-menu .menu-thumb-image,
#site-nav #primary-menu .menu-image-hover-wrapper img{
  display: inline-block;
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: cover;
  border-radius: 6px;
  vertical-align: middle;
}

/* =========================================================
   2) PC ONLY（992px〜）
========================================================= */
@media (min-width: 992px){

  /* reset */
  #site-nav #primary-menu,
  #site-nav #primary-menu ul{
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* -----------------------------
     TOP NAV（1階層の帯）
  ----------------------------- */
  #site-nav #primary-menu{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;

    background: var(--nav-bar-bg);
    color: var(--nav-bar-text); /* ★文字色はここ */
    border-radius: var(--nav-bar-radius);
    box-shadow: var(--nav-bar-shadow);
  }

  #site-nav #primary-menu > li{ position: relative; }

  #site-nav #primary-menu > li > a{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* ★トップ(1階層) hover = 赤（子要素も inherit で追従） */
  #site-nav #primary-menu > li > a:hover,
  #site-nav #primary-menu > li > a:focus-visible{
    color: var(--nav-hover-top-text);
    background: transparent;
  }
  #site-nav #primary-menu > li > a:hover *,
  #site-nav #primary-menu > li > a:focus-visible *{
    color: inherit;
  }

  /* -----------------------------
     通常ドロップダウン（1階層 sub-menu）
  ----------------------------- */
  #site-nav #primary-menu > li > ul.sub-menu{
    position: absolute;
    top: 100%;
    left: 0;

    min-width: var(--submenu-minw);
    padding: 6px 0;

    background: var(--nav-panel-bg);
    color: var(--nav-panel-text);          /* ★パネル文字色はここ */
    border: 1px solid var(--nav-panel-border);
    border-radius: var(--nav-panel-radius);
    box-shadow: var(--nav-panel-shadow);

    display: none;
    z-index: 10001;

    overflow: visible; /* ★2階層を外に出すため */
  }

  #site-nav #primary-menu > li:not(.mega-menu):hover > ul.sub-menu{
    display: block;
  }

  #site-nav #primary-menu > li > ul.sub-menu a{
    display: flex;
    align-items: center;
    gap: 10px;

    padding: var(--submenu-pad-y) var(--submenu-pad-x);
    font-size: var(--submenu-font-size);
    line-height: 1.35;

    /* 折り返しは単語単位、1文字改行は禁止 */
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* ★パネル内 hover = ピンク */
  #site-nav #primary-menu > li > ul.sub-menu a:hover,
  #site-nav #primary-menu > li > ul.sub-menu a:focus-visible{
    color: var(--nav-hover-panel-text);
    background: transparent;
  }
  #site-nav #primary-menu > li > ul.sub-menu a:hover *,
  #site-nav #primary-menu > li > ul.sub-menu a:focus-visible *{
    color: inherit;
  }

  /* -----------------------------
     2階層：右に出す（横並び）
  ----------------------------- */
  #site-nav #primary-menu > li:not(.mega-menu) > ul.sub-menu > li{
    position: relative; /* 2階層の基準 */
  }

  #site-nav #primary-menu > li:not(.mega-menu) > ul.sub-menu > li > ul.sub-menu{
    position: absolute;
    top: -6px;          /* 上揃え微調整（不要なら0） */
    left: 100%;

    min-width: var(--submenu-minw);
    padding: 6px 0;

    background: var(--nav-panel-bg);
    color: var(--nav-panel-text);
    border: 1px solid var(--nav-panel-border);
    border-radius: var(--nav-panel-radius);
    box-shadow: var(--nav-panel-shadow);

    display: none;
    z-index: 10002;
  }

  #site-nav #primary-menu > li:not(.mega-menu) > ul.sub-menu > li:hover > ul.sub-menu{
    display: block;
  }

  /* 2階層の親に右矢印（分かりやすく） */
  #site-nav #primary-menu > li:not(.mega-menu) > ul.sub-menu > li.menu-item-has-children > a{
    padding-right: 28px;
    position: relative;
  }
  #site-nav #primary-menu > li:not(.mega-menu) > ul.sub-menu > li.menu-item-has-children > a::after{
    content:"\f105";
    font-family:"Font Awesome 5 Free";
    font-weight:900;
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    font-size:12px;
    opacity:.9;
    color: currentColor;
  }

  /* -----------------------------
     MEGA MENU（.mega-menu）
     ※ ここは “レイアウト維持” を優先（今の見た目ができてるなら壊さない）
  ----------------------------- */
  #site-nav #primary-menu > li.mega-menu{ position: static; }

  #site-nav #primary-menu > li.mega-menu > ul.sub-menu{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    display: none;
    z-index: 10003;

    background: var(--nav-panel-bg);
    color: var(--nav-panel-text);
    border: 1px solid var(--nav-panel-border);
    border-radius: var(--nav-panel-radius);
    box-shadow: var(--nav-panel-shadow);

    /* 余白を減らして詰める */
    padding: 6px;
    width: min(92vw, var(--max-width));
  }

  #site-nav #primary-menu > li.mega-menu:hover > ul.sub-menu{
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px; /* ★余白少なめ */
    align-items: flex-start;
    justify-content: flex-start;
  }

  /* メガ内リンク（折り返しOK、ホバーはピンク） */
  #site-nav #primary-menu > li.mega-menu > ul.sub-menu a{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    line-height: 1.25;

    white-space: normal;
    overflow-wrap: break-word;
  }
  #site-nav #primary-menu > li.mega-menu > ul.sub-menu a:hover,
  #site-nav #primary-menu > li.mega-menu > ul.sub-menu a:focus-visible{
    color: var(--nav-hover-panel-text);
  }
  #site-nav #primary-menu > li.mega-menu > ul.sub-menu a:hover *,
  #site-nav #primary-menu > li.mega-menu > ul.sub-menu a:focus-visible *{
    color: inherit;
  }

  /* -----------------------------
     MEGA PANEL（.mega-panel：swiper/custom）
     ※ “黒文字事故” は親の color で止める
  ----------------------------- */
  #site-nav #primary-menu > li.is-mega-swiper,
  #site-nav #primary-menu > li.is-mega,
  #site-nav #primary-menu > li.mega-beginner{
    position: static;
  }

  #site-nav #primary-menu > li.is-mega-swiper > .mega-panel,
  #site-nav #primary-menu > li.is-mega        > .mega-panel,
  #site-nav #primary-menu > li.mega-beginner  > .mega-panel{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    width: min(95vw, var(--max-width));
    display: none;
    z-index: 10004;

    background: var(--nav-panel-bg);
    color: var(--nav-panel-text);          /* ★ここで黒文字事故終了 */
    border: 1px solid var(--nav-panel-border);
    border-radius: var(--nav-panel-radius);
    box-shadow: var(--nav-panel-shadow);

    padding: 8px; /* 余白削減 */
    box-sizing: border-box;
  }

  #site-nav #primary-menu > li.is-mega-swiper:hover > .mega-panel,
  #site-nav #primary-menu > li.is-mega:hover        > .mega-panel,
  #site-nav #primary-menu > li.mega-beginner:hover  > .mega-panel{
    display: block;
    height: auto;
  }

  /* パネル内リンク hover = ピンク */
  #site-nav #primary-menu .mega-panel a:hover,
  #site-nav #primary-menu .mega-panel a:focus-visible{
    color: var(--nav-hover-panel-text);
  }
  #site-nav #primary-menu .mega-panel a:hover *,
  #site-nav #primary-menu .mega-panel a:focus-visible *{
    color: inherit;
  }
}

/* =========================================================
   3) モバイル折りたたみ（slicknav想定）
   黒文字事故の保険：親に色を置いて a は inherit
========================================================= */
@media (max-width: 991.98px){
  .slicknav_nav{
    background: var(--nav-panel-bg);
    color: var(--nav-panel-text);
  }
  .slicknav_nav a{
    color: inherit;
    background: transparent;
  }
  .slicknav_nav a:hover,
  .slicknav_nav a:focus-visible{
    color: var(--nav-hover-panel-text); /* モバイルはピンクでOK */
    background: transparent;
  }
  .slicknav_nav a:hover *,
  .slicknav_nav a:focus-visible *{
    color: inherit;
  }
}


/* =========================================================
   4) 3カラム パネル（Swiperと競合させない版）
   - 対象は「li.mega-menu かつ .is-mega-swiper じゃないもの」だけ
========================================================= */
@media (min-width: 992px){

  :root{
    --mega-col-w: 220px;
    --mega-gap-x: 12px;
    --mega-gap-y: 10px;
    --mega-pad: 10px;
  }

  /* ★3カラム対象を隔離（Swiperは除外） */
  #site-nav #primary-menu > li.mega-menu:not(.is-mega-swiper){ position: static; }

  /* 通常は隠す */
  #site-nav #primary-menu > li.mega-menu:not(.is-mega-swiper) > ul.sub-menu{
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    display:none;
    z-index:10020;

    background: var(--nav-bar-bg);
    color: var(--nav-bar-text);
    border-radius: 0;
    border: 1px solid rgba(255,255,255,.10);
    padding: var(--mega-pad);

    width: min(
      92vw,
      calc((var(--mega-col-w) * 3) + (var(--mega-gap-x) * 3) + (var(--mega-pad) * 3))
    );
  }

  /* hover の時だけ表示 */
  #site-nav #primary-menu > li.mega-menu:not(.is-mega-swiper):hover > ul.sub-menu{
    display:flex;
    flex-wrap:wrap;
    gap: var(--mega-gap-y) var(--mega-gap-x);
    align-content:flex-start;
  }

  /* 3列固定 */
  #site-nav #primary-menu > li.mega-menu:not(.is-mega-swiper) > ul.sub-menu > li{
    flex: 0 0 var(--mega-col-w);
    max-width: var(--mega-col-w);
  }

  /* 画像+文字（横並び） */
  #site-nav #primary-menu > li.mega-menu:not(.is-mega-swiper) > ul.sub-menu a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:6px 8px;
    white-space:normal;
    word-break:normal;
    overflow-wrap:break-word;
  }

  /* ★「3カラムの画像が消える」対策：画像を潰さない */
  #site-nav #primary-menu > li.mega-menu:not(.is-mega-swiper) > ul.sub-menu a img{
    display:block;
    width:40px;
    height:40px;
    flex:0 0 40px;
    object-fit:contain; /* cover にしたければ cover */
  }
}


@media (min-width: 992px){
  #site-nav #primary-menu > li.mega-menu > ul.sub-menu > li.title-category > .mega-sub-label{
    display:flex;              /* a と同じ箱にする */
    align-items:center;
    padding:6px 8px;
    gap:10px;
    font-weight:600;
    cursor:default;
  }
}



/* =========================================================
   MEGA SWIPER 1) 構造・レイアウト
========================================================= */
@media (min-width: 992px){

  #site-nav #primary-menu > li.is-mega-swiper > .mega-panel.mega-swiper{
    display:none;
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    width:min(95vw, var(--max-width, 1200px));
    z-index:10004;

    background: var(--nav-panel-bg, #2a2f38);
    color:      var(--nav-panel-text, #f2f2f2);
    border: 1px solid var(--nav-panel-border, #3a404b);
    box-shadow: var(--nav-panel-shadow, 0 16px 40px rgba(0,0,0,.35));

    padding: 10px 10px 44px;
    box-sizing:border-box;

    min-height: calc(var(--nav-swiper-media-h, 240px) + 70px);
    overflow:hidden;
  }
  #site-nav #primary-menu > li.is-mega-swiper:hover > .mega-panel.mega-swiper{
    display:block;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper > ul.sub-menu{
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    gap: var(--nav-swiper-gap, 12px);
    align-items:stretch;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper > ul.sub-menu > li{
    box-sizing:border-box;
    display:flex;
    align-items:stretch;
    flex: 0 0 calc((100% - (var(--nav-swiper-gap, 12px) * 2)) / 3);
    max-width: calc((100% - (var(--nav-swiper-gap, 12px) * 2)) / 3);
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .menu-card{
    width:100%;
    display:flex;
    flex-direction:column;
    gap: 8px;
    align-items:stretch;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .menu-media{
    width:100%;
    height: var(--nav-swiper-media-h, 240px);
    border-radius: 12px;
    overflow:hidden;
    background:#000;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .menu-media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .menu-media lite-youtube{
    width:100%;
    height:100%;
    display:block;
  }
  #site-nav #primary-menu .mega-panel.mega-swiper .menu-media lite-youtube::before{
    content:"";
    display:block;
    padding-top:0;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .menu-title-link{
    display:block;
    line-height:1.25;
    white-space:normal;
    word-break:normal;
    overflow-wrap:break-word;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper a:hover,
  #site-nav #primary-menu .mega-panel.mega-swiper a:focus-visible{
    color: var(--nav-link-hover-text, #fe56aa);
    background: transparent;
  }
  #site-nav #primary-menu .mega-panel.mega-swiper a:hover *,
  #site-nav #primary-menu .mega-panel.mega-swiper a:focus-visible *{
    color: inherit;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-pagination{
    bottom: 12px;
  }
}

/* =========================================================
   MEGA SWIPER 2) 矢印位置（画像の中央）
   ※ここだけ触れば位置調整できる  swiper wrapper 高さが 288px
========================================================= */
@media (min-width: 992px){
  :root{
    --mega-swiper-pad-top: 10px; /* パネルの上paddingと同じ */
    --sw-arrow-offset-y: 0px;    /* 微調整用 */
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-prev,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-next{
    bottom:auto;
    top: calc(var(--mega-swiper-pad-top) + (var(--nav-swiper-media-h, 288px) / 2) + var(--sw-arrow-offset-y));
    transform: translateY(-50%);
  }
}

/* =========================================================
   MEGA SWIPER 3) 矢印見た目（丸ボタン）
========================================================= */
@media (min-width: 992px){
  :root{
    --sw-arrow-size: 44px;
    --sw-arrow-bg: rgba(255,255,255,.85);
    --sw-arrow-border: rgba(0,0,0,.25);
    --sw-arrow-icon: rgba(0,0,0,.80);
    --sw-arrow-shadow: 0 6px 18px rgba(0,0,0,.25);
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-prev,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-next{
    width: var(--sw-arrow-size);
    height: var(--sw-arrow-size);
    border-radius: 999px;
    background: var(--sw-arrow-bg);
    border: 1px solid var(--sw-arrow-border);
    box-shadow: var(--sw-arrow-shadow);
    display:flex;
    align-items:center;
    justify-content:center;
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-prev::after,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-next::after{
    color: var(--sw-arrow-icon);
    font-size: 18px;
    font-weight: 900;
  }
}



@media (min-width: 992px){

  /* ====== 丸い矢印ボタン（白背景でも見える） ====== */
  :root{
    --sw-arrow-size: 44px;                 /* ボタンの直径 */
    --sw-arrow-bg: rgba(255,255,255,.85);  /* ボタン背景（白寄りで見える） */
    --sw-arrow-border: rgba(0,0,0,.25);    /* 輪郭（白背景でも沈まない） */
    --sw-arrow-icon: rgba(0,0,0,.80);      /* 矢印の色（黒寄りで視認性） */
    --sw-arrow-shadow: 0 6px 18px rgba(0,0,0,.25);
  }

  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-prev,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-next{
    width: var(--sw-arrow-size);
    height: var(--sw-arrow-size);

    border-radius: 999px;
    background: var(--sw-arrow-bg);
    border: 1px solid var(--sw-arrow-border);
    box-shadow: var(--sw-arrow-shadow);

    /* 中央寄せ */
    display:flex;
    align-items:center;
    justify-content:center;

    /* 画像上で見えるように */
    backdrop-filter: blur(2px); /* いらなければ消してOK */
  }

  /* Swiperの矢印文字（::after）を中央に＆色を指定 */
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-prev::after,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-next::after{
    color: var(--sw-arrow-icon);
    font-size: 18px;     /* 矢印サイズ */
    font-weight: 900;
  }

  /* hover/focusで少し強調（視認性UP） */
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-prev:hover,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-next:hover,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-prev:focus-visible,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-next:focus-visible{
    background: rgba(255,255,255,.95);
    border-color: rgba(0,0,0,.35);
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
  }

  /* クリックの邪魔になることがあるので必要なら */
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-prev,
  #site-nav #primary-menu .mega-panel.mega-swiper .swiper-button-next{
    user-select:none;
  }
}











/* =========================================================
   レスポンシブ
========================================================= */
@media (max-width:767px){:root{--mega-media-h:180px;}}
@media (min-width:1200px){#primary-menu > li.mega-menu > ul{width:500px;}}


/* =========================================================
   モバイル用ナビ（画面幅991px以下）
   ========================================================= */
@media (max-width: 991px){
  #primary-menu { display:none; } /* PCメニューは消す */

  /* ハンバーガーボタン */
  .nav-toggle {
    display:block;
    width:40px; height:40px;
    background:none; border:0;
  }
  .nav-toggle .bar {
    display:block;
    width:24px; height:2px;
    background:var(--nav-fg);
    margin:5px auto;
  }

  /* モバイルメニュー本体 */
  #mobile-nav[hidden] { display:none; }
  #mobile-nav {
    background:var(--panel-bg);
    border-top:1px solid var(--border);
  }

  /* モバイル用メニューリスト */
  #mobile-menu {
    list-style:none;
    margin:0; padding:0;
  }
  #mobile-menu > li > a {
    display:block;
    padding:14px 16px;
    color:var(--panel-fg);
    border-bottom:1px solid var(--border);
    text-decoration:none;
  }
  #mobile-menu > li > a:hover {
    background:var(--hover-bg);
    color:var(--hover-fg);
  }

  /* サブはクリックで縦に開く */
  #mobile-menu .sub-menu {
    display:none;
    background:#2f3540;
    padding-left:12px;
  }
  #mobile-menu li.open > .sub-menu { display:block; }

  /* モバイルでのメガメニュー（1カラム縦並び） */
  #mobile-menu > li.mega-menu > .sub-menu,
  #mobile-menu > li.mega-thumbs > .sub-menu {
    display:grid;
    grid-template-columns:1fr; /* スマホでは1列 */
    gap:12px;
    padding:12px;
  }
  #mobile-menu > li.mega-thumbs > .sub-menu img {
    max-width:100%; height:auto;
    border-radius:4px;
  }
}


/* サイト名リンク（PC/モバイル共通） */
.site-brand {
  font-size: 20px;
  font-weight: bold;
  color: var(--nav-fg);
  text-decoration: none;
  padding: 0px;
  display: flex;
  align-items: center;
}
.site-brand:hover {
  color: var(--hover-fg);
}

/* モバイル用に調整 */
@media (max-width: 991px){
  .site-brand {
    display: block;
    padding: 14px 16px;
    text-align: center;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
  }
}

/* =========================================================
   モバイル専用ナビゲーション（〜991px）
   40番 サーチフォーム + メニュー
========================================================= */

/* -----------------------------
   モバイル & タブレット専用
----------------------------- */
@media (max-width: 991px) {

  /* ナビ全体 */
  #mobile-nav {
    position: relative;
    z-index: 1100;
    background: #fff;
    border-bottom: 1px solid #ddd;
    min-height: 56px;
    display: block;
  }

  /* 内部ラッパー：横並び */
  #mobile-nav .mobile-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    gap: 12px;
  }

  /* ========== ハンバーガー（三本線） ========== */
  .mobile-nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
  }
  .mobile-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111;
    margin: 5px 0;
    transition: 0.3s;
  }
  .mobile-nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .mobile-nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* ========== メニューボタン中央配置 ========== */
  .mobile-nav__menu-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
  }

  /* ========== 検索アイコン ========== */
  .mobile-nav__icons {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-nav__search i {
    cursor: pointer;
    font-size: 18px;
    color: #111;
  }
  .mobile-nav__search i.fa-times {
    display: none; /* 初期非表示 */
  }

  /* ========== サーチフォーム ========== */
  #searchform-40 {
    display: none;
    width: 100%;
    margin: 8px 0;
    text-align: center;
  }
  #searchform-40 input[type="search"] {
    width: 90%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  #searchform-40 input[type="submit"] {
    display: none;
  }

  /* ========== メインメニュー ========== */
  .mobile-nav__menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
  }
  .mobile-nav__menu.open {
    display: flex;
  }
  .mobile-nav__menu li {
    border-bottom: 1px solid #eee;
  }
  .mobile-nav__menu li a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #111;
  }

  /* ========== サブメニュー ========== */
  .mobile-nav__submenu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #f9f9f9;
  }
  .mobile-nav__submenu.open {
    display: flex;
  }
  .mobile-nav__submenu li {
    border-bottom: 1px solid #eee;
  }
  .mobile-nav__submenu li a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #333;
  }
}

/* =========================================================
   PC（992px〜）ではモバイルナビを非表示
========================================================= */
@media (min-width: 992px) {
  #mobile-nav,
  #searchform-40 {
    display: none !important;
  }
}

/* =========================================================
   共通ナビ調整（PC用の子メニュー矢印など）
========================================================= */
/* FontAwesome 矢印 (サブメニューを持つ場合) */
#menu-global-navigation ul li.menu-item-has-children > a:after {
    font-family: "Font Awesome 5 Free"; /* FontAwesome */
    content: "\f105"; /* fa-angle-right */
    font-weight: 900;
    float: right;
    font-size: 15px;
}

/* ドロップダウン内のリンク */
#menu-global-navigation .dropdown > li > a {
    display: block;
    width: 100%;
    padding: 0 15px;
    margin: 0;
}

/* =========================================================
   サムネイル付き記事一覧（ブログ/カテゴリ用）
========================================================= */

/* サムネイル側 */
.blog-thumbnail-box {
    flex: 0 0 35%;
    background: #333;
    overflow: hidden;
    height: 100%;
}

/* コンテンツ側（タイトル・抜粋） */
.content-box {
    flex: 1 1 60%;
    min-width: 300px;
}

/* スマホ（767px以下）は縦並び */
@media screen and (max-width: 767px) {
    .post-item {
        flex-direction: column;
    }
    .blog-thumbnail-box,
    .content-box {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* サムネイル汎用サイズ */
.nav-item-thumbnail {
    width: 100px;
    height: 80px;
}



/* sidebar.php sidebar-genshin.php tekken-7.php
for*/


.recent-post-image > h3 a,
.recent-thumbnail-box-big-image > h3 a {
    color: #fff;
    font-weight: 900;
    line-height: 1.2;
}

.recent-post-image:hover,
.recent-thumbnail-box-big-image:hover {
    transform: scale(1.05);
}

.recent-post-image:hover h3,
.recent-thumbnail-box-big-image h3 {
    opacity: 1;
}

.recent-post-image > h3 {
    top: 35px;
    font-size: 16px;
    left: 15px;
    margin: 0;
    opacity: 0;
    position: absolute;
    right: 32px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out 0s;
    z-index: 1;
    padding: 0;
    line-height: 1;
}

.recent-thumbnail-box-big-image > h3 {
    bottom: 35px;
    font-size: 16px;
    left: 35px;
    margin: 0;
    opacity: 0;
    position: absolute;
    right: 35px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out 0s;
    z-index: 1;
}

.recent-post-image,
.recent-thumbnail-box-big-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    height: 100%;
    transition: all 0.3s ease-in-out 0s;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.recent-post-imag image a {
    transition: all 0.3s ease-in-out 0s;
}

@media only screen and (max-width: 768px) {
    .recent-thumbnail-box {
        background: #333 none repeat scroll 0 0;
        float: left;
        margin: 0;
        overflow: hidden;
        width: 50%;
    }
}


/* ページャー pagination*/

.alignleft img {
  width: 100%;
  height:auto;
}

.alignright img {
  width: 100%;
  height:auto;
}

/*single page for IcoMoon*/

/*IcoMoon css*/

/*https://wweb.dev/resources/css-separator-generator/*/

/*[class^="icon-"]:after, [class*=" icon-"]:after {
position:absolute;top:0;left:0;
color:#cb7777;
}*/

.icon-logo {
  width: 300px;
  height: 30px;
  margin: 0px 0px;
}

.icon-arrow-right2 {
  width: 30px;
  height: 30px;
  margin: 0px 5px;
}

.icon-arrow-left2 {
  width: 30px;
  /*float:left;*/
  height: 30px;
  margin: 0px 5px;
}


.icon-price-tags {
  width: 12px;
  height: 37px;
  margin: 0px 5px;
  color: #f2c1be;
}

.icon-clock {
  width: 12px;
  height: 37px;
  margin: 0px 5px;
color: #f2c1be;  
}

/*.icon-clock:before {
content: "\e910";
color: #FF0000;
}
.icon-clock:after {
content: "\e911";
color: #FF0000;
}*/


.icon-newspaper {
  width: 50px;
  height: 37px;
}

/*
SPIKE
https://wweb.dev/resources/css-separator-generator
*/

/*
.spikes {
  position: relative;
  background: #464e54;
  height: 50vh;
}

.spikes::after {
  content: '';
  position: absolute;
  right: 0;
  left: -0%;
  top: 100%;
  z-index: 10;
  display: block;
  height: 55px;
  background-size: 55px 100%;
  background-image: linear-gradient(135deg, #464e54 25%, transparent 25%), linear-gradient(225deg, #464e54 25%, transparent 25%);
  background-position: 0 0;
}
*/





/*651以上からフォントサイズ*/
/*@media only screen and (min-width:651px) {
  #sidebar, .widget h2 {
    font-size: 1.5rem;
  }
}*/

/*CSVデザインの見出し*/
.side-title {
    background: url(images/sprite.svg) no-repeat;
    background-size: 302px 900px;
    background-position: 0 -300px;
    /*font-family: 'Cookie', cursive;*/
    font-family: 'Work Sans', sans-serif;
    font-size: 2.2em;
    font-style: italic;
    line-height: 0.4;
    color: #fff;
    text-align: center;
    max-width: 100%;
    width: 300px;
    height: 50px;
    padding: 16px 0 7px;
    margin: 5px 0px 10px 5px;
    clear: both;
}

/*@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;400&family=Work+Sans:ital,wght@1,600&display=swap');*/

@media only screen and (max-width: 651px) {
    .side-title {
        font-family: 'Work Sans', sans-serif;
        font-size: 2em;
        margin: 15px;
        background: url(images/sprite.svg) no-repeat;
        background-size: 302px 900px;
        background-position: 0 -300px;
        font-style: italic;
        line-height: 0.4;
        color: #fff;
        text-align: center;
        max-width: 100%;
        width: 300px;
        height: 50px;
        padding: 22px 0 7px;
        margin: 5px 0px 10px 5px;
        clear: both;
        font-size: 30px;
    }
}


/*.widget_latest_posts_widget .custom-widget-title.side-title h2 {
background: url(images/sprite.svg) no-repeat;
    background-size: 302px 900px;
    background-position: 0 -300px;
    /* font-family: 'Cookie', cursive; 
    font-family: 'Work Sans', sans-serif;
    font-size: 2.5em;
    font-style: italic;
    line-height: 0.4;
    color: #fff;
    text-align: center;
    max-width: 100%;
    width: 300px;
    height: 50px;
    padding: 16px 0 7px;
    margin: 5px 0px 10px 5px;
    clear: both;
}*/



blockquote {
  margin-bottom: 1.3em;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 5px solid #ddd;
}


.sidebar-comment-num {
  margin-top: -20px;
}


/****************************************

          Navbar

*****************************************/
/*navbar-brand クラス名を変更　css調整test*/



/*#menu-footer-menu a:hover {
  color: #fe56aa;
}*/ /*Footer メニュー入れると*/



/*a {
  text-decoration: none;
  color: #000000;
}*/

a:focus {
  outline: none;
  cursor: pointer;
}

/*SNS aside-inner*/

.header-aside-inner .social-icons {
    display: flex !important; /* flexに変更し、!importantを追加して優先度を上げる */
    flex-direction: column; /* 縦列に配置 */
    padding: 60px 0px;

}

.header-wrapper {
    margin: 0px auto;
}

.header-aside-inner .social-icons a {
    margin-bottom: 10px; /* 各アイコンの間隔を調整 */
}


/* ソーシャルアイコンスタイル */
.header-aside.social-icons {
    margin-top: 90px;
}





/* ================================
   Sidebar Navigation Style
================================ */

/* 基本 */
.sidebar-navigation {
  background: #fff;
  font-size: 16px;
  line-height: 1.5em;
  position: fixed;
  top: 0;
  left: -330px;              /* 初期：画面外 */
  width: 330px;
  height: 100vh;
  padding-top: 30px;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 0.3s ease;
  z-index: 9999;
}
.sidebar-navigation.visible {
  left: 0;
}

/* ダークテーマ */
.dark-theme .sidebar-navigation {
  background: var(--main-bg);
}

/* リスト */
.sidebar-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-navigation li {
  position: relative;
  clear: both;
  padding-top: 15px;
}

/* リンク */
.sidebar-navigation a {
  display: block;
  padding: 14px 0;
  color: var(--link-color-black);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
/* hover は「色だけ」 */
.sidebar-navigation a:hover {
  color: var(--link-color-blue);
}
.dark-theme .sidebar-navigation a {
  color: var(--link-color-white);
}
.dark-theme .sidebar-navigation a:hover {
  color: var(--link-color-blue);
}

/* 矢印アイコン */
.sidebar-navigation .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  margin-left: 6px;
  transform: rotate(224deg); /* ▼ */
  transition: transform 0.3s ease;
}
.sidebar-navigation .menu-item-has-children.open > a::after {
  transform: rotate(133deg); /* ▲ */
}

/* サブメニュー */
.sidebar-navigation .sub-menu {
  display: none;
  margin: 0;
  padding: 0;
}
.sidebar-navigation .menu-item-has-children.open > .sub-menu {
  display: block;
}

/* 孫メニュー */
.sidebar-navigation .sub-menu .sub-menu a {
  font-size: 14px;
  padding-left: 20px;
}

/* Widget */
.sidebar-navigation .custom-widget-item a {
  padding: 3px;
  display: block;
  transition: color 0.15s ease;
}
.sidebar-navigation .custom-widget-item a:hover {
  color: var(--link-color-blue);
}

/* モバイル */
@media (max-width: 990px) {
  .custom-dropdown-menu {
    transform: translate3d(0,0,0) !important;
    position: static !important;
  }
}



.foot-socials ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center; /* 中央配置 */
}

.foot-socials li {
  margin-right: 10px;
}

.foot-socials a {
  text-decoration: none;
  /*color: #333;*/
}

/*.icon {
  width: 24px;
  height: 24px;
  fill: #007bff;
}*/

.form-submit {
    text-align: center;
    padding-top: 10px;
}

/* PCの場合のスタイル */
@media (min-width: 768px) {
  .foot-socials ul {
    justify-content: flex-end; /* SNSアイコンは右端に配置 */
  }
}

/*モバイル タブレット*/
@media (max-width: 991px) {
  .foot-socials ul {
    align-items: center; /* 中央配置 */
  }

  .foot-socials li {
    margin-right: 0;
    margin-bottom: 10px;
  }
}


/*SNSアイコン サイドバー*/
  .sns-icon {
    display: inline-block;
    width: 2em; /* 任意のサイズ */
    height: 2em; /* 任意のサイズ */
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
  }

  .social-nav {
    display: flex;
    margin-top: 10px;
  }

  .sns_button {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0px;
  }

  .icon-container {
    margin-right: 10px; /* ソーシャルアイコン間の横のスペースを設定 */
    padding: 5px;
  }

  .pbs {
    padding-bottom: 10px;
  }



/* sns color*/
.social-nav .icon-twitter-fill:hover {
    background-color: #55acee; /* Twitter color */
      color: #ffff;
}
.social-nav .icon-facebook2-fill:hover {
      color: #3b5998;
}

/*Instagram*/
.social-nav .icon-instagram-fill:hover {
      /*color: #e4405f;/* Instagram color */
background: radial-gradient(circle at 30% 107%, #ffdc80 0%, #fcaf45 5%, #fd1d1d 45%, #c13584 60%, #5851db 90%);
    box-shadow: 0px 3px 10px rgba(0,0,0,.25);
}


.social-nav .icon-youtube-fill:hover {
      color: #ff0000; /* YouTube color */

}
.social-nav .icon-rss2-fill:hover {
      color: #ff6600; /* RSS color */
}

.social-nav a {
  display: block;
  /*background: #ffff;*/
}

/*コンタクトボタン*/
.form__buttonBox {
    text-align: center;
    }


/* "ad" を含まないクラス名に変更してブロッカー回避 */
.rail{
  position: fixed;
  width: 300px;            /* 広告は固定幅の方が安定 */
  z-index: 2147483000;     /* まずは最前面で確認。必要なら下げてOK */
}
.rail-slot, .rail iframe, .rail img{
  width:100%; height:auto; max-width:100%; display:block;
}







/***　Main Layout　Index.php　***/

/*@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;400&display=swap');*/

/* ========== Base（モバイルファースト：縦並び） ========== */
.page-wrapper{
  max-width:1200px;
  margin:0 auto;
  padding:10px 15px;
  box-sizing:border-box;
  display:block;           /* モバイルは非flex */
  /* overflow: hidden;  ← もし必要なければ外す。はみ出し原因になることがある */
}

/* モバイルは main / sidebar ともに全幅 */
#main,
#sidebar{
  width:100%;
  max-width:100%;
  min-width:0;             /* はみ出し防止 */
  margin:0;
  padding:0px;
  box-sizing:border-box;
}

/* モバイル時はサイドバーを下に・間隔を確保 */
#sidebar{ margin-top:20px; }

/* 特定ページを強制 block にしたい場合はこのクラスを併用可能 */
.page-wrapper.page-wrapper-block{
  display:block !important;
}

/* ========== Desktop（>=1080px：2カラム） ========== */
@media (min-width:1080px){
  .page-wrapper{
    display:flex;
    align-items:flex-start;
    justify-content:center;
    gap:20px;              /* main と sidebar の間隔 */
  }

  #main{
    flex:1 1 830px;
    max-width:830px;
  }

  #sidebar{
    flex:0 0 330px;
    width:330px;           /* ここでだけ固定幅 */
    margin-top:120px;      /* デスクトップの広告スペース */
  }
}

/* ========== 大画面の追加制御（任意・微調整用） ========== */
@media (min-width:1200px){
  #main{ max-width:830px; } /* 既に上で指定しているので明示再掲だけ。不要なら削除OK */
}

/* ========== スマホ時の投稿カード縦並び（クラス名を統一） ========== */
@media (max-width:650px){
  .custom-post-wrapper{
    display:flex;
    flex-direction:column;  /* サムネ→本文の順で縦並び */
    gap:10px;
    padding:10px;
  }
  .blog-thumbnail-box,
  .content-box{
    width:100%;
    max-width:100%;
  }
}

/* =========================================
   投稿カード全体（.custom-post-wrapper）
========================================= */
.custom-post-wrapper {
    display: flex;
    flex-direction: row; /* サムネ左・本文右 */
    gap: 20px;
    width: 100%;
    border: 1px solid #ccc;
    padding: 16px;
    margin-bottom: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    background: var(--card-bg);
}

/* サムネイル枠 */
.blog-thumbnail-box1 {
    flex: 0 0 300px;
    max-width: 300px;
    overflow: hidden;
}

/* 本文枠 */
.content-box1 {
    flex: 1;
    min-width: 300px;
}


/* =========================================
   サムネイル画像（背景指定タイプ）
========================================= */

.blog-post-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    /*aspect-ratio: 4 / 3; /* 画像サイズ向けの比率　デスクトップ時の縦横比 */
    aspect-ratio: 16 / 9; /* 動画サイズに統一 */

    position: relative;
    transition: all 0.3s ease-in-out;
}


/* =========================================
   抜粋レイアウト（.thumb-excerpt-wrapper）
========================================= */

.thumb-excerpt-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-thumbnail-box {
    flex: 0 0 35%; /* サムネイル幅 */
    /*min-width: 250px;*/
}

.excerpt-box {
    flex: 1; /* 残りの幅を使う */
}


/* =========================================
   サムネイル画像上にタイトルを全面表示（ホバー時）
========================================= */

.blog-thumbnail-box {
    position: relative;
    overflow: hidden;
}

.image-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* 半透明黒背景 */
    color: #fff;
    display: flex; /* 中央揃え */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    padding: 10px;
    opacity: 0; /* 初期は非表示 */
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* ==== ホバー時にオーバーレイを表示 ==== */
.blog-thumbnail-box:hover .image-title-overlay,
.recent-thumbnail-box-big:hover .image-title-overlay,
.recent-thumbnail-box-small:hover .image-title-overlay {
    opacity: 1;
}

/* ==== オーバーレイ内リンクを常に白固定 ==== */
.image-title-overlay a {
    color: #fff !important;
    text-decoration: none;
}
.image-title-overlay a:hover {
    color: #fff !important;
    text-decoration: none;
}

.image-title-overlay span {
    line-height: 1.4;
}



/* =========================================
   レスポンシブ対応（モバイル）
========================================= */

/* 投稿カード（バージョン1）を縦並びに */
@media screen and (max-width: 768px) {
    .custom-post-wrapper {
        flex-direction: column;
    }
    .blog-thumbnail-box1,
    .content-box1 {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .blog-post-image {
        aspect-ratio: 16 / 9; /* モバイル時は横長比率 */
    }
}

/* 抜粋レイアウト（.thumb-excerpt-wrapper）も縦並びに */
@media screen and (max-width: 768px) {
    .thumb-excerpt-wrapper {
        flex-direction: column;
    }
    .blog-thumbnail-box,
    .excerpt-box {
        flex: 1 1 100%;
        min-width: 100%;
    }
}


@media screen and (max-width: 768px) {
    .content-box1 {
        display: flex;
        flex-direction: column;
    }
    .excerpt-box {
        order: 4;
    }
}


/* モバイル表示 */
@media screen and (max-width: 768px) {
    .custom-post-wrapper {
        display: flex;
        flex-direction: column;
    }

    .content-box1 {
        display: flex;
        flex-direction: column;
    }

    .post-title { order: 1; }
    .post-meta { order: 3; }
    .excerpt-box { order: 4; }
    .blog-thumbnail-box1 { order: 2; }
}

/* ── トグル行（常時全幅） ───────────────── */
.view-toggle-bar{
  display:block;
  width:100%;
  margin:0 0 10px;
}

/* モバイルはトグル非表示（任意） */
@media (max-width:768px){
  .view-toggle-bar{ display:none; }
}

/* ── リスト表示（1列） ───────────────── */
#main.list-view{
  display:block; /* 念のため #main を非flex化 */
}
#main.list-view .custom-post-wrapper{
  width:100%;
  margin:0 0 10px;
  float:none;
}

/* ── 768px以上：ギャラリー = flexで2カラム ───────────────── */
@media (min-width:768px){
  #main.gallery-view{
    display:flex;          /* gridは使わない */
    flex-wrap:wrap;
    gap:10px;              /* 列/行のすき間 */
    align-items:stretch;
  }

  /* トグル行＆ページネーションは1行専有（列に入れない） */
  #main.gallery-view .view-toggle-bar,
  #main.gallery-view .blog-pagination{
    flex:0 0 100%;
    width:100%;
  }
  /* ページネーションは常に一番下へ */
  #main.gallery-view .blog-pagination{
    order:9999;
    margin-top:10px;
  }

  /* 外側サイズだけ2列化。カード内flexはそのままでもOK */
  #main.gallery-view .custom-post-wrapper{
    box-sizing:border-box;
    flex:0 0 calc(50% - 10px);
    max-width:calc(50% - 10px);
    margin:0;              /* gapで管理 */
    float:none;
  }

  /* 2カラム時、カード内を縦積みにしたい場合（任意） */
  #main.gallery-view .thumb-excerpt-wrapper{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  #main.gallery-view .blog-thumbnail-box,
  #main.gallery-view .excerpt-box{
    flex:none;
    width:100%;
    max-width:100%;
  }
  #main.gallery-view .blog-post-image{
    aspect-ratio:16/9;
    height:auto;
  }
}





header {
  margin: 0px auto;

}


/****************************************

          Comment Popuplink

*****************************************/





.mene > li > a:hover{
  color: #fe56aa;
}

.page_item > a {
  /*float: left;*/
  position: relative;
}

.page_item > li::before {
    content: "|";
    padding: 0 0.6em;
}

.page_item > li:first-child::before{
  content: "";
  padding: 0;
}

/*** Main Layout Index.php ***/

/* アイキャッチ画像サイズ変更 651以上 メイン100%なのでサブネイルボックス30%　コンテントボックス70% 比率 */
.content-box a h2 {
    white-space: normal;
    text-align: left;
    word-wrap: break-word;
    /*color: var(--link-color-dark-type2);*/
}

  .content-box {
    width: 100%;
    /*float: right;*/
    /*margin-left: -15px;*/
    margin: 0px;
    /*clear: both;*/
  }

@media only screen and (min-width: 768px) {
  .content-box {
    width: 70%;
    float: right;
    /*margin-left: -15px;*/
    margin-bottom: 20px;
  }
}

/* materia1-post.php Recently updated content box links */


/* サイドバーのレイアウト（Flexboxで横並び） */
#sidebar-recent-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* アイテム間のスペース */
    margin: 0; /* サイドバー内の余白を調整 */
    border: 2px solid #f5f2eb;
    border-radius: 8px;
}

/* 記事全体のスタイル */
.custom-post {
    width: 100%; /* デフォルトは1行に1件表示 */
}

/* 2番目以降の記事（横並び） */
.custom-post.small {
    display: flex; /* Flexboxで横並び */
    width: 100%; /* 横並びの幅を100%に */
    gap: 10px; /* 画像と内容の間隔 */
    margin-bottom: 20px; /* 各投稿の間に余白 */
}

/* サムネイル画像の基本スタイル */
.recent-thumbnail-box-big-box {
    position: relative;
    width: 100%; /* 横並びと大きなサムネイル画像に同じ幅 */
    height: 150px; /* デフォルトの高さ */
    background-size: cover; /* 背景画像が要素を覆うように */
    background-position: center; /* 画像の中心を基準に表示 */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* ズームインとフェードインのトランジション */
}

/* 1024px以下のタブレット画面に対応（高さを400pxに変更） */
@media (max-width: 1024px) {
    .recent-thumbnail-box-big-box {
        height: 400px;
    }
}

/* 768px以下のモバイル画面に対応（高さを150pxに変更） */
@media (max-width: 768px) {
    .recent-thumbnail-box-big-box {
        height: 230px; /* モバイルサイズ用の高さ */
    }
}


/* サムネイル画像の基本スタイル */
.recent-thumbnail-small-box {
    position: relative;
    width: 50%; /* 画面幅の50% */
    height: 150px; /* デフォルトの高さ */
    background-size: cover; /* 背景画像が要素を覆うように */
    background-position: center; /* 画像の中心を基準に表示 */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* ズームインとフェードインのトランジション */
}

/* 1024px以下のタブレット画面に対応（幅を100%に変更し、高さを250pxに変更） */
@media (max-width: 1024px) {
    .recent-thumbnail-small-box {
        width: 50%; /* 横幅を100%に変更 */
        height: 250px; /* 高さを変更 */
    }
}

/* 768px以下のモバイル画面に対応（幅を100%に変更し、高さを200pxに変更） */
@media (max-width: 768px) {
    .recent-thumbnail-small-box {
        width: 50%; /* 横幅を100%に変更 */
        height: 200px; /* 高さを変更 */
    }
}

/* 480px以下の超小型モバイル画面に対応（高さを150pxに変更） */
@media (max-width: 480px) {
    .recent-thumbnail-small-box {
        height: 150px; /* 高さを変更 */
    }
}


.recent-thumbnail-box-big img, .recent-thumbnail-box-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* サムネイル画像にホバー時のアニメーション（統一） */
.recent-thumbnail-small-box:hover,
.recent-thumbnail-box-big-box:hover {
    transform: scale(1.05); /* ズームイン効果 */
    opacity: 0.8; /* 画像の透明度を少し下げる */
}

/* タイトルのオーバーレイ */
.recent-title-overlay {
    position: absolute;
    top: 50%; /* 画像の中央に配置 */
    left: 50%;
    transform: translate(-50%, -50%); /* 完全に中央に */
    background: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    color: #fff; /* 文字色 */
    padding: 20px;
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 0.3s ease-in-out; /* フェードインのアニメーション */
    text-align: center; /* 中央揃え */
    width: 100%; /* 画像の幅全体を使う */
    height: 100%; /* 画像の高さ全体を使う */
    display: flex;
    align-items: center; /* 垂直方向に中央揃え */
    justify-content: center; /* 水平方向に中央揃え */
    font-family: 'Arial', sans-serif; /* フォントを追加 */
    box-sizing: border-box; /* パディングが幅に影響しないように */
    overflow: hidden; /* テキストが画像の外に出ないように */
    word-wrap: break-word; /* 長いテキストが折り返される */
    text-transform: uppercase;
}

/* ホバー時のオーバーレイの表示と文字のスタイル */
.recent-thumbnail-small-box:hover .recent-title-overlay,
.recent-thumbnail-box-big-box:hover .recent-title-overlay {
    opacity: 1; /* オーバーレイを表示 */
    font-size: 18px; /* フォントサイズを調整 */
    font-weight: bold; /* 太字 */
}

/* 記事タイトルのスタイル */
.recent-title-overlay h3 {
    margin: 0;
    font-size: 18px; /* デフォルトの文字サイズ */
    line-height: 1.4; /* 行間を広くして、可読性を向上 */
}

/* タイトルリンクの色 */
.recent-content-small-box h3 a {
    color: var(--main-text);
    text-decoration: none; /* 下線をなくす */
    transition: color 0.3s ease; /* 色の変化をスムーズにする */
}

/* タイトルリンクのホバー時に色を変更 */
.recent-content-small-box h3 a:hover {
    color: #ff9900; /* ホバー時の文字色 */
}

.recent-title-overlay h3 a {
    color: #fff; /* ホバー時の文字色 */
    font-weight: bold;
}


/* 記事内容ボックス（隣に配置） */
.recent-content-small-box {
    width: 50%; /* 横並びの内容部分の幅を50%に */
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直方向に中央揃え */
}

/* 記事タイトル */
.recent-content-small-box h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/*img タグ material-post.php*/

/* サムネイルのボックス */
#sidebar-recent-posts .custom-post .recent-thumbnail-box-small,
#sidebar-recent-posts .custom-post .recent-thumbnail-box-big {
    position: relative;
    overflow: hidden;
    /*height: 250px;*/
}

/* 画像のアニメーション指定 */
#sidebar-recent-posts .custom-post .recent-thumbnail-box-small img,
#sidebar-recent-posts .custom-post .recent-thumbnail-box-big img {
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ホバー時、画像をやや拡大 */
#sidebar-recent-posts .custom-post .recent-thumbnail-box-small:hover img,
#sidebar-recent-posts .custom-post .recent-thumbnail-box-big:hover img {
    transform: scale(1.05); /* 控えめな拡大 */
}



/* オーバーレイのデザイン */
#sidebar-recent-posts .custom-post .title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;  /* 横方向に中央配置 */
    align-items: center;  /* 縦方向に中央配置 */
    background-color: rgba(0, 0, 0, 0.5);  /* 背景色の透明度を設定 */
    opacity: 0;  /* 初期状態では非表示 */
    transition: opacity 0.3s ease;  /* ホバー時に表示 */
    padding: 10px;  /* テキストの周りに余白を追加 */
    box-sizing: border-box;  /* 余白を考慮してサイズを調整 */
}

/* 画像をホバーしたときにオーバーレイとタイトルを表示 */
#sidebar-recent-posts .custom-post .recent-thumbnail-box-small:hover .title-overlay,
#sidebar-recent-posts .custom-post .recent-thumbnail-box-big:hover .title-overlay {
    opacity: 1;  /* ホバー時にオーバーレイとタイトルを表示 */
}

/* タイトルのスタイル */
#sidebar-recent-posts .custom-post .title-text,
#main .custom-post .title-text {
    font-family: 'Arial', sans-serif;  /* 通常のフォント */
    font-size: 16px;  /* フォントサイズ（必要に応じて調整） */
    font-weight: bold;  /* フォントの太さ */
    color: #fff;  /* 白色の文字 */
    text-transform: uppercase;  /* 大文字に変換 */
    letter-spacing: 1px;  /* 文字間隔 */
    transition: all 0.3s ease;  /* ホバー時の遷移効果 */
    word-wrap: break-word;  /* 長い単語が折り返しで表示されるように設定 */
    overflow: hidden;  /* 文字が親要素からはみ出さないように設定 */
    text-align: center;  /* テキストを中央揃え */
}

/* ホバー時のタイトルデザイン変更なし */
#sidebar-recent-posts .custom-post .title-text:hover,
#main .custom-post .title-text:hover {
    color: #fff;  /* 白色のまま */
}



/* タイトルのスタイル */
.recent-small-content-box h3 {
    font-family: 'Arial', sans-serif; /* フォントファミリ */
    font-size: 18px; /* フォントサイズ */
    font-weight: bold; /* フォントの太さ */
    line-height: 1.4; /* 行間の調整 */
    margin: 0; /* 上下の余白をリセット */
    padding: 0; /* 内部の余白をリセット */
}

.recent-small-content-box h3 a {
    text-decoration: none; /* 下線なし */
    color: inherit; /* 親要素の色を継承 */
    transition: color 0.3s ease; /* ホバー時の色変化をスムーズに */
}

.recent-small-content-box h3 a:hover {
    color: #ff9900; /* ホバー時のカラー */
        text-decoration: none; /* ホバー時に下線を表示 */

}

.recent-big-content-box h3 a {
    font-family: 'Arial', sans-serif;  /* フォントファミリー */
    font-size: 18px;  /* フォントサイズ */
    text-decoration: none;  /* 下線なし */
    transition: color 0.3s ease;  /* 色の変更にスムーズな遷移を追加 */
    line-height: 1.5;  /* 行間の設定 */
    font-weight: bold;
}

/* タイトルのホバー時のデザイン */
.recent-big-content-box h3 a:hover {
    color: #ff9900;  /* ホバー時の文字色 */
    /* text-decoration: underline;  /* ホバー時に下線を追加 (コメントアウト) */
}

/* ===== リンクラッパー ===== */
.more-link-wrapper {
  display: flex;
  justify-content: flex-start; /* デフォルト左寄せ */
  width: 100%;
  padding: 10px 4px;
  font-size: 1rem;
}

/* デスクトップ（1024px以上）は右寄せ */
@media (min-width: 1024px) {
  .more-link-wrapper {
    justify-content: flex-end;
  }
}

/* スマホ（768px以下）は縦並び・全幅ボタン */
@media (max-width: 768px) {
  .more-link,
  .store-reserve-link {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 10px;
    text-align: center;
  }
}

/* ===== 詳細リンクのスタイル ===== */
.more-link2 {
  display: flex;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid #007bff;
  border-radius: 4px;
  background-color: #007bff;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.more-link2:hover {
    background-color: #0056b3; /* 濃い青 */
    border-color: #0056b3;
    color: #fff;
    text-decoration: none;
}


/* ===== Popular Post 全体 ===== */
.popular-post {
  width: 100%;
}

.side-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

/* ===== 投稿リスト（常に1カラム） ===== */
.sidebar-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.sidebar-posts li {
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

/* ===== サムネイル ===== */
.sidebar-thumbnail-box img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ===== タイトル ===== */
.sidebar-recent-posts-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--main-text-color);
}

.sidebar-recent-posts-title h3 a {
  font-family: Arial, sans-serif;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
}

.sidebar-recent-posts-title h3 a:hover {
  color: #ff9900;
}

/* ===== メタ情報 ===== */
.post-meta {
  font-size: 0.85rem;
  color: #666;
  margin: 5px 0 0;
  overflow: hidden;
  clear: both;
}

.post-meta a {
  text-decoration: none;
}

.post-meta .post-date,
.post-meta .category a {
  font-size: 1.125rem;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.post-meta .category a:hover {
  color: #555;
  transform: scale(1.1);
  opacity: 0.8;
}

.comment-num {
  white-space: nowrap;
}

.fa-comments:before {
  content: "\f086";
  color: #7fdbb6;
}

/* ===== more-link-wrapper 共通 ===== */
.more-link-wrapper {
  display: flex;
  justify-content: flex-end; /* 全デバイス左寄せ */
  width: 100%;
  padding: 10px 0 0;
  font-size: 1rem;
  gap: 10px;
}

/* more-link ボタン */
.more-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  background: #007bff;
  border: 1px solid #007bff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.more-link:hover {
  background: #0056b3;
  border-color: #0056b3;
}

/* store-reserve-link ボタン */
.store-reserve-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  background: #28a745;
  border: 1px solid #28a745;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.store-reserve-link:hover {
  background: #1e7e34;
  border-color: #1e7e34;
}

/* スマホはボタンを全幅に */
@media (max-width: 768px) {
  .more-link,
  .store-reserve-link {
    display: block;
    width: 100%;
    text-align: center;
  }
}

.post-meta {
  /*margin-bottom: 1.5em;*/
  /*margin: auto;*/
  border-bottom: 1px #6cb4e4 solid;
  color: var(--main-text);
  /*color: #f8bbd0;*/

}

.post-meta p {
    white-space: normal;
    word-wrap: break-word;
}

/* 共通スタイル（PC・タブレット） */
.content-box p,
.content-box1 p {
    margin-bottom: 0px;
    white-space: normal;
    word-wrap: break-word;
    font-size: 16px;
}

/* スマホ・タブレット（1079px以下） */
@media only screen and (max-width: 1079px) {
  .content-box p,
  .content-box1 p {
    font-size: 14px;
  }
}

/* 大型ディスプレイ（1200px以上） */
@media only screen and (min-width: 1200px) {
  .content-box p,
  .content-box1 p {
    font-size: 18px;
  }
}





  .post-meta .post-date,
  .post-meta .category {
    /*padding-right: 1em;*/
    font-size: 12px;
    color: #7fdbb6;
  }

  .comment-num {
    white-space: nowrap;
  }

.fa-comments:before {
    content: "\f086";
    color: #7fdbb6;

}

.more-link{
  float: right;
}

@media (min-width: 1024px) {
    .more-link, .store-reserve-link {
        width: auto;
        padding: 10px 10px;
        font-size: 14px;
    }
}

.more-link {
    padding: 10px 20px;
    background-color: #ff9933;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    margin-right: 10px;
}

.navigation {
  overflow: hidden;
  margin: 5px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: url(images/gray.gif) repeat-y 50% 0;
  clear: both;
  display: block;
}

.navigation img a {
  clear: both;
}

  /*.navigation > div {
   width: 50%;
   float: left;
  }*/

 .alignright {
  display: block;
  float: right;
  width: 50%;
  text-align: right;
 }

.alignleft {
  display: inline-block;
  float: left;
  width: 50%;
 }


.dark-theme .more-link2 {
color: var(--link-color-white);
}

  .dark-theme .alignright {
color: var(--link-color-blue);
 }

  .dark-theme .alignleft {
color: var(--link-color-blue);
 }

  .navigation a {
    /*width: 50%;*/
    display: block;
    padding: 1em;
    border: none;
  }

    .alignright .alignnext a:hover {
      background: #ffeff7;
      color: #000;
    }

      .navigation a:hover {
        /*border-left: 1px solid #ddd;*/
      }

  .post-author {
    padding-left: 1em;
  }

.page-link {
  margin: 3em 0;
}

.comment-page-link {
  margin: 0 0 3em;
}

  .page-link span,
  .comment-page-link span,
  .comment-page-link a {
    display: inline-block;
    margin-right: 3px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    background: #ddd;
  }

    .page-link a span,
    .comment-page-link a {
      background: #fff;
    }

  .page-link a {
    border-bottom: none;
    color: #000;
  }

  .page-link a span:hover,
  .comment-page-link a:hover {
    background: #ffeff7;
    color: #000;
  }

  .content-box .more-link {
    margin: 0;
    padding: 5px 20px;
  }




/* =========================================
   Comment Area — Scoped Theming (Full CSS)
   対象: #comment-area.comment-area-tabs 内のみ
   ・!important は使わない
   ・ライト/ダークで文字色も背景も切替
   ・既存JS(返信ボタンなど)を邪魔しない
========================================= */

/* ========= 変数（ライト基準） ========= */
#comment-area.comment-area-tabs{
  /* 色トークン（ライト） */
  --ca-panel:       transparent;     /* カード/フォームの面色（ライトは透明） */
  --ca-line:        #e5e7eb;         /* 枠線/区切り */
  --ca-text:        currentColor;     /* 文字色＝親の色を継承 */
  --ca-muted:       #5b6673;          /* 補助テキスト */
  --ca-accent:      #0b5fff;          /* リンク/強調 */
  --ca-field-bg:    transparent;      /* 入力欄の背景 */
  --ca-shadow:      none;             /* 影（ライトは無し） */

  color: var(--ca-text);
  font-size: 16px;
  line-height: 1.6;
  background: transparent;
  padding: 0;
  margin: 24px 0;
  border: 0;
  box-shadow: none;
}

/* ========= ダーク変数（優先度：data-theme / クラス / OS順） ========= */
/* 1) サイトが data-theme="dark" を明示している場合 */
html[data-theme="dark"] #comment-area.comment-area-tabs{
  --ca-panel:    #141a23;
  --ca-line:     #2b3040;
  --ca-text:     #e6ebf3;
  --ca-muted:    #9aa3b2;
  --ca-accent:   #8db2ff;
  --ca-field-bg: #0c1118;
  --ca-shadow:   0 10px 24px rgba(0,0,0,.55);
  color-scheme: dark;
}
/* 2) サイトが .dark-theme クラスを使う場合 */
body.dark-theme #comment-area.comment-area-tabs{
  --ca-panel:    #141a23;
  --ca-line:     #2b3040;
  --ca-text:     #e6ebf3;
  --ca-muted:    #9aa3b2;
  --ca-accent:   #8db2ff;
  --ca-field-bg: #0c1118;
  --ca-shadow:   0 10px 24px rgba(0,0,0,.55);
  color-scheme: dark;
}
/* 3) OSがダーク、かつ data-theme を明示していないときのフォールバック */
@media (prefers-color-scheme: dark){
  html:not([data-theme]) #comment-area.comment-area-tabs{
    --ca-panel:    #141a23;
    --ca-line:     #2b3040;
    --ca-text:     #e6ebf3;
    --ca-muted:    #9aa3b2;
    --ca-accent:   #8db2ff;
    --ca-field-bg: #0c1118;
    --ca-shadow:   0 10px 24px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

/* ========= 見出し・リンク・フォーカス ========= */
#comment-area.comment-area-tabs h3{
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ca-text);
}
#comment-area.comment-area-tabs a{
  color: var(--ca-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#comment-area.comment-area-tabs :where(a,button,input,textarea){ outline: none; }
#comment-area.comment-area-tabs :where(a,button,input,textarea):focus-visible{
  outline: 2px solid var(--ca-accent);
  outline-offset: 2px;
  border-radius: 6px;
}
#comment-area.comment-area-tabs .required{
  color: #e64545; /* 危険色は固定（サイトポリシーに合わせて変更可） */
  font-weight: 700;
}

/* ========= タブ（下線なし・プレーン） ========= */
#comment-area.comment-area-tabs .tabs{
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
  border: 0;          /* 下線なし */
  padding: 0;
}
#comment-area.comment-area-tabs .tab-btn{
  appearance: none;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 14px;
  background: transparent;           /* 塗り無し */
  color: var(--ca-text);
  border-radius: 8px;
  border: 1px solid var(--ca-line);  /* 枠だけ */
  transition: background .15s ease, border-color .15s ease;
}
#comment-area.comment-area-tabs .tab-btn:hover{
  background: color-mix(in oklab, var(--ca-text) 8%, transparent);
  border-color: color-mix(in oklab, var(--ca-accent) 35%, var(--ca-line));
}
#comment-area.comment-area-tabs .tab-btn.is-active{
  background: transparent;           /* アクティブも塗らない */
  border-color: var(--ca-accent);    /* 枠だけ強調 */
}

/* ========= パネル切替 ========= */
#comment-area.comment-area-tabs .tab-panel{ display: none; }
#comment-area.comment-area-tabs .tab-panel.is-active{ display: block; }

/* ========= コメントリスト（カード） ========= */
#comment-area.comment-area-tabs .comments-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
#comment-area.comment-area-tabs .comments-list > li{
  background: var(--ca-panel);
  border: 1px solid var(--ca-line);
  border-radius: 12px;
  box-shadow: var(--ca-shadow);
  color: var(--ca-text);
  padding: 12px;
}

/* ========= 著者行 ========= */
#comment-area.comment-area-tabs .comment-author{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}
#comment-area.comment-area-tabs .comment-author img{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}
#comment-area.comment-area-tabs .comment-author > div{
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
#comment-area.comment-area-tabs .comment-author-name{
  margin: 0;
  font-weight: 800;
  color: var(--ca-text);
}
#comment-area.comment-area-tabs .comment-author-name .says{
  margin-left: 6px;
  color: var(--ca-muted);
}
#comment-area.comment-area-tabs .comment-meta{
  margin: 0;
  color: var(--ca-muted);
  font-size: .9rem;
}
#comment-area.comment-area-tabs .comment-meta br{ display: none; }

/* ========= 本文・返信リンク ========= */
#comment-area.comment-area-tabs .comment-body p{ margin: .5rem 0; }
#comment-area.comment-area-tabs .comment-body .reply a{
  display: inline;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ca-accent);
  text-decoration: underline;
}

/* ========= フォーム ========= */
#comment-area.comment-area-tabs .cbox--form{
  background: var(--ca-panel);
  border: 1px solid var(--ca-line);
  border-radius: 12px;
  box-shadow: var(--ca-shadow);
  color: var(--ca-text);
  padding: 16px;
  margin-top: 18px;
}
#comment-area.comment-area-tabs .cbox--form .comment-notes{
  margin: 0 0 12px;
  color: var(--ca-muted);
}
#comment-area.comment-area-tabs .cbox--form label{ font-weight: 800; }

#comment-area.comment-area-tabs .cbox--form input[type="text"],
#comment-area.comment-area-tabs .cbox--form input[type="email"],
#comment-area.comment-area-tabs .cbox--form textarea{
  width: 100%;
  border: 1px solid var(--ca-line);
  border-radius: 8px;
  background: var(--ca-field-bg);
  color: var(--ca-text);
  padding: 10px 12px;
  font: inherit;
}
#comment-area.comment-area-tabs ::placeholder{ color: var(--ca-muted); }

/* 送信ボタン（プレーン/ホバーあり） */
#comment-area.comment-area-tabs .cbox--form #submit{
  margin-top: 10px;
  appearance: none;
  border: 1px solid var(--ca-line);
  background: transparent;
  color: var(--ca-text);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
#comment-area.comment-area-tabs .cbox--form #submit:hover{
  background: color-mix(in oklab, var(--ca-text) 8%, transparent);
  border-color: color-mix(in oklab, var(--ca-accent) 35%, var(--ca-line));
}

/* ========= トラックバック ========= */
#comment-area.comment-area-tabs .trackback-list{
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
#comment-area.comment-area-tabs .trackback-list li{
  background: var(--ca-panel);
  border: 1px solid var(--ca-line);
  border-radius: 10px;
  box-shadow: var(--ca-shadow);
  padding: 10px 12px;
  color: var(--ca-text);
}

/* ========= Discord（ボタンはプレーン） ========= */
#comment-area.comment-area-tabs .btn-discord{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  background: transparent;
  color: var(--ca-text);
  text-decoration: none;
  border: 1px solid var(--ca-line);
  transition: background .15s ease, border-color .15s ease;
}
#comment-area.comment-area-tabs .btn-discord:hover{
  background: color-mix(in oklab, var(--ca-text) 8%, transparent);
  border-color: color-mix(in oklab, var(--ca-accent) 35%, var(--ca-line));
}
#comment-area.comment-area-tabs .discord-widget-wrap{
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ca-line);
}

/* ========= スモール ========= */
@media (max-width:640px){
  #comment-area.comment-area-tabs .tabs{ flex-wrap: wrap; gap: 8px; }
  #comment-area.comment-area-tabs .comment-author img{ width: 40px; height: 40px; }
}



/***　Search From Layout　***/



.search-form-container {
    /*display: flex;
    flex-wrap: wrap;*/
    float: right;
    /*width: 100%;*/
    /*padding: 5px 5px;*/
}

/* モバイル */
@media only screen and (max-width: 759px) {
    #searchform {
        width: 100%;
        padding: 5px 5px; /*サイドメニュー*/
    }
}

/* タブレット */
@media only screen and (min-width: 760px) and (max-width: 991px) {
    #searchform {
        width: 100%; /* 50%の幅に調整 */
        padding: 0px 0px;
    }
}

/* PC */
@media only screen and (min-width: 992px) {
    #searchform {
        float: right;
        width: 100%;
        padding: 0px 0px;
    }
}




.after-added::after {
    content: '';
    /* ::after疑似要素のスタイルをここに追加します */
}



/****************************************

          Breadcrumb

*****************************************/



#breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.5;
    list-style: none;
    margin: 10px 0;
    padding: 0;
}


#breadcrumb ol {
  margin: 0px;
  padding: 0px;
}

#breadcrumb li {
  display: inline;
  list-style: none;
  font-weight: bold;
}

#breadcrumb li a {
  text-decoration: none;
  color: #888;
  line-height: 2;
}

/* ホームアイコン */
#breadcrumb li:first-child a:before {
  font-family: 'Font Awesome 6 Free';
  content: '\f015'; /* ホームアイコン */
  padding: 0 0.2em;
  color: #f3948f;
}

/* 階層アイコン */
#breadcrumb li:after {
  font-family: "Font Awesome 6 Free";
  content: '\f0da'; /* 矢印マーク */
  padding: 0 0.2em;
  color: silver;
}

/* 最後の階層アイコンを非表示にする */
#breadcrumb li:last-child:after {
  content: none;
}

#breadcrumb li a:hover {
  text-decoration: underline;
}

/* 768 モバイル */
@media only screen and (max-width: 768px) {
  .top-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素を中央に配置 */
    padding: 0px 0px;
  }

  #breadcrumb {
    order: 1; /* パンくずリストを上に移動 */
    margin-bottom: 10px; /* 下部マージンを追加 */
    padding: 0px 30px;
    text-align: center;
  }

  .search-form-container {
    order: 2; /* 検索フォームを下に移動 */
    display: none;
  }

  .search-form-container form {
    width: 100%; /* フォームの幅を100%に設定 */
  }
}

/*****************************************　Contents Main Box　single.php　*****************************************/

.thumbnail-box {
  margin-left: -15px;
}

@media only screen and (max-width:650px) {
  .thumbnail-box img {
    width: 100%;
    height: auto;
    background-position: center center;
    background-size: contain;
    object-fit: contain;
  }
}
/*アイキャッチ画像サイズ変更 651以上 メイン100%なのでサブネイルボックス30%　コンテントボックス70% 比率*/
@media only screen and (min-width:651px) {
  .thumbnail-box img {
    width: 30%;
    height: auto;
    background-position: center center;
    background-size: cover;
  }
}


/*****************************************　Thubnails　single.php　*****************************************/

/*アイキャッチ画像サイズ変更 651以上 メイン100%なのでサブネイルボックス30%　コンテントボックス70% 比率*/
.thumbnail-single-box img {
  max-width: 100%; /*元の画像・解像度以上に伸ばさない*/
  background-position: center center;
  background-size: cover;
}

/****************************************

          You Tube

*****************************************/
/*100動画比率*/
.youtube {
position: relative;
width: 100%;
/*padding-top: 56.25%;*/
}
.youtube iframe{
/*position: absolute;*/
top: 0;
right: 0;
width: 100% !important;
height: 300px !important;
/*height: 100% !important;*/
}

/****************************************

          Related Posts .blog-thumbnail-box .blog-post-image 参照

*****************************************/

.related-posts {
  margin-top: 20px;
}

#related {
  /*font-size: 150%;*/
  font-family: 'Open Sans', sans-serif;
  clear: both;

}

/* Related の行頭マーカーと左インデントを完全に無効化 */
#related-posts{
  list-style: none;      /* disc/decimal を無効化 */
  padding-left: 0;       /* UAの左インデントを消す */
  margin-left: 0;
}
#related-posts > li{
  list-style: none;      /* 念のため li 側でも */
}
#related-posts > li::marker{
  content: "";           /* Safari/Firefoxでの ::marker 対策 */
}

/* テーマが自作マーカーを ::before で付けている場合の殺し */
#related-posts > li::before{
  content: none;         /* これで消えます。効かない時だけ !important を付ける */
}





/****************************************
          Form（Theme unified）
*****************************************/

/* =========================
   Form tokens（カードから派生）
   ※ すでに同名があるならこの :root 部分は不要
   ========================= */
:root {
  /* 入力欄は card と同じ背景だと同化するので、少しだけ差を付ける */
  --field-bg: var(--card-bg);
  --field-border: var(--card-border);
  --field-text: var(--card-text);

  /* placeholder / 補助テキスト（無ければ card-text を薄めた代替） */
  --field-placeholder: rgba(190, 193, 221, 0.7);

  /* フォーカスリング（アクセント変数があるなら差し替え推奨） */
  --focus-ring: rgba(77, 95, 196, 0.45);

  /* ボタン（サイト側のアクセントがあるならここを合わせる） */
  --btn-bg: #4d5fc4;
  --btn-bg-hover: #5b6fe0;
  --btn-border: rgba(255, 255, 255, 0.12);
  --btn-text: #fff;
}

/* =========================
   Inputs / Textarea
   ========================= */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea {
  margin: 0;
  width: 100%;
  display: block;

  /* ✅見た目をカード系に寄せる */
  background: var(--field-bg);
  color: var(--field-text);
  border: 1px solid var(--field-border);
  border-radius: 12px;

  /* ✅余白を“カードUI”に合わせる */
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;

  outline: none;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

textarea {
  overflow: auto;
  min-height: 120px;
  resize: vertical;
}

/* placeholder */
input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--field-placeholder);
}

/* ✅フォーカス（旧コードでコメントアウトしてたところの代替） */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--field-border) 30%, #ffffff 70%);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Safari/古い環境で color-mix が効かない時の保険（落ちてもOK） */
@supports not (color: color-mix(in srgb, #000 50%, #fff 50%)) {
  input[type="text"]:focus,
  input[type="password"]:focus,
  input[type="email"]:focus,
  input[type="search"]:focus,
  textarea:focus {
    border-color: rgba(255, 255, 255, 0.35);
  }
}

/* =========================
   Buttons
   ========================= */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);

  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;

  cursor: pointer;
  text-decoration: none;

  box-shadow: var(--card-shadow);
  transition: transform .05s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
}

.button:active,
button:active,
input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active {
  transform: translateY(1px);
}

/* ✅キーボード操作の視認性（マウスクリックでは出さない） */
.button:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="button"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring), var(--card-shadow);
}




/****************************************

          WordPress Misc

*****************************************/

/*.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}*/

.wp-caption {
  margin: 10px;
  padding-top: 4px;
  border: 1px solid #ddd;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: #f3f3f3;
  text-align: center;
  -khtml-border-radius: 3px;
}

.wp-caption-text,
.gallery-caption {
  font-size: 80%;
}

.wp-caption img {
  margin: 0;
  padding: 0;
  border: 0 none;
}

.wp-caption-dd {
  margin: 0;
  padding: 0 4px 5px;
  font-size: 11px;
  line-height: 17px;
}

/*img.centered {
    display: block;
    margin-right: auto;
    margin-left: auto;
}*/

img.alignright {
    display: inline-block;
    margin: 0 0 1em 1.5em;
}

img.alignleft {
    display: inline-block;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
}

.alignleft {
    float: left;
}


/****************************************

          Clearfix
IMPORTANT 必須項目　wrapper or container need those element for block
without this Footer ID comes up 
*****************************************/
/*.wrapper:after,
#header .menu > ul:after,
#header ul.menu:after,
.clearfix:after {
  display: block;
  visibility: hidden;
  clear: both;
  height: 0;
  content: " ";
  font-size: 0;
}*/

/*clearfix for ie7*/

.wrapper,
#header .menu > ul,
#header ul.menu,
.clearfix {
  display: block;
}

.top-header {
    margin: 0px auto;
    padding: 0px;
    max-width: 1200px;
    display: block;
    display: flex;
    justify-content: space-between;
    width: 100%;
}


/*HEADER #menu-additional-menu 利用未定*/

 #menu-additional-menu .dropdown-menu {
    position: absolute;
    z-index: 1150;
    width: 180px;
    text-align: left;
    border-style: solid;
    padding: 0px;
    margin-top: -1px;
    /*transform: translate3d(14px, 46px, 0px) !important;*/

}



/* =========================
  Home cards swiper（専用）
  - テキストは画像の上
  - overlay薄め
  - 高さ小さめ（16:9のまま）
========================= */

.gw-swiper-cards{
  position: relative;
  padding-bottom: 30px; /* pagination分 */
}

/* slideの高さは中身依存 */
.gw-swiper-cards .swiper-slide{
  height: auto;
}

/* カード本体 */
.gw-swiper-cards .gw-card{
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  background: var(--nav-panel-bg, #141a23);
}

/* 画像領域：比率固定（＝高さも安定） */
.gw-swiper-cards .gw-card-media{
  position: relative;
  aspect-ratio: 16 / 9;  /* さらに低くしたいなら 21/9 */
  background: #000;
  overflow: hidden;
}

.gw-swiper-cards .gw-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 画像が無い場合 */
.gw-swiper-cards .gw-card-noimg{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));
}

/* ✅ overlay：薄め（最終値） */
.gw-swiper-cards .slider_overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.22),
    rgba(0,0,0,0) 65%
  );
}

/* ✅ テキスト：画像の上に重ねる + 位置を少し上 + 帯で可読性UP */
.gw-swiper-cards .gw-card-caption{
  position: absolute;
  left: 10px;
  right: 10px;

  /* 「もう少し上」 */
  bottom: 12px;                 /* もっと上げたいなら 18px */
  transform: translateY(-6px);  /* 微調整 */

  text-align: left;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);

  /* 半透明の帯 */
  padding: 10px 10px 9px;
  border-radius: 12px;
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

/* タイトル：2行で省略 */
.gw-swiper-cards .gw-card-title{
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 抜粋：1行で省略（スッキリ優先） */
.gw-swiper-cards .gw-card-excerpt{
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.35;
  opacity: .92;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */
.gw-swiper-cards .gw-card-cta{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}

/* hover */
.gw-swiper-cards .gw-card:hover .gw-card-title{
  color: var(--nav-hover-panel-text, #fe56aa);
}

/* swiperボタン位置（中央） */
.gw-swiper-cards .swiper-button-prev,
.gw-swiper-cards .swiper-button-next{
  top: 50%;
  transform: translateY(-50%);
}

/* SPは抜粋消す */
@media (max-width: 575px){
  .gw-swiper-cards .gw-card-excerpt{ display: none; }
}





/* ============================================================
   HOME slider (Flex / no-float) : Swiper専用 FIX版（Slick完全排除）
   対象：#home-slider（HOMEのスライダーだけ）
   ============================================================ */

/* チラつき防止：home-slider だけ隠す（JSで外す想定） */
.home-slider.invisibility {
  visibility: hidden;
}

/* 外枠 */
.home-slider {
  background: #464e54;
  padding: 40px 0;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

/* Swiper本体（矢印/ドットの absolute の基点） */
#home-slider {
  margin: 0;
  width: 100%;
  overflow: hidden;
  position: relative; /* ← これが無いと矢印/ドットが飛ぶ */
}

/* Swiperの最低限（Swiper CSSが読めてない時の保険） */
#home-slider.swiper {
  overflow: hidden;
}
#home-slider .swiper-wrapper {
  display: flex;
}
#home-slider .swiper-slide {
  flex: 0 0 100%;
  width: 100%;
}

/* 1枚の中身を2カラム（float禁止） */
#home-slider .home-slide {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
}

/* 左：画像/動画 */
#home-slider .home-slide-feature {
  flex: 0 0 56.77%;
  height: 380px;
  min-width: 0;
}

/* 画像枠 */
#home-slider .home-slide-image {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

#home-slider .home-slide-image > a {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
}

#home-slider .home-slide-image > a:hover {
  transform: scale(1.05);
}

#home-slider .home-slide-image > a img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* 動画（lite-youtube / lite-vimeo / iframe） */
#home-slider .home-slide-feature iframe,
#home-slider .home-slide-feature lite-youtube,
#home-slider .home-slide-feature lite-vimeo {
  display: block;
  width: 100%;
  height: 100%;
}

/* 右：テキスト */
#home-slider .home-slide-info {
  flex: 0 0 40%;
  box-sizing: border-box;
  padding-right: 40px;
  min-width: 0;
}

#home-slider .home-slide-info > h3 {
  margin: 0 0 35px;
}

#home-slider .home-slide-info > h3 a {
  color: #fff;
  font-size: 24px;
}

.dark-theme #home-slider .home-slide-info > h3 a {
  color: var(--link-color-blue);
}

#home-slider .home-slide-info > h3 a:hover {
  text-decoration: underline;
}

#home-slider .home-slide-text {
  color: #fff;
}

/* =========================
   矢印：Swiperだけ（Slick完全排除）
   ========================= */
#home-slider .swiper-button-prev,
#home-slider .swiper-button-next {
  position: absolute;
  bottom: 0;
  top: auto;
  left: auto;
  right: 0;
  z-index: 10;
  width: auto;
  height: auto;
  margin: 0;
  transform: none;
}

/* 左矢印の位置 */
#home-slider .swiper-button-prev {
  right: 55px;
}

/* 見た目（←/→） */
#home-slider .swiper-button-prev::before,
#home-slider .swiper-button-next::before {
  background: #000;
  border-radius: 5px;
  color: #fff;
  content: "›";
  display: block;
  font-family: inherit;
  font-size: 35px;
  font-weight: bold;
  height: 45px;
  line-height: 40px;
  opacity: 1;
  text-align: center;
  width: 45px;
}

#home-slider .swiper-button-prev::before {
  content: "‹";
}

/* Swiperデフォルト矢印(::after)は消す（二重表示防止） */
#home-slider .swiper-button-prev::after,
#home-slider .swiper-button-next::after {
  content: "";
}

/* 矢印がクリック不能になる事故の保険（overlayが上に来る系） */
#home-slider .swiper-button-prev,
#home-slider .swiper-button-next {
  pointer-events: auto;
}

/* =========================
   ドット位置（中央で安定）
   ========================= */
#home-slider .swiper-pagination {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 9;
}

/* =========================
   モバイル：縦積み
   ========================= */
@media (max-width: 767px) {
  .home-slider {
    padding: 20px 0;
  }

  #home-slider .home-slide {
    flex-direction: column;
    gap: 12px;
  }

  #home-slider .home-slide-feature {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  #home-slider .home-slide-info {
    flex-basis: auto;
    width: 100%;
    padding-right: 0;
    padding: 0px 0px 0px; /* 矢印/ドット分の下余白 */
  }

  #home-slider .home-slide-info > h3 {
    margin: 8px 0 12px;
  }
}



.home-box { 
    /*background: #f9f9f9 none repeat scroll 0 0; */
    padding: 35px 0 45px; 
}

.home-cats-selection { 
    margin: 0 0 35px; 
    text-align: center; 
}

.home-cats-selection ul { 
    font-size: 0; 
    list-style: outside none none; 
    margin: 0; 
    padding: 0; 
}

.home-cats-selection ul li { 
    display: inline-block; 
    margin: 0 10px; 
}

.home-cats-selection ul li a { 
    display: block; 
    font-size: 12px; 
    line-height: 1; 
    padding: 15px; 
    text-transform: uppercase; 
    background-color: #222;
    color: var(--link-color-white);
}


body.light-theme .home-cats-selection ul li a { 
    /*color: #eee;*/ 
    display: inline-block; 
    font-size: 12px; 
    line-height: 1; 
    padding: 15px; 
    text-transform: uppercase; 
    background-color: #222;
    color: var(--link-color-blue); /* 以前の色（#0bd）に変更 */
}


/* ===== カテゴリ選択 ===== */
.home-cats-selection ul li a.active {
    background-color: #666;
}

/* ===== 投稿リスト全体 ===== */
.home-posts {
    margin: 0 -5px;
    overflow: hidden;
}

/* ===== 各投稿ボックス ===== */
.archive-post-box {
    float: left;
    width: 24.15%;
    margin: 0 0 0 8px;
    overflow: hidden;
}
.archive-post-box:nth-child(4n+5) {
    clear: left;
}

/* ===== サムネイル部分 ===== */
.archive-post-feature {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.archive-post-image > a {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}
.archive-post-image:hover > a {
    transform: scale(1.05);
}
.archive-post-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

/* ===== 投稿タイトル部分 ===== */
.archive-post-info {
    padding: 0;
}
.archive-post-info > h3 {
    font-size: clamp(14px, 1.5vw, 15px);
    margin: 0;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.3;
}
.archive-post-info > h3 a {
    font-weight: normal;
    color: var(--link-color-black);
    font-style: italic;
}
.archive-post-info > h3 a:hover {
    text-decoration: underline;
}

/* ===== カテゴリーリンク ===== */
.archive-post-info .the-categories a {
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
}


body.dark-theme .archive-post-info > h3 a { 
    color: var(--link-color-blue);
}

/* =========================
   Breaking News（PCだけ表示）
   - 初回ロードの“生リスト”チラ見え防止：デフォで隠す
   - JSが準備できたら .gw-ready で表示
   ========================= */

@media (max-width: 1199px){
  .breaking-news-wrap{ display:none !important; }
}

.breaking-news-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  gap: 12px;

  position: relative;
  z-index: 40;

  visibility: hidden;
  overflow: hidden;
}
.breaking-news-wrap.gw-ready{
  visibility: visible;
  overflow: visible;
}

.breaking-news-title{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 35px;
}

/* list base */
.breaking-news-wrap ul.gallery-slider{
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breaking-news-wrap ul.gallery-slider li{ margin:0; padding:0; }

.breaking-news-wrap ul.gallery-slider a{
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 35px !important;
  color: var(--link-color-black) !important;
  font-size: 1rem !important;
}
body.dark-theme .breaking-news-wrap ul.gallery-slider a{
  color: var(--link-color-blue) !important;
}

/* fade */
.breaking-news-wrap ul.gallery-slider.gw-news-ready{
  position: relative;
  overflow: hidden;
  min-height: 35px;
}
.breaking-news-wrap ul.gallery-slider.gw-news-ready > li{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.breaking-news-wrap ul.gallery-slider.gw-news-ready > li.gw-on{
  opacity: 1;
  pointer-events: auto;
}







.archive-post-info > h3 a:hover { 
    text-decoration: underline; 
}

.archive-post-info .the-categories a { 
    color: #777; 
    font-size: 12px; 
    text-transform: uppercase; 
}

.archive-post-image { 
    height: 100%; 
    overflow: hidden; 
    position: relative; 
}

.archive-post-feature iframe { 
    display: block; 
    font-size: 0; 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    width: 100%; 
}


/**CONTENT**/

.content {
    background: #eaeaea none repeat scroll 0 0;
    /*padding: 15px 0 50px;*/
}

.post_content {
    color: #333333;
}

.post_content .post-box {
    margin-bottom: 50px;
    overflow: hidden;
}

.post_content .post-box a {
    color: #000;
}

.post_content .post-box .read-more {
    color: #fff;
}

.post-title {
    /*height: 100px;*/
    color: white;
    font-weight: bold;
}

.post_content .post-box h1.post-title {
    font-size: 25px;
    max-width: 80%;
    float: left;
}

.post_content .post-box h1 {
    line-height: 1;
    font-size: 30px;
    margin: 5px 0 25px;
    max-width: 720px;
}

.post_content .post-box h2 {
    line-height: 1;
    font-size: 26px;
    margin: 0 0 25px;
}

.post_content .post-box h3 {
    line-height: 1;
    font-size: 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.5px;
    margin: 0 0 25px;
}

.post_content .post-box h4,
.post_content .post-box h5,
.post_content .post-box h6 {
    line-height: 1;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px;
}

.post_content .post-box img {
    max-width: 100%;
}

.post_content .post-box input[type="text"],
.post_content .post-box input[type="email"],
.post_content .post-box input[type="password"],
.post_content .post-box input[type="search"],
.post_content .post-box input[type="phone"] {
    width: 300px;
    height: 40px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    box-sizing: border-box;
    padding: 5px 10px;
    margin: 0 0 5px;
}

.post_content .post-box textarea {
    background: #f5f5f5;
    border: 2px solid #ddd;
}

.post-nav {
    float: right;
    font-size: 0;
    text-align: right;
    width: 10%;
}

.post_content .post-nav span {
    background: #333 none repeat scroll 0 0;
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    font-size: 25px;
    height: 30px;
    line-height: 25px;
    text-align: center;
    width: 30px;
}

.post_content .post-nav span a {
    color: #fff;
    display: block;
    line-height: 1;
}

.post_content .post-nav span.post-next {
    margin-left: 10px;
}

/*.single .content {
    padding: 45px 0;
}*/

.rp-title {
    font-size: 15px;
    margin: 0 0 25px;
    text-transform: uppercase;
    font-weight: 900;
}


.tagcloud a { 
  border: 1px solid #eee; 
  /*color: #333;*/
  font-size: 14px !important; 
  padding: 10px 15px; 
  display: inline-block; 
  margin: 2px 0; 
}

.tagcloud a:hover { 
    background: #000000 none repeat scroll 0 0; 
    color: #ffffff; 
}


/**FOOTER**/

/* 全体の幅と中央寄せ */
footer {
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  clear: both;
}

/* 上部フッター領域 */
.top-foot { 
  padding: 0;
  margin: 0; 
}

/* フッターコラム */
.foot-col { 
  box-sizing: border-box; 
  float: left; 
  padding: 5px; 
  width: 33%; 
}

/* レスポンシブル時のフッターコラム幅 */
@media only screen and (max-width: 767px){
  .foot-col {
    width: 100%;
    float: left;
  }
}

/* 最初のフッターコラムの余白調整 */
.foot-col:first-child { 
  padding: 5px; 
}

/* 最後のフッターコラムの余白調整 */
.foot-col:last-child { 
  padding: 0px; 
}

/* 下部フッター領域のスタイル設定 */
.bottom-foot { 
  border-top: 1px solid #ddd;  /* 上部に1pxの境界線を追加 */
  display: flex;  /* フレックスボックスレイアウトを使用 */
  justify-content: space-between;  /* 子要素間に均等なスペースを配置 */
  align-items: center;  /* 子要素を垂直方向に中央揃え */
  margin: 0 auto;  /* 上下の余白を0に設定し、左右を自動で中央揃え */
  width: 100%;  /* 幅を100%に設定 */
  font-size: 16px;  /* フォントサイズを16pxに設定 */
  padding: 3px;  /* 内側の余白を3pxに設定 */
}

/* 著作権情報の配置設定 */
.copyright { 
  order: 2;  /* フレックスコンテナ内での順序を2に設定（後に配置） */
  margin-left: auto;  /* 左のマージンを自動で設定して、右側に寄せる */
}

/* 下部フッター内のテキストとリンクのスタイル設定 */
.bottom-foot p, .bottom-foot a { 
  margin: 0;  /* 外側の余白を0に設定 */
  font-size: 12px;  /* フォントサイズを12pxに設定 */
}

/* ソーシャルメディアアイコンの配置設定 */
.foot-socials { 
  order: 1;  /* フレックスコンテナ内での順序を1に設定（前に配置） */
  margin-right: auto;  /* 右のマージンを自動で設定して、左側に寄せる */
}

/* モバイルビュー用のメディアクエリ */
@media only screen and (max-width: 767px) {
  .bottom-foot {
    flex-direction: column;  /* 子要素を縦方向に配置 */
    text-align: center;  /* テキストを中央揃え */
  }

  .copyright, 
  .foot-socials {
    order: unset;  /* フレックスコンテナ内での順序をデフォルトに戻す */
    margin: 0;  /* 外側の余白を0に設定 */
    padding: 3px;  /* 内側の余白を3pxに設定 */
  }
}

/* ソーシャルメディアリストのスタイル */
.foot-socials > ul { 
  font-size: 0; 
  line-height: 1; 
  list-style: outside none none; 
  margin: 0; 
  padding: 0; 
}

/* ソーシャルメディアアイコンの間隔調整 */
.foot-socials ul li { 
  margin-right: 8px; 
}


/* 990 サイズ Home Page */
@media only screen and (max-width: 990px) {

  /* ヘッダー内検索フォームの幅を自動設定 */
  .head-search {
    width: auto;
  }

  /* ヘッダーナビゲーションを非表示 */
  .head-nav {
    display: none;
  }

  /* Slickナビゲーションボタンのマージン調整 */
  .slicknav_btn {
    margin: 0;
  }

  /* Slickメニューの表示とマージン調整 */
  .slicknav_menu {
    display: block;
    margin-bottom: 10px;
  }

  /* ヘッダー詳細情報の幅を50%に設定 */
  .head-details {
    width: 50%;
  }

  /* ホームスライド情報の右側パディング調整 */
  .home-slide-info {
    padding-right: 10px;
  }

  /* アーカイブポストボックスの幅とfloat、マージン調整 */
  .archive-post-box {
    float: left;
    margin: 0 5px 20px;
    overflow: hidden;
    width: 23.15%;
  }

  /* アーカイブポストボックスの3n+4番目のクリア */
  .archive-post-box:nth-child(3n+4) {
    clear: left;
  }

  /* ホームポストの関連記事ポストボックスの表示非表示調整 */
  .home-posts.rp .archive-post-box:nth-child(4) {
    display: none;
  }

  /* slickスライダーの矢印の位置調整 */
  .slick-prev,
  .slick-next {
    bottom: -35px;
  }

  /* slickスライダーの矢印アイコンのサイズ調整 */
  .slick-prev::before,
  .slick-next::before {
    font-size: 18px;
    height: 25px;
    line-height: 20px;
    width: 25px;
  }

  /* slickスライダーの矢印位置調整 */
  .slick-prev {
    right: 30px;
  }


  /* アーカイブポストボックス内のiframeの高さ調整 */
  .archive-post-box iframe {
    height: 100%;
  }

  /* ホームスライドフィーチャーの高さ調整 */
  .home-slide-feature {
    height: 245px;
  }

}



/*767 サイズ Home　Page */
@media only screen and (max-width: 767px) {


  /* slicknav_menuのfloat解除 */
  .slicknav_menu {
    float: none;
  }

  /* ロゴの配置調整 */
  .logo {
    float: none;
    margin: 0 0 10px;
    text-align: center;
    width: auto;
  }

  /* ヘッダー内検索フォームの配置調整 */
  .head-search {
    float: none;
    text-align: center;
  }

  /* フィックスドメニューのslicknav_menuのマージン調整 */
  .fixed .slicknav_menu {
    margin: 0;
  }

  /* フィックスドメニューのロゴと検索フォームの非表示 */
  .fixed .logo,
  .fixed .head-search {
    display: none;
  }

  /* ホームスライドフィーチャーのfloat解除と幅調整 */
  .home-slide-feature {
    float: none;
    width: auto;
    margin-left: 0;
  }

  /* ホームスライド情報のfloat解除とマージン、パディング、幅の調整 */
  .home-slide-info {
    float: none;
    margin: 0px 0px;
    padding: 0;
    width: auto;
  }

  /* slickスライダーの矢印アイコンのサイズ調整 */
  .slick-prev::before,
  .slick-next::before {
    font-size: 20px;
    height: 35px;
    line-height: 30px;
    width: 35px;
  }

  /* slickスライダーの矢印位置調整 */
  .slick-prev,
  .slick-next {
    bottom: -30px;
  }

  .slick-prev {
    left: 37%;
    right: auto;
  }

  .slick-next {
    left: auto;
    right: 37%;
  }

  /* アーカイブポストボックスのfloat解除と幅調整 */
  .archive-post-box {
    float: none;
    width: 100%;
  }

  /* アーカイブポストボックスの3n+4番目のクリア */
  .archive-post-box:nth-child(3n+4) {
    clear: none;
  }

  /* アーカイブポスト画像の幅調整 */
  .archive-post-image img {
    max-width: 115%;
    width: 100%;
  }

  /* ホームボックスのパディング調整 */
  .home-box {
    padding: 30px 0;
  }

  /* ホームカテゴリ選択リストアイテムのブロック表示 */
  .home-cats-selection ul li {
    display: block;
  }

  /* ホームカテゴリ選択リストアイテム内のリンクのインラインブロック表示 */
  .home-cats-selection ul li a {
    display: inline-block;
  }

/* 共通スタイル（PC・タブレット） */
.home-slide-text {
  margin-bottom: 10px;
  font-size: 18px;
}

/* スマホ・タブレット（1079px以下） */
@media only screen and (max-width: 1079px) {
  .home-slide-text {
    font-size: 16px;
  }
}

/* 大型ディスプレイ（1200px以上） */
@media only screen and (min-width: 1200px) {
  .home-slide-text {
    font-size: 20px;
  }
}


  /* ギャラリーページのブログポストボックスのサイズ調整 */
  .blog-post-box {
    float: none !important;
    height: 300px !important;
    width: 100% !important;
  }

  /* レスポンシブル788pxのブログポストボックスの高さとマージン調整 */
  .blog-post-box {
    height: 241px;
    margin-bottom: 12px;
  }

  /* ブログポストイメージ内の見出し位置とフォントサイズ調整 */
  .blog-post-image > h3 {
    bottom: 20px;
    font-size: 16px;
    left: 20px;
    right: 20px;
  }
}

  /* ギャラリーページのカストマイザーテキスト */
  .feature-text-area h3 {
    line-height: 1.2;
  }

  /*.foot-col {
    float: none;
    padding: 5px;
    width: auto;
  }*/

  /*.foot-socials, .copyright {
    float: none;
    text-align: center;
  }*/

/*カスタム投稿*/
.genshin_updated-port-image {
  /*height: 290px;*/
  height: 200px;
  overflow: hidden;
  position: relative;
}

.genshin_updated-pagination {
  display: block;
  clear: both;
  text-align: center;
}

/* 1080px以下の場合のスタイル */
@media only screen and (max-width: 1080px) {
  .port-image {
    /*height: 200px;*/ /* 1080px以下の場合の高さを設定 */
    overflow: hidden;
    position: relative;
    padding: 5px;
    aspect-ratio: 16/9;
  }
}

/* デフォルトのスタイル（1080px以下の場合のデフォルトの高さ） */
@media only screen and (min-width: 1080px) {
  .port-image {
    height: 90px; /* デフォルトの高さを設定 */
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    padding: 5px;
  }
}

@media only screen and (max-width: 767px) {
  .port-image {
    /*height: 200px;*/
    width: 100%;
  }
}

.port-image > a {
  background-color: #333;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: all 0.3s ease-in-out 0s;
  width: 100%;
}

.port-image:hover a {
  transform: scale(1.05);
}

.port-image > iframe {
  height: 100%;
  width: 100%;
}

.port-body {
  padding: 0px 0px;
}

.port-body .port-date {
  font-size: 12px;
  margin: 0;
}

.port-body h3 {
  font-size: 12px; /* 12px以上 レイアウトずれる */
  font-weight: 600;
  padding: 5px 5px;
}

.port-body h3 a {
  line-height: 1.2;
}

.port-body h3 a:hover {
  text-decoration: underline;
}

.port-body p {
  margin: 0 0 25px;
  color: #777;
  font-size: 14px;
}

.read-more {
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1;
  text-decoration: none;
  background-color: #000;
  padding: 10px;
}
.content .blog {
  margin: 0 0 80px;
}
.gallary-posts {
  overflow: hidden;
  display: contents; /*トップバックグランド画像の表示が必要*/
}
.blog-post-box {
  background: #333 none repeat scroll 0 0;
  float: left;
  height: 380px;
  margin: 0 1.7% 25px 0;
  overflow: hidden;
  width: 32.2%;
}
.search .blog-post-box:nth-child(3n+3), .archive .blog-post-box:nth-child(3n+3) {
  margin-right: 0;
}
.blog-post-box.gallary-post-0 {
  float: left;
  height: 445px;
  width: 49.15%;
}
.blog-post-box.gallary-post-1, .blog-post-box.gallary-post-2 {
  float: left;
  height: 210px;
  margin-right: 0;
  width: 23.7%;
}
.blog-post-box.gallary-post-1 {
  margin-right: 1.7%
}
.blog-post-box.gallary-post-3 {
  /*float: left;*/
  float:right; /*new pager for single.php */ 
  height: 210px;
  margin-right: 0;
  width: 49.15%;
}
.blog-post-box:last-child {
  margin-right: 0;
}
.blog-post-feature {
    /* float: left; */
    position: relative;
    width: 100%;
    height: 100%;
}
.blog-post-image > h3 {
  bottom: 35px;
  font-size: 16px;
  left: 35px;
  margin: 0;
  opacity: 0;
  position: absolute;
  right: 35px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out 0s;
  z-index: 1;
}
.blog-post-image > h3 a {
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
}
/*.blog-post-image > h3 a:hover {
  text-decoration: underline;
}*/

.blog-post-image:hover h3 {
  opacity: 1;
}
.blog-post-image > a {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  height: 100%;
  transition: all 0.3s ease-in-out 0s;
  width: 100%;
  /*color:rgb(229, 224, 216);* new pager for white color*/
}
/*画像に動きがでる ' > a ' blog page and gallay page css 干渉しているので　外す*/
.blog-post-image:hover  {
  transform: scale(1.05);
}
.blog-post-feature iframe {
  display: block;
  font-size: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ===== pager: どの表示でも中央寄せ ===== */
.blog-pagination{
  display: flex;
  justify-content: center;   /* ←中央寄せ */
  align-items: center;
  flex-wrap: wrap;           /* 折り返し時も整列 */
  gap: 6px;                  /* ページ番号の間隔 */
  width: 100%;
  margin: 10px 0 0;
  clear: both;               /* 既存のfloat対策 */
  text-align: initial;       /* 以前の text-align:center を無効化したい場合 */
}
.blog-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  padding: 0 4px;            /* お好みで */
}

/* ===== list-view: 追加指定なしでOK（上の共通で中央寄せ） ===== */
#main.list-view .blog-pagination{}

/* ===== gallery-view: 768px以上では1行専有＆最後尾へ ===== */
@media (min-width:768px){
  #main.gallery-view .blog-pagination{
    flex: 0 0 100%;          /* 1行を専有 */
    order: 9999;             /* 最後尾に移動 */
    margin-top: 10px;
  }
}


.blog-pagination .page-numbers.current {
    /*background: #333333 none repeat scroll 0 0;*/
      background: #f8bbd0 none repeat scroll 0 0;

    color: #fe56aa;
}

.blog-pagination .page-numbers {
    border: 1px solid #333333;
   /*color: #333;*/
    color: #fe56aa;
    display: inline-block;
    font-size: 12px;
    padding: 10px 15px
}


.blog-pagination a:hover {
    text-decoration: none;
    background: #f8bbd0 ;
}

/*homepage for blog post*/


.feature-text-area {
  padding: 25px 0;
}
.feature-text-area h3 {
  font-size: 35px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0 auto;
  text-align: center;
  width: 75%;
}
.home-featured {
  overflow: hidden;
  padding: 25px 0 50px;
  display: contents; /*トップバックグランド画像の表示が必要*/
}

/*@media only screen and (max-width: 100%) {
  .home-featured {
    float: left;
    display: block;
    position: relative;
  }
}*/

/*tekken7 chatacter*/
/*.fix-header-contents {
  position: fixed;
  z-index: 2;/　他のアイテムに対して最上位のレイヤーになるように 
  }*/

/*character page for genshin */

/* ====== クリアボタン見た目 ====== */
#clearButton { 
    cursor:pointer; display:flex; 
    align-items:center; 
    gap:6px; 
    padding:6px 12px; 
    border:1px solid #ddd; 
    user-select:none;
    background: #79d3c8; 
}

#clearButton:hover { 
    background:#f2c1be; 
}

@media (max-width: 991px){
  .tierlist-controls{ display:flex; flex-wrap:wrap; gap:8px; }
  #clearButton{ display:flex !important; }     /* モバイルでも見せる */
  .clipboard-container, #clearButton{ flex:0 0 auto; }
}

/*.character-portrait { 
    display: none; 
}*/
.character-portrait.show { 
    display: block; 
}

/*character-content*/
.character-content {
  width: 100%;
  /*background: #1c1f46;*/
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 30px;
}

/*character list*/
.character-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    /*background: #24285a;*/
    border-radius: 4px;
    padding: 10px;
    width: 100%
}

.bennchi-character-list .character-portrait {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 10.5%;
    padding: 15px;
}

@media (min-width: 400px) and (max-width:579px){
.character-list .character-portrait {
    width: 25%;
  }
}

@media (min-width: 579.98px) and (max-width:768px){
.character-list .character-portrait {
    width: 14%;
  }
}

/*character type*/
/*.character-list .character-portrait .character-type {
    position: absolute;
    right: 15px;
    padding: 3px;
    top: 10px;
    width: 24px;
    height: 24px;
    background: #303b7a;
    border-radius: 100px;
    transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s,-webkit-transform .3s;
}*/


/*test9000 page* 新たしいHTML 親要素と小要素の関係で作成*/
.character-type {
    /*right: 15px;*/
    padding: 5px;
    position: absolute;
    top: 0px;
    width: 24px;
    height: 24px;
    background: #303b7a;
    border-radius: 100px;
    /* 他のスタイルプロパティを追加できます */
}

/*character name*/
  .character-list .character-portrait .character-name {
    width: 100%;
    font-size: 14px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s;
    line-height: 1.5em;
}

.character-list .character-portrait .character-name {
    color: #bec1dd;
    margin: 10px 0 0;
    white-space: nowrap;
}

/*character-icon rarity-*/
.character-list .character-portrait .character-icon {
    width: 70px;
    height: 70px;
    background: #303b7a;
    border-radius: 4px;
    transform: scale(1); /* 初期の状態 */
    transition: transform 0.3s ease-in-out; /* プロパティをまとめて1つのtransitionに */
}

/* ホバー時の変更 */
.character-list .character-portrait:hover .character-icon {
    transform: scale(1.1); /* ホバー時の変更 */
}


/* 2カラム サイドバー */
.featured-box1 {
    float: left;
    width: 50%;
}



/* iPad Miniに対するレスポンシブデザイン */
@media only screen and (max-width: 768px) {
    .featured-box1 {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}








/* コンテンツボックス1の見出しリンク */
.content-box1 h2 a {
    color: var(--link-color-black);
}

/* ダークモード時のコンテンツボックス1の見出しリンク */
body.dark-theme .content-box1 h2 a {
    color: var(--link-color-white);
}

/* コンテンツボックスの見出しリンク */
.content-box a h2 {
    color: var(--link-color-black);
}

/* ダークモード時のコンテンツボックスの見出しリンク */
body.dark-theme .content-box a h2 {
    color: var(--link-color-white);
}

/* 投稿メタ情報のカテゴリリンク */
.post-meta .category a {
    color: var(--link-color-black);
}

/* ダークモード時の投稿メタ情報のカテゴリリンク */
body.dark-theme .post-meta .category a {
    color: var(--link-color-blue);
}

/* サイドバーコメント数リンク */
.sidebar-comment-num a {
    color: var(--link-color-black);
}

/* ダークモード時のサイドバーコメント数リンク */
body.dark-theme .sidebar-comment-num a {
    color: var(--link-color-blue);
}

/* もっと読むリンク */
.more-link a {
    color: var(--link-color-black);
}

/* ダークモード時のもっと読むリンク */
body.dark-theme .more-link a {
    color: var(--link-color-blue);
}

/* 最近の大きなコンテンツボックスの見出しリンク */
.recent-big-content-box h3 a {
    color: var(--link-color-blue);
}

/* ダークモード時の最近の大きなコンテンツボックスの見出しリンク */
body.dark-theme .recent-big-content-box h3 a {
    color: var(--link-color-white);
}

/* 最近のコンテンツボックスの見出しリンク */
.recent-content-box h3 a {
    color: var(--link-color-blue);
    font-size: 14px;
}

/* ダークモード時の最近のコンテンツボックスの見出しリンク */
body.dark-theme .recent-content-box h3 a {
    color: var(--link-color-white);
}

/* farmingScheduleの見出し */
#farmingSchedule h2 {
    color: var(--link-color-blue);
}

/* ダークモード時のfarmingScheduleの見出し */
.dark-theme #farmingSchedule h2 {
    color: var(--link-color-white);
}

/* ソーシャルナビゲーションリンク */
.social-nav a {
    color: var(--link-color-black);
}

/* ダークモード時のソーシャルナビゲーションリンク */
.dark-theme .social-nav a {
    color: var(--link-color-blue);
}

/* メインの見出しリンク */
/*.type-post a {
    color: var(--link-color-black);
}

/* ダークモード時のメインの見出しリンク */
/*.dark-theme .type-post a {
    color: var(--link-color-blue);*/



.wp-block-kadence-column a {
    color: var(--link-color-black) !important;
    text-decoration: none; /* 下線を削除する場合は none に変更 */
}

.dark-theme .wp-block-kadence-column a {
    color: var(--link-color-blue) !important;
    text-decoration: none; /* 下線を削除する場合は none に変更 */
}



/* コンテナ */
.back-link {
    display: flex;
    flex-wrap: wrap; /* モバイルで折り返し可 */
    gap: 10px;
    padding: 5px;
    margin-top: 5px;
}

/* 共通ボタン */
.back-btn,
.jp-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    color: #fff !important; /* 白文字を強制 */
    min-height: 36px;
    line-height: 1.4;
}

/* 戻るボタン（青） */
.back-btn {
    background-color: #1976d2 !important;
}
.back-btn:hover {
    background-color: #1565c0 !important;
}

/* 日本語リンク（赤） */
.jp-link-btn {
    background-color: #d32f2f !important;
}
.jp-link-btn:hover {
    background-color: #b71c1c !important;
}

/* アイコンの色を文字色に合わせる */
.back-btn svg,
.jp-link-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}





/* メインの見出しリンク */
#main h1 a {
    color: var(--link-color-black);
}

/* ダークモード時のメインの見出しリンク */
.dark-theme #main h1  a {
    color: var(--link-color-blue);
}

/* メインの見出しリンク */
#main h2 a {
    color: var(--link-color-black);
}

/* ダークモード時のメインの見出しリンク */
 .dark-theme #main h2 a {
    color: var(--link-color-blue);
}

/* ナビゲーションリンク */
navigation a {
    color: var(--link-color-black);
}

/* ダークモード時のナビゲーションリンク */
.navigation a {
    color: var(--link-color-blue);
}

/* タグクラウドリンク */
.tagcloud a {
    color: var(--link-color-black);
}

/* ダークモード時のタグクラウドリンク */
.tagcloud a {
    color: var(--link-color-blue);
}

/* ポートボディリンク */
.port-body a {
    color: var(--link-color-black);
}

/* ダークモード時のポートボディリンク */
.port-body a {
    color: var(--link-color-blue);
}

/* 投稿日リンク */
.post-date a {
    color: var(--link-color-black);
}

/* ダークモード時の投稿日リンク */
body .dark-theme .post-date a {
    color: var(--link-color-blue);
}

/* 投稿者リンク */
.post-author a {
    color: var(--link-color-black);
}

/* ダークモード時の投稿者リンク */
body .post-author a {
    color: var(--link-color-blue);
}

/* リストアイテムリンク */
li a {
    color: var(--link-color-blue);
}

/* ダークモード時のリストアイテムリンク */
/*.dark-theme li a {
    color: var(--link-color-blue);
}*/

.navbar li a {
    color: var(--link-color-black);
}

/*.dark-theme .navbar li a {
    color: var(--link-color-red);
}*/


.blog-post-image a:hover {
    color: var(--link-color-white);
}

.dark-theme .blog-post-image a:hover {
    color: var(--link-color-white);
}


.farming-schedule {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 0px;
}


.farming-schedule .farming-title {
    width: 100%
}

.farming-schedule .farming-section {
    display: flex;
    flex-direction: column;
    background: #24285a;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px
}

.farming-section.characters { width: 100%; }
.farming-section.characters.is-first { width: calc(60% - 10px); }

.farming-section.characters.is-second { width: 100%; }


@media screen and (min-width: 1080px) {
    /* 非widgetは従来どおり右カラム */
    .farming-schedule:not(.farming-schedule--widget) .farming-section.weapons {
        width: calc(40% - 10px);
    }

    /* widgetはサイドバーなので縦積み */
    .farming-schedule.farming-schedule--widget .farming-section.weapons {
        width: 100%;
    }
}


.farming-schedule .farming-list {
    display: flex;
    flex-direction: column
}

/* 非widget（従来どおり横並び） */
.farming-schedule:not(.farming-schedule--widget) .farming-list .farming-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #303b7a;
    padding-bottom: 10px;
    color: white;
}

/* widget（上段：素材 / 下段：キャラ） */
.farming-schedule.farming-schedule--widget .farming-list .farming-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid #303b7a;
    padding-bottom: 10px;
    color: white;
}




.farming-schedule .farming-list .farming-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0
}

.farming-schedule .farming-list .farming-list-item .farming-icon-wrapper {
    display: flex;
    align-items: center
}

.farming-schedule .farming-list .farming-list-item .farming-icon-wrapper .farming-icon {
    width: 60px;
    margin-right: 10px;
    background: #303b7a;
    border-radius: 4px
}


@media screen and (min-width: 1080px) {
    .farming-schedule .farming-section.characters {
        width: 100%;
    }

    .farming-icon-wrapper p {
        flex: none;
    }

    /* 非widgetだけに適用 */
    .farming-schedule:not(.farming-schedule--widget) .tierlist-portrait {
        position: relative;
        justify-content: center;
        border-radius: 4px;
        cursor: pointer;
        width: 40%;
        padding: 10px;
    }

    /* widgetは小さく詰める */
    .farming-schedule.farming-schedule--widget .tierlist-portrait {
        position: relative;
        justify-content: center;
        border-radius: 4px;
        cursor: pointer;
        width: auto;
        padding: 4px;
    }
}


/* 非widget（従来どおり） */
.farming-schedule:not(.farming-schedule--widget) .farming-list .farming-list-item .farming-characters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 50px;
}

/* widget（下段に回すので左寄せ＋margin消す） */
.farming-schedule.farming-schedule--widget .farming-list .farming-list-item .farming-characters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 8px; /* 下段の余白 */
}


.farming-schedule .farming-list .farming-list-item .farming-characters .custome-tierlist-portrait {
    width: auto
}

.farming-schedule .farming-list .farming-list-item .custome-tierlist-portrait {
    padding: 5px
}

.farming-schedule .farming-list .farming-list-item .custome-tierlist-portrait .tierlist-icon {
    width: 50px
}

@media (max-width: 991.98px) {
    .farming-schedule .farming-section.weapons {
        width:100%
    }

    .farming-schedule .farming-section.characters {
        width: 100%;
        margin-bottom: 10px
    }
}

@media (max-width: 575.98px) {
    .farming-schedule .farming-list .farming-list-item {
        flex-direction:column;
        align-items: flex-start
    }

    .farming-schedule .farming-list .farming-list-item .farming-characters {
        margin-left: 0;
        margin-top: 10px;
        justify-content: flex-start
    }
}

.relics-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center
}

.relics-list .relics-list-item {
    width: 100%;
    max-width: 700px;
    background: #303b7a;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden
}

.relics-list .relics-list-item.SSR {
    order: 1
}

.relics-list .relics-list-item.SR {
    order: 2
}

.relics-list .relics-list-item.R {
    order: 3
}

.relics-list .relics-list-item:last-child {
    margin-bottom: 0
}

.relics-list .relics-list-item .relics-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #1c1f46
}

.relics-list .relics-list-item .relics-header .relics-icon {
    width: 80px;
    height: 80px;
    background: #24285a;
    border-radius: 4px;
    margin-right: 20px
}

.relics-list .relics-list-item .relics-header .relics-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.relics-list .relics-list-item .relics-header .relics-title .relics-name {
    margin-bottom: 10px
}

.relics-list .relics-list-item .relics-header .relics-title .relics-rarity {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    -webkit-transform: skew(-9deg,0deg);
    transform: skew(-9deg,0deg);
    background: #24285a;
    font-size: 16px;
    padding: 2px 10px;
    margin-right: 5px
}

.relics-list .relics-list-item .relics-header .relics-title .relics-rarity.X {
    color: #c0c1d2
}

.relics-list .relics-list-item .relics-header .relics-title .relics-rarity.N {
    color: #76b58f
}

.relics-list .relics-list-item .relics-header .relics-title .relics-rarity.B,.relics-list .relics-list-item .relics-header .relics-title .relics-rarity.R {
    color: #b2e0ff
}

.relics-list .relics-list-item .relics-header .relics-title .relics-rarity.A,.relics-list .relics-list-item .relics-header .relics-title .relics-rarity.SR {
    color: #debeff
}

.relics-list .relics-list-item .relics-header .relics-title .relics-rarity.S,.relics-list .relics-list-item .relics-header .relics-title .relics-rarity.SSR {
    color: #ffdb86
}

.relics-list .relics-list-item .relics-content {
    padding: 20px;
    font-size: 15px;
    color: #bec1dd
}

.relics-list .relics-list-item .relics-content b {
    display: inline-block;
    background: #4d5fc4;
    color: #dbddef;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px
}

.relics-list .relics-list-item .relics-content u {
    display: inline-block;
    background: #009688;
    color: #dbddef;
    font-size: 16px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none
}

.relics-list .relics-list-item .relics-content p {
    margin-bottom: 10px
}

.relics-list .relics-list-item .relics-content p:last-child {
    margin-bottom: 0
}

.relics-list .relics-list-item .relics-content .relics-description {
    line-height: 1.8em;
    font-size: 15px;
    margin-bottom: 20px
}

.relics-list .relics-list-item .relics-content .relics-advancements .relics-advancement {
    display: flex;
    align-items: center;
    margin-top: 10px;
    color: #bec1dd;
    font-size: 15px;
    line-height: 1.8em;
    background: #4d5fc4;
    border-radius: 4px;
    padding: 10px 15px
}

.relics-list .relics-list-item .relics-content .relics-advancements .relics-advancement .relics-advancement-level {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    -webkit-transform: skew(-9deg,0deg);
    transform: skew(-9deg,0deg);
    background: #303b7a;
    font-size: 16px;
    padding: 2px 10px;
    margin-right: 20px
}

.relics-list .relics-list-item .relics-content .relics-advancements .relics-advancement .relics-advancement-level img {
    width: 18px;
    margin-top: -1px;
    margin-right: 3px
}





.tierlist-controls {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    margin-bottom: 20px
}

@media (max-width: 991px) {
.tierlist-controls {
    display: none;
    }
}
.tierlist-controls .btn {
    margin-right: 20px
}

.tierlist-controls .btn:last-child {
    margin-right: 0
}

.tierlist-controls .btn.full {
    min-width: 300px
}

.tierlist-dropzone {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #303b7a;
    border-radius: 4px;
    background: #24285a
}

/*.tierlist-dropzone .tierlist-portrait {
    width: 11.11%
}*/

.tierlist-dropzone .dropzone-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #303b7a;
    width: 100%;
    min-height: 80px
}

.tierlist-dropzone .dropzone-row:last-child {
    border-bottom: none
}

/*.tierlist-dropzone .dropzone-row .dropzone-title {
    display: flex;
    align-items: center;
    align-self: stretch;
    justify-content: center;
    width: 100px;
    min-width: 92px;
    max-width: 92px;
    min-height: 92px;
    color: #101633;
    font-size: 21px;
    font-weight: 700
}*/

/*.tierlist-dropzone .dropzone-row .dropzone-title.S {
    background: #e57373;
    border-top-left-radius: 4px
}

.tierlist-dropzone .dropzone-row .dropzone-title.A {
    background: #ffb74d
}

.tierlist-dropzone .dropzone-row .dropzone-title.B {
    background: #fff176
}

.tierlist-dropzone .dropzone-row .dropzone-title.C {
    background: #aed581
}

.tierlist-dropzone .dropzone-row .dropzone-title.D {
    background: #81c784;
    border-bottom-left-radius: 4px
}*/

.tierlist-dropzone .dropzone-row .dropzone-characters {
    /*display: flex;*/
    /*align-items: flex-start;*/
    flex-wrap: wrap;
    /*width: 100%;*/
    /*align-self: stretch;*/
    /*padding: 7.5px*/
}

.tierlist-dropzone .dropzone-row .dropzone-characters.--mobile.active {
    background: #2b2f6a
}

.mobile-helper {
    background: #3347b8;
    color: #dbddef;
    padding: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    border-radius: 4px
}

.tierlist-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 20px;
    margin-top: 20px
}

.tierlist-list .tierlist-portrait {
    justify-content: flex-start;
    text-align: center
}

.tierlist-list .tierlist-portrait,.tierlist-portrait {
    display: flex;
    flex-direction: column;
    align-items: center
}

/* 通常のスタイル */
.tierlist-portrait {
    position: relative;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    /*width: 15%;*/
    padding: 10px;
}

/* 画面幅が1080px以上の場合のスタイル変更 */
@media screen and (min-width: 1080px) {
    /* 通常のtierlistは今まで通り */
    .tierlist-portrait {
        width: 30%;
    }

    /* ✅ widget内だけは縦積みを維持（こっちを優先） */
    .farming-schedule.farming-schedule--widget .tierlist-portrait {
        width: auto;
        padding: 4px;
    }
}



/* widget：上段(head) / 下段(body) を確定させる */
.farming-schedule.farming-schedule--widget .farming-item-head,
.farming-schedule.farming-schedule--widget .farming-item-body {
    width: 100%;
}






/* 画面幅が1080px以上の場合のスタイル変更 */
@media screen and (min-width: 1080px) {
    .bennchi-character-portrait {
        width: 11%; /* 1080px以上の場合の横幅を変更 */
    }
}



.tierlist-portrait.--mobile {
    opacity: .3;
    -webkit-filter: grayscale(1);
    filter: grayscale(1)
}

.tierlist-portrait.--mobile.active {
    opacity: 1;
    -webkit-filter: grayscale(0);
    filter: grayscale(0)
}

.tierlist-portrait:hover {
    background: #24285a
}

.tierlist-portrait .tierlist-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.tierlist-portrait .tierlist-icon {
    width: 50px;
    border-radius: 4px
}

.tierlist-portrait .tierlist-name {
    color: #bec1dd;
    margin: 10px 0 0;
    white-space: nowrap
}

.tierlist-portrait .tierlist-name,.tierlist-portrait .tierlist-role {
    width: 100%;
    font-size: 14px;
    text-align: center;
    transition: color .3s;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis
}

.tierlist-portrait .tierlist-role {
    color: #9ca2da;
    margin: 0
}

.tierlist-portrait .tierlist-type {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #303b7a;
    border-radius: 50%;
    padding: 3px;
    transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s,-webkit-transform .3s
}

.tierlist-portrait .tierlist-constellation {
    position: absolute;
    background: #4d5fc4;
    border-radius: 3px;
    color: #bec1dd;
    font-weight: 600;
    bottom: 0;
    right: 0;
    padding: 2px 4px 1px;
    line-height: 1em;
    font-size: 13px;
    transition: top .3s,right .3s,-webkit-transform .3s;
    transition: transform .3s,top .3s,right .3s;
    transition: transform .3s,top .3s,right .3s,-webkit-transform .3s
}

.tierlist-disclaimer {
    background: #24285a;
    border-radius: 4px;
    color: #bec1dd;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin-right: 20px;
    padding: 5px
}

.tierlist-disclaimer a {
    display: contents
}






.dropdown-menu { 
    background-color: #f2c1be !important; /* ドロップダウンメニューの背景色 */
    /*border: none !important;*/
   
}

/* :rootで定義された変数はCSSのグローバルな変数として扱われ、どのCSSファイルでも利用できる */
:root {
  --bs-body-bg: #202562;
    --bs-table-bg: #202562;

  --bs-dropdown-link-hover-bg: #f2c1be;
  --main-text: #333; /* お好みの色に変更してください */
}

.custom-background {
    background: #fff;
}

.background-color {
  --bs-table-bg: var(--bs-body-bg)
}

.table.ReactTable .rt-tbody, .table .rt-tbody {
    color: #bec1dd;
    overflow: initial;
  --bs-table-bg: var(--bs-body-bg)
}



/* ===== Genshin Update News JP 専用 ===== */
.type-genshin_updated_jp ol{
  counter-reset: jnum !important;
  list-style: none !important;
  margin: 0;
  padding: .3em .8em;
  border: 2px solid pink;
}
.type-genshin_updated_jp ol > li{
  position: relative;
  border-bottom: 1px dashed pink;
  padding: .5em .5em .5em 34px;
  line-height: 1.6;
}
.type-genshin_updated_jp ol > li:last-child{ border-bottom: none; }
.type-genshin_updated_jp ol > li::before{
  counter-increment: jnum;
  content: counter(jnum);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center;
  border-radius: 50%;
  background: pink; color: #fff; font-weight: 700; font-size: 15px;
  font-family: "Avenir","Arial Black","Arial",sans-serif;
}


/* ===== Sidebar Base ===== */
.sidebar .sb-block { margin-bottom: 24px; }
.sb-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }

/* ---- Light & Dark Tokens ---- */
:root{
  --card-bg:#fff; --card-border:#e5e7eb; --card-text:#111827;
  --muted:#6b7280; --card-shadow:0 1px 2px rgba(0,0,0,.05);
}
.dark-theme{
  --card-bg:#14183a; --card-border:#2b2f53; --card-text:#e8ebff;
  --muted:#9ca3af; --card-shadow:0 1px 2px rgba(0,0,0,.25);
}

/* ---- Generic card ---- */
.card{
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:12px; box-shadow:var(--card-shadow); color:var(--card-text);
  overflow:hidden; padding:12px;
}

/* ===== Regular post cards ===== */
.sidebar-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.sidebar-card__link{
  display:grid; grid-template-columns:84px 1fr; gap:12px; align-items:center;
  padding:10px; border:1px solid var(--card-border);
  background:var(--card-bg); border-radius:12px; text-decoration:none; color:inherit;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.sidebar-card__link:hover{ transform:translateY(-1px); box-shadow:var(--card-shadow); }
.sidebar-card__thumb{ width:84px; height:84px; border-radius:10px; overflow:hidden; }
.sidebar-thumb{ width:100%; height:100%; object-fit:cover; display:block; border:1px solid var(--card-border); }
.sidebar-card__body{ min-width:0; display:flex; flex-direction:column; gap:6px; }
.sidebar-card__title{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  font-size:.95rem; line-height:1.35; font-weight:700; letter-spacing:.01em; }
.sidebar-card__meta{ font-size:.82rem; color:var(--muted); display:inline-flex; gap:8px; align-items:center; }
.sidebar-card__excerpt{ font-size:.86rem; line-height:1.4; color:var(--muted); }

@media (max-width:480px){
  .sidebar-card__link{ grid-template-columns:72px 1fr; gap:10px; padding:9px; }
  .sidebar-card__thumb{ width:72px; height:72px; border-radius:9px; }
}

/* ===== Recent Movies ===== */
/* Lite埋め込みは常に可視＆16:9（高さ潰れ対策でmin-heightを足す） */
lite-youtube, lite-vimeo, .lite-embed{
  display:block !important; width:100% !important; aspect-ratio:16/9;
  border-radius:10px; overflow:hidden;
}
/*@media (min-width:768px) and (max-width:1079px){
  .lite-embed{ min-height:clamp(220px, 36vw, 360px); }
}*/
@media (max-width:767px){
  .lite-embed{ min-height: 200px; } /* モバイルは気持ち大きめ */
}

/* 先頭の動画（タイトル＆“特集日付”を下に縦積み） */
.video-featured{ display:grid; gap:10px; }
.video-featured .card-body{ padding:0 2px 2px; }
.video-title{ font-size:15px; line-height:1.4; margin:0; }
.video-title a{ color:var(--card-text); text-decoration:none; }

/* 先頭動画の日付はデフォ非表示 → タブレットだけ表示 */
.movie-date--featured{ display:none; }
@media (min-width:768px) and (max-width:1079px){
  .movie-date--featured{ display:block; font-size:13px; color:var(--muted); margin-top:2px; }
}

/* === 残り：リスト === */
/* 基本：1カラム（PCはこのまま） */
.video-list{ display:grid; gap:12px; margin-top:10px; }

/* タブレット：2カラムの“カード格子”、各カードの中身は【縦積み】で動画▶タイトル▶日付 */
@media (min-width:768px) and (max-width:1079px){
  .video-list{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .video-item{ grid-template-columns:1fr; }                /* ← カード内は縦積み */
}

/* PC：カード内は横並びでサムネ大きめ */
.video-item{
  display:grid; /*grid-template-columns:140px 1fr;*/ gap:12px; align-items:center;
  padding:8px; border:1px solid var(--card-border); border-radius:10px;
  background:var(--card-bg);
  transition:transform .12s ease, box-shadow .12s ease;
}
.video-item:hover{ transform:translateY(-1px); box-shadow:0 2px 8px rgba(0,0,0,.08); }
@media (min-width:1080px){ .video-item{ grid-template-columns:160px 1fr; } }

/* モバイル：カード内も縦積みで動画を大きく */
@media (max-width:767px){
  .video-item{ grid-template-columns:1fr; gap:10px; }
  .video-item__thumb{ border-radius:10px; }
  .video-item .sidebar-thumb, .video-item .lite-embed--sm{ aspect-ratio:16/9; display:block; }
}

/* さらに小さい端末（〜480px）で余白調整 */
@media (max-width:480px){
  .video-item{ padding:6px; }
}

.video-item__thumb{ border-radius:8px; overflow:hidden; }
.video-item .sidebar-thumb{ width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:8px; display:block; }
.video-item__title{ font-size:14px; line-height:1.45; }
.video-item__title a{ color:var(--card-text); text-decoration:none; }
.movie-date{ font-size:12px; color:var(--muted); display:block; margin-top:2px; }

/* 再生優先（リンクの上に来る） */
lite-youtube, lite-vimeo { position:relative; z-index:1; }
.video-featured__thumb, .video-item__thumb a { position:relative; z-index:0; }

/* ===== Discord（カード幅にフィット） ===== */
.sidebar .widget_block iframe[src*="discord.com"],
.sb-block iframe[src*="discord.com"]{
  display:block; width:100% !important; max-width:100%;
  height:clamp(380px, 52vw, 520px); border:0; border-radius:10px;
}
