/* ==========================================================
   第1回 延岡AI画像コンテスト 受賞作品発表ページ
   共通スタイル（../assets/css/style.css）に追加するぶんだけ
   ========================================================== */

/* ====== ヒーロー ====== */
.aw-hero {
  margin-top: var(--header-h);
  background: var(--grad-hero);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.aw-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 55%);
  pointer-events: none;
}
.aw-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.aw-hero .hero-badge { display: inline-block; }
.aw-hero-title {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 900;
  letter-spacing: .02em;
  margin: 12px 0 14px;
}
.aw-hero-title .accent { color: var(--c-yellow); }
.aw-hero-sub { font-size: 1rem; line-height: 1.9; margin-bottom: 20px; }
.aw-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.aw-hero-stats div {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 10px 20px;
  text-align: center;
  min-width: 96px;
}
.aw-hero-stats b { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.2; }
.aw-hero-stats span { font-size: .76rem; opacity: .9; }

/* ====== ごあいさつ ====== */
.aw-intro { max-width: 760px; }
.aw-intro p { font-size: 1rem; line-height: 2; color: var(--c-text); }
.aw-tip {
  background: #eaf4ff; border: 1px solid #c9e2ff; border-radius: var(--radius);
  padding: 12px 18px; font-size: .95rem !important; line-height: 1.8 !important;
}

/* ====== 審査のしかた ====== */
.section-process { background: var(--c-bg-alt); }
.aw-process { display: grid; gap: 18px; }
.aw-pr-card {
  position: relative;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px 20px 20px 20px;
}
.aw-pr-step {
  position: absolute; top: -14px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-hero); color: #fff; font-weight: 900; font-size: 1rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.aw-pr-card h3 { font-size: 1.08rem; font-weight: 800; margin: 6px 0 10px; color: var(--c-blue-dark); }
.aw-pr-card p { font-size: .94rem; line-height: 1.9; margin: 0 0 .7em; }
.aw-pr-card p:last-child { margin-bottom: 0; }
.aw-pr-list { margin: 0 0 .8em; }
.aw-pr-list li {
  position: relative; padding-left: 1.3em; margin-bottom: .5em;
  font-size: .94rem; line-height: 1.9;
}
.aw-pr-list li::before { content: "\25B6"; position: absolute; left: 0; top: .4em; font-size: .7em; color: var(--c-teal); }
.aw-pr-note {
  background: var(--c-bg); border-radius: 10px; padding: 12px 14px;
  font-size: .88rem !important; margin-bottom: 0 !important;
}

/* ====== セクション ====== */
.section-grand { background: var(--grad-soft); }
.section-corp { background: var(--c-bg-alt); }
.section-outro { background: var(--grad-soft); }

/* ====== 受賞カード ====== */
.aw-list { display: grid; gap: 28px; }
.aw-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
  width: 100%;
  max-width: 880px;
  margin: 0 auto;      /* 画像を大きく見せたいので1列。幅が広い画面では中央に置く */
}
.aw-card.aw-grand { border: 2px solid var(--c-yellow); box-shadow: 0 16px 40px rgba(255, 210, 63, .28); }

.aw-media {
  position: relative; cursor: zoom-in; background: #0f1626;
  display: flex; justify-content: center; align-items: center;
}
.aw-media img {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  max-height: 70vh;   /* 縦長の作品は高さいっぱい、横長は幅いっぱい。切り抜かず最大限大きく */
}
.aw-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-dark); color: #fff;
  font-size: .82rem; font-weight: 800; letter-spacing: .04em;
  padding: 7px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.aw-grand .aw-badge { background: var(--grad-coral); }
.aw-zoom {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(26,34,56,.72); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; pointer-events: none;
}

/* 贈賞企業 */
.aw-company {
  margin-top: 18px; padding: 16px 18px;
  background: var(--grad-soft); border: 1px solid #d7e7f5; border-radius: var(--radius);
}
.aw-co-label {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  color: #fff; background: var(--c-blue); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.aw-co-inner { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.aw-co-logo {
  flex: none; background: #fff; border: 1px solid var(--c-line); border-radius: 10px;
  padding: 8px 12px; display: flex; align-items: center; justify-content: center;
  height: 64px; max-width: 100%;
}
.aw-co-logo img { max-height: 46px; max-width: 240px; width: auto; height: auto; display: block; }
/* 文字が白いロゴ用（企業サイトのイメージに合わせた地色を敷く） */
.aw-co-logo.on-tint, .aw-sp.on-tint {
  background: linear-gradient(100deg, #8ea3ae 0%, #b6c1c6 58%, #ccd3d5 100%);
  border-color: #9aa8b0;
}
.aw-co-text { flex: 1 1 220px; min-width: 0; }
.aw-co-name { font-size: 1.08rem; font-weight: 800; margin: 0 0 4px; }
.aw-co-desc { font-size: .9rem; line-height: 1.8; margin: 0; color: var(--c-text); }
.aw-co-link { margin: 8px 0 0; font-size: .88rem; font-weight: 700; }

.aw-body { padding: 24px 20px 28px; }
.aw-cat { font-size: .76rem; font-weight: 700; color: var(--c-teal); letter-spacing: .08em; margin: 0 0 4px; }
.aw-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.aw-person {
  font-size: 1rem; font-weight: 700; color: var(--c-text);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--c-line);
}
.aw-school { font-size: .84rem; font-weight: 500; color: var(--c-muted); }

/* 作品そのもの（プロンプトなど） */
.aw-work {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.aw-field + .aw-field { margin-top: 12px; }
.aw-field-label {
  display: block; font-size: .72rem; font-weight: 700;
  color: var(--c-teal); letter-spacing: .06em; margin-bottom: 3px;
}
.aw-field-text {
  font-size: .9rem; line-height: 1.8; margin: 0;
  white-space: pre-wrap; word-break: break-word;
}

/* 選出理由・メッセージ */
.aw-block { margin-bottom: 18px; }
.aw-block h4 {
  font-size: .92rem; font-weight: 800; color: var(--c-blue-dark);
  margin: 0 0 8px; padding-left: 12px; border-left: 4px solid var(--c-blue);
}
.aw-block p { font-size: .94rem; line-height: 1.95; margin: 0 0 .7em; }
.aw-block p:last-child { margin-bottom: 0; }
.aw-message {
  background: #fffaf0;
  border: 1px solid #ffe6b3;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 0;
}
.aw-message h4 { color: #b06b00; border-left-color: var(--c-yellow); }

/* ====== 展示のご案内 ====== */
.section-exhibition { background: var(--grad-soft); }
.aw-exhibit {
  background: #fff; border: 2px solid var(--c-teal); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 24px 22px; max-width: 720px; margin: 0 auto;
}
.aw-ex-title {
  font-size: 1.25rem; font-weight: 900; color: var(--c-blue-dark);
  text-align: center; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 2px dashed var(--c-line);
}
.aw-ex-list { margin: 0; display: grid; gap: 14px; }
.aw-ex-list > div { display: grid; grid-template-columns: 1fr; gap: 2px; }
.aw-ex-list dt {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: #fff;
  background: var(--c-teal); border-radius: 999px; padding: 2px 12px; justify-self: start;
}
.aw-ex-list dd { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.7; }
.aw-ex-sub { font-size: .85rem; font-weight: 400; color: var(--c-muted); }
.aw-ex-link { margin: 18px 0 0; text-align: center; font-size: .9rem; font-weight: 700; }

@media (min-width: 560px) {
  .aw-ex-list > div { grid-template-columns: 96px 1fr; align-items: start; gap: 14px; }
  .aw-ex-list dt { margin-top: 3px; }
}

/* ====== 協賛企業一覧 ====== */
.section-sponsors { background: var(--c-bg); }
.aw-sponsors {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; align-items: center;
}
.aw-sp {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 92px; padding: 12px 20px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
a.aw-sp:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: 1; }
.aw-sp img { max-height: 60px; max-width: 260px; width: auto; height: auto; display: block; }
.aw-sp-name { font-weight: 800; color: var(--c-text); }

/* ====== おわりに（明るい背景用の上書き） ====== */
/* 共通CSSの .cta-sub a は濃い背景向けの白文字なので、ここで読める色に戻す */
.section-outro .cta-box {
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.section-outro .cta-eyebrow { color: var(--c-muted); opacity: 1; }
.section-outro .cta-title { color: var(--c-text); }
.section-outro .cta-note { color: var(--c-text); opacity: 1; font-size: .95rem; }
.section-outro .cta-sub a,
.section-outro .cta-note a { color: var(--c-blue); opacity: 1; font-weight: 700; }

/* ====== 画像の拡大 ====== */
.aw-lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 14, 26, .93);
  display: grid; place-items: center; padding: 24px;
  cursor: zoom-out;
}
.aw-lb img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.aw-lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 1.3rem; cursor: pointer;
}

/* ====== 画面が広いとき ====== */
@media (min-width: 720px) {
  .aw-hero { padding: 72px 0 60px; }
  .aw-body { padding: 30px 34px 36px; }
  .aw-media img { max-height: 78vh; }
  .aw-title { font-size: 1.6rem; }
}
@media (min-width: 1024px) {
  .aw-card { max-width: 960px; }
  .aw-badge { font-size: .9rem; padding: 8px 20px; }
}
