/* minoshiro.jp 共通スタイル
   特定の作品の世界観に寄せない、ニュートラルなダークテーマ。
   配色はこの :root だけで完結させる(作品固有の色をページに直接書かない)。 */
:root {
  --bg: #14161b;
  --bg-soft: #1d2027;
  --ink: #e9eaee;
  --muted: #a2a7b3;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #7ab8e8;
  --accent-soft: rgba(122, 184, 232, 0.13);
  --line-strong: rgba(255, 255, 255, 0.35);
  --heart: #ff9d9d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* hidden属性を display:flex 等の指定より必ず優先させる */
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", "Yu Gothic Medium", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: 0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
/* 本文の文中リンクは色だけに頼らず常時下線(WCAG 1.4.1) */
.feature-body p a, .feature-note a, .article p a, .article li a, .news a {
  text-decoration: underline; text-underline-offset: 0.3em;
}
img { max-width: 100%; display: block; }

.wrap { width: min(880px, calc(100% - 48px)); margin: 0 auto; }

/* ---- ヘッダ ---- */
.site-header { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.wordmark {
  font-size: 20px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--accent); }
.wordmark .dot { color: var(--accent); }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { margin: 0 0.6em; opacity: 0.6; }
.breadcrumb .here { color: var(--ink); }

/* ---- トップのヒーロー ---- */
.hero { padding-top: 30px; }
.hero-mark { font-size: 32px; font-weight: 600; letter-spacing: 0.1em; }
.hero-mark .dot { color: var(--accent); }

/* ---- 本文 ---- */
main { flex: 1; padding: 52px 0 80px; }
.page-title { font-size: 25px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 10px; }
.page-lede { color: var(--muted); font-size: 14.5px; margin-bottom: 44px; }
.section-label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; color: var(--muted);
  margin: 54px 0 18px; display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- カード ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden; display: block; color: var(--ink);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card-body { padding: 18px 20px 20px; }
.card-title { font-size: 16.5px; font-weight: 600; letter-spacing: 0.04em; }
.card-desc { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card-thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); background-size: cover; background-position: center; }
.card.pending {
  border-style: dashed; background: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; font-size: 14px; letter-spacing: 0.14em;
}

/* ---- 作品ヒーロー(一覧・トップの大カード) ---- */
.feature {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--bg-soft);
}
.feature-cover { position: relative; aspect-ratio: 21 / 9; background: var(--bg-soft) center/cover; }
.feature-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 22, 27, 0.92), rgba(20, 22, 27, 0.08) 55%);
}
.feature-cover .title-on-cover {
  position: absolute; left: 28px; bottom: 20px; z-index: 1;
  font-size: clamp(20px, 3.6vw, 29px); font-weight: 600; letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.title-on-cover small {
  display: block; font-size: 12.5px; font-weight: normal;
  color: rgba(255, 255, 255, 0.78); letter-spacing: 0.16em; margin-top: 4px;
}
.feature-body { padding: 26px 28px 30px; }
.feature-body p { font-size: 14.5px; color: var(--ink); }
.feature-body p + p { margin-top: 0.6em; }
.feature-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---- タグ ---- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.03);
}

/* ---- ボタン ---- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.btn {
  display: inline-block; padding: 12px 40px; border-radius: 10px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 15px; letter-spacing: 0.2em; text-indent: 0.2em;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--accent-soft); text-decoration: none; }
.btn.sub { border-color: var(--line); color: var(--muted); letter-spacing: 0.1em; text-indent: 0.1em; }
.btn.sub:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

/* ---- 定義リスト(作品情報) ---- */
.spec { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; font-size: 13.5px; }
.spec div { display: flex; gap: 1.2em; padding: 3px 0; }
.spec dt { color: var(--muted); flex: 0 0 7em; }
.spec dd { flex: 1; }

/* ---- プレイ回数・いいね ---- */
.game-stats {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 16px; font-size: 13px; color: var(--muted);
}
.game-stats .stat { display: inline-flex; align-items: center; gap: 7px; }
.like-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 16px; color: var(--muted);
  font-family: inherit; font-size: 13px; letter-spacing: 0.04em;
  cursor: pointer; transition: all .2s;
}
.like-btn .heart { fill: none; stroke: currentColor; stroke-width: 2; display: block; }
.like-btn:hover { color: var(--heart); border-color: rgba(255, 157, 157, 0.5); }
.like-btn.liked { color: var(--heart); border-color: rgba(255, 157, 157, 0.6); }
.like-btn.liked .heart { fill: currentColor; stroke: none; }

/* ---- 記事ページ(about/privacy/contact) ---- */
.article { max-width: 720px; }
.article h2 {
  font-size: 16.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink); margin: 42px 0 12px;
  padding-left: 14px; border-left: 3px solid var(--accent);
}
.article p, .article li { font-size: 14px; }
.article p + p { margin-top: 0.6em; }
.article ul { padding-left: 1.5em; margin-top: 0.4em; }
.article .date { color: var(--muted); font-size: 12.5px; margin-top: 52px; }

/* ---- お問い合わせフォーム ---- */
.contact-form { margin-top: 10px; }
.contact-form label { display: block; margin-top: 22px; }
.contact-form label span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.contact-form label em {
  font-style: normal; font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 4px;
  padding: 1px 7px; margin-left: 0.8em; vertical-align: 1px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; padding: 11px 14px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-soft);
  /* 入力欄の範囲が見えるよう枠線は強め(WCAG 1.4.11 非テキスト3:1) */
  border: 1px solid var(--line-strong); border-radius: 10px;
  letter-spacing: 0.02em;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; line-height: 1.8; }
.contact-form .btn { cursor: pointer; background: none; font-family: inherit; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-banner {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 22px; margin-bottom: 26px; font-size: 14px;
}
.form-banner.ok { border-color: var(--accent); color: var(--accent); }
.form-banner.ng { border-color: rgba(255, 140, 140, 0.5); color: #f0b0b0; }

/* ---- 更新履歴 ---- */
.news { list-style: none; font-size: 13.5px; }
.news li { display: flex; gap: 1.6em; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.news time { color: var(--muted); flex: 0 0 6.5em; }
@media (max-width: 600px) {
  .news li { flex-direction: column; gap: 0; }
}

/* ---- フッタナビ ---- */
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }

/* ---- フッタ ---- */
.site-footer {
  border-top: 1px solid var(--line); padding: 26px 0 34px;
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- 404 ---- */
.notfound { text-align: center; padding: 80px 0 40px; }
.notfound .mark { font-size: 46px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); opacity: 0.9; }
.notfound h1 { font-size: 19px; font-weight: 600; letter-spacing: 0.14em; margin: 24px 0 10px; }
.notfound p { color: var(--muted); font-size: 14px; }
.notfound .btn { margin-top: 36px; }

@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  main { padding: 40px 0 64px; }
  .feature-cover { aspect-ratio: 16 / 9; }
  .feature-cover .title-on-cover { left: 20px; bottom: 14px; }
  .feature-body { padding: 20px 20px 24px; }
  .spec div { flex-direction: column; gap: 0; }
  .spec dt { flex: none; }
}
