/* TOP PAGE  */


/* ---------- HERO (TOP) ---------- */

.hero_top{
  position: relative;
  margin: 32px 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: url("../img/hero_bg_img@3x.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 0;
  aspect-ratio: 358 / 624;
  height: auto;
  width: calc(100% - 32px);
}

@media (max-width: 768px){
  .hero_top{
    width: 100%;
    max-width: none;
  }
}

.main-content > section.hero_top{
  margin: 0 auto;
  top: -52px;
}

@media (max-width: 768px){
  .main-content > section.hero_top{
    top: 0;
  }
}

@media (min-width: 769px) and (max-width: 985px){
  .hero_top{
    aspect-ratio: 358 / 624;
  }
}


/* ---------- HERO STORES ---------- */
.hero__stores{
  position: absolute;
  left: 41%;
  top: 40%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.hero__store{
  display: block;
}

.hero__store img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 399 / 135;
  object-fit: contain;
}
.hero_text{
  margin: 16px 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 2em;
}
/* PC */
@media (min-width: 769px){
  .hero__stores{
    width: auto;
    flex-direction: row;
  }

  .hero__store{
    flex: 0 0 auto;
  }

  .hero__store img{
    width: 133px;
    height: 45px;
    flex-shrink: 0;
  }
}

/* SP */
@media (max-width: 768px){
  .hero__stores{
    left: 50%;
    top: 37%;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 320px);
    align-items: stretch;
  }
}



/* =========================================================
   POINT
   ========================================================= */

.point{
  border-radius: var(--radius-lg);
  background: #dee5f7;
}

.point__header{
  padding-top: 50px;
  text-align: center;
  color: #2437c8;
}

.point__title{
  margin: 0;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.point__subtitle{
  margin: 0;
  font-weight: 500;
}

/* list */
.point__list{
  display: grid;
  gap: 20px;
  padding: 20px 16px 28px;
}


/* ---------- POINT CARD ---------- */

.point-card{
  position: relative;
  margin-bottom: 50px;

  --card-top: 85px;
  --visual-space: 220px;

  padding: calc(var(--visual-space) + var(--card-top)) 20px 22px;
  border-radius: 28px;
  overflow: visible;
}

.point-card::after{
  content: "";
  position: absolute;
  left: 0;
  top: var(--card-top);
  width: 100%;
  height: calc(100% - var(--card-top));
  background: #fff;
  border-radius: 16px;
  z-index: 0;
}

.point-card::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 150px;
  background: url("../img/point-notch-top.svg") no-repeat;
  background-size: 100% 100%;
  z-index: 1;
  pointer-events: none;
}

.point-card__number{
  position: absolute;
  top: 10px;
  left: 16px;
  z-index: 3;

  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  color: #2437c8;
}


/* ---------- POINT VISUAL ---------- */

.point-card__visual{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;

  width: 320px;
  height: 320px;
}

.point-card__visual img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 個別調整 */
.point-card--p01 .point-card__visual{ width:343px; height:310px; }
.point-card--p02 .point-card__visual{ width:320px; height:370px; top:-25px; }
.point-card--p03 .point-card__visual{ width:380px; height:370px; top:-25px; left:56%;}
.point-card--p04 .point-card__visual{ width:380px; height:360px; top:-20px; left:55%; }
.point-card--p05 .point-card__visual{ width:400px; height:334px; top:-55px; left:55%; }
.point-card--p05{ --visual-space:160px; }


/* ---------- POINT TEXT ---------- */

.point-card__title,
.point-card__text,
.point-card__text_sub,
.point-card__link{
  position: relative;
  z-index: 4;
}

.point-card__title{
  margin: 10px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.point-card--p03 .point-card__title{
  margin: 40px 0 10px;
}

.point-card__text{
  margin: 0 10px 14px;
  font-size: 14px;
  line-height: 1.9;
}

.point-card__text_sub{
  margin: 20px 10px 14px;
  font-size: 12px;
  line-height: 1.9;
  color: #666;
}


/* ---------- POINT LINK ---------- */

.point-card__link{
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 16px;
  border: 1px solid #2437c8;
  border-radius: 10px;

  color: #2437c8;
  background: #fff;
}

.point-card__link::after{
  content: "+";
  font-size: 18px;
}



/* 対象外店舗 */
.point-exclude,
.point-exclude__trigger,
.point-exclude__panel{
  position: relative;
  z-index: 4;
}

.point-exclude{
  margin-top: 10px;
  border: 1px solid #2437c8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

/* detailsのマーカーを消す */
.point-exclude > summary{
  list-style: none;
}
.point-exclude > summary::-webkit-details-marker{
  display: none;
}



/* トリガーボタン */
.point-exclude__trigger{
  margin-top: 10px;
  padding: 12px 16px;
  margin-top: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2437c8;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}


/* + / - アイコン */
.point-exclude__icon{
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 18px;
}
.point-exclude__icon::before,
.point-exclude__icon::after{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 2px;
  background: #2437c8;
  border-radius: 2px;
}
.point-exclude__icon::after{
  transform: rotate(90deg);
}

/* openで「＋」を「−」に */
.point-exclude[open] .point-exclude__icon::after{
  transform: rotate(0deg);
  opacity: 0;
}

/* パネル */
.point-exclude__panel{
  margin-top: 0;
  padding: 0 16px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.35s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
/* open時 */
.point-exclude[open] .point-exclude__panel{
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
}
.point-exclude__icon{
  transition: transform 0.2s ease;
}

.point-exclude[open] .point-exclude__icon{
  transform: rotate(180deg);
}

/* 中身のテキストスタイル */
.point-exclude__heading{
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.point-exclude__block-title{
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2437c8;
}
.point-exclude__block-title-sub{
  margin: 16px 0 6px;
  color: #767F95;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 1.44px;
}

.point-exclude__list{
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  color: #767F95;
  letter-spacing: 0.04em;
}
.point-exclude__note{
  margin-top: 14px;
  font-size: 11px;
  color: #767F95;
}




/* NEWS */
.news__header{
  position: relative;
  color: #2437c8;
  text-align: left;
  z-index: 1;
  background: none;
  padding: 28px 20px 18px;
  overflow: visible;
}
.news__header::after{
  content: "";
  position: absolute;
  right: -40px;
  bottom: 65px;
  width: 60%;
  height: 140%;
  background: url("../img/citizen_id_bg.png") no-repeat;
  background-position: right bottom;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
}
.news__title,
.news__subtitle{
  position: relative;
  z-index: 1;
  margin-left: 0;
}
.news__title{
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: -20px 0 0 10px;
}
.news__subtitle{
  margin: 0 0 0 10px;
  font-weight: 500;
}

/* NEWS 本文 */
.news__list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.news__item{
  padding: 18px 20px;
  border-bottom: 1px solid #e3e7ef; /* パーツ終わりのグレー線 */
}

.news__item time{
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: #767F95;
  margin-bottom: 8px;
}

.news__item a{
  display: block;
  color: #222222;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news__item a:focus-visible{
  outline: 2px solid #2b5cff;
  outline-offset: 3px;
}

.news__list > .news__item:last-of-type{
  border-bottom: none;
}

/* もっと見るボタン */
.news__more{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  margin: 22px auto 28px;
  padding:20px 20px 18px;
  border: 1px solid #2437c8;
  border-radius: 999px;
  color: #2437c8;
  font-weight: 600;
  text-decoration: none;
}

/* ○ */

.news__more::after{
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

/* ›  */
.news__more::before{
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateY(-2px);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  line-height: 1;
}


.news__more:hover,
.news__more:focus-visible{
  background: #f6f6f6;
  color: #fff;
  border-color: #fff;
}

/* FAQ */
.faq{
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding-bottom: 30px;
  background: #212DA5;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.main-content > section.faq{
  margin-bottom: 0;
}

.faq::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../img/faq_mark.png");
  background-repeat: no-repeat;
  background-position: right 0px top 20px;
  background-size: 290px auto;
  z-index: 0;
}

.faq > *{
  position: relative;
  z-index: 1;
}


.faq__header{
  position: relative;
  z-index: 1;
  padding: 28px 20px 18px;
  overflow: visible;
}

.faq__title{
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0;
}
.faq__subtitle{
  margin: 0;
  font-weight: 500;
}


/* もっと見るボタン */
.faq__more{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  margin: 22px auto 28px;
  padding:20px 20px 18px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
/* ○ */
.faq__more::after{
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

/* ›  */
.faq__more::before{
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateY(-2px);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  line-height: 1;
}





.faq__more:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.faq__more:hover,
.faq__more:focus-visible{
  background: #fff;
  color: #2437c8;
  border-color: #2437c8;
}

/* CAMPAIGN */
.campaign{
  padding: 30px 16px;
  background: #EEF4FF;
}

/* 小バナー2カラム */
.campaign_list{
  list-style: none;
  padding: 0;
  margin: 0 0 12px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.campaign_item{
  margin: 0;
}

.campaign_item a{
  display: block;
}

.campaign_item img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* 大バナー1 */
.campaign_list_big{
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: 1fr;
}

.campaign_list_big .campaign_item img{
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}

@media (max-width: 390px){
  .campaign{ padding: 10px 12px 0; }
  .campaign_list{ gap: 10px; margin-bottom: 10px; }
  .campaign_item img{ border-radius: 12px; }
}



/* ---------- FOOTER ---------- */

.copyright_app.copyright_top{
  margin: 24px 16px;
}

@media (max-width: 985px){
  html, body{
    overflow-x: hidden;
  }
  .main-scroll{
    overflow-x: hidden;
    touch-action: pan-y;
  }
  .main-shell,
  .main-content{
    overflow-x: hidden;
  }
}

