@charset "utf-8";

/* ===========================================================================
   sh3.css — SILENT HILL 3 体験版ページ
   裏世界：錆びた鉄板の壁と金網フェンス。本文は不透明なパネルに載せて
   読みやすさを優先する（全面に被せる暗幕やノイズは使わない）。
   =========================================================================== */

:root {
  --steel: #1b1411;
  --rust: #b0501c;
  --rust-hi: #e0772f;
  --blood: #b3160d;
  --blood-hi: #e2372a;
  --bone: #f2eadc;
  --text: #e6dccb;
  --text-dim: #b3a58f;
  --panel: #120c0a;
  --panel-edge: #4a2414;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif-ja: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--serif-ja);
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  background-color: var(--steel);
  background-image:
    /* 全体を少し沈める */
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(8, 4, 2, 0.45), transparent 100%),
    linear-gradient(rgba(10, 5, 3, 0.58), rgba(10, 5, 3, 0.7)),
    /* リベット（鉄板の四隅） */
    radial-gradient(circle at 14px 14px, #6b4a38 0 2px, #2a1a12 3px, transparent 4.5px),
    radial-gradient(circle at 306px 14px, #6b4a38 0 2px, #2a1a12 3px, transparent 4.5px),
    /* 鉄板の継ぎ目 */
    linear-gradient(rgba(0, 0, 0, 0.75) 0 3px, rgba(255, 190, 140, 0.06) 3px 4px, transparent 4px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0 3px, rgba(255, 190, 140, 0.06) 3px 4px, transparent 4px),
    /* 垂れた錆の筋 */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.09 0.006' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.05  0 0 0 0 0.02  0 0 0 -5 2.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E"),
    /* 錆のまだら */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='r' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='5' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.16  0 0 0 0 0.06  0 0 0 -2.2 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E"),
    /* 細かい孔食 */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.02  0 0 0 0 0.01  0 0 0 -3 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #2c1a12, #1d120d);
  background-size:
    auto, auto,
    320px 240px, 320px 240px,
    320px 240px, 320px 240px,
    320px 320px, 320px 320px, 200px 200px,
    auto;
  background-attachment: fixed;
}

/* 手前の金網フェンス（左右だけ見せ、中央は透かす） */
.fence {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M0 18L18 0L36 18L18 36Z' fill='none' stroke='%23000' stroke-width='3.2' opacity='0.85'/%3E%3Cpath d='M0 18L18 0L36 18L18 36Z' fill='none' stroke='%239a7a62' stroke-width='1' opacity='0.55' transform='translate(-0.6 -0.8)'/%3E%3C/svg%3E");
  background-size: 36px 36px;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, 0.6) 8%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.6) 92%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, 0.6) 8%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.6) 92%, #000 100%);
}

a { color: var(--bone); }

a:focus-visible { outline: 2px solid var(--rust-hi); outline-offset: 4px; }

::selection { background: var(--blood); color: #fff; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ------------------------------------------------------------ top bar */

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 32px);
  font-family: var(--serif-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.topbar a { text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--blood-hi); }

/* ------------------------------------------------------------ hero (title screen) */

.hero {
  position: relative;
  z-index: 1;
  margin-top: -58px;
  padding: 90px 0 56px;
  overflow: hidden;
  border-bottom: 3px solid #000;
  box-shadow: 0 1px 0 rgba(224, 119, 47, 0.25);
}

/* タイトル画像をぼかして画面いっぱいに広げる */
.hero-bg {
  position: absolute;
  inset: -40px;
  background: url("./img/title.jpg") center 40% / cover no-repeat;
  filter: blur(28px) saturate(1.2) brightness(0.55);
  transform: scale(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.55));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(200px, 1fr);
  align-items: center;
  gap: 24px 48px;
}

.hero h1 { margin: 0; line-height: 0; }

.hero .title-img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: flicker 9s infinite;
}

@keyframes flicker {
  0%, 93%, 100% { opacity: 1; }
  94% { opacity: 0.6; }
  95% { opacity: 1; }
  96% { opacity: 0.5; }
  97% { opacity: 1; }
}

.hero-side .kicker {
  margin: 0 0 6px;
  font-family: var(--serif-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--rust-hi);
}

.hero-side .page-title {
  margin: 0 0 22px;
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--bone);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ゲームのタイトルメニュー風 */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(242, 234, 220, 0.2);
}

.menu li { border-bottom: 1px solid rgba(242, 234, 220, 0.2); }

.menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px;
  font-family: var(--serif-en);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bone);
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  transition: color 0.15s, padding 0.2s;
}

.menu a .ja {
  font-family: var(--serif-ja);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--blood-hi);
  padding-left: 14px;
}

.menu a:hover .ja { color: var(--text); }

/* ------------------------------------------------------------ headings */

.chapter {
  margin: clamp(56px, 9vh, 88px) 0 24px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.chapter .en {
  font-family: var(--serif-en);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--bone);
  text-shadow: 2px 2px 0 #000, 0 0 18px rgba(179, 22, 13, 0.55);
}

.chapter .ja {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.chapter::after {
  content: "";
  flex: 1;
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, var(--blood), rgba(179, 22, 13, 0));
}

/* ------------------------------------------------------------ panel */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.55), 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* パネル四隅のボルト */
.panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    radial-gradient(circle, #7a5a44 0 2px, #1c120c 3px, transparent 4px) 0 0 / 10px 10px no-repeat,
    radial-gradient(circle, #7a5a44 0 2px, #1c120c 3px, transparent 4px) 100% 0 / 10px 10px no-repeat,
    radial-gradient(circle, #7a5a44 0 2px, #1c120c 3px, transparent 4px) 0 100% / 10px 10px no-repeat,
    radial-gradient(circle, #7a5a44 0 2px, #1c120c 3px, transparent 4px) 100% 100% / 10px 10px no-repeat;
}

.review {
  padding: clamp(28px, 5vw, 52px) clamp(22px, 6vw, 64px);
  border-top: 3px solid var(--blood);
}

.review p {
  margin: 0 0 1.3em;
  text-indent: 1em;
}

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

.review .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(179, 22, 13, 0.45);
  font-family: var(--serif-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--rust-hi);
  text-indent: 0;
}

/* ------------------------------------------------------------ gallery */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  counter-reset: shot;
}

.gallery li {
  counter-increment: shot;
}

.gallery figure {
  margin: 0;
  height: 100%;
  padding: 10px 10px 4px;
}

.gallery .frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.8s ease, transform 0.8s ease;
}

/* ホバーで「裏世界」へ変わる */
.gallery .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='r' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03 0.09' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.05  0 0 0 0 0.02  0 0 0 -2.6 1.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.gallery li:hover img {
  filter: sepia(0.6) saturate(2) hue-rotate(-18deg) contrast(1.2) brightness(0.85);
  transform: scale(1.03);
}

.gallery li:hover .frame::after { opacity: 0.9; }

.gallery figcaption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 4px 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.gallery figcaption::before {
  content: counter(shot, decimal-leading-zero);
  flex: none;
  font-family: var(--serif-en);
  font-size: 20px;
  font-weight: 600;
  color: var(--rust-hi);
}

/* ------------------------------------------------------------ footer */

.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 10vh, 100px);
  padding: 28px 0 48px;
  background: rgba(8, 4, 3, 0.85);
  border-top: 3px solid #000;
  box-shadow: 0 -1px 0 rgba(224, 119, 47, 0.25);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer .menu {
  min-width: 240px;
}

.copyright {
  margin: 0;
  font-family: var(--serif-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text-dim);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .fence {
    -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 12%, transparent 88%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0, transparent 12%, transparent 88%, #000 100%);
  }
  .chapter { flex-wrap: wrap; gap: 4px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .title-img { animation: none; }
  .gallery img, .gallery .frame::after, .menu a { transition: none; }
}


/* ゲームの権利表記 */
.legal-note {
  max-width: 44em;
  margin: 0 auto 14px;
  font-family: var(--serif-ja);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-dim);
}
