main {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto 80px;
}

h1 {
  margin: 52px auto 16px;
  padding: 0 10px;
  text-align: center;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: #008fd3;
}

.item-intro {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
  color: #444;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.search-container {
  display: flex;
  justify-content: center;
  margin: 30px auto;
  width: 100%;
  max-width: 560px;
  padding: 0 20px;
  box-sizing: border-box;
}

.item-page-info {
  text-align: center;
  color: #555;
  font-weight: 700;
}

.item-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  padding: 24px 20px;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.item-card {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font: inherit;
}

.item-image-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 3px solid rgba(70, 212, 255, 0.62);
  box-shadow: 0 10px 24px rgba(0, 148, 216, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.item-card:hover .item-image-wrap {
  transform: translateY(-8px);
  border-color: #0094d8;
  box-shadow: 0 16px 30px rgba(0, 148, 216, 0.22);
}

.item-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-card-name {
  display: block;
  margin-top: 12px;
  color: #333;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.item-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.68);
  box-sizing: border-box;
}

.item-modal.is-open {
  display: flex;
}

.item-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(260px, 460px);
  gap: 28px;
  width: min(900px, 96vw);
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.item-modal-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid rgba(70, 212, 255, 0.58);
}

.item-modal-text h2 {
  margin: 0 0 18px;
  color: #008fd3;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.25;
}

.item-modal-text p {
  margin: 0;
  color: #444;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.85;
  white-space: pre-line;
}

.item-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #00aeff;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .item-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .item-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .item-modal-panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 520px) {
  .item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-card-name {
    font-size: 13px;
  }
}
/* item card compact box style */
.item-list {
  grid-template-columns: repeat(5, 132px) !important;
  justify-content: center !important;
  gap: 28px !important;
  max-width: 920px !important;
}

.item-card {
  padding: 12px 10px 14px !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(70, 212, 255, 0.34) !important;
  box-shadow: 0 10px 24px rgba(0, 148, 216, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.item-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 16px 30px rgba(0, 148, 216, 0.18);
}

.item-image-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.item-card:hover .item-image-wrap {
  transform: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.item-card-name {
  min-height: 2.9em;
  margin-top: 10px !important;
  font-size: 13px !important;
}

@media (max-width: 900px) {
  .item-list {
    grid-template-columns: repeat(4, 132px) !important;
  }
}

@media (max-width: 640px) {
  .item-list {
    grid-template-columns: repeat(2, 132px) !important;
    gap: 18px !important;
  }
}
/* item card square ratio fix */
.item-card {
  width: 132px !important;
  height: 132px !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.item-image-wrap {
  width: 82px !important;
  height: 82px !important;
  flex: 0 0 82px;
}

.item-card-name {
  min-height: 0 !important;
  margin-top: 0 !important;
  max-width: 100%;
  font-size: 12px !important;
  line-height: 1.2 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* item list image-only cards */
.item-card {
  padding: 12px !important;
  gap: 0 !important;
}

.item-card-name {
  display: none !important;
}

.item-image-wrap {
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto !important;
}
/* item empty message */
.item-list .empty-message {
  grid-column: 1 / -1;
  width: 100%;
  margin: 34px auto;
  text-align: center;
  color: #444;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}
/* item modal fade animation */
.item-modal {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.item-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.item-modal-panel {
  transform: translateY(18px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.item-modal.is-open .item-modal-panel {
  transform: translateY(0) scale(1);
}
/* item modal get places */
.item-modal-get {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(70, 212, 255, 0.14);
  border: 1px solid rgba(70, 212, 255, 0.42);
}

.item-modal-get strong {
  display: block;
  margin-bottom: 10px;
  color: #008fd3;
  font-size: 17px;
  font-weight: 900;
}

.item-modal-get span {
  display: inline-flex;
  align-items: center;
  margin: 4px 8px 4px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #333;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(0, 148, 216, 0.10);
}

@media (max-width: 760px) {
  .item-modal {
    padding: 18px;
  }

  .item-modal-close {
    top: 14px;
    right: 14px;
    width: 52px;
    height: 52px;
    font-size: 34px !important;
    line-height: 52px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
}

@media (max-width: 420px) {
  .item-modal-close {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    font-size: 32px !important;
    line-height: 48px !important;
  }
}

@media (max-width: 640px) {
  .item-list {
    grid-template-columns: repeat(4, 78px) !important;
    gap: 10px !important;
    max-width: calc(100vw - 24px) !important;
  }

  .item-card {
    width: 78px !important;
    height: 78px !important;
    padding: 6px !important;
    border-radius: 12px !important;
  }

  .item-image-wrap {
    border-radius: 10px !important;
  }
}

@media (max-width: 420px) {
  .item-list {
    grid-template-columns: repeat(4, 72px) !important;
    gap: 8px !important;
  }

  .item-card {
    width: 72px !important;
    height: 72px !important;
    padding: 5px !important;
  }
}
