/* =========================================================
   人生実験 / JINSEI JIKKEN
   デザインの正：docs/design-pc.png（1920px幅 @2x）
   PC版の寸法はカンプからの実測値
   ========================================================= */

:root {
  --ink: #20201f;
  --text: #2b2b2b;
  --body: #555350;
  --muted: #6b6668;
  --label: #8a8273;
  --gold: #c7aa6b;
  --line: #dcd9d2;
  --paper: #f9f8f5;
  --white: #fff;
  --night: #172139;
  --contents-bg: #1a253e;
  --serif: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  --roman: "Zen Old Mincho", Georgia, serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #777; outline-offset: 5px; }
.wrap { width: min(100% - 48px, 1120px); margin-inline: auto; }
.nobr { display: inline-block; }

/* ---------- 1. HERO ---------- */
.hero {
  color: var(--white);
  background:
    url("../images/bg/stars-b.png") center 52px / max(95%, 1100px) auto no-repeat,
    linear-gradient(180deg,
      #172139 0%,
      #1d2741 11%,
      #283352 34%,
      #313e5c 46%,
      #3e4c6d 52%,
      #4f5f82 57%,
      #5f7292 63%,
      #697b99 69%,
      #7c8ca5 75%,
      #99a5b8 80%,
      #b7bfca 86%,
      #d4d8dd 92%,
      #f2f2f0 98%,
      var(--paper) 100%);
}
.hero a:focus-visible { outline-color: var(--white); }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 88px;
}
.brand { display: block; line-height: 0; }
.brand img { width: 78px; }
.navlinks { display: flex; gap: 36px; }
.navlinks a {
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
}
.navlinks a:hover { text-decoration: underline; text-underline-offset: 6px; }

.hero-body { text-align: center; padding: 142px 0 126px; }
.hero-logo {
  display: block;
  width: 400px;
  margin: 0 auto 66px;
}
.mission {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: .1em;
}
.hero-mark {
  display: block;
  width: 1px;
  height: 66px;
  margin: 93px auto 0;
  background: rgba(255, 255, 255, .85);
}

/* ---------- Section common ---------- */
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .14em;
}

/* ---------- 2. ABOUT ---------- */
.about { padding: 110px 0 131px; }
.about .eyebrow {
  margin: 0 0 30px;
  font-family: var(--roman);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .2em;
  color: var(--muted);
}
.about-text { max-width: 880px; margin-top: 52px; }
.about-text p {
  margin: 0 0 27px;
  font-size: 18px;
  line-height: 2.05;
  letter-spacing: .05em;
  color: var(--body);
}
.about-text p:last-child { margin-bottom: 0; }
.about-text .lead {
  margin-bottom: 52px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 2.4;
  letter-spacing: .12em;
  color: var(--ink);
}

/* ---------- 3. CONTENTS ---------- */
.contents {
  padding: 116px 0 130px;
  color: var(--white);
  background: url("../images/bg/stars.png") left top / 1440px auto repeat, var(--contents-bg);
}
.contents .eyebrow {
  margin: 0 0 28px;
  font-family: var(--roman);
  font-size: 17px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--gold);
}
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 60px;
}
.work {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 309px;
  padding: 40px 36px 40px 41px;
  background: var(--white);
  color: var(--text);
}
.work-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.num {
  padding-top: 4px;
  font-family: var(--roman);
  font-size: 17px;
  line-height: 1.4;
  color: var(--label);
}
.status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 73px;
  height: 36px;
  border: 1px solid var(--label);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--label);
}
.work h3 {
  margin: 36px 0 18px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  color: var(--text);
}
.work p {
  margin: 0;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: .12em;
}
.work .more {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  letter-spacing: .02em;
  text-underline-offset: 5px;
}
.work .more:hover { opacity: .65; }

/* 01 しろてんタロット：テキスト＋タロット3枚 */
.work.feature {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 58px;
  min-height: 0;
}
.work-body { flex: 1 1 auto; min-width: 0; max-width: 472px; }
.tarot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 157px);
  gap: 21px;
  margin-left: auto;
}
.tarot-gallery:not(:has(.tarot:not([hidden]))) { display: none; }
.tarot { margin: 0; }
.tarot img {
  display: block;
  width: 100%;
  aspect-ratio: 868 / 1213;
  object-fit: cover;
  border: 1px solid var(--label);
}

/* ---------- 4. END MESSAGE ---------- */
.closing { padding: 40px 0 150px; text-align: center; }
.closing-mark {
  display: block;
  font-size: 15px;
  line-height: 1;
  color: var(--gold);
}
.closing p {
  margin: 40px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .05em;
  color: #3f4356;
}

/* ---------- 5. FOOTER ---------- */
.footer { padding: 34px 0 48px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: #7a766f;
}
.footer-inner small {
  font-family: var(--roman);
  font-size: inherit;
  letter-spacing: .1em;
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .hero-body { padding: 110px 0 100px; }
  .hero-logo { width: 340px; margin-bottom: 52px; }
  .mission { font-size: 28px; }
  .hero-mark { margin-top: 70px; }
  .work { padding: 34px 30px; }
  .num { font-size: 15px; }
  .work h3 { font-size: 21px; letter-spacing: .06em; }
  .work.feature { flex-direction: column; gap: 32px; }
  .work-body { max-width: none; width: 100%; }
  .tarot-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 520px;
    margin-left: 0;
  }
}

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: min(100% - 36px, 1120px); }
  .nav { min-height: 68px; }
  .brand img { width: 66px; }
  .navlinks { gap: 20px; }
  .navlinks a { font-size: 13px; }
  .hero { background-size: 760px auto, auto; background-position: center 36px, 0 0; }
  .hero-body { padding: 72px 0 80px; }
  .hero-logo { width: min(260px, 72%); margin-bottom: 40px; }
  .mission { font-size: 19px; line-height: 2.1; letter-spacing: .1em; }
  .hero-mark { height: 52px; margin-top: 48px; }
  .section-title { font-size: 26px; letter-spacing: .1em; }
  .about { padding: 76px 0 96px; }
  .about .eyebrow { margin-bottom: 20px; }
  .about-text { margin-top: 40px; }
  .about-text p { font-size: 15px; letter-spacing: .06em; }
  .about-text .lead { margin-bottom: 36px; font-size: 18px; line-height: 2.2; letter-spacing: .08em; }
  .contents { padding: 76px 0 88px; background-size: 960px auto, auto; }
  .contents .eyebrow { margin-bottom: 20px; font-size: 15px; }
  .works { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .work { min-height: 0; padding: 28px 24px 32px; }
  .num { font-size: 15px; }
  .status { width: 64px; height: 32px; font-size: 13px; }
  .work h3 { margin: 26px 0 12px; font-size: 21px; letter-spacing: .06em; }
  .work p { font-size: 13px; line-height: 2.1; letter-spacing: .06em; }
  .work.feature { gap: 24px; }
  .tarot-gallery { gap: 10px; max-width: none; }
  .closing { padding: 36px 0 96px; }
  .closing p { margin-top: 28px; font-size: 16px; }
  .footer { padding: 26px 0 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
