/* PORTAL の LP: 画面の絵の中身と、日本語の字組みだけ。形・色・余白は kit（assets/）が決める */

/* 書体: nff.ai と同じ。欧文は Geist、和文はヒラギノを欧文の字面に合わせて 92% に縮めた "NFF Ja"
   （nff.ai の globals.css と同じ定義。ヒラギノの無い端末では下の游ゴシックなどに落ちる） */
@font-face { font-family: "NFF Ja"; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"); font-weight: 100 449; size-adjust: 92%; }
@font-face { font-family: "NFF Ja"; src: local("HiraginoSans-W5"), local("Hiragino Sans W5"); font-weight: 450 549; size-adjust: 92%; }
@font-face { font-family: "NFF Ja"; src: local("HiraginoSans-W6"), local("Hiragino Sans W6"); font-weight: 550 649; size-adjust: 92%; }
@font-face { font-family: "NFF Ja"; src: local("HiraginoSans-W7"), local("Hiragino Sans W7"); font-weight: 650 900; size-adjust: 92%; }
:root {
  --font-display: "Geist", "NFF Ja", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-text: "Geist", "NFF Ja", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --ui-font: "Geist", "NFF Ja", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}
body { -webkit-font-smoothing: antialiased; }

/* 日本語の字組み */
:root:lang(ja) {
  --t-h2: clamp(26px, 1.25vw + 21px, 39px);
  line-break: strict;
}
:root:lang(ja) :is(h1, h2, h3, h4) { word-break: keep-all; overflow-wrap: anywhere; line-height: 1.25; }
:root:lang(ja) .hero--collage .hero__text > h1:first-child { text-box: normal; margin-top: -0.14em; }
:root:lang(ja) .hero--collage h1 { font-size: clamp(34px, 1.7vw + 29px, 54px); line-height: 1.12; }
:root:lang(ja) p { word-break: auto-phrase; text-wrap: pretty; }
:root:lang(ja) .close__word { letter-spacing: -0.045em; }

/* 白黒のトーン: 絵の後ろの地は無彩色の 1 色。色を持つのは会員証の絵だけ */
:root[data-ground] { --ground-bg: #e4e4e2; --ground-surface: #efefed; --ground-ink: #141414; --ground-muted: #5a5a58; --ground-accent: #e4e4e2; }
.hero__art, .panel.panel--flush.panel--flush, #look .frame, .mo-pc__visual.mo-pc__visual--lit.mo-pc__visual--lit { background: var(--ground-bg) !important; }
.panel.panel--flush::before { display: none; }

/* ロゴ: 線画の SVG を文字の色で塗る */
.logo { display: block; width: 123px; height: 18px; background: currentColor; -webkit-mask: url(img/portal.svg) left center / contain no-repeat; mask: url(img/portal.svg) left center / contain no-repeat; }
.close__word .logo { width: 100%; height: auto; aspect-ratio: 227.75 / 33.3; }

/* 画面の絵の色: 会員サイトは白い地、管理画面は黒い地（実物と同じ） */
.u-light { --fx-bg: #ffffff; --fx-surface: #f2f2f1; --fx-ink: #141414; --fx-muted: #5c5c5a; --fx-accent: #141414; --fx-accent-ink: #ffffff; }
.u-dark { --fx-bg: #1a1a1a; --fx-surface: #141414; --fx-ink: #f5f5f4; --fx-muted: #a6a6a4; --fx-accent: #ffffff; --fx-accent-ink: #141414; }
.u-light, .u-dark { color: var(--u-ink); text-align: left; }
.ui b { font-weight: 500; }

/* 管理画面の窓 */
.adm { background: var(--u-bg); border-radius: var(--u-r); overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 30px 70px -30px rgb(0 0 0 / .35); }
.adm__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; }
.adm__bar .logo { width: 82px; height: 12px; color: var(--u-ink); }
.adm__bar i { width: 1px; height: 14px; background: var(--u-line-2); }
.adm__body { display: grid; grid-template-columns: 148px minmax(0, 1fr); }
.adm__side { display: grid; align-content: start; gap: 2px; padding: 14px 10px; background: var(--u-surface); border-right: 1px solid var(--u-line); white-space: nowrap; }
.adm__side span { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 6px; color: var(--u-muted); }
.adm__side span.is-on { color: var(--u-ink); }
.adm__main { display: grid; align-content: start; gap: 16px; padding: 20px; min-width: 0; }
.adm__h { font-size: 18px; line-height: 26px; font-weight: 500; white-space: nowrap; }
.adm__sub { font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--u-line); border-radius: 8px; }
.kpis > div { padding: 12px 14px; }
.kpis > div:nth-child(even) { border-left: 1px solid var(--u-line); }
.kpis > div:nth-child(n + 3) { border-top: 1px solid var(--u-line); }
.kpis span { display: block; color: var(--u-muted); font-size: 12px; }
.kpis strong { display: block; font-weight: 500; font-size: 22px; line-height: 30px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 6px; height: 132px; border-bottom: 1px solid var(--u-line-2); }
.bars i { height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(to top, #4b4b4a 0 46%, #9a9a98 46% 78%, #ffffff 78% 100%); }
.axis { display: flex; justify-content: space-between; margin-top: -8px; font-size: 12px; color: var(--u-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--u-muted); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--k); }
.evrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--u-line); }
.evrow img { width: 56px; height: 36px; object-fit: cover; border-radius: 6px; }
.evrow img.round { width: 36px; margin-inline: 10px; border-radius: 50%; }
.evrow b, .evrow small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evrow small { font-size: 12px; color: var(--u-muted); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--u-fill-3); color: var(--u-text-2); font-size: 12px; white-space: nowrap; }
.tag--on { background: var(--u-accent); color: var(--u-accent-ink); }
.adm__list { display: grid; }

/* hero */
.hero__art .bars { height: 220px; }
.hero__art .adm__main { padding-right: calc(var(--ly-cut-room) + 4px); }
.hero__art .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 312px; }
.note { padding: 14px 16px; border-radius: var(--u-r); background: var(--u-bg); box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 18px 40px -20px rgb(0 0 0 / .4); }
.note__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; font-size: 14px; }
.note__row { display: flex; gap: 8px; margin-top: 8px; color: var(--u-text-2); }
.note__row::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--u-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / 16px; }
@media (max-width: 1279px) {
  .hero__art .adm__body { grid-template-columns: minmax(0, 1fr); }
  .hero__art .adm__side { display: none; }
}
@media (max-width: 1023px) { .hero__art .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 290px; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__art .adm__body { grid-template-columns: 148px minmax(0, 1fr); }
  .hero__art .adm__side { display: grid; }
  .hero__art .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__art .kpis > div { border-top: 0 !important; }
  .hero__art .kpis > div + div { border-left: 1px solid var(--u-line); }
  .hero__art .kpis strong { font-size: 18px; }
}

/* 会員サイト */
.mem.ui { display: grid; grid-template-columns: 300px minmax(0, 1fr); margin-top: var(--s-7); overflow: hidden; background: var(--u-bg); border-radius: var(--u-r); position: relative; }
.mem::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.mem__left { padding: 24px 0 24px 24px; min-width: 0; }
.mem__card { display: block; width: 100%; height: auto; border-radius: 10px; }
.mem__who { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 12px; border-bottom: 1px solid var(--u-line); }
.mem__who b { display: block; font-size: 16px; line-height: 24px; }
.mem__who span { display: block; color: var(--u-muted); font-size: 12px; }
.mem__who img { width: 40px; height: 40px; border-radius: 50%; }
.mem__roles { display: flex; gap: 6px; padding: 12px 4px; }
.mem__right { display: grid; align-content: start; gap: 4px; padding: 24px; min-width: 0; }
.sq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tile { background: var(--u-surface); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.sq .tile { height: 138px; display: flex; flex-direction: column; justify-content: space-between; }
.tile > span:first-child { color: var(--u-muted); font-size: 13px; white-space: nowrap; }
.tile strong { font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; white-space: nowrap; }
.tile strong small { font-size: 13px; color: var(--u-muted); font-weight: 400; margin-left: 4px; }
.bdg { display: flex; } .bdg img { width: 40px; height: 40px; margin-right: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--u-surface); }
.sns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.sns .tile { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; white-space: nowrap; }
.sns .ic { --ic-s: 20px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.two .tile { display: grid; align-content: start; gap: 4px; min-height: 380px; }
.two .evrow:first-of-type { border-top: 0; }
@media (max-width: 1279px) { .sns { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mem.ui { grid-template-columns: 264px minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .mem.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: start; }
  .mem__left { display: grid; grid-template-columns: 148px minmax(0, 1fr); column-gap: 20px; align-content: center; padding: 20px 20px 0; }
  .mem__card { grid-row: 1 / span 2; }
  .mem__right { padding: 16px 20px 20px; }
}
@media (max-width: 639px) {
  .mem__left { grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; padding: 16px 16px 0; }
  .mem__right { padding: 12px 16px 16px; }
  .sq { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sq .tile { height: 84px; }
  .sq .bdg img { width: 28px; height: 28px; }
  .two { display: none; }
  .sns .tile { justify-content: center; padding: 0; } .sns .tile span { display: none; }
  .sns { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mem__roles { flex-wrap: wrap; }
}

/* イベントの 3 つの絵 */
.evt { width: min(100%, 400px); border-radius: var(--u-r); overflow: hidden; background: var(--u-bg); box-shadow: 0 20px 48px -32px rgb(0 0 0 / .3); }
.evt__img { display: block; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.evt__in { display: grid; gap: 10px; padding: 16px 18px 18px; }
.evt__t { font-size: 17px; line-height: 24px; font-weight: 500; }
.evt__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--u-line); white-space: nowrap; }
.evt__row span:first-child { color: var(--u-muted); }
.cta { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 99px; background: var(--u-ink); color: var(--u-bg); font-weight: 500; font-size: 14px; }
.evt--qr .evt__in { grid-template-columns: 148px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; }
.evt--qr img.qr { width: 148px; height: 148px; }
.evt__badge { display: flex; align-items: center; gap: 16px; padding: 20px 18px 8px; }
.evt__badge img { width: 72px; height: 72px; border-radius: 50%; }
.meter { height: 8px; border-radius: 99px; background: var(--u-fill-3); overflow: hidden; } .meter i { display: block; width: 72%; height: 100%; border-radius: 99px; background: var(--u-accent); }
@media (max-width: 1023px) {
  .evt { width: min(100%, 340px); }
  .evt--qr .evt__in { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px; } .evt--qr img.qr { width: 104px; height: 104px; }
  .evt__img { aspect-ratio: 7 / 2; } .evt__in { gap: 6px; padding: 12px 14px 14px; } .evt__row { padding: 5px 0; }
  .evt__badge { padding: 14px 14px 4px; } .evt__badge img { width: 52px; height: 52px; }
}

/* 管理画面の 4 枚 */
#admin .panel { --p-h: 350px; }
#admin .stage .ui { width: 100%; }
.pane { background: var(--u-bg); border-radius: var(--u-r); overflow: hidden; box-shadow: 0 20px 48px -32px rgb(0 0 0 / .4); }
.pane__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 500; font-size: 14px; border-bottom: 1px solid var(--u-line); white-space: nowrap; }
.pane__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px; border-bottom: 1px solid var(--u-line); white-space: nowrap; }
.pane__row > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pane__row > span:last-child { color: var(--u-muted); }
.pane__row .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--k, var(--u-accent)); }
.pane__row .ic { --ic-s: 20px; }
.pays { display: flex; align-items: center; gap: 8px; padding: 14px 18px; }
.pays > span { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 36px; border-radius: 8px; background: #fff; }
.pays .ic { --ic-s: 18px; max-width: 44px; }
.pays .ic-svg { color: #14171c; }
.mailimg { display: block; width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.mailtxt { display: grid; gap: 10px; padding: 18px; } .dim { color: var(--u-muted); } .mailtxt .cta { width: 140px; }
.msg { display: flex; gap: 12px; padding: 14px 18px 0; } .msg img { width: 36px; height: 36px; border-radius: 50%; }
@media (max-width: 639px) { #admin .panel { --p-h: 220px; } .pays > span { width: 52px; } }

/* ブランディング */
#look .frame { background: var(--ground-bg); border-color: transparent; }
.brand__prev { display: block; width: 100%; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 8px; }
.sw { display: flex; gap: 8px; } .sw i { width: 28px; height: 28px; border-radius: 8px; background: var(--k); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); } .sw i.is-on { outline: 2px solid var(--u-accent); outline-offset: 2px; }
.frames { display: flex; gap: 10px; } .frames img { width: 92px; height: auto; border-radius: 6px; }
.fieldrow { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--u-line); }
.fieldrow > span:first-child { color: var(--u-muted); }
.input { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--u-line-2); background: var(--u-surface); white-space: nowrap; overflow: hidden; }
.facts { display: grid; gap: var(--s-2); margin: var(--s-5) 0; padding: 0; list-style: none; }
.facts li { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.split__text > p { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.6; }

/* 連携: サービス 7 と支払い 4 を左右に並べる。数字は大きく */
.apps-groups { padding-top: var(--s-5); row-gap: var(--s-7); }
.apps-group .t-label { margin: 0 0 var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.apps { display: grid; gap: var(--s-5) var(--gutter); margin: 0; padding: 0; list-style: none; }
.apps--svc, .apps--pay { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apps li { display: grid; justify-items: start; gap: var(--s-3); font-size: var(--t-small); font-weight: 500; white-space: nowrap; }
.apps li > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: #fff; }
.apps .ic { --ic-s: 30px; max-width: 44px; }
.figs { margin-top: var(--s-7); }
.figs > div { position: relative; padding-top: var(--s-5); }
/* a rule draws across the top of each figure as its digits roll in */
.figs > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.figs > div:nth-child(2)::before { transition-delay: .12s; }
.figs > div:nth-child(3)::before { transition-delay: .24s; }
.figs > div:has(.mo-cr:not(.is-on))::before { transform: scaleX(0); }
.figs .t-stat { font-size: clamp(112px, 10vw + 16px, 184px); font-weight: 700; line-height: 1; letter-spacing: 0; }
/* each digit column clips at its own advance; overlap the columns instead of tightening letter-spacing, so no glyph is cut.
   The cells stay 1em tall: the roll moves the strip in whole ems (moment.js), so a shorter cell overshoots the strip and blanks at the end */
.figs .mo-cr__col + .mo-cr__col { margin-left: -0.05em; }
.figs p + p { margin-top: var(--s-4); font-size: 16px; color: var(--ink); }
@media (max-width: 1279px) { .apps li > span { width: 56px; height: 56px; border-radius: 12px; } .apps .ic { --ic-s: 26px; max-width: 40px; } .apps li { font-size: 13px; } }
@media (max-width: 1023px) { .apps-group.apps-group { grid-column: 1 / -1; } .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .figs > * { grid-column: auto; } }
@media (max-width: 639px) {
  .apps-groups { padding-top: var(--s-4); row-gap: var(--s-5); } .apps-group .t-label { margin-bottom: var(--s-3); padding-bottom: var(--s-2); }
  .apps { gap: var(--s-4) var(--s-2); }
  .apps li > span { width: 48px; height: 48px; border-radius: 10px; } .apps .ic { --ic-s: 24px; max-width: 34px; } .apps li { font-size: 12px; gap: var(--s-2); white-space: normal; }
  .figs { margin-top: var(--s-6); } .figs .t-stat { font-size: 26px; } .figs .t-small { font-size: 13px; }
}

/* 質問 */
.lede { margin-top: var(--s-4); }
.lede + .link { margin-top: var(--s-5); }
.faq__card { display: block; width: 260px; height: auto; margin-top: var(--s-7); border-radius: 10px; }
@media (min-width: 640px) and (max-width: 1023px) { .faq__card { width: 180px; } }
@media (max-width: 639px) { .faq__card { width: 100%; margin-top: var(--s-7); margin-bottom: var(--s-6); } }
@media (max-width: 359px) { #look.section { height: auto !important; min-height: 200svh; } #look .frame.frame--fill { flex: none; height: 320px; } }

/* フッターの注記 */
.legal { display: inline-flex; gap: var(--s-5); }
@media (min-width: 1024px) { .footer__legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); } .footer__legal > .legal { grid-column: span 6; } .footer__legal > .sample { grid-column: 7 / -1; } }
@media (max-width: 639px) { .legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--gutter); } .legal > span { grid-column: 1 / -1; } }

/* スマホ: 1 画面に収める */
@media (max-width: 639px) {
  .hero__art :is(.adm__h, .adm__list, .adm__sub, .legend, .bars, .axis) { display: none; }
  .hero__art .adm__main { padding-block: 16px 200px; }
  .mailtxt, .mailimg { display: none; }
  #live:not(.is-live) .mo-pc__visual.mo-pc__visual--lit { aspect-ratio: auto; height: 352px; max-height: none; }
  #faq { --h: 2; min-height: 200svh; }
  .footer__lede, .closing__links .footer__col:nth-child(n + 3):nth-child(-n + 4) { display: none; }
  #live:not(.is-live) { min-height: 200svh !important; }
  #admin .panel.panel { --p-h: 136px; }
  #look .facts { display: none; } #look .split__text > p { margin-bottom: var(--s-4); }
  .evt .cta, .evt .evt__row:nth-of-type(n + 4) { display: none; }
}

/* イベントの節: ほかの節と同じく上からそろえ、絵を画面の下まで使う */
@media (min-width: 1024px) and (min-height: 640px) {
  main #live[data-moment="pinned-chapters"].is-live > .mo-pc__grid { align-content: stretch; align-items: start; grid-template-rows: minmax(0, 1fr); padding-top: calc(var(--nav, var(--nav-h, 72px)) + 48px); padding-bottom: 72px; }
  #live.is-live .mo-pc__visuals { aspect-ratio: auto; height: 100%; }
  #live.is-live .mo-pc__visual.mo-pc__visual--lit { aspect-ratio: auto; height: 100%; max-height: none; }
  #live.is-live .evt { width: min(100%, 440px); }
}
@media (max-width: 359px) { .nav .logo { width: 88px; height: 13px; } }
/* 英語は見出しと本文が 1 行長い。スマホの 1 画面に収める */
@media (max-width: 639px) { html:lang(en) #admin .panel.panel { --p-h: 148px; } html:lang(en) #contact .legal { gap: var(--s-1) var(--gutter); } }

/* イベントの節: 進み方の案内（次へ・スクロールの合図）と、押して進める見出し。動くとき（.is-live）だけ出す */
.pc-step-btn { all: unset; cursor: pointer; display: block; border-radius: 4px; }
.pc-step-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#live:not(.is-live) .pc-step-btn { cursor: auto; }
.pc-nav { display: none; }
#live.is-live .pc-nav { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-2); }
/* 画面の下の真ん中に、点で描いた立体の矢印（page.js が描く。点字と同じ 2×4 の点の並び）。押すと次へ */

/* 収益のグラフ: 1 月から 12 月へ棒が順に伸び、金額と月も一緒に進む（page.js）。いま描いている月の棒だけ白 */
.rev .ui-stat__bars rect:last-child { fill: var(--u-fill-3); }
.rev .ui-stat__bars rect.is-cur { fill: var(--u-accent); }
.rev .ui-stat__num, .rev .ui-stat__sub { font-variant-numeric: tabular-nums; }

/* ヒーローの大きな PORTAL ロゴ。スクロールに合わせて縮みながらヘッダーのロゴの位置へ移り、着いたらヘッダーのロゴと入れ替わる
   （page.js が transform を書き、着いたら <html> に nav-logo-in と hero-logo-docked を付ける） */
.hero__logo { margin: 0 0 var(--s-6); }
.hero__logo .logo { width: clamp(240px, 24vw + 80px, 520px); height: auto; aspect-ratio: 227.75 / 33.3; transform-origin: 0 0; will-change: transform; }
.hero-logo-docked .hero__logo .logo { visibility: hidden; }
.nav-logo-wait:not(.nav-logo-in) .nav .nav__logo { opacity: 0; visibility: hidden; }
@media (max-width: 639px) { .hero__logo { margin-bottom: var(--s-4); } }

/* ヘッダー: NFF のサイト（nff.ai）と同じく、ロゴだけ左、メニューは右に寄せる。文字は細めで、項目の間を広く取り、線は引かない */
@media (min-width: 1024px) {
  .nav { border-bottom-color: transparent; }
  .nav__links { justify-content: flex-end; gap: var(--s-5); }
  .nav__bar { gap: var(--s-5); }
  .nav__links .nav__link, .nav__actions > .nav__link { padding: 0; font-size: 13px; font-weight: 400; }
  .nav__links .nav__link::before, .nav__links .nav__link[aria-current="page"]::after, .nav__actions > .nav__link::before { left: 0; right: 0; bottom: 4px; height: 1px; }
}

/* ヘッダーの地は透明。字を白で描いて行ごと difference で重ね、明るい地の上では黒、暗い地の上では白に出す（nff.ai と同じ）。
   メニューのパネルを開いている間（パソコンで項目に乗せたとき・スマホのメニュー）だけは反転をやめて地の色を敷く */
.nav { background: transparent; border-bottom-color: transparent; mix-blend-mode: difference; }
.nav .nav__logo, .nav .nav__link, .nav .nav__toggle { color: #fff; }
.nav .nav__actions .btn--primary { background: #fff; color: #000; }
.nav.is-open, .nav:has(.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__toggle[aria-expanded="true"]) { mix-blend-mode: normal; background: var(--bg); }
.nav.is-open :is(.nav__logo, .nav__link, .nav__toggle), .nav:has(.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__toggle[aria-expanded="true"]) :is(.nav__logo, .nav__link, .nav__toggle) { color: var(--ink); }

/* English: longer headings and answers */
html:lang(en) #connect .section-head { max-width: none; }
@media (max-width: 639px) { html:lang(en) #live:not(.is-live) .mo-pc__visual.mo-pc__visual--lit { height: 320px; } }
html:lang(en) .faq > .faq__item { padding: var(--s-4) 0; }
html:lang(en) .faq > .faq__item:first-child { padding-top: 0; }
@media (max-width: 639px) { html:lang(en) .faq__card { width: 85%; } }

/* ヘッダーの幅: nff.ai と同じく本文の幅（.wrap）に揃えず、画面の端から左右 20px まで広げる */
.nav > .wrap.nav__bar { width: auto; max-width: none; margin-inline: 0; padding-inline: 20px; }

/* ヘッダーの高さと文字: nff.ai と同じ高さ 66px（スマホも）、メニューの文字 13px */
:root { --nav: 66px; }
@media (max-width: 639px) { :root { --nav: 66px; } }
.nav .nav__actions .btn { height: 34px; padding-inline: var(--s-4); font-size: 13px; }

/* グレイン: nff.ai と同じ点描のタイル（img/grain/。nff.ai の scripts/make-grain.py で作ったもの）を、ページの地に 128px 四方で敷く。
   暗い地には白い点、明るい地（.ground-inverse）には黒い点。2x の画面では 256px の版を縮めて点を 1 物理画素にする。
   url は CSS 変数に入れない（英語版は en/ から読むので、変数だと文書の場所から解決されて外れることがある） */
body, .ground-base, .ground-surface { background-image: image-set(url("img/grain/grain-dark.png") 1x, url("img/grain/grain-dark@2x.png") 2x); background-size: 128px 128px; }
.ground-inverse { background-image: image-set(url("img/grain/grain.png") 1x, url("img/grain/grain@2x.png") 2x); background-size: 128px 128px; }

/* スクロールバーを出さない（nff.ai と同じ）。スクロールはホイール・指・キーでそのまま効く */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* スマホ: ヘッダーを 66px にしたぶん、ヒーローを詰める（ロゴを小さく、見出しの上の余白を狭く）。
   デザインのブロックの管理画面は枠に収まる 2 行（カードの色・会員証）だけ見せる（下の行は枠で切れて読めないため） */
@media (max-width: 639px) {
  .hero__logo .logo { width: 160px; }
  .hero__logo { margin-bottom: var(--s-3); }
  .hero { --hgap: 24px; }
  #look .fieldrow:nth-of-type(n + 3) { display: none; }
}
