@charset "UTF-8";
/* =========================================================
   NFT Marketplace — common.css（全7ページ共通）
   - デザイントークン（:root）はここで一元定義。ページCSSで再定義しない
   - 1rem = 基準幅で10px（PC 1280 / Tablet 834 / SP 375）
   - Figma: PaG29hYy6AcQWEI9jynKJX
   ========================================================= */

/* ---------- Root font-size（vw比例スケール） ---------- */
html { font-size: calc(100vw / 128); }                         /* PC 1280基準・上限なし */
@media (max-width: 1279.98px) {
  html { font-size: min(calc(100vw / 83.4), 10px); }           /* Tablet 834基準 */
}
@media (max-width: 833.98px) {
  html { font-size: min(calc(100vw / 37.5), 10px); }           /* SP 375基準 */
}

/* ---------- Design tokens ---------- */
:root {
  /* Color（Figma変数そのまま） */
  --color-bg: #2B2B2B;              /* Background */
  --color-bg-secondary: #3B3B3B;    /* Background - Secondary */
  --color-cta: #A259FF;             /* Call to Action */
  --color-text: #FFFFFF;            /* Text */
  --color-white: #FFFFFF;           /* White */
  --color-caption: #858584;         /* Caption & Label Text */
  --color-gray: #BDBDBD;            /* Gray */
  --color-footer-text: #CCCCCC;     /* Footer 本文 */
  --color-timer-bg: rgba(59, 59, 59, 0.5);       /* Auction Timer（blur付き） */
  --color-category-overlay: rgba(255, 255, 255, 0.1); /* Category Icon レイヤー */
  --grad-highlight: linear-gradient(180deg, rgba(162, 89, 255, 0) 0%, #A259FF 100%);

  /* Font family */
  --ff-work: "Work Sans", sans-serif;
  --ff-mono: "Space Mono", monospace;

  /* Radius */
  --radius: 2rem;

  /* Layout：コンテンツ幅（PC 1050 / TB 690 / SP 315） */
  --content-w: 105rem;

  /* Typography（役割名。PC値 → TB/SP は下のメディアクエリで上書き） */
  --fs-h1: 6.7rem;  --lh-h1: 1.1;       /* Hero 見出し */
  --fs-h2: 5.1rem;  --lh-h2: 1.1;       /* NFT Highlight 作品名 */
  --fs-h3: 3.8rem;  --lh-h3: 1.2;       /* セクション見出し */
  --fs-sub: 2.2rem; --lh-sub: 1.6;      /* セクションのサブ見出し・リード */
  --fs-h5: 2.2rem;  --lh-h5: 1.4;       /* カード名（Work Sans SemiBold） */
  --fs-h5-mono: 2.2rem; --lh-h5-mono: 1.6; /* フッター見出し（Space Mono Bold） */
  --fs-body: 1.6rem; --lh-body: 1.4;    /* Base(Body) */
  --fs-caption: 1.2rem; --lh-caption: 1.1; /* Caption */
  --fs-btn: 1.6rem;  --lh-btn: 1.4;     /* ボタン文言 */
}
@media (max-width: 1279.98px) {
  :root {
    --content-w: 69rem;
    --fs-h1: 3.8rem;  --lh-h1: 1.2;
    --fs-h2: 3.8rem;  --lh-h2: 1.2;
    --fs-h3: 2.8rem;  --lh-h3: 1.4;
    --fs-sub: 1.6rem; --lh-sub: 1.4;
  }
}
@media (max-width: 833.98px) {
  :root {
    --content-w: 31.5rem;
    --fs-h1: 2.8rem;  --lh-h1: 1.4;
  }
}

/* ---------- Reset / normalize ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address, em, i, cite { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--ff-work);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Utilities ---------- */
.u-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.u-cap { text-transform: capitalize; }
@media (min-width: 1280px) { .u-cap-pc { text-transform: capitalize; } }

/* 幅帯ごとの出し分け（Figmaのブレークポイント別データ・要素） */
@media (min-width: 1280px) { .u-hide-pc { display: none !important; } }
@media (min-width: 834px) and (max-width: 1279.98px) { .u-hide-tb { display: none !important; } }
@media (max-width: 833.98px) { .u-hide-sp { display: none !important; } }

.l-container { width: var(--content-w); margin-inline: auto; }

/* ---------- Buttons ---------- */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem;
  height: 6rem; padding: 0 5rem; border-radius: var(--radius);
  font-family: var(--ff-work); font-weight: 600; font-size: var(--fs-btn); line-height: var(--lh-btn);
  text-align: center; white-space: nowrap;
  transition: background-color .2s ease, filter .2s ease, color .2s ease;
}
.c-btn__icon { width: 2rem; height: 2rem; flex-shrink: 0; }
.c-btn--primary { background: var(--color-cta); color: var(--color-text); }
.c-btn--outline { border: 0.2rem solid var(--color-cta); color: var(--color-text); padding: 0 4.8rem; }   /* Figmaの枠線は内側(inside)＝px50の中に2px。CSS borderは外側に足されるので50−2 */
.c-btn--white { background: var(--color-white); color: var(--color-bg); }
.c-btn--primary:hover { filter: brightness(1.12); }
.c-btn--outline:hover { background: rgba(162, 89, 255, 0.16); }
.c-btn--white:hover { filter: brightness(0.92); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-cta); outline-offset: 2px;
}

/* ---------- Subscribe form（フッター/トップ共通部品） ---------- */
/* inline：白い入力枠の中にボタン（PC・Tablet フッター / PC トップ） */
.c-subscribe-inline {
  display: flex; align-items: center; gap: 1.2rem;
  height: 6rem; padding-left: 2rem; border-radius: var(--radius);
  background: var(--color-white);
}
.c-subscribe-inline__input {
  flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent;   /* UA既定 padding(1px 2px) を消す＝Figmaの文字位置 pl20 */
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-bg);
}
.c-subscribe-inline__input:focus-visible { outline: none; }
.c-subscribe-inline:focus-within { outline: 2px solid var(--color-cta); outline-offset: 2px; }
.c-subscribe-inline__input::placeholder,
.c-subscribe-stack__input::placeholder { color: var(--color-bg); opacity: 1; }
.c-subscribe-inline__btn { flex-shrink: 0; height: 6rem; }
/* stack：入力欄とボタンを縦積み（Tablet/SP のトップ・SP フッター） */
.c-subscribe-stack { display: flex; flex-direction: column; gap: 1.6rem; width: 100%; }
.c-subscribe-stack__input {
  width: 100%; height: 4.6rem; padding: 0 1.9rem;   /* Figma px20 は枠線(1px)の内側から＝20−1 */
  border: 1px solid var(--color-caption); border-radius: var(--radius);
  background: var(--color-white); color: var(--color-bg);
  font-size: var(--fs-body); line-height: var(--lh-body);
}
.c-subscribe-stack__btn { width: 100%; height: 4.6rem; }

/* ---------- Avatar ---------- */
.c-avatar { display: block; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* =========================================================
   Header（Navigation）— assets/js/partials.js から全ページへ注入
   ========================================================= */
.site-header { position: relative; z-index: 50; background: var(--color-bg); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 5rem; min-height: 10rem;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { width: 24.3414rem; height: 3.2rem; }
.site-header__toggle { display: none; }
.site-header__menu { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.site-header__link {
  display: flex; align-items: center; justify-content: center;
  height: 4.6rem; padding: 0 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-body); line-height: 1.4; white-space: nowrap;
  transition: color .2s ease;
}
.site-header__link:hover { color: var(--color-cta); }   /* 現在ページの着色はしない（Figmaは全ページ白） */
.site-header__signup { padding: 0 3rem; }
.site-header__signup .c-btn__icon { width: 2rem; height: 2rem; }

@media (max-width: 1279.98px) {
  .site-header__inner { padding: 1.5rem 5rem; min-height: 5.4rem; }
  .site-header__logo img { width: 18.256rem; height: 2.4rem; }
  .site-header__toggle { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; }
  .site-header__toggle img { width: 2.4rem; height: 2.4rem; }
  .site-header__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 2rem 5rem 3rem; background: var(--color-bg);
    border-top: 1px solid var(--color-bg-secondary);
  }
  .site-header.is-open .site-header__menu { display: flex; }
  .site-header__link { justify-content: flex-start; padding: 0; }
  .site-header__signup { justify-content: center; padding: 0 3rem; margin-top: 1rem; }
}
@media (max-width: 833.98px) {
  .site-header__inner { padding: 1.5rem 3rem; }
  .site-header__menu { padding: 2rem 3rem 3rem; }
}

/* =========================================================
   Footer — assets/js/partials.js から全ページへ注入
   ========================================================= */
.site-footer {
  background: var(--color-bg-secondary);
  padding: 4rem 0;
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
}
/* Figma: 一部ページのFooterのみ上端2px #2B2B2B（inside stroke＝総高不変のため上パディング40→38） */
.page-artist .site-footer,
.page-marketplace .site-footer { border-top: 0.2rem solid var(--color-bg); padding-top: 3.8rem; }
@media (min-width: 1280px) {
  .page-nft .site-footer,
  .page-rankings .site-footer { border-top: 0.2rem solid var(--color-bg); padding-top: 3.8rem; }
}
.site-footer__info { display: flex; align-items: flex-start; }
.site-footer__brand {
  width: 32.7414rem; padding-right: 8.4rem;
  display: flex; flex-direction: column; gap: 3rem;
}
.site-footer__logo img { width: 24.3414rem; height: 3.2rem; }
.site-footer__about { display: flex; flex-direction: column; gap: 2rem; }
/* Footer のテキスト行高：Figma のテキスト枠は整数に丸められている（16px×1.4=22.4→22 / 22px×1.6=35.2→35 / 12px×1.1=13.2→13。
   SP Footer metadata 1962:10149 で確認）→ 行高を Figma の枠高どおりに指定して 334 / 703 / 776 に合わせる */
.site-footer__text { width: 23.8rem; color: var(--color-footer-text); font-size: var(--fs-body); line-height: 2.2rem; }
.site-footer__community { display: flex; flex-direction: column; gap: 1.5rem; }
.site-footer__community-label { height: 1.8rem; }
.site-footer__sns { display: flex; gap: 1rem; }
.site-footer__sns a { display: block; width: 3.2rem; height: 3.2rem; transition: opacity .2s ease; }
.site-footer__sns a:hover { opacity: .7; }
.site-footer__sns img { width: 3.2rem; height: 3.2rem; }
.site-footer__heading {
  font-family: var(--ff-mono); font-weight: 700;
  font-size: var(--fs-h5-mono); line-height: 3.5rem;
  text-transform: capitalize; white-space: nowrap;
}
.site-footer__explore { width: 24rem; display: flex; flex-direction: column; gap: 2.5rem; }
.site-footer__links { display: flex; flex-direction: column; gap: 2rem; color: var(--color-footer-text); line-height: 2.2rem; }
.site-footer__links a { white-space: nowrap; transition: color .2s ease; }
.site-footer__links a:hover { color: var(--color-text); }
.site-footer__subscribe { display: flex; flex-direction: column; gap: 2.5rem; }
.site-footer__form-wrap { display: flex; flex-direction: column; gap: 2rem; }
.site-footer__form-wrap .site-footer__text { width: 33rem; }
.site-footer__form-wrap .c-subscribe-inline { width: 42rem; }
.site-footer__bottom {
  width: 104.9414rem;
  display: flex; flex-direction: column; gap: 2rem;
  border-top: 1px solid var(--color-caption);
  padding-top: 2rem; margin-top: -1px;
}
.site-footer__copy { color: var(--color-footer-text); font-size: var(--fs-caption); line-height: 1.3rem; }

@media (max-width: 1279.98px) {
  .site-footer { gap: 4.9rem; }
  .site-footer__info { width: var(--content-w); flex-direction: column; gap: 3rem; }
  .site-footer__brand { width: 100%; padding-right: 0; gap: 2rem; }
  .site-footer__text, .site-footer__form-wrap .site-footer__text { width: 100%; }
  .site-footer__community-label { height: auto; }
  .site-footer__explore { width: 100%; gap: 2rem; }
  .site-footer__subscribe { width: 100%; gap: 2rem; }
  .site-footer__bottom { width: var(--content-w); }
}
@media (max-width: 833.98px) {
  .site-footer { gap: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
