@charset "utf-8";
/* ============================================================
   スマホ表示用スタイル
   ・js/mobile.js がスマホと判定したときだけ <html class="sp"> になり、
     このファイルのスタイルが効きます（PC・タブレットには一切効きません）
   ・このファイルを削除すると、スマホでも従来どおりの表示に戻ります
   ============================================================ */

/* mobile.js がこのファイルの読み込みを確認するための目印（消さないこと） */
:root { --sp-ok: 1; }

html.sp {
  --sp-primary: #27477e;
  --sp-primary-dark: #1c3460;
  --sp-primary-soft: #eef3fa;
  --sp-primary-line: #cfdcee;
  --sp-accent: #5e8f32;
  --sp-accent-dark: #4a7426;
  --sp-text: #1f2933;
  --sp-sub: #637083;
  --sp-line: #e3e8ee;
  --sp-bg: #f4f6f9;
  --sp-soft: #f6f8fb;
  --sp-radius: 12px;
  --sp-header: 56px;
  background: var(--sp-bg) none;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--sp-header) + 8px);
}

/* ---------------- 基本 ---------------- */
html.sp body {
  background: var(--sp-bg) none;
  color: var(--sp-text);
  text-align: left;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
}
html.sp img { max-width: 100%; height: auto; }
html.sp #container { width: auto; padding: 0; }
html.sp #header,
html.sp #navi { display: none; }
html.sp #container #main {
  border: none;
  background: transparent;
  padding: 18px 16px 0;
}
html.sp #container #main a { color: var(--sp-primary); }
html.sp #container #main a:hover { color: var(--sp-primary-dark); }
html.sp #container #main #contents,
html.sp #container #main #mainContents,
html.sp #container #main #sub {
  float: none;
  width: auto;
  margin: 0;
}
html.sp .clearfix:after { display: none; }

/* ---------------- ヘッダー・メニュー ---------------- */
html.sp .sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sp-header);
  padding: 0 6px 0 16px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--sp-line);
  box-shadow: 0 1px 6px rgba(20, 40, 70, .05);
}
html.sp .sp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sp-primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
}
html.sp .sp-brand-mark {
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(var(--sp-primary) 0 55%, var(--sp-accent) 55% 100%);
}
html.sp .sp-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px;
  height: 48px;
  padding: 0;
  border: none;
  background: none;
  color: var(--sp-primary-dark);
  font: inherit;
  cursor: pointer;
}
html.sp .sp-menu-icon,
html.sp .sp-menu-icon::before,
html.sp .sp-menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s, background-color .2s;
}
html.sp .sp-menu-icon { position: relative; }
html.sp .sp-menu-icon::before,
html.sp .sp-menu-icon::after { content: ""; position: absolute; left: 0; }
html.sp .sp-menu-icon::before { top: -7px; }
html.sp .sp-menu-icon::after { top: 7px; }
html.sp .sp-menu-label { font-size: 10px; line-height: 1; letter-spacing: .05em; margin-top: 6px; }
html.sp.sp-menu-open .sp-menu-icon { background: transparent; }
html.sp.sp-menu-open .sp-menu-icon::before { transform: translateY(7px) rotate(45deg); }
html.sp.sp-menu-open .sp-menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

html.sp .sp-drawer {
  position: fixed;
  top: var(--sp-header);
  left: 0;
  right: 0;
  z-index: 99;
  max-height: calc(100vh - var(--sp-header));
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid var(--sp-line);
  box-shadow: 0 10px 24px rgba(20, 40, 70, .12);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform .2s, opacity .2s, visibility .2s;
}
html.sp.sp-menu-open .sp-drawer { transform: none; opacity: 1; visibility: visible; }
html.sp .sp-drawer ul { margin: 0; padding: 6px 0; }
html.sp .sp-drawer li { list-style: none; }
html.sp .sp-drawer a {
  display: block;
  padding: 14px 22px;
  color: var(--sp-text);
  text-decoration: none;
  font-size: 15px;
  border-left: 4px solid transparent;
}
html.sp .sp-drawer li + li a { border-top: 1px solid var(--sp-line); }
html.sp .sp-drawer a.is-current {
  color: var(--sp-primary);
  font-weight: 700;
  background: var(--sp-primary-soft);
  border-left-color: var(--sp-accent);
}
html.sp .sp-overlay {
  position: fixed;
  inset: var(--sp-header) 0 0 0;
  z-index: 98;
  background: rgba(15, 25, 40, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
html.sp.sp-menu-open .sp-overlay { opacity: 1; visibility: visible; }
html.sp.sp-menu-open body { overflow: hidden; }

/* ---------------- 見出し ---------------- */
html.sp #container h2 {
  margin: 2px 0 18px;
  padding: 2px 0 2px 12px;
  border: none;
  border-left: 4px solid var(--sp-accent);
}
html.sp #container h2 img { display: none; }
html.sp .sp-h2 {
  display: block;
  color: var(--sp-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
}
html.sp h3 {
  margin: 28px 0 10px;
  padding: 0;
  background: none;
  color: var(--sp-text);
  font-size: 17px;
  font-weight: 700;
}
html.sp p.text01,
html.sp #clickText {
  margin: 0 0 14px;
  color: var(--sp-sub);
  font-size: 13px;
}

/* ---------------- ファイル形式のバッジ ---------------- */
html.sp .file a,
html.sp .sp-btn,
html.sp #dl a {
  background-image: none !important;
  padding-left: 0;
}
html.sp a[href$=".pdf" i]::after,
html.sp a[href$=".xls" i]::after,
html.sp a[href$=".xlsx" i]::after,
html.sp a[href$=".xlsm" i]::after,
html.sp a[href$=".doc" i]::after,
html.sp a[href$=".docx" i]::after,
html.sp a[href$=".rtf" i]::after,
html.sp a[href$=".jtd" i]::after {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  vertical-align: 1px;
  text-decoration: none;
}
html.sp a[href$=".pdf" i]::after { content: "PDF"; color: #a8432f; background: #fbece8; }
html.sp a[href$=".xls" i]::after,
html.sp a[href$=".xlsx" i]::after,
html.sp a[href$=".xlsm" i]::after { content: "Excel"; color: #2d7a4c; background: #e7f4ec; }
html.sp a[href$=".doc" i]::after,
html.sp a[href$=".docx" i]::after,
html.sp a[href$=".rtf" i]::after { content: "Word"; color: #2c5ea6; background: #e7effa; }
html.sp a[href$=".jtd" i]::after { content: "一太郎"; color: #6b5a2a; background: #f5efdf; }

/* ---------------- カード共通 ---------------- */
html.sp .sp-cards { display: grid; gap: 10px; margin: 0 0 18px; }
html.sp .sp-cards-caption {
  margin: 4px 2px 0;
  color: var(--sp-accent-dark);
  font-weight: 700;
  font-size: 14px;
}
html.sp .sp-card {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(20, 40, 70, .04);
}
html.sp .sp-card-title {
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--sp-line);
  color: var(--sp-text);
  font-size: 16px;
  font-weight: 700;
}
html.sp .sp-field {
  display: grid;
  grid-template-columns: 5.8em 1fr;
  gap: 2px 10px;
  padding: 5px 0;
  font-size: 14px;
}
html.sp .sp-field.no-label { grid-template-columns: 1fr; }
html.sp .sp-field.is-links { grid-template-columns: 1fr; gap: 3px; }
html.sp .sp-field.is-links .sp-label { padding-top: 0; }
html.sp .sp-linkset {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--sp-line);
}
html.sp .sp-linkset .sp-field { padding: 3px 0; }
html.sp .sp-label {
  padding-top: 3px;
  color: var(--sp-sub);
  font-size: 12px;
  line-height: 1.5;
}
html.sp .sp-value { min-width: 0; color: var(--sp-text); }
html.sp .sp-value p { margin: 0; }
html.sp .sp-value span { margin-left: .5em; color: var(--sp-sub); font-size: 12px; }
html.sp .sp-value ul { margin: 0; }
html.sp .sp-value li { margin: 0; list-style: none; }
html.sp .sp-sub {
  margin: 6px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sp-soft);
}
html.sp .sp-sub + .sp-sub { margin-top: 4px; }
html.sp .sp-sub-title {
  padding: 2px 0;
  color: var(--sp-primary);
  font-size: 13px;
  font-weight: 700;
}
html.sp .sp-muted,
html.sp .sp-empty { color: #a0aab5; }
html.sp .sp-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 1px 0; }
html.sp #container #main a.sp-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 12px;
  border: 1px solid var(--sp-primary-line);
  border-radius: 999px;
  background: var(--sp-primary-soft);
  color: var(--sp-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
html.sp #container #main a.sp-btn::after { margin-left: 6px; }
html.sp .sp-table-hidden { display: none !important; }
html.sp .sp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 18px;
  border-radius: 8px;
}
html.sp .sp-scroll table { width: auto !important; min-width: 100%; margin: 0 !important; background: #fff; }

/* ---------------- 開閉する一覧（過去開催分など） ---------------- */
html.sp dl.past {
  margin: 0 0 10px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  overflow: hidden;
}
html.sp dl.past > dt,
html.sp #container #main dl.past > dt {
  position: relative;
  padding: 14px 44px 14px 16px;
  background: none;
  color: var(--sp-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}
html.sp dl.past > dt::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--sp-sub);
  border-bottom: 2px solid var(--sp-sub);
  transform: rotate(45deg);
  transition: transform .2s;
}
html.sp dl.past > dt.sp-open::after { transform: rotate(-135deg); margin-top: -2px; }
html.sp dl.past > dd { padding: 0 12px 12px; }
html.sp dl.past > dd .sp-cards { margin-bottom: 4px; }

/* 最新分（常に開いている）は見出し＋カードの並びに */
html.sp #latest-program-container dl.past,
html.sp #latest-result-container dl.past {
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 18px;
}
html.sp #latest-program-container dl.past > dt,
html.sp #latest-result-container dl.past > dt,
html.sp #container #main #latest-result-container dl.past > dt {
  padding: 0 0 0 12px;
  margin: 0 0 12px;
  border-left: 4px solid var(--sp-primary);
  color: var(--sp-text);
  font-size: 16px;
}
html.sp #latest-program-container dl.past > dt::after,
html.sp #latest-result-container dl.past > dt::after,
html.sp #latest-result-container dl.past dt::before { content: none; display: none; }
html.sp #latest-program-container dl.past > dd,
html.sp #latest-result-container dl.past > dd { padding: 0; }
html.sp #latest-program-container ul.file { margin: 0 0 12px !important; }

/* ---------------- 事業計画などのファイル一覧 ---------------- */
html.sp #mainContents > ul.file,
html.sp dd > ul.file,
html.sp #latest-program-container ul.file {
  margin: 0 0 18px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  overflow: hidden;
}
html.sp ul.file > li,
html.sp ul.file > li[style] {
  margin: 0 !important;
  padding: 13px 16px;
  list-style: none;
}
html.sp ul.file > li + li { border-top: 1px solid var(--sp-line); }
html.sp ul.file > li > a { font-weight: 600; text-decoration: none; }
html.sp p.file { margin: 0 0 8px; }

/* ---------------- ダウンロード・地域クラブ ---------------- */
html.sp #dl { margin: 0; }
html.sp #dl > li {
  margin: 0 0 14px;
  padding: 14px 16px 6px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-weight: normal;
  list-style: none;
}
html.sp #dl .sp-sec {
  display: block;
  margin: 0 0 6px;
  color: var(--sp-accent-dark);
  font-size: 16px;
  font-weight: 700;
}
html.sp #dl li ol,
html.sp #dl li ol ul,
html.sp #dl li li ul { margin: 0; padding: 0; }
html.sp #dl li li,
html.sp #dl li ol li,
html.sp #dl li li li {
  margin: 0;
  padding: 0;
  text-indent: 0;
  list-style: none;
  background: none;
  color: var(--sp-text);
  font-weight: normal;
}
html.sp #dl li.sp-grp {
  margin: 12px 0 2px;
  color: var(--sp-sub);
  font-size: 13px;
  font-weight: 700;
}
html.sp #dl ul > li {
  padding: 11px 0;
  border-top: 1px solid var(--sp-line);
  color: var(--sp-sub);
  font-size: 14px;
}
html.sp #dl ul > li a { color: var(--sp-primary); font-weight: 600; font-size: 15px; }

/* ---------------- トップページ ---------------- */
html.sp #container #main ul#news {
  margin: 0 0 18px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  overflow: hidden;
}
html.sp #container #main ul#news li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  list-style: none;
  line-height: 1.6;
}
html.sp #container #main ul#news li + li { border-top: 1px solid var(--sp-line); }
html.sp #container #main ul#news li a { font-weight: 600; text-decoration: none; }
html.sp .sp-date { color: var(--sp-sub); font-size: 12px; letter-spacing: .04em; }
html.sp .sp-tiles { margin: 0 0 18px; }
html.sp .sp-tiles-title { margin: 0 0 10px; color: var(--sp-text); font-size: 17px; font-weight: 700; }
html.sp .sp-tiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html.sp #container #main a.sp-tile {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  color: var(--sp-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
html.sp #container #main a.sp-tile::before {
  content: "";
  flex: none;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--sp-accent);
}

/* サイドの「事務局」「リンク」 */
html.sp #container #main #sub { margin-top: 8px; }
html.sp #container #main #sub dl {
  width: auto;
  margin: 0 0 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
}
html.sp #container #main #sub dl dt {
  margin: 0 0 6px;
  padding: 0;
  background: none;
  color: var(--sp-accent-dark);
  font-weight: 700;
}
html.sp #container #main #sub dl dd { font-size: 14px; color: var(--sp-text); }
html.sp #container #main #sub ul#link li { list-style: none; padding: 8px 0; border-top: 1px solid var(--sp-line); }
html.sp #container #main #sub ul#link li:first-child { border-top: none; }
html.sp #container #main #sub ul#link li a { padding: 0; background: none; font-weight: 600; }
html.sp #container #main #sub ul#link li p { margin: 2px 0 0; color: var(--sp-sub); font-size: 12px; }

/* ---------------- 九州・全国 ---------------- */
html.sp .competition_tournament_link {
  margin: 0 0 18px !important;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  font-size: 14px;
}
html.sp .competition_tournament_link ul { margin: 6px 0 0 !important; }
html.sp .competition_tournament_link li { list-style: none; padding: 6px 0; }

/* ---------------- 更新案内の詳細ページ（info.php） ---------------- */
html.sp #container #main #mainContents div.infoBox {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
}
html.sp #container #main #mainContents div.infoBox h3.infoTitle {
  margin: 0 0 8px;
  padding: 0 0 8px;
  color: var(--sp-text);
  font-size: 16px;
  border-bottom: 1px solid var(--sp-line);
}
html.sp #container #main #mainContents div.infoBox h3.infoTitle span {
  float: none;
  display: block;
  color: var(--sp-sub);
  font-size: 12px;
}

/* ---------------- 下部 ---------------- */
html.sp #container #main p#getPdf { display: none; }
html.sp #container #main p#topBack { margin: 18px 0 0; text-align: center; font-size: 13px; }
html.sp #container #main p#topBack a {
  display: inline-block;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 999px;
  color: var(--sp-sub);
  text-decoration: none;
}
html.sp #container #main #footer {
  margin: 18px -16px 0;
  padding: 22px 16px 26px;
  border: none;
  background: var(--sp-primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
}
html.sp #container { padding-bottom: 0; }
