/* ===================================
   SF6 カレンダー — ベーススタイル
   =================================== */

/* --- CSS変数 --- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-light: #16213e;
  --color-accent: #e94560;
  --color-link: #3b82f6;
  --color-bg: #f0f0f3;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #606877;
  --color-border: #e5e7eb;
  --color-badge-original: #4a90d9;
  --color-badge-dlc: #e67e22;
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.14);
  --header-height: 56px;
  --bp-mobile: 768px;
}

/* --- リセット --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* --- ヘッダー --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-header__title {
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-header__title a {
  color: #fff;
}

/* --- ナビゲーション --- */
.site-nav {
}

.site-nav__list {
  display: flex;
  gap: 0.25rem;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: background 0.2s;
}

.site-nav__link:hover,
.site-nav__link--active {
  background: rgba(255, 255, 255, 0.15);
}

.site-nav__link--active {
  font-weight: 600;
}

/* --- 言語切替ボタン --- */
.lang-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
  margin-right: 0.5rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- ハンバーガーボタン --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem;
  line-height: 1;
}

/* --- メインコンテンツ --- */
#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* --- 広告枠 --- */
.ad-slot {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  overflow: hidden;
}

.ad-slot__close {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}

.ad-slot__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

/* --- ページプレースホルダー --- */
.page-placeholder {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-secondary);
}

.page-placeholder__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- モバイル対応 --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: 0;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: 240px;
    background: var(--color-primary-light);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 1rem 0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  }

  .site-nav--open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    font-size: 1rem;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    display: none;
  }

  .nav-overlay--visible {
    display: block;
  }
}
