@charset "UTF-8";
/* ==========================================================
   マニフェスト / 規約
   ========================================================== */
.manifest {
  overflow: clip;
  background: var(--c-lavender-2);
}
.manifest__inner {
  max-width: 1168px;
  padding: calc(96 * var(--u)) 24px calc(150 * var(--u));
}
.manifest__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(18 * var(--u));
  margin-bottom: calc(80 * var(--u));
}
.manifest__title {
  font-family: var(--f-pop);
  font-size: calc(40 * var(--u));
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}
.manifest__title span { color: var(--c-purple); }

.manifest-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  --gap: clamp(16px, calc(32 * var(--u)), 32px);
  gap: var(--gap);
}
.m-card {
  display: flex;
  flex: 0 1 calc((100% - var(--gap) * 2) / 3);
  max-width: 320px;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 372px;
  padding: 24px clamp(14px, calc(22 * var(--u)), 22px);
  border-radius: 20px;
  background: #fff;
  filter: drop-shadow(0 8px 12px rgba(31, 37, 87, .1));
}
.m-card__book { width: 110px; height: 156px; object-fit: cover; }
.m-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  margin-top: 14px;
}
.m-card__name {
  color: var(--c-pink);
  font-family: var(--f-pop);
  font-size: clamp(17px, calc(24 * var(--u)), 24px);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
.m-card__name--small { font-size: clamp(15px, calc(21 * var(--u)), 21px); }
.m-card__name span {
  background: linear-gradient(transparent 62%, var(--c-marker) 62%, var(--c-marker) 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/*
  マニフェスト本文の太さ
  M PLUS Rounded 1c は 100 / 300 / 400 / 500 / 700 / 800 / 900 が使える。
  現在 index.html で読み込んでいるのは 500 と 800（見出し・本文は 800）。
  400 や 700 にする場合は、index.html の Google Fonts の
  「M+PLUS+Rounded+1c:wght@500;800」に数字を足す（例：wght@400;500;700;800）
*/
.m-card__text {
  flex: 1;
  margin-top: 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
}

/*
  投票するボタン
  クリックの可否は js/vote.js の VOTE_ENABLED で切り替えます。
  href="#" のボタンもクリックできません。
*/
.btn-vote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  margin-top: 12px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--c-pink);
  color: #fff;
  font-size: clamp(18px, calc(24 * var(--u)), 24px);
  line-height: 1.5;
  white-space: nowrap;
  /* 影・ホバーは css/common.css「ボタン共通：影とホバー」 */
}
.btn-vote img { flex-shrink: 0; width: 22px; }
.btn-vote:not([href]), .btn-vote[href="#"] { cursor: default; }

/* 「投票したい資格がこの中にない！」カード */
.m-card__book--q {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: #ffe7a7;
  color: #777;
  font-family: var(--f-dela);
  font-size: 66px;
  font-weight: 400;
  line-height: 1;
}
/* 見出しは他のカードと同じ高さ、ボタンは下端に揃える */
.m-card--other .btn-vote { margin-top: auto; }

/* ------------------------------
   もっと見る
   JS有効時のみ、7枚目以降のカードを閉じておく
------------------------------ */
.manifest-more {
  display: none;
  justify-content: center;
  margin-top: calc(80 * var(--u));
}
.js .manifest-more { display: flex; }
.js .manifest:not(.is-expanded) .m-card:nth-child(n+7) { display: none; }
.manifest.is-expanded .manifest-more { display: none; }

.btn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 462px;
  max-width: 100%;
  height: 87px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--c-purple);
  color: #fff;
  font-size: clamp(28px, calc(40 * var(--u)), 40px);
  line-height: 1.5;
  white-space: nowrap;
  /* 影・ホバーは css/common.css「ボタン共通：影とホバー」 */
}
.btn-more img { flex-shrink: 0; width: 40px; transform: rotate(90deg); }

/* 閉じている間は下の方の装飾を出さない */
.js .manifest:not(.is-expanded) :is(.mf-rings, .mf-diamond, .mf-clip, .mf-marker-p, .mf-book, .mf-books) { display: none; }
.js .manifest:not(.is-expanded) .mf-pencil { --cx: 114; --cy: 1256; }

/* 規約 */
.terms {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: calc(80 * var(--u)) auto 0;
  padding: 40px clamp(20px, calc(48 * var(--u)), 48px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 37, 87, .1);
}
.terms__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-pop);
  min-height: 56px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
}
.terms__title img { width: 30px; }
.terms__box {
  width: 100%;
  height: 260px;
  padding: 22px 16px 22px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 2px solid #d9d6ea;
  border-radius: 12px;
  scrollbar-color: var(--c-navy) #e7e5f2;
  scrollbar-width: thin;
}
.terms__box::-webkit-scrollbar { width: 6px; }
.terms__box::-webkit-scrollbar-track { margin: 18px 0; border-radius: 3px; background: #e7e5f2; }
.terms__box::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--c-navy); }
.terms__text {
  padding-right: 24px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.mf-mega { --cx: 254; --cy: 167.4; --w: 300; }
.mf-scroll { --cx: 1243.5; --cy: 152.4; --w: 399; }
.mf-book { --cx: 1264.5; --cy: 3308; --w: 495; }
.mf-books { --cx: 129; --cy: 3450; --w: 462; }
.mf-zigzag { --cx: 38.5; --cy: 540.1; --w: 173.14; }
.mf-sun { --cx: 1398; --cy: 484.3; --w: 164; }
.mf-marker-y { --cx: 1383; --cy: 826.8; --w: 90; }
.mf-dotgrid { --cx: 1390.5; --cy: 1231.7; --w: 269; }
.mf-lines { --cx: 119; --cy: 1043.8; --w: 38.2; }
.mf-pencil { --cx: 59.3; --cy: 1448; --w: 105.6; --r: -19.75deg; }
.mf-rings { --cx: 1353; --cy: 1640.3; --w: 44.09; --r: 90deg; }
.mf-diamond { --cx: 102; --cy: 1899.3; --w: 86; }
.mf-clip { --cx: 1315; --cy: 2350; --w: 72; }
.mf-marker-p { --cx: 110; --cy: 2720; --w: 96.5; }

@media (max-width: 767.98px) {
  .manifest__inner { max-width: calc(375 * var(--u)); padding: calc(100 * var(--u)) calc(16 * var(--u)) calc(100 * var(--u)); }
  .manifest__heading { gap: calc(4 * var(--u)); margin-bottom: calc(24 * var(--u)); }
  .manifest__heading .slash { width: calc(18 * var(--u)); }
  .manifest__title { font-size: calc(22 * var(--u)); }

  /* SPは1カラムの横組みカードで一覧性を確保する */
  .manifest-list { gap: 16px; }
  .m-card {
    flex: 1 1 100%;
    max-width: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 16px 14px;
    border-radius: 16px;
  }
  .m-card__book { flex-shrink: 0; width: calc(88 * var(--u)); height: calc(125 * var(--u)); }
  .m-card__body { margin-top: 0; min-height: calc(125 * var(--u)); }
  .m-card__name, .m-card__name--small { font-size: calc(18 * var(--u)); text-align: left; }
  .m-card__text { margin-top: 6px; font-size: calc(13 * var(--u)); line-height: 1.6; }
  .btn-vote { height: 44px; margin-top: 8px; padding: 6px 6px 6px 14px; font-size: calc(17 * var(--u)); }
  .btn-vote img { width: 20px; }

  .m-card__book--q { font-size: calc(52 * var(--u)); }
  .m-card--other .m-card__body { justify-content: space-between; }
  .manifest-more { margin-top: calc(32 * var(--u)); }
  .btn-more { width: calc(280 * var(--u)); height: calc(60 * var(--u)); gap: 10px; padding: 6px 6px 6px 16px; font-size: calc(24 * var(--u)); }
  .btn-more img { width: calc(30 * var(--u)); }

  .terms { margin-top: calc(40 * var(--u)); padding: 24px 16px; border-radius: 16px; gap: 14px; }
  .terms__title { min-height: 0; font-size: calc(24 * var(--u)); }
  .terms__title img { width: calc(24 * var(--u)); }
  .terms__box { height: 300px; padding: 14px 10px 14px 14px; }
  .terms__text { padding-right: 10px; font-size: calc(13 * var(--u)); }

  .mf-mega { --cx: 76; --cy: 54; --w: 112; }
  .mf-scroll { --cx: 310; --cy: 50; --w: 118; }
  .mf-book, .mf-books, .mf-zigzag, .mf-sun, .mf-marker-y, .mf-dotgrid,
  .mf-lines, .mf-pencil, .mf-rings, .mf-diamond, .mf-clip, .mf-marker-p { display: none; }
}
