/* ===================================================================
   競艇データ — 공통 스타일

   kitaichi-navi(파칭코) / ロトナンバーズ 의 common.css 구조를 그대로
   가져오고, 색만 물·바다 계열(딥네이비 + 청록)으로 교체했다.
   변수명은 사이트마다 다른 색 이름(--gold 등) 대신 의미 기반(--accent)
   으로 바꿔 두었다. 다음 사이트에 옮길 때 값만 갈아끼우면 된다.
   =================================================================== */

/*
  색상 팔레트.

  --accent-dark 는 링크·강조 문자에 쓰므로 흰 배경과 --accent-bg 양쪽에서
  WCAG AA(4.5:1)를 만족해야 한다. 실측값은 흰 5.94 / accent-bg 5.60.
  장식용 --accent(#12a5c4)는 배경·테두리·어두운 바탕 위 글자 전용
  (--ink 위에서 5.53).
*/
:root {
  --accent: #12a5c4;
  --accent-dark: #0a6d84;
  --accent-light: #bfe6ef;
  --accent-bg: #f0fafc;
  --ink: #10232e;
  --ink-soft: #1b3341;
  --text: #333;
  --muted: #6b6b70;
  --line: #e3e3e6;
  --bg: #f7fafb;

  /*
    코스 1~6 색. 인코스가 진하고 아웃코스로 갈수록 옅어진다.
    "안쪽이 유리"라는 이 종목의 대전제를 색 농도만으로 전달하기 위한 것이라
    임의의 6색이 아니라 반드시 단조 감소하는 한 계열이어야 한다.
  */
  --c1: #0a4f66;
  --c2: #0d7490;
  --c3: #1295b3;
  --c4: #3fb6cf;
  --c5: #7fd0e0;
  --c6: #b9e5ee;
}

/* === 키보드 포커스 === */
/*
  마우스 클릭 시에는 테두리를 내지 않고, 키보드 이동일 때만 보이게 한다.
  outline 을 지우기만 하면 키보드 사용자가 현재 위치를 잃는다.
*/
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 본문으로 건너뛰기 (키보드/스크린리더용) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--accent);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

/* === Layout === */
.site-wrapper {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === Header / Navigation === */
.site-header {
  background-color: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border-bottom: 2px solid var(--accent);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 6px;
}

.site-logo .accent { color: var(--accent); }

.site-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: #fff;
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background-color: rgba(18,165,196,0.28);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

/* 헤더가 sticky 라 앵커로 점프하면 제목이 가려진다 */
[id] { scroll-margin-top: 68px; }

/* === 競艇場クイックジャンプ === */
.jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.jump-row a {
  font-size: 0.76rem;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  white-space: nowrap;
}

.jump-row a:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-dark);
}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: #bbb; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* === Page Title === */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 8px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
}

.page-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* === Section === */
.section { margin-bottom: 32px; }

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.section p + p { margin-top: 12px; }

/* === Footer === */
.site-footer {
  background-color: var(--ink-soft);
  color: #bfc9ce;
  padding: 32px 16px 24px;
  margin-top: 48px;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-group h4 {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-group-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group-links a,
.footer-common a {
  color: #bfc9ce;
  font-size: 0.85rem;
}

.footer-group-links a:hover,
.footer-common a:hover { color: #fff; }

.footer-common {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #3a4c57;
  margin-bottom: 16px;
}

.footer-note {
  color: #97a4ab;
  font-size: 0.78rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-copy {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #3a4c57;
  color: #97a4ab;
  font-size: 0.8rem;
}

/* 규약류는 메인 네비와 분리해 푸터 하단에 둔다 */
.footer-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-sub a {
  color: #97a4ab;
  font-size: 0.8rem;
}

.footer-sub a:hover { color: #fff; }

/* === Ad Slots === */
.ad-slot {
  text-align: center;
  margin: 24px auto;
  overflow: hidden;
}

/* === 次のステップ CTA === */
.next-action-section {
  margin: 40px 0 16px;
  padding: 20px 16px;
  background: var(--accent-bg);
  border-radius: 12px;
  border: 1px solid var(--accent-light);
}

.next-action-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.next-action-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.next-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--accent-light);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background 0.15s, box-shadow 0.15s;
}

.next-action-card:hover {
  background: var(--accent-bg);
  box-shadow: 0 2px 8px rgba(18,165,196,0.25);
  color: var(--accent-dark);
  text-decoration: none;
}

.next-action-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--ink);
    flex-direction: column;
    padding: 8px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    border-bottom: 2px solid var(--accent);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 1rem;
    width: 100%;
  }

  .header-inner { height: 52px; }

  .page-title {
    font-size: 1.3rem;
    margin: 24px 0 8px;
  }

  .footer-groups { gap: 24px; }
}

@media (max-width: 600px) {
  .next-action-cards { grid-template-columns: repeat(2, 1fr); }
  .next-action-card { padding: 14px 8px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .site-logo { font-size: 1.05rem; }
}
