/* gekkoh.jp 公開サイト。
 *
 * アプリ（ランク人狼）の意匠に合わせた「シネマティック高級」路線。
 * 配色は frontend/lib/src/core/design/app_palette_dark.dart から取っている。
 * 値を変えるときは向こうと揃えること。
 *
 * ライト/ダークの切り替えは持たない。アプリ自体がライトモードでも
 * 「明るい紺＋金」の暗い地なので、サイトも一枚の意匠として夜に振り切る。
 *
 * Webフォントは読まない。プライバシーポリシーを載せるサイトで
 * 第三者へのリクエストを増やしたくないため、端末のフォントで組む
 * （Hiragino Sans / Noto Sans JP はアプリの NotoSansJP とほぼ同じ字面になる）。
 */

:root {
  color-scheme: dark;

  /* 背景（深色の柱） */
  --bg-deepest: #05070f;
  --bg-raise: #141a2e;
  --bg-raise-hi: #1c2742;

  /* アクセント（シャンパンゴールド） */
  --gold: #d9b978;
  --gold-light: #ebd7a6;
  --gold-deep: #a8854e;

  /* テキスト */
  --text-primary: #f4efe3;
  --text-secondary: #aeb4c7;
  --text-muted: #7e8499;

  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-gold: rgba(217, 185, 120, 0.22);

  --measure: 760px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  background: var(--bg-deepest);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 夜空の微光。上方に淡い金、地は深い紺へ落とす。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(217, 185, 120, 0.09), transparent 62%),
    radial-gradient(900px 700px at 88% 8%, rgba(28, 39, 66, 0.75), transparent 66%),
    linear-gradient(180deg, #070a15 0%, var(--bg-deepest) 46%);
}

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-gold);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ---- 出現（パッと出さない） ---- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.site-header,
main > *,
.site-footer {
  animation: rise 0.7s var(--ease) both;
}

main > *:nth-child(1) { animation-delay: 0.06s; }
main > *:nth-child(2) { animation-delay: 0.11s; }
main > *:nth-child(3) { animation-delay: 0.16s; }
main > *:nth-child(4) { animation-delay: 0.20s; }
main > *:nth-child(n + 5) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- ヘッダ ---- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 26px 24px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  border-bottom: 0;
}

.brand:hover { color: var(--gold-light); }

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline-gold);
  display: block;
}

.brand span {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-left: auto;
  font-size: 0.84rem;
}

.site-header nav a {
  color: var(--text-muted);
  border-bottom: 0;
  letter-spacing: 0.04em;
}

.site-header nav a:hover { color: var(--gold); }

/* ---- 本文 ---- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

h1 {
  margin: 52px 0 0;
  font-size: clamp(1.7rem, 5.4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 3.4em 0 1em;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

/* 見出しの右へ伸びる細い金の罫 */
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline-gold), transparent);
}

h3 {
  margin: 0 0 0.5em;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

p { margin: 0.9em 0; }

ul {
  margin: 0.9em 0;
  padding-left: 1.3em;
}

li { margin: 0.45em 0; }

li::marker { color: var(--gold-deep); }

.lead {
  margin: 1.1em 0 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mail {
  display: inline-block;
  margin: 0.2em 0;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

/* ---- サービス ---- */

.service {
  position: relative;
  margin: 1.2em 0;
  padding: 26px 28px;
  background: linear-gradient(160deg, rgba(28, 39, 66, 0.55), rgba(20, 26, 46, 0.35));
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}

/* 左端に立てる金の細帯 */
.service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep) 60%, transparent);
}

.service p { margin: 0; }

.service .platform {
  margin-top: 1em;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ---- 事業者情報 ---- */

.facts {
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.facts > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 2px 20px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--hairline);
}

.facts dt {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-top: 0.25em;
}

.facts dd {
  margin: 0;
  color: var(--text-primary);
}

@media (max-width: 520px) {
  .facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---- フッタ ---- */

.site-footer {
  max-width: var(--measure);
  margin: 88px auto 0;
  padding: 26px 24px 56px;
  border-top: 1px solid var(--hairline);
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ---- 法務文書（プライバシーポリシー） ---- */

.doc h1 { margin-bottom: 0; }

.doc h2 {
  display: block;
  margin: 2.8em 0 0.6em;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: none;
}

.doc h2::after { content: none; }

.doc .revised {
  margin-top: 4em;
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-muted);
}
