/* ========================================================
   んぽたそ 非公式パロディ / スタイルシート
   元ネタの「白い誌面・青い見出し・シンプルな詳細ページ」
   という方向性を参考に独自実装しています。
   ======================================================== */
:root {
  --blue: #0079bf;
  --blue-dark: #005a95;
  --text: #303b45;
  --muted: #77838d;
  --border: #dfe6eb;
  --background: #f6f7f9;
  --pink: #f5683d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:#bbdced;;
  color: var(--text);
  font: 15px/1.85 "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
a { color: var(--blue-dark); }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffaf36; outline-offset: 3px; }

/* ページ上部：元サイトとは無関係であることを常に明示 */
.parody-notice {
  padding: 8px 16px;
  background: #fff6df;
  border-bottom: 1px solid #ecd9a3;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.site-header { background: white; border-bottom: 1px solid #e8ecef; }
.header-inner {
  max-width: 1040px;
  margin: auto;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo { width: 240px; height: auto;  display: block; margin: 0 auto;}
.site-logo { line-height: 1.1; text-decoration: none; color: #213e51; font-weight: 900; }
.logo-top { font-size: 17px; }
.logo-main { font-size: 30px; color: var(--blue); letter-spacing: -.06em; }
.site-logo small { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .17em; color: #8997a0; }
.header-nav { display: flex; gap: 28px; font-size: 13px; font-weight: 700; }
.header-nav a { color: #536675; text-decoration: none; }

/* コンテストタイトル：強い青を主体にしたフラットなバナー */
.contest-banner { color: white; background: #0879ba; border-bottom: 5px solid #f8c447; }
.banner-inner { max-width: 1040px; padding: 27px 20px 31px; margin: auto; text-align: center; }
.banner-lead { margin: 0 0 3px; font-size: 14px; font-weight: 700; letter-spacing: .18em; }
.contest-banner h1 { margin: 0; font-size: clamp(26px, 5vw, 42px); font-weight: 900; line-height: 1.35; letter-spacing: .06em; }
.contest-banner h1 span { color: #ffe56c; }
.banner-sub { margin: 5px 0 0; font-size: 12px; }

/* 中央の詳細記事 */
.page-container { width: min(100% - 36px, 940px); margin: 25px auto 70px; background: #bbdced; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 17px; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: #667b8b; }
.breadcrumb strong { font-weight: 500; }
.entry { width: 960px;
    margin: 0 auto;
    padding: 30px 30px 60px;
    border-radius: 20px;
    background: #fff; }
.entry-kicker { margin: 0 0 9px; color: #6b8597; font-size: 12px; font-weight: 700; }
.entry-header h2 { margin: 0; font-size: clamp(25px, 4.2vw, 33px); line-height: 1.5; color: #253b4c; }
.entry-header h2 span { margin-left: 7px; font-size: 15px; font-weight: 600; color: #566b7a; white-space: nowrap; }
.entry-votes { margin: 5px 0 0; color: #f5683d; font-weight: bold; }
.entry-votes strong { margin-right: 5px; font-size: 27px; line-height: 1.4; }
.entry-votes span { font-size: 13px; }
.entry-layout { max-width: 720px; margin: 0 auto; }
.entry-header { text-align: center; }
/* キャラクター画像 */
.character-figure { margin: 0 auto 35px; width: min(100%, 350px); }
.character-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
}
.character-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.image-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: #73899c; }
.placeholder-mark { width: 110px; height: 110px; border-radius: 50%; background: #e5f2f9; color: #1680b4; display: grid; place-items: center; font-size: 31px; font-weight: 900; }
.placeholder-title { font-size: 21px; font-weight: 800; color: #346b8d; }
.placeholder-sub { font-size: 11px; }
.character-figure figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; text-align: center; }

.entry-main .character-vote-wrap{
    text-align: center;
    margin: 0;
}

.entry-main .character-vote {
    display: inline-block;
    min-width: 250px;
    text-align: center;
    background-color: #ffe2db;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff3333;
    padding: 10px;
}

/* プロフィール・説明文 */
.info-section { margin: 0 0 28px; scroll-margin-top: 18px; }
.info-section h3 {     width: 100%;
    padding: 15px;
    font-size: 24px;
    font-weight: bold;
    border-left: 30px solid #fe8d6f;
    background: #ffe2db; }
.info-section p { margin: 0 0 13px; }
.info-section p:last-child { margin-bottom: 0; }
.profile-list { margin: 0; }
.profile-list div { display: grid; grid-template-columns: 125px 1fr; border-bottom: 1px solid #e9edf1; padding: 9px 2px; }
.profile-list dt { color: #566979; font-weight: 700; }
.profile-list dd { margin: 0; }
.related-links { padding: 0; margin: 0; list-style: none; }
.related-links li { padding: 4px 0; overflow-wrap: anywhere; }
.related-links b { display: inline-block; margin-right: 7px; }
.related-links b span { color: #fe8d6f; }

/* 投票演出 */
.vote-area { padding-top: 30px; margin-top: 32px; border-top: 1px solid var(--border); text-align: center; }
.vote-button {
  border: 0;
  border-radius: 5px;
  padding: 15px 70px;
  background: #f5683d;
  border-radius: 50px;
  color: white;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.vote-button:hover { background: #f5683d; }
.vote-button:active { transform: translateY(2px); }
.vote-disclaimer { text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.6;
    color: #ff3333;
    margin-top: 10px; }
.back-link { display: inline-block; margin-top: 5px; font-size: 13px; font-weight: 700; }
.site-footer { padding: 24px 16px 38px; background: #fff; border-top: 1px solid var(--border); color: #7c8b96; text-align: center; font-size: 11px; }
.site-footer p { margin: 5px 0; }
.footer-logo { color: #3d677f; font-size: 16px; font-weight: 900; }
.toast { position: fixed; z-index: 10; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 11px 22px; background: #2e4659; color: white; border-radius: 5px; box-shadow: 0 5px 20px #0002; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

@media (max-width: 640px) {
  .header-inner { padding: 13px 15px; }
  .header-nav { display: none; }
  .banner-inner { padding: 24px 14px; }
  .page-container { width: min(100% - 22px, 940px); margin-top: 16px; }
  .entry { padding: 25px 18px 35px; }
  .entry-header h2 span { display: block; margin: 0; font-size: 14px; white-space: normal; }
  .info-section h3 { font-size: 15px; }
  .profile-list div { grid-template-columns: 95px 1fr; }
  .vote-button { width: 100%; padding: 15px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* hidden 属性をコンポーネントの display 指定より優先 */
[hidden] { display: none !important; }

.page-container {
  width: min(940px, calc(100% - 36px));
  max-width: 100%;
  margin: 25px auto 70px;
}

.entry {
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 4vw, 30px);
}

@media (max-width: 480px) {
  .page-container {
    width: calc(100% - 20px);
  }

  .entry {
    padding: 20px 14px 30px;
  }

  .vote-button {
    width: 100%;
  }
}