/**
 * site.css - 全ページ共通スタイル
 * ヘッダー / フッター / 基本タイポグラフィ / モーダル / グリッド
 */

:root {
  --color-primary: #003366;
  --color-primary-light: #004488;
  --color-secondary: #f5f7fa;
  --color-accent: #0066cc;
  --color-bg: #ffffff;
  --color-bg-gray: #f8f9fa;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-border: #dddddd;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  --header-height: 56px;
  --footer-height: 60px;

  /* zone colors */
  --header-bg: transparent;
  --footer-bg: #000000;
  --adult-accent: #5a1b2c;
  /* subtle wine */
  --header-surface: rgba(255, 255, 255, 0.96);
  --header-border: rgba(0, 0, 0, 0.08);
  --shadow-elev: 0 8px 18px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
  /* bounce off (supported browsers) */
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 35%, #ffffff 100%);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
  /* bounce off (supported browsers) */
}

header {
  position: static;
  width: 100%;
  padding: 0.6rem 1rem;
  background: transparent;
}

/* ヘッダーブランド（ロゴ＋バッジ） */
.header-brand {
  flex: 0 0 auto;
}

/* ヘッダーナビゲーション */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1 1 auto;
}

.header-nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.2s;
}

.header-nav-link:hover {
  color: var(--color-primary);
}

.header-nav-link:hover::after {
  width: 100%;
}

.zone-switch-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.zone-switch-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.zone-switch-btn::after {
  content: '→';
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
}

/* ゾーン別の色 */
body.zone-general .zone-switch-btn {
  color: var(--adult-accent);
}

body.zone-adult .zone-switch-btn {
  color: var(--color-primary);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
}

/* サイトブランド（ロゴ風） */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #111111;
}

.site-brand-image {
  display: block;
  height: 24px;
  width: auto;
}

.site-brand-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--adult-accent);
}

/* ゾーン別: 成人はヘッダ枠線を控えめにワイン寄りに */

.logo-img {
  height: 28px;
  width: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #111111;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* メインコンテンツ */
main {
  flex: 1;
  padding-top: 0;
  padding-bottom: 2.5rem;
}

/* セクション共通 */
section {
  padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.0rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.subsection-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
}

footer {
  width: 100%;
  background: var(--footer-bg);
  padding: 1.5rem 1rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: min(520px, 100%);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copyright {
  color: #ffffff;
  font-size: 0.75rem;
  opacity: 0.8;
  text-align: left;
}

/* モーダル機構は廃止 */

/* 年齢認証モーダル */
.age-gate-content {
  text-align: center;
  padding: 2rem 1rem;
}

.age-gate-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.age-gate-text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.age-gate-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.age-gate-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.age-gate-btn.adult {
  background: var(--color-primary);
  color: #ffffff;
}

.age-gate-btn.adult:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.age-gate-btn.minor {
  background: var(--color-bg-gray);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.age-gate-btn.minor:hover {
  background: var(--color-border);
}

/* ボタン共通 */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* テーブル共通 */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
}

.company-table th,
.company-table td {
  padding: 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 150px;
  background: var(--color-bg-gray);
  font-weight: 500;
  color: var(--color-text);
}

.company-table td ul {
  margin: 0;
  padding-left: 1.2rem;
}

.company-table td li {
  margin-bottom: 0.2rem;
}

/* 連絡先ボックス */
.contact-box {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.contact-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.contact-box p {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.contact-link {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ダウンロードセクション */
.download-container {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.sub-tabs-container {
  margin-bottom: 1rem;
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.sub-tab {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.sub-tab:hover:not(.active) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.sub-tabs-select {
  display: none;
  width: 100%;
  padding: 0.8rem;
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1rem;
}

.download-content {
  display: none;
}

.download-content.active {
  display: block;
}

.category-section {
  margin-bottom: 1.5rem;
}

.category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: var(--color-bg-gray);
  border-left: 3px solid var(--color-accent);
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.download-table th {
  background: var(--color-bg-gray);
  color: var(--color-text);
  padding: 0.6rem;
  text-align: left;
  font-weight: 500;
  border: 1px solid var(--color-border);
}

.download-table td {
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  vertical-align: middle;
}

.download-table tr:hover {
  background: #f0f5ff;
}

.download-table th:nth-child(1),
.download-table td:nth-child(1) {
  width: 50%;
}

.download-table th:nth-child(2),
.download-table td:nth-child(2) {
  width: 25%;
}

.download-table th:nth-child(3),
.download-table td:nth-child(3) {
  width: 25%;
  text-align: center;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.8rem;
}

.download-link:hover {
  text-decoration: underline;
}

.download-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* スタッフ募集セクション */
.recruit-section {
  background: linear-gradient(135deg, #003366 0%, #004d99 100%);
  margin: 3rem auto;
}

.recruit-section .section-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.recruit-section .section-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.recruit-content {
  background: #ffffff;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.recruit-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.recruit-text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.recruit-btn {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  padding: 1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s, transform 0.2s;
}

.recruit-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.recruit-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* SNSセクション */
.sns-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.sns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.sns-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.sns-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sns-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sns-info {
  flex: 1;
  min-width: 0;
}

.sns-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--color-text);
}

.sns-type {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.sns-type.x {
  background: #000;
  color: #fff;
}

.sns-type.tiktok {
  background: #010101;
  color: #fe2c55;
}

.sns-type.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.sns-type.youtube {
  background: #ff0000;
  color: #fff;
}

.sns-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 各種お問い合わせ */
.general-contact-section {
  background: var(--color-bg-gray);
  padding: 2rem 1.5rem;
  max-width: none;
}

.general-contact-section .section-title {
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.general-contact-box {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.general-contact-box a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.general-contact-box a:hover {
  text-decoration: underline;
}

/* ローディング */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 状態表示（空/準備中など）：スピナーは付けない */
.status-message {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.7;
}

/* エラーメッセージ */
.error-message {
  text-align: center;
  padding: 2rem;
  color: #cc0000;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 4px;
}