/* ===========================================================
   王家のまじない — Oink-style simple LP
   余白・タイポ主体・質素
   =========================================================== */

:root {
  --bg: #f2eee6;
  --bg-2: #e8e2d4;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #d8d2c4;
  --line-strong: #1a1a1a;
  --accent: #9c3c34;
  --gold: #b88838;
  --teal: #1e3a3f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  font-feature-settings: "palt" 1;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 36px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(242, 238, 230, .92);
  backdrop-filter: blur(10px);
  transition: padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding: 12px 36px; border-bottom-color: var(--line); }

.nav__brand {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .18em;
}

.nav__links {
  display: flex; gap: 32px;
  list-style: none; align-items: center;
}
.nav__links a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  padding: 120px 40px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__visual {
  aspect-ratio: 3/2;
  background: #1e3a3f;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(30,58,63,.3);
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__copy {
  padding: 20px 0;
}

.hero__ja {
  font-family: "Shippori Mincho B1", serif;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .3em;
  margin-bottom: 16px;
}

.hero__title {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(40px, 4.8vw, 62px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .04em;
}

.hero__en {
  margin-top: 14px;
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.hero__tagline {
  margin-top: 32px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 440px;
}

.hero__meta {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero__meta-item {
  display: flex; flex-direction: column; gap: 2px;
}
.hero__meta-lbl {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-3);
  font-weight: 600;
}
.hero__meta-val {
  font-family: "Shippori Mincho B1", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.hero__meta-val small {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  margin-left: 3px;
}

.hero__cta {
  margin-top: 32px;
  display: inline-block;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-family: "Shippori Mincho B1", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .25em;
  transition: background .2s;
}
.hero__cta:hover { background: var(--accent); }

/* ---------- Playshot ---------- */

.playshot {
  padding: 0;
  background: var(--ink);
  color: var(--bg);
}
.playshot__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 560px;
}
.playshot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.playshot__caption {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.playshot__caption .sec-label { color: rgba(255,255,255,.5); }
.playshot__caption .sec-title { color: var(--bg); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.7; }

@media (max-width: 1024px) {
  .playshot__inner { grid-template-columns: 1fr; }
  .playshot img { aspect-ratio: 4/3; }
  .playshot__caption { padding: 50px 28px; }
}

/* ---------- Section base ---------- */

.section {
  padding: 120px 40px;
}
.container { max-width: 1180px; margin: 0 auto; }

.sec-label {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.sec-title {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}

.sec-lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 560px;
}

.sec-head { margin-bottom: 70px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-lead { margin: 20px auto 0; }

/* ---------- 01 Concept ---------- */

.concept {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.concept__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.concept__item h3 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: .05em;
}
.concept__item .en {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-3);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.concept__item p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
}
.concept__item .num {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px;
  width: 40px;
}

/* ---------- 02 How to Play ---------- */

.howto__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step {
  position: relative;
}
.step__num {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  display: block;
}
.step__ja {
  font-family: "Shippori Mincho B1", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.step__en {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.step__desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* ---------- 03 Contents ---------- */

.contents {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contents__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.content {
  grid-column: span 4;
}
.content--wide { grid-column: span 6; }
.content--narrow { grid-column: span 3; }

.content__fig {
  aspect-ratio: 4/3;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}
.content__fig img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}

.content--runes .content__fig {
  gap: 4px;
  padding: 18px;
}
.content--runes .content__fig img {
  height: 100%; width: auto;
  max-width: none;
}
.content--runes .content__fig img:nth-child(1) { transform: rotate(-8deg); }
.content--runes .content__fig img:nth-child(2) { transform: rotate(-2deg); margin-left: -30px; }
.content--runes .content__fig img:nth-child(3) { transform: rotate(4deg); margin-left: -30px; }
.content--runes .content__fig img:nth-child(4) { transform: rotate(10deg); margin-left: -30px; }

.content--chars .content__fig {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
}
.content--chars .content__fig img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.content__count {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-3);
  font-weight: 600;
}
.content__name {
  font-family: "Shippori Mincho B1", serif;
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}
.content__en {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ---------- 04 Characters ---------- */

.chars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.char {
  background: transparent;
}

.char__img-wrap {
  aspect-ratio: 3/4;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.char__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity .3s;
}

.char__suit {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 18px;
  color: var(--char-c, var(--ink));
  font-weight: 700;
}

.char__awake {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  background: rgba(26,26,26,.88);
  color: var(--bg);
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  cursor: pointer;
  transition: background .2s;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
}
.char__img-wrap:hover .char__awake { opacity: 1; transform: translateY(0); }
.char__awake:hover { background: var(--accent); }
.char__awake.is-on { background: var(--accent); opacity: 1; transform: none; }

.char__name-en {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
}
.char__name-ja {
  font-family: "Shippori Mincho B1", serif;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .2em;
  margin-top: 2px;
}
.char__role {
  margin-top: 10px;
  font-size: 12px;
  color: var(--char-c, var(--ink-2));
  letter-spacing: .1em;
  font-weight: 500;
}

.char__skill {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.char__skill-lbl,
.char__win-lbl {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--char-c, var(--ink-3));
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.char__skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}
.char__skill-list li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 6px;
}
.char__skill-list li:last-child { margin-bottom: 0; }
.char__skill-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .75em;
  width: 6px; height: 1px;
  background: var(--char-c, var(--ink-3));
}

.char__win {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.char__win p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- 05 Spells ---------- */

.spells {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spells__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 0;
}

.spell {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.spell:last-child,
.spell:nth-last-child(2):not(:nth-child(odd)) { border-bottom: 0; }

.spell__n {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: .1em;
}
.spell__name {
  font-family: "Shippori Mincho B1", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
}
.spell__en {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .25em;
  margin-top: 2px;
  text-transform: uppercase;
}
.spell__hand {
  display: flex; gap: 2px;
  align-self: center;
}
.spell__cond {
  font-family: "Shippori Mincho B1", serif;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.55;
  letter-spacing: .02em;
}
.spell--royal .spell__cond {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
}
.spell__hand img {
  width: 22px; height: auto;
  border: 1px solid var(--line);
}

.spell--royal {
  grid-column: 1 / -1;
  padding: 28px 0;
  margin-top: 8px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.spell--royal .spell__n {
  color: var(--accent);
  font-size: 20px;
}
.spell--royal .spell__name {
  font-size: 22px;
}
.spell--royal .spell__en {
  color: var(--accent);
}
.spell--royal .spell__hand img {
  width: 40px;
}

/* ---------- 06 Abilities ---------- */

.abilities__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.abi {
  border-left: 2px solid var(--abi-c, var(--ink));
  padding-left: 28px;
}

.abi__head {
  margin-bottom: 16px;
}
.abi__ja {
  font-family: "Shippori Mincho B1", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .05em;
}
.abi__en {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--abi-c, var(--ink-3));
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.abi__desc {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.abi__lv {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  font-size: 12px;
  color: var(--ink-3);
}
.abi__lv-row {
  display: flex; flex-direction: column; gap: 2px;
}
.abi__lv-row b {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--abi-c, var(--ink));
  letter-spacing: .15em;
  font-weight: 700;
}
.abi__lv-row span {
  font-family: "Shippori Mincho B1", serif;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 07 Info ---------- */

.info {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.info__title {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
}
.info__en {
  margin-top: 12px;
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.info__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 760px;
  margin: 56px auto 48px;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.info__spec {
  padding: 28px 12px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.info__spec:last-child { border-right: 0; }
.info__spec-lbl {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-3);
  font-weight: 600;
}
.info__spec-val {
  margin-top: 8px;
  font-family: "Shippori Mincho B1", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bg);
  line-height: 1.1;
}
.info__spec-val small {
  display: block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
  font-weight: 500;
}

.info__cta {
  display: inline-block;
  padding: 18px 42px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-family: "Shippori Mincho B1", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  transition: background .2s, color .2s;
}
.info__cta:hover { background: var(--accent); color: var(--bg); }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,.4);
  padding: 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer__en {
  font-family: "Cinzel", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: .35em;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.footer__copy {
  font-size: 10px;
  letter-spacing: .2em;
  font-family: "Cinzel", serif;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero { padding: 100px 28px 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .section { padding: 80px 28px; }
  .concept__grid { grid-template-columns: 1fr; gap: 32px; }
  .howto__list { grid-template-columns: 1fr 1fr; gap: 32px; }
  .chars__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .spells__list { grid-template-columns: 1fr; column-gap: 0; }
  .abilities__grid { grid-template-columns: 1fr; gap: 32px; }
  .content, .content--wide, .content--narrow { grid-column: span 6; }
}

@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav__links li:not(:last-child) { display: none; }
  .hero { padding: 90px 20px 50px; }
  .section { padding: 70px 20px; }
  .howto__list { grid-template-columns: 1fr; }
  .chars__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .content, .content--wide, .content--narrow { grid-column: span 12; }
  .info__specs { grid-template-columns: 1fr 1fr; }
  .info__spec:nth-child(2) { border-right: 0; }
  .info__spec:nth-child(1), .info__spec:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .hero__meta { flex-wrap: wrap; gap: 24px; }
  .char__awake { opacity: 1; transform: none; }
}
