@font-face {
  font-family: 'JK-Maru-Gothic-M';
  src: url("fonts/JK-Maru-Gothic-M.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #20212a;
  --muted: #666b7a;
  --line: #dadde7;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --accent: #d84545;
  --accent-2: #1f8b80;
  --accent-3: #f3b44b;
  --deep: #22263a;
  --shadow: 0 18px 48px rgba(28, 31, 48, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#top,
#story,
#updates,
#creator {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  font-family: 'Zen Maru Gothic', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(32, 33, 42, .1);
  background: rgba(251, 250, 247, .9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  /* カフェ背景は明るいため、文字可読性用に暖色系の暗めオーバーレイを重ねる */
  background:
    linear-gradient(115deg, rgba(50, 35, 25, .62), rgba(50, 35, 25, .22) 58%, rgba(50, 35, 25, .08)),
    url("images/cafe.webp") center / cover;
  color: #fff;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100svh - 64px);
  margin: 0 auto;
  padding: 12px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 34px;
}

.hero-copy {
  padding-bottom: 26px;
  align-self: start;   /* 左カラムだけ上寄せ(または center) */
  padding-top:50px;
}

.label-row,
.tags {
  padding-top:20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
  font-weight: 700;
}

/* ゲームのタイトル画面と同じスタイル（フォント・クリーム色・茶色縁取り・グロー） */
h1 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-family: 'JK-Maru-Gothic-M', sans-serif;
  font-size: clamp(44px, 8vw, 72px);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: #f8f4ef;
  -webkit-text-stroke: 6px #92725c;
  paint-order: stroke;
  filter: drop-shadow(0 0 3px rgba(90, 57, 38, 0.6))
          drop-shadow(0 0 0 rgba(90, 57, 38, 0.4));
}

/* 見出し・ボタン類はタイトルと同じ丸ゴシックで統一、本文は Zen Maru Gothic で可読性を確保 */
h2,
h3,
.button,
.brand-text {
  font-family: 'JK-Maru-Gothic-M', sans-serif;
}

.lead {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 2.4vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(216, 69, 69, .32);
}

.button.secondary {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.hero-panel {
  align-self: stretch;
  min-height: 520px;
  display: grid;
  align-content: end;
  gap: 12px;
}

.screenshot-stack {
  display: grid;
  gap: 12px;
}

.shot {
  overflow: hidden;
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .38);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
}

main {
  background: var(--paper);
}

.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: start;
}

.story {
  padding: 30px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story p {
  margin: 0 0 1em;
}

.story p:last-child {
  margin-bottom: 0;
}

/* カード内の注意書き（※行）。行頭の ※ が目印なのでリストマーカーは出さない。
   .section-note は max-width:420px のため流用不可（意図しない位置で折り返す） */
.notes {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.notes li + li {
  margin-top: 0.4em;
}

.author-card .brand {
  margin-bottom: 18px;
}

.author-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.author-list li + li {
  margin-top: 4px;
}

.author-social {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.social-link:hover {
  color: var(--accent);
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tag-green {
  background: #eef5f1;
  color: #1f5f58;
  border-color: #b7d3cd;
}

.tag-yellow {
  background: #fff5df;
  color: #76510b;
  border-color: #ead195;
}

.tag-red {
  background: #f7e8e8;
  color: #8e2d2d;
  border-color: #e6bbbb;
}

.tag-blue {
  background: #eceef8;
  color: #303d7b;
  border-color: #c8cdea;
}

.spec-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.spec-card h3 {
  margin: 0;
  padding: 16px 18px;
  background: var(--deep);
  color: #fff;
  font-size: 16px;
}

.spec-list {
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-weight: 700;
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
}

.characters {
  margin-top: 28px;
}

.characters-head {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: 0;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.character-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.character-photo {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--deep);
}

.character-name {
  margin: 14px 18px 4px;
  font-weight: 800;
  font-size: 16px;
}

.character-desc {
  margin: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

/* 使用素材（キャラクター紹介と同じ間隔・見出し様式で統一） */
.assets {
  margin-top: 42px;
}

.assets-head {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: 0;
}

.assets-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 14px;
}

.assets-list li + li {
  margin-top: 6px;
}

/* 外部リンク: アクセントカラー + 右側に外部リンクアイコン */
.ext-link {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.ext-link:hover {
  color: var(--accent);
}

/* アイコンは currentColor 追従（マスク方式）。ホバー時のリンク色に同期する */
.ext-link::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.28em;
  vertical-align: -0.06em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6'/%3E%3Cpolyline%20points='15%203%2021%203%2021%209'/%3E%3Cline%20x1='10'%20y1='14'%20x2='21'%20y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6'/%3E%3Cpolyline%20points='15%203%2021%203%2021%209'/%3E%3Cline%20x1='10'%20y1='14'%20x2='21'%20y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.updates {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.updates li {
  display: grid;
  grid-template-columns: 120px auto 1fr;   /* 日付 / カテゴリバッジ / 本文 */
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.updates time {
  color: var(--muted);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* お知らせカテゴリのバッジ。.label をベースに、一覧内で幅を揃える */
.news-cat {
  justify-self: start;
  min-width: 104px;
  justify-content: center;
  font-size: 12px;
}

.cat-info {          /* お知らせ */
  background: #eceef8;
  color: #303d7b;
  border-color: #c8cdea;
}

.cat-update {        /* アップデート */
  background: #eef5f1;
  color: #1f5f58;
  border-color: #b7d3cd;
}

.updates p {
  margin: 0;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
}

.final-cta h2 {
  margin-bottom: 8px;
}

.final-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.site-footer {
  padding: 28px 0;
  background: #171923;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .hero {
      background-position: 43% center;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .hero-panel {
    min-height: 0;
  }

  .screenshot-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .shot {
    min-height: 0;
  }

  /* SP では縦長の SP 用スクリーンショットに差し替えるため、縦長比率で表示する */
  .shot img {
    aspect-ratio: 390 / 844;
    object-position: center center;
  }

  .info-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
      background-position: 43% center;
  }
  .header-inner {
    min-height: 58px;
  }

  .brand-text {
    font-size: 14px;
  }

  .hero-inner,
  .inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero-copy {
    padding-bottom: 0;
    padding-top:0;  
  }

  h1 {
    font-size: clamp(42px, 16vw, 64px);
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .section-note {
    margin-top: 12px;
  }

  .story,
  .final-cta {
    padding: 22px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* スマホでは 1行目に「日付＋カテゴリ」、2行目に本文を置く */
  .updates li {
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: center;
  }

  .updates li p {
    grid-column: 1 / -1;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }
}
