/* パラサーフィンフェスタ2026 共通スタイル */

:root {
  --ocean-deep: #0c4a6e;
  --ocean: #0369a1;
  --ocean-light: #0ea5e9;
  --turquoise: #06b6d4;
  --sand: #fef3c7;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e5e7eb;
  --danger: #dc2626;
  --success: #059669;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ヘッダー */
.site-header {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: white;
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header h1 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-header h1 a { color: white; }
.site-header h1 a:hover { text-decoration: none; opacity: 0.9; }
.site-header .role-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ヒーロー */
.hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  max-height: 480px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(12,74,110,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  color: white;
}
.hero .overlay .label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}
.hero .overlay h2 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero .overlay .date {
  font-size: 1.1rem;
  font-weight: 500;
}

/* メインコンテナ */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* セクション */
section { margin-bottom: 2.5rem; }
section h2 {
  font-size: 1.35rem;
  border-left: 5px solid var(--ocean-light);
  padding-left: 0.75rem;
  margin: 0 0 1rem;
  color: var(--ocean-deep);
}
section h3 {
  font-size: 1.1rem;
  color: var(--ocean-deep);
  margin: 1.5rem 0 0.75rem;
}

/* カード */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
}
.card h3 { margin-top: 0; }

/* メニューグリッド（TOPページ用） */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.menu-card {
  display: block;
  background: var(--card);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 4px solid var(--ocean-light);
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-decoration: none;
}
.menu-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.menu-card .title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--ocean-deep);
}
.menu-card .desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* テーブル */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
table th, table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table th {
  background: var(--ocean-deep);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}
table tr:last-child td { border-bottom: none; }
table tr:nth-child(even) td { background: #f9fafb; }

/* バッジ・ピル */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--ocean-light);
  color: white;
}
.badge.accent { background: var(--accent); }
.badge.danger { background: var(--danger); }
.badge.success { background: var(--success); }

/* 注意・警告ボックス */
.note {
  background: #fef3c7;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.note.danger {
  background: #fee2e2;
  border-left-color: var(--danger);
}
.note.info {
  background: #dbeafe;
  border-left-color: var(--ocean-light);
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--ocean);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--ocean-deep); text-decoration: none; color: white; }
.btn.block { display: block; width: 100%; text-align: center; }

/* パンくず */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-light); }

/* 動画埋め込み */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1rem 0;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #475569, #334155);
  color: white;
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

/* フッター */
.site-footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,0.85);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: white; }

/* レスポンシブ */
@media (min-width: 720px) {
  .site-header h1 { font-size: 1.2rem; }
  .hero .overlay h2 { font-size: 2.4rem; }
  section h2 { font-size: 1.5rem; }
  main { padding: 2rem 1.5rem 4rem; }
}

/* スクロールマージン（アンカーリンク用） */
section[id], h2[id], h3[id] { scroll-margin-top: 80px; }

/* ログインページ専用 */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--turquoise) 100%);
  padding: 1.5rem;
}
.login-box {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.login-box h1 {
  font-size: 1.25rem;
  text-align: center;
  margin: 0 0 0.25rem;
  color: var(--ocean-deep);
}
.login-box .subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.login-box label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.login-box input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
}
.login-box input[type="password"]:focus {
  outline: none;
  border-color: var(--ocean-light);
}
.login-box .error {
  background: #fee2e2;
  color: var(--danger);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}
.login-box .help {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.6;
}
