/* ============================================================
   Crypto Wanco NFT — 共通スタイル
   ロゴの黒い太字に合わせ、黒い太枠＋ずらした影の「ステッカー」風。
   ============================================================ */

:root {
  --ink: #1b1714;
  --ink-soft: #5b524b;
  --paper: #fff8ee;
  --card: #ffffff;
  --pink: #ff8fb1;
  --pink-soft: #ffe1ea;
  --mint: #5fd6b7;
  --mint-soft: #d9f6ee;
  --yellow: #ffd65c;
  --yellow-soft: #fff1c4;
  --sky: #8fd3ff;
  --sky-soft: #def2ff;
  --discord: #5865f2;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 18px;
  --wrap: 1120px;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --font-display: "Dela Gothic One", "M PLUS Rounded 1c", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(27, 23, 20, .07) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--discord); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.site-header__inner {
  width: min(var(--wrap), 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.site-header__logo img { width: 156px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 800; font-size: 14px; text-decoration: none;
  border: 2px solid transparent;
}
.site-nav a:hover { border-color: var(--ink); background: var(--card); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: grid; place-items: center;
    width: 46px; height: 46px; border: var(--line); border-radius: 12px;
    background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  }
  .menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after {
    content: ""; display: block; width: 20px; height: 3px; background: var(--ink);
    border-radius: 2px; position: relative; transition: transform .2s, background .2s;
  }
  .menu-toggle__bar::before { position: absolute; top: -7px; }
  .menu-toggle__bar::after { position: absolute; top: 7px; }
  .is-open .menu-toggle__bar { background: transparent; }
  .is-open .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .is-open .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    background: var(--card); border: var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 10px;
    display: none;
  }
  .is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { font-size: 16px; padding: 12px 16px; }
}

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: var(--line); border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none; line-height: 1.2;
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
  background: var(--yellow);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--discord { background: var(--discord); color: #fff; }
.btn--light { background: var(--card); }
.btn--pink { background: var(--pink); }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-link:hover { color: var(--discord); }

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--card); border-block: var(--line); }
.section__head { text-align: center; margin-bottom: 44px; }
.section__eyebrow {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em;
  padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow);
  margin-bottom: 14px;
}
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.4vw, 44px); }
.section__lead { margin-top: 14px; color: var(--ink-soft); font-weight: 700; }

.card {
  background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

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

/* ---------- ページの見出し（下層ページ） ---------- */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 6vw, 60px); }
.page-hero__sub {
  display: inline-block; margin-top: 16px; padding: 6px 18px; font-weight: 800;
  background: var(--pink); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.page-hero__lead { margin: 22px auto 0; max-width: 680px; font-weight: 700; }

/* ---------- ホーム：ヒーロー ---------- */
.hero { padding: 36px 0 72px; }
.hero__banner { overflow: hidden; }
.hero__banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.hero__body {
  margin-top: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5.2vw, 58px); }
.hero__title em { font-style: normal; background: linear-gradient(transparent 62%, var(--pink) 62%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__badge {
  width: 210px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: var(--line);
  background: var(--sky-soft); box-shadow: var(--shadow); transform: rotate(-4deg);
}
@media (max-width: 720px) {
  .hero__body { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
}

/* ---------- ホーム：理念 ---------- */
.concept { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; padding: 44px; }
.concept__img { background: var(--mint-soft); border: var(--line); border-radius: var(--radius); }
.concept__quotes p {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2.6vw, 27px); line-height: 1.6;
}
.concept__quotes p + p { margin-top: 10px; }
.concept__quotes .concept__tail { font-family: var(--font); font-weight: 800; font-size: 18px; margin-top: 20px; }
.concept__link { margin-top: 18px; }
@media (max-width: 720px) {
  .concept { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .concept__img { width: 200px; margin-inline: auto; }
}

/* ---------- ホーム：イベント ---------- */
.event { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: center; padding: 40px; background: var(--pink-soft); }
.event__label {
  display: inline-block; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 13px;
  padding: 4px 12px; border-radius: 8px; letter-spacing: .08em;
}
.event__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); margin-top: 12px; }
.event__list { margin-top: 18px; display: grid; gap: 8px; }
.event__list div { display: grid; grid-template-columns: 5em 1fr; gap: 10px; }
.event__list dt { font-weight: 800; }
.event__list dd { margin: 0; }
.event__img { border: var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.event .btn { margin-top: 24px; }
@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; padding: 28px 22px; }
  .event__img { width: 240px; margin-inline: auto; order: -1; }
}

/* ---------- ホーム：NFT 一覧 ---------- */
.nft-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.nft-card {
  border: var(--line); border-radius: 16px; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow-sm); transition: transform .2s;
}
.nft-card:nth-child(odd) { transform: rotate(-1.5deg); }
.nft-card:nth-child(even) { transform: rotate(1.5deg); }
.nft-card:hover { transform: rotate(0) scale(1.04); }
@media (max-width: 860px) { .nft-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .nft-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.collection-text { max-width: 720px; margin: 44px auto 0; text-align: center; font-weight: 700; }
.collection-text p + p { margin-top: 8px; }
.collection-text .btn { margin-top: 26px; }

/* ---------- ホーム：チーム ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { padding: 22px; text-align: center; background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.team-card__photo { border: var(--line); border-radius: 50%; overflow: hidden; width: 150px; margin: 0 auto 14px; aspect-ratio: 1; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__role {
  display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 12px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--yellow-soft);
}
.team-card__name { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-top: 8px; }
.team-card__note { color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.team-card__x { display: inline-block; margin-top: 6px; font-weight: 800; font-size: 14px; color: var(--discord); }
.team-card__extra { margin-top: 10px; font-size: 13px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .team-grid { gap: 14px; }
  .team-card { padding: 16px 10px; box-shadow: var(--shadow-sm); }
  .team-card__photo { width: 104px; }
  .team-card__name { font-size: 20px; }
  .team-card__x, .team-card__note { font-size: 12px; }
  .team-card__extra { font-size: 12px; }
}
@media (max-width: 520px) {
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 32px; }
  .hero { padding-bottom: 48px; }
}

/* ---------- すくーるわんこ ---------- */
.school-banner { overflow: hidden; }
.school-banner img { width: 100%; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role-card { padding: 28px 24px; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.role-card--pink { background: var(--pink-soft); }
.role-card--mint { background: var(--mint-soft); }
.role-card--yellow { background: var(--yellow-soft); }
.role-card__name { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.role-card__lead { margin-top: 8px; font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.role-card__tasks { margin-top: 14px; display: grid; gap: 10px; }
.role-card__tasks li {
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px 10px 40px;
  font-weight: 700; position: relative; line-height: 1.6;
}
.role-card__tasks li::before {
  content: "🐾"; position: absolute; left: 12px; top: 10px; font-size: 15px;
}
@media (max-width: 860px) { .role-grid { grid-template-columns: 1fr; } }

/* ---------- 物販 ---------- */
.goods { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.goods__img { border-right: var(--line); }
.goods__img img { width: 100%; height: 100%; object-fit: cover; }
.goods__body { padding: 36px; }
.goods__by { font-weight: 800; color: var(--ink-soft); }
.goods__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 36px); margin-top: 6px; }
.goods__desc { margin-top: 14px; font-weight: 700; }
.price-list { display: flex; gap: 14px; margin-top: 22px; }
.price {
  flex: 1; text-align: center; border: var(--line); border-radius: 14px; padding: 12px; background: var(--yellow-soft);
}
.price__size { font-weight: 800; font-size: 14px; }
.price__value { font-family: var(--font-display); font-size: 28px; }
.price__value small { font-family: var(--font); font-size: 14px; font-weight: 800; }
.goods__tax { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.goods__notes { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.goods__body .btn { margin-top: 26px; }
@media (max-width: 820px) {
  .goods { grid-template-columns: 1fr; }
  .goods__img { border-right: 0; border-bottom: var(--line); }
  .goods__body { padding: 26px 22px; }
}

/* ---------- 歴史（年表） ---------- */
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 4px;
  background: repeating-linear-gradient(var(--ink) 0 10px, transparent 10px 18px);
}
.timeline__era { position: relative; padding: 24px 0 18px 64px; }
.timeline__era h2 {
  display: inline-block; font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 3vw, 28px);
  background: var(--yellow); border: var(--line); border-radius: 12px; padding: 4px 18px; box-shadow: var(--shadow-sm);
}
.timeline__item {
  position: relative; margin: 0 0 22px 64px; padding: 20px 22px;
  background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
.timeline__item::before {
  content: ""; position: absolute; left: -52px; top: 26px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint); border: var(--line);
}
.timeline__item--event { background: var(--pink-soft); }
.timeline__item--event::before { background: var(--pink); }
.timeline__title { font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.timeline__title a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.timeline__body p { font-size: 15px; }
.timeline__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.timeline__meta div {
  display: flex; gap: 6px; font-size: 14px; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px;
  background: var(--yellow-soft);
}
.timeline__meta dt { font-weight: 800; }
.timeline__meta dd { margin: 0; font-weight: 700; }
.timeline__charas { display: flex; }
.timeline__charas img {
  width: 96px; border: var(--line); border-radius: 14px; background: var(--card);
}
.timeline__charas img + img { margin-left: -26px; }
.timeline__charas--3 img { width: 84px; }
.timeline__song { width: 120px; border: var(--line); border-radius: 14px; }
@media (max-width: 640px) {
  .timeline::before { left: 12px; }
  .timeline__era { padding-left: 40px; }
  .timeline__item { margin-left: 40px; grid-template-columns: 1fr; padding: 18px; }
  .timeline__item::before { left: -38px; width: 18px; height: 18px; }
  .timeline__charas { flex-wrap: wrap; gap: 8px; }
  .timeline__charas img + img { margin-left: 0; }
  .timeline__charas img, .timeline__charas--3 img { width: 76px; }
}

/* ---------- ファンアート ---------- */
.award { margin-bottom: 64px; }
.award__title { text-align: center; margin-bottom: 30px; }
.award__title span {
  display: inline-block; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.6vw, 34px);
  padding: 6px 28px; border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.award--gold .award__title span { background: var(--yellow); }
.award--silver .award__title span { background: var(--sky); }
.award--bronze .award__title span { background: var(--pink); }
.fanart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fanart-grid--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.award--bronze .fanart-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fanart-card {
  background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.fanart-card__pics { display: grid; border-bottom: var(--line); background: var(--sky-soft); }
.fanart-card__pics--2 { grid-template-columns: repeat(2, 1fr); gap: 3px; background: var(--ink); }
.fanart-card__pics--3 { grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--ink); }
.fanart-card__pic { padding: 0; border: 0; background: var(--card); cursor: zoom-in; display: block; }
.fanart-card__pic img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.fanart-card__pic:hover img { transform: scale(1.04); }
.fanart-card__pics { overflow: hidden; }
.fanart-card__noimg {
  aspect-ratio: 1; display: grid; place-items: center; background: var(--mint-soft);
  border-bottom: var(--line); font-family: var(--font-display); font-size: 22px; text-decoration: none;
}
.fanart-card__body { padding: 16px 18px 20px; }
.fanart-card__name { font-weight: 800; font-size: 17px; }
.fanart-card__note { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.fanart-card__links { margin-top: 8px; font-size: 14px; }
@media (max-width: 860px) {
  .fanart-grid, .award--bronze .fanart-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 520px) {
  .fanart-grid, .award--bronze .fanart-grid { grid-template-columns: 1fr; }
}

.outline { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; padding: 36px; }
.outline h3 {
  font-weight: 800; font-size: 17px; margin-top: 22px; padding-left: 12px; border-left: 6px solid var(--pink);
}
.outline h3:first-child { margin-top: 0; }
.outline p, .outline li { font-size: 15px; margin-top: 6px; }
.outline ul { list-style: disc; padding-left: 1.4em; }
.outline__poster { border: var(--line); border-radius: 14px; overflow: hidden; }
@media (max-width: 860px) {
  .outline { grid-template-columns: 1fr; padding: 26px 22px; }
  .outline__poster { max-width: 360px; margin-inline: auto; }
}

/* 画像の拡大表示 */
.lightbox {
  border: var(--line); border-radius: var(--radius); padding: 0; background: var(--card);
  max-width: min(92vw, 1000px); max-height: 90vh; box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(27, 23, 20, .72); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; }

/* ---------- フッター ---------- */
.site-footer { margin-top: 40px; background: var(--ink); color: var(--paper); }
.site-footer__cta {
  text-align: center; padding: 56px 16px 48px; background: var(--yellow); color: var(--ink);
  border-top: var(--line); border-bottom: var(--line);
}
.site-footer__lead { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); margin-bottom: 22px; }
.site-footer__inner {
  width: min(var(--wrap), 100% - 32px); margin-inline: auto; padding: 40px 0 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.site-footer__logo { width: 150px; filter: invert(1); mix-blend-mode: screen; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 700; font-size: 14px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__copy { width: 100%; font-size: 13px; opacity: .7; }
