/* --------------------------------------------- */
/* ▼モバイルファースト (全環境に共通のデザイン) */
/* --------------------------------------------- */
footer {
  position: relative;
  color: #000;
  font-feature-settings: normal; /* カンプは等幅組み（palt なし） */
}
.f-bg {
  background: linear-gradient(180deg, rgba(215, 252, 224, 1) 0%, rgba(213, 242, 255, 1) 100%);
  padding: 3em 0 80px; /* 下部は追従の登録ボタン分の余白 */
  border-radius: 20px 20px 0 0;
  text-align: left;
  letter-spacing: 0;
}
.footer {
  width: 85%;
  margin: auto;
}
/* ロゴ */
.f_logo {
  width: 80%;
  max-width: 400px;
  margin: 0 auto 2em;
}
/* 運営情報 */
.f_info {
  text-align: center;
}
.f_info_ttl {
  font-size: 1.6rem;
  line-height: 1.6;
}
.f_info_name {
  margin-top: 0.4em;
  font-size: 1.5rem;
  line-height: 1.6;
}
.f_info_name span {
  display: inline-block; /* SPでは「公益財団法人」の後ろで改行させる */
}
.f_info_address {
  margin-top: 0.5em;
  font-size: 1.2rem;
  font-style: normal;
  line-height: 1.7;
}
.f_info_address a {
  color: inherit;
}
/* バナー */
.f_bnr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 1.5em;
}
.f_bnr a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: #fff;
  border-radius: 10px;
  transition: opacity .3s;
}
/* 右の矢印 */
.f_bnr a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 7px;
  height: 11px;
  background: var(--blue);
  -webkit-mask: var(--icon-arrow) no-repeat center / contain;
  mask: var(--icon-arrow) no-repeat center / contain;
  transform: translateY(-50%);
  transition: right .3s;
}
.f_bnr_umi img {
  width: 47%;
}
.f_bnr_yaramaika img {
  width: 42%;
}
/* コピーライト */
.f_pp {
  margin: 2em auto 0;
  text-align: center;
  font-size: 1rem;
}
/* もう一回見る（追従ボタン） */
.pagetop {
  --pt-bottom: 62px; /* 追従時の下からの位置（SPは登録ボタンの上） */
  --pt-stop-top: none; /* フッター内で止める位置（none＝止めずに、フッターに入ったら非表示） */
  position: fixed;
  right: 10px;
  bottom: var(--pt-bottom);
  z-index: 100;
  width: 84px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .4s, visibility .4s, transform .4s;
}
.pagetop.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* フッター到達後はフッター内の定位置で止める */
.pagetop.is-stop {
  position: absolute;
  top: var(--pt-stop-top);
  bottom: auto;
}
.pagetop a {
  display: block;
  color: inherit;
  text-align: center;
}
.pagetop_chara {
  position: relative;
  display: block;
}
/* 黄色の円 */
.pagetop_chara::before {
  content: "";
  position: absolute;
  top: 2.6%;
  left: 3.5%;
  width: 86.1%;
  aspect-ratio: 1;
  background: var(--yellow);
  border-radius: 50%;
}
.pagetop_chara img {
  position: relative;
  transition: transform .3s;
}
.pagetop p {
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
/* 赤い三角 */
.pagetop p::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 6px;
  margin-left: 4px;
  vertical-align: 0.15em;
  background: var(--red);
  -webkit-mask: var(--icon-triangle) no-repeat center / contain;
  mask: var(--icon-triangle) no-repeat center / contain;
}
/* 登録ボタン（SPのみ・下部追従） */
.fix_entry {
  position: fixed;
  right: 40px;
  bottom: 0;
  left: 40px;
  z-index: 100;
  transform: translateY(100%);
  transition: transform .4s;
}
.fix_entry.is-show {
  transform: none;
}
.fix_entry a {
  position: relative;
  display: block;
  padding: 14px 40px calc(12px + env(safe-area-inset-bottom));
  background: var(--red);
  border-radius: 20px 20px 0 0;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
}
.fix_entry a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 11px;
  height: 18px;
  margin-top: calc(env(safe-area-inset-bottom) / -2);
  background: #fff;
  -webkit-mask: var(--icon-arrow) no-repeat center / contain;
  mask: var(--icon-arrow) no-repeat center / contain;
  transform: translateY(-50%);
}
@media (hover: hover) {
  .f_bnr a:hover {
    opacity: 0.8;
  }
  .f_bnr a:hover::after {
    right: 4px;
  }
  .f_bnr a:hover img, .pagetop a:hover img {
    opacity: 1; /* style.css の a:hover img を打ち消し */
  }
  .pagetop a:hover {
    color: var(--red);
  }
  .pagetop a:hover .pagetop_chara img {
    transform: translateY(-6px);
  }
}
/* ------------------------------------ */
/* ▼タブレット用デザインとして付け足すデザイン */
/* ------------------------------------ */
@media all and (min-width: 768px) {
  .f-bg {
    padding: 60px 0 30px;
    border-radius: 30px 30px 0 0;
  }
  /* 右側は「もう一回見る」の停止位置ぶん空ける */
  .footer {
    width: calc(95% - 190px);
    margin: 0 0 0 5%;
  }
  .f_logo {
    width: 440px;
    max-width: 100%;
    margin: 0 0 30px;
  }
  .f_info {
    text-align: left;
  }
  .f_info_ttl {
    font-size: 2rem;
  }
  .f_info_name {
    margin-top: 10px;
    font-size: 1.8rem;
  }
  .f_info_address {
    margin-top: 6px;
    font-size: 1.6rem;
    line-height: 1.67;
  }
  .f_bnr {
    gap: 15px;
    margin-top: 30px;
    max-width: 664px;
  }
  .f_bnr a {
    height: 80px;
    border-radius: 15px;
  }
  .f_bnr a::after {
    right: 16px;
    width: 9px;
    height: 15px;
  }
  .f_pp {
    width: auto;
    margin: 50px 28px 0;
    text-align: right;
    font-size: 1.3rem;
  }
  .fix_entry {
    display: none;
  }
  .pagetop {
    --pt-bottom: 30px;
    --pt-stop-top: 30px;
    right: 30px;
    width: 130px;
  }
  .pagetop p {
    margin-top: 6px;
    font-size: 1.5rem;
  }
  .pagetop p::after {
    width: 14px;
    height: 9px;
    margin-left: 8px;
  }
}
@media (min-width: 768px) and (hover: hover) {
  .f_bnr a:hover::after {
    right: 11px;
  }
}
/* ------------------------------------ */
/* ▼PC用デザインとして付け足すデザイン */
/* ------------------------------------ */
@media all and (min-width: 1200px) {
  .f-bg {
    padding: 50px 0 25px;
    border-radius: 40px 40px 0 0;
  }
  /* 1920px幅で左280px・幅1348px（カンプ準拠）。狭い幅では右側を追従ボタン用に空ける */
  .footer {
    --f-left: max(5%, (100% - 1360px) / 2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1348px, 100% - var(--f-left) - 260px);
    margin-left: var(--f-left);
  }
  .f_logo {
    width: 46.1%;
    min-width: 0;
    margin: 20px 20px 0 0; /* カンプのロゴ位置に合わせて少し下げる */
  }
  .f_info {
    flex-shrink: 0;
    width: 49.3%;
    min-width: 500px;
  }
  .f_info_ttl {
    font-size: 2rem;
  }
  .f_info_name {
    margin-top: 11px;
    font-size: 2rem;
  }
  .f_info_address {
    margin-top: 7px;
    line-height: 1.55;
  }
  .f_bnr {
    margin-top: 36px;
  }
  .f_bnr a {
    height: 85px;
  }
  .f_bnr a::after {
    right: 21px;
    width: 11px;
    height: 18px;
  }
  .f_pp {
    margin-top: 50px;
    font-size: 1.4rem;
  }
  .pagetop {
    --pt-stop-top: 39px;
    right: 60px;
    width: 130px;
  }
  .pagetop p {
    margin-top: 9px;
    font-size: 1.4rem;
  }
  .pagetop p::after {
    width: 14px;
    height: 10px;
    margin-left: 8px;
  }
}
@media (min-width: 1200px) and (hover: hover) {
  .f_bnr a:hover::after {
    right: 16px;
  }
}