@charset "UTF-8";

/* ==========================================================================
   Base & Custom Utilities
   ========================================================================== */
html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ヒーローテキスト用シャドウ */
.hero-text-shadow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   Hero Crossfade Slideshow (index.html)
   ========================================================================== */
.mv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

/* 1枚目だけ最初から完全に表示 */
.mv-slide:first-child,
.mv-slide.active {
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 2;
}

.mv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 6.5s ease-out;
}

.mv-slide.active img {
  transform: scale(1.08);
}

/* インジケータードット */
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
  cursor: pointer;
}

.slide-dot.active {
  width: 32px;
  background-color: #ffffff;
}

/* ==========================================================================
   Before / After Interactive Slider (works.html)
   ========================================================================== */
.ba-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  user-select: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .ba-container {
    height: 320px;
  }
}

.ba-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 10;
}

.ba-before-layer img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: #0B2545;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* ==========================================================================
   FAQ Accordion (Smooth CSS Grid Transition)
   ========================================================================== */
.faq-accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-body > div {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item.active .faq-accordion-body {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-accordion-body > div {
  opacity: 1;
  transform: translateY(0);
}

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 45;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: #0B2545;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

#back-to-top:hover {
  background-color: #1e3a8a;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top.show:hover {
  transform: translateY(-3px);
}
