@charset "UTF-8";

:root {
  --gold-badge: #be8f38;
}

body {
  background-color: #ffffff;
}

.topics-hero {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  color: var(--text-light);
}

.topics-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topics-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 26, 52, 0.72) 0%, rgba(10, 26, 52, 0.25) 55%, rgba(10, 26, 52, 0.35) 100%);
}

.topics-hero-inner {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topics-hero-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.topics-hero-title {
  font-family: var(--font-serif-en);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.topics-hero-title .title-big {
  display: block;
  font-size: 74px;
  letter-spacing: 0.02em;
}

.topics-hero-title .title-sub {
  display: block;
  font-size: 32px;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.topics-hero-lead {
  font-family: var(--font-serif-ja);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.topics-hero-en {
  font-family: var(--font-serif-en);
  font-size: 19px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.topics-hero-circle {
  width: 215px;
  height: 215px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: rgba(16, 30, 50, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 6px;
}

.topics-hero-circle p {
  font-family: var(--font-serif-ja);
  font-size: 14.5px;
  line-height: 1.85;
  color: #ffffff;
  text-align: left;
}

.topics-main {
  max-width: 1280px;
  margin: 26px auto 54px;
  padding: 0 24px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  background-color: #ffffff;
  border: 1px solid #dce2ec;
  border-radius: 5px;
  padding: 10px 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--navy-main);
}

.filter-btn.active {
  background-color: var(--navy-main);
  border-color: var(--navy-main);
  color: #ffffff;
}

.area-select-wrap {
  position: relative;
}

.area-select {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #dce2ec;
  border-radius: 5px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-main);
  cursor: pointer;
}

.topics-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card {
  background-color: #ffffff;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

.topic-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background-color: #dde3ec;
}

.topic-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.topic-card:hover .topic-img-wrap img {
  transform: scale(1.05);
}

.cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--gold-badge);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.loc-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--navy-main);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px 4px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.topic-body {
  padding: 16px 18px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-grow: 1;
}

.topic-title {
  font-family: var(--font-serif-ja);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-main);
  line-height: 1.35;
  margin-bottom: 6px;
}

.topic-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.55;
}

.circle-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #cfd6e2;
  color: var(--navy-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s ease;
}

.topic-card:hover .circle-arrow {
  background-color: var(--navy-main);
  border-color: var(--navy-main);
  color: #ffffff;
}

@media (max-width: 1100px) {
  .filter-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .topics-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topics-hero {
    height: auto;
    min-height: 290px;
  }
  .topics-hero-inner {
    position: relative;
  }
  .topics-hero-bg {
    position: absolute;
    inset: 0;
  }
  .topics-hero-title .title-big {
    font-size: 52px;
  }
  .topics-hero-title .title-sub {
    font-size: 24px;
  }
  .topics-hero-lead {
    font-size: 19px;
  }
  .topics-hero-circle {
    display: none;
  }
  .filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .topics-grid-3col {
    grid-template-columns: 1fr;
  }
}