/* /stapre-election/assets/css/style.css */


/* ===== reset for full-bleed ===== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont,
               "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Meiryo", sans-serif;
  font-size: 1.125rem;
  scroll-behavior: smooth;
}

.election{
  --pad: 24px;
  --max: 1080px;

  /* 総選挙テーマカラー：ここを変えるだけで全体が変わる */
  --primary: #e6005c;
  --primary2:#ff4d8d;
  --bg:      #fff7fb;
  --text:    #111;
  --line:    #ffd1e2;
}

.election *{ box-sizing: border-box; }
.election a{ color: inherit; text-decoration: none; }
.election img{ max-width: 100%; height: auto; display: block; }

/* ===== Hero (SP default) ===== */
.hero{
  position: relative;
  width: 100%;
  background: url("/stapre-election/img/hero_bg_sp.webp") center top / 100% auto no-repeat;
}

/* PC */
@media (min-width: 768px){
  .hero{
    background-image: url("/stapre-election/img/hero_bg_pc.webp");
    background-size: 100% auto;
  }
}

/* =========================
   HERO LAYOUT
========================= */

.hero__inner{
  padding: 18px 16px 28px;
  box-sizing: border-box;
  display: grid;
  align-content: start;
}


.hero__toplogos{
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.hero__toplogo{
  width: 106px;
  height: auto;
  display: block;
}

.hero__toplogo--right{
  width: 92px;
}

@media (min-width: 768px){
  .hero__toplogos{
    top: 20px;
    left: 50px;
    right: 50px;
  }
  .hero__toplogo{
    width: calc(680px * 0.2);
  }

  .hero__toplogo--right{
    width: calc(590px * 0.2);
  }

}




/* @media (max-width: 767px){
  *{ outline: 1px solid rgba(255,0,0,.35); }
}要素を赤枠で表示　デバック用*/

.hero{
  overflow: hidden;
}

/* タイトル周りの“舞台” */
.hero__stage{
  position: relative;
  width: 100%;
  margin-top: 52px;
  display: grid;
  place-items: center;
}

/* タイトル＋テーマを中央 */
.hero__titlewrap{
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* タイトル画像 */
.hero__titleImg{
  position: relative;
  z-index: 3;
  top: -23px;
}
.hero__titleImg img{
  width: 80vw;
  height: auto;
  display: block;
  margin: 0 auto;
}



@media (min-width: 768px){
  .hero__titleImg{
    top: -40px;
  }
  .hero__titleImg img{
    width: clamp(320px, 34vw, 680px);
  }

}

/* ===== テーマ全体（白70%地） ===== */
.hero__theme{
  display: inline-block;
  padding: 14px 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  text-align: center;

  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  margin-top: -30px;
  position: relative;
  z-index: 5
}

@media (min-width: 768px){
  .hero__theme{
    margin-top: 0px;
    padding: 14px 40px;
  }
}


/* ===== ラベル（作品テーマ：色ベタ角丸） ===== */
.hero__themeLabel{
  display: inline-block;
  margin: 0 auto 10px;
  padding: 6px 16px;

  background: var(--primary);
  color: #fff;

  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.12em;

  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* ===== メインタイトル ===== */
.hero__themeTitle{
  margin: 0;
  padding: 6px 10px;

  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: #0b1b3f;
  text-align: center;

  animation: mainTitleIn 1s ease-out both;
}

/* ===== サブタイトル ===== */
.hero__themeTitle span{
  display: block;
  margin-top: 6px;

  font-size: 0.45em;      /* メインに対してかなり小さく */
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.85;

  animation: subTitleIn 1.2s ease-out both;
  animation-delay: .4s;
}

@media (min-width: 768px){
  .hero__themeTitle{
    font-size: clamp(1.6rem, 3.2vw, 2.3rem); /* PCはvw係数を弱める */
  }
  .hero__themeTitle span{
    font-size: 0.48em; /* サブも少しだけ読みやすく */
  }
}

/* ===== Animations ===== */

/* メイン：下から浮いてスケール */
@keyframes mainTitleIn{
  0%{
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(2px);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* サブ：ふわっとフェード */
@keyframes subTitleIn{
  0%{
    opacity: 0;
    transform: translateY(12px);
  }
  100%{
    opacity: 0.85;
    transform: translateY(0);
  }
}



/* =========================
   GLOW (RING + ORBIT)
========================= */

/* グローはタイトル画像の中心に合わせる */
.hero-glow{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(86vw, 560px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 1;
}

/* 光る円リング */
.glow-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(255,255,255,0.30),
    0 0 44px rgba(0,180,255,0.35),
    0 0 80px rgba(0,120,255,0.35);
  animation: glowPulse 3.5s ease-in-out infinite;
}

/* 回転する光点 */
.glow-orbit{
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  animation: spin 10s linear infinite;
}
.glow-orbit::before{
  content:"";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7fe7ff;
  box-shadow:
    0 0 10px #7fe7ff,
    0 0 20px #4fdcff,
    0 0 35px #1bbcff;
}

/* タイトル画像がグローの中央に来るように、グロー分の上下を確保 */
.hero__titlewrap{
  padding-top: calc(min(86vw, 560px) * 0.06); /* グローの上側の見切れ防止（微調整用） */
}

/* =========================
   FLOATING IMAGES
========================= */

/* ふわふわ画像共通 */
.hero__float{
  position: absolute;
  z-index: 4;
  width: min(30vw, 220px);
  height: auto;
  animation: floatY 3.2s ease-in-out infinite;
  will-change: transform;
}

/* SP：左下 / 右下 */
.hero__float--1{
  left: 10px;
  bottom: 50px;
}
.hero__float--2{
  right: 10px;
  bottom: 10px;
  animation-delay: .6s;
}

/* PC：円の左 / 右 */
@media (min-width: 768px){
  .hero__stage{
    margin-top: 2%;
  }

  .hero__float{
    width: 220px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero__float--1{
    left: max(18px, calc(50% - 520px));
  }
  .hero__float--2{
    right: max(18px, calc(50% - 520px));
  }
}


@media (min-width: 768px){
  .hero__inner{
    display: grid;
    align-content: start;
  }

  /* 光リング */
  .hero-glow{
    width: clamp(380px, 37vw, 720px);
  }

  /* テーマ */
  .hero__theme{
  /* 上 下 / 左 右 を分離 */
  padding: 
    clamp(6px, 0.8vw, 10px)    /* 上 */
    clamp(16px, 2vw, 42px)    /* 左右 */
    clamp(10px, 1.5vw, 18px); /* 下 */

  margin-top: -2%;
}


  /*ふわふわ画像 */
  .hero__float{
    width: clamp(140px, 16vw, 240px);
  }
}





/* =========================
   ANIMATIONS
========================= */

@keyframes glowPulse{
  0%{ opacity: .65; filter: blur(0px); }
  50%{ opacity: 1;   filter: blur(1.4px); }
  100%{ opacity: .65; filter: blur(0px); }
}

@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

@keyframes floatY{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
  100%{ transform: translateY(0); }
}


/* =========================
   SECTION BASE（共通）
========================= */


.sec__inner{
  max-width: 1100px;
  margin: 0 auto;
}

/* 見出し（今後の箇所にも共通） */
.sec__title{
  margin: 0 0 18px;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(1.4rem, 3.8vw, 2.1rem);
}

/* 本文 */
.sec__body p{
  margin: 0 0 12px;
  text-align: left;
  line-height: 1.65;
  font-size: 1rem;
}

/* =========================
   ABOUT（背景＋白カード）
========================= */
#about.sec{
  background-color: #f5d646;

  background-image:
    radial-gradient(circle, rgba(255, 245, 180, 0.45) 2.5px, transparent 3.5px),
    radial-gradient(circle, rgba(255, 245, 180, 0.45) 2.5px, transparent 3.5px);

  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
  background-repeat: repeat;
  padding: 56px var(--pad) 44px;
}

#about .sec__inner{
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

@media (min-width: 768px){
  #about.sec{
    padding: 80px var(--pad) 70px;
  }

  #about .sec__inner{
    padding: 64px 80px;   /* PCはさらにゆったり */
  }
}

#about .sec__title{
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}



/* 白カード：初期（非表示寄り） */
#about .sec__inner{
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(2px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease, box-shadow .7s ease;
  will-change: opacity, transform, filter;
}

/* 表示状態 */
#about .sec__inner.is-inview{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}


/* =========================
   THEME（白カードのみ）
========================= */
#theme.sec{
  background:
    radial-gradient(circle, rgba(255,255,255,0.12) 2px, transparent 3px) 0 0 / 36px 36px repeat,
    radial-gradient(circle, rgba(255,255,255,0.10) 2px, transparent 3px) 18px 18px / 36px 36px repeat,
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(160deg, #0b4fa8 0%, #0e63c7 40%, #1784e6 100%);
  padding: 56px var(--pad) 44px;
  position: relative;
  overflow: hidden;
}
#theme .sec__inner{
  background: rgba(255,255,255,0.96);  /* ほぼ白 */
  border-radius: 18px;
  padding: 30px 24px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

@media (min-width: 768px){
  #theme.sec{
    padding: 80px var(--pad) 70px;
  }

  #theme .sec__inner{
    padding: 64px 80px;
  }
}

/* タイトル統一 */
#theme .sec__title{
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* =========================
   THEME BADGE（FULL + ANIM）
========================= */

#theme .badge{
  position: relative;

  /* ★flex じゃないと gap/中央寄せが効かない */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin: 0 auto 36px;
  padding: 28px 20px 20px;

  text-align: center;
  max-width: 92%;

  /* 上品ベージュ（内側）＋金グラデ枠（外側） */
  border: 7px solid transparent;
  border-radius: 14px;

  background-image:
    linear-gradient(#f6f1e8, #f6f1e8),
    linear-gradient(
      135deg,
      #fff1a8 0%,
      #d4af37 25%,
      #fff6c9 50%,
      #c9a227 75%,
      #fff1a8 100%
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;

  /* 金枠の流れ */
  background-size: 100% 100%, 300% 300%;
  animation: goldFlow 6s linear infinite;

  /* スクロールイン初期 */
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: opacity .9s ease, transform .9s ease;

  box-shadow: none;
}



#theme .badge.is-inview{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 外側の薄金 二重枠 */
#theme .badge::before{
  content: "";
  position: absolute;
  inset: -9px;                     /* ← -6px → -9px */
  border-radius: 18px;             /* ← 26px → 18px */
  border: 2.5px solid rgba(212,175,55,0.55);
  pointer-events: none;
}


/* タイトル */
#theme .badge__title{
  position: relative; /* ★星を乗せるため必須 */
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 1rem;
}

/* サブ */
#theme .badge__sub{
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b6b6b;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

/* 星装飾（キラッ） */
#theme .badge__title::before,
#theme .badge__title::after{
  content: "✦";
  position: absolute;
  top: -18px;
  font-size: 14px;
  color: #d4af37;
  opacity: 0.85;
  animation: starTwinkle 2.8s ease-in-out infinite;
  pointer-events: none;
}

#theme .badge__title::before{ left: -26px; }
#theme .badge__title::after{
  right: -26px;
  animation-delay: 1.4s;
}

/* PC幅を縮める */
@media (min-width: 768px){
  #theme .badge{
    max-width: 520px;
    padding: 30px 30px 25px;
  }
  #theme .badge__title{ font-size: 1.9rem; }
  #theme .badge__sub{ font-size: 1.05rem; }
}

/* animations */
@keyframes goldFlow{
  0%{ background-position: 0 0, 0% 50%; }
  100%{ background-position: 0 0, 100% 50%; }
}

@keyframes starTwinkle{
  0%{ opacity: .4; transform: scale(0.8) rotate(0deg); }
  40%{ opacity: 1; transform: scale(1.2) rotate(20deg); }
  60%{ opacity: 1; transform: scale(1.3) rotate(-20deg); }
  100%{ opacity: .4; transform: scale(0.8) rotate(0deg); }
}





/* テキスト */
#theme .sec__body p{
  text-align: left;
  line-height: 1.9;
  color: #333;
}

/* 白カード：初期（非表示寄り） */
#theme .sec__inner{
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(2px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease, box-shadow .7s ease;
  will-change: opacity, transform, filter;
}

/* 表示状態 */
#theme .sec__inner.is-inview{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}


/* =========================
   ENTRY（エントリー部門紹介）
   ※ about/theme/vote と同じ「白カード＋余白」前提
========================= */

/* 背景は theme の上品グレーに揃えるなら（任意） */
#entry.sec{
  background: linear-gradient(160deg, #f3f4f6 0%, #eef1f4 40%, #e7ebef 100%);
  padding: 56px var(--pad) 44px; /* 他と同様 */
}

@media (min-width: 768px){
  #entry.sec{
    padding: 80px var(--pad) 70px; /* 他と同様 */
  }
}

/* 白カードは共通 .sec__inner を使うので、ここでは触らない */

#entry .sec__title{
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* 本文 */
#entry .sec__body{
  margin-top: 10px;
}





/* カード一覧：SP=縦 / PC=2列 */
#entry .cards{
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 14px;
}

/* カード */
#entry .card{
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 16px 16px;
}

/* 見出し */
#entry .card__title{
  margin: 0 0 8px;
  font-size: 1.6rem;     /* dt等と揃えやすい固定サイズ */
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  letter-spacing: .04em;
}

/* 説明文 */
#entry .card__desc{
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #222;
  text-align: left;
}

/* PC：2列＋余白アップ */
@media (min-width: 768px){
  #entry .cards{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  #entry .card{
    padding: 18px 18px;
  }
}

/* =========================
   ENTRY BODY + CARDS ANIM
========================= */

/* entry本文フェード */
#entry .sec__body{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}

#entry .sec__inner.is-inview .sec__body{
  opacity: 1;
  transform: translateY(0);
}

/* カード共通 */
#entry .entry-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 10px;
  padding: 18px 16px;

  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);

  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
}

#entry .sec__inner.is-inview .entry-card{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   TAG IMAGE
========================= */

#entry .entry-tag{
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 6px;

  animation: tagFloat 3.2s ease-in-out infinite;
}

/* PC少し大きく */
@media (min-width: 768px){
  #entry .entry-tag{
    width: 140px;
  }
}

/* =========================
   TEXT
========================= */

#entry .card__title{
  margin: 2px 0 0;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
}

#entry .card__desc{
  margin: 0;
  font-size: 1.0rem;
  line-height: 1.6;
  max-width: 26em;
}

/* =========================
   ANIMATION
========================= */

@keyframes tagFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}



/* =========================
   VOTE（審査・投票期間）
========================= */
#vote.sec{
  background-color: #f5d646;

  background-image:
    radial-gradient(circle, rgba(255, 245, 180, 0.45) 2.5px, transparent 3.5px),
    radial-gradient(circle, rgba(255, 245, 180, 0.45) 2.5px, transparent 3.5px);

  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
  background-repeat: repeat;
  padding: 42px var(--pad) 30px;
}
#vote .sec__inner{
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 30px 24px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

@media (min-width: 768px){
  #vote.sec{
    padding: 80px var(--pad) 70px;
  }

  #vote .sec__inner{
    padding: 64px 80px;
  }
}

/* タイトル統一 */
#vote .sec__title{
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* 白カード：初期（非表示寄り） */
#vote .sec__inner{
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(2px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease, box-shadow .7s ease;
  will-change: opacity, transform, filter;
}

/* 表示状態 */
#vote .sec__inner.is-inview{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

/* =========================
   kv（定義リストUI）
========================= */

#vote .kv{
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

/* 行 */
#vote .kv__row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

/* ===== dt：色ベタ＋白文字（サイズ統一） ===== */
#vote .kv__row dt{
  display: flex;
  align-items: center;
  justify-content: center;   /* 中央揃え（中身） */

  width: 100%;               /* SP時：横幅いっぱい */
  max-width: 220px;          /* PC時もサイズ統一 */

  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;

  padding: 10px 14px;
  border-radius: 999px;

  font-size: 0.95rem;        /* 全部同じサイズ */
  font-weight: 700;
  letter-spacing: .06em;

  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* 値 */
#vote .kv__row dd{
  margin: 0;
  font-size: 1.125rem;      /* 18px */
  font-weight: 600;
  color: #222;
  line-height: 1.6;
}

/* ===== スマホのみ中央揃え ===== */
@media (max-width: 767px){
  #vote .kv__row{
    text-align: center;
  }

  #vote .kv__row dt{
    margin: 0 auto;   /* 中央寄せ */
  }

  #vote .kv__row dd{
    text-align: center;
  }
}
#vote .kv ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

#vote .kv li{
  margin: 0;
  padding: 0;
}

#vote .kv .youtube-wrap{
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

#vote .kv .youtube-wrap iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ===== PC：横並び＋dt中央揃え ===== */
@media (min-width: 768px){
  #vote .kv__row{
    grid-template-columns: 220px 1fr;  /* dt幅固定で統一 */
    align-items: center;
    padding: 18px 22px;
    gap: 18px;
  }

  #vote .kv__row dt{
    justify-self: center;   /* ← dt自体を列の中央に配置 */
    margin: 0;              /* auto解除 */
  }

  #vote .kv__row dd{
    text-align: left;
    font-size: 1.125rem;
  }
}



/* =========================
   FULL BLEED PHOTO GRID（比率維持版）
========================= */

.photo-section{
  padding: 0;
  margin: 0;
  width: 100%;
}

.photo-bleed{
  width: 100%;
}

/* SP：2列 */
.photo-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
  grid-auto-rows: auto;
  align-items: start;
}

/* セル */
.photo-grid__item{
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: auto !important; /* or unset !important */
  height: auto !important;
}


/* 画像：比率維持・トリミングなし */
.photo-grid__item img{
  width: 100%;
  height: auto;        /* ← 縦横比維持 */
  display: block;
}

/* PC：4列1行 */
@media (min-width: 768px){
  .photo-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
   投票方法
========================= */


#howto.sec{
  background: linear-gradient(160deg, #f3f4f6 0%, #eef1f4 40%, #e7ebef 100%);
  padding: 56px var(--pad) 44px; /* 他と同様 */
  position: relative;
}

#howto.sec::before{
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 16px;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}

#howto.sec::before{
  top: 14px;
  background: linear-gradient(90deg, #ffd86b 0%, #ff9eb5 50%, #8fc8ff 100%);
  opacity: .95;
}


@media (min-width: 768px){
  #howto.sec{
    padding: 80px var(--pad) 70px; /* 他と同様 */
  }
}


#howto .sec__title{
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.youtube-wrap{
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.youtube-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* =========================
   ACTIVITY（取り組み）
========================= */

#activity.sec{
  background:
    radial-gradient(circle, rgba(255,255,255,0.12) 2px, transparent 3px) 0 0 / 36px 36px repeat,
    radial-gradient(circle, rgba(255,255,255,0.10) 2px, transparent 3px) 18px 18px / 36px 36px repeat,
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(160deg, #0b4fa8 0%, #0e63c7 40%, #1784e6 100%);
  padding: 56px var(--pad) 44px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px){
  #activity.sec{
    padding: 100px var(--pad) 90px;
  }
}


#activity .sec__inner{
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 30px 24px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);

  /* ▼ アニメ初期状態（他と同じ） */
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(2px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease, box-shadow .7s ease;
  will-change: opacity, transform, filter;
}

/* ▼ 表示状態 */
#activity .sec__inner.is-inview{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

@media (min-width: 768px){
  #activity.sec{
    padding: 80px var(--pad) 70px;
  }

  #activity .sec__inner{
    padding: 64px 80px;
  }
}

/* タイトル統一 */
#activity .sec__title{
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* 本文 */
#activity .sec__body p{
  text-align: left;
  line-height: 1.9;
  color: #333;
}

/* CTAエリア中央寄せ */
.sec__cta{
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ボタン基本 */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px; /* 丸ボタン */
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all .25s ease;
  cursor: pointer;
}

/* プライマリボタン */
.btn--primary{
  text-align: center;
  color: #fff !important;                       /* 文字白 */
  background: #20b0dc;              /* グラデ青 */
  
  padding: 12px 56px;                /* ← しっかりボタン感 */
  font-size: 1.0rem;               /* = 18px */
  box-shadow: 
    0 3px 12px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.35);
  line-height: 1.3;
}

/* hover */
.btn--primary:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 2px 3px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.45);
  filter: brightness(1.05);
}

/* active */
.btn--primary:active{
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 6px 16px rgba(0,0,0,0.25) inset;
}

/* SP微調整 */
@media (max-width: 767px){
  .btn--primary{
    padding: 16px 36px;
    font-size: 1rem; /* 16px */
  }
}

/* =========================
    過去の開催（ダーク）
========================== */
#archive {
  background: #0d1b4b; /* 他のダークセクションに合わせた紺色 */
}
#archive.sec{
  padding: 56px var(--pad) 44px; /* 他と同様 */
  position: relative;
}

@media (min-width: 768px){
  #archive.sec{
    padding: 80px var(--pad) 70px; /* 他と同様 */
  }
}


#archive .sec__title{
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}


#archive .sec__title {
  color: #fff;
}

#archive .sec__body ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

#archive .sec__body ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s, border-color 0.2s;
}

#archive .sec__body ul li a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #f5a623;
  border-top: 2px solid #f5a623;
  transform: rotate(45deg);
  flex-shrink: 0;
}

#archive .sec__body ul li a:hover {
  background: rgba(245, 166, 35, 0.15);
  border-color: #f5a623;
}
/* =========================
   PAGE TOP BUTTON
========================= */

.pagetop{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: opacity .4s ease, transform .4s ease, box-shadow .4s ease;
  z-index: 9999;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* 表示状態 */
.pagetop.fadein{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* 矢印 */
.pagetop__arrow{
  width: 12px;
  height: 12px;
  border-left: 3px solid #000;
  border-top: 3px solid #000;
  transform: rotate(45deg);
  margin-top: 4px;
}

/* hover */
@media (hover:hover){
  .pagetop:hover{
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 32px rgba(0,0,0,0.35);
  }
}

/* PC微調整 */
@media (min-width: 768px){
  .pagetop{
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
  }
}

/* デフォルト（スマホ）：改行する */
br.sp{
  display: block;
}

/* PC以上：改行しない */
@media (min-width: 768px){
  br.sp{
    display: none;
  }
}


/* ===== In-page nav ===== */
.inpage{
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.inpage__inner{ max-width: var(--max); margin: 0 auto; padding: 10px var(--pad); }
.inpage__list{
  margin: 0; padding: 0; list-style: none;
  display: flex; gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.inpage__list a{
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

/* ===== Sections ===== */
.sec{
/*  padding: 34px var(--pad);
  background: #fff;
  color: var(--text);
  scroll-margin-top: 72px;*/
}
/*.sec:nth-of-type(even){ background: var(--bg); }*/
.sec__inner{ max-width: var(--max); margin: 0 auto; }
.sec__title{ margin: 0 0 14px; font-size: 20px; }
.sec__cta{ margin-top: 14px; }

.badge{
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 900;
}
.note{ margin: 0 0 10px; color: #444; }

/* ===== Photos: SP 2列 / PC 4列 ===== */
.photos{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.photo{
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

/* ===== Cards ===== */
.cards{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.card{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.card__title{ margin: 0 0 6px; font-size: 16px; font-weight: 900; }
.card__desc{ margin: 0; color: #333; }

/* =========================
   WORKS CARD UPGRADE
========================= */
#works.sec{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 220, 120, 0.18) 0, rgba(255, 220, 120, 0) 32%),
    radial-gradient(circle at 85% 15%, rgba(120, 190, 255, 0.16) 0, rgba(120, 190, 255, 0) 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 170, 200, 0.14) 0, rgba(255, 170, 200, 0) 28%),
    linear-gradient(180deg, #fffdf7 0%, #f7fbff 100%);
}

#works.sec::before,
#works.sec::after{
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 16px;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}

#works.sec::before{
  top: 14px;
  background: linear-gradient(90deg, #ffd86b 0%, #ff9eb5 50%, #8fc8ff 100%);
  opacity: .95;
}

#works.sec::after{
  bottom: 14px;
  background: linear-gradient(90deg, #8fc8ff 0%, #bda8ff 50%, #ffd86b 100%);
  opacity: .9;
}


#works.sec{
  /* background: linear-gradient(160deg, #f3f4f6 0%, #eef1f4 40%, #e7ebef 100%); */
  padding: 76px var(--pad) 64px;
}

@media (min-width: 768px){
  #works.sec{
    padding: 90px var(--pad) 80px;
  }
}

#works .sec__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* カード一覧 */
#works .workcards{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

@media (min-width: 768px){
  #works .workcards{
    grid-template-columns: 1fr 1fr;
    gap: 38px;
  }
}

/* カード本体 */
#works .workcard{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

#works .sec__inner.is-inview .workcard{
  opacity: 1;
  transform: translateY(0);
}

#works .workcard:nth-child(1){ transition-delay: .05s; }
#works .workcard:nth-child(2){ transition-delay: .12s; }
#works .workcard:nth-child(3){ transition-delay: .19s; }
#works .workcard:nth-child(4){ transition-delay: .26s; }
#works .workcard:nth-child(5){ transition-delay: .33s; }
#works .workcard:nth-child(6){ transition-delay: .40s; }

#works .workcard{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* カード内余白 */
#works .workcard > *{
  margin-left: 16px;
  margin-right: 16px;
}

/* 作品名だけは端まで広げる */
#works .workcard > .workcard__title{
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 18px 16px 14px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  background: #0b2a5c;
  color: #fff;
}

/* キャプチャ */
#works .workcard__capture{
  padding: 10px 0;
  display: block;
  margin-left: 0;
  margin-right: 0;
  background: #f8f8f8;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

#works .workcard__capture img{
  width: 100%;
  height: auto;
  display: block;
}

@media (hover:hover){
  #works .workcard:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.12);
  }
}

@media (min-width: 768px){
  #works .workcard__capture img{
      width: 50%;
      margin: 0 auto;
  height: auto;
  display: block;
}

}



/* 遊んでみるボタン */
#works .workcard__play{
  margin-top: 14px;
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}

/* 情報枠 */
#works .workcard__meta{
  margin: 14px 16px 20px;
  display: grid;
  gap: 10px;
}

/* 1行 */
#works .workcard__row{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  
  border-radius: 12px;
  /* background: rgba(11,79,168,0.05);
  border: 1px solid rgba(11,79,168,0.08); */
}
#works .workcard__row--plan{
  padding: 10px 12px;
  background: rgba(11,79,168,0.05);
  border: 1px solid rgba(11,79,168,0.08);
}

#works .workcard__row dt{
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

#works .workcard__row dd{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #222;
}

.workcard__row_name{
  font-size: 1.125rem !important;
  line-height: 1.3 !important;
  font-weight: 600;
}
/* メダル */
#works .workcard__medal{
  max-width: 250px;
  height: auto;
  display: block;
}

/* 企画書 */
#works .workcard__planBox{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  
}

#works .workcard__planLink{
  display: inline-block;
}

#works .workcard__planThumb{
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
}

#works .workcard__planBtn{
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  color: #0b2a5c;
  background: rgba(11,79,168,0.08);
  border: 2px solid rgba(11,79,168,0.14);
  transition: all .2s ease;
}

@media (hover:hover){
  #works .workcard__planBtn:hover{
    background: rgba(11,79,168,0.14);
    border-color: rgba(11,79,168,0.25);
    transform: translateY(-1px);
  }
}

/* 作品をもっと見る */
#works .sec__cta{
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* =========================
   TEAMS（出場チーム一覧）
   背景=色地 / 中身=白カード
========================= */

#teams.sec{
  /* 画面全体に色地 */
  background:
    radial-gradient(circle, rgba(255,255,255,0.18) 2px, transparent 3px) 0 0 / 34px 34px repeat,
    radial-gradient(circle, rgba(255,255,255,0.12) 2px, transparent 3px) 17px 17px / 34px 34px repeat,
    linear-gradient(160deg, #1677d8 0%, #0e63c7 45%, #0b4fa8 100%);
  padding: 56px var(--pad) 44px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px){
  #teams.sec{
    padding: 80px var(--pad) 70px;
  }
}

#teams .sec__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* 白カードは共通 .sec__inner がある前提。なければここで上書きしてOK */
#teams .sec__inner{
  background: rgba(255,255,255,0.92);
  padding: 50px 24px;
  border-radius: 20px;
}

/* タイトル下の注記 */
#teams .note{
  margin: 0 0 14px;
  text-align: center;
  font-weight: 700;
  color: #333;
}


/* =========================
   TEAMS NAV（教室＋チームアンカー）
========================= */

#teams .teams-nav{
  margin: 18px 0 26px;
  display: flex;
  justify-content: center;
}

#teams .teams-nav__groups{
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 980px;
}

/* PC：教室ブロック2列 */
@media (min-width: 768px){
  #teams .teams-nav__groups{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* 教室グループカード */
#teams .teams-nav__group{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 14px 14px;
  text-align: center;
}

/* 教室名（帯ではなくテキスト見出し） */
#teams .teams-nav__school{
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 14px;
  color: #0b2a5c;
  letter-spacing: .06em;
  text-align: center;
}

/* チーム一覧 */
#teams .teams-nav__teams{
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 8px;
}

/* チームリンク */
#teams .teams-nav__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;

  text-decoration: none;
  font-weight: 800;
  font-size: 13px;

  padding: 8px 12px;
  border-radius: 999px;

  color: #0b2a5c;
  background: rgba(11,79,168,0.06);
  border: 2px solid rgba(11,79,168,0.12);

  transition: background .25s ease, border .25s ease, transform .2s ease;
}

/* ▼ 下三角 */
#teams .teams-nav__link::after{
  content: "";
  width: 0;
  height: 0;

  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #0b2a5c;

  opacity: .8;
  margin-top: 2px;
}

/* hover */
@media (hover:hover){
  #teams .teams-nav__link:hover{
    background: rgba(11,79,168,0.12);
    border-color: rgba(11,79,168,0.22);
    transform: translateY(-1px);
  }

  #teams .teams-nav__link:hover::after{
    opacity: 1;
  }
}



/* =========================
   エリア見出し（関東/関西/その他）
========================= */

#teams .subhead{
  margin: 26px 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
}

/* =========================
   チームカード一覧（1チーム＝1カード）
========================= */

#teams .team-cards{
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  gap: 24px;
}

/* SP: 1列 / PC: 2列 */
@media (min-width: 768px){
  #teams .team-cards{
    margin: 18px 0 26px;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* 1カード本体 */
#teams .team-card{
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  scroll-margin-top: 90px; /* stickyの高さに合わせて調整 */
}

/* 教室名：小さめの帯 */
#teams .team-card__school{
  margin: 0;
  padding: 10px 12px;

  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;

  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(11,79,168,0.95),
    rgba(23,132,230,0.95)
  );
}

/* 画像：カード横幅いっぱい（縦横比維持） */
#teams .team-card__photo{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #fff;
}

/* チーム名：色地（淡色）＋中央 */
#teams .team-card__name{
  margin: 0;
  padding: 12px 12px;

  font-weight: 900;
  color: #0b2a5c;
  line-height: 1.4;
  font-size: 16px;
  text-align: center;

  background: #fff;
  border-top: 1px solid rgba(11,79,168,0.10);
}

/* “準備中”のnote（もし使うなら） */
#teams .note{
  color: #666;
  font-weight: 700;
}


/* ===== kv ===== */
.kv{ margin: 0; }
.kv__row{ display:flex; gap: 10px; padding: 10px 0; border-top: 1px solid #eee; }
.kv__row dt{ min-width: 6.5em; color:#666; font-weight: 800; }
.kv__row dd{ margin:0; font-weight: 900; }

/* ===== Footer ===== */
.footer{ padding: 26px var(--pad) 40px; background: #0f0f14; color: #fff; }
.footer__inner{ max-width: var(--max); margin: 0 auto; }
.footer__insta{ display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.footer__instaIcon{
  width: 18px; height: 18px; border-radius: 4px;
  background: linear-gradient(135deg, #ffd76a, #ff5fa2, #7b61ff);
}
.footer__copy{ margin: 12px 0 0; opacity: .85; font-size: 12px; }

/* ===== PC ===== */
@media (min-width: 768px){
  .election{ --pad: 24px; }
  /*.hero__titleImg img{ max-width: 420px; }*/
  /*.sec__title{ font-size: 24px; }*/
  .photos{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workcards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school__teams{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
