:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #202020;
  background: #f7f7f5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #135a73; }
button, input { font: inherit; }

.site-header, .site-footer {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.site-footer { border-top: 1px solid #ddd; border-bottom: 0; margin-top: 48px; }
.site-header a { text-decoration: none; color: inherit; font-weight: 700; }

main { width: min(760px, 100%); margin: 0 auto; padding: 32px 20px; }
.hero { margin-bottom: 28px; }
.hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.25; margin: 0 0 12px; }
.muted { color: #666; }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #bbb;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: #202020; color: #fff; border-color: #202020; }

.search-row { display: flex; gap: 8px; }
.search-row input {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border: 1px solid #888; border-radius: 8px;
}
.search-row button {
  min-height: 50px; min-width: 88px; border: 0; border-radius: 8px;
  background: #202020; color: #fff; cursor: pointer;
}
.search-box { position: relative; }
.suggestions {
  position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 0; list-style: none; background: #fff;
  border: 1px solid #bbb; border-radius: 8px; overflow-x: hidden; overflow-y: auto;
  max-height: min(320px, 60vh);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.suggestions:empty { display: none; }
.suggestions button { width: 100%; text-align: left; padding: 12px; border: 0; border-bottom: 1px solid #eee; background: #fff; }
.suggestions button:hover, .suggestions button:focus, .suggestions button.is-active { background: #f0f0ec; }

.notice { margin: 12px 0; font-size: .92rem; color: #555; }
.card-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.card-link { display: block; padding: 16px; background: #fff; border: 1px solid #ddd; border-radius: 10px; text-decoration: none; color: inherit; }
.card-link:hover, .card-link:focus { border-color: #666; }

.work-heading { margin-bottom: 24px; }
.cover { display: block; width: min(260px, 70vw); height: auto; margin: 20px 0 28px; border: 1px solid #ddd; }
.stage { margin-top: 32px; }
.result-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 14px 16px; margin: 10px 0; }
.result-main { font-weight: 700; }
.result-sub { color: #555; }
.work-about { margin-top: 32px; padding-top: 20px; border-top: 1px solid #ddd; }
.work-about h2 { margin: 0 0 8px; font-size: 1.1rem; }
.work-about p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.actions button, .actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border-radius: 8px; border: 1px solid #888; background: #fff; color: inherit; text-decoration: none; }
.share-x-icon { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }
.error { padding: 14px; background: #fff1f1; border: 1px solid #d9a1a1; border-radius: 8px; }

@media (max-width: 520px) {
  .search-row { flex-direction: column; }
  .search-row button { width: 100%; }
}

.hero h1 {
  text-align: center;
}
.result-year {
  margin-right: 1em;
}

@media (max-width: 480px) {
  .result-year {
    display: block;
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
}
/* 実績区分の区切り線 */
.stage + .stage {
  border-top: 2px solid #111;
  margin-top: 2rem;
  padding-top: 2rem;
}
/* 評価区分のメダル */
.stage-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stage-medal {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex: 0 0 auto;
}
/* 0件画面の収録対象リンク */
.covered-awards-link {
  margin: 0;
  padding-top: 2.5rem;
}
/* 評価区分の補足説明 */
.stage-description {
  margin: 0.2rem 0 1rem 3.15rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}
/* ==================================================
   トップページ完成画像
   ================================================== */

body[data-page="home"] main {
  width: min(1180px, 100%);
}

.home-visual {
  position: relative;
  z-index: 1;
  overflow: visible;
  min-height: clamp(580px, 62vw, 730px);
  border: 1px solid #ded5c6;
  border-radius: 18px;
  background: #f4ead8;
  box-shadow: 0 10px 30px rgba(32, 32, 32, 0.08);
}

.home-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 252, 245, 0.9) 0%,
    rgba(255, 252, 245, 0.62) 43%,
    rgba(255, 252, 245, 0) 67%
  );
  border-radius: inherit;
  pointer-events: none;
}

.home-visual-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.home-visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 52%;
  min-height: inherit;
  padding: 48px 42px 54px;
}

body[data-page="home"] .home-visual .hero {
  margin-bottom: 22px;
}

body[data-page="home"] .home-visual .hero h1 {
  text-align: left;
}

body[data-page="home"] .home-visual .hero p {
  max-width: 520px;
}

body[data-page="home"] .home-visual-content > section:nth-of-type(2) {
  width: 100%;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}

.home-stats div {
  padding-left: 14px;
  border-left: 3px solid #202020;
}

.home-stats dt {
  margin: 0 0 2px;
  color: #555;
  font-size: 0.88rem;
}

.home-stats dd {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

body[data-page="home"] .home-visual + .notice {
  margin-top: 20px;
}

.home-awards {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid #d8d8d2;
}

.home-awards h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.home-awards p {
  margin: 0 0 16px;
  color: #555;
}

.home-awards ul {
  column-count: 2;
  column-gap: 34px;
  margin: 0;
  padding-left: 1.2rem;
}

.home-awards li {
  break-inside: avoid;
  margin: 0 0 8px;
}

@media (max-width: 760px) {
  body[data-page="home"] main {
    width: min(760px, 100%);
  }

  .home-visual {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-visual::before {
    display: none;
  }

  .home-visual-content {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .home-visual-image {
    position: static;
    order: 2;
    width: 100%;
    height: auto;
    margin-top: 28px;
    border: 1px solid #ded5c6;
    border-radius: 14px;
  }

  body[data-page="home"] .home-visual .hero h1 {
    text-align: center;
  }

  .home-stats {
    gap: 12px;
  }

  .home-stats dd {
    font-size: 1.25rem;
  }

  .home-awards ul {
    column-count: 1;
  }
}

@media (max-width: 380px) {
  .home-stats {
    grid-template-columns: 1fr;
  }
}
/* トップ説明文の端末別改行 */
.mobile-description-break {
  display: none;
}

.desktop-description-break {
  display: inline;
}

@media (max-width: 760px) {
  .mobile-description-break,
  .desktop-description-break {
    display: none;
  }
}
/* aboutページの運営者紹介 */
.operator-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.operator-info h2 {
  margin-top: 0;
}
