@charset "UTF-8";
body {
  background-color: #F4F6F7;
  background-image:
    linear-gradient(rgba(244, 246, 247, 0.92), rgba(244, 246, 247, 0.92));
  font-family: hiragino-kaku-gothic-pron, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}
img {
  vertical-align: bottom;
}
a {
  color: inherit;
  transition: color 0.25s, opacity 0.25s, transform 0.25s;
}
ol, ul {
  list-style: none;
}
h1, h2, h3 {
  line-height: 1.2;
}
h2 {
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: 0.03em;
  margin-bottom: clamp(18px, 3.2vw, 34px);
}
h3 {
  font-weight: 650;
  font-size: clamp(1.06rem, 1.4vw, 1.25rem);
  letter-spacing: 0.02em;
}
p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  margin: 0;
  color: #2F3440;
}
.navigation-menu li a:hover::after, main {
  width: 100%;
}
body, h3 {
  color: #2F3440;
}
.card-link, .modal-content, body.modal-open {
  overflow: hidden;
}
.menu-button, .modal, .modal-close-btn {
  place-items: center;
}
.small, small {
  font-size: 0.88rem;
  opacity: 0.9;
}
.card-link::after, .card-link::before {
  position: absolute;
  transition: opacity 0.25s;
}
main {
  padding-top: clamp(22px, 4vw, 56px);
}
.contents-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: clamp(56px, 9vw, 112px);
}
.head-title {
  text-align: center;
  padding: clamp(12px, 2vw, 20px) 0;
  margin: 0 0 clamp(12px, 2.4vw, 24px);
}
.head-title h2 {
  font-family: tarzana-narrow, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: 0.06em;
  margin: 0;
}
.contents-intro {
  max-width: 760px;
  margin: 0 auto clamp(32px, 6.5vw, 64px);
  text-align: left;
}
.contents-intro p {
  text-align: justify;
  text-align-last: center;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  letter-spacing: 0.04em;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(30px, 5vw, 52px);
}
.filter-buttons button {
  padding: 10px 22px;
  font-size: 0.9rem;
  color: #527C79;
  border: 1px solid rgba(82, 124, 121, 0.45);
  background: #FFFFFF;
  transition: 0.25s;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.filter-buttons button::before {
  content: "# ";
  opacity: 0.5;
}
.filter-buttons button:hover {
  border-color: #37A3BD;
  color: #37A3BD;
  transform: translateY(-2px);
}
.filter-buttons button.active {
  background: #527C79;
  color: #FFFFFF;
  border-color: #527C79;
}
#active-tag-title {
  text-align: center;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  color: #2F3440;
  margin: 0 0 32px;
  font-weight: 550;
  letter-spacing: 0.08em;
}
.card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
}
.card {
  display: flex;
  flex-direction: column;
  background: 0 0;
  border: none;
}
.card-link {
  display: block;
  position: relative;
  margin-bottom: 8px;
  aspect-ratio: 1/1;
  background: #FFFFFF;
  padding: 8px;
  border-radius: 2px;
  border: 1px solid rgba(215, 224, 227, 0.95);
  box-shadow:
    0 2px 6px rgba(47, 52, 64, 0.06), 0 12px 24px rgba(47, 52, 64, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFFFF;
  transition: transform 0.4s, filter 0.25s;
}
.card-link:hover {
  transform: translateY(-4px);
  box-shadow:
    0 6px 12px rgba(47, 52, 64, 0.1), 0 20px 36px rgba(47, 52, 64, 0.14);
}
.card-link:hover img {
  transform: scale(1.05);
  filter: brightness(1.08) contrast(1.03);
}
.card-link::before {
  content: "";
  inset: 0;
  background: rgba(47, 52, 64, 0.64);
  opacity: 0;
  z-index: 1;
}
.card-link::after {
  content: "View";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  z-index: 2;
  border: 1px solid #FFFFFF;
  padding: 8px 16px;
}
.card-link:hover::after, .card-link:hover::before {
  opacity: 1;
}
.card-content {
  padding: 8px 4px;
  flex-grow: 1;
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.card-content h3 {
  font-size: clamp(1.05rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  min-height: 2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}
.card-content p {
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  color: #66737A;
}
.tags {
  display: flex;
  flex-wrap: wrap;
}
.tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin-right: 8px;
  font-size: 0.78rem;
  line-height: 1;
  color: #527C79;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(82, 124, 121, 0.38);
  border-radius: 999px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.18s;
}
.tags span:hover {
  background: #FFFFFF;
  border-color: rgba(55, 163, 189, 0.62);
  color: #37A3BD;
  transform: translateY(-1px);
}
.tags span.active, .tags span.is-active {
  background: rgba(82, 124, 121, 0.13);
  border-color: #527C79;
  color: #527C79;
  font-weight: 700;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: clamp(12px, 2.5vw, 28px);
  transition: opacity 0.25s, visibility 0.25s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(55, 163, 189, 0.22), rgba(47, 52, 64, 0) 55%), rgba(47, 52, 64, 0.84);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  z-index: 1;
  width: min(980px, 94vw);
  max-height: 92vh;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(215, 224, 227, 0.95);
  border-radius: 16px;
  box-shadow:
    0 18px 40px rgba(47, 52, 64, 0.22), 0 2px 10px rgba(47, 52, 64, 0.08);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.25s;
}
.modal.is-open .modal-content {
  transform: translateY(0) scale(1);
}
.modal-figure {
  margin: 0;
  background: linear-gradient(180deg, rgba(82, 124, 121, 0.08), rgba(255, 255, 255, 0));
  padding: clamp(10px, 2vw, 18px);
}
.modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(215, 224, 227, 0.95);
  box-shadow:
    0 6px 12px rgba(47, 52, 64, 0.1), 0 2px 6px rgba(47, 52, 64, 0.06);
}
.modal-caption {
  padding: clamp(14px, 2.2vw, 22px);
}
.modal-caption h3 {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #2F3440;
  line-height: 1.35;
  text-align: center;
}
.modal-caption p {
  margin: 0;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: #66737A;
  letter-spacing: 0.04em;
}
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(215, 224, 227, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0px 2px rgba(47, 52, 64, 0.12);
  color: transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.modal-close-btn::before, .modal-close-btn::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #2F3440;
}
.modal-close-btn::before {
  transform: rotate(45deg);
}
.modal-close-btn::after {
  transform: rotate(-45deg);
}
.modal-close-btn:hover {
  transform: scale(0.96);
}
.modal-link-btn {
  display: none !important;
}
@media (max-width:520px) {
  #active-tag-title {
    margin: 0 0 16px;
  }
  .modal-content {
    border-radius: 14px;
  }
  .modal-image {
    max-height: 62vh;
  }
  .card-wrapper {
    grid-template-columns: 1fr;
  }
  .card-link {
    padding: 7px;
  }
}