@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* =====================================================
   KBF共通設定：色・フォント・基本余白
   - 深緑ベースで全ページの色を統一
   - BIZ UDPGothicを優先し、本文を少し濃く表示
===================================================== */

:root {
  --kbf-main: #3f6b57;
  --kbf-main-dark: #29473a;
  --kbf-main-light: #eef4f0;
  --kbf-accent: #6f8f55;
  --kbf-bg: #f7f5ef;
  --kbf-card-bg: #ffffff;
  --kbf-border: #d7e2da;
  --kbf-border-light: #e7eee9;
  --kbf-text: #242824;
  --kbf-subtext: #343a34;
  --kbf-muted: #626b62;
  --kbf-disabled-bg: #e7ebe6;
  --kbf-disabled-text: #545c54;
  --kbf-warning-bg: #fff3d8;
  --kbf-warning-text: #85620e;
  --kbf-shadow: 0 4px 14px rgba(40, 70, 55, 0.06);
  --kbf-shadow-hover: 0 10px 22px rgba(63, 107, 87, 0.16);
  --kbf-radius-sm: 8px;
  --kbf-radius-md: 14px;
  --kbf-radius-lg: 18px;
  --kbf-radius-xl: 20px;
}

/* サイト全体のフォント */
body,
button,
input,
select,
textarea,
.article,
.entry-content,
.header,
.footer,
.navi {
  font-family: "BIZ UDPGothic", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif !important;
  color: var(--kbf-text);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* Cocoon側のフォント変数 */
:root {
  --cocoon-default-font: "BIZ UDPGothic", "Meiryo", sans-serif !important;
}

/* 見出しの共通フォント */
h1,
h2,
h3,
h4,
h5,
h6,
.site-name,
.site-description,
.entry-title,
.widget-title,
.article h1,
.article h2,
.article h3,
.article h4 {
  font-family: "BIZ UDPGothic", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif !important;
  color: var(--kbf-main-dark);
  font-weight: 700;
}

/* 本文・説明文の可読性 */
p,
li,
dd,
td {
  color: var(--kbf-subtext);
}

/* KBFページ共通の横幅 */
.kbf-schedule-page,
.kbf-class-page,
.kbf-links-page,
.kbf-other-page,
.kbf-senior-page,
.kbf-selection-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  color: var(--kbf-text);
}

/* =====================================================
   グローバルメニュー：3階層を縦に常時表示
   - Cocoon標準の横展開を無効化
   - 長いメニュー名でも省略されないよう調整
===================================================== */

.navi-in > ul > li {
  position: relative !important;
}

.navi-in > ul > li > ul.sub-menu {
  width: auto !important;
  min-width: 300px !important;
  max-width: none !important;
  padding: 0 !important;
  background-color: var(--kbf-bg) !important;
}

.navi-in > ul > li > ul.sub-menu li {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  background-color: var(--kbf-bg) !important;
  position: static !important;
}

.navi-in > ul > li > ul.sub-menu > li > a {
  display: block !important;
  width: 100% !important;
  min-width: 300px !important;
  padding: 14px 28px !important;
  line-height: 1.7 !important;
  white-space: nowrap !important;
  background-color: var(--kbf-bg) !important;
  color: var(--kbf-text) !important;
  box-sizing: border-box !important;
}

.navi-in > ul > li > ul.sub-menu > li > ul.sub-menu {
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--kbf-bg) !important;
  box-shadow: none !important;
}

.navi-in > ul .sub-menu ul {
  top: auto !important;
  left: auto !important;
  position: static !important;
}

.navi-in > ul > li > ul.sub-menu > li > ul.sub-menu > li > a {
  display: block !important;
  width: 100% !important;
  min-width: 300px !important;
  padding: 10px 28px 10px 42px !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  background-color: var(--kbf-bg) !important;
  color: var(--kbf-text) !important;
  box-sizing: border-box !important;
}

.navi-in > ul > li > ul.sub-menu,
.navi-in > ul > li > ul.sub-menu > li,
.navi-in > ul > li > ul.sub-menu > li > ul.sub-menu,
.navi-in > ul > li > ul.sub-menu > li > ul.sub-menu > li {
  width: max-content !important;
}

.navi-in > ul > li > ul.sub-menu .item-label,
.navi-in > ul > li > ul.sub-menu .caption-wrap {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.navi-in > ul > li > ul.sub-menu li > a:hover {
  background-color: var(--kbf-main-light) !important;
  color: var(--kbf-main-dark) !important;
}

/* =====================================================
   KBF共通パーツ：ヒーロー・ラベル・カード・ボタン
===================================================== */

/* 各ページ上部の説明エリア */
.kbf-page-hero,
.kbf-page-lead,
.kbf-detail-hero,
.kbf-important-box {
  background: linear-gradient(135deg, var(--kbf-main-light) 0%, #ffffff 74%);
  border: 1px solid var(--kbf-border);
  border-left: 6px solid var(--kbf-main);
  border-radius: var(--kbf-radius-lg);
  padding: 32px 28px;
  margin: 32px 0 30px;
  box-shadow: 0 4px 14px rgba(63, 107, 87, 0.10);
  text-align: left;
}

.kbf-page-kicker {
  margin: 0 0 6px;
  color: var(--kbf-main);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.kbf-page-hero h1,
.kbf-page-lead h2,
.kbf-detail-hero h2,
.kbf-detail-title,
.kbf-page-title {
  margin: 0 0 12px;
  color: var(--kbf-main-dark);
  font-weight: 700;
  line-height: 1.45;
}

.kbf-page-hero h1 {
  font-size: 2rem;
}

.kbf-page-lead h2,
.kbf-detail-hero h2,
.kbf-detail-title,
.kbf-page-title {
  font-size: 28px;
}

.kbf-page-hero p,
.kbf-page-lead p,
.kbf-detail-hero p,
.kbf-important-box p {
  margin: 0;
  color: var(--kbf-subtext);
  line-height: 1.8;
}

/* 小さなカテゴリラベル */
.kbf-page-label,
.kbf-important-label,
.kbf-status-label,
.kbf-card-label,
.kbf-category,
.kbf-class-badge,
.kbf-other-category,
.kbf-step-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--kbf-main);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* カード共通 */
.kbf-tile,
.kbf-tournament-card,
.kbf-detail-card,
.kbf-detail-box,
.kbf-schedule-card,
.kbf-class-card,
.kbf-feature-list div,
.kbf-contact-box,
.kbf-link-card,
.kbf-other-card,
.kbf-outline-card,
.kbf-outline-grid div,
.kbf-application-card,
.kbf-number-list div,
.kbf-info-grid div,
.kbf-club-card,
.kbf-flow-step,
.kbf-note-box {
  background: var(--kbf-card-bg);
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-md);
  box-shadow: var(--kbf-shadow);
  box-sizing: border-box;
}

/* hoverするカード */
.kbf-tile,
.kbf-tournament-card,
.kbf-year-card,
.kbf-link-card,
.kbf-other-card,
.kbf-club-card {
  transition: all 0.22s ease;
}

.kbf-tile:hover,
.kbf-tournament-card:hover,
.kbf-year-card:hover,
.kbf-link-card:hover,
.kbf-other-card:hover,
.kbf-club-card:hover {
  transform: translateY(-3px);
  border-color: var(--kbf-accent);
  box-shadow: var(--kbf-shadow-hover);
}

/* 強調背景 */
.kbf-schedule-card.kbf-featured,
.kbf-class-main,
.kbf-outline-card,
.kbf-club-message,
.kbf-notice-box,
.kbf-note-box {
  background: linear-gradient(135deg, var(--kbf-main-light) 0%, #ffffff 72%);
  border-color: var(--kbf-border);
}

/* ボタン共通 */
.kbf-main-button,
.kbf-sub-button,
.kbf-btn-main,
.kbf-btn-sub,
.kbf-entry-button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.kbf-main-button,
.kbf-btn-main,
.kbf-entry-button {
  background: var(--kbf-main);
  color: #ffffff !important;
}

.kbf-sub-button,
.kbf-btn-sub {
  background: #ffffff;
  color: var(--kbf-main) !important;
  border: 1px solid var(--kbf-main);
}

.kbf-main-button:hover,
.kbf-btn-main:hover,
.kbf-entry-button:hover {
  background: var(--kbf-main-dark);
  transform: translateY(-2px);
}

.kbf-sub-button:hover,
.kbf-btn-sub:hover {
  background: var(--kbf-main-light);
  transform: translateY(-2px);
}

/* リンク */
a,
.kbf-text-link {
  color: var(--kbf-main) !important;
}

.kbf-text-link {
  font-weight: 700;
  text-decoration: underline;
}

/* 無効ボタン */
.kbf-btn-disabled,
.kbf-tournament-buttons a:not([href]),
.kbf-tournament-buttons a[href=""] {
  background: #f1f3f5 !important;
  border: 1px solid #d6dbe1 !important;
  color: #9aa3ad !important;
  cursor: default !important;
  pointer-events: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* =====================================================
   KBFトップページ：重要情報ボックス
===================================================== */

.kbf-important-box {
  margin: 36px auto 34px;
  padding: 30px 34px;
}

.kbf-important-label {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.kbf-important-content {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.kbf-important-sub {
  margin: 0 0 6px;
  color: var(--kbf-main);
  font-size: 15px;
  font-weight: 700;
}

.kbf-important-box h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.45;
  color: var(--kbf-main-dark);
}

.kbf-important-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 190px;
}

/* =====================================================
   KBFトップページ：タイルメニュー
===================================================== */

.kbf-tile-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px auto 52px;
}

.kbf-tile {
  display: block;
  padding: 28px 18px 26px;
  text-align: center;
  text-decoration: none !important;
  color: var(--kbf-text) !important;
}

.kbf-tile-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  background: var(--kbf-main-light);
  color: var(--kbf-main);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.kbf-tile-title {
  margin-bottom: 7px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--kbf-main-dark);
}

.kbf-tile-text {
  font-size: 14px;
  color: var(--kbf-muted);
  line-height: 1.6;
}

/* =====================================================
   KBF大会情報ページ
===================================================== */

.kbf-section-title {
  width: 100% !important;
  max-width: none !important;
  margin: 38px 0 18px !important;
  padding: 14px 18px;
  background: var(--kbf-main-light);
  border-left: 5px solid var(--kbf-main);
  text-align: left;
  box-sizing: border-box !important;
}

.kbf-section-title h3 {
  margin: 0;
  color: var(--kbf-main-dark);
  font-size: 22px;
  font-weight: 700;
}

/* 現在公開中の大会 */
.kbf-current-tournament {
  margin: 0 0 40px;
}

.kbf-current-tournament .kbf-tournament-card {
  width: 100%;
}

/* 大会カード */
.kbf-tournament-card {
  padding: 26px 28px;
}

.kbf-tournament-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.kbf-status-entry .kbf-status-label {
  background: var(--kbf-main);
}

.kbf-status-info .kbf-status-label {
  background: var(--kbf-accent);
}

.kbf-status-finished .kbf-status-label {
  background: #8a8f96;
}

.kbf-tournament-season {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--kbf-main-light);
  color: var(--kbf-main);
  font-weight: 700;
  font-size: 13px;
}

.kbf-tournament-card h3 {
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: none;
  color: var(--kbf-main-dark);
  font-size: 24px;
  line-height: 1.45;
}

.kbf-tournament-info {
  margin: 0 0 22px;
}

.kbf-tournament-info div {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}

.kbf-tournament-info dt {
  min-width: 70px;
  color: var(--kbf-main);
  font-weight: 700;
}

.kbf-tournament-info dd {
  margin: 0;
  color: var(--kbf-subtext);
}

.kbf-tournament-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kbf-btn-main,
.kbf-btn-sub {
  min-width: 130px;
  padding: 10px 16px;
  border-radius: 7px;
}

/* 過去大会：年度ボタン */
.kbf-year-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 42px;
}

.kbf-year-card {
  display: block;
  padding: 16px 12px;
  background: #ffffff;
  border: 1px solid var(--kbf-border);
  border-radius: 10px;
  text-align: center;
  text-decoration: none !important;
  color: var(--kbf-text) !important;
  box-shadow: var(--kbf-shadow);
}

.kbf-year-main {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.kbf-year-sub {
  display: block;
  margin-top: 3px;
  color: var(--kbf-muted);
  font-size: 12px;
}

/* =====================================================
   KBF大会詳細：要項・エントリーページ
===================================================== */

.kbf-detail-hero {
  padding: 32px 34px;
}

.kbf-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.kbf-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.kbf-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 36px !important;
  box-sizing: border-box !important;
  justify-items: stretch !important;
}

.kbf-detail-card,
.kbf-detail-box {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 24px 26px;
  text-align: left;
}

.kbf-detail-card-title {
  margin-bottom: 14px;
  color: var(--kbf-main);
  font-size: 18px;
  font-weight: 700;
}

.kbf-detail-main-text {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.kbf-note {
  margin: 6px 0 0;
  color: var(--kbf-muted);
  font-size: 14px;
}

.kbf-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.kbf-info-table th,
.kbf-info-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--kbf-border-light);
  text-align: left;
  vertical-align: top;
}

.kbf-info-table th {
  width: 42%;
  color: var(--kbf-main);
  font-weight: 700;
}

.kbf-check-list {
  margin: 0;
  padding-left: 1.2em;
}

.kbf-check-list li {
  margin-bottom: 8px;
  text-align: left;
}

.kbf-flow {
  display: grid;
  gap: 14px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 36px !important;
  box-sizing: border-box !important;
}

.kbf-flow-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100% !important;
  padding: 20px 22px;
  text-align: left;
}

.kbf-flow-step > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: var(--kbf-main);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}

.kbf-flow-step h4,
.kbf-flow-title {
  margin: 0 0 4px;
  color: var(--kbf-main-dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.kbf-flow-step p {
  margin: 0;
  color: var(--kbf-subtext);
}

.kbf-notice-box {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 5px solid var(--kbf-main);
  border-radius: var(--kbf-radius-sm);
  text-align: left;
}

.kbf-notice-box p {
  margin: 8px 0;
}

.kbf-notice-title {
  margin: 0 0 8px;
  color: var(--kbf-main-dark);
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}

.kbf-section-heading {
  margin: 0;
  color: var(--kbf-main-dark);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

/* Cocoon/ブロック側の中央寄せを解除 */
.wp-block-html .kbf-detail-box,
.wp-block-html .kbf-detail-card,
.wp-block-html .kbf-detail-hero,
.entry-content .kbf-detail-box,
.entry-content .kbf-detail-card,
.entry-content .kbf-detail-hero {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* =====================================================
   KBF所属クラブ紹介：一覧タイル
===================================================== */

.kbf-club-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 36px 0 50px;
}

.kbf-club-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  overflow: hidden;
}

.kbf-club-image {
  margin: -26px -24px 20px;
  overflow: hidden;
  background: var(--kbf-main-light);
}

.kbf-club-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kbf-club-card:hover .kbf-club-image img {
  transform: scale(1.03);
}

.kbf-club-name {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--kbf-border-light);
  color: var(--kbf-main-dark);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.kbf-club-info {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--kbf-subtext);
  line-height: 1.7;
}

.kbf-club-info div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.kbf-club-info strong {
  color: var(--kbf-main);
  font-weight: 700;
}

.kbf-club-message {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--kbf-main);
  border-radius: var(--kbf-radius-sm);
  color: var(--kbf-subtext);
  line-height: 1.8;
  font-size: 14px;
}

.kbf-club-card .kbf-btn-main {
  margin-top: auto;
  align-self: flex-start;
}

/* =====================================================
   KBF年間スケジュールページ
===================================================== */

.kbf-schedule-tabs input[type="radio"] {
  display: none;
}

.kbf-tab-labels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.kbf-tab-labels label {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #e8eee9;
  color: var(--kbf-main-dark);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.kbf-tab-labels label:hover {
  background: #d8e4dc;
}

#schedule-r7:checked ~ .kbf-tab-labels label[for="schedule-r7"],
#schedule-r8:checked ~ .kbf-tab-labels label[for="schedule-r8"],
#schedule-r9:checked ~ .kbf-tab-labels label[for="schedule-r9"] {
  background: var(--kbf-main);
  color: #ffffff;
}

.kbf-tab-panel {
  display: none;
}

#schedule-r7:checked ~ .kbf-panel-r7,
#schedule-r8:checked ~ .kbf-panel-r8,
#schedule-r9:checked ~ .kbf-panel-r9 {
  display: block;
}

.kbf-year-heading {
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 6px solid var(--kbf-main);
}

.kbf-year-heading h2 {
  margin: 0 0 4px;
  color: var(--kbf-main-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.kbf-year-heading p {
  margin: 0;
  color: var(--kbf-muted);
}

.kbf-schedule-list {
  display: grid;
  gap: 14px;
}

.kbf-schedule-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.kbf-date {
  text-align: center;
  background: var(--kbf-main-light);
  color: var(--kbf-main);
  border-radius: var(--kbf-radius-md);
  padding: 14px 10px;
  font-weight: 700;
  line-height: 1.7;
}

.kbf-event h3 {
  margin: 5px 0 8px;
  color: var(--kbf-main-dark);
  font-size: 1.12rem;
  line-height: 1.5;
}

.kbf-event h3 a {
  color: var(--kbf-main) !important;
  text-decoration: none;
}

.kbf-event h3 a:hover {
  text-decoration: underline;
}

.kbf-event p {
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   KBFバドミントン教室ページ
===================================================== */

.kbf-class-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.kbf-class-card {
  padding: 24px;
  border-radius: var(--kbf-radius-lg);
}

.kbf-class-badge {
  margin-bottom: 10px;
}

.kbf-class-card h2 {
  margin: 0 0 14px;
  color: var(--kbf-main-dark);
  font-size: 1.45rem;
}

.kbf-class-status {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.kbf-class-status.closed {
  background: var(--kbf-disabled-bg);
  color: var(--kbf-disabled-text);
}

.kbf-class-status.upcoming {
  background: var(--kbf-warning-bg);
  color: var(--kbf-warning-text);
}

.kbf-class-info {
  margin: 0;
}

.kbf-class-info div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--kbf-border-light);
}

.kbf-class-info dt {
  color: var(--kbf-main);
  font-weight: 700;
}

.kbf-class-info dd {
  margin: 0;
  line-height: 1.7;
}

.kbf-class-note {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--kbf-radius-md);
  background: var(--kbf-main-light);
}

.kbf-class-note h3 {
  margin: 0 0 8px;
  color: var(--kbf-main-dark);
  font-size: 1.05rem;
}

.kbf-class-note p {
  margin: 0;
  line-height: 1.8;
}

.kbf-class-section {
  margin-top: 28px;
}

.kbf-class-section h2,
.kbf-contact-box h2,
.kbf-outline-card h2,
.kbf-detail-section h2 {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 6px solid var(--kbf-main);
  color: var(--kbf-main-dark);
  font-size: 1.45rem;
  font-weight: 700;
}

.kbf-feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.kbf-feature-list div {
  padding: 20px;
  border-radius: var(--kbf-radius-md);
}

.kbf-feature-list span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--kbf-main);
  font-weight: 700;
  font-size: 1.2rem;
}

.kbf-feature-list h3 {
  margin: 0 0 8px;
  color: var(--kbf-main-dark);
  font-size: 1.08rem;
}

.kbf-feature-list p {
  margin: 0;
  line-height: 1.7;
}

.kbf-contact-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--kbf-radius-lg);
}

.kbf-contact-box p {
  margin: 0;
  line-height: 1.8;
}

.kbf-entry-text {
  margin: 0 0 18px;
  line-height: 1.8;
}

.kbf-entry-button {
  padding: 14px 28px;
}

.kbf-entry-note {
  margin-top: 14px;
  color: var(--kbf-muted);
  font-size: 0.92rem;
}

/* =====================================================
   KBF関連団体リンクページ
===================================================== */

.kbf-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.kbf-link-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--kbf-radius-lg);
  text-decoration: none !important;
  color: var(--kbf-text) !important;
}

.kbf-link-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: var(--kbf-radius-md);
  background: var(--kbf-main-light);
  color: var(--kbf-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kbf-link-card h2 {
  margin: 0 0 10px;
  color: var(--kbf-main-dark);
  font-size: 1.15rem;
  line-height: 1.5;
}

.kbf-link-card p {
  margin: 0 0 18px;
  color: var(--kbf-subtext);
  line-height: 1.7;
  flex-grow: 1;
}

.kbf-link-card span {
  display: inline-block;
  color: var(--kbf-main);
  font-weight: 700;
}

/* =====================================================
   KBFその他事業ページ
===================================================== */

.kbf-other-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.kbf-other-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--kbf-radius-xl);
  text-decoration: none !important;
  color: var(--kbf-text) !important;
}

.kbf-other-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: var(--kbf-radius-lg);
  background: var(--kbf-main-light);
  color: var(--kbf-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.kbf-other-content {
  flex-grow: 1;
}

.kbf-other-category {
  margin: 0 0 10px;
}

.kbf-other-content h2 {
  margin: 0 0 12px;
  color: var(--kbf-main-dark);
  font-size: 1.3rem;
  line-height: 1.5;
}

.kbf-other-content p {
  margin: 0 0 18px;
  color: var(--kbf-subtext);
  line-height: 1.8;
}

.kbf-other-content span {
  display: inline-block;
  color: var(--kbf-main);
  font-weight: 700;
}

/* =====================================================
   KBFシニアスポーツフェスティバルページ
===================================================== */

.kbf-outline-card {
  padding: 26px;
  margin: 30px 0;
  border-radius: var(--kbf-radius-lg);
}

.kbf-outline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.kbf-outline-grid div {
  padding: 18px;
  border-radius: var(--kbf-radius-md);
}

.kbf-outline-grid span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--kbf-main);
  font-weight: 700;
}

.kbf-outline-grid p {
  margin: 0;
  line-height: 1.7;
}

.kbf-detail-section {
  margin-top: 30px;
}

.kbf-detail-section h2 {
  margin-bottom: 18px;
}

.kbf-detail-box,
.kbf-contact-box {
  padding: 22px;
  border-radius: var(--kbf-radius-md);
}

.kbf-detail-box p,
.kbf-contact-box p {
  margin: 0 0 12px;
  line-height: 1.8;
}

.kbf-detail-box p:last-child,
.kbf-contact-box p:last-child {
  margin-bottom: 0;
}

.kbf-detail-box ul {
  margin: 14px 0 0;
  padding-left: 1.4em;
}

.kbf-detail-box li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.kbf-application-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.kbf-application-card {
  padding: 22px;
  border-radius: var(--kbf-radius-md);
}

.kbf-step-label {
  margin-bottom: 10px;
}

.kbf-application-card h3 {
  margin: 0 0 10px;
  color: var(--kbf-main-dark);
  font-size: 1.15rem;
}

.kbf-application-card p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.kbf-small-note {
  margin-top: 12px !important;
  color: var(--kbf-muted);
  font-size: 0.92rem;
}

.kbf-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kbf-item-list span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--kbf-main-light);
  color: var(--kbf-main);
  font-weight: 700;
}

/* =====================================================
   KBF上位大会の市代表選手選考基準ページ
===================================================== */

.kbf-tournament-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.kbf-tournament-card ul {
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.kbf-tournament-card li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.kbf-card-label {
  margin: 0 0 10px;
}

.kbf-card-desc {
  margin: 0;
  color: var(--kbf-subtext);
  line-height: 1.7;
}

.kbf-number-list {
  display: grid;
  gap: 12px;
}

.kbf-number-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--kbf-radius-md);
}

.kbf-number-list span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 38px;
  border-radius: 999px;
  background: var(--kbf-main-light);
  color: var(--kbf-main);
  font-weight: 700;
}

.kbf-number-list p {
  margin: 0;
  line-height: 1.8;
}

.kbf-note-box {
  margin-top: 14px;
  padding: 22px;
  border-radius: var(--kbf-radius-md);
}

.kbf-note-box p {
  margin: 0;
  line-height: 1.8;
}

.kbf-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.kbf-info-grid div {
  padding: 20px;
  border-radius: var(--kbf-radius-md);
}

.kbf-info-grid span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--kbf-main);
  font-weight: 700;
}

.kbf-info-grid p {
  margin: 0;
  line-height: 1.8;
}

/* =====================================================
   レスポンシブ調整
===================================================== */

/* タブレット */
@media screen and (max-width: 900px) {
  .kbf-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* タブレット〜スマホ */
@media screen and (max-width: 834px) {
  .kbf-important-box,
  .kbf-page-lead,
  .kbf-detail-hero {
    padding: 26px 22px;
  }

  .kbf-important-content {
    display: block;
  }

  .kbf-important-buttons {
    margin-top: 20px;
    min-width: 0;
  }

  .kbf-tile-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .kbf-tile {
    padding: 24px 12px 22px;
  }

  .kbf-tile-title {
    font-size: 17px;
  }

  .kbf-tournament-card {
    padding: 22px 18px;
  }

  .kbf-tournament-card h3 {
    font-size: 21px;
  }

  .kbf-tournament-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .kbf-btn-main,
  .kbf-btn-sub {
    min-width: 0;
    width: 100%;
  }

  .kbf-year-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .kbf-detail-title {
    font-size: 23px;
  }

  .kbf-section-heading {
    font-size: 20px;
  }

  .kbf-detail-grid,
  .kbf-class-grid,
  .kbf-feature-list,
  .kbf-club-grid,
  .kbf-outline-grid,
  .kbf-application-grid,
  .kbf-tournament-grid,
  .kbf-info-grid {
    grid-template-columns: 1fr;
  }

  .kbf-page-title {
    font-size: 24px;
  }

  .kbf-club-name {
    font-size: 21px;
  }

  .kbf-club-info div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* スマホ */
@media screen and (max-width: 700px) {
  .kbf-page-hero {
    padding: 24px 20px;
  }

  .kbf-page-hero h1,
  .kbf-detail-title,
  .kbf-page-title {
    font-size: 1.6rem !important;
  }

  .kbf-tab-labels label {
    flex: 1;
    text-align: center;
    padding: 11px 12px;
  }

  .kbf-schedule-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kbf-date {
    text-align: left;
  }

  .kbf-link-grid,
  .kbf-other-grid {
    grid-template-columns: 1fr;
  }

  .kbf-other-card {
    flex-direction: column;
    padding: 22px;
  }

  .kbf-detail-box,
  .kbf-outline-card,
  .kbf-note-box,
  .kbf-tournament-card,
  .kbf-info-grid div,
  .kbf-class-card,
  .kbf-contact-box,
  .kbf-application-card,
  .kbf-link-card {
    padding: 20px;
  }

  .kbf-class-info div,
  .kbf-number-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* 小さめスマホ */
@media screen and (max-width: 480px) {
  .kbf-important-box {
    margin: 28px auto;
    padding: 22px 18px;
  }

  .kbf-important-box h2,
  .kbf-page-lead h2 {
    font-size: 21px;
  }

  .kbf-tile-menu,
  .kbf-year-list,
  .kbf-tournament-buttons {
    grid-template-columns: 1fr;
  }

  .kbf-tournament-info div {
    display: block;
  }

  .kbf-tournament-info dt {
    margin-bottom: 2px;
  }

  .kbf-info-table th,
  .kbf-info-table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .kbf-info-table th {
    border-bottom: none;
  }
}

/* =====================================================
   フォトアルバムページ 専用CSS
===================================================== */

.kbf-album-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 24px;
}

/* =====================================================
   年度別 大会結果ページ 専用CSS
===================================================== */

.kbf-result-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.kbf-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.kbf-result-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--kbf-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(40, 70, 55, 0.06);
  transition: all 0.22s ease;
}

.kbf-result-card:hover {
  transform: translateY(-3px);
  border-color: var(--kbf-accent);
  box-shadow: 0 10px 22px rgba(63, 107, 87, 0.16);
}

.kbf-result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border-radius: 16px;
  background: var(--kbf-main-light);
  color: var(--kbf-main);
  font-size: 2.2rem;
}

.kbf-result-content {
  display: flex;
  flex-direction: column;
}

.kbf-result-date {
  display: inline-block;
  width: fit-content;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--kbf-main-light);
  color: var(--kbf-main) !important;
  font-size: 0.86rem;
  font-weight: bold;
}

.kbf-result-content h3 {
  margin: 0 0 16px;
  color: var(--kbf-main-dark);
  font-size: 1.12rem;
  line-height: 1.55;
  font-weight: 700;
}

.kbf-result-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.kbf-result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--kbf-main);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: bold;
  transition: 0.2s;
}

.kbf-result-button:hover {
  background: var(--kbf-main-dark);
  transform: translateY(-1px);
}

.kbf-result-button.sub {
  background: #ffffff;
  color: var(--kbf-main) !important;
  border: 1px solid var(--kbf-border);
}

.kbf-result-button.sub:hover {
  background: var(--kbf-main-light);
}

@media screen and (max-width: 900px) {
  .kbf-result-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .kbf-result-card {
    grid-template-columns: 1fr;
  }

  .kbf-result-placeholder {
    min-height: 120px;
  }
}