/**
 * index.css - トップページ固有スタイル
 * Swiperヒーロースライダー等
 */

/* Swiper Hero Slider */
.swiper-hero {
  width: 100%;
  height: 932px;
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 1024px) {
  .swiper-hero { height: 700px; }
}

@media screen and (max-width: 768px) {
  .swiper-hero { height: 500px; }
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.swiper-slide.slide01 { background-image: url(../images/top_slider01g.jpg); }
.swiper-slide.slide02 {
  background-image: url(../images/top_slider02c.jpg);
  background-position: center top;
}
.swiper-slide.slide03 { background-image: url(../images/top_slider04g.jpg); }
.swiper-slide.slide04 {
  background-image: url(../images/top_slider04c.jpg);
  background-position: center top;
}

.slide-content {
  text-align: center;
  color: #ffffff;
  z-index: 2;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.slide-subtitle {
  font-size: 30px;
  line-height: 40px;
  font-weight: 700;
  text-shadow: rgba(255, 255, 255, 0.2) 0 0 25px, rgba(255, 255, 255, 0.25) 0 1px 0;
  margin-bottom: 20px;
  animation: slideInUp 1s ease-out;
  color: #224ea3;
}

.slide-title {
  font-size: 70px;
  line-height: 90px;
  font-weight: 700;
  text-shadow: rgba(255, 255, 255, 0.2) 0 0 25px, rgba(255, 255, 255, 0.25) 0 1px 0;
  margin-bottom: 40px;
  animation: slideInUp 1s ease-out 0.2s backwards;
  color: #224ea3;
}

.slide01 .slide-title, .slide01 .slide-subtitle { color: #fff; }
.slide03 .slide-title, .slide03 .slide-subtitle {
  color: #6990cc;
  text-shadow: none;
}

.slide-button {
  display: inline-block;
  padding: 10px 41px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 300;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: slideInUp 1s ease-out 0.4s backwards;
  background-color: #6990cc;
  border-radius: 4px;
}

.slide-button:hover {
  background-color: #8D99FF;
  border-color: #8D99FF;
}

@media screen and (max-width: 1024px) {
  .slide-subtitle { font-size: 32px; line-height: 45px; }
  .slide-title { font-size: 50px; line-height: 64px; }
}

@media screen and (max-width: 768px) {
  .slide-subtitle { font-size: 22px; line-height: 30px; }
  .slide-title { font-size: 30px; line-height: 38px; }
  .slide-button { font-size: 16px; padding: 8px 30px; }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Swiper navigation */
.swiper-button-prev, .swiper-button-next {
  width: 72px;
  height: 28px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.swiper-button-prev:after, .swiper-button-next:after { content: ''; display: none; }

.swiper-button-prev svg, .swiper-button-next svg {
  width: 74px;
  height: 29px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
}

.swiper-button-prev svg line, .swiper-button-next svg line {
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s ease;
}

.swiper-button-prev svg line:last-child,
.swiper-button-next svg line:last-child {
  stroke-dasharray: 75;
  stroke-dashoffset: 0;
}

.swiper-button-prev:hover svg line, .swiper-button-next:hover svg line {
  stroke-dashoffset: 40;
  transition-delay: 0.2s;
}

.swiper-button-prev:hover svg line:last-child,
.swiper-button-next:hover svg line:last-child {
  stroke-dashoffset: 150;
  transition-delay: 0s;
}

.swiper-button-prev { left: 74px; }
.swiper-button-next { right: 74px; }
.swiper-button-next svg { transform: scaleX(-1); }

@media screen and (max-width: 1024px) {
  .swiper-button-prev, .swiper-button-next { display: none; }
}

/* Pagination */
.swiper-pagination {
  bottom: 36px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  counter-reset: swiper-counter;
}

.swiper-pagination-bullet {
  width: 1px;
  height: 20px;
  background: #ffffff;
  border-radius: 0;
  opacity: 1;
  position: relative;
  padding: 0 5px 0 4px;
  margin: 0 6px;
  transition: height 0.3s ease;
  counter-increment: swiper-counter;
}

.swiper-pagination-bullet::before {
  content: counter(swiper-counter, decimal-leading-zero);
  position: absolute;
  bottom: calc(100% + 6px);
  left: calc(50% + 2px);
  transform: translateX(-50%);
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active { height: 30px; }
.swiper-pagination-bullet-active::before { opacity: 1; }
