/* Pawtopia 紹介サイト
   配色はゲーム本体・法務ページと共通（#fce4ee / #e8588a / #be185d / #f3d3e0）。
   サイトとゲームで印象が途切れないようにしている。 */

:root {
  --pink-bg: #fdf0f5;
  --pink-soft: #fce4ee;
  --pink-line: #f3d3e0;
  --pink: #e8588a;
  --pink-deep: #be185d;
  --pink-text: #9d174d;
  --ink: #3a1f2b;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 4px 20px rgba(232, 88, 138, 0.12);
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  background: var(--pink-bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); }

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 240, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pink-line);
}
.site-header .inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-header .brand { display: flex; align-items: center; gap: 8px; font-weight: bold; color: var(--pink-deep); text-decoration: none; }
.site-header .brand img { width: 32px; height: 32px; }
.header-cta {
  background: var(--pink); color: #fff; text-decoration: none;
  padding: 8px 20px; border-radius: 999px; font-weight: bold; font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(232, 88, 138, 0.3);
  white-space: nowrap;
}
.header-cta:hover { background: #f06292; }

/* ── ヒーロー ──
   PC（横長画面）は画像の上に文字を重ね、
   スマホ（縦画面）は画像とテキストを上下に分ける。
   横長画像を縦画面に押し込むと帯状に潰れ、その狭い領域に
   ロゴ・コピー・ボタンを詰めると猫と重なって読めなくなるため。
   既定はスマホ側（モバイルファースト）。 */
.hero { position: relative; overflow: hidden; background: var(--pink-soft); }
.hero-img {
  width: 100%;
  /* 縦画面では中央〜右の余白側を切り出さず、猫が写る左下を残す */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 30% 60%;
}
.hero-overlay {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 22px 20px 30px;
}
/* 画像の上に重ねたロゴは、画像に埋もれないよう白フチを付ける。
   重ねない（スマホ）ときは不要なので影を弱くしている */
.hero-logo { width: min(300px, 72%); }
.hero-copy {
  margin-top: 8px; font-size: clamp(1rem, 4.2vw, 1.35rem); font-weight: bold;
  color: var(--pink-deep); line-height: 1.5;
}
.hero-cta {
  display: inline-block; margin-top: 18px;
  background: var(--pink); color: #fff; text-decoration: none;
  padding: 15px 44px; border-radius: 999px;
  font-size: clamp(1.05rem, 4.4vw, 1.3rem); font-weight: bold;
  box-shadow: 0 6px 20px rgba(232, 88, 138, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.hero-cta:hover { background: #f06292; transform: translateY(-2px); }
.hero-note { margin-top: 10px; font-size: 0.78rem; color: var(--pink-text); }

/* 画像の上に文字を重ねるのは、余白が十分に取れる 1024px 以上のみ。
   768px 程度では画像が横に詰まり、文字が猫やラグに重なって読めなくなる
   （タブレット縦持ちは上下分割のままにする）。 */
@media (min-width: 1024px) {
  .hero-img { aspect-ratio: 1672 / 941; object-position: center; }
  /* 猫は画像の左下にいるので、文字は右半分に寄せる。
     中央に置くと主役の猫を隠してしまう */
  .hero-overlay {
    position: absolute; inset: 0;
    justify-content: center; align-items: flex-end;
    padding: 20px clamp(20px, 5vw, 64px);
  }
  /* 文字は「白い半透明の板」の上に置く。
     文字影だけで背景に抗おうとすると、ラグのような濃い絵柄の上で
     必ず破綻する。板ごと敷けば、絵のどこに重なっても読める */
  .hero-plate {
    width: min(420px, 46%);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    border-radius: 28px;
    padding: 24px 32px 28px;
    box-shadow: 0 8px 30px rgba(232, 88, 138, 0.18);
  }
  .hero-logo { width: min(300px, 100%); }
  .hero-copy { color: var(--pink-deep); }
}

/* ── 共通セクション ── */
section { padding: 60px 20px; }
.wrap { max-width: var(--max); margin: 0 auto; }
h2.sec-title {
  text-align: center; color: var(--pink-deep);
  font-size: clamp(1.35rem, 4vw, 1.9rem); margin-bottom: 8px;
}
.sec-lead { text-align: center; color: var(--pink-text); margin-bottom: 36px; font-size: 0.95rem; }

/* ── 特徴（3カラム） ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature {
  background: var(--white); border: 1px solid var(--pink-line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.feature img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.feature .body { padding: 18px 20px 22px; }
.feature h3 { color: var(--pink-deep); font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: 0.92rem; }

/* ── 遊び方（3ステップ） ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { text-align: center; }
.step img {
  width: 100%; max-width: 220px; margin: 0 auto; aspect-ratio: 1/1;
  border-radius: var(--radius); border: 1px solid var(--pink-line); background: var(--white);
}
.step .num {
  display: inline-block; margin-top: 14px;
  background: var(--pink); color: #fff; font-weight: bold; font-size: 0.78rem;
  padding: 2px 14px; border-radius: 999px;
}
.step h3 { color: var(--pink-deep); font-size: 1.05rem; margin: 6px 0 4px; }
.step p { font-size: 0.9rem; }

/* ── お知らせ ── */
.news-section { background: var(--pink-soft); }
.news-list { max-width: 720px; margin: 0 auto; }
.news-item {
  display: flex; gap: 16px; align-items: baseline;
  background: var(--white); border: 1px solid var(--pink-line);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 10px;
}
.news-item time { color: var(--pink-text); font-size: 0.82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-item .title { font-size: 0.94rem; }
.news-more { text-align: center; margin-top: 22px; }
.news-more a { color: var(--pink-deep); font-weight: bold; text-decoration: none; }
.news-more a:hover { text-decoration: underline; }
.news-empty { text-align: center; color: var(--pink-text); }
.news-empty img { width: 180px; margin: 0 auto 12px; }

/* ── 最終CTA ── */
.cta-section { text-align: center; background: var(--pink-soft); }
.cta-section .hero-cta { margin-top: 6px; }
.cta-section p { color: var(--pink-text); font-size: 0.9rem; }

/* ── フッター ── */
.site-footer { background: var(--white); border-top: 1px solid var(--pink-line); padding: 40px 20px 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.footer-logo { width: 120px; margin: 0 auto 16px; opacity: 0.9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 18px; }
.footer-links a { color: var(--pink-deep); text-decoration: none; font-size: 0.86rem; }
.footer-links a:hover { text-decoration: underline; }
.copyright { color: var(--pink-text); font-size: 0.78rem; }

/* ── 汎用ページ（お知らせ一覧） ── */
.page-header { background: var(--pink-soft); padding: 40px 20px 32px; text-align: center; border-bottom: 1px solid var(--pink-line); }
.page-header h1 { color: var(--pink-deep); font-size: clamp(1.4rem, 4vw, 2rem); }
.page-body { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }
.news-entry { background: var(--white); border: 1px solid var(--pink-line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.news-entry time { color: var(--pink-text); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.news-entry h2 { color: var(--pink-deep); font-size: 1.1rem; margin: 4px 0 10px; }
.news-entry p { font-size: 0.94rem; }
.back-link { display: inline-block; margin-top: 10px; color: var(--pink-deep); text-decoration: none; font-size: 0.9rem; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  section { padding: 44px 16px; }
  .site-header .inner { padding: 8px 14px; }
}

/* ヒーローが極端に横長のときに縦を抑える（PCワイド画面対策） */
@media (min-aspect-ratio: 2/1) {
  .hero-img { max-height: 78vh; }
}
