/* 深淵のクロニクルの頁。ゲームの画面と同じ「夜のギルドホールとランプの灯」の1つの見た目にそろえる（明るい見た目は作らない） */
:root {
  color-scheme: dark;
  --ink: #090d1a;
  --ink-2: #0f1528;
  --panel: #141c33;
  --panel-2: #1a2440;
  --line: #2a3658;
  --text: #ede6d6;
  --muted: #a7adc2;
  --lamp: #f4a73a;
  --lamp-soft: #ffd28a;
  --lamp-ink: #1c1206;
  --abyss: #8f73ff;
  --parch: #efe2c4;
  --parch-ink: #2b2113;
  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--ink) radial-gradient(1200px 600px at 50% -200px, #2a1d0c 0%, transparent 70%) no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
:lang(ja) body, body:lang(ja) { line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lamp-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.35; text-wrap: balance; margin: 0; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--lamp); color: var(--lamp-ink); padding: 6px 12px; border-radius: 8px; }

/* 上の帯 */
.g-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9, 13, 26, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 167, 58, .18);
  padding-top: env(safe-area-inset-top, 0px);
}
.g-header-in { max-width: 1080px; margin-inline: auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.g-brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 800; white-space: nowrap; }
.lamp { width: 18px; height: 24px; color: var(--lamp); flex: none; }
.g-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.g-nav::-webkit-scrollbar { display: none; }
.g-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.g-nav a:hover { color: var(--text); background: var(--panel); }
.g-header .lang { flex: none; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9rem; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.g-header .lang:hover { border-color: var(--lamp); }

/* ボタン */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.btn-lamp { background: linear-gradient(180deg, #ffbf5a, var(--lamp)); color: var(--lamp-ink); box-shadow: 0 6px 24px rgba(244, 167, 58, .35); }
.btn-lamp:hover { color: var(--lamp-ink); filter: brightness(1.06); }
.btn-ghost { border: 1px solid rgba(237, 230, 214, .45); color: var(--text); background: rgba(9, 13, 26, .35); }
.btn-ghost:hover { border-color: var(--text); color: #fff; }

/* 最初の大きな絵 */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 13, 26, .15) 0%, rgba(9, 13, 26, .35) 45%, var(--ink) 100%),
    linear-gradient(90deg, rgba(9, 13, 26, .75) 0%, rgba(9, 13, 26, .2) 60%, rgba(9, 13, 26, 0) 100%);
}
.hero-in { max-width: 1080px; margin-inline: auto; padding: clamp(72px, 14vw, 150px) 20px 56px; }
.eyebrow { display: inline-block; font-size: .85rem; letter-spacing: .12em; color: var(--lamp-soft); border: 1px solid rgba(255, 210, 138, .45); padding: 2px 12px; border-radius: 999px; background: rgba(9, 13, 26, .45); }
.hero h1 { margin: 14px 0 10px; text-shadow: 0 2px 18px rgba(0, 0, 0, .7), 0 0 38px rgba(244, 167, 58, .25); }
.h1-main { display: block; font-size: clamp(2rem, 9vw, 4.8rem); letter-spacing: .06em; white-space: nowrap; }
.h1-sub { display: block; font-size: clamp(1.05rem, 3.4vw, 1.6rem); letter-spacing: .12em; color: var(--lamp-soft); font-weight: 600; }
.hero .catch { font-family: var(--serif); font-size: clamp(1.15rem, 3.6vw, 1.55rem); font-weight: 600; margin: 18px 0 6px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hero .lead { max-width: 34em; color: #d9d3c5; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); margin-bottom: 26px; }

/* 見出し */
.label { font-size: .78rem; letter-spacing: .28em; color: var(--lamp); margin: 0 0 4px; font-weight: 700; }
.sec { padding-block: clamp(48px, 7vw, 80px); }
.sec h2, .story h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); margin-bottom: 18px; }
.sec-lead { max-width: 40em; color: var(--muted); }

/* はじまり（本と蝋燭の絵に、羊皮紙の色の文） */
.story { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(64px, 10vw, 110px); }
.story-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.9); }
.story::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(9, 13, 26, .72) 22%, rgba(9, 13, 26, .72) 78%, var(--ink) 100%); }
.story-text { max-width: 36em; font-family: var(--serif); font-size: clamp(1.02rem, 2.6vw, 1.2rem); line-height: 2.1; color: var(--parch); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.story-text p:nth-child(3) { margin-top: 1.4em; }

/* 遊び方 */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.how li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 18px; }
.how h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.how p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lamp); color: var(--lamp-ink); font-weight: 700; font-family: var(--serif); }

/* 特長 */
.feat { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: 28px; }
.feat + .feat { border-top: 1px solid rgba(42, 54, 88, .6); }
.feat.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.feat.flip .phone { order: 2; }
.phone { margin: 0; justify-self: center; width: 100%; max-width: 300px; padding: 8px; border-radius: 30px; background: #04060d; border: 1px solid #2d3a60; box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(244, 167, 58, .08); }
.phone img { border-radius: 22px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.feat-n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: rgba(244, 167, 58, .5); margin: 0 0 8px; font-weight: 800; }
.feat h3 { font-size: clamp(1.3rem, 3.6vw, 1.7rem); margin-bottom: 12px; }
.feat-text { max-width: 34em; }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--lamp); padding-left: 12px; }
.more { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.more li { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.more h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--lamp-soft); }
.more p { margin: 0; color: var(--muted); font-size: .95rem; }

/* 冒険者 */
.adv { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 12%, var(--ink-2) 88%, var(--ink) 100%); }
.chars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.char { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.char img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; }
.char-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.char-body p { margin: 0; font-size: .92rem; color: var(--muted); }
.char-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.char-head b { font-family: var(--serif); font-size: 1.25rem; color: var(--text); }
.job { font-size: .78rem; border: 1px solid rgba(255, 210, 138, .5); color: var(--lamp-soft); border-radius: 999px; padding: 0 10px; }
.char .quote { margin-top: auto; padding-top: 8px; font-family: var(--serif); color: var(--parch); font-size: .95rem; }

/* 画面 */
.gallery { list-style: none; margin: 12px 0 0; padding: 4px 4px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--line) transparent; }
.gallery li { scroll-snap-align: start; }
.gallery img { border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.gallery:focus-visible { outline: 2px solid var(--lamp); outline-offset: 4px; border-radius: 8px; }

/* 情報とお知らせ */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 6vw, 64px); align-items: start; }
.info { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
:lang(en) .info div { grid-template-columns: 7.5em 1fr; }
.info dt { color: var(--lamp-soft); font-size: .9rem; }
.info dd { margin: 0; font-size: .95rem; }
.notes { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .85rem; }
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.news .tag { font-size: .75rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; color: var(--lamp-soft); }
.news-text { font-size: .95rem; }
.comm-label { margin-top: 40px; }
.comms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comm { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--text); }
.comm:hover { border-color: var(--lamp); color: var(--text); }
.comm b { font-size: 1rem; }
.comm span { font-size: .85rem; color: var(--muted); }

/* 最後の呼びかけ */
.final { padding-block: 72px 88px; text-align: center; background: radial-gradient(600px 260px at 50% 60%, rgba(244, 167, 58, .14), transparent 70%); }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.final img { border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.final-title { font-family: var(--serif); font-weight: 800; font-size: clamp(1.25rem, 4vw, 1.7rem); margin: 8px 0 0; }
.final .catch { color: var(--muted); }
.final .actions { justify-content: center; }

/* 下 */
.g-footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); background: #070a14; }
.g-footer-in { display: flex; flex-direction: column; gap: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: .92rem; }
.foot-links a { color: var(--text); }

@media (max-width: 720px) {
  .g-brand span { display: none; }
  .feat, .feat.flip { grid-template-columns: 1fr; }
  .feat.flip .phone { order: 0; }
  .phone { max-width: 250px; }
  .feat-text { max-width: none; }
  .chars { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .char-body { padding: 12px; }
  .char-body > p:not(.char-head):not(.quote) { font-size: .85rem; }
  .news li { grid-template-columns: auto 1fr; }
  .news-text { grid-column: 1 / -1; }
  .info div { grid-template-columns: 5.5em 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 公開の前の「近日公開」と、X・YouTube・Discord への案内 */
.soon-badge { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; padding: 8px 16px; border-radius: 12px; border: 1px dashed rgba(255, 210, 138, .6); background: rgba(9, 13, 26, .55); color: var(--lamp-soft); font-weight: 700; }
.soon-badge span { font-weight: 400; font-size: .88rem; color: #d9d3c5; }
.follow-row { margin-top: 12px; }
.follow-row .btn { min-height: 40px; padding: 6px 16px; font-size: .9rem; }
.btn.is-soon { cursor: default; border-style: dashed; }
.final .soon-badge { justify-content: center; }
@media (max-width: 720px) {
  .hero .actions .btn { flex: 1 1 100%; }
  .hero .actions .btn-ghost { flex: 1 1 calc(50% - 6px); padding-inline: 10px; white-space: nowrap; }
  .final .actions .btn-ghost { padding-inline: 14px; white-space: nowrap; }
}

/* ───── 2026-10-04 スマホの幅の確かめ（CHECK_1004.md）で直した所 ───── */
/* 上の帯が押す所の大きさの分だけ高くなったので、頁の中の飛び先が帯に隠れないように */
html { scroll-padding-top: 76px; }
/* 幅 320 で「ゲームの情報」と「お知らせ・コミュニティ」の欄が右の余白にはみ出さないように（300px より狭いときは画面の幅に合わせる） */
.two-col { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
/* 幅 320 で英語の題（Abyss Chronicle）が右の余白に食い込まないように（360 より広い幅では今までどおり） */
.h1-main { font-size: clamp(1.75rem, 9vw, 4.8rem); }
/* お知らせの札（お知らせ／News）が狭い画面で横いっぱいにのびないように */
.news .tag { justify-self: start; }
/* 押す所を高さ 44px 以上に（上の帯の行き先・言語の切り替え・下の帯のリンク。下の帯は見た目の間隔を変えずに押せる所だけ広げる） */
.g-nav a, .g-header .lang { display: inline-flex; align-items: center; min-height: 44px; }
.g-footer-in { gap: 0; }
.foot-links { gap: 0 20px; }
.foot-links a { display: inline-block; padding: 10px 8px; margin-inline: -8px; }
/* 日本語の見出しを言葉の途中で折り返さない（「大陸をめぐるメ／インストーリー」「週／替わり」など。対応していない端末では今までどおり） */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .final-title { word-break: auto-phrase; }
/* いちばん下の題は、題と副題の間でだけ折り返す（「～／放置ギルド物語～」「Guild／Tales」のように切らない） */
.final-title .nw { display: inline-block; }
/* 公開の日の形の2段目（X でフォロー・予告映像を見る）も、小さく見せたまま押す所は高さ 44px に（前は 40px） */
.follow-row .btn { min-height: 44px; }
@media (max-width: 720px) {
  /* 上の帯の行き先が横に送れることが分かるように、右の端をうすくする（送り切ると、うすい所は空きになる） */
  .g-nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .g-nav::after { content: ''; flex: 0 0 20px; }
}
