/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
}

.first-wrap {
  background-color: #BCE2EC;
  font-family: "Noto Sans JP", "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W6", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: #333333;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0;
  background-image: radial-gradient(circle, #def0f5d4 1px, transparent 1px), radial-gradient(circle, #def0f5d4 1px, transparent 1px);
  background-position: 0 0, 6px 12px;
  background-size: 12px 24px;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

.w-100 {
  width: 100%;
}

.inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ==========================================================================
   2. KV & Welcome Section
   ========================================================================== */
.kv-section {
  text-align: center;
  padding-top: 80px;
  background-position: center;
  background-image: url(../img/kvbg.png);
  background-size: 700px;
  padding-bottom: 100px;
}
.kv-section h1{
  max-width: 1100px;
  width: 96%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}
.kv-section h1::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 46%;
  transform: translateY(-50%);
  background-image: url('../img/kv_deco_l.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  width:180px;
  aspect-ratio: 230 / 366;
}
.kv-section h1::after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 46%;
  transform: translateY(-50%);
  background-image: url('../img/kv_deco_r.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  width: 180px;
  aspect-ratio: 230 / 366;
}
.kv-section img {
  width: 568px;
  margin: 0 auto 40px;
  text-align: center;
}
@media (max-width: 991px) {
  .kv-section{
    padding-top: 12%;
  }
  .kv-section img {
    width: 80%;
    margin-bottom: 8%;
  }
  .kv-section h1::before,.kv-section h1::after {
    aspect-ratio: 180 / 520;
    width: 15%;
    top: 42%;
  }
  .kv-section h1::before{
    background-image: url('../img/kv_deco_sp_l.png');
  }
  .kv-section h1::after{
    background-image: url('../img/kv_deco_sp_r.png');
  }
}
.welcome {
  text-align: center;
  padding: 0 4%;
}

.welcome p {
  color: #3871A2;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  line-height: 1.8;
}


/* ==========================================================================
   3. Points Navigation Section
   ========================================================================== */
.points-nav-section {
  position: relative;
  background-color: #eefcff;
  width: 100%;
  margin: 60px 0 100px;
  text-align: center;
  top: -32px;
}

/* 上下の波画像 */
.points-nav-section::before {
  content: "";
  position: absolute;
  top: -64px;
  left: 0;
  width: 100%;
  height: 64px;
  background-image: url(../img/nami-blue-2.png);
  background-repeat: repeat-x;
  background-position: top left;
  background-size: auto 64px;
  pointer-events: none;
  animation: wave-scroll 12s linear infinite;
}

.points-nav-section::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: 64px;
  background-image: url(../img/nami-blue.png);
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: auto 64px;
  pointer-events: none;
  animation: wave-scroll 12s linear infinite;
}
/* 横移動のアニメーション定義 */
@keyframes wave-scroll {
    0% {
        background-position-x: 0;
    }
    100% {
        /* 画像の1周期分の幅を指定（例: 200pxなら -200px） */
        background-position-x: 331.05px;
    }
}

.points-grid-wrap {
  padding: 30px 0;
  border-radius: 40px;
}

.points-grid-wrap h2 {
  color: #5999d1;
  font-size: 32px;
  font-weight:bold;
  margin: 0 0 20px;
  border-bottom: none;
  text-align: center;
}

.points-grid-wrap .sub-text {
  color: #333;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 60px;
  text-align: center;
}

.points-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 円形リンク */
.point-card-link {
  position: relative;
  width: calc((100% - 60px) / 4);
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: #FCF0D6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4.4% 10px 8px;
  text-align: center;
  transition: transform 0.2s ease;
  text-decoration: none !important;
  border: 4px solid #5296CE;
  box-shadow: 5px 5px 0px #BCE2EB;
}
.point-card-link::before{
  content: "";
  position: absolute;
  top: -18.6px;
  left: 52%;
  transform: translateX(-50%);
  aspect-ratio: 170 / 84;
  width: 120px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  pointer-events: none;
}
.point01::before{
  background-image: url(../img/point01.png);
}
.point02::before{
  background-image: url(../img/point02.png);
}
.point03::before{
  background-image: url(../img/point03.png);
}
.point04::before{
  background-image: url(../img/point04.png);
}

.point-card-link:hover {
  transform: translateY(-4px);
}

@media (hover: none) {
  .point-card-link:hover {
    opacity: 1 !important;
  }
}

.point-card-link .arrow {
  width: 20px;
  height: auto;
}

.point-icon-inner {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.point-icon-inner img {
  width: 100%;
  height: auto;
}

.point-text {
  color: #5999d1;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.3;
  margin: 2% 0;
  text-decoration: none;
}

/* ==========================================================================
   4. Main Content (Point Cards)
   ========================================================================== */
.main-content {
  padding-bottom: 80px;
}

.point-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 50px 45px 35px;
  margin-bottom: 60px;
  position: relative;
  background-image: radial-gradient(circle, #e2f6f9 1px, transparent 1px), radial-gradient(circle, #e2f6f9 1px, transparent 1px);
  background-position: 0 0, 11px 22px;
  background-size: 22px 44px;
}

.point-card::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 52%;
  transform: translateX(-50%);
  width: 170px;
  height: 84px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  pointer-events: none;
}

.point-card.card-01::before {
  background-image: url('../img/point01.png');
}

.point-card.card-02::before {
  background-image: url('../img/point02.png');
}

.point-card.card-03::before {
  background-image: url('../img/point03.png');
}

.point-card.card-04::before {
  background-image: url('../img/point04.png');
}

.card_inner{
  background-color: #EEF7FA;
  border: 2px solid #EEF7FA;
  padding: 38px;
  border-radius: 16px;
  margin-top: 20px;
}

.card-top-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-top: 15px;
}

.card-text-side {
  width: 55%;
  flex-shrink: 0;
}

.card-title {
  font-size: 28px;
  color: #71a0ac;
  margin: 0 0 40px !important;
  line-height: 1.6;
  font-weight: bold;
}

.card-title .accent-red {
  color: #5999d1;
  font-size: 40px;
}

.card-lead {
  color: #333;
  font-weight: bold;
  font-size: 20px;
  margin: 30px 0 20px;
  line-height: 1.8;
}

.card-img-side {
  width: calc(45% - 50px);
  flex-shrink: 0;
}

.card-img-side img {
  width: 100%;
}

/* Badge & Notice */
.hint-badge {
  display: inline-flex;
  align-items: center;
  color: #71a0ac;
  font-weight: bold;
  font-size: 20px;
}

.hint-badge img {
  padding-right: 6px;
  width: 30px;
}

.bulb-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  fill: #629AC9;
}

.notice-section {
  margin-bottom: 25px;
}

.notice-item {
  margin-bottom: 32px;
}

.notice-item-title {
  color: #333;
  font-size: 16px;
  border-bottom: 2px solid #4a91cd;
  padding-bottom: 8px;
  margin-top: 40px;
  font-weight: bold;
  background: none;
  margin-bottom: 16px;
}
.notice-item-title:first-child{
  margin-top: 12px;
}
.payment-icons-flex {
  box-sizing: border-box;
  border: 2px solid #e5ebee;
  padding: 10px;
  margin-bottom: 24px;
}
.payment-icons-flex img {
  width: 100%;
}

/* Buttons */
.btn-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 655px;
  margin-left: auto;
  margin-right: auto;
}

.btn-container .btn_common {
  flex: 1;
  max-width: 420px;
}

.btn-container .btn_common a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background-color: #8ab7c3;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px #ededed;
}

.btn-container .btn_common a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.btn-action {
  margin: 0 auto;
  max-width: 420px;
}

.btn-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #5296CE;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  padding: 14px 30px;
  font-size: 16px;
  box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px #ededed;
  text-decoration: none;
}
.btn-action a.orange{
  background-color: #F8AF49;
}
.btn-action:hover {
  text-decoration: none;
  opacity: 0.8;
}


.faq p{
  color: #3871A2;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  font-size: 16px;
}

p.scroll_img{
  display: none;
}

/* ==========================================================================
   5. Responsive Media Queries
   ========================================================================== */

/* --- Tablet / SP 共通 (991px以下) --- */
@media (max-width: 991px) {
  .card-top-content {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .card-text-side,
  .card-img-side {
    width: 100%;
    margin-bottom: 0;
  }

  .card-img-side img {
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }
  .card_inner{
    margin-top: 32px;
  }
    .points-grid {
      gap:40px 20px;
      max-width: 600px;
      margin: 0 auto;
    }
    .point-card-link {
      width: calc((100% - 20px) / 2);
      padding: 8% 5px 10px;
    }
    .point-arrow-icon {
      width: 14px;
      height: 14px;
    }
    p.scroll_img{
      display: block;
       text-align: right;
       margin-bottom: 10px;
    }
    .scroll_img img{
      width: 220px;
    }
    .scroll_box {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin: 0 -38px;
      padding: 0 38px 10px;
    }
    .scroll_box .box_flow {
      min-width: 760px;
      max-width: none;
    }
    .payment-icons-flex {
      margin-bottom: 0;
    }
}

/* --- スマホ表示 (768px以下) --- */
@media (max-width: 768px) {
  body{
    font-size: 13px;
  }
  .inner-container {
    padding: 0 12px;
  }
  .welcome p {
    font-size: 16px;
  }
  .kv-section{
    padding-bottom: 4%;
  }
 .points-nav-section{
    margin-bottom: 80px;
    top: 0px;
  }
  .points-nav-section::before {
    content: "";
    position: absolute;
    top: -29px;
    left: 0;
    width: 100%;
    height: 32px;
    background-image: url(../img/nami-blue-2.png);
    background-repeat: repeat-x;
    background-position: top left;
    background-size: auto 32px;
    pointer-events: none;
    animation-name: wave-scroll-sp;
    animation-duration: 10s;
  }
    .points-nav-section::after {
      content: "";
      position: absolute;
      bottom: -25px;
      left: 0;
      width: 100%;
      height: 32px;
      background-image: url(../img/nami-blue.png);
      background-repeat: repeat-x;
      background-position: bottom left;
      background-size: auto 32px;
      pointer-events: none;
      animation-name: wave-scroll-sp;
      animation-duration: 10s;
    }
    /* スマホ用のキーフレーム（縦32px → 横165.53px） */
    @keyframes wave-scroll-sp {
        0% {
            background-position-x: 0;
        }
        100% {
            background-position-x: 165.53px;
        }
    }
  .points-grid-wrap h2{
    font-size: 28px;
  }
  .points-grid-wrap .sub-text{
    font-size: 16px;
  }
  /* メインカード調整 */
  .point-card::before {
      content: "";
      position: absolute;
      top: -19px;
      transform: translateX(-50%);
      width: 140px;
  }
  .point-card {
    padding: 50px 16px 35px;
  }
  .card_inner{
    padding: 18px;
  }
  .card-title {   
    margin: 0 0 20px !important;
    font-size: 24px;
  }
  .card-title .accent-red {
    font-size: 32px;
  }
  .card-lead {
    margin: 30px 0 20px;
    font-size: 16px;
  }
  .card-img-side {
    width: 60%;
    margin: 0 auto;
  }
  .scroll_box {
    margin: 0 -18px;
    padding: 0 18px 8px;
  }
  .hint-badge {
    font-size: 16px;
  }

  .hint-badge img {
    width: 24px;
  }

  .notice-item-title {
    font-size: 14px;
  }

.btn-container.btn-column {
  flex-direction: column;
  align-items: center;
}

.btn-container.btn-column .btn_common {
  width: 100%;
}
  .btn-action {
    width: 100%;
    min-width: auto;
  }
}

/* --- 小型スマホ表示 (575px以下) --- */
@media (max-width: 575px) {
  .welcome p {
    font-size: 14px;
    text-align: left;
  }
  .kv-section{
    padding-bottom: 0px;
  }
  .card-title {
    font-size: 18px;
  }
  .points-grid{
    gap: 32px 16px;
  }
  .points-grid-wrap h2{
    font-size: 24px;
  }
  .card-lead {
    font-size: 14px;
    margin: 15px 0 15px;
  }
  .point-icon-inner{
    width: 48%;
  }
  .point-text {
    font-size: 14px;
    margin: 2% 0 4%;
  }
  .point-card-link{
    border: 3px solid #5296CE;
    padding: 8.5% 5px 10px;
    box-shadow: 4px 4px 0px #BCE2EB;
  }
  .point-card-link::before {
    width: 50%;
    top: -7.8%;
  }
  .point-card-link .arrow {
    width: 14px;
    height: auto;
  }
  .card-title .accent-red {
    font-size: 24px;
  }
  .points-grid-wrap .sub-text {
    font-size: 14px;
    margin-bottom: 40px;
    text-align: left;
  }
  .btn-container .btn_common a {
    font-size: 14px;
    line-height: 1.2;
  }
  .faq p{
    text-align: left;
  }
}
@media (max-width: 420px) {
  .point-text {
    font-size: 13px;
  }
  .points-grid-wrap h2{
    font-size: 20px;
    margin-bottom: 16px;
  }
}

/* ------------ 動きの追加 ------------ */
/* --- Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Base Animation Class --- */
.fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards; /* 0.8秒かけて再生し、終了状態を保持 */
}

/* --- Animation Delays --- */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }

