@charset "utf-8";

body {
  background-color: #008128;
}

/* ============================
ヘッダー
============================ */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 0.9rem;
  background-color: #fff;
}

/* デザインに合わせ、右端の「©H.N.F.」を除いたマーク（docomo × FIGHTERS）が中央に来るよう右へずらす */
.header__logo {
  width: 5.3rem;
  height: auto;
  transform: translateX(0.23rem);
}

@media screen and (width <= 767px) {
  .header {
    height: 0.66rem;
  }

  /* SPのロゴは「©H.N.F.」がマークの下にあり、マークが中央にそろっているためずらさない */
  .header__logo {
    width: 3.9rem;
    max-width: 100%;
    transform: none;
  }
}

/* ============================
メインビジュアル
============================ */
.main-visual {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.11rem 0 0;
  overflow: hidden;
  background-image: url('../images/mv_pc_bg.webp');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* 右下の三角マスク（人物の足元に重ねる）。画面中央を基準に配置
   デザイン幅1500pxより広い画面では右端まで横に伸ばし、マスクの右端が途中で切れて見えないようにする */
.main-visual::before {
  position: absolute;
  bottom: 0;
  left: calc(50% + 3.5rem);
  z-index: 1;
  width: max(4rem, calc(50% - 3.5rem));
  height: 5.05rem;
  pointer-events: none;
  content: '';
  background-image: url('../images/mv_mask_pc.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* キラキラ（マスクの上に重ねる） */
.main-visual::after {
  position: absolute;
  bottom: 1.37rem;
  left: calc(50% + 4.69rem);
  z-index: 2;
  width: 0.72rem;
  aspect-ratio: 144 / 140;
  pointer-events: none;
  content: '';
  background-image: url('../images/mv_star_pc.webp');
  background-repeat: no-repeat;
  background-size: contain;
}

/* デザインに合わせ、リボンの見出しが画面中央に来るよう少し左へ寄せる。
   下端は選手写真の切れ目より下を切り落とす */
.main-visual__image {
  position: relative;
  left: -0.25rem;
  display: block;
  width: 10.72rem;
  height: auto;
  margin-bottom: -0.21rem;
}

@media screen and (width <= 767px) {
  .main-visual {
    padding: 0.08rem 0.07rem 0;
    background-image: url('../images/mv_sp_bg.webp');
  }

  /* マスクとキラキラはPCのみ（SPはMV画像に含む） */
  .main-visual::before,
  .main-visual::after {
    display: none;
  }

  .main-visual__image {
    left: 0;
    width: 100%;
    margin-bottom: -0.14rem;
  }
}

/* ============================
キャンペーン概要（開催案内・応募期間・応募条件）
============================ */

/* 濃い緑のエリア。下端はV字 */
.about__intro {
  position: relative;
  padding: 0.7rem 0 calc(10% + 0.25rem);
  background-color: #004117;
}

/* V字の両脇を下の緑で塗る。深さを幅の10%にして、画面幅が変わっても角度を保つ
   1px下に伸ばし、境界に細い線が出るのを防ぐ */
.about__intro::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  aspect-ratio: 10 / 1;
  content: '';
  background-color: #099032;
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
}

.about__inner {
  width: 100%;
  max-width: 10rem;
  margin: 0 auto;
}

.about__lead-image {
  display: block;
  width: 8.46rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.about__period {
  margin-top: 0.4rem;
}

.about__condition {
  margin-top: 0.7rem;
}

.about__period-image,
.about__condition-image {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (width <= 767px) {
  .about__intro {
    padding: 0.35rem 0.2rem calc(10% + 0.3rem);
  }

  .about__inner {
    max-width: 3.51rem;
  }

  .about__lead-image {
    width: 3.45rem;
  }

  .about__period {
    margin-top: 0.25rem;
  }

  .about__condition {
    margin-top: 0.3rem;
  }
}

/* ============================
緑のエリア（応募方法〜注意事項）
============================ */

/* 背景は応募方法の上端からV字の先端までひと続きのグラデーション。上端の色は上のV字の両脇と同じ */
.guide {
  position: relative;
  padding-bottom: calc(10% + 0.08rem);
  background-image: linear-gradient(#099032, #00641f);
}

/* V字の両脇を下の濃い緑で塗る（.about__intro::after と同じ形）
   1px下に伸ばし、境界に細い線が出るのを防ぐ */
.guide::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  aspect-ratio: 10 / 1;
  content: '';
  background-color: #004117;
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
}

@media screen and (width <= 767px) {
  .guide {
    padding-bottom: calc(10% + 0.39rem);
  }
}

/* ============================
応募方法
============================ */

.apply {
  padding-top: 0.02rem;
}

.apply__inner {
  width: 100%;
  max-width: 10rem;
  margin: 0 auto;
}

.apply__title-image,
.apply__lead-image,
.apply__steps-image,
.apply__note-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.apply__title-image,
.apply__steps-image {
  width: 10rem;
}

.apply__lead {
  margin-top: 0.38rem;
}

.apply__lead-image {
  width: 8.825rem;
}

.apply__steps {
  margin-top: 0.44rem;
}

.apply__note {
  margin-top: 0.35rem;
}

.apply__note-image {
  width: 8.365rem;
}

@media screen and (width <= 767px) {
  .apply {
    padding: 0.06rem 0.2rem 0;
  }

  .apply__inner {
    max-width: 3.51rem;
  }

  .apply__title-image {
    width: 3.51rem;
  }

  .apply__lead {
    margin-top: 0.2rem;
  }

  .apply__lead-image {
    width: 3.455rem;
  }

  .apply__steps {
    margin-top: 0.3rem;
  }

  /* 緑のパネルが中央に来るよう、左にはみ出すSTEPバッジの分だけ左へずらす */
  .apply__steps-image {
    position: relative;
    left: -0.175rem;
    width: 2.95rem;
  }

  .apply__note {
    margin-top: 0.3rem;
  }

  .apply__note-image {
    width: 3.46rem;
  }
}

/* ============================
きせかえ設定方法（応募方法の中）
============================ */

/* 濃い緑の枠。見出しのリボンは上辺に重ねる */
.setting {
  position: relative;
  padding: 1.2rem 0.65rem 0.5rem;
  margin-top: 1rem;
  background-color: #025a1d;
}

.setting__title {
  position: absolute;
  top: -0.25rem;
  right: 0;
  left: 0;
  width: 4.49rem;
  margin: 0 auto;
}

.setting__title-image {
  display: block;
  width: 100%;
  height: auto;
}

/* アプリごとのカード（dポイントクラブアプリ / d払いアプリ） */
.setting-card {
  position: relative;
  padding: 0.24rem 0 0.48rem;
  text-align: center;
  background-color: #e2e8de;
  border: 1px solid #808080;
  border-radius: 0.12rem;
}

.setting-card + .setting-card {
  margin-top: 1rem;
}

/* 上の半円。円の上部だけを切り出す
   カード上辺の縁取りの線を覆い、さらに1px内側まで伸ばして、継ぎ目に線が出ないようにする */
.setting-card::before {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 50%;
  width: 1.94rem;
  height: calc(0.6rem + 2px);
  content: '';
  background-color: #e2e8de;
  clip-path: circle(0.97rem at 50% 0.97rem);
  transform: translateX(-50%);
}

.setting-card__icon {
  position: absolute;
  top: -0.345rem;
  right: 0;
  left: 0;
  display: block;
  width: 0.5rem;
  height: auto;
  margin: 0 auto;
}

.setting-card__title-image {
  display: block;
  width: 7.2rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 手順。PCは横並びで、間に右向きの矢印 */
.setting-card__steps {
  display: flex;
  gap: 0.48rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0.15rem;
}

.setting-card__step {
  position: relative;
}

.setting-card__step:not(:last-child)::after {
  position: absolute;
  top: 1.29rem;
  left: calc(100% + 0.1525rem);
  width: 0.175rem;
  height: 0.34rem;
  content: '';
  background-image: url('../images/set_arrow_pc.webp');
  background-repeat: no-repeat;
  background-size: contain;
}

.setting-card__step-image {
  display: block;
  height: auto;
}

/* 手順画像の表示幅（書き出しサイズの半分） */
.setting-card__step-image--dpoint1,
.setting-card__step-image--dpoint2 {
  width: 2.555rem;
}

.setting-card__step-image--dpoint3,
.setting-card__step-image--dbarai3 {
  width: 1.195rem;
}

.setting-card__step-image--dbarai1 {
  width: 1.22rem;
}

.setting-card__step-image--dbarai2 {
  width: 1.575rem;
}

/* d払いアプリは手順画像の幅がそろっていないため、デザインに合わせて間隔と矢印の位置を個別に指定（PCのみ） */
@media screen and (width >= 768px) {
  .setting-card--dbarai .setting-card__steps {
    gap: 0;
    padding-left: 0.05rem;
  }

  .setting-card--dbarai .setting-card__step:nth-child(2) {
    margin-left: 0.332rem;
  }

  .setting-card--dbarai .setting-card__step:nth-child(3) {
    margin-left: 0.496rem;
  }

  .setting-card--dbarai .setting-card__step:nth-child(1)::after {
    left: calc(100% + 0.1145rem);
  }

  .setting-card--dbarai .setting-card__step:nth-child(2)::after {
    left: calc(100% + 0.0765rem);
  }
}

/* 券面一覧。白い枠が中央に来るよう、左にはみ出す吹き出しの分だけ左へずらす */
.setting-card__types {
  margin-top: 0.37rem;
}

.setting-card__types-image {
  position: relative;
  left: -0.105rem;
  display: block;
  width: 6.21rem;
  height: auto;
  margin: 0 auto;
}

/* ボタンと注記は、デザインに合わせ字詰め（palt）と字間を付けない */
.setting-card__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 0.48rem;
  padding-right: 0.16rem;
  margin: 0.3rem auto 0;
  font-size: 0.16rem;
  font-weight: 700;
  font-feature-settings: normal;
  line-height: 1.4;
  color: #fff;
  letter-spacing: 0;
  background-color: #d00f31;
  border: 1px solid #fff;
  border-radius: 0.3rem;
  box-shadow: 0 0.04rem 0.1rem rgb(0 0 0 / 35%);
}

/* 位置は白い縁の内側から測るため、縁の1px分を差し引いている */
.setting-card__button::after {
  position: absolute;
  top: 50%;
  right: 0.18rem;
  width: 0.1rem;
  height: 0.1rem;
  content: '';
  border-top: 0.02rem solid currentcolor;
  border-right: 0.02rem solid currentcolor;
  transform: translateY(-50%) rotate(45deg);
}

.setting-card__button:hover {
  animation: big forwards 0.25s;
}

/* PCは先頭の「※」を除いた本文がボタンの中央に来るよう、「※」の幅の半分だけ右へずらす（デザインどおり） */
.setting-card__note {
  padding-left: 1em;
  margin-top: 0.12rem;
  font-size: 0.12rem;
  font-weight: 500;
  font-feature-settings: normal;
  line-height: 1.5;
  letter-spacing: 0;
}

/* カード下の注記・応援金の案内・ボタン。デザインに合わせ、字詰め（palt）と字間を付けない */
.setting__note,
.setting__message,
.setting__lead,
.setting__button {
  font-feature-settings: normal;
  letter-spacing: 0;
}

.setting__note {
  display: flex;
  gap: 0.3em;
  margin-top: 0.3rem;
  font-size: 0.12rem;
  line-height: 1.5;
  color: #fff;
}

.setting__note-mark {
  flex-shrink: 0;
}

/* 改行は <br> の位置だけにする */
.setting__message {
  margin-top: 0.72rem;
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

/* 大きい文字で行の上側が広がらないよう行の高さを詰め、下線の分だけ下に余白を取る */
.setting__message-em {
  position: relative;
  display: inline-block;
  margin-bottom: 0.144rem;
  font-size: 0.28rem;
  font-weight: 700;
  line-height: 1;
}

/* 下線。文字の装飾（text-decoration）だと大きさの違う「5」との境目に継ぎ目が出るため、1本の線で描く */
.setting__message-em::after {
  position: absolute;
  top: calc(100% + 0.062rem);
  left: 0;
  width: 100%;
  height: 0.02rem;
  content: '';
  background-color: #edc43f;
}

/* デザインでは「5」だけが一回り大きい。行の高さが伸びて位置がずれないよう line-height を 0 にする */
.setting__message-num {
  font-size: 0.32rem;
  line-height: 0;
}

/* 左右の斜線は細い線を傾けて描く */
.setting__lead {
  position: relative;
  width: fit-content;
  margin: 0.33rem auto 0;
  font-size: 0.18rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.setting__lead::before,
.setting__lead::after {
  position: absolute;
  top: 50%;
  width: 0.015rem;
  height: 0.34rem;
  content: '';
  background-color: #fff;
}

.setting__lead::before {
  left: -0.41rem;
  transform: translateY(-50%) rotate(-32deg);
}

.setting__lead::after {
  right: -0.41rem;
  transform: translateY(-50%) rotate(32deg);
}

.setting__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 0.48rem;
  padding-right: 0.06rem;
  margin: 0.2rem auto 0;
  font-size: 0.18rem;
  font-weight: 700;
  color: #fff;
  background-color: #b79425;
  border: 1px solid #fff;
  border-radius: 0.24rem;
  box-shadow: 0 0.04rem 0.1rem rgb(0 0 0 / 35%);
}

.setting__button::after {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  width: 0.1rem;
  height: 0.1rem;
  content: '';
  border-top: 0.02rem solid currentcolor;
  border-right: 0.02rem solid currentcolor;
  transform: translateY(-50%) rotate(45deg);
}

.setting__button:hover {
  animation: big forwards 0.25s;
}

@media screen and (width <= 767px) {
  .setting {
    padding: 1.16rem 0.2rem 0.4rem;
    margin-top: 0.8rem;
  }

  .setting__title {
    top: -0.22rem;
    width: 3.12rem;
  }

  .setting-card {
    padding: 0.28rem 0 0.48rem;
    border-radius: 0.1rem;
  }

  .setting-card::before {
    width: 1.7rem;
    height: calc(0.62rem + 2px);
    clip-path: circle(0.85rem at 50% 0.85rem);
  }

  .setting-card__icon {
    top: -0.31rem;
  }

  .setting-card__title-image {
    width: 2.6rem;
  }

  /* SPは縦並びで、間に下向きの矢印 */
  .setting-card__steps {
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.1rem;
  }

  .setting-card__step:not(:last-child)::after {
    top: calc(100% + 0.215rem);
    left: calc(50% - 0.265rem);
    width: 0.53rem;
    height: 0.27rem;
    background-image: url('../images/set_arrow_sp.webp');
  }

  .setting-card__step-image--dpoint3 {
    position: relative;
    left: -0.025rem;
    width: 1.88rem;
  }

  /* d払いアプリは画像ごとに番号の位置が中央からずれているため、番号がカード中央にそろうよう横にずらす */
  .setting-card__step-image--dbarai1 {
    position: relative;
    left: 0.0475rem;
    width: 1.865rem;
  }

  .setting-card__step-image--dbarai2 {
    position: relative;
    left: -0.0375rem;
  }

  .setting-card__step-image--dbarai3 {
    position: relative;
    left: -0.0225rem;
    width: 1.88rem;
  }

  .setting-card__types {
    margin-top: 0.31rem;
  }

  .setting-card__types-image {
    left: -0.145rem;
    width: 3.09rem;
  }

  .setting-card--dbarai {
    padding-top: 0.32rem;
  }

  .setting-card--dbarai .setting-card__types-image {
    left: -0.1325rem;
  }

  .setting-card__button {
    width: 2.8rem;
    height: 0.6rem;
    margin-top: 0.33rem;
  }

  /* SPは「※」を含めて中央にそろえる */
  .setting-card__note {
    padding-left: 0;
  }

  .setting__note {
    margin-top: 0.16rem;
  }

  /* 2行目が枠の内側に収まらないため、枠の余白まで使って中央にそろえる */
  .setting__message {
    margin: 0.3rem -0.2rem 0;
    font-size: 0.18rem;
  }

  .setting__message-em {
    margin-bottom: 0.087rem;
    font-size: 0.26rem;
    line-height: 1.22;
  }

  .setting__message-em::after {
    top: calc(100% + 0.033rem);
  }

  .setting__message-num {
    font-size: 0.3rem;
  }

  .setting__lead {
    margin-top: 0.35rem;
    font-size: 0.14rem;
  }

  .setting__lead::before,
  .setting__lead::after {
    height: 0.273rem;
  }

  .setting__lead::before {
    left: -0.186rem;
  }

  .setting__lead::after {
    right: -0.186rem;
  }

  .setting__button {
    margin-top: 0.16rem;
  }
}

/* ============================
応募期間・抽選・発表・景品・注意事項
============================ */

/* デザインに合わせ、字詰め（palt）と字間を付けない */
.overview {
  width: 100%;
  max-width: 10rem;
  padding-top: 0.56rem;
  margin: 0 auto;
  font-feature-settings: normal;
  color: #fff;
  letter-spacing: 0;
}

.overview__section + .overview__section {
  margin-top: 0.48rem;
}

.overview__title-image {
  display: block;
  width: 100%;
  height: auto;
}

/* 本文の列を中央に置き、各項目の行頭をそろえる */
.overview__body {
  width: 6.72rem;
  margin: 0.19rem auto 0;
}

.overview__body--lottery {
  width: 9.5rem;
}

/* 注意事項はデザインに合わせ、見出しとの間を少し詰める */
.overview__body--caution {
  margin-top: 0.16rem;
}

/* 応募期間は2行の幅に合わせて中央に置く */
.overview__period {
  width: fit-content;
  margin: 0.2rem auto 0;
}

.overview__period,
.overview__lead,
.overview__prize {
  font-size: 0.18rem;
  font-weight: 700;
  line-height: 1.55;
}

/* 行頭の記号（● / ※）は疑似要素で置き、折り返した行を記号の後ろにそろえる */
.overview__item,
.overview__note,
.overview__caution {
  position: relative;
}

.overview__item::before,
.overview__note::before,
.overview__caution::before {
  position: absolute;
  top: 0;
  left: 0;
  content: '●';
}

.overview__note::before {
  content: '※';
}

.overview__item {
  padding-left: 1em;
}

.overview__note,
.overview__caution {
  padding-left: 1.3em;
}

.overview__note {
  font-size: 0.12rem;
  line-height: 1.5;
}

.overview__contact {
  width: 8.7rem;
  margin: 0.2rem auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: #edc53e;
  text-align: center;
}

/* インラインの文字に下線を付け、折り返し後の余白には伸ばさない */
.overview__contact-text {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.overview__contact-note {
  width: 6.72rem;
  margin: 0.06rem auto 0;
}

.overview__caution {
  font-size: 0.12rem;
  line-height: 1.65;
}

/* 注意事項とキャンペーンコードの間は1行分あける */
.overview__code {
  margin-top: 0.22rem;
}

@media screen and (width <= 767px) {
  .overview {
    padding: 0.51rem 0.2rem 0;
  }

  .overview__section + .overview__section {
    margin-top: 0.29rem;
  }

  .overview__body,
  .overview__period {
    width: auto;
    margin-top: 0.1rem;
  }

  .overview__body--caution {
    margin-top: 0.09rem;
  }

  .overview__period,
  .overview__lead,
  .overview__prize {
    font-size: 0.14rem;
  }

  .overview__contact {
    width: auto;
    padding-left: 1em;
    margin-top: 0.14rem;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    text-indent: -1em;
  }

  .overview__contact-note {
    width: auto;
    margin-top: 0.16rem;
    font-size: 0.11rem;
    line-height: 1.6;
  }

  .overview__caution {
    font-size: 0.14rem;
    line-height: 1.58;
  }

  .overview__code {
    margin-top: 0.23rem;
  }
}

/* ============================
エントリー（応募規約）
============================ */

/* 背景は上のV字の両脇と同じ濃い緑。PCは画像の上端をV字の先端にそろえる */
.entry {
  padding-bottom: 0.22rem;
  background-color: #004117;
}

.entry__inner {
  width: 100%;
  max-width: 10rem;
  margin: 0 auto;
}

.entry__title-image {
  display: block;
  width: 100%;
  height: auto;
}

/* デザインに合わせ、字詰め（palt）と字間を付けない */
.entry__lead {
  margin-top: 0.31rem;
  font-size: 0.18rem;
  font-weight: 700;
  font-feature-settings: normal;
  line-height: 1.6;
  color: #fff;
  text-align: center;
  letter-spacing: 0;
}

/* 応募規約のグレーの枠。中の白い枠（スクロールバー込みの幅）で規約文をスクロールさせる */
.entry__terms {
  width: 8.7rem;
  padding: 0.32rem 0 0.34rem;
  margin: 0.28rem auto 0;
  font-feature-settings: normal;
  letter-spacing: 0;
  background-color: #eeefef;
  border-radius: 0.08rem;
}

.entry__terms-scroll {
  width: 6.4rem;
  height: 1.6rem;
  padding: 0.1rem 0.1rem 0.1rem 0.12rem;
  margin: 0 auto;
  overflow-y: auto;
  background-color: #fff;
}

/* スクロールバーはデザインに合わせて細いグレーにする（スマホは標準の表示） */
.entry__terms-scroll::-webkit-scrollbar {
  width: 0.1rem;
}

.entry__terms-scroll::-webkit-scrollbar-track {
  background-color: #e2e2e2;
}

.entry__terms-scroll::-webkit-scrollbar-thumb {
  background-color: #b4b4b4;
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 0.05rem;
}

/* ::-webkit-scrollbar に対応しないブラウザ（Firefox）向け */
@supports not selector(::-webkit-scrollbar) {
  .entry__terms-scroll {
    scrollbar-color: #b4b4b4 #e2e2e2;
    scrollbar-width: thin;
  }
}

.entry__terms-scroll:focus-visible {
  outline: 2px solid #008128;
  outline-offset: 2px;
}

.entry__terms-content {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  overflow-wrap: anywhere;
}

.entry__terms-title {
  font-size: 14px;
  font-weight: 700;
}

.entry__terms-section {
  margin-top: 1.5em;
}

.entry__terms-paragraph {
  margin-top: 1em;
}

/* destyleで消えた下線を戻し、規約内のリンクとわかるようにする */
.entry__terms-link {
  text-decoration: underline;
}

/* チェックボックスと「応募規約を確認しました」。文字を押してもチェックできる */
.entry__agree {
  display: flex;
  gap: 0.1rem;
  align-items: center;
  width: fit-content;
  margin: 0.2rem auto 0;
  cursor: pointer;
}

.entry__agree-input {
  flex-shrink: 0;
  width: 0.18rem;
  height: 0.18rem;
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(#f5f5f5, #bdbdbd);
  border: 1px solid #999;
  border-radius: 0.03rem;
}

/* チェック時は濃い緑のチェックマークを重ねる */
.entry__agree-input:checked {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3.2L14 5.5' fill='none' stroke='%23004117' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(#f5f5f5, #bdbdbd);
}

.entry__agree-input:focus-visible {
  outline: 2px solid #008128;
  outline-offset: 2px;
}

.entry__agree-text {
  font-size: 0.18rem;
  font-weight: 700;
  line-height: 1.5;
  color: #004117;
}

.entry__agree-input:disabled,
.entry__agree-input:disabled + .entry__agree-text {
  cursor: not-allowed;
  opacity: 0.5;
}

@media screen and (width <= 767px) {
  .entry {
    padding: 0.08rem 0.2rem 0.09rem;
  }

  /* 六角形が緑の帯より1px左にはみ出す画像のため、帯が本文の幅にそろうよう1px左へずらす */
  .entry__title-image {
    width: calc(100% + 0.01rem);
    max-width: none;
    margin-left: -0.01rem;
  }

  .entry__lead {
    margin-top: 0.15rem;
    font-size: 0.14rem;
    text-align: left;
  }

  /* SPは画面幅いっぱい（左右0.2rem）に広げる */
  .entry__terms {
    width: auto;
    padding: 0.25rem 0.2rem 0.24rem;
    margin-top: 0.19rem;
    border-radius: 0.15rem;
  }

  .entry__terms-scroll {
    width: auto;
    height: 2.1rem;
    padding: 0.05rem 0.08rem 0.05rem 0.12rem;
  }

  .entry__agree {
    margin-top: 0.22rem;
  }

  .entry__agree-text {
    font-size: 0.16rem;
  }
}

/* ============================
フッター
============================ */

/* 背景は上のエントリーと同じ濃い緑
   下の余白は追従メニュー（高さ1.4rem、iPhoneでは下端の余白も加わる）に隠れる分を含む */
.footer {
  width: 100%;
  padding: 0.4rem 0 calc(1.72rem + env(safe-area-inset-bottom));
  margin-top: -1px;
  background-color: #004117;
}

/* クリックできる範囲を文字の上だけにするため、幅を文字分にして左右の余白で中央に置く */
.footer__link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 0.16rem;
  color: #fff;
  text-decoration: underline;
}

.footer__copyright {
  display: block;
  margin-top: 0.14rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.11rem;
  color: #fff;
  text-align: center;
}

@media screen and (width <= 767px) {
  .footer {
    padding: 0.3rem 0 calc(1.4rem + env(safe-area-inset-bottom));
  }

  .footer__link {
    font-size: 0.15rem;
  }

  .footer__copyright {
    margin-top: 0.1rem;
  }
}

/* ============================
フローティングバナー（追従エントリーボタン）
============================ */
.floating-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: 100%;

  /* iPhoneのホームインジケーターに文字が重ならないよう、その分だけ下に伸ばす */
  padding-bottom: env(safe-area-inset-bottom);
  background-color: #008128;
}

.floating-banner__inner {
  height: 1.4rem;
  padding-top: 0.3rem;
}

.floating-banner__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  max-width: 100%;
  height: 0.62rem;
  margin: 0 auto;
  font-size: 0.28rem;
  font-weight: 700;
  color: #004117;
  background-image: linear-gradient(#fcf498, #edc73f, #cb8c00);
  border-radius: 0.31rem;
  box-shadow: 0 0.04rem 0.08rem rgb(0 0 0 / 30%);
}

.floating-banner__button::after {
  position: absolute;
  top: 50%;
  right: 0.335rem;
  width: 0.12rem;
  height: 0.12rem;
  content: '';
  border-top: 0.02rem solid currentcolor;
  border-right: 0.02rem solid currentcolor;
  transform: translateY(-50%) rotate(45deg);
}

.floating-banner__button:hover {
  animation: big forwards 0.25s;
}

/* 規約の末尾までの閲覧と同意チェックがそろうまでグレーアウト */
.floating-banner__button[aria-disabled='true'] {
  color: #d2d2d2;
  pointer-events: none;
  background-color: #b4b4b4;
  background-image: none;
  box-shadow: none;
}

.floating-banner__note {
  margin-top: 0.1rem;
  font-size: 0.14rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}

@media screen and (width <= 767px) {
  .floating-banner__inner {
    height: 1.2rem;
    padding: 0.2rem 0.1rem 0;
  }

  .floating-banner__button {
    width: 3.23rem;
    height: 0.6rem;
    font-size: 0.24rem;
    border-radius: 0.3rem;
  }

  .floating-banner__button::after {
    right: 0.26rem;
  }

  .floating-banner__note {
    margin-top: 0.09rem;
    font-size: 0.13rem;
  }
}

/* ============================
ボタンアニメーション
============================ */
@keyframes big {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  75% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* ============================
先頭に戻る
============================ */
.back-to-top {
  position: fixed;
  right: 2.09rem;
  bottom: 1.53rem;
  z-index: 15;
  display: block;
  width: 0.44rem;
  height: 0.44rem;
  cursor: pointer;
  background-color: #00000050;
  border-radius: 50%;
  transition: opacity 0.3s;
}

.back-to-top:hover {
  opacity: 0.8;
}

.back-to-top__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.12rem;
  height: 0.12rem;
  border-top: 0.02rem solid #fff;
  border-right: 0.02rem solid #fff;
  transform: translate(-50%, -30%) rotate(-45deg);
}

@media screen and (width <= 767px) {
  .back-to-top {
    right: 0.1rem;
    bottom: 1.3rem;
    background-color: #00000070;
  }
}
