/* ============================================================
   style_tsubumi.css — つぶつぶミカンの会 新デザイン
   design-preview.html ベース
============================================================ */

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  background: #f3f7f4;
  color: #222;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   HERO HEADER
============================================================ */
#site-header {
  position: relative;
  overflow: hidden;
  height: 300px;
  display: flex; align-items: center; justify-content: center;
}
#site-header .photo-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  filter: brightness(1.05) saturate(1.05);
  transform: scale(1.02);
}
#site-header .photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.08) 0%,
      rgba(0,0,0,0.04) 50%,
      rgba(0,0,0,0.12) 100%);
}
/* 左右のグラデーションで奥行き感 */
#site-header .photo-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0.06) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0,0,0,0.06) 100%);
}
.header-content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
/* ロゴマーク装飾ライン */
.header-deco {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.header-deco-line {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.45);
}
.header-deco-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
}
.header-title-en {
  font-family: 'Lato', sans-serif;
  font-size: 11px; font-weight: 400;
  color: #fff;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.6);
  display: block;
  margin-bottom: 10px;
}
.header-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 32px; font-weight: 700;
  color: #fff;
  letter-spacing: 0.20em;
  line-height: 1.15;
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.6),
    0 2px 6px rgba(0,0,0,0.7),
    0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 14px;
}
.header-since {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 10px; font-weight: 400;
  color: #fff;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.header-since::before,
.header-since::after {
  content: '';
  display: block; width: 22px; height: 1px;
  background: rgba(255,255,255,0.38);
}

/* ============================================================
   GLOBAL NAV
============================================================ */
#global-nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 24px; height: 54px;
}
.nav-inner nav {
  display: flex; align-items: stretch; gap: 0; flex: 1;
}
.nav-inner nav a {
  font-size: 14px; font-weight: 500; color: #555;
  padding: 0 16px;
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
  transition: color .18s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.nav-inner nav a i {
  font-size: 13px;
  opacity: 0.75;
  transition: opacity .18s;
}
.nav-inner nav a:hover {
  color: #2e9e4a;
  border-bottom-color: rgba(46,158,74,0.35);
}
.nav-inner nav a:hover i { opacity: 1; }
.nav-inner nav a.active {
  color: #2e9e4a;
  font-weight: 600;
  border-bottom-color: #2e9e4a;
}
.nav-inner nav a.active i { opacity: 1; color: #2e9e4a; }
/* 個別アイコン色 */
.nav-inner nav a .nav-icon-kumi { color: #e07a00; }
.nav-inner nav a .nav-icon-keiba { color: #c0287a; }
.nav-inner nav a:hover .nav-icon-kumi,
.nav-inner nav a.active .nav-icon-kumi { color: #e07a00; }
.nav-inner nav a:hover .nav-icon-keiba,
.nav-inner nav a.active .nav-icon-keiba { color: #c0287a; }
.nav-inner nav a.nav-admin {
  font-size: 13px; color: #bbb; margin-left: auto;
  border-bottom-color: transparent;
}
.nav-inner nav a.nav-admin:hover { color: #888; border-bottom-color: transparent; }
.nav-inner nav a.nav-admin i { color: #bbb; }
.nav-logout-btn {
  font-size: 13px; color: #aaa;
  border: 1px solid #ddd; background: none;
  padding: 5px 14px; cursor: pointer;
  margin-left: 12px;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logout-btn:hover { color: #2e9e4a; border-color: #2e9e4a; }

/* ============================================================
   PAGE WRAP
============================================================ */
.page-wrap {
  max-width: 1160px; margin: 0 auto;
  padding: 28px 10px 30px;
}

/* ============================================================
   フラッシュメッセージ
============================================================ */
#flashMessage {
  position: fixed;
  top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 9999;
  max-width: 500px; width: calc(100% - 32px);
  padding: 12px 20px 12px 44px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  line-height: 1.5;
  background: #e8f7ee; color: #1a6e32;
  border: 1px solid #a5d6a7;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: flashSlideIn 0.35s ease-out;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#flashMessage::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: #2e9e4a;
}
#flashMessage.flash-error {
  background: #fff0f0; color: #c0392b;
  border-color: #f5b0b0;
  box-shadow: 0 4px 20px rgba(192,57,43,0.18);
}
#flashMessage.flash-error::before {
  content: '\f06a';
  color: #c0392b;
}
#flashMessage.flash-hide {
  opacity: 0; transform: translateX(-50%) translateY(-20px);
  pointer-events: none;
}
@keyframes flashSlideIn {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   次回ラウンドバナー
============================================================ */
.next-banner {
  background: linear-gradient(90deg, #f5a623 0%, #f8c471 100%);
  border-radius: 6px;
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
  box-shadow: 0 3px 16px rgba(245,166,35,0.35);
  flex-wrap: wrap; gap: 12px;
}
.nb-label {
  font-size: 11px; font-weight: 700;
  color: rgba(120,70,0,0.75); letter-spacing: 0.3em;
  text-transform: uppercase; display: block; margin-bottom: 6px;
}
.nb-course {
  font-size: 19px; font-weight: 700;
  color: #3a2000; letter-spacing: 0.04em; margin-bottom: 4px;
}
.nb-meta {
  font-size: 13px; color: rgba(80,45,0,0.85);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.nb-meta i { margin-right: 4px; opacity: .85; }
.btn-nb {
  font-size: 13px; font-weight: 700;
  color: #7a4200; background: #fff;
  border: none; padding: 10px 24px;
  border-radius: 3px;
  cursor: pointer; white-space: nowrap;
  transition: opacity .15s;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}
.btn-nb:hover { opacity: .88; color: #7a4200; }

/* ============================================================
   セクション見出し
============================================================ */
.sec-title {
  font-size: 21px; font-weight: 700;
  color: #222; letter-spacing: 0.06em;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
  display: flex; align-items: center; gap: 10px;
}
.sec-title i { color: #2e9e4a; font-size: 19px; filter: drop-shadow(0 1px 3px rgba(46,158,74,0.3)); }
.sec-title-en {
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 400; color: #aaa;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-left: 8px;
}

/* ============================================================
   年タブ
============================================================ */
.year-tabs {
  display: flex; gap: 6px; margin-bottom: 24px;
  align-items: center; flex-wrap: wrap;
  position: relative;
}
.ytab {
  font-size: 13px; font-weight: 400; color: #888;
  background: #fff; border: 1px solid #e0e0e0;
  padding: 5px 16px; border-radius: 20px;
  cursor: pointer; transition: all .15s;
  letter-spacing: 0.06em;
  text-decoration: none; display: inline-block;
  white-space: nowrap;
}
.ytab:hover { color: #2e9e4a; border-color: #2e9e4a; }
.ytab.active {
  color: #fff; background: #2e9e4a;
  border-color: #2e9e4a; font-weight: 700;
  box-shadow: 0 2px 8px rgba(46,158,74,0.30);
}
/* 年選択ボタン（現在年表示＋▼） */
.ytab-more {
  font-size: 13px; font-weight: 700;
  color: #fff; background: #2e9e4a;
  border: 1px solid #2e9e4a;
  padding: 5px 14px 5px 16px; border-radius: 20px;
  cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; position: relative;
  box-shadow: 0 2px 8px rgba(46,158,74,0.30);
}
.ytab-more:hover { background: #268a3f; border-color: #268a3f; }
.ytab-more i { font-size: 10px; transition: transform .2s; opacity: .85; }
.ytab-more.open i { transform: rotate(180deg); }
.ytab-current-yr { letter-spacing: 0.04em; }
/* ドロップダウン */
.ytab-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  padding: 6px;
  z-index: 200;
  min-width: 120px;
  flex-direction: column;
  gap: 2px;
}
.ytab-dropdown.open { display: flex; }
.ytab-dropdown .ytab {
  font-size: 13px; padding: 6px 16px;
  border-radius: 6px; border: none;
  background: none; color: #555;
}
.ytab-dropdown .ytab:hover {
  background: #f0faf3; color: #1a6e32; border-color: transparent;
}

/* ============================================================
   トーナメントカードグリッド
============================================================ */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.t-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.t-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(46,158,74,0.18);
  border-color: #90dba4;
}
.t-card-thumb {
  height: 9px;
  background: linear-gradient(90deg, #a8d8b8, #d4f0dc);
}
.t-card-thumb.has-result {
  background: linear-gradient(90deg, #1f7a38, #2e9e4a);
}
.t-card-thumb.is-open {
  background: linear-gradient(90deg, #f5a623, #f8c471);
}
.t-card-body { padding: 18px 20px 56px; position: relative; min-height: 120px; }
.t-card-date {
  font-family: 'Lato', sans-serif;
  font-size: 12px; color: #aaa; letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.t-card-course {
  font-size: 15px; font-weight: 700;
  color: #222; letter-spacing: 0.02em;
  margin-bottom: 4px;
  line-height: 1.4;
}
.t-card-tee {
  font-size: 12px; color: #aaa; margin-bottom: 12px;
}
.t-card-winners {
  display: flex; gap: 10px; margin-bottom: 14px;
  flex-wrap: wrap;
}
.t-winner-chip {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: #555;
}
.medal {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.medal-1 { background: #f0c040; color: #5a3c00; }
.medal-2 { background: #c0c8d0; color: #444; }
.medal-3 { background: #d4622a; color: #fff; }
.t-card-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.tag {
  font-size: 12px; color: #777;
  background: #f0f0f0; border-radius: 3px;
  padding: 2px 9px; letter-spacing: 0.04em;
}
.tag.open { background: #fff4e6; color: #d97b5a; }
.tag.green { background: #e8f7ee; color: #2e9e4a; }
.t-card-btns {
  display: flex; gap: 8px;
  position: absolute; bottom: 16px; right: 18px;
}
.btn-card {
  font-size: 12px; font-weight: 500;
  padding: 6px 14px; border: 1px solid;
  cursor: pointer; border-radius: 3px;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
}
.btn-card-blue {
  color: #2e9e4a; border-color: #b4dfc4; background: #fff;
}
.btn-card-blue:hover { background: #2e9e4a; color: #fff; }
.btn-card-green {
  color: #48b86a; border-color: #b4dfc4; background: #fff;
}
.btn-card-green:hover { background: #48b86a; color: #fff; }

/* ============================================================
   2カラム（ランキング / 競馬成績）
============================================================ */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-bottom: 48px;
}
.col-block {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}
.col-block-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; gap: 8px;
}
.col-block-head i { color: #2e9e4a; font-size: 16px; }
.col-block-head .title {
  font-size: 15px; font-weight: 700; color: #222;
  flex: 1;
}
.col-block-head .title-en {
  font-family: 'Lato', sans-serif;
  font-size: 11px; color: #bbb; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rank-list {}
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: #fafcff; }
.rank-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.rn-1 { background: #f5c800; color: #5a3c00; box-shadow: 0 2px 8px rgba(245,200,0,0.45); }
.rn-2 { background: #a8b8c8; color: #fff; box-shadow: 0 2px 6px rgba(100,130,160,0.35); }
.rn-3 { background: #d4622a; color: #fff; box-shadow: 0 2px 8px rgba(212,98,42,0.45); }
.rn-n { background: #f0f0f0; color: #aaa; }
.rank-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.rank-name { flex: 1; font-size: 14px; font-weight: 400; color: #333; }
.rank-score {
  font-family: 'Lato', sans-serif;
  font-size: 23px; font-weight: 700; color: #2e9e4a;
}
.rank-unit { font-size: 11px; color: #bbb; margin-left: 2px; }
.profit-plus  { font-size: 14px; font-weight: 500; color: #18a84a; font-family: 'Lato', sans-serif; }
.profit-minus { font-size: 14px; font-weight: 500; color: #e82828; font-family: 'Lato', sans-serif; }
.bet-amount   { font-size: 12px; color: #ccc; margin-right: 6px; font-family: 'Lato', sans-serif; }

/* ============================================================
   予想師テーブル
============================================================ */
.tipster-wrap {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 48px;
}
.tipster-table {
  width: 100%; border-collapse: collapse;
}
.tipster-table thead th {
  font-size: 12px; font-weight: 500; color: #888;
  background: #fafafa;
  padding: 12px 18px; text-align: center;
  border-bottom: 1px solid #efefef;
  letter-spacing: 0.04em;
}
.tipster-table thead th:nth-child(2) { text-align: left; }
.tipster-table tbody tr {
  border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
}
.tipster-table tbody tr:last-child { border-bottom: none; }
.tipster-table tbody tr:hover { background: #fafcff; }
.tipster-table tbody td {
  padding: 14px 18px; text-align: center;
  font-size: 14px; color: #333;
}
.tipster-table tbody td:nth-child(2) { text-align: left; font-weight: 500; }
.tipster-pts {
  font-family: 'Lato', sans-serif;
  font-size: 23px; font-weight: 700; color: #2e9e4a;
}

/* ============================================================
   個人成績テーブル
============================================================ */
.stats-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e0eee4;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(46,158,74,.06);
  margin-bottom: 48px;
}
.stats-table {
  width: 100%; border-collapse: collapse;
  min-width: 900px;
  font-size: 13px;
}
.stats-table thead th {
  background: #f0f8f2;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #2e9e4a;
  border-right: 1px solid #e0eee4;
  white-space: nowrap;
  line-height: 1.3;
}
.stats-table thead th:last-child { border-right: none; }
.stats-table thead th.st-name { text-align: left; padding-left: 12px; width: 110px; }
.stats-table thead th.st-num { width: 50px; }
.stats-table thead th.st-sub { background: #f8fcf9; border-bottom: 1px solid #c8e6c9; font-size: 10px; }
.stats-table thead th.st-score-group { background: #e8f5e9; color: #1b5e20; }
.stats-table thead th.st-award-group { background: #e3f2fd; color: #1565c0; }
.stats-table thead th.st-penalty-group { background: #fff3e0; color: #e65100; }
.stats-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .1s; }
.stats-table tbody tr:hover { background: #f0faf4; }
.stats-table tbody td { padding: 7px 4px; text-align: center; border-right: 1px solid #f0f0f0; }
.stats-table tbody td:last-child { border-right: none; }
.st-td-name {
  text-align: left !important; padding-left: 8px !important;
  position: sticky; left: 0; background: #fff; z-index: 2;
  border-right: 1px solid #e0eee4 !important;
}
.stats-table tbody tr:hover .st-td-name { background: #f0faf4; }
.st-name-inner { display: flex; align-items: center; gap: 6px; }
.st-td-num { font-family: 'Lato', sans-serif; font-weight: 600; }
.st-pts { color: #2e9e4a; font-weight: 700; }
.st-gross { color: #444; }
.st-gross-best { color: #1565c0; font-weight: 700; }
.st-net { color: #444; }
.st-net-best { color: #e65100; font-weight: 700; }
.st-aw-np { color: #1565c0; }
.st-aw-dk { color: #6a1b9a; }
.st-aw-bg { color: #2e7d32; }
.st-aw-on { color: #006064; }
.st-aw-hn { color: #880e4f; }
.st-penalty { color: #e65100; }
.st-zero { color: #ddd; font-weight: 400; }
.stats-table thead th.st-keiba-group { background: #fce4ec; color: #880e4f; }
.st-profit-plus { color: #2e7d32; font-weight: 700; }
.st-profit-minus { color: #c62828; font-weight: 700; }
.keiba-results-wrap {
  background: #fff; border: 1px solid #e0eee4; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(46,158,74,.06);
  padding: 12px 16px; margin-bottom: 48px;
}

/* ============================================================
   参加人数クリックリンク
============================================================ */
.tee-count-link {
  cursor: pointer;
  color: #2e9e4a;
  font-weight: 700;
  border-bottom: 1px dashed #90dba4;
  transition: color .15s;
  display: inline;
}
.tee-count-link:hover { color: #1a6e32; }

/* ============================================================
   参加メンバーモーダル
============================================================ */
.member-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.52);
  align-items: center; justify-content: center;
  padding: 20px;
}
.member-modal-overlay.open { display: flex; }
.member-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%; max-width: 560px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,0.28);
  overflow: hidden;
  animation: modalIn .18s ease;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(0.96) translateY(8px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.modal-header {
  background: linear-gradient(135deg, #1a6e32 0%, #2e9e4a 100%);
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.modal-title-sub {
  font-size: 11px; color: rgba(255,255,255,0.65);
  letter-spacing: 0.24em; text-transform: uppercase;
  font-family: 'Lato', sans-serif; margin-bottom: 3px;
}
.modal-title {
  font-size: 17px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.modal-title-badge {
  font-size: 12px; background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 20px; padding: 2px 10px;
  font-family: 'Lato', sans-serif; font-weight: 400;
  color: rgba(255,255,255,0.85);
}
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: none;
  color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.32); }
.modal-body { overflow-y: auto; flex: 1; }
.modal-section-head {
  padding: 10px 22px 8px;
  display: flex; align-items: center; gap: 8px;
  background: #fafafa; border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 1;
}
.modal-section-head.attend-head { background: #f4fbf6; }
.modal-section-head.absent-head { background: #f7f7f7; }
.modal-section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #888; }
.modal-section-label.attend { color: #2e9e4a; }
.modal-section-label.absent { color: #aaa; }
.modal-section-count {
  font-size: 12px; font-family: 'Lato', sans-serif;
  background: #2e9e4a; color: #fff;
  border-radius: 20px; padding: 1px 8px; font-weight: 700;
}
.modal-section-count.absent-count { background: #bbb; }
.modal-member-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 22px;
  border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
}
.modal-member-row:hover { background: #f7fbf8; }
.modal-member-row.absent-row:hover { background: #f8f8f8; }
.modal-member-left { display: flex; align-items: center; gap: 10px; }
.modal-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
}
.modal-avatar.absent-avatar {
  background: #c8c8c8 !important;
  box-shadow: none;
}
.modal-member-name { font-size: 15px; color: #222; font-weight: 500; }
.modal-member-name.absent-name { color: #aaa; }
.modal-status-badge {
  font-size: 12px; font-weight: 700;
  padding: 3px 11px; border-radius: 20px;
  font-family: 'Lato', sans-serif; letter-spacing: 0.04em;
}
.badge-attend { background: #e8f7ee; color: #2e9e4a; }
.badge-absent { background: #f0f0f0; color: #aaa; }

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: linear-gradient(135deg, #0f3320 0%, #1a5c32 100%);
  padding: 48px 20px 32px;
  text-align: center;
}
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-logo {
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.7); letter-spacing: 0.18em;
  margin-bottom: 4px;
}
.footer-logo-en {
  font-family: 'Lato', sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.36em; text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-nav {
  display: flex; justify-content: center; gap: 28px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px; color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em; transition: color .15s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
  font-family: 'Lato', sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.18);
  letter-spacing: 0.12em;
}

/* ============================================================
   EVENT EDIT / ADD FORM  (ee-*)
============================================================ */
.ee-wrap { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }
.ee-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 2px solid #e8e8e8; }
.ee-title { font-size: 22px; font-weight: 700; color: #222; display: flex; align-items: center; gap: 8px; }
.ee-title i { color: #2e9e4a; }
.ee-title-en { font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 400; color: #aaa; letter-spacing: 0.12em; text-transform: uppercase; margin-left: 6px; }
.ee-id-badge { font-family: 'Lato', sans-serif; font-size: 13px; color: #888; background: #f0f0f0; padding: 4px 12px; border-radius: 20px; }
.ee-section { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); margin-bottom: 24px; overflow: hidden; }
.ee-section-head { background: #f5f7fa; border-bottom: 1px solid #e8e8e8; padding: 13px 20px; display: flex; align-items: center; gap: 8px; }
.ee-section-head i { color: #2e9e4a; font-size: 15px; }
.ee-section-title { font-size: 14px; font-weight: 700; color: #333; letter-spacing: 0.04em; }
.ee-section-body { padding: 20px; }
.ee-field { display: grid; grid-template-columns: 160px 1fr; gap: 12px 20px; align-items: start; padding: 10px 0; border-bottom: 1px solid #f4f4f4; }
.ee-field:last-child { border-bottom: none; }
.ee-label { font-size: 13px; font-weight: 700; color: #555; padding-top: 9px; letter-spacing: 0.02em; }
.ee-label .ee-hint { display: block; font-size: 11px; font-weight: 400; color: #aaa; margin-top: 2px; letter-spacing: 0; }
.ee-required { display: inline-block; margin-left: 5px; background: #fde8e8; color: #c0392b; font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 700; vertical-align: middle; }
input[type="date"].ee-input { max-width: 200px; cursor: pointer; }
.ee-input,
.ee-select,
.ee-textarea { width: 100%; padding: 10px 13px; font-family: 'Noto Sans JP', sans-serif; font-size: 14px; color: #222; border: 1.5px solid #e0e0e0; border-radius: 6px; background: #fafafa; transition: border-color .15s, background .15s, box-shadow .15s; outline: none; box-sizing: border-box; }
.ee-input:focus,
.ee-select:focus,
.ee-textarea:focus { border-color: #2e9e4a; background: #fff; box-shadow: 0 0 0 3px rgba(46,158,74,0.10); }
.ee-textarea { min-height: 90px; resize: vertical; }
.ee-input.short { max-width: 180px; }
.ee-input.medium { max-width: 280px; }
.ee-toggle-wrap { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.ee-toggle-wrap input[type="checkbox"] { width: 18px; height: 18px; accent-color: #2e9e4a; cursor: pointer; }
.ee-toggle-label { font-size: 14px; color: #444; cursor: pointer; }
.ee-toggle-desc { font-size: 12px; color: #e65100; margin-top: 4px; }
.ee-multiselect { width: 100%; border: 1.5px solid #e0e0e0; border-radius: 6px; background: #fafafa; font-size: 14px; color: #222; padding: 4px; transition: border-color .15s; outline: none; }
.ee-multiselect:focus { border-color: #2e9e4a; }
.ee-multiselect-hint { font-size: 12px; color: #888; margin-top: 5px; }
.ee-rank-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ee-rank-item label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #555; margin-bottom: 4px; }
.ee-rank-badge { display: inline-block; width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-size: 11px; font-weight: 700; color: #fff; }
.ee-rank-badge.r1 { background: #f5c518; }
.ee-rank-badge.r2 { background: #c0c0c0; }
.ee-rank-badge.r3 { background: #cd7f32; }
.ee-rank-badge.r4, .ee-rank-badge.r5 { background: #aaa; }
.ee-img-preview { margin-top: 10px; border-radius: 6px; overflow: hidden; display: inline-block; border: 1px solid #e0e0e0; }
.ee-img-preview img { max-width: 200px; display: block; }
.ee-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ee-actions-right { display: flex; gap: 10px; align-items: center; }
.btn-ee-cancel { display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px; border: 1.5px solid #e0e0e0; border-radius: 6px; background: #fff; color: #666; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; text-decoration: none; }
.btn-ee-cancel:hover { background: #f5f5f5; border-color: #ccc; }
.btn-ee-save { display: inline-flex; align-items: center; gap: 6px; padding: 11px 30px; border: none; border-radius: 6px; background: #2e9e4a; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .15s; box-shadow: 0 3px 10px rgba(46,158,74,0.28); }
.btn-ee-save:hover { opacity: 0.85; }
.btn-ee-delete { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border: 1.5px solid #f5b0b0; border-radius: 6px; background: #fff; color: #c0392b; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn-ee-delete:hover { background: #fff3f3; }
@media (max-width: 600px) {
  .ee-field { grid-template-columns: 1fr; gap: 6px; }
  .ee-rank-grid { grid-template-columns: repeat(3, 1fr); }
  .ee-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   ADMIN UTILITY CLASSES
   (インラインstyleをクラス化)
============================================================ */

/* --- eventlist: 料金セル --- */
.td-fee {
  white-space: nowrap;
  font-size: 13px;
}
.td-fee-sub {
  color: #888;
  font-size: 12px;
}

/* --- eventlist: 参加枠セル --- */
.td-maxcount {
  text-align: center;
  font-size: 14px;
}

/* --- eventlist: 参加状況 --- */
.td-attend-icon {
  margin-right: 4px;
  font-size: 11px;
}
.td-attend-empty {
  color: #ccc;
  font-size: 13px;
}
.attend-badge-absent-margin {
  margin-left: 4px;
}

/* --- eventlist: 競馬単価セル --- */
.td-bet {
  font-size: 13px;
  white-space: nowrap;
}

/* --- eventlist: 公開バッジアイコン --- */
.badge-icon {
  margin-right: 3px;
}

/* --- eventlist: 次の優勝者行マージン --- */
.winner-name-2nd {
  margin-top: 3px;
}

/* --- eventlist: Tee Timeアイコン --- */
.tee-icon {
  margin-right: 3px;
  color: #aaa;
}

/* --- eventedit / eventadd: 当たり枠ラベル --- */
.ee-waku-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.ee-waku-label-note {
  color: #aaa;
}

/* --- eventedit / eventadd: 当たり枠横並びコンテナ --- */
.ee-waku-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- eventedit / eventadd: 2つ目のトグル行マージン --- */
.ee-toggle-2nd {
  margin-top: 8px;
}

/* --- admin_public: モーダルヘッダーアイコン --- */
.modal-icon-attend {
  color: #2e9e4a;
  font-size: 14px;
}
.modal-icon-absent {
  color: #bbb;
  font-size: 14px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  #site-header { height: 200px; }
  .header-title { font-size: 24px; letter-spacing: 0.14em; }
  .header-title-en { font-size: 10px; letter-spacing: 0.40em; }
  .nav-inner nav a { padding: 0 12px; font-size: 13px; }
  .tournament-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .next-banner { flex-direction: column; gap: 16px; }
}
@media (max-width: 520px) {
  .tournament-grid { grid-template-columns: 1fr; }
  .nav-inner nav { display: none; }
  .next-banner { padding: 16px 18px; }
}
