/* --------------------------------------
  初期化・共通設定
-------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  font-family: "Noto Sans JP", sans-serif;
  color: #323333;
  line-height: 1.429;
  overflow-x: hidden;
}
a {
  color: #0d63af;
  text-decoration: none;
  transition: all 0.3s;
}
a:hover {
  opacity: 0.7;
}
a:hover .tri::after,
a:hover .tri_w::after {
  left: 4px;
}
a:link,
a:visited{
  color: #fff;
}
/* HTML5 セクショナル要素の余白リセット */
article, header, footer, aside, figure, figcaption, nav, section {
  margin: 0;
}

/* レスポンシブ表示切替 */
.pc-hide {
  display: none;
}
.sp-hide {
  display: block;
}
.nav-sp {
  display: none;
}

/* ページ全体の背景＆中央寄せコンテナ */
.page-background {
  min-height: 100vh; 
  min-height: 100svh; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  box-sizing: border-box;
}

/* スマホ画面サイズを固定し中央寄せする親コンテナ */
.main-container {
  width: 375px;
  height: 667px;
  position: relative;
  overflow: hidden;
  margin: 0 auto; /* 横中央 */
  top: auto;      /* ここで縦中央用のtransformは外す */
  transform: none;
}
/* --------------------------------------
  スライドカウンター表示
-------------------------------------- */
.slide-counter {
  position: fixed;
  top: 5px;
  left: 10px;
  z-index: 1000;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: sans-serif;
}

/* --------------------------------------
  Swiper（縦スライダー・横スライダー）
-------------------------------------- */
.swiper-container-vertical {
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  position: relative;
  top: auto;
  transform: none;
}
.swiper-container-horizontal {
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* 共通：スライド内の画像表示 */
.swiper-slide picture,
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 横スライダー特有のレイアウト調整 */
.swiper-container-horizontal {
  overflow: hidden;
}
.swiper-container-horizontal .swiper-wrapper {
  display: flex;
  height: 100%;
}
.swiper-container-horizontal .swiper-slide {
  width: 100%;
  flex-shrink: 0;
   height: 100%;
}
.swiper-container-horizontal .swiper-slide picture,
.swiper-container-horizontal .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ← 画面いっぱいにフィット */
  display: block;
  max-height: 100vh;
}

/* 共通：ナビゲーションボタンスタイル */
.swiper-button-next,
.swiper-button-prev {
  width: 40px;
  height: 40px;
  background-color: rgba(173, 216, 230, 0.6); /* 薄い水色 with 不透明度60% */
  border-radius: 50%;
  color: white;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

/* 左右に配置（必要に応じて調整） */
.swiper-button-prev {
  left: 0;
  top: 53%;
}
.swiper-button-next {
  right: 0;
  top: 53%;
}

/* 矢印アイコンの内容をカスタムする */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-size: 18px;
  content: '';
}
.swiper-button-prev::after {
  content: '<';
}
.swiper-button-next::after {
  content: '>';
}

/* ボタンを配置するスライドだけに relative を指定 */
.slide-with-button {
  position: relative;
}

/* ボタンの見た目と配置 */
/* 講習時 */
/* .slide-button {
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  display: block;
  z-index: 10;
} */
 
/* 通常時 */
.slide-button {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  display: block;
  z-index: 10;
}
.slide-button img {
  width: 100%;
  height: auto;
  display: block;
}

/* 固定cta */
/* 外側のラッパーで画面下に固定し、中央寄せ */
.fixed-banner-wrapper {
  position: fixed;
  bottom: 0;
  width: 100%;
  margin: 0 auto;
  left: 0;
  right: 0;
  background-color: #ffffcc;
  z-index: 1000;
}
/* PC画面：バナーの最大幅を375pxに制限 */
@media screen and (min-width: 768px) {
  .fixed-banner-wrapper {
    max-width: 375px;
  }
}

.fixed-banner {
  width: 100%;
  height: 10.5vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
}
.banner-btn {
  width: 49%;
  height: 86%;
  text-align: center;
  padding: 3px 10px 3px 3px;
  border-radius: 5px;
  color: #fff;
  font-size: 19.5px;
  letter-spacing: -0.025em;
  font-weight: bold;
  position: relative;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trial-btn {
  background-color: #ff7300; /* オレンジ */
}

.price-btn {
  background-color: #35a8ff; /* 水色 */
}
a:link.trial-btn,
a:link.price-btn{
  color: #fff;
}
.banner-btn::after {
  content: '▶︎';
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.5em;
  vertical-align: middle;
  position: absolute;
  right: 4px;
}

.banner-btn:hover {
  opacity: 0.9;
}
  a.trial-btn.shiny {
	overflow: hidden;
	transition: 300ms;
  }
  a.trial-btn.shiny::before {
	position: absolute;
	content: '';
	display: inline-block;
	top: -180px;
	left: 0;
	width: 30px;
	height: 100%;
	background-color: #feb3a9;
	transition: 300ms;
	animation: shinyshiny 2.5s ease-in-out infinite;
  }
  @-webkit-keyframes shinyshiny {
	0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
	80% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
	81% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
	100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
  }

  #swipe-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* 背景半透明 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}

#swipe-modal.hide {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.modal-content {
  position: relative;
  background: white;
  opacity: 0.9;
  padding: 2em 3em;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  pointer-events: auto;
}

/* 閉じるボタン（×） */
#modal-close {
  position: absolute;
  top: 0.4em;
  right: 0.6em;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #666;
  cursor: pointer;
}

#modal-close:hover {
  color: #000;
}


@media screen and (max-width: 767px) {
  .main-container {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }
  .page-background {
    padding: 0;
  }
  .fixed-banner-wrapper {
    max-width: 100%;
  }
}
