@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

@font-face {
  font-family: '筆ごしらえ';
  src: url('../assets/fonts/fude-goshirae-subset.woff2') format('woff2');
  font-display: swap;
}

:root {
  --blue: #0090c9;
  --cyan: #00ccff;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e6e6ea;
  --text: #1a1a22;
  --muted: #6b6b78;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(20, 20, 30, 0.06);
  --shadow-hover: 0 10px 30px rgba(20, 20, 30, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: none;
  padding-left: max(20px, calc((100% - 1100px) / 2 + 20px));
  padding-right: 32px;
}

.brand {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 1.05rem;
  font-weight: 500;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

/* --- Tagline --- */
.tagline-banner {
  display: block;
  width: fit-content;
  text-align: center;
  font-family: '筆ごしらえ', serif;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 28px auto 0;
  color: var(--text);
}

@media (max-width: 640px) {
  .tagline-banner { font-size: 1.4rem; white-space: nowrap; }
}

.hero {
  padding: 20px 0 32px;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 50vw;
  max-height: 540px;
  background: var(--bg);
}

.hero-static {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.hero-track {
  display: flex;
  height: 100%;
  width: max-content;
}

.hero-track img {
  height: 100%;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 16px;
  border-radius: 20px;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f0f0f2;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

/* --- Section headings --- */
.section {
  padding: 32px 0;
}

/* --- Intro --- */
.intro-text {
  color: var(--muted);
  line-height: 1.8;
  max-width: 100%;
}

/* カタカナ語(固有名詞)だけは単語の途中で改行されないようにする。
   段落全体をkeep-allにすると日本語の文がスペースなしの1単語扱いになり
   折り返せなくなるため、保護したい語だけをこのクラスで囲むこと。 */
.no-break {
  word-break: keep-all;
}

@media (min-width: 860px) {
  .intro-line {
    white-space: nowrap;
  }
}

/* --- セクション共通カード ---
   トップページの各セクション(九龍とは/次回大会予定/大会実績など)は
   すべてこの見た目(白背景+枠線+角丸+影)で統一する。今後セクションを
   追加する場合もこのクラスをベースにすること。 */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* --- Next event --- */
#next-event-list .next-event-card + .next-event-card {
  margin-top: 16px;
}

#next-event-list .next-event-card {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.next-event-main {
  flex: 1;
  min-width: 220px;
}

.next-event-banner {
  width: 220px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.next-event-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  #next-event-list .next-event-card {
    flex-direction: column-reverse;
  }

  .next-event-banner {
    width: 100%;
  }
}

.next-event-name {
  font-weight: 700;
  font-size: 1.5rem;
}

.next-event-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.next-event-head .next-event-name {
  margin-right: 4px;
}

/* 大会名の横に並べる小さなエントリーリンク(start.gg) */
.next-event-entry {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.next-event-entry:hover {
  background: var(--blue);
  color: #ffffff;
}

.next-event-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 10px 0 14px;
  line-height: 1.6;
}

/* --- 次回大会(未発表・伏せ字演出) --- */
.classified-value {
  color: var(--muted);
}

.classified-banner {
  background:
    repeating-linear-gradient(
      45deg,
      #f0f0f2,
      #f0f0f2 10px,
      #e4e4e8 10px,
      #e4e4e8 20px
    );
}

.prev-event-thumb {
  margin-top: 14px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.prev-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- はじめての方へ(ホームの案内カード) ---
   カード全体がリンク。ホバーで下辺に青いラインが伸びる */
.beginners-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 28px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.beginners-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.beginners-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.beginners-card:hover::after {
  transform: scaleX(1);
}

.beginners-card-title {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.beginners-card:hover .beginners-card-title {
  color: var(--blue);
}

.beginners-card-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .beginners-card {
    padding: 22px 20px;
  }
}

/* --- Stats --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 12px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -8px;
  width: 1px;
  background: var(--border);
}

.stat-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-number--small {
  font-size: 1.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .stats-strip { grid-template-columns: repeat(3, 1fr); padding: 18px 8px; }
  .stat-number { font-size: 1.4rem; }
  .stat-number--small { font-size: 1.05rem; }
}

/* --- 歴代優勝者 --- */
.champion-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
}

.champion-row-header {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 40px 14px 18px;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.champion-row-header::after {
  content: "\25be";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.champion-row-header.open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 「はじめての方へ」と同じ: マウスを乗せると行が少し浮き、見出しの下辺に水色→青のラインが左から伸びて、大会名が青くなる。離すと元に戻る */
.champion-row {
  transition: box-shadow 0.2s, transform 0.2s;
}

.champion-row:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.champion-row-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.champion-row-header:hover::before {
  transform: scaleX(1);
}

.champion-row-name {
  transition: color 0.2s;
}

.champion-row-header:hover .champion-row-name {
  color: var(--blue);
}

.champion-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.champion-row-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.champion-row-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.champion-row-winner {
  flex: 0 0 240px;
  text-align: left;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
  white-space: nowrap;
}

.champion-detail {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}

.champion-detail.open {
  display: block;
  padding-top: 14px;
}

.champion-detail-body {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.champion-detail-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.champion-detail-left .btn-primary {
  margin-top: auto;
  align-self: flex-start;
}

.champion-detail-photo {
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #f0f0f2;
}

@media (max-width: 640px) {
  .champion-detail-body {
    flex-direction: column;
  }
  .champion-detail-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.champion-matches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.champion-match {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.champion-match-round {
  flex: 0 0 auto;
  min-width: 32px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.75rem;
}

.champion-match-score {
  flex: 0 0 auto;
  min-width: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.champion-match-score.win {
  color: #16a34a;
}

.champion-match-score.lose {
  color: #c0392b;
}

.champion-match-opponent {
  color: var(--text);
}

@media (max-width: 640px) {
  .champion-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .champion-row-winner {
    flex-basis: auto;
  }
}

/* --- はじめての方へ(ガイドのアコーディオン) --- */
.guide-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
}

.guide-row-header {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 14px 40px 14px 18px;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.guide-row-header::after {
  content: "\25be";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.guide-row-header.open::after {
  transform: translateY(-50%) rotate(180deg);
}

.guide-row-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.guide-detail {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}

.guide-detail.open {
  display: block;
  padding-top: 14px;
}

.guide-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.9rem;
}

/* --- Thanks to --- */
.thanks-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.thanks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 20px;
  font-size: 0.95rem;
}

.thanks-name {
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid rgba(0, 204, 255, 0.4);
  padding-bottom: 2px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

a.thanks-name:hover {
  border-bottom-color: var(--cyan);
}

@media (max-width: 640px) {
  .thanks-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

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

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  display: inline-block;
  font-size: 1.2rem;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--cyan);
}

.section-head .see-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
}

/* --- Archive filters --- */
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.archive-filters select,
.multiselect-toggle {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  min-width: 150px;
}

.multiselect {
  position: relative;
}

.multiselect-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.multiselect-toggle::after {
  content: "\25be";
  color: var(--muted);
  font-size: 0.7rem;
}

.multiselect-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multiselect-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: max(260px, 100%);
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px;
}

.multiselect-panel.open {
  display: block;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.multiselect-option:hover {
  background: var(--bg);
}

.multiselect-option input {
  accent-color: var(--blue);
  cursor: pointer;
}

.filter-reset {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-reset:hover {
  color: var(--text);
  border-color: var(--text);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.active-filters:empty {
  display: none;
  margin-bottom: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  background: rgba(0, 144, 201, 0.1);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- カメラマン絞り込み(大会ギャラリーページ) --- */
.photographer-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.photographer-filter:empty {
  display: none;
  margin-bottom: 0;
}

.photographer-pill {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.photographer-pill:hover {
  border-color: var(--blue);
  color: var(--text);
}

.photographer-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

@media (max-width: 640px) {
  .archive-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 14px;
  }
  .filter-group {
    gap: 4px;
  }
  .filter-group label {
    font-size: 0.7rem;
  }
  .archive-filters select,
  .multiselect-toggle {
    min-width: 0;
    width: 100%;
    padding: 7px 10px;
    font-size: 0.82rem;
  }
  .filter-reset {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.filter-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

.archive-count {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 18px;
}

/* --- Cards grid (archive) --- */
.archive-year-group {
  margin-bottom: 36px;
}

.archive-year-group:last-child {
  margin-bottom: 0;
}

.archive-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.event-card .thumb {
  aspect-ratio: 4 / 3;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
}

.event-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .body {
  padding: 14px 16px 16px;
}

.event-card .name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.35;
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

/* --- Photo grid (gallery) --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f2;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.photo-item:hover img {
  transform: scale(1.04);
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: var(--muted);
}

.fav-btn.active {
  color: #e0245e;
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .big-emoji {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 7, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-nav {
  border: none;
  background: none;
  color: rgba(70, 75, 85, 0.5);
  padding: 0;
  margin: 0;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.lightbox-prev {
  justify-content: flex-start;
  padding-left: 2%;
}

.lightbox-next {
  justify-content: flex-end;
  padding-right: 2%;
}

.lightbox-nav svg {
  width: 64px;
  height: 64px;
  display: block;
}

.lightbox-nav:hover {
  color: rgba(120, 130, 145, 0.9);
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .lightbox-nav svg {
    width: 40px;
    height: 40px;
  }
}

/* --- Scroll to top --- */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  z-index: 40;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 22px 0 26px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-links a {
  font-weight: 500;
  color: var(--text);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
  margin-top: 4px;
}

.footer-note {
  margin-top: 18px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
}

.nav-mobile-contact {
  display: none;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    transform: none;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 20px 16px;
  }

  .nav-links.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open a:last-child {
    border-bottom: none;
  }

  .nav-links.open .nav-mobile-contact {
    display: block;
  }
}
