/* Apps catalog v2: real product icons, platform labels and release status. */
.apps-page {
  --catalog-card: #ffffff;
  --catalog-line: rgba(11, 14, 23, .12);
  --catalog-muted: #687080;
  --catalog-blue: #315899;
}

@media (min-width: 760px) {
  .apps-page .site-header {
    width: min(calc(100% - 40px), 1120px);
  }
}

.apps-hero { padding-bottom: 42px; }

.apps-hero-inner { max-width: 920px; }

.apps-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.apps-lead {
  max-width: 660px;
  margin-top: 20px;
  font-size: clamp(.98rem, 1.8vw, 1.12rem);
}

.apps-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  color: var(--apps-muted);
  font-size: .78rem;
  letter-spacing: .04em;
}

.apps-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.apps-summary strong {
  color: var(--apps-text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -.03em;
}

.apps-directory { padding-top: 10px; }

.apps-directory > .wrap,
.apps-contact > .wrap { max-width: 1120px; }

.directory-head { margin-bottom: 18px; }

.directory-head h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }

.directory-count {
  display: block;
  margin: 0;
  color: var(--apps-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  letter-spacing: .08em;
}

.directory-count span {
  margin-right: 3px;
  color: var(--apps-text);
  font-size: 1.05rem;
}

.app-filters {
  scrollbar-width: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.app-filters::-webkit-scrollbar { display: none; }

.app-filters button {
  flex: 0 0 auto;
  font-weight: 500;
  white-space: nowrap;
}

.app-grid { gap: 14px; }

.app-item[hidden] { display: none !important; }

.app-card,
.app-card[data-accent="rose"],
.app-card[data-accent="blue"],
.app-card[data-accent="greige"] {
  grid-template-columns: 92px minmax(0, 1fr) 28px;
  min-height: 126px;
  padding: 0;
  overflow: hidden;
  color: var(--apps-text);
  background: var(--catalog-card);
  border: 1px solid var(--catalog-line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(11, 14, 23, .03);
}

.app-card-static { grid-template-columns: 92px minmax(0, 1fr); }

a.app-card:hover {
  transform: translateY(-2px);
  background: var(--catalog-card);
  border-color: rgba(49, 88, 153, .38);
  box-shadow: 0 12px 30px rgba(11, 14, 23, .08);
}

.app-card-static:hover {
  transform: none;
  background: var(--catalog-card);
  border-color: var(--catalog-line);
  box-shadow: 0 1px 2px rgba(11, 14, 23, .03);
}

.app-card-visual {
  align-self: center;
  width: 68px;
  height: 68px;
  margin: 12px;
  overflow: hidden;
  background: #f0f2f6;
  border: 1px solid rgba(11, 14, 23, .08);
  border-radius: 17px;
  box-shadow: 0 4px 14px rgba(11, 14, 23, .09);
}

.app-card-visual::after { display: none; }

.app-card-visual > .app-icon-image {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-visual > .app-icon-contain {
  object-fit: contain;
  padding: 7px;
  background: #f4f0ff;
}

.app-card-body {
  justify-content: center;
  min-width: 0;
  padding: 17px 8px 17px 2px;
}

.app-meta {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .02em;
}

.app-platform,
.app-status,
.app-version {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.app-platform {
  color: #26324a;
  background: #eef1f7;
}

.app-version {
  padding-inline: 2px;
  color: var(--catalog-muted);
}

.app-status { font-weight: 700; }

.status-live { color: #176b47; background: #e7f6ee; }
.status-review { color: #825300; background: #fff1c7; }
.status-prep { color: #8d4c27; background: #ffeadc; }
.status-testflight { color: #245e9c; background: #e5f1ff; }
.status-dev { color: #596171; background: #eceef2; }

.app-card-body > strong {
  overflow: hidden;
  color: var(--apps-text);
  font-size: 1.17rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-description {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--catalog-muted);
  font-size: .82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-external {
  align-self: center;
  width: 19px;
  height: 19px;
  margin-right: 13px;
  color: var(--catalog-blue);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.apps-contact { padding-top: 12px; }

@media (min-width: 760px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .apps-hero { padding-top: 102px; }
  /* 見出しの最長フレーズ「つくっているもの、」は9文字。
     12vwだと375px幅で45pxになり、本文欄335pxに収まらず語中で折れていた。
     9文字 x 文字幅(字送り-.055em込み) が収まる上限に合わせる */
  .apps-hero h1 { font-size: clamp(1.9rem, 9.2vw, 3.4rem); }
  .apps-lead br { display: none; }
  .directory-head { align-items: end; }
  .app-filters { margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .apps-hero { padding-bottom: 32px; }
  .apps-summary { margin-top: 20px; }
  .apps-directory { padding-bottom: 58px; }
  .app-card,
  .app-card[data-accent="rose"],
  .app-card[data-accent="blue"],
  .app-card[data-accent="greige"] {
    grid-template-columns: 78px minmax(0, 1fr) 24px;
    min-height: 116px;
    border-radius: 19px;
  }
  .app-card-static { grid-template-columns: 78px minmax(0, 1fr); }
  .app-card-visual {
    width: 58px;
    height: 58px;
    margin: 10px;
    border-radius: 15px;
  }
  .app-card-body { padding: 14px 6px 14px 0; }
  .app-meta { gap: 4px; margin-bottom: 6px; font-size: .59rem; }
  .app-platform,
  .app-status,
  .app-version { min-height: 20px; padding: 4px 6px; }
  .app-version { padding-inline: 1px; }
  .app-card-body > strong { font-size: 1.08rem; }
  .app-description { font-size: .78rem; line-height: 1.48; }
  .app-external { width: 18px; height: 18px; margin-right: 10px; }
}
