@charset "utf-8";

/* ============================================================
   ROOK production
   Design tokens mirror the Figma variable collection "Color".
   Variable name in Figma  ->  custom property here
   e.g. surface/paper      ->  --surface-paper
   ============================================================ */

:root {
  /* surface */
  --surface-canvas: #EFEADB;
  --surface-paper: #FFFCF2;
  --surface-halo: #FDF3CE;
  --surface-white: #FFFFFF;
  --surface-night: #26231B;

  /* accent */
  --accent-moon: #F7E6A0;
  --accent-amber: #B98D1E;
  --accent-amber-hover: #9E7715;
  --accent-line: #06C755;

  /* gradient stops (Figma: Thumbnail / Eyecatch, Section / Recruit) */
  --grad-plate-from: #F6E9BC;
  --grad-plate-to: #EDDDA0;
  --grad-recruit-from: #F3E1A2;
  --grad-recruit-to: #EFD98F;

  /* composed gradients */
  --plate: linear-gradient(150deg, var(--grad-plate-from), var(--grad-plate-to));
  --recruit-bg: linear-gradient(180deg, var(--grad-recruit-from), var(--grad-recruit-to));

  /* channels — for alpha variants: rgb(var(--x-rgb) / .4) */
  --ink-rgb: 46 42 34;
  --paper-rgb: 255 252 242;
  --amber-rgb: 185 141 30;
  --halo-rgb: 253 243 206;
  --shadow-rgb: 60 50 20;
  --gold-soft-rgb: 110 95 53;

  /* text */
  --text-ink: #2E2A22;
  --text-mist: #8B8371;
  --text-gold-deep: #8E6C15;
  --text-gold-soft: #6E5F35;
  --text-tag: #5C5341;
  --text-on-night: #E8DFC4;
  --text-on-night-muted: #C7BC9A;
  --text-on-night-faint: #8F866C;

  /* type */
  --display: "Shippori Mincho", serif;
  --body: "Zen Kaku Gothic New", sans-serif;
  --latin: "Cormorant Garamond", serif;

  /* metrics */
  --page: 390px;
  --gutter: 24px;
  --header-h: 59px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-ink);
  font-family: var(--body);
  display: flex;
  justify-content: center;
}

/* The comp is defined at 390px only. Above that the page is centred on the
   canvas colour rather than stretched, because no wide layout exists yet. */
.page {
  display: flow-root;
  width: 100%;
  max-width: var(--page);
  background: var(--surface-paper);
  position: relative;
  overflow-x: clip;
  box-shadow: 0 30px 80px rgb(var(--shadow-rgb) / .18);
}

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

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

/* ---------- type scale (matches the Figma text styles) ---------- */

.t-section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: .26em;
  text-align: center;
  margin: 0;
}
.t-section-sub {
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .16em;
  color: var(--text-mist);
  text-align: center;
  margin: 10px 0 0;
}
.t-eyebrow {
  font-family: var(--latin);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .42em;
  color: var(--accent-amber);
  margin: 0;
}
.t-lede {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.95;
  letter-spacing: .06em;
  margin: 0;
}
.t-body {
  font-size: 12.5px;
  line-height: 2.1;
  letter-spacing: .04em;
  color: var(--text-mist);
  margin: 0;
}
.t-article {
  font-size: 13px;
  line-height: 2.15;
  letter-spacing: .03em;
  color: var(--text-mist);
  margin: 0;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  min-height: 58.5px;
  background: rgb(var(--paper-rgb) / .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { background: rgb(var(--paper-rgb) / .96); }
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
}
.logo__mark {
  font-family: var(--latin);
  font-size: 14px;
  letter-spacing: .34em;
  color: var(--text-ink);
}
.logo__sub {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .30em;
  color: var(--text-mist);
}

.burger {
  display: grid;
  gap: 5px;
  justify-items: end;
  align-content: center;
  justify-content: end;
  /* Figma header is 58.5px tall, so the bars define the height; the 44px
     tap target is restored with padding that does not affect layout. */
  width: 24px;
  padding: 11px 10px;
  margin: -11px -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text-ink);
  transition: width .3s;
}
.burger span:nth-child(1),
.burger span:nth-child(2) { width: 24px; }
.burger span:nth-child(3) { width: 15px; }
.burger:hover span:nth-child(3) { width: 24px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--surface-halo);
}

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slideCycle 13s ease-in-out infinite backwards;
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 2.6s; }
.hero__slide:nth-child(3) { animation-delay: 5.2s; }
.hero__slide:nth-child(4) { animation-delay: 7.8s; }
.hero__slide:nth-child(5) { animation-delay: 10.4s; }

/* SPEC / Hero Slideshow 5: hold when the tab is hidden, or on Save-Data. */
.hero__slides[data-paused="true"] .hero__slide { animation-play-state: paused; }
.hero__slides[data-still="true"] .hero__slide { animation: none; opacity: 0; }
.hero__slides[data-still="true"] .hero__slide:nth-child(1) { opacity: 1; }

/* 2.6s hold + 0.6s crossfade, 5 slides = 13s loop */
@keyframes slideCycle {
  0%      { opacity: 1; }
  20%     { opacity: 1; }
  24.6%   { opacity: 0; }
  95.4%   { opacity: 0; }
  100%    { opacity: 1; }
}

.hero__scrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 120px;
  height: 480px;
  background: linear-gradient(
    to bottom,
    rgb(var(--paper-rgb) / 0) 0%,
    rgb(var(--paper-rgb) / .28) 14%,
    rgb(var(--paper-rgb) / .66) 28%,
    rgb(var(--paper-rgb) / .90) 50%,
    rgb(var(--paper-rgb) / .97) 100%
  );
}

.hero__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 120px;
  display: grid;
  gap: 18px;
}
.hero__copy .t-eyebrow { color: var(--text-gold-deep); }
.hero__copy .t-body { color: var(--text-tag); }

.hero__float {
  position: absolute;
  top: 22px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 18px;
  background: var(--surface-halo);
  color: var(--text-ink);
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgb(var(--shadow-rgb) / .28);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-family: var(--latin);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .38em;
  color: var(--text-gold-deep);
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: 12px auto 0;
  background: linear-gradient(var(--text-gold-deep), rgb(var(--gold-soft-rgb) / 0));
}

/* ---------- sections ---------- */

.section { padding: 76px var(--gutter); }
.section--halo { background: var(--surface-halo); }
.section--recruit { background: var(--recruit-bg); }
.section--center { text-align: center; }

/* ---------- support ---------- */

.support__list {
  display: grid;
  gap: 12px;
  /* section gap 10 + Cards frame pt 20 / pb 18 + section gap 10 */
  margin: 30px 0 28px;
  padding: 0;
  list-style: none;
}

/* Display only. No link, no button, no hover, no focus. */
.s-card {
  text-align: left;
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  background: var(--surface-white);
}
.s-card__media {
  position: absolute;
  inset: -28px;             /* larger than the card so the blur's soft edge is clipped */
  filter: blur(5.5px);
  z-index: 0;
}
.s-card__media img { width: 100%; height: 100%; object-fit: cover; }
.s-card__veil {
  position: absolute;
  inset: 0;
  background: var(--surface-paper);
  opacity: .44;
  z-index: 1;
}
.s-card > .s-card__body { position: relative; z-index: 2; }

.s-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-card__no {
  font-family: var(--latin);
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--accent-amber);
}
.s-card__rule {
  width: 22px;
  height: 1px;
  background: var(--accent-amber);
}
.s-card__label {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .30em;
  color: var(--text-tag);
}
.s-card__title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .06em;
}
.s-card__text {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 2;
  color: var(--text-tag);
}

.claim {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .14em;
  color: var(--text-gold-deep);
}

/* ---------- topic ---------- */

.topic__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 14px;
  /* section gap 10 + Grid frame pt 20 / pb 24 + section gap 10 */
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.a-card {
  position: relative;
  display: block;
  padding-left: 16px;
  text-decoration: none;
  color: inherit;
}
.a-card__date {
  position: absolute;
  left: 0;
  top: 2px;
  writing-mode: vertical-rl;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent-amber);
}
.a-card__thumb {
  display: grid;
  place-items: center;
  height: 104px;
  background: var(--plate);
}
.a-card__thumb svg { width: 74px; height: 74px; }
.a-card__title {
  display: block;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .03em;
}

/* ---------- buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 15px 18px;
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn--outline {
  border: 1px solid var(--text-ink);
  color: var(--text-ink);
}
.btn--outline:hover,
.btn--outline:active {
  background: var(--text-ink);
  color: var(--surface-paper);
}
.btn--solid {
  padding: 18px 44px;
  white-space: nowrap;
  background: var(--surface-halo);
  color: var(--text-ink);
}
.btn--solid:hover { background: var(--accent-moon); }
.btn--latin {
  font-family: var(--latin);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .34em;
}
.btn--inline {
  width: 190px;
  margin-inline: auto;
}
.btn--solid.btn--inline { width: auto; min-width: 190px; }
.btn--full { width: 100%; padding-block: 16px; }
.btn__arrow { flex: none; }

/* ---------- recruit ---------- */

.recruit__list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.r-card {
  text-align: left;
  padding: 28px 22px;
  background: var(--surface-paper);
}
.r-card__label {
  display: block;
  font-family: var(--latin);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .36em;
  color: var(--accent-amber);
}
.r-card__title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .06em;
}
.r-card__text {
  margin: 10px 0 18px;
  font-size: 11.5px;
  line-height: 2;
  color: var(--text-mist);
}

/* ---------- contact ---------- */

.contact .t-lede { margin-top: 18px; }
.contact .t-body {
  margin-top: 18px;
  /* Figma keeps this on one line (342x26). */
  white-space: nowrap;
  letter-spacing: .03em;
}
.contact .btn { margin-top: 26px; }

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

.footer {
  background: var(--surface-night);
  color: var(--text-on-night);
  padding: 52px var(--gutter) 34px;
}
.footer__mark {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .14em;
}
.footer__nav {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.footer__nav a {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--text-on-night-muted);
  text-decoration: none;
  transition: color .3s;
}
.footer__nav a:hover { color: var(--accent-moon); }
.footer hr {
  margin-top: 26px;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / .14);
}
.footer small {
  display: block;
  margin-top: 18px;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--text-on-night-faint);
}

/* ---------- menu overlay ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  background: rgb(var(--paper-rgb) / .90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease-out, visibility .24s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu { background: rgb(var(--paper-rgb) / .96); }
}
.menu[data-open="true"] { opacity: 1; visibility: visible; }

.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  min-height: var(--header-h);
}
.menu__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu__nav {
  padding-top: 48px;
  overflow-y: auto;
}
.menu__nav a {
  display: block;
  padding: 18px var(--gutter);
  text-decoration: none;
}
.menu__en {
  display: block;
  font-family: var(--latin);
  font-size: 20px;
  letter-spacing: .32em;
  color: var(--text-ink);
}
.menu__ja {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--text-mist);
}

.menu__foot {
  margin-top: auto;
  padding: 34px var(--gutter);
  display: grid;
  gap: 22px;
}
.menu__foot small {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--text-mist);
}

body[data-menu-open="true"] { overflow: hidden; }

/* Each nav item slides up in sequence once the panel opens. */
.menu[data-open="true"] .menu__nav a { animation: menuIn .32s ease-out backwards; }
.menu[data-open="true"] .menu__nav a:nth-child(1) { animation-delay: .04s; }
.menu[data-open="true"] .menu__nav a:nth-child(2) { animation-delay: .08s; }
.menu[data-open="true"] .menu__nav a:nth-child(3) { animation-delay: .12s; }
.menu[data-open="true"] .menu__nav a:nth-child(4) { animation-delay: .16s; }
.menu[data-open="true"] .menu__nav a:nth-child(5) { animation-delay: .20s; }
.menu[data-open="true"] .menu__nav a:nth-child(6) { animation-delay: .24s; }

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

/* ---------- article ---------- */

.article__head { padding: 40px var(--gutter) 28px; }
.chips { display: inline-flex; align-items: center; gap: 8px; }
.chip {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--latin);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .30em;
}
.chip--outline {
  padding: 7px 13px;
  border: 1px solid rgb(var(--ink-rgb) / .35);
  color: var(--text-ink);
}
.chip--date { background: var(--accent-moon); color: var(--text-gold-deep); letter-spacing: .18em; }

.article__title {
  margin: 20px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.75;
  letter-spacing: .04em;
}
.byline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 0;
}
.byline__key {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .30em;
  color: var(--accent-amber);
  border-bottom: 1px solid rgb(var(--amber-rgb) / .5);
  padding-bottom: 4px;
}
.byline__tag { font-size: 11.5px; line-height: 1.6; letter-spacing: .16em; color: var(--text-mist); }

.article__eyecatch {
  display: grid;
  place-items: center;
  height: 220px;
  background: var(--plate);
}
.article__eyecatch svg { width: 132px; height: 132px; }

.article__body { padding: 36px var(--gutter) 12px; }
.article__body > * + * { margin-top: 22px; }
.article__body > h2 { margin-top: 36px; }

.b-h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .06em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(var(--amber-rgb) / .4);
}
.b-h3 {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: .04em;
}
.b-quote {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid rgb(var(--amber-rgb) / .6);
}
.b-list { margin: 0; padding-left: 16px; list-style: none; }
.b-list li { position: relative; }
.b-list li + li { margin-top: 10px; }
.b-list li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-amber);
}
.b-divider { border: 0; border-top: 1px solid rgb(var(--ink-rgb) / .15); margin-block: 32px; }

.b-figure { margin: 0; }
.b-figure img,
.b-figure .b-plate {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.b-plate {
  display: grid;
  place-items: center;
  background: var(--plate);
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: .30em;
  color: var(--text-gold-deep);
}
.b-figure figcaption {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--text-mist);
}
.b-embed { position: relative; aspect-ratio: 16 / 9; }
.b-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.b-ogp {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  border: 1px solid rgb(var(--ink-rgb) / .16);
  background: rgb(var(--halo-rgb) / .5);
}
.b-ogp__img { flex: none; width: 104px; object-fit: cover; }
.b-ogp__text { padding: 16px; display: grid; gap: 6px; align-content: start; }
.b-ogp__title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--text-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b-ogp__desc {
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--text-mist);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b-ogp__host { font-size: 10px; color: var(--text-gold-deep); }

.article__back { padding: 34px var(--gutter) 60px; }

/* ---------- policy ---------- */

.policy__head { padding: 48px var(--gutter) 34px; display: grid; gap: 16px; }
.policy__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.75;
  letter-spacing: .04em;
}
.policy__body { padding: 0 var(--gutter) 20px; display: grid; gap: 30px; }
.policy__body section { display: grid; gap: 10px; }
.policy__body h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .06em;
}
.policy__box {
  background: var(--surface-halo);
  padding: 16px 18px;
}
.policy__date {
  margin: 0;
  padding: 8px var(--gutter) 64px;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--text-mist);
}

/* ---------- reveal ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide:nth-child(1) { opacity: 1; }
  .menu,
  .menu[data-open="true"] .menu__nav a { transition-duration: .01ms; animation: none; }
}
