/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p&family=Roboto&family=Montserrat:wght@700;800&display=swap');


/* ===== 背景（PC/SP切替・アドレスバー揺れ対策） ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;              /* ← inset:0 をやめて top/left + width/height に */
  left: 0;
  width: 100vw;
  height: 100vh;       /* フォールバック */
  z-index: 0;          /* ページ最背面だが沈まない */
  background: #000 url('/wp-content/uploads/2025/07/e9e1890e-c8f5-4e99-975a-ff32f43b2480.png')
              center / cover no-repeat;
  pointer-events: none; /* クリック操作を邪魔しない */
}

/* 899px以下はSP画像に差し替え（セミコロン修正済み） */
@media (max-width: 899px) {
  body::before {
    background-image: url('/wp-content/uploads/2025/08/1-2.png'); /* ← ; 必須 */
    background-size: cover;
    background-position: 50% 50%;
  }
}

/* “最大ビューポート高”に固定：アドレスバー出入りでもズームしない */
@supports (height: 100lvh) {
  body::before { height: 100lvh; }
}

/* 既存コンテンツを前面に出す（そのまま） */
header, main, footer, .site, .ct-container {
  position: relative;
  z-index: 1;
}


body {
  background-color: 	#1e1e1e;
  font-family: 'Roboto', 'M PLUS 1p', 'Helvetica Neue', sans-serif;
}

.site-title {
  background: linear-gradient(to bottom, #f6e27f, #d4af37, #8c6d1f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}
.site-description {
  background: #FFFFFF;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  text-align: center;
}

.ct-menu-link {
  background: transparent;
  color: #fff;
  padding: 12px 18px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ct-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}


.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000;
}
.bg-image img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}



/* ============= サイドバー ============ */


.main-with-sidebar {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.page-content {
  flex: 1;
  min-width: 0;
}


.sidebar {
  width: 300px;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: rgba(26, 26, 26, 0.3);
}

  .ad-widget {
    background-color: transparent !important; /* 背景を透明に */
    box-shadow: none !important;              /* シャドウも消す（任意） */
    text-align: center;                       /* 中央寄せ（念のため） */
  }

  .ad-widget img {
    display: inline-block;
    margin: 0 auto;
  }


.search-widget {
  margin-bottom: 2rem;
}

.sidebar .search-widget:first-of-type {
  margin-top: 16px; /* ← 任意の値。例：4rem ≒ 約64px */
}

.search-form {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.search-input-wrapper {
  flex: 1;
  min-width: 0;
}

.search-form input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
}

.search-form input[type="search"]:focus {
  outline: none; /* 青い枠線を消す */
  box-shadow: none; /* ブラウザ標準の影を消す */
  border: 1px solid #ccc; /* 通常時と同じ枠線色にする */
  background-color: rgba(255, 255, 255, 0.8); /* 通常背景色を維持 */
  color: #000; /* 文字色も維持 */
}

.search-form button {
  white-space: nowrap;
  height: 40px;
  font-size: 1rem;
  padding: 0rem 1.5rem;
  background: linear-gradient(to bottom, #f1e08a, #c9a941, #8c6d1f);
  color: #212121;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-form button:hover {
  opacity: 0.9;
}


.sidebar-widget {
  margin-bottom: 1rem;
  background-color: rgba(26, 26, 26, 0.7);
  color: #fff;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-title {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-left: 4px solid #c9a941;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.event-table {
  width: 100%;
  font-size: 0.95rem;
}
.event-table td {
  font-size: 14px;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #eee;
}

.more-events-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.more-events-button {
  white-space: nowrap;
  height: 32px;
  font-size: 0.85rem;
  padding: 0rem 0.5rem;
  background: linear-gradient(to bottom, #f1e08a, #c9a941, #8c6d1f);
  color: #212121;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.more-events-button:hover {
  opacity: 0.9;
  color: #fff;
}



.about-widget {
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.01em;
}

.sidebar-widget.about-widget p {
  margin-bottom: 0;
}


.hidden {
  display: none;
}



@media (max-width: 899px) {
  .main-with-sidebar {
    flex-direction: column;
    align-items: center; /* ✅ サイドバーを中央寄せにする */
  }

  .sidebar {
    width: clamp(300px, 90%, 100%);
    margin-top: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
	background-color: transparent;
  }
}




/* ============= 検索 ============ */

/* デフォルトでは表示しない */
.mobile-search-form {
  display: none;
}

/* サイドバーの検索ウィジェットは通常表示 */
.sidebar .search-widget {
  display: block;
}

/* ✅ 899px以下のときの切り替え */
@media (max-width: 899px) {
  .mobile-search-form {
    display: block;
    margin: 1.5rem auto 0;       /* ✅ 上に余白＋中央寄せ */
    padding: 0 1rem;
    max-width: 300px;            /* ✅ 必要なら横幅制限 */
    box-sizing: border-box;
  }

  .mobile-search-form form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }


  .sidebar .search-widget {
    display: none !important;  /* サイドバーの検索ウィジェット非表示 */
  }
}










/* ============= プロフィールエリア ============ */

.breadcrumb {
  background: rgba(248, 248, 248, 0.8);
  padding: 1px 32px 0px 25px;
  font-size: 13px;
  max-width: 960px;
  margin: 1px auto 0 auto; 
  box-sizing: border-box;
}

.breadcrumb a {
  color: 
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span.separator {
  margin: 0 6px;
  color: #999;
}



.senshu-detail {
  background: rgba(248, 248, 248, 0.8);
  padding: 0px 32px 32px 32px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.senshu-info {
  display: flex;
  flex-wrap: wrap;
  gap: 5.5px;
  align-items: flex-start;
  justify-content: center;
}

.senshu-photo-wrapper {
  width: 300px;
  margin-top: 90px;
  padding: 0;

}

.senshu-photo-img {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.senshu-name-block {
  width: 300px;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  margin-bottom: 10px;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible;  
  width: 100%;
}
.senshu-name-block .name-jp {
  display: inline-block;   /* ← 幅の自動調整に必要 */
  font-weight: bold;
  color: #222;
  letter-spacing: 0.15em;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 1.4rem;  
}

.senshu-name-block .name-en {
  display: inline-block;   /* ← 幅の自動調整に必要 */
  font-weight: bold;
  color: #222;
  letter-spacing: 0.15em;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 1rem;
  margin-top: 6px;
}

.senshu-name-block .name-line {
  width: 300px;
  display: block;
  height: 4px;
  width: 80%;
  max-width: 320px;
  margin: 0.5rem auto 0;
  background: linear-gradient(to right, #B71C1C, #1A237E);
  border-radius: 2px;
}

.senshu-data-wrapper {
  width: 300px;
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  flex: 1;
}

.senshu-data {
  flex: 1;
  text-align: left;
  min-width: 250px;
}

.senshu-profile-text {
  width: 300px;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: normal;
  margin-top: 100px;
  color: #333;
}

#profile-text a:link {
  color:  /* 未訪問：濃い青 */
}

#profile-text a:visited {
  color:  /* 訪問済み：紫 */
}
#profile-text a {
  font-weight: 500;
  transition: text-decoration 0.2s;
}

#profile-text a:hover {
  text-decoration: underline;
}

.senshu-data ul {
  list-style: none;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 24px;
  padding-left: 1vw;
  padding-right: 1vw;
  box-sizing: border-box;
}

.senshu-data li {
  margin-bottom: 0;
  padding-bottom: 0px;
  padding-left: 25px
}

.senshu-data strong {
  display: inline-block;
  width: 90px;
  color: #555;
  font-weight: 700;
}

.senshu-data .record-highlight {
  font-weight: bold;
}

.senshu-data .wins {
  color: #e60000;
}

.senshu-data .losses {
  color: #0066cc;
}

.senshu-data .draws {
  color: #009933;
}

.senshu-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #222;
  line-height: 1.2;
  margin-top: 25px;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.15em;
}

.senshu-title .senshu-name-en {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-align: center;
}

.senshu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.senshu-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  text-align: center;
  width: 200px;
}

.senshu-card h2 {
  font-size: 20px;
  margin-top: 12px;
}


/* === 戦績内訳/ Record Breakdown エリア === */


.fight-record-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  padding-left: 8px;
  margin: 0rem 0rem 0.5rem 1rem;
  letter-spacing: 0.08em;
  border-left: 6px solid #C9A941;
  line-height: 1.3;
  display: inline-block;
  position: relative;
  
}

.fight-record-heading span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333333;
  font-family: 'Montserrat', sans-serif;
  margin-left: 3px;
  letter-spacing: -0.05em;
  text-transform: none;
  position: relative;
  top: -1px;
}

.fight-record-box {
  background: #fff;
  padding: 12px 0px 0px 0px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.fight-meter-section {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  max-width: 100%;
  align-items: center;
}

.meter-wrapper {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0rem;     /* 縦の空白をゼロに */
  column-gap: 6rem;  /* 横の空白だけ維持 */
  justify-content: center;
  width: auto;
}

.meter-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 50px;
  align-self: flex-start;
}

.meter-box:last-child {
  margin-top: 0;
  padding-bottom: 0; /* 下の余白を消す */
  line-height: 1;    /* 行間による余白を最小化 */
}

.meter-side {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
  padding: 0.4rem 0.8rem;
  text-align: center;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  color: #fff;
}

.meter-side.wins {
  background-color: #B71C1C;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.meter-side.losses {
  background-color: #1A237E;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.meter-side span {
  margin-left: 0.5rem;
  font-weight: 700;
}

.meter-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 600;
}

.meter-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.meter-label {
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  color: #444;
  white-space: nowrap;
  width: 80px;
}

.meter-count {
  text-align: right;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  margin-right: 2px;
  width: 16px;
}

.meter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: 219px; /* これでぴったり20個並ぶ */
}


.meter-bar + .meter-bar {
  margin-top: 1px;
}


.cell {
  width: 10px;
  height: 10px;
  background-color: #eee;
}

.cell.active.win {
  background-color: #B71C1C;
  animation: fillBar 0.3s ease-in forwards;
}

.cell.active.loss {
  background-color: #1A237E;
  animation: fillBar 0.3s ease-in forwards;
}

.cell.active.draw {
  background-color: #388E3C;
  animation: fillBar 0.3s ease-in forwards;
}

.cell.active.nc {
  background-color: #B0BEC5;
  animation: fillBar 0.3s ease-in forwards;
}

@keyframes fillBar {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.draws-nc-group {
  display: flex;
  flex-direction: row;
  gap: 6rem; /* 横方向のバランス維持 */
  align-items: flex-start;
  justify-content: center;
  margin: 1.5rem 0 1.5rem 0; /* ← この値を調整して上下を詰める */
  align-self: flex-start;
  min-width: 50px;
}



/* ============= グラフエリア ============ */

.chart-row-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem; /* グラフ間の余白 */
  flex-wrap: wrap; /* スマホでは縦並びに自動切り替え */
}

/* ドーナツグラフ専用  */

:root {
  --color-wins: #B71C1C;
  --color-losses: #1A237E;
  --color-draws: #4B612C;
}

.donut-container {
  width: 280px;
  max-width: 280px;
  height: 330px;  
  margin: 0rem 0px 0px 0px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.donut-title {
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.donut-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.donut-chart-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px auto;
}

.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 25px;
  font-weight: 700;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}
/* 凡例 */
.donut-legend-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.donut-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.donut-legend-color {
  width: 25px;
  height: 10px;
  border-radius: 0%;
  margin-bottom: 2px;
}

.donut-legend-color.wins {
  background-color: var(--color-wins);
}

.donut-legend-color.losses {
  background-color: var(--color-losses);
}

.donut-legend-color.draws {
  background-color: var(--color-draws);
}

.donut-legend-label {
  font-weight: bold;
  margin-bottom: 1px;
  font-size: 11px;
}

.donut-legend-value {
  color: #555;
  font-size: 10px;
}

/* 試合決定率グラフ */

.finish-rate-container {
  width: 280px;
  max-width: 280px;
  height: 330px;
  margin: 0rem 0px 0px 0px;
  padding: 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.finish-rate-title {
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.finish-rate-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.finish-rate-chart-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px auto;
}

#finishRateChart {
  width: 180px !important;
  height: 180px !important;
  display: block;
  margin: 0 auto;
}

#finish-center-text {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 25px;
  font-weight: 700;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

#finishRateLegend {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 5px;
}

#finishRateLegend .donut-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

#finishRateLegend .donut-legend-color {
  width: 25px;
  height: 10px;
  border-radius: 0%;
  margin-bottom: 5px;
}

#finishRateLegend .donut-legend-color.wins {
  background-color: #B71C1C;
}

#finishRateLegend .donut-legend-color.decision {
  background-color: rgba(183, 28, 28, 0.15);
}

#finishRateLegend .donut-legend-label {
  font-weight: bold;
  margin-bottom: 1px;
  font-size: 11px;
  display: inline-block;
  line-height: 1.2;
  text-align: center;
}

/* KO率グラフ */

.ko-rate-container {
  width: 280px;
  max-width: 280px;
  height: 330px;
  margin: 0rem 0px 0px 0px;
  padding: 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.ko-rate-title {
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ko-rate-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ko-rate-chart-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px auto;
}

#koRateLegend {
  margin-top: 5px;
  justify-content: center;
  gap: 12px;
}

.donut-legend-color.sub {
  background-color: rgba(183, 28, 28, 0.15);
}



/* 一本率グラフ */

.sub-rate-container {
  width: 280px;
  max-width: 280px;
  height: 330px;
  margin: 0rem 0px 0px 0px;
  padding: 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.sub-rate-title {
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sub-rate-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sub-rate-chart-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px auto;
}

#subRateLegend {
  margin-top: 5px;
  justify-content: center;
  gap: 12px;
}

.donut-legend-color.submission {
  background-color: #B71C1C; /* 一本用の青 */
}





/* ラウンド別勝敗グラフ */

:root {
  --win-color: #B71C1C;
  --win-hover-color: #E53935;
  --lose-color: #1A237E;
  --lose-hover-color: #3949AB;
}

.round-result-chart-container canvas {
  border-radius: 12px;
  padding: 20px;
}

.round-result-chart-container {
  max-width: 280px;
  width: 280px;
  height: 330px;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.round-result-chart-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#roundResultChart {
  width: 100% !important;
  height: auto !important;
  max-height: 260px; /* ← コンテナ高さを見て調整可 */
}

.round-result-chart-title {
  font-size: 20px;
  font-weight: 700;
  font-family: Arial;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.round-result-chart-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: -10px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.2px;
}

.round-result-chart-wrapper canvas {
  width: 100%;
  margin: -5px 0 0 -20px;
  aspect-ratio: 1 / 1.2;
  border-radius: 12px;
}

.round-result-chart-block {
  display: flex;
  align-items: center;
}

.round-axis-label {
  text-align: center;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  color: #666; 
  margin-right: 0px;
  line-height: 1.2;
  margin-bottom: 35px;
  margin-left: 8px;
}

.round-result-chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: -17px;
  color: #333333;
}

.round-result-chart-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.round-result-chart-legend-color {
  width: 25px;
  height: 10px;
  border-radius: 0%;
  margin-bottom: -1px;
}

.round-result-chart-legend-color.wins {
  background-color: var(--win-color);
}

.round-result-chart-legend-color.losses {
  background-color: var(--lose-color);
}

.round-result-chart-legend-label {
  font-weight: bold;
  margin-bottom: 1px;
  font-size: 11px;
  color: #3A4F66;
}

.round-result-chart-legend-value {
  color: #555;
  font-size: 10px;
}



/* ヒートマップ */

.heatmap-box {
  width: 100%;
  height: 300px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 12px;
  box-sizing: border-box;
}

/* --- ヒートマップのタイトル調整 --- */
.heatmap-title {
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  background-color: #ffffff;
  padding: 8px 12px;
  margin: 0;
  border-radius: 12px 12px 0 0;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 10;
  pointer-events: none;
}

.heatmap-title small {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  margin-top: 2px;
  letter-spacing: -0.2px;
}

/* --- ヒートマップボックス調整 --- */
.heatmap-box {
  flex: 0 0 280px;
  width: 280px;
  height: 330px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding-top: 40px; /* タイトル分の余白を確保 */
  padding-bottom: 12px;
  box-sizing: border-box;
  position: relative;
}

/* --- ヒートマップマップ内のフォント指定 --- */
#heatmap-wins .main-svg text,
#heatmap-losses .main-svg text {
  font-weight: 700 !important;
}


/* --- フィニッシュ横棒グラフ --- */

:root {
  --bar-color-win: #B71C1C;
  --bar-color-lose: #1A237E;
  --bar-y-label-size: 12;
}

.horizontal-bar-chart {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  width: 100%;
  max-width: 424px;
  height: 300px;
  overflow: hidden;
  margin: 0 auto 20px;
  padding: 0;

}

.horizontal-bar-chart h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.horizontal-bar-chart canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
}


.plotly-container {
  position: relative;
  width: 100%;
  max-width: 424px;
  height: 300px;      /* 必ず一致させる */
  box-sizing: border-box;
}

.plotly-title-overlay {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.plotly-title-overlay .chart-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  font-family: Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.plotly-title-overlay .chart-subtitle {
  font-size: clamp(11px, 2.5vw, 13px);
  white-space: nowrap;
  font-weight: 700;
  color: #333333;
  margin: 2px 0 0 0;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.2px;
}

.chart-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  position: relative;
}

.info-icon {
  display: inline-block;
  margin-left: 6px;
  cursor: help;
  color: #666;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  pointer-events: auto;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 100;
  top: 150%;
  left: 50%;
  transform: translateX(-80%); /* ← 強く左に引っ張る */
  width: 260px;
  max-width: 90vw; /* スマホ画面を超えないように */
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: normal;
  transition: opacity 0.3s;
  pointer-events: none;
}

.info-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* X軸ラベルを太字に */
.plotly-container .xaxislayer-above .xtick text {
  font-weight: 700 !important;
}

/* --- 対日本人／対非日本人の勝敗比率ドーナツグラフ --- */

.nationality-donut-chart-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.nationality-donut-container {
  width: 280px;
  max-width: 280px;
  height: 330px;  
  margin: 0rem 0px 0px 0px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.nationality-donut-title {
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nationality-donut-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nationality-donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 25px;
  font-weight: 700;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

.nationality-donut-legend-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.nationality-donut-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.nationality-donut-legend-color {
  width: 25px;
  height: 10px;
  border-radius: 0%;
  margin-bottom: 2px;
}

.nationality-donut-legend-color.wins {
  background-color: var(--color-wins);
}

.nationality-donut-legend-color.losses {
  background-color: var(--color-losses);
}

.nationality-donut-legend-label {
  font-weight: bold;
  margin-bottom: 1px;
  font-size: 11px;
}

.nationality-donut-legend-value {
  color: #555;
  font-size: 10px;
}



/* === 月別勝敗グラフスタイル === */
.monthly-outcome-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;   /* ← お好みで余白を調整 */
  margin-bottom: 1rem;
  width: 100%;
}

.monthly-outcome-chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 200px;
  box-sizing: border-box;
}

.monthly-outcome-container {
  width: 100%;
  max-width: 500px;           /* ← PC時に制限 */
  height: auto;               /* ← 高さは中身に任せる */
  margin: 0;             /* ← 中央に寄せる */
  padding: 10px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  box-sizing: border-box;
  justify-content: center;
}

#monthly-outcome-chart {
  width: 100% !important;
  max-width: 500px;
  height: auto !important;
  display: block;
}

.monthly-outcome-title {
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-top: 3px;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.monthly-outcome-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 0px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-family: 'Montserrat', sans-serif;
}

.monthly-outcome-legend-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.monthly-outcome-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.monthly-outcome-legend-color {
  width: 25px;
  height: 10px;
  border-radius: 0%;
  margin-bottom: 2px;
}

.monthly-outcome-legend-color.wins {
  background-color: #B71C1C;
}

.monthly-outcome-legend-color.losses {
  background-color: #1A237E;
}

.monthly-outcome-legend-label {
  font-weight: bold;
  margin: -4px 0px 0px 0px;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
}



/* === 戦績表 === */
.record-table-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  padding-left: 8px;
  margin: 20px 0rem 0rem -10px;
  letter-spacing: 0.08em;
  border-left: 6px solid #C9A941;
  line-height: 1.3;
  display: inline-block;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

.record-table-title span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333333;
  font-family: 'Montserrat', sans-serif;
  margin-left: 0px;
  letter-spacing: -0.05em;
  text-transform: none;
  position: relative;
  top: -1px;
}


.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  text-align: center;
}

.badge-win  { background-color: #B71C1C; }
.badge-lose { background-color: #1A237E; }
.badge-draw { background-color: #388E3C; }
.badge-nc   { background-color: #B0BEC5; }

/* 決着方法バッジの背景色を勝敗ベースで設定 */
.badge-method.KO.badge-win,
.badge-method.TKO.badge-win,
.badge-method.一本.badge-win,
.badge-method.判定.badge-win,
.badge-method.反則.badge-win {
  background-color: #fff;
  color: #C62828;
  border: 1px solid #C62828;
}

.badge-method.KO.badge-lose,
.badge-method.TKO.badge-lose,
.badge-method.一本.badge-lose,
.badge-method.判定.badge-lose,
.badge-method.反則.badge-lose {
  background-color: #fff;
  color: #1565C0;
  border: 1px solid #1565C0;
}

.badge-method.引き分け {
  background-color: #fff;
  color: #388E3C;
  border: 1px solid #388E3C;
}

.record-table-center-cell {
  text-align: center;
  vertical-align: middle;
}

#fight-results {
  cursor: grab;
}
#fight-results:active {
  cursor: grabbing;
}

.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 8px;
  animation: fade-in-out 1.5s infinite;
  user-select: none;
}

.scroll-arrow {
  font-size: 1rem;
  animation: arrow-blink 1.5s infinite;
}

@keyframes arrow-blink {
  0%, 100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

@keyframes fade-in-out {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


.row-win {
  background-color: #FFF5F5;  /* 薄い赤 */
}
.row-lose {
  background-color: #F5F9FF;  /* 薄い青 */
}
.row-draw {
  background-color: #F5FFF5;  /* 薄い緑 */
}
.row-nc {
  background-color: #F5F5F5;  /* 薄いグレー */
}

#fight-results tr:hover {
  background-color:#FFD700;
  transition: background-color 0.2s ease;
}

#fight-results th {
  background-color: #2c2c2c;
  color: #C9A941;
  font-weight: bold;
  border-bottom: 2px solid #d4af37;
  border: 1px solid #999;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.8;
  font-family: 'Noto Sans JP', sans-serif;
}

#fight-results td {
  border: 1px solid #999;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.8;
  font-family: 'Noto Sans JP', sans-serif;
}

#fight-results td:nth-child(5),
#fight-results th:nth-child(5) {
  min-width: 60px;
  text-align: center;
}

#fight-results {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#fight-results a:link {
  color:  /* 未訪問：濃い青 */
}
#fight-results a:visited {
  color:  /* 訪問済み：紫 */
}
#fight-results a:hover {
  text-decoration: underline;
}
#fight-results a {
  font-weight: 600;
  transition: color 0.2s;
}

#fighter-search {
 padding: 0px 5px;
}




/* === NEWS === */





/* 投稿本文エリアの背景を半透明白にする */
.single-post article.post {
  background-color: rgba(255, 255, 255, 0.9) !important;
  padding: 0px 32px 32px 32px !important;
  border-radius: 0px !important;
  box-sizing: border-box !important;
}

.single-post img.wp-post-image {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.single .ct-featured-image {
  display: none !important;
}

/* 横並びとサイズ固定 */
.ct-container[data-sidebar="right"] {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  width: 1200px !important;
  margin: 0 auto;
  padding: 0 !important;
  gap: 0 !important;
  box-sizing: border-box;
}

/* メイン：900px固定 */
.ct-container[data-sidebar="right"] > section {
  width: 900px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* サイドバー：300px固定 */
.ct-container[data-sidebar="right"] > .sidebar {
  width: 300px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.ct-container > section > .entries {
  padding: 32px;
  box-sizing: border-box;
}

/* NEWSの投稿カード：ホバー時のみ装飾 */
/* 通常状態：ここに transition を置く（hover側に置かない） */
body.blog .entry-card,
body.category .entry-card {
  transform: translateY(0);
  box-shadow: none;
  transition: transform 150ms ease,
              box-shadow 150ms ease,
              border-color 150ms ease;
  will-change: transform;
  backface-visibility: hidden;
}

/* ホバー時：NEWS一覧 & すべてのカテゴリ一覧で適用 */
body.blog .entry-card:hover,
body.category .entry-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 6px 12px rgba(255, 215, 0, 0.3);
  border-color: #C9A941; /* テーマが枠線を持っている前提で色だけ変更 */
}


/* 投稿一覧(NEWS) と カテゴリ一覧のカードタイトルのサイズ */
body.blog .entry-card .entry-title,
body.category .entry-card .entry-title {
  font-size: 14px;   /* ←好みのpxに */
  line-height: 1.35;
  font-weight: 700;
}



/* ===============================
   1200〜900px：サイドバー横並び＋カード3列
   =============================== */
@media (max-width: 1199px) and (min-width: 900px) {
  body.blog .ct-container[data-sidebar],
  body.category .ct-container[data-sidebar] {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
  }

  body.blog .ct-container[data-sidebar] > section,
  body.category .ct-container[data-sidebar] > section,
  body.blog .ct-container[data-sidebar] > main,
  body.category .ct-container[data-sidebar] > main {
    width: calc(100% - 300px) !important;
    flex: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  body.blog .ct-container[data-sidebar] > aside.sidebar,
  body.category .ct-container[data-sidebar] > aside.sidebar {
    width: 300px !important;
    flex: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* ★ カード3列 ★ */
  body.blog .entries,
  body.category .entries {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

/* ===============================
   899〜600px：サイドバー縦並び＋カード3列
   =============================== */
@media (max-width: 899px) and (min-width: 600px) {
  body.blog .ct-container[data-sidebar] > section,
  body.category .ct-container[data-sidebar] > section { width: 100% !important; }
  body.blog .ct-container[data-sidebar] > section > .entries,
  body.category .ct-container[data-sidebar] > section > .entries { width: 100% !important; }

  body.blog .ct-container[data-sidebar] > section > .entries[data-layout="grid"],
  body.category .ct-container[data-sidebar] > section > .entries[data-layout="grid"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  body.blog .ct-container[data-sidebar] > section > .entries .entry-card,
  body.category .ct-container[data-sidebar] > section > .entries .entry-card,
  body.blog .ct-container[data-sidebar] > section > .entries .card-content,
  body.category .ct-container[data-sidebar] > section > .entries .card-content {
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ===== 599〜400px：2列 ===== */
@media (max-width: 599px) and (min-width: 400px) {
  body.blog .ct-container[data-sidebar] > section > .entries[data-layout="grid"],
  body.category .ct-container[data-sidebar] > section > .entries[data-layout="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ===== 399px以下：1列 ===== */
@media (max-width: 399px) {
  body.blog .ct-container[data-sidebar] > section > .entries[data-layout="grid"],
  body.category .ct-container[data-sidebar] > section > .entries[data-layout="grid"] {
    grid-template-columns: 1fr !important;
  }
}



/* === 900px未満はサイドバーを下へ（NEWS一覧＆NEWSカテゴリ共通）=== */
@media (max-width: 899px) {

  /* コンテナを縦並びに */
  body.blog  .ct-container[data-sidebar],
  body.category .ct-container[data-sidebar]{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;     /* ← 1200px固定を無効化 */
    max-width: 100% !important;
    gap: 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* メインを上・全幅に */
  body.blog  .ct-container[data-sidebar] > section,
  body.blog  .ct-container[data-sidebar] > main,
  body.category .ct-container[data-sidebar] > section,
  body.category .ct-container[data-sidebar] > main {
    order: 1 !important;
    width: 100% !important;     /* ← 900px固定を無効化 */
    margin: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* サイドバーを下・可変幅に（中央寄せ） */
  body.blog  .ct-container[data-sidebar] > aside.sidebar,
  body.category .ct-container[data-sidebar] > aside.sidebar {
    order: 2 !important;
    width: clamp(300px, 92vw, 100%) !important; /* 300〜100% */
    margin: 2rem auto 0 !important;
    padding: 0 1rem !important;
    background: transparent !important;
    box-sizing: border-box !important;
    align-self: center !important;
  }
}




/* ===== 投稿メタ ===== */
.entry-meta {
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

.entry-meta > * {
  margin-left: 0.5rem;
}



/* ===============================
   記事ページ（single）用
   =============================== */

/* 記事ページのタイトルを中央寄せ */
body.single-post .page-title,
body.single-post .entry-title {
  text-align: center !important;
  margin: 15px auto !important;
}

/* 1200〜900px：2カラムのまま可変（メインが縮む） */
@media (max-width: 1199px) and (min-width: 900px) {
  body.single-post .ct-container[data-sidebar]{
    display: flex !important;
    width: 100% !important;            /* 1200px固定を解除 */
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
  }
  /* メインを可変、サイドバーは300px固定 */
  body.single-post .ct-container[data-sidebar] > section,
  body.single-post .ct-container[data-sidebar] > main {
    width: calc(100% - 300px) !important;  /* ← メインを縮める */
    flex: none !important;
    margin: 0 !important;
    min-width: 0 !important;               /* はみ出し保険 */
    box-sizing: border-box !important;
  }
  body.single-post .ct-container[data-sidebar] > aside.sidebar {
    width: 300px !important;
    flex: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* 899px未満：サイドバーを下へ／メインは全幅に */
@media (max-width: 899px) {
  body.single-post .ct-container[data-sidebar]{
    display: flex !important;
    flex-direction: column !important;  /* ← 下に回す */
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  body.single-post .ct-container[data-sidebar] > section,
  body.single-post .ct-container[data-sidebar] > main {
    order: 1 !important;
    width: 100% !important;             /* ← メインを画面幅にフィット */
    margin: 0 !important;
  }
  body.single-post .ct-container[data-sidebar] > aside.sidebar {
    order: 2 !important;
    width: clamp(300px, 92vw, 100%) !important;  /* 中央寄せで下へ */
    margin: 2rem auto 0 !important;
    padding: 0 1rem !important;
    background: transparent !important;
    box-sizing: border-box !important;
    align-self: center !important;
  }
    /* 記事ページ（single-post）だけ左右paddingを5pxに */
  body.single-post article.post {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}



/* メインの中身がはみ出さない保険（画像・表など） */
body.single-post .entry-content,
body.single-post article.post {
  width: min(100%, 900px);
  margin: 0 auto;
  box-sizing: border-box;
}
body.single-post .entry-content img,
body.single-post .entry-content table,
body.single-post .entry-content iframe {
  max-width: 100% !important;
  height: auto;
}






/* 関連投稿の余白を調整 */
.ct-related-posts.is-width-constrained {
  margin: 0 !important;
	padding: 20px 0 0 !important;
}


/* 900px未満：関連投稿を中央寄せに */
@media (max-width: 899px) {
  /* コンテナは全幅＋余白リセット（ずれ防止） */
  .ct-related-posts.is-width-constrained,
  .ct-related-posts.is-width-constrained .ct-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* entries を“中央寄せグリッド”に固定（flex化されても効くように併用） */
  .ct-related-posts .entries {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 16px !important;
    justify-content: center !important;   /* グリッドの中央寄せ */
    place-content: center !important;     /* 念のため */
    width: 100% !important;
    padding-left: 5px !important;         /* 必要なら微調整 */
    padding-right: 5px !important;
    box-sizing: border-box !important;
  }

  /* カード自体も中央に寄せる保険（flexになっても効く） */
  .ct-related-posts .entry-card,
  .ct-related-posts .card-content {
    margin: 0 auto !important;
    max-width: 520px;                     /* 1枚時に広がりすぎないように */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 画像は枠いっぱいに */
  .ct-related-posts .ct-media-container,
  .ct-related-posts .ct-media-container img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
}





/* NEWSカード（既存の配置のまま、画像サイズだけ統一） */
.home-news-section .fighter-card .fighter-thumb {
  aspect-ratio: 1/1;   /* 好みで 4/3 や 1/1 に変更可 */
  overflow: hidden;
  border-radius: 8px;
  background: #2d2d2d;    /* サムネ無しの埋め草 */
}

.home-news-section .fighter-card .fighter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* ← 画像を切らずに“収める” */
  object-position: center;  /* 位置は中央（好みで top / 50% 18% など） */
  display: block;
}

/* NEWSカードのタイトル（ファイター用の .fighter-name は使わない） */
.home-news-section .news-title {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: #f8f8f8;
  margin: 5px 0px 0px 0px; /* これまでの見た目踏襲 */
  text-align: center;
}

/* front-page の NEWS：日付を右寄せ */
.home-news-section .news-meta {
  display: flex;            /* 既存がblockでもOKなように上書き */
  justify-content: flex-end;
  text-align: right;        /* 念のための保険 */
  gap: 0;
  margin: 5px 0px 0px 0px;
}

.home-news-section .news-meta .news-date {
  margin-left: auto;        /* 将来要素が増えても右端キープ */
  color: #f8f8f8;
}






/* =========================
   TAG（/tag/）もNEWS/カテゴリと同じ挙動に
   ========================= */

/* ホバー演出・タイトルサイズ（NEWS/カテゴリと同じ） */
body.tag .entry-card,
body[data-prefix="tag"] .entry-card {
  transform: translateY(0);
  box-shadow: none;
  transition: transform 150ms ease,
              box-shadow 150ms ease,
              border-color 150ms ease;
  will-change: transform;
  backface-visibility: hidden;
}
body.tag .entry-card:hover,
body[data-prefix="tag"] .entry-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 6px 12px rgba(255, 215, 0, 0.3);
  border-color: #C9A941;
}
body.tag .entry-card .entry-title,
body[data-prefix="tag"] .entry-card .entry-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

/* ============ 1200〜900px：サイドバー横並び＋カード3列 ============ */
@media (max-width: 1199px) and (min-width: 900px) {
  body.tag .ct-container[data-sidebar],
  body[data-prefix="tag"] .ct-container[data-sidebar] {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
  }

  body.tag .ct-container[data-sidebar] > section,
  body[data-prefix="tag"] .ct-container[data-sidebar] > section,
  body.tag .ct-container[data-sidebar] > main,
  body[data-prefix="tag"] .ct-container[data-sidebar] > main {
    width: calc(100% - 300px) !important;
    flex: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  body.tag .ct-container[data-sidebar] > aside.sidebar,
  body[data-prefix="tag"] .ct-container[data-sidebar] > aside.sidebar {
    width: 300px !important;
    flex: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* ★ カード3列 ★ */
  body.tag .entries,
  body[data-prefix="tag"] .entries {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

/* ============ 899〜600px：サイドバー縦並び＋カード3列 ============ */
@media (max-width: 899px) and (min-width: 600px) {
  body.tag .ct-container[data-sidebar] > section,
  body[data-prefix="tag"] .ct-container[data-sidebar] > section { width: 100% !important; }

  body.tag .ct-container[data-sidebar] > section > .entries,
  body[data-prefix="tag"] .ct-container[data-sidebar] > section > .entries { width: 100% !important; }

  body.tag .ct-container[data-sidebar] > section > .entries[data-layout="grid"],
  body[data-prefix="tag"] .ct-container[data-sidebar] > section > .entries[data-layout="grid"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  body.tag .ct-container[data-sidebar] > section > .entries .entry-card,
  body[data-prefix="tag"] .ct-container[data-sidebar] > section > .entries .entry-card,
  body.tag .ct-container[data-sidebar] > section > .entries .card-content,
  body[data-prefix="tag"] .ct-container[data-sidebar] > section > .entries .card-content {
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ===== 599〜400px：2列 ===== */
@media (max-width: 599px) and (min-width: 400px) {
  body.tag .ct-container[data-sidebar] > section > .entries[data-layout="grid"],
  body[data-prefix="tag"] .ct-container[data-sidebar] > section > .entries[data-layout="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ===== 399px以下：1列 ===== */
@media (max-width: 399px) {
  body.tag .ct-container[data-sidebar] > section > .entries[data-layout="grid"],
  body[data-prefix="tag"] .ct-container[data-sidebar] > section > .entries[data-layout="grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* === 900px未満：サイドバーを下へ（NEWS/カテゴリと同じ） === */
@media (max-width: 899px) {
  body.tag .ct-container[data-sidebar],
  body[data-prefix="tag"] .ct-container[data-sidebar] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body.tag .ct-container[data-sidebar] > section,
  body.tag .ct-container[data-sidebar] > main,
  body[data-prefix="tag"] .ct-container[data-sidebar] > section,
  body[data-prefix="tag"] .ct-container[data-sidebar] > main {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.tag .ct-container[data-sidebar] > aside.sidebar,
  body[data-prefix="tag"] .ct-container[data-sidebar] > aside.sidebar {
    order: 2 !important;
    width: clamp(300px, 92vw, 100%) !important;
    margin: 2rem auto 0 !important;
    padding: 0 1rem !important;
    background: transparent !important;
    box-sizing: border-box !important;
    align-self: center !important;
  }
}










/* ── お問い合わせテンプレ専用 ── */

/* お問い合わせ（page-id=2142）だけサイドバーを消す＋1カラム化 */
body.page-id-2142 .sidebar,
body.page-id-2142 .ct-sidebar,
body.page-id-2142 aside[data-type="sidebar"],
body.page-id-2142 #secondary.widget-area,
body.page-id-2142 .widget-area[role="complementary"] {
  display: none !important;
}

/* 自作の2カラムラッパーを単列に戻す（残り幅の崩れ対策） */
body.page-id-2142 .main-with-sidebar { 
  display: block !important; 
}
body.page-id-2142 .page-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}


/* 2142 | page-title を中央配置 */
body.page-id-2142 .page-title { 
  text-align: center !important;
}
body.page-id-2142 .page-title h1 {
  margin: 0 auto !important;
}


/* 2142 | 入力欄の枠色（通常 / hover / focus） */
body.page-id-2142{
  --contact-border: #b5b5b5;              /* 通常 */
  --contact-hover:  #c9a941;              /* hover */
  --contact-focus:  #c9a941;              /* focus */
  --contact-focus-ring: rgba(201,169,65,.35);
  --err-space: 18px; /* エラーメッセージ分の固定スペース */
}

body.page-id-2142 .wpcf7-form :is(input:not([type="submit"]), select, textarea) {
  border: 1px solid var(--contact-border) !important;
  outline: 0;
  transition: border-color .12s, box-shadow .12s;
}

body.page-id-2142 .wpcf7-form :is(input:not([type="submit"]), select, textarea):hover {
  border-color: var(--contact-hover) !important;
}

body.page-id-2142 .wpcf7-form :is(input:not([type="submit"]), select, textarea):is(:focus, :focus-visible) {
  border-color: var(--contact-focus) !important;
  box-shadow: 0 0 0 3px var(--contact-focus-ring);
  outline: 0;
}



/* お問い合わせ(2142)の入力欄の文字を細くする */
body.page-id-2142 .wpcf7-form input:not([type="submit"]),
body.page-id-2142 .wpcf7-form select,
body.page-id-2142 .wpcf7-form textarea,
body.page-id-2142 .wpcf7-form .wpcf7-form-control {
  font-weight: 400 !important;   /* 300=細め / 400=標準 */
  font-family: inherit !important;
}

/* セレクトの候補も太字を打ち消す */
body.page-id-2142 .wpcf7-form select option {
  font-weight: 400 !important;
}

/* プレースホルダー（薄いグレー文字）も標準ウェイトに */
body.page-id-2142 .wpcf7-form ::placeholder {
  font-weight: 400 !important;
}

/* 2142 | フィールド下のズレ防止（固定スペース） */
body.page-id-2142 .wpcf7-form p{
  position: relative;
  padding-bottom: 18px; /* 高さは好みで */
}

/* 入力欄の“外・直下”に表示する */
body.page-id-2142 .wpcf7-not-valid-tip{
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  margin: 0 !important;
  white-space: nowrap;
  line-height: 1.2;
  pointer-events: none;
  font-style: normal !important;
}

/* 絶対配置の基準を入力ラッパーに付与 */
body.page-id-2142 .wpcf7-form .wpcf7-form-control-wrap{
  position: relative;
  display: block;
}

body.page-id-2142 .wpcf7-response-output {
  font-style: normal !important;
  margin: 8px 0 0 !important;
}


/* 2142だけ：ラベル上で指アイコンにならないようにする */
body.page-id-2142 .wpcf7-form label { 
  cursor: default !important;
  font-weight: 500 !important;
}




/* お問い合わせ（page-id=2142）送信ボタン：中央配置＆簡潔 */

/* 親<p>を中央寄せ（:has + フォールバック） */
body.page-id-2142 .wpcf7 form.wpcf7-form p:has(> input.wpcf7-submit),
body.page-id-2142 .wpcf7 form.wpcf7-form p:last-of-type {
  margin: -30px 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
}

/* ボタン本体 */
body.page-id-2142 .wpcf7 input.wpcf7-submit[type="submit"] {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 8px 18px;
  background: linear-gradient(to bottom, #f1e08a, #c9a941, #8c6d1f);
  color: #212121;
  font-size: 1rem;
  font-weight: 600 !important;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
  cursor: pointer;
  transition: color .2s;
}

/* ホバー：文字だけ白 */
body.page-id-2142 .wpcf7 input.wpcf7-submit[type="submit"]:hover {
  color: #fff !important;
}



/* 2142 | 必須バッジ */
body.page-id-2142 .wpcf7-form label .req{
  display: inline-block;
  margin-left: .6em;
  padding: .32em .8em;           /* ← 大きさはここで調整 */
  font-size: 12px;              /* ← もう少し大きく */
  font-weight: 500;
  line-height: 1;
  color: #1A1A1A;
  background: linear-gradient(to bottom, #f1e08a, #c9a941, #8c6d1f);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  vertical-align: middle;
}




/* ── プライバシーポリシー専用（page-id=2157）── */

/* 2157：サイドバーを消す */
body.page-id-2157 .sidebar,
body.page-id-2157 .ct-sidebar,
body.page-id-2157 aside[data-type="sidebar"],
body.page-id-2157 #secondary.widget-area,
body.page-id-2157 .widget-area[role="complementary"] {
  display: none !important;
}

/* 2157：2カラムラッパーを単列に戻す */
body.page-id-2157 .main-with-sidebar { 
  display: block !important; 
}

/* 2157：本文を全幅に */
body.page-id-2157 .page-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

/* ── フッターのプライバシーポリシー（hover無効化） ── */
.ct-footer .ct-menu-link:hover,
.ct-footer .ct-menu-link:focus,
.ct-footer .ct-menu-link:active {
  background: none !important;      /* 背景変化を無効化 */
}



/* トップへ戻るボタン */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #C9A941;
  color: #121212;
  font-size: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
}
#back-to-top:hover {
  background-color: #E6C75D;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}











/* ==================== スマホエリア ===================== */


@media (max-width: 849.98px) {
  
  .senshu-detail {
    padding: 0 12px;
  }
  
  .senshu-photo-wrapper {
    margin: 20px auto 20px auto;
    max-width: 100%;
  }

  .senshu-photo-img {
    max-width: 300px; /* ← 好きなサイズに調整 */
    margin: 0 auto;    /* ← 中央寄せ（画像がブロック表示されている場合） */
    display: block;
  }

  .senshu-name-block {
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: center;
  }

  .senshu-name-block .name-jp {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .senshu-name-block .name-en {
    font-size: 1rem;
    font-weight: bold;
    color: #222;
  }

  .senshu-info {
    display: flex;
    flex-direction: column; /* 横並びから縦並びに */
    align-items: center;     /* 写真とプロフィールを中央に寄せる */
  }

  .senshu-data-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
  }

  .senshu-data {
    max-width: 100%;
    width: 100%;
	margin: 0 auto; 
	display: inline-block;
    text-align: left;
  }

  .senshu-data ul {
    margin: 0 auto;
    padding: 0;
    width: max-content;
  }

  .senshu-data li {
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
	gap: 1rem;
  }

  .senshu-data strong {
    display: inline-block;
    width: 100px;
    text-align: left;
  }

  .senshu-profile-text {
    width: 90%;
	margin: 10px 0px 10px 0px; /* プロフィール本文との間隔も縮める */
    text-align: left; /* 念のため左揃えを指定しておく */
  }
  
  .fight-record-heading {
    margin: 0rem 0rem 1rem 0rem;
  }

  .fight-record-box {
    padding: 16px;
    max-width: 100%;
	margin-top: 5px;
  }

  .meter-wrapper {
    gap: 25px; /* スマホ時はWINSとLOSSESの間隔を狭くする */
  }

  .meter-label {
    text-align: center;
  }

  .draws-nc-group {
    display: block; /* スマホでは縦並びにする */
    margin-top: 0px;  
	margin-bottom: -10px
  }
  .draws-nc-group .meter-row {
    margin-bottom: 10px; /* DRAWとNO CONTESTの間に少し余白 */
  }
  .draws-nc-group .meter-bar-wrap {
    display: flex; /* メーター自体は横に並べる */
    flex-wrap: wrap;
    gap: 2px;
  }


  .graph-wrapper {
    justify-content: center !important;
  }


  #roundResultChart {
    width: 100%;
    height: auto;
  }

  canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  .separate-on-mobile {
    flex-direction: column !important;
    align-items: center !important;
  }
  


  header.site-header li.current-menu-item > .ct-menu-link,
  header.site-header li.current_page_item > .ct-menu-link,
  header.site-header li.current-menu-ancestor > .ct-menu-link {
    color: #fff !important;
    font-weight: 700 !important;
    position: relative !important;
  }


  header.site-header li.current-menu-item > .ct-menu-link::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 4px !important;
    background-color: #C9A941 !important;
  }
  


}



/* ==================== タブレットエリア ===================== */

@media screen and (min-width: 850px) and (max-width: 1000px) {

  
  .meter-wrapper {
    column-gap: 3rem !important; /* ← 元が 6rem → 3remに半分だけ詰める */
  }
  
  .draws-nc-group {
    gap: 3rem !important; /* DRAWSとNCの間も詰める（元6rem） */
  }
  




  header.site-header li.current-menu-item > .ct-menu-link,
  header.site-header li.current_page_item > .ct-menu-link,
  header.site-header li.current-menu-ancestor > .ct-menu-link {
    color: #fff !important;
    font-weight: 700 !important;
    position: relative !important;
  }

  header.site-header li.current-menu-item > .ct-menu-link::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 4px !important;
    background-color: #C9A941 !important;
  }

  
}







@media (min-width: 760px) and (max-width: 950px) {
  .break-point {
    width: 100%;
    height: 1px;
    display: block;
    clear: both; /* 両側のfloatを解除して改行を強制 */
  }
}

/* 他のグラフのレイアウトが崩れる可能性があるため、Flexboxを調整 */
.chart-row-wrapper {
  flex-wrap: wrap;
}









/* ===== ヘッダー検索の専用スタイル（search-input-wrapper） ===== */
div.search-input-wrapper input[type="search"],
div.search-input-wrapper input[name="s"] {
  width: 100%;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.95) !important;
  color: #000 !important;
  font-size: 16px;
  box-sizing: border-box;
}

div.search-input-wrapper button[type="submit"] {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px !important;
  background: linear-gradient(to bottom,#f1e08a,#c9a941,#8c6d1f) !important;
  color: #212121 !important;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}

div.search-input-wrapper button[type="submit"]:hover {
  opacity: 0.9;
}

/* 検索窓下の余白対策：ulの既定マージンを殺し、候補は絶対配置に */
.search-input-wrapper {
  position: relative !important; /* 念のため固定 */
  margin-bottom: 0 !important;   /* 念のため固定 */
}

/* ul が空でも余白が出ないように */
.search-input-wrapper .suggestion-list {
  position: absolute;
  top: calc(100% + 4px); /* 入力のすぐ下に重ねる */
  left: 0;
  right: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  display: none;          /* デフォルトは非表示 */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-height: 260px;
  overflow: auto;
  z-index: 9999;
}

/* 候補があるときだけ表示（JSでこのクラスを付ける想定。クラス名は任意） */
.search-input-wrapper .suggestion-list.is-open {
  display: block;
}

/* 念押し：テーマ側で search-input-wrapper に margin-bottom を付けている場合の無効化 */
.ct-search-panel .search-input-wrapper,
.header-search-form .search-input-wrapper {
  margin-bottom: 0 !important;
}


/* ===== ヘッダー検索モーダル専用・余白ゼロ化 ===== */
/* row-gap で 35px 空けられているケースを潰す */
:where(.ct-search-modal, .ct-search-modal-root, .ct-modal) .ct-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  row-gap: 0 !important;        /* ← ここが決め手 */
}

/* search-input-wrapper に margin-bottom を付けられているケースを潰す */
:where(.ct-search-modal, .ct-search-modal-root, .ct-modal)
  .ct-search-form .search-input-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

/* 念のため、候補ULや見えない要素が余白を作らないように */
:where(.ct-search-modal, .ct-search-modal-root, .ct-modal)
  .search-input-wrapper ul,
:where(.ct-search-modal, .ct-search-modal-root, .ct-modal)
  .search-input-wrapper .suggestion-list {
  margin: 0 !important;
  padding: 0 !important;
  display: none;                /* 候補を使う場合はJSで開く時だけ表示 */
}

/* 入力とボタンの見た目も強制統一（効いていない場合があるため） */
:where(.ct-search-modal, .ct-search-modal-root, .ct-modal)
  .ct-search-form :is(input[type="search"], input[name="s"], .wp-block-search__input) {
  height: 40px;
  padding: 10px 12px;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.95) !important;
  color: #000 !important;
  box-sizing: border-box;
}

:where(.ct-search-modal, .ct-search-modal-root, .ct-modal)
  .ct-search-form :is(button[type="submit"], .wp-block-search__button, .search-submit) {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px !important;
  background: linear-gradient(to bottom,#f1e08a,#c9a941,#8c6d1f) !important;
  color: #212121 !important;
  font-weight: 700;
}


/* ==== Blocksyヘッダー検索 専用：下の余白ゼロ固定 ==== */

/* フォーム自体の行間・行間隔をゼロに */
:where(.ct-search-modal,.ct-search-modal-root,.ct-panel,.ct-search-panel)
  .header-search-form{
  display:grid !important;
  grid-template-columns: 1fr auto !important;
  column-gap: 8px !important;
  row-gap: 0 !important;         /* ← これで行間の35pxを潰す */
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;     /* 念のため */
}

/* 入力＋ボタンのラッパの余白を完全ゼロに */
:where(.ct-search-modal,.ct-search-modal-root,.ct-panel,.ct-search-panel)
  .header-search-form .search-input-wrapper{
  margin: 0 !important;
  padding: 0 !important;
}

/* “下に押し広げる犯人”になりがちな ul をリセット＆非表示（候補を使う時はJSで開く） */
:where(.ct-search-modal,.ct-search-modal-root,.ct-panel,.ct-search-panel)
  .header-search-form .search-input-wrapper :is(ul, .suggestion-list){
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: none;                 /* 候補表示時はJSで .is-open を付与 */
}
:where(.ct-search-modal,.ct-search-modal-root,.ct-panel,.ct-search-panel)
  .header-search-form .search-input-wrapper .suggestion-list.is-open{
  display: block;
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
}

/* 万一、子要素に margin-bottom が仕込まれていても潰す最終手段 */
:where(.ct-search-modal,.ct-search-modal-root,.ct-panel,.ct-search-panel)
  .header-search-form *{
  margin-bottom: 0 !important;
}

/* ついでに、パネル側が余白を持っているケースを潰す（テーマ差分対策） */
:where(.ct-search-modal,.ct-search-modal-root,.ct-panel,.ct-search-panel)
  .ct-panel-content{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* === 検索ボタン：hoverで文字を白に（強制） === */

/* ヘッダー検索モーダル／ドロワー */
:where(.ct-search-modal,.ct-search-modal-root,.ct-panel,.ct-search-panel)
  .header-search-form :is(button[type="submit"], .wp-block-search__button, .search-submit):hover{
  color:#fff !important;
}

/* 900px未満で上部に出る検索／サイドバー由来の検索フォームも含めて */
@media (max-width: 899px){
  :where(.mobile-search-form,.search-form,.wp-block-search,.ct-search-form)
    :is(button[type="submit"], .wp-block-search__button, .search-submit):hover{
    color:#fff !important;
  }
}

/* 念のため、通常状態の“黒文字”指定よりも強くしておく（どこでも） */
:where(.mobile-search-form,.search-form,.wp-block-search,.ct-search-form,
       .ct-search-modal,.ct-search-modal-root,.ct-panel,.ct-search-panel)
  :is(button[type="submit"], .wp-block-search__button, .search-submit){
  color:#212121 !important; /* 通常：黒 */
}


/* === サイドバー＆900px未満：検索ボタン hover で文字を白に === */
:where(.sidebar, .mobile-search-form, .search-widget, .search-form, .wp-block-search, .ct-search-form)
  :is(button[type="submit"], input[type="submit"], .search-submit, .wp-block-search__button):hover {
  color: #fff !important;
}

/* 念のため active / focus でも白に */
:where(.sidebar, .mobile-search-form, .search-widget, .search-form, .wp-block-search, .ct-search-form)
  :is(button[type="submit"], input[type="submit"], .search-submit, .wp-block-search__button):is(:active, :focus) {
  color: #fff !important;
}






/* 戦績表の上の広告 */

/* ラッパー自体で中央寄せ（子が何でも中央へ） */
.rakuten-ad-wrapper{
  display:flex;
  justify-content:center;
  margin:40px 0 20px 0;
}

/* 念のため、子要素を縮ませない */
.rakuten-ad-wrapper > *{
  flex:0 0 auto;
}

