/*
Theme Name: JPDGA Theme
Theme URI: https://jpdga.jp
Author: SAGAE DESIGN
Author URI: https://sagae.design
Description: Japan Professional Disc Golf Association Official Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jpdga-theme
*/

/* ======================================
   CSS Variables (Figma準拠)
====================================== */
:root {
  /* Colors */
  --color-primary: #163154;
  --color-secondary: #F2F2F2;
  --color-accent: #6a7282;
  --color-text: #1e2939;
  --color-text-light: #364153;
  --color-border: #e5e7eb;
  --color-bg-light: #F2F2F2;
  --color-white: #ffffff;

  /* Typography */
  --font-primary: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  --font-impact: 'Albert Sans', sans-serif;

  /* Font Weights
   * --fw-bold:     ページタイトル、h1
   * --fw-semibold: セクション見出し、h2
   * --fw-medium:   小見出し、h3、ナビ、ラベル
   * --fw-regular:  本文、説明文
   */
  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-medium: 600;
  --fw-regular: 500;

  /* Font Sizes
   * --fs-xs:   極小ラベル、注釈
   * --fs-sm:   日付、バッジ、補足テキスト
   * --fs-base: 本文、カードテキスト（サイト標準）
   * --fs-md:   ナビ、やや強調する本文
   * --fs-lg:   サブ見出し
   * --fs-xl:   セクション見出し
   * --fs-2xl:  ページタイトル
   * --fs-hero-*: ヒーローセクション専用
   */
  --fs-xs:   11px;
  --fs-sm:   13px;
  --fs-base: 14px;
  --fs-md:   16px;
  --fs-lg:   18px;
  --fs-xl:   24px;
  --fs-2xl:  32px;
  --fs-hero-lg: 48px;
  --fs-hero-xl: 72px;

  /* Layout */
  --max-width: 1440px;
  --header-height: 84px;
  --container-padding-mobile: 20px;
}

/* ======================================
   Reset & Base
====================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-secondary);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-bold);
}

p {
  margin: 0;
}

address {
  font-style: normal;
}

/* ======================================
   Layout
====================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Mobile container padding - 統一ルール (20px) */
@media (max-width: 768px) {
  /* セクションの左右paddingを0に（二重padding防止） */
  .fp-news-section,
  .features-section,
  .fp-tournament-section,
  .partners-section,
  .sponsors-section,
  .instagram-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* コンテナで統一管理 */
  .container,
  .fp-news-section .container,
  .features-section .container,
  .fp-tournament-section .container,
  .partners-section .container,
  .sponsors-section .container,
  .content-area .container,
  .content-area.news-archive-content .container,
  .tournament-list-page .container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }
}

.site-main {
  padding-top: 0;
}

/* ======================================
   Top Toolbar (Figma準拠)
====================================== */
.top-toolbar {
  background: var(--color-white);
  height: 37px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.toolbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.toolbar-sns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
}

.toolbar-sns-link:hover {
  opacity: 0.7;
}

.toolbar-sns-link img {
  width: auto;
  height: 18px;
  object-fit: contain;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.toolbar-search-btn:hover {
  opacity: 0.7;
}

/* Language Switcher */
.toolbar-language {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
}

.toolbar-language .lang-option {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.toolbar-language .lang-option.active {
  opacity: 1;
}

.toolbar-language .lang-option:hover {
  opacity: 0.8;
}

.toolbar-language .lang-separator {
  opacity: 0.3;
}

/* ======================================
   Header - Floating Menu Bar (Figma準拠)
====================================== */
.site-header {
  position: fixed;
  top: 49px; /* ツールバー(37px) + マージン(12px) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0 24px;
  pointer-events: none;
  width: 100%;
  max-width: 1440px;
  /* transition: top 0.3s ease; */ /* 削除: スクロール追従を即座に */
}

.site-header.scrolled {
  top: 12px; /* スクロール時は上部に固定 */
}

.header-floating-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(242, 242, 242, 0.9) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #FFFFFF;
  border-radius: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled .header-floating-bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(242, 242, 242, 0.62) 100%);
  border-color: #F2F2F2;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.site-logo {
  flex-shrink: 0;
  padding: 4px 8px;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo img,
.site-logo .custom-logo {
  height: 34px;
  width: auto;
}

.logo-svg {
  height: 34px;
  width: auto;
}

/* Primary Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.main-navigation .menu,
.main-navigation .primary-menu {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .menu > li {
  position: relative;
}

.main-navigation .menu > li > a,
.main-navigation .menu > li > .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: var(--fs-md);
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  border-radius: 26px;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.dropdown-open > a {
  opacity: 0.7;
}

.dropdown-arrow {
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.main-navigation .menu > li.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu - 元のサブメニューは非表示（外部コンテナで表示） */
.main-navigation .sub-menu,
.main-navigation .dropdown-menu {
  display: none;
}

/* 外部ドロップダウンコンテナ */
.desktop-dropdown-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 1001;
  pointer-events: none;
}

.desktop-dropdown-container[aria-hidden="false"] {
  pointer-events: auto;
}

/* 外部ドロップダウン - 通常時 */
.external-dropdown {
  position: fixed;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.3s ease;
}

.external-dropdown.visible {
  opacity: 1;
  visibility: visible;
}

/* スクロール時のドロップダウン */
.desktop-dropdown-container.scrolled .external-dropdown {
  background: rgba(255, 255, 255, 0.62);
  border-color: #F2F2F2;
}

.external-dropdown li a,
.external-dropdown li .dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: var(--fs-base);
  color: var(--color-primary);
  border-radius: 8px;
  text-decoration: none;
}

.external-dropdown li a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Header Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-sns {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.header-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.header-sns a:hover {
  opacity: 0.7;
}

.header-sns svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  color: var(--color-primary);
  border-radius: 26px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  background: transparent;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.login-btn:hover {
  opacity: 0.7;
}

.login-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-toggle.active span:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Navigation Overlay - hidden with full screen nav */
.mobile-nav-overlay {
  display: none;
}

/* Mobile Navigation */
.mobile-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(242, 242, 242, 0.9) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #FFFFFF;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 9999;
}

.mobile-navigation.active {
  transform: translateX(0);
}

/* Close Button */
.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 1);
}

.mobile-nav-close svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-inner {
  padding: 80px 24px 24px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu > li {
  border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.mobile-menu > li:last-child {
  border-bottom: none;
}

/* Parent menu item with toggle */
.mobile-menu > li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  color: var(--color-primary);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.mobile-menu > li.menu-item-has-children > a::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.mobile-menu > li.menu-item-has-children.submenu-open > a::after {
  transform: rotate(-135deg);
}

/* Active/Open state for parent menu items */
.mobile-menu > li.menu-item-has-children.submenu-open > a {
  background: rgba(0, 51, 102, 0.05);
  border-radius: 8px;
  margin: 8px 16px;
  padding: 10px 12px;
}

/* Regular menu item (no children) */
.mobile-menu > li:not(.menu-item-has-children) > a {
  display: block;
  padding: 16px 8px;
  color: var(--color-primary);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.mobile-menu > li > a:hover {
  background: rgba(0, 51, 102, 0.05);
  border-radius: 8px;
}

/* Sub-menu */
.mobile-menu .sub-menu {
  display: none;
  padding: 0 0 8px 16px;
  list-style: none;
  margin: 0;
}

.mobile-menu > li.submenu-open > .sub-menu {
  display: block;
}

.mobile-menu .sub-menu li a {
  display: block;
  padding: 10px 12px;
  font-size: var(--fs-base);
  color: var(--color-primary);
  opacity: 0.8;
  text-decoration: none;
  border-radius: 6px;
}

.mobile-menu .sub-menu li a:hover {
  background: rgba(0, 51, 102, 0.05);
  opacity: 1;
}

.mobile-sns {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 51, 102, 0.1);
}

.mobile-sns a {
  color: var(--color-primary);
  font-size: var(--fs-base);
  opacity: 0.8;
}

/* Mobile nav logo */
.mobile-nav-logo {
  margin-top: 40px;
  text-align: center;
}

.mobile-nav-logo-img {
  max-width: 120px;
  opacity: 0.6;
}

body.menu-open {
  overflow: hidden;
}

/* ======================================
   Page Content Header Clearance
   固定ヘッダー下の余白（全ページ共通）
====================================== */
:root {
  --page-top-padding: calc(var(--header-height, 84px) + 24px);
  --page-bg: #F7F7F7;
}

/* 下層ページの背景色 */
body:not(.home) {
  background-color: var(--page-bg);
}

/* 下層ページ共通のpadding-top */
body:not(.home) .content-area,
body:not(.home) .main-content {
  padding-top: var(--page-top-padding);
}

/* 入れ子になっている場合の調整 */
.main-content .content-area {
  padding-top: 0;
}

/* 大会情報ページ: ヘッダーとの余白調整 */

/* ======================================
   WordPress Admin Bar Support
====================================== */
body.admin-bar .site-header {
  top: calc(49px + 32px); /* 通常位置 + 管理バー */
}

body.admin-bar .site-header.scrolled {
  top: calc(12px + 32px); /* スクロール時 + 管理バー */
}

body.admin-bar:not(.home) .content-area,
body.admin-bar:not(.home) .main-content {
  padding-top: calc(var(--page-top-padding) + 32px);
}

body.admin-bar .main-content .content-area {
  padding-top: 0;
}

body.admin-bar .search-overlay {
  top: 32px;
}

body.admin-bar .mobile-menu-overlay {
  top: 32px;
  height: calc(100% - 32px);
}

/* ======================================
   Page Header Section (統一見出しセクション)
   全ページ共通のパンくず・タイトル・区切り線
====================================== */
.page-header-section {
  padding-top: 40px;
  margin-bottom: 32px;
}

.page-header-section__breadcrumbs {
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: #9aa0ae;
  margin-bottom: 12px;
}

.page-header-section__breadcrumbs a {
  color: #9aa0ae;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-header-section__breadcrumbs a:hover {
  color: #374151;
}

.page-header-section__breadcrumbs .separator {
  margin: 0 8px;
}

.page-header-section__title {
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: #000;
  margin: 0 0 24px;
  line-height: 1.4;
}

.page-header-section__divider {
  height: 1px;
  background: #e5e7eb;
}

/* レスポンシブ: 768px未満 */
@media (max-width: 768px) {
  .page-header-section {
    padding-top: 24px;
    margin-bottom: 16px;
  }

  .page-header-section__breadcrumbs {
    font-size: var(--fs-sm);
  }

  .page-header-section__title {
    font-size: var(--fs-xl);
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: calc(49px + 46px);
  }

  body.admin-bar .site-header.scrolled {
    top: calc(12px + 46px);
  }

  body.admin-bar:not(.home) .content-area,
  body.admin-bar:not(.home) .main-content {
    padding-top: calc(var(--page-top-padding) + 46px);
  }

  body.admin-bar .main-content .content-area {
    padding-top: 0;
  }

  body.admin-bar .search-overlay {
    top: 46px;
  }

  body.admin-bar .mobile-menu-overlay {
    top: 46px;
    height: calc(100% - 46px);
  }
}

/* ======================================
   Search Overlay
====================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #fff;
  z-index: 1001;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-overlay.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px;
}

.search-overlay-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-overlay-input {
  flex: 1;
  padding: 12px 16px;
  font-size: var(--fs-md);
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-overlay-input:focus {
  border-color: var(--color-primary);
}

.search-overlay-submit {
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.search-overlay-submit:hover {
  opacity: 0.8;
}

.search-overlay-close {
  padding: 8px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-overlay-close:hover {
  color: #1e2939;
}

/* ======================================
   Hero Section (Figma準拠 - 斜めカット)
====================================== */
.hero-section {
  position: relative;
  height: 440px; /* 1200px × (939/2560) = 440px */
  overflow: visible;
  margin-top: 0;
  margin-bottom: 0;
  background: #000;
}

.hero-slider {
  position: relative;
  height: 100%;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background: #000;
  overflow: hidden;
  aspect-ratio: 2560 / 939; /* 元画像のアスペクト比を維持 */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-link {
  display: block;
  position: absolute;
  inset: 0;
}

.hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 20%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 60px 120px;
  color: var(--color-white);
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 80%, transparent 100%);
}

.hero-date {
  font-family: var(--font-impact);
  font-size: var(--fs-lg);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-family: var(--font-impact);
  font-size: var(--fs-hero-lg);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  text-transform: none;
}

.hero-subtitle {
  font-family: var(--font-impact);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  margin-top: 12px;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Hero Slider Progress Bar */
.hero-progress {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  z-index: 10;
  width: 280px;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.hero-progress-item {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.hero-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(22, 49, 84, 0.6);
  transition: none;
}

.hero-progress-item.active .hero-progress-bar {
  width: 100%;
  transition: width 10s linear;
}

.hero-progress-item.done .hero-progress-bar {
  width: 100%;
  transition: none;
}

/* ======================================
   News Section (Figma準拠)
====================================== */
/* ======================================
   Front Page News Section (トップページ専用)
====================================== */
.fp-news-section {
  background: var(--color-white);
  padding: 40px 32px 48px;
}

.fp-news-section .container {
  max-width: 1376px;
}

.fp-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.fp-news-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fp-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.fp-news-section-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: 1.4;
}

.fp-news-view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: var(--fw-regular);
}

.fp-news-view-all:hover {
  opacity: 0.7;
}

.fp-news-view-all svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.fp-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fp-news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.fp-news-item:hover {
  background: #f9fafb;
}

.fp-news-item--placeholder {
  border-style: dashed;
  background: var(--color-bg-light);
}

.fp-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fp-news-date {
  font-size: var(--fs-sm);
  color: #6b7280;
  line-height: 1.43;
  white-space: nowrap;
  min-width: 5.5em;
}

.fp-news-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  border-radius: 4px;
  line-height: 1.3;
  font-weight: var(--fw-medium);
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  white-space: nowrap;
}

.fp-news-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  line-height: 1.5;
  flex: 1;
  min-width: 0;
  margin: 0;
}

/* Front Page News - モバイル */
@media (max-width: 768px) {
  .fp-news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .fp-news-section-title {
    font-size: var(--fs-lg);
  }

  .fp-news-view-all {
    white-space: nowrap;
  }

  .fp-news-item {
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 8px 0;
  }

  .fp-news-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .fp-news-title {
    width: 100%;
    flex: none;
  }
}

/* ======================================
   共通スタイル (他ページ用)
====================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.section-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: 1.4;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: var(--fw-regular);
}

.view-all-link:hover {
  opacity: 0.7;
}

.view-all-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.no-posts-message {
  color: var(--color-accent);
  font-size: var(--fs-base);
  text-align: center;
}

/* ======================================
   Features Section (Figma準拠)
====================================== */
.features-section {
  padding: 56px 32px 64px;
  background: var(--color-secondary);
}

.features-section .container {
  max-width: 1376px;
}

.features-section .section-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: 24px;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.features-slider-wrapper {
  position: relative;
}

.features-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 4px;
}

.features-slider::-webkit-scrollbar {
  display: none;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
  min-width: 120px;
}

.feature-card-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  color: var(--color-white);
}

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-card-content {
  padding: 12px 4px 0;
}

.feature-card-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin: 0;
}

.feature-card:hover .feature-card-title {
  color: var(--color-accent);
}

.feature-card-subtitle {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-top: 4px;
}

/* Features Navigation Arrows */
.features-nav {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.3s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.features-nav:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.features-nav--prev {
  left: -20px;
}

.features-nav--next {
  right: -20px;
}

.features-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ======================================
   Tournament Archive Page (Figma準拠)
====================================== */
.content-area {
  padding: 48px 32px;
  background: #f7f7f7;
}

.content-area .container {
  max-width: 900px;
  margin: 0 auto;
}

/* ======================================
   Tournament List Page - Figma完全準拠
   Design: node-id=521-426
====================================== */

/* ページ背景・コンテナ */
.tournament-list-page {
  padding: 48px 0 80px;
  background: #f7f7f7;
}

.tournament-list-page .container {
  max-width: 842px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======================================
   Year Selector - Figma準拠
   白背景、高さ46px、角丸8px
====================================== */
.year-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 8px;
  height: 46px;
  max-width: 100%;
}

.year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #a1adbb;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}

.year-nav:hover {
  color: #163154;
}

.year-nav.hidden {
  visibility: hidden;
}

.year-list-wrapper {
  width: 480px;
  max-width: calc(100% - 92px);
  overflow: hidden;
  position: relative;
}

.year-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  transition: transform 0.3s ease;
}

.year-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  flex-shrink: 0;
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: 33.6px;
  color: #a1adbb;
  text-decoration: none;
  transition: color 0.2s;
}

.year-item:hover {
  color: #666;
}

.year-item.active {
  color: #163154;
}

/* ======================================
   Tournament Tabs - Figma準拠
   タブ16px太字、アクティブ#062642、非アクティブ#9aa0ae
====================================== */
.tournament-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 31px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.tournament-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: 16px;
  color: #9aa0ae;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -19px;
  transition: all 0.2s;
}

.tournament-tab:hover {
  color: #666;
}

.tournament-tab.active {
  color: #062642;
  border-bottom-color: #083257;
}

/* タブカウントバッジ - Figma準拠 */
.tournament-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 15px;
  background: #6b7280;
  color: #fff;
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  line-height: 10.909px;
  padding: 1.364px 6.818px;
  border-radius: 5.455px;
}

.tournament-tab.active .tournament-tab-count {
  background: #072c4d;
}

/* ======================================
   Tournament Card List
====================================== */
.tournament-card-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ======================================
   Tournament Card - Figma準拠
   幅839px、高さ自動（最小82px）、角丸8px
====================================== */
.tournament-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.tournament-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tournament-card-link {
  display: flex;
  min-height: 82px;
  text-decoration: none;
  color: inherit;
}

/* 左カラーバー - 16px幅、フル高さ */
.tournament-card-bar {
  width: 16px;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 8px 0 0 8px;
}

.tournament-card--official .tournament-card-bar {
  background: #1f3971;
}

.tournament-card--related .tournament-card-bar {
  background: #1f5a71;
}

.tournament-card--supported .tournament-card-bar {
  background: #1f7145;
}

/* カードコンテンツ */
.tournament-card-content {
  flex: 1;
  padding: 12px 16px 12px 13px;
  padding-right: 100px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tournament-card-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* メタ情報行 */
.tournament-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.tournament-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tournament-card-date {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: #6b7280;
  min-width: 5.5em;
}

.tournament-card-tier {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: 2px 10px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.tournament-card-tier--official {
  background: #1f3971;
  color: #fff;
  border-color: #1f3971;
}

.tournament-card-tier--related {
  background: #1f5a71;
  color: #fff;
  border-color: #1f5a71;
}

.tournament-card-tier--supported {
  background: #1f7145;
  color: #fff;
  border-color: #1f7145;
}

.tournament-card-category {
  font-size: var(--fs-sm);
  color: #6b7280;
}

.tournament-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ラベル - 12px medium #9aa0ae */
.meta-label {
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #9aa0ae;
  line-height: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* バリュー - 14px semibold #6b7280 */
.meta-value {
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: #6b7280;
  line-height: 20px;
}

/* 大会名行 */
.tournament-card-main {
  align-items: flex-start;
  gap: 12px;
}

.tournament-title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* 大会名 - 18px semibold #374151 */
.tournament-card-title {
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: #374151;
  margin: 0;
  line-height: 1.4;
}

/* 都道府県 - カード右上 */
.tournament-card-prefecture {
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 主催者行 */
.tournament-card-organizer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.tournament-card-organizer-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: #9ca3af;
}

.tournament-card-organizer {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #6b7280;
}

/* ======================================
   大会タイプバッジ - Figma準拠
   塗りつぶし、白文字、右下配置
====================================== */
.tournament-type-badge {
  position: absolute;
  right: 15px;
  bottom: 14px;
  font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: 16px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  color: #fff;
}

.tournament-type-badge--official {
  background: #1f3971;
}

.tournament-type-badge--related {
  background: #1f5a71;
}

.tournament-type-badge--supported {
  background: #1f7145;
}

/* 大会なし表示 */
.no-tournaments {
  text-align: center;
  padding: 48px 24px;
  color: #666;
  background: #fff;
  border-radius: 8px;
}

/* ======================================
   Responsive - スマホ対応
====================================== */
@media (max-width: 768px) {
  .year-selector {
    height: 40px;
  }

  .year-nav {
    width: 36px;
    height: 40px;
  }

  .year-list-wrapper {
    width: 300px;
    max-width: calc(100% - 72px);
  }

  .year-item {
    width: 60px;
    font-size: var(--fs-md);
    line-height: 1.4;
  }

  .tournament-tabs {
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .tournament-tab {
    font-size: var(--fs-base);
    white-space: nowrap;
    margin-bottom: -15px;
  }

  .tournament-card {
    height: auto;
    min-height: 100px;
  }

  .tournament-card-link {
    height: auto;
  }

  .tournament-card-content {
    padding: 12px 12px 44px;
    gap: 12px;
  }

  .tournament-card-meta {
    gap: 8px;
    padding-right: 0;
    flex-wrap: wrap;
  }

  .tournament-meta-item {
    flex-direction: row;
    gap: 6px;
  }

  .meta-label {
    font-size: var(--fs-xs);
  }

  .meta-value {
    font-size: var(--fs-sm);
  }

  .tournament-card-main {
    padding-right: 0;
  }

  .tournament-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tournament-card-title {
    font-size: var(--fs-md);
    line-height: 1.4;
  }

  .tournament-type-badge {
    bottom: 10px;
    right: 10px;
    font-size: var(--fs-xs);
    padding: 2px 6px;
  }
}

/* ======================================
   Front Page Tournament Section
   ※ fp-tournament-* = front page専用（大会一覧ページとは完全に分離）
====================================== */
.fp-tournament-section {
  padding: 48px 32px;
  background: var(--color-secondary);
}

.fp-tournament-section .container {
  max-width: 1376px;
}

.fp-tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.fp-tournament-section-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin: 0;
}

.fp-tournament-view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  text-decoration: none;
}

.fp-tournament-view-all:hover {
  text-decoration: underline;
}

/* Front Page Tournament Grid - 2x2 */
.fp-tournament-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Front Page Tournament Card */
.fp-tournament-card {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.fp-tournament-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 日付ブロック - 左側 */
.fp-tournament-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 12px 10px;
  background: #1f3971;
}

.fp-tournament-card--official .fp-tournament-date-block {
  background: #1f3971;
}

.fp-tournament-card--related .fp-tournament-date-block {
  background: #1f5a71;
}

.fp-tournament-card--supported .fp-tournament-date-block {
  background: #1f7145;
}

.fp-tournament-date {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1;
}

.fp-tournament-date-slash {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.7);
}

.fp-tournament-weekday {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

/* 情報ブロック - 右側 */
.fp-tournament-info {
  flex: 1;
  padding: 12px 16px;
  padding-right: 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  position: relative;
  min-height: 80px;
}

/* 都道府県 - 右上配置 */
.fp-tournament-region {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: var(--fs-xs);
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
}

/* タイプバッジ */
.fp-tournament-type {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  margin-bottom: 4px;
}


/* 大会タイトル */
.fp-tournament-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: #1e2939;
  margin: 0;
  line-height: 1.4;
}

/* 主催者 */
.fp-tournament-organizer {
  font-size: var(--fs-sm);
  color: #6b7280;
  margin-top: 2px;
}

/* 大会区分・部門タグ */
.fp-tournament-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.fp-tournament-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  padding: 2px 6px;
  background: #e5e7eb;
  color: #4b5563;
  border-radius: 3px;
}

/* 大会なし */
.fp-no-tournaments {
  text-align: center;
  padding: 48px 24px;
  color: #666;
  background: #fff;
  border-radius: 8px;
}

/* Responsive - Front Page Tournament */
@media (max-width: 768px) {
  .fp-tournament-section {
    padding: 40px 0;
  }

  .fp-tournament-section .container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }

  .fp-tournament-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .fp-tournament-view-all {
    white-space: nowrap;
  }

  .fp-tournament-grid {
    grid-template-columns: 1fr;
  }

  .fp-tournament-title {
    font-size: var(--fs-md);
  }
}

/* ======================================
   Partners Section (Figma準拠)
====================================== */
.partners-section {
  padding: 48px 32px;
  background: var(--color-secondary);
}

.partners-section .container {
  max-width: 1376px;
}

.partners-section .section-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: 32px;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-align: center;
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.partner-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

/* Responsive - Partners Section */
@media (max-width: 768px) {
  .partners-section {
    padding: 40px 0;
  }

  .partners-section .container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }

  .partners-grid {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .partner-logo {
    height: 50px;
  }
}

/* ======================================
   Sponsors Section (Figma準拠)
====================================== */
.sponsors-section {
  background: var(--color-white);
  padding: 48px 32px;
}

.sponsors-section .container {
  max-width: 1376px;
}

.sponsors-section .section-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: 20px;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.sponsors-grid {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.sponsor-item:hover .sponsor-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.sponsor-name {
  font-size: var(--fs-base);
  color: var(--color-text);
}

/* ======================================
   Instagram Section (Figma準拠)
====================================== */
.instagram-section {
  padding: 56px 32px 64px;
  background: var(--color-secondary);
}

.instagram-section .container {
  max-width: 1376px;
}

.instagram-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.instagram-icon {
  width: 28px;
  height: 28px;
  fill: var(--color-primary);
}

.instagram-header .section-title {
  font-size: var(--fs-lg);
  letter-spacing: 0;
}

/* Smash Balloon Instagram Feed スタイル調整 */
.instagram-grid,
#sb_instagram,
#sbi_images {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

#sb_instagram .sbi_item {
  border-radius: 16px !important;
  overflow: hidden !important;
}

.instagram-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--color-white);
  border-radius: 16px;
  border: 2px dashed var(--color-border);
}

.instagram-placeholder p {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.instagram-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--color-white);
  border-radius: 12px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.instagram-follow-btn:hover {
  opacity: 0.9;
}

/* ======================================
   Footer (Figma準拠)
====================================== */
.site-footer {
  background: var(--color-white);
  color: var(--color-text);
  padding: 64px 32px 40px;
  border-left: 4px solid #e5e5e5;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  max-width: 1376px;
  margin: 0 auto;
}

.footer-info {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-width: 320px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo a {
  display: block;
}

.footer-logo .logo-svg,
.footer-logo img {
  height: auto;
  width: 200px;
}

.footer-org-name {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.footer-address {
  font-size: var(--fs-sm);
  line-height: 1.9;
  font-style: normal;
  color: var(--color-text);
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1;
}

.footer-nav-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 32px;
  justify-items: start;
}

.footer-nav-group {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.footer-nav-link,
.footer-nav-group a {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-link:hover,
.footer-nav-group a:hover {
  color: var(--color-primary);
}

/* フッターメニューリスト */
.footer-menu,
.footer-nav-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu > li:first-child > a,
.footer-nav-group > ul > li:first-child > a {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 16px;
  display: block;
}

.footer-menu li,
.footer-nav-group li {
  margin: 0;
}

/* サブメニュー */
.footer-menu .sub-menu,
.footer-nav-group .sub-menu {
  list-style: none;
  margin-top: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu .sub-menu a,
.footer-nav-group .sub-menu a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--color-text);
  opacity: 0.85;
}

.footer-menu .sub-menu a:hover,
.footer-nav-group .sub-menu a:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Footer SNS */
.footer-sns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: flex-start;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.footer-sns a:hover {
  opacity: 0.8;
}

.footer-sns a.sns-x {
  background: #000;
  color: #fff;
}

.footer-sns a.sns-facebook {
  background: #1877F2;
  color: #fff;
}

.footer-sns a.sns-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}

.footer-sns svg {
  width: 24px;
  height: 24px;
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1376px;
  margin: 80px auto 0;
  padding-top: 0;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin: 0;
}

/* ======================================
   Page Templates
====================================== */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: calc(var(--header-height) + 48px) 32px 48px 32px;
  margin-top: 0;
}

.page-hero--general {
  position: relative;
  height: calc(300px + var(--header-height));
  padding: 0;
  overflow: hidden;
  margin-top: 0;
}

.page-hero--news {
  position: relative;
  height: calc(200px + var(--header-height));
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-placeholder-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a4a6d 100%);
}

/* Page Layout */
.page-layout {
  max-width: 1000px;
  margin: 0 auto;
}

.page-layout--with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
}

.page-main {
  min-width: 0;
}

.page-main .page-title {
  font-size: var(--fs-2xl);
  margin-bottom: 24px;
}

.page-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

/* Submenu Buttons */
.submenu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.submenu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-bg-light);
  color: var(--color-text);
  border-radius: 12px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  transition: all 0.2s ease;
}

.submenu-btn:hover {
  background: var(--color-secondary);
  opacity: 1;
}

.submenu-btn--current {
  background: var(--color-primary);
  color: var(--color-white);
}

.submenu-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.page-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: 12px;
}

/* Breadcrumbs (Yoast SEO対応) */
.breadcrumbs,
.yoast-breadcrumbs {
  font-size: var(--fs-sm);
  opacity: 0.8;
}

.breadcrumbs a,
.yoast-breadcrumbs a {
  opacity: 0.8;
}

.breadcrumbs a:hover,
.yoast-breadcrumbs a:hover {
  opacity: 1;
}

/* Course Archive Styles */
.course-archive-header {
  margin-bottom: 40px;
}

.course-archive-header .page-title {
  font-size: var(--fs-2xl);
  margin-top: 16px;
}

.course-regions {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.course-region-section {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 32px;
}

.course-region-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary);
}

.region-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.region-count {
  font-size: var(--fs-base);
  color: var(--color-accent);
  font-weight: var(--fw-regular);
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
}

.course-card-image {
  position: relative;
  aspect-ratio: 8/3;
  overflow: hidden;
  background: var(--color-bg-light);
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-bg-light) 100%);
}

.course-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: 4px;
  color: var(--color-white);
}

.course-status--active {
  background: var(--color-primary);
}

.course-status--temporary {
  background: #f59e0b;
}

.course-status--closed {
  background: #ef4444;
}

.course-card-content {
  padding: 16px;
  flex: 1;
}

.course-card-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin-bottom: 8px;
  line-height: 1.4;
}

.course-card-meta {
  display: flex;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--color-accent);
}

.course-card-arrow {
  display: none;
}

.no-courses-message {
  text-align: center;
  padding: 48px;
  color: var(--color-accent);
}

/* Course Detail Layout */
.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

.course-main {
  min-width: 0;
}

.course-header {
  margin-bottom: 32px;
}

.course-title {
  font-size: var(--fs-2xl);
  margin-bottom: 12px;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: var(--fs-base);
  color: var(--color-accent);
}

.course-article {
  margin-bottom: 40px;
}

/* News Page Layout */
.news-page-content {
  padding: 48px 32px;
  background: var(--color-white);
  min-height: 50vh;
}

.news-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-main {
  min-width: 0;
}

.news-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.news-single-article {
  margin-bottom: 40px;
}

.news-single-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
  line-height: 1.4;
}

.news-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.news-single-date {
  font-size: var(--fs-base);
  color: var(--color-accent);
}

.news-single-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--fs-sm);
  border-radius: 4px;
}

.news-single-category--jpdga {
  background: var(--color-primary);
  color: var(--color-white);
}

.news-single-category--other {
  background: var(--color-bg-light);
  color: var(--color-text-light);
}

.news-single-content {
  font-size: var(--fs-md);
  line-height: 1.8;
}

.news-single-content p {
  margin-bottom: 16px;
}

/* Sidebar Styles */
.sidebar-section {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
}

.sidebar-area-section {
  margin-bottom: 20px;
}

.sidebar-area-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  padding: 8px 0;
  margin-bottom: 0;
  border-bottom: 2px solid var(--color-primary);
}

.sidebar-course-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-course-item {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-course-item:last-child {
  border-bottom: none;
}

.sidebar-course-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: color 0.2s ease;
}

.sidebar-course-item a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.sidebar-course-item.current a {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.sidebar-course-title {
  flex: 1;
}

.sidebar-course-arrow {
  flex-shrink: 0;
  opacity: 0.4;
}

/* Page Sidebar Menu */
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu-item {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-menu-item:last-child {
  border-bottom: none;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.sidebar-menu-item a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.sidebar-menu-item.current a {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.breadcrumbs .separator {
  margin: 0 8px;
  opacity: 0.5;
}

/* Page Content */
.page-content,
.single-content,
.archive-content {
  padding: 48px 32px;
  background: var(--color-white);
  min-height: 50vh;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--fs-md);
  line-height: 1.8;
}

.entry-content h2 {
  font-size: var(--fs-xl);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.entry-content h3 {
  font-size: var(--fs-lg);
  margin: 32px 0 12px;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.entry-content ul,
.page-template__entry-content ul {
  list-style: disc;
  margin-left: 1.5em;
  padding-left: 0;
}

.entry-content ol,
.page-template__entry-content ol {
  list-style: decimal;
  margin-left: 1.5em;
  padding-left: 0;
}

.entry-content li,
.page-template__entry-content li {
  margin-bottom: 8px;
}

.entry-content img {
  border-radius: 16px;
  margin: 24px 0;
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Entry Meta */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.entry-date {
  font-size: var(--fs-base);
  color: var(--color-accent);
}

.entry-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-light);
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  border-radius: 4px;
}

/* Entry Thumbnail */
.entry-thumbnail {
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
}

/* Post Navigation */
.post-navigation {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

.nav-subtitle {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-accent);
  margin-bottom: 4px;
}

.nav-title {
  font-size: var(--fs-base);
  color: var(--color-primary);
}

/* Archive List */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: var(--fs-base);
  color: var(--color-text-light);
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: var(--fs-base);
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: var(--fs-base);
  color: var(--color-text);
}

.page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.page-numbers:hover:not(.current) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  opacity: 1;
}

/* Contact Form 7 スタイル */
.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form p {
  margin-bottom: 24px;
}

.wpcf7-form p > label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-bottom: 6px;
}

.wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

.wpcf7-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--fs-base);
  font-family: var(--font-primary);
  background: var(--color-white);
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 49, 84, 0.1);
}

.wpcf7-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Checkbox group */
.wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.wpcf7-checkbox .wpcf7-list-item {
  margin: 0;
}

.wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-regular);
  cursor: pointer;
}

.wpcf7-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background 0.2s ease;
}

.wpcf7-submit:hover {
  background: #1e4a7a;
}

.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: var(--fs-sm);
  margin-top: 4px;
}

.wpcf7-response-output {
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
}

.wpcf7-validation-errors {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.wpcf7-mail-sent-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

/* ======================================
   Utility Classes
====================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ======================================
   Responsive Design
====================================== */
@media (max-width: 1200px) {
  .main-navigation .menu > li > a,
  .main-navigation .menu > li > .nav-link {
    padding: 10px 6px;
    font-size: var(--fs-base);
  }

  .login-btn {
    padding: 10px 6px;
    font-size: var(--fs-base);
  }

  .footer-container {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-nav {
    gap: 32px;
  }

  .footer-sns {
    margin-left: auto;
  }

  .instagram-grid,
  #sb_instagram .sbi_images {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 992px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .header-floating-bar {
    padding: 8px 16px;
  }

  /* タブレット: スクロール時のスタイル */
  .site-header.scrolled .header-floating-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(242, 242, 242, 0.62) 100%);
    border-color: #F2F2F2;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  }

  .fp-news-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .main-navigation {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-sns {
    display: none;
  }

  .login-btn {
    display: none;
  }

  .hero-title {
    font-size: var(--fs-hero-lg);
  }

  .hero-content {
    padding: 32px 40px;
    right: 30%;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-sns {
    margin-left: 0;
  }

  .course-detail-layout,
  .news-page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .course-sidebar,
  .news-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    padding: 10px 12px;
  }

  /* トップページ以外: 固定位置（トップバー37px + 余白12px） */
  body:not(.home) .site-header {
    top: calc(env(safe-area-inset-top, 0px) + 49px);
  }

  /* モバイル: スクロール時は画面上部に固定 */
  .site-header.scrolled {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
  }

  body:not(.home) .site-header.scrolled {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
  }

  .header-floating-bar {
    padding: 6px 12px;
    border-radius: 28px;
  }

  /* モバイル: スクロール時のスタイル */
  .site-header.scrolled .header-floating-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(242, 242, 242, 0.62) 100%);
    border-color: #F2F2F2;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  }

  .hero-section {
    height: auto; /* アスペクト比で自動計算 */
  }

  .hero-slider {
    aspect-ratio: 2560 / 939;
    height: auto;
  }

  .hero-title {
    font-size: var(--fs-hero-lg);
  }

  .hero-subtitle {
    font-size: var(--fs-base);
  }

  .hero-content {
    padding: 24px;
    right: 20%;
  }

  .feature-card {
    flex: 0 0 38vw;
  }

  .features-slider {
    gap: 16px;
  }

  .features-nav {
    display: none;
  }

  .instagram-grid,
  #sb_instagram .sbi_images {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .fp-news-section {
    padding: 64px 16px 40px; /* 上部スペース拡大 */
  }

  .features-section,
  .partners-section,
  .sponsors-section,
  .instagram-section {
    padding: 40px 16px;
  }

  .site-footer {
    padding: 40px 16px 0;
  }

  .footer-nav {
    gap: 20px;
  }

  .footer-nav-group {
    gap: 12px;
  }

  .footer-nav-link {
    font-size: var(--fs-sm);
  }

  .page-hero {
    padding: calc(var(--header-height) + 32px) 16px 32px 16px;
  }

  .page-hero--general {
    height: calc(200px + var(--header-height));
  }

  .page-hero--news {
    height: calc(150px + var(--header-height));
  }

  .page-title {
    font-size: var(--fs-xl);
  }

  .page-layout--with-sidebar {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-sidebar {
    position: static;
  }

  .submenu-buttons {
    gap: 8px;
  }

  .submenu-btn {
    padding: 10px 16px;
    font-size: var(--fs-sm);
  }

  .course-region-section {
    padding: 20px;
  }

  .region-name {
    font-size: var(--fs-lg);
  }

  .news-page-content {
    padding: 32px 16px;
  }

  .news-single-title,
  .course-title {
    font-size: var(--fs-xl);
  }

  .page-content,
  .single-content,
  .archive-content {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .feature-card {
    flex: 0 0 40vw;
  }

  .features-slider {
    gap: 12px;
  }

  .feature-card-title {
    font-size: var(--fs-sm);
  }

  .instagram-grid,
  #sb_instagram .sbi_images {
    grid-template-columns: 1fr !important;
  }

  .hero-section {
    height: 196px;
  }

  .hero-slider {
    aspect-ratio: auto;
    height: 100%;
  }

  .hero-title {
    font-size: var(--fs-lg);
  }

  .hero-date,
  .hero-subtitle {
    font-size: var(--fs-xs);
  }

  .hero-slide > img {
    object-fit: cover;
    object-position: center 30%;
  }

  .hero-content {
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    justify-content: flex-end;
    padding: 16px 20px 28px;
  }

  .section-title {
    font-size: var(--fs-lg);
  }

  .fp-tournament-info {
    padding-right: 16px;
  }

  .fp-tournament-region {
    position: absolute;
    top: auto;
    bottom: 8px;
    right: 12px;
  }

  .fp-tournament-title {
    font-size: var(--fs-base);
  }

  .footer-info {
    max-width: 100%;
  }

  .footer-nav {
    width: 100%;
    justify-content: space-between;
  }

  .footer-nav-group {
    gap: 10px;
  }

  .footer-logo .logo-svg,
  .footer-logo img {
    height: auto;
  }

  .partners-grid,
  .sponsors-grid {
    justify-content: center;
  }
}

/* ======================================
   Single Tournament Styles
====================================== */
.tournament-hero .tournament-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: 4px;
}

.badge--official {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge--supported {
  background: #6a7282;
  color: var(--color-white);
}

.badge--tier {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.badge--tier-major {
  background: #fbbf24;
  color: #1e2939;
}

.badge--tier-a {
  background: #ef4444;
  color: var(--color-white);
}

.badge--tier-b {
  background: #3b82f6;
  color: var(--color-white);
}

.badge--tier-c {
  background: #22c55e;
  color: var(--color-white);
}

/* ======================================
   Single Tournament / Course Detail Page
====================================== */
.content-area.single-tournament,
.content-area.single-course {
  padding: 60px 0 !important;
  background: var(--color-secondary) !important;
}

.content-area.single-tournament .container,
.content-area.single-course .container {
  max-width: 1200px;
}

.tournament-layout,
.course-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.tournament-main,
.course-main {
  min-width: 0;
}

.tournament-main .entry-content,
.course-main .entry-content {
  background: var(--color-white);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
}

.tournament-featured-image img,
.course-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.tournament-sidebar,
.course-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.tournament-info-card,
.course-info-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.tournament-info-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-secondary);
}

.tournament-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-info-card .info-card-title,
.tournament-info-card .info-list,
.tournament-info-card .tournament-actions,
.course-info-card .info-card-title,
.course-info-card .info-list {
  padding-left: 24px;
  padding-right: 24px;
}

.tournament-info-card .info-card-title,
.course-info-card .info-card-title {
  padding-top: 24px;
}

.tournament-info-card .tournament-actions {
  padding-bottom: 24px;
}

.tournament-info-card .info-list,
.course-info-card .info-list {
  padding-bottom: 16px;
}

.info-card-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.info-list {
  margin: 0;
}

.info-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item dt {
  flex-shrink: 0;
  width: 80px;
  font-size: var(--fs-sm);
  color: #9aa0ae;
  font-weight: var(--fw-medium);
}

.info-item dd {
  flex: 1;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

.info-item dd a {
  color: var(--color-primary);
  text-decoration: none;
}

.info-item dd a:hover {
  text-decoration: underline;
}

.tournament-actions,
.course-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: #0d1f35;
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-secondary);
}

/* ======================================
   Single Course Styles
====================================== */
.course-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge--status-active {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge--status-temporary {
  background: #f59e0b;
  color: var(--color-white);
}

.badge--status-closed {
  background: #ef4444;
  color: var(--color-white);
}

.badge--certified {
  background: var(--color-primary);
  color: var(--color-white);
}

.facilities-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facilities-list li {
  background: var(--color-white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.course-gallery {
  margin-top: 40px;
}

.course-gallery h2 {
  font-size: var(--fs-lg);
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.course-map {
  margin-top: 40px;
}

.course-map h2 {
  font-size: var(--fs-lg);
  margin-bottom: 20px;
}

.map-embed {
  border-radius: 16px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ======================================
   Contact Page Styles
====================================== */
.contact-page {
  padding: 60px 0;
  background: var(--color-white);
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto 60px;
}

.contact-form-wrapper > p {
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-text-secondary, #6b7280);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.contact-info {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.contact-info h2 {
  font-size: var(--fs-lg);
  text-align: center;
  margin-bottom: 30px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-method {
  text-align: center;
}

.contact-method h3 {
  font-size: var(--fs-base);
  color: var(--color-accent);
  margin-bottom: 8px;
}

.contact-method p {
  margin: 0;
}

.contact-method a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* ======================================
   Post Navigation
====================================== */
.post-navigation {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
  max-width: 45%;
}

.post-navigation a {
  display: block;
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.post-navigation a:hover {
  background: var(--color-secondary);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-accent);
  margin-bottom: 4px;
}

.post-navigation .nav-title {
  display: block;
  font-size: var(--fs-base);
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

/* Responsive - Tournament & Course */
@media (max-width: 992px) {
  .tournament-layout,
  .course-layout {
    grid-template-columns: 1fr;
  }

  .tournament-sidebar,
  .course-sidebar {
    position: static;
  }

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

@media (max-width: 768px) {
  .post-navigation .nav-links {
    flex-direction: column;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 250px;
  }
}

/* ======================================
   News Archive Page Styles (Figma準拠)
====================================== */
.content-area.news-archive-content {
  padding: 48px 0 80px;
  background: #f7f7f7;
}

.content-area.news-archive-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Source Tabs */
.news-source-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.news-source-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-source-tab:hover {
  color: var(--color-primary);
  background: transparent;
}

.news-source-tab--active {
  color: #1e2939;
  font-weight: var(--fw-semibold);
  border-bottom-color: var(--color-primary);
  background: transparent;
}

.news-source-tab--active:hover {
  color: #1e2939;
  background: transparent;
}

.news-archive-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.news-archive-main {
  min-width: 0;
}

.news-archive-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* News page year selector */
.news-archive-main .year-selector {
  margin-bottom: 24px;
}

.source-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: #6a7282;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.source-tab:hover {
  color: var(--color-text);
  opacity: 1;
}

.source-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.source-tab--active:hover {
  color: var(--color-primary);
}

/* Small Category Filter (Mobile) */
.news-small-category-mobile {
  display: none;
  margin-bottom: 16px;
}

.small-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  background: #f3f4f6;
  color: #6a7282;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.small-category-badge:hover {
  background: #e5e7eb;
  color: var(--color-text);
  opacity: 1;
}

.small-category-badge--active {
  background: var(--color-primary);
  color: var(--color-white);
}

.small-category-badge--active:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.small-category-notice {
  font-size: var(--fs-sm);
  color: #6a7282;
  margin: 0;
  padding: 8px 0;
}

/* Year Filter - Figma style */
.news-year-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.news-year-filter .year-nav {
  width: 22px;
  height: 22px;
  color: var(--color-text);
}

.year-link {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: #a1adbb;
  padding: 0 4px;
  transition: color 0.2s;
}

.year-link:hover {
  color: var(--color-text);
  opacity: 1;
}

.year-link--active {
  color: var(--color-primary);
}

.year-link--active:hover {
  color: var(--color-primary);
}

/* Category Filter - Figma style */
.news-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.news-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.news-category-badge:hover {
  background: #e5e7eb;
  color: var(--color-primary);
}

.news-category-badge--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.news-category-badge--active:hover {
  background: var(--color-primary);
  color: #fff;
}

.news-category-badge-count {
  font-size: var(--fs-sm);
  color: inherit;
  opacity: 0.8;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
}

.category-badge--jpdga {
  background: #afb1b5;
  color: var(--color-white);
}

.category-badge--other {
  background: #afb1b5;
  color: var(--color-white);
}

.category-badge--active,
.category-badge--jpdga.category-badge--active {
  background: var(--color-primary);
  color: var(--color-white);
}

.category-badge--other.category-badge--active {
  background: var(--color-primary);
  color: var(--color-white);
}

.category-badge:hover {
  opacity: 0.85;
}

/* News Archive List - Figma style */
.news-archive-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.news-archive-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: background 0.15s ease;
  position: relative;
}

.news-archive-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--color-border);
}

.news-archive-item:last-child::after {
  display: none;
}

.news-archive-item:hover {
  background: #f9fafb;
}

.news-archive-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.news-archive-date {
  font-size: var(--fs-sm);
  color: #6b7280;
  white-space: nowrap;
  min-width: 5.5em;
}

.news-archive-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: 4px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  white-space: nowrap;
}

.news-archive-category--jpdga,
.news-archive-category--other {
  background: #f3f4f6;
  color: #374151;
}

/* Source label (shown in "all" mode) */
.news-archive-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: 3px;
  white-space: nowrap;
}

.news-archive-source.news-archive-category--jpdga {
  background: #1f3971;
  color: var(--color-white);
}

.news-archive-source.news-archive-category--other {
  background: #1f7145;
  color: var(--color-white);
}

.news-archive-item-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: #1e2939;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.no-news-message {
  padding: 40px;
  text-align: center;
  color: var(--color-accent);
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

/* News Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.news-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg-light);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.news-pagination .page-numbers:hover {
  background: var(--color-secondary);
}

.news-pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
}

/* News Archive Sidebar */
.news-archive-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.news-sidebar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.news-sidebar-section {
  padding: 20px;
}

.news-sidebar-section + .news-sidebar-section {
  border-top: 1px solid var(--color-border);
}

.news-sidebar-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 12px;
}

.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-sidebar-item a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.news-sidebar-item a:hover {
  background: var(--color-bg-light);
  opacity: 1;
}

.news-sidebar-date {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--color-accent);
}

.news-sidebar-item-title {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.4;
}

.news-sidebar-arrow {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--color-accent);
}

.news-sidebar-item--empty {
  padding: 12px 8px;
  font-size: var(--fs-sm);
  color: var(--color-accent);
}

/* Sidebar Category List */
.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-category-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.sidebar-category-item a:hover {
  background: var(--color-bg-light);
  opacity: 1;
}

.sidebar-category-item--active a {
  background: var(--color-primary-light, #f0f5ff);
}

.sidebar-category-name {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.sidebar-category-item--active .sidebar-category-name {
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.sidebar-category-count {
  font-size: var(--fs-sm);
  color: var(--color-accent);
}

.sidebar-category-arrow {
  font-size: var(--fs-xs);
  color: var(--color-accent);
}

.sidebar-category-notice {
  font-size: var(--fs-sm);
  color: var(--color-accent);
  padding: 8px;
  line-height: 1.5;
}

/* News Single Page Styles */
.news-page-content {
  padding: 60px 0;
  background: var(--color-white);
}

.news-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-main {
  min-width: 0;
}

.news-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.news-single-article {
  background: var(--color-white);
}

.news-single-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.news-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.news-single-date {
  font-size: var(--fs-base);
  color: var(--color-accent);
}

.news-single-category {
  display: inline-flex;
  padding: 4px 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: 4px;
}

.news-single-category--jpdga {
  background: var(--color-primary);
  color: var(--color-white);
}

.news-single-category--other {
  background: #6366f1;
  color: var(--color-white);
}

.news-single-content {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--color-text);
}

.news-single-content p {
  margin-bottom: 1.5em;
}

.news-single-content h2 {
  font-size: var(--fs-lg);
  margin: 2em 0 1em;
}

.news-single-content h3 {
  font-size: var(--fs-lg);
  margin: 1.5em 0 0.75em;
}

.news-single-content ul,
.news-single-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.news-single-content li {
  margin-bottom: 0.5em;
}

.news-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--color-accent);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.breadcrumbs .separator {
  color: var(--color-border);
}

.breadcrumbs .current {
  color: var(--color-text);
}

/* Responsive - News Archive */
@media (max-width: 992px) {
  .news-archive-layout,
  .news-page-layout {
    grid-template-columns: 1fr;
  }

  .news-archive-sidebar,
  .news-sidebar {
    position: static;
  }

  /* Show small category filter on mobile */
  .news-small-category-mobile {
    display: block;
  }

  /* Hide sidebar category list on mobile (shown inline instead) */
  .news-archive-sidebar .sidebar-category-list {
    display: none;
  }

  .news-archive-sidebar .sidebar-category-notice {
    display: none;
  }
}

@media (max-width: 768px) {
  .news-archive-content,
  .news-page-content {
    padding: 40px 0;
  }

  .news-archive-title,
  .news-single-title {
    font-size: var(--fs-lg);
  }

  /* Source tabs mobile style */
  .news-source-tabs {
    margin-bottom: 16px;
  }

  .content-area.news-archive-content .container {
    padding: 0 16px;
  }

  .news-single-main {
    padding: 20px;
  }

  .news-source-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: var(--fs-base);
    white-space: nowrap;
  }

  .source-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: var(--fs-base);
    white-space: nowrap;
  }

  /* Small category badges mobile */
  .small-category-badge {
    padding: 5px 10px;
    font-size: var(--fs-sm);
  }

  .news-year-filter {
    gap: 4px;
  }

  .year-link {
    min-width: 50px;
    padding: 6px 12px;
    font-size: var(--fs-sm);
  }

  .news-archive-item {
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 10px 12px;
  }

  .news-archive-item-title {
    width: 100%;
    flex: none;
    font-size: var(--fs-base);
  }

  .news-archive-item-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ======================================
   Tournament Results Table
====================================== */
.tournament-results {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.tournament-results__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 24px;
}

/* Division Tabs */
.tournament-results__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.tournament-results__tab {
  padding: 10px 20px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tournament-results__tab:hover {
  background: var(--color-secondary);
  border-color: var(--color-primary);
}

.tournament-results__tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.tournament-results__tab .count {
  margin-left: 4px;
  font-size: var(--fs-sm);
  opacity: 0.8;
}

/* Result Tables */
.tournament-results__table-wrap {
  display: none;
  overflow-x: auto;
}

.tournament-results__table-wrap.is-active {
  display: block;
}

.tournament-results__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tournament-results__table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.tournament-results__table th {
  padding: 14px 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-align: left;
  white-space: nowrap;
}

.tournament-results__table th.col-place,
.tournament-results__table th.col-round,
.tournament-results__table th.col-total,
.tournament-results__table th.col-jpdga {
  text-align: center;
}

.tournament-results__table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.tournament-results__table tbody tr:last-child {
  border-bottom: none;
}

.tournament-results__table tbody tr:hover {
  background: var(--color-bg-light);
}

.tournament-results__table td {
  padding: 12px;
  font-size: var(--fs-base);
  color: var(--color-text);
}

.tournament-results__table td.col-place {
  text-align: center;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  min-width: 50px;
}

.tournament-results__table td.col-name {
  font-weight: var(--fw-medium);
  min-width: 140px;
}

.tournament-results__table td.col-jpdga {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-accent);
  min-width: 70px;
}

.tournament-results__table td.col-round {
  text-align: center;
  font-size: var(--fs-sm);
  min-width: 45px;
}

.tournament-results__table td.col-total {
  text-align: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--color-primary);
  min-width: 60px;
}

/* Place highlighting */
.tournament-results__table tbody tr:nth-child(1) td.col-place,
.tournament-results__table tbody tr:nth-child(2) td.col-place,
.tournament-results__table tbody tr:nth-child(3) td.col-place {
  position: relative;
}

/* Empty state */
.tournament-results-empty {
  margin-top: 48px;
  padding: 40px;
  background: var(--color-bg-light);
  border-radius: 12px;
  text-align: center;
}

.tournament-results-empty p {
  color: var(--color-accent);
  font-size: var(--fs-md);
}

/* Responsive */
@media (max-width: 768px) {
  .tournament-results {
    margin-top: 32px;
    padding-top: 32px;
  }

  .tournament-results__title {
    font-size: var(--fs-lg);
    margin-bottom: 16px;
  }

  .tournament-results__tabs {
    gap: 6px;
  }

  .tournament-results__tab {
    padding: 8px 14px;
    font-size: var(--fs-sm);
  }

  .tournament-results__table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .tournament-results__table {
    min-width: 500px;
  }

  .tournament-results__table th,
  .tournament-results__table td {
    padding: 10px 8px;
    font-size: var(--fs-sm);
    white-space: nowrap;
  }

  .tournament-results__table td.col-name {
    min-width: 120px;
    white-space: normal;
  }

  .tournament-results__table td.col-total {
    font-size: var(--fs-sm);
  }
}

/* ======================================
   Content Width Unification (1200px)
   対象ページ限定: コース一覧/詳細, お知らせ一覧/詳細, 大会詳細
====================================== */

/* コース一覧ページ */
body.post-type-archive-course .content-area.page-content > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* お知らせ詳細ページ */
body.single-jpdga_news .news-page-layout,
body.single-other_news .news-page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SP対応 - 左右余白を16pxに */
@media (max-width: 480px) {
  body.post-type-archive-course .content-area.page-content > .container,
  body.single-jpdga_news .news-page-layout,
  body.single-other_news .news-page-layout,
  .news-archive-layout {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ======================================
   Scroll Animations (トップページ用)
====================================== */

/* 初期状態 - 非表示 */
.scroll-animate {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 下からフェードイン */
.scroll-animate--fade-up {
  transform: translateY(60px);
}

/* 右からフェードイン */
.scroll-animate--fade-left {
  transform: translateX(60px);
}

/* アニメーション実行時 */
.scroll-animate.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* アニメーション無効化 (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =====================================================
   Page Transition - Light Fade
   ===================================================== */
body {
    opacity: 1;
    transition: opacity 0.15s ease;
}

body.is-page-loading {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    body {
        transition: none;
    }
    body.is-page-loading {
        opacity: 1;
    }
}


/* =====================================================
   News Single Page (新構造)
   ===================================================== */
.news-single-content {
    padding: 40px 0 80px;
}

.news-single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.news-single-main {
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(8, 50, 87, 0.08);
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
}

.news-single-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.news-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.news-single-date {
    font-size: var(--fs-base);
    color: #6b7280;
}

.news-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.news-badge--jpdga {
    background: var(--color-primary);
    color: #fff;
}

.news-badge--related {
    background: #059669;
    color: #fff;
}

.news-single-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: 1.4;
    color: #1e2939;
}

.news-single-thumbnail {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.news-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-single-body {
    font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
    color: #1e2939;
    line-height: 1.8;
}

.news-single-body h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: #000;
    margin: 40px 0 24px;
    line-height: 1.4;
}

.news-single-body h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: #000;
    margin: 32px 0 16px;
    line-height: 1.4;
}

.news-single-body h4 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: #000;
    margin: 24px 0 12px;
    line-height: 1.4;
}

.news-single-body p {
    margin: 0 0 16px;
}

.news-single-body p:last-child {
    margin-bottom: 0;
}

.news-single-body ul,
.news-single-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.news-single-body li {
    margin-bottom: 8px;
}

.news-single-body a {
    color: #2c6cc6;
    text-decoration: none;
}

.news-single-body a:hover {
    text-decoration: underline;
}

.news-single-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.news-single-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

/* Share Buttons */
.news-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.news-share-label {
    font-size: var(--fs-base);
    color: #6b7280;
}

.news-share-buttons {
    display: flex;
    gap: 8px;
}

.news-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: opacity 0.2s ease;
}

.news-share-btn:hover {
    opacity: 0.8;
}

.news-share-btn--x {
    background: #000;
}

.news-share-btn--facebook {
    background: #1877f2;
}

.news-share-btn--line {
    background: #00b900;
}

/* Navigation */
.news-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

.news-nav-prev {
    text-align: left;
}

.news-nav-next {
    text-align: right;
}

.news-nav-back {
    text-align: center;
}

.news-nav-link {
    display: block;
    color: #374151;
    text-decoration: none;
}

.news-nav-link:hover {
    color: var(--color-primary);
}

.news-nav-label {
    display: block;
    font-size: var(--fs-sm);
    color: #6b7280;
    margin-bottom: 4px;
}

.news-nav-title {
    font-size: var(--fs-base);
    line-height: 1.5;
}

.news-nav-back-link {
    display: inline-block;
    padding: 10px 24px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #374151;
    font-size: var(--fs-base);
    text-decoration: none;
    transition: background 0.2s ease;
}

.news-nav-back-link:hover {
    background: #e5e7eb;
}

/* News Sidebar - Fixed Page Style */
.news-sidebar-wrapper {
    background: #fff;
    border: 1px solid rgba(8, 50, 87, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-sidebar-wrapper:last-child {
    margin-bottom: 0;
}

.news-archive-sidebar {
    position: sticky;
    top: 100px;
}

.news-sidebar-header {
    background: #f7f7f8;
    padding: 17px 21px;
}

.news-sidebar-header-title {
    font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: #000;
}

.news-sidebar-content {
    padding: 24px 21px;
}

.news-sidebar-block {
    margin-bottom: 24px;
}

.news-sidebar-block:last-child {
    margin-bottom: 0;
}

.news-sidebar-block-title {
    font-family: 'Albert Sans', 'Zen Kaku Gothic New', sans-serif;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: #000;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.news-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-menu li {
    margin-bottom: 8px;
}

.news-sidebar-menu li:last-child {
    margin-bottom: 0;
}

.news-sidebar-menu a {
    display: block;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    font-size: var(--fs-base);
    transition: background 0.2s ease;
}

.news-sidebar-menu a:hover {
    background: #f3f4f6;
}

.news-sidebar-menu li.active a {
    background: var(--color-primary);
    color: #fff;
}

.news-sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-categories li {
    margin-bottom: 4px;
}

.news-sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    font-size: var(--fs-base);
    transition: background 0.2s ease;
}

.news-sidebar-categories a:hover {
    background: #f3f4f6;
}

.news-sidebar-categories li.active a {
    background: #eff6ff;
    color: var(--color-primary);
}

.news-sidebar-categories .count {
    font-size: var(--fs-sm);
    color: #9ca3af;
}

.news-sidebar-recent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-recent li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.news-sidebar-recent li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-sidebar-recent a {
    display: block;
    color: #374151;
    text-decoration: none;
}

.news-sidebar-recent a:hover {
    color: #2c6cc6;
}

.news-sidebar-recent .recent-date {
    display: block;
    font-size: var(--fs-sm);
    color: #9ca3af;
    margin-bottom: 4px;
}

.news-sidebar-recent .recent-title {
    font-size: var(--fs-base);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Subtitle */
.news-sidebar-subtitle {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: #6b7280;
    margin: 16px 0 8px;
    padding-left: 8px;
    border-left: 3px solid var(--color-primary);
}

.news-sidebar-subtitle:first-of-type {
    margin-top: 0;
}

/* Years List */
.news-sidebar-years {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-sidebar-years li {
    margin: 0;
}

.news-sidebar-years a {
    display: block;
    padding: 6px 12px;
    font-size: var(--fs-base);
    color: #374151;
    text-decoration: none;
    background: #f3f4f6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.news-sidebar-years a:hover {
    background: #e5e7eb;
    color: var(--color-primary);
}

.news-sidebar-years li.active a {
    background: var(--color-primary);
    color: #fff;
}

.no-news {
    font-size: var(--fs-base);
    color: #9ca3af;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-single-layout {
        grid-template-columns: 1fr;
    }

    .news-single-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .news-single-main {
        padding: 20px;
    }

    .news-single-content {
        padding: 24px 0 60px;
    }

    .news-single-title {
        font-size: var(--fs-xl);
    }

    .news-single-body h2 {
        font-size: var(--fs-lg);
    }

    .news-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-nav-prev,
    .news-nav-next,
    .news-nav-back {
        text-align: center;
    }

    .news-nav-back {
        order: -1;
    }
}

/* --- フッター モバイル対応 --- */
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 40px 16px 24px;
        overflow-x: hidden;
    }

    .footer-nav-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-nav-group {
        min-width: 0;
        gap: 16px;
    }

    .footer-menu li a,
    .footer-nav-group li a {
        font-size: var(--fs-sm);
        word-break: break-word;
    }

    .footer-menu > li:first-child > a,
    .footer-nav-group > ul > li:first-child > a {
        font-size: var(--fs-sm);
    }

    .footer-menu .sub-menu li a {
        font-size: var(--fs-sm);
    }
}

@media screen and (max-width: 480px) {
    .footer-nav-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-footer {
        padding: 32px 12px 20px;
    }
}

/* --- ニュースレイアウト タブレット・スマホ対応 --- */
.news-single-body table {
    width: 100%;
}

.news-single-body .wp-block-table {
    overflow-x: auto;
}

@media screen and (max-width: 992px) {
    .news-archive-layout {
        grid-template-columns: 1fr;
        padding-left: 0;
        padding-right: 0;
    }

    .news-archive-content .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .entry-content,
    .news-single-body {
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .news-archive-content,
    .content-area {
        overflow-x: hidden;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .footer-info {
        max-width: 100%;
    }

    .footer-nav-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    .news-single-title {
        font-size: var(--fs-xl);
    }

    .entry-content,
    .news-single-body {
        font-size: var(--fs-md);
    }
}

/* ======================================
   WordPress Button Block Styles
====================================== */

/* Base: すべてのボタンブロックに適用 */
.wp-block-button__link {
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
  opacity: 0.85;
}

.wp-block-button__link:active {
  transform: scale(0.98);
}

/* Primary（デフォルト） */
.wp-block-button:not(.is-style-secondary):not(.is-style-outline) .wp-block-button__link {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Secondary */
.wp-block-button.is-style-secondary .wp-block-button__link {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover {
  background-color: var(--color-border);
  opacity: 1;
}

/* Outline */
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  opacity: 1;
}
