html {
  scroll-behavior: smooth;
}
.archive-hero {
  position: relative;
  min-height: 450px;
  padding: 150px 8% 0;
  background:
    linear-gradient(rgba(55, 186, 186, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 186, 186, 0.04) 1px, transparent 1px),
    #0b0f10;
  background-size: 40px 40px;
  overflow: hidden;
  border-bottom: 1px solid rgba(55, 186, 186, 0.45);
  font-family: "Shippori Antique B1", sans-serif;
}

.archive-hero::before {
  content: "ARCHIVE";
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  font-size: clamp(7rem, 18vw, 18rem);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.archive-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.archive-hero h1 {
  margin-top: 40px;
  color: #fff;
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: 0.18em;
  line-height: 1;
}

.archive-hero p {
  margin-top: 36px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.15em;
  line-height: 1.3;
}
.page-rec {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #37baba;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.page-rec::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #37baba;
}
main {
  font-family: "Shippori Antique B1", sans-serif;
}

.archive-page {
  background: #050808;
  color: #fff;
}

.archive-dig {
  padding: 100px 1% 120px;
}

.archive-dig-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.archive-question {
  text-align: center;
  margin-bottom: 80px;
}
.archive-dig-stage {
  position: relative;
  min-height: 560px;
}

.archive-question span,
.selected-theme span {
  display: inline-block;
  background: #37baba;
  color: #050808;
  padding: 5px 12px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin-bottom: 25px;
  font-weight: bold;
}

.archive-question h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.12em;
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.theme-btn {
  position: relative;
  min-height: 210px;
  padding: 28px;

  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(55, 186, 186, 0.35);
  color: #fff;
  text-align: left;
  cursor: pointer;

  transition: 0.3s ease;
}

.theme-btn.active,
.theme-btn:hover {
  border-color: #37baba;
  box-shadow: 0 0 24px rgba(55, 186, 186, 0.14);
  transform: translateY(-4px);
}

.theme-num {
  display: block;
  color: #37baba;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.theme-icon {
  position: absolute;
  top: 28px;
  right: 40px;

  width: 42px;
  height: 42px;
}

.theme-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.theme-btn strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-top: 36px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(55, 186, 186, 0.6);
}

.theme-btn small {
  display: block;
  color: #cfd6d6;
  line-height: 1.8;
  margin-top: 18px;
}

@keyframes recordAreaFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selected-theme p:first-of-type {
  color: #37baba;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.selected-theme h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.4;
  margin-bottom: 24px;
}

.selected-theme p:last-child {
  color: #cfd6d6;
  line-height: 2;
}

.record-head {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-bottom: 18px;
  border-bottom: 1px solid rgba(55, 186, 186, 0.35);
  margin-bottom: 24px;
}

.record-head h3,
.record-head span {
  color: #37baba;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

#recordPanel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recordPanel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
#recordPanel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.record-card {
  display: block;
  text-decoration: none;
  color: inherit;

  position: relative;
  min-height: 300px;
  padding: 28px;

  color: #fff;
  text-decoration: none;

  border: 1px solid rgba(55, 186, 186, 0.38);
  background: rgba(255, 255, 255, 0.025);

  transition: 0.3s ease;
}

.record-number {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.record-card:hover {
  border-color: #37baba;
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(55, 186, 186, 0.14);
}

.record-num {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.record-card small {
  display: inline-block;
  color: #37baba;
  border: 1px solid rgba(55, 186, 186, 0.5);
  padding: 4px 10px;
  font-size: 0.7rem;
  margin-bottom: 20px;
}

.record-card h4 {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.record-card p {
  color: #cfd6d6;
  line-height: 1.9;
  font-size: 0.9rem;
}

.record-link {
  position: absolute;
  left: 28px;
  bottom: 28px;

  color: #37baba;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.record-area {
  position: absolute;
  inset: 0;

  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;

  padding: 30px;
  border: 1px solid rgba(55, 186, 186, 0.45);
  background: rgba(5, 8, 8, 0.94);
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);

  transition: 0.5s ease;
  z-index: 5;
}
.archive-dig-stage.is-open .record-area {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.archive-dig-stage.is-open .theme-list {
  opacity: 0.18;
  transform: scale(0.98);
  pointer-events: none;
  filter: blur(2px);
}

.back-theme {
  position: absolute;
  left: 42px;
  bottom: 34px;

  padding: 12px 28px;

  background: none;
  border: 1px solid rgba(55, 186, 186, 0.65);
  color: #37baba;

  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.12em;

  cursor: pointer;
  transition: 0.3s ease;
}

.back-theme:hover {
  background: rgba(55, 186, 186, 0.12);
}

#selectedTitle {
  white-space: pre-line;
}
.archive-note {
  margin-top: 80px;
  padding: 32px 24px;
  border-top: 1px solid rgba(55, 186, 186, 0.35);
  border-bottom: 1px solid rgba(55, 186, 186, 0.35);
  text-align: center;
}

.archive-note p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 2;
  letter-spacing: 0.08em;
}
