/* style.css : Rich LP ver. */
/* base */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
  --ym-blue: #0089ff;
  --ym-blue-dark: #0061c2;
  --ym-blue-light: #e5f2ff;
  --ym-red: #ff1f2d;
  --text-main: #222;
  --text-muted: #666;
  --max-width: 1120px;
  --radius-large: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP",-apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Segoe UI", "YuGothic", "Yu Gothic", "メイリオ", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #e5f2ff 0, #ffffff 55%, #f4f8ff 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.lp-global-bg {
  min-height: 100vh;
}

/* header */
.header-logo-lp {
  display: block;
  background: url(https://www.ymobile.jp/common_c/images/common/logo.svg) no-repeat left top;
  background-size: 128px 26px;
  width: 128px;
  height: 26px;
  padding: 0px;
  margin: 0px auto 38px;
  text-indent: -99em;
  overflow: hidden;
}

.l-header-lp {
    position: relative;
    height: 58px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding-top: 15px;
}

/* wrapper */
.lp-wrapper {
  padding: 0px 12px 40px;
}

.lp-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.lp-inner--rounded {
  border-radius: var(--radius-large);
  overflow: hidden;
}

/* footer */
.lp-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.lp-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* utilities */
.sp-only {
  display: none;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e3f0ff;
  color: var(--ym-blue-dark);
  letter-spacing: .05em;
}

.section-header {
  text-align: center;
  margin-bottom: 18px;
}

/* hero */
.hero {
  position: relative;
  background: radial-gradient(circle at top left, #40a5ff 0, #0089ff 40%, #005ddd 100%);
  color: #ffffff;
  /* padding: 30px 24px 34px; */
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.32), transparent 70%);
  opacity: .6;
  pointer-events: none;
}

.hero-bg-shape--left {
  top: -120px;
  left: -80px;
}

.hero-bg-shape--right {
  bottom: -140px;
  right: -60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.hero-copy-block {
  flex: 1 1 55%;
}

.hero-visual-block {
  flex: 1 1 45%;
  position: relative;
}

.hero-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-tag {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 4px;
}

.hero-sub-heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hero-main-box {
  background: #ffffff;
  border-radius: 22px;
  padding: 14px 22px 10px;
  display: inline-block;
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
  margin-bottom: 10px;
}

.hero-main-line {
  font-size: 36px;
  font-weight: 900;
  color: var(--ym-blue);
  line-height: 1.2;
}

.hero-main-line--ym {
  color: var(--ym-red);
}

.hero-lead {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 12px;
}

.hero-lead span {
  color: #fffd77;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-badges span {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.5);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  background: #ffdd33;
  color: #c80000;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 5px 0 #f0b800;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, opacity .2s ease;
}

.hero-cta:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 #f0b800;
  opacity: .96;
}

.hero-cta-note {
  font-size: 12px;
  margin-top: 6px;
  opacity: .9;
}

.hero-kv-frame {
  background: linear-gradient(145deg, #ffffff, #e3f0ff);
  padding: 10px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

.hero-kv-frame img {
  border-radius: 18px;
}

.hero-point-card {
  position: absolute;
  left: -6px;
  bottom: -12px;
  background: #ffffff;
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  font-size: 11px;
}

.hero-point-title {
  font-weight: 700;
  margin: 0;
}

.hero-point-price {
  margin: 2px 0 2px;
  font-weight: 900;
  font-size: 14px;
}

.hero-point-price span {
  color: var(--ym-red);
}

.hero-point-note {
  margin: 0;
  font-size: 10px;
  color: var(--text-muted);
}

/* sections */
.section {
  padding: 32px 24px 36px;
  background: #ffffff;
}

.section + .section {
  border-top: 1px solid #edf0f6;
}

.section-narrow {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  margin: 8px 0 12px;
}

.section-title .accent {
  color: var(--ym-blue);
}

.section-lead {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.down-image{
  width: 500px;
  display: inline-block;
}

/* merit */
.section-merit {
  background: linear-gradient(180deg, #ffffff 0, #f5f8ff 50%, #ffffff 100%);
}

.merit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.merit-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 14px 18px;
  text-align: center;
  border: 1px solid #d4e1ff;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}

.merit-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,137,255,0.08), transparent 60%);
  pointer-events: none;
}

.merit-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e5f2ff;
  margin: 0 auto 8px;
  position: relative;
}

.merit-icon img{

}

.merit-label {
  display: inline-block;
  background: #ffffff;
  color: var(--ym-blue);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.merit-heading {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.merit-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.merit-text span{font-size: 10px;text-align: left;display: block;margin-top: 15px;color: #a1a1a1;padding: 0 20px;}

/* price */
.section-price {
  background: #f5f8ff;
}

.price-compare {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.price-card {
  flex: 1 1 260px;
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 16px 18px;
  text-align: center;
  border: 1px solid #d7e5ff;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.price-card--ym {
  border-color: var(--ym-red);
  box-shadow: 0 0 0 2px rgba(255,31,45,0.16), 0 10px 24px rgba(0,0,0,.08);
}

.price-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-label--ym {
  color: var(--ym-red);
  font-weight: 700;
}

.price-carrier {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.price-main {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}

.price-main-unit {
  font-size: 14px;
  font-weight: 700;
}

.price-main--ym {
  color: var(--ym-red);
}

.price-note {
  font-size: 11px;
  color: var(--text-muted);
}

.price-arrow {
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ym-blue-dark);
  text-align: center;
}

.price-arrow span {
  display: block;
}

.price-arrow strong {
  font-size: 18px;
}

.price-summary {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  margin-top: 18px;
}

.price-summary span {
  color: var(--ym-red);
}

.price-note--foot {
  text-align: center;
  margin-top: 6px;
}

.section-cta-wrap {
  text-align: center;
  margin-top: 22px;
}

.section-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 999px;
  background: var(--ym-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--ym-blue-dark);
  transition: transform .1s ease, box-shadow .1s ease, opacity .2s ease;
}

.section-cta-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--ym-blue-dark);
  opacity: .96;
}

/* step */
.section-step {
  background: #f6f8ff;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.step-item {
  background: #f3f7ff;
  border-radius: 16px;
  padding: 16px 14px 18px;
  border: 1px solid #cfdfff;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

.step-number {
  display: inline-block;
  background: var(--ym-blue);
  color: #ffffff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  font-weight: 700;
}

.step-heading {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-text {
  font-size: 13px;
  color: var(--text-muted);
}

.steps-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* notes */
.section-notes {
  background: #fafafa;
  font-size: 11px;
  color: var(--text-muted);
}

.notes-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.notes-text {
  line-height: 1.7;
}

/* final cta */
.footer-cta {
  background: linear-gradient(90deg, #0089ff, #0061c2);
  color: #ffffff;
  text-align: center;
  padding: 22px 16px 28px;
}

.footer-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-cta-heading {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-cta-heading span {
  color: #fffd77;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 44px;
  border-radius: 999px;
  border: none;
  background: #ffdd33;
  color: #c80000;
  font-size: 17px;
  font-weight: bold;
  box-shadow: 0 5px 0 #f0b800;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, opacity .2s ease;
}

.footer-cta-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 #f0b800;
  opacity: .96;
}

.footer-cta-caption {
  font-size: 12px;
  margin-top: 15px;
}

/* pagetop */
.page-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 40;
}

.page-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* responsive */
@media (max-width: 767px) {
  .lp-header-inner {
    padding-inline: 12px;
  }

  .lp-header-nav {
    display: none;
  }

  .lp-inner--rounded {
    border-radius: 18px;
  }

  .hero {
    /* padding: 22px 16px 26px; */
  }

  .hero-inner {
    flex-direction: column-reverse;
  }

  .hero-main-box {
    display: block;
    margin-bottom: 8px;
  }

  .hero-main-line {
    font-size: 30px;
  }

  .hero-sub-heading {
    font-size: 20px;
  }

  .hero-tag {
    font-size: 18px;
  }

  .hero-visual-block {
    width: 100%;
  }

  .hero-kv-frame img {
    width: 100%;
  }

  .hero-point-card {
    left: 8px;
    bottom: -6px;
  }

  .section {
    padding: 26px 16px 30px;
  }

  .section-title {
    font-size: 22px;
  }

  .merit-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-compare {
    flex-direction: column;
  }

  .price-arrow {
    order: -1;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

 .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .lp-wrapper {
    padding-inline: 8px;
  }
}

@media (min-width: 768px) and (max-width: 1120px) {
  .merit-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* price image only layout */
.price-image-wrapper {
  margin: 20px auto 20px auto;
  max-width: 900px;
}

.price-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
  background: #ffffff;
}

.price-image-notes {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

/* cp */

.cp-image-wrapper {
  margin: 20px auto 30px auto;
  max-width: 900px;
}

.cp-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
  background: #ffffff;
}

/* --- Swiper用追加スタイル --- */

/* カルーセル全体のコンテナ調整 */
.merit-swiper {
  padding: 10px 10px 50px !important; /* ドット表示用の余白 */
  overflow: hidden;
}

/* スライド内のカードの高さを統一 */
.merit-item.swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 0; /* カルーセル内では余白をSwiper側で制御 */
}

/* ページネーション（ドット）の色 */
.swiper-pagination-bullet-active {
  background: var(--ym-blue) !important;
}

/* ナビゲーションボタン（PC矢印）のカスタマイズ */
.swiper-button-next,
.swiper-button-prev {
  color: var(--ym-blue);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

/* スマホ表示時の調整 */
@media (max-width: 767px) {
  .merit-swiper {
    padding-bottom: 40px !important;
    margin-inline: -16px; /* 画面端までスライドを見せるための調整 */
    padding-inline: 16px !important;
  }
}
/* Swiper全体のコンテナ */
.merit-swiper {
  position: relative; /* 矢印の基準点にするために必要 */
  padding: 10px 10px 60px !important; /* 下部の余白を広めに */
  overflow: hidden;
}

/* 矢印をPCでのみ表示する制御（既存のpc-onlyクラスを活用） */
@media (max-width: 767px) {
  .pc-only {
    display: none !important;
  }
}

/* 矢印の色の調整（デフォルトは青ですが、一応定義） */
:root {
  --swiper-theme-color: #0089ff; /* Swiper公式の変数を使う方法 */
  --swiper-navigation-size: 30px; /* 矢印のサイズ */
}

/* 矢印がスライドの外側に出る場合は親のpaddingを調整するか、以下で位置を微調整 */
.swiper-button-prev { left: 0; }
.swiper-button-next { right: 0; }

/* 追加分 */

.min-btn{display: inline-block;padding: 5px 35px;border-radius: 999px;background: var(--ym-blue);color: #ffffff;font-size: 12px;font-weight: 100;box-shadow: 0 4px 0 var(--ym-blue-dark);transition: transform .1s ease, box-shadow .1s ease, opacity .2s ease;margin-top: 10px;}
