/* ===================================================================
   期待値ナビ — 공통 스타일
   ロトナンバーズ(lotto-japan.com)의 common.css 구조를 기반으로,
   파칭코/슬롯에 맞춰 골드+블랙 계열로 색상만 교체.
   =================================================================== */

/*
  색상 팔레트.

  --gold-dark 는 링크·강조 문자에 쓰므로 흰 배경과 --gold-bg 양쪽에서
  WCAG AA(4.5:1)를 만족해야 한다. 원래 쓰던 #a8871c 는 흰 배경에서
  3.42:1 로 미달이라 #82680f 로 낮췄다(흰 5.34 / gold-bg 5.07).
  장식용 --gold(#c9a227)는 배경·테두리·어두운 바탕 위 글자에만 쓴다.
*/
:root {
  --gold: #c9a227;
  --gold-dark: #82680f;
  --gold-light: #f3e6b8;
  --gold-bg: #fdf9ec;
  --ink: #1a1a1c;
  --ink-soft: #2c2c30;
  --text: #333;
  --muted: #6b6b70;
  --line: #e3e3e6;
  --bg: #f8f9fa;
}

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

/* 본문으로 건너뛰기 (키보드/스크린리더용) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--gold);
  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(--gold-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(--gold);
}

.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;
}

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

.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(201,162,39,0.25);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--gold);
  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(--gold);
  background: var(--gold-bg);
  color: var(--gold-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(--gold-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(--gold);
}

.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(--gold);
}

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

/* === Footer === */
.site-footer {
  background-color: var(--ink-soft);
  color: #bfbfc4;
  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(--gold);
  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: #bfbfc4;
  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 #444;
  margin-bottom: 16px;
}

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

.footer-copy {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #444;
  color: #9a9aa0;
  font-size: 0.8rem;
}

/* === 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(--gold-bg);
  border-radius: 12px;
  border: 1px solid var(--gold-light);
}

.next-action-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-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(--gold-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(--gold-bg);
  box-shadow: 0 2px 8px rgba(201,162,39,0.25);
  color: var(--gold-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(--gold);
  }

  .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; }
}
