@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --primary-color: #32998E;
  --secondary-color: #A5D6A7;
  --bg-color: #FAF9F6;
  --text-color: #333333;
  --font-main: 'Noto Sans JP', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-size: 16px;
  background-color: #fff;
  overflow-x: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* --- Section Padding & Container --- */
.section-cover {
  padding-top: 70px;
  padding-bottom: 70px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Default PC padding */
}

.container-custom { max-width: 1300px; margin: 0 auto; }
.max-w-2xl { max-width: 685px !important; } /* Custom Override */

@media (max-width: 768px) {
  .container {
    padding: 0 10px !important;
  }
  .section-cover {
    padding: 50px 0;
  }
  .glass-card {
    padding: 25px 10px !important;
  }
  .px-8 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .p-10 {
    padding: 40px 10px !important;
  }
  .leading-relaxed {
    text-align: left !important;
  }
  #message p, .glass-card h3 {
    text-align: left !important;
  }
  #access {
    padding-bottom: 20px !important; /* Reduced bottom gap for SP */
  }
}

.map-container {
  min-height: 300px;
  height: 600px; /* Increased from 400px to 600px for PC */
}

@media (max-width: 768px) {
  .map-container {
    height: 350px !important;
  }
}

#access iframe {
  display: block; /* Removes inline spacing gap */
}

/* --- Titles (Text Only) --- */
.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.section-title-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}.bg-primary-dark {
  background-color: #2b847a; /* Slightly darker teal for contrast */
}

/* --- Background Creative Palette --- */
.bg-tv { background-color: rgba(250, 249, 246, 1); }
.bg-about { background-color: #1a2e2b; } /* Deep Dark Green */
.bg-service { background-color: rgba(50, 153, 142, 0.05); }
.bg-split-service { background: linear-gradient(to right, #ffffff 50%, #32998e 50%); } /* Left-to-Right Split */
.bg-menu-price { background-color: rgba(50, 153, 142, 0.08); }
.bg-voice { background-color: rgba(165, 214, 167, 0.15); }
.bg-message { background-color: #fff; }
.bg-access { background-color: rgba(250, 249, 246, 0.8); }

/* --- FV Fix --- */
.header-spacer {
  height: 70px;
}
@media (min-width: 1024px) {
  .header-spacer { height: 90px; }
}

.fv-swiper {
  width: 100%;
  height: auto;
  aspect-ratio: 1366 / 700; /* Taller PC view */
  position: relative;
  background-color: var(--bg-color);
  padding: 20px; /* Space to see the rounded corners */
}

@media (max-width: 768px) {
  .fv-swiper { 
    min-height: 600px; 
    padding: 15px; 
  }
}

.fv-slide {
  overflow: hidden;
  border-radius: 80px; /* The "Round Box" effect */
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.8);
}

.fv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover !important; /* Back to cover for the framed look */
}

/* --- FV Overlay & Shapes --- */
.fv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end; /* Move to bottom */
  justify-content: center;
  padding-bottom: 100px; /* Air above the wave */
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .fv-overlay {
    padding-bottom: 60px; /* Slightly higher on mobile to avoid wave overlap */
  }
}

.fv-content {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 50px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  max-width: 90%;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  color: #fff;
}

@media (max-width: 768px) {
  .fv-content {
    padding: 30px 20px;
    border-radius: 20px;
  }
}

.fv-catchphrase {
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.fv-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.fv-stat-item {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (min-width: 1024px) {
  .fv-catchphrase {
    font-size: 1.75rem;
  }
  .fv-stat-item {
    font-size: 1rem;
    padding: 8px 20px;
  }
}

.fv-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  opacity: 0.3;
  filter: blur(40px);
  z-index: 5;
  animation: float 12s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px; /* Moved higher */
  left: -150px; /* Moved further left */
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px; /* Moved lower */
  right: -150px; /* Moved further right */
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 10%; /* Moved higher */
  right: 5%; /* Moved further right */
  background: var(--secondary-color);
  opacity: 0.2;
  animation-duration: 8s;
  animation-direction: alternate;
}

.shape-4 {
  width: 200px;
  height: 200px;
  bottom: 10%; /* Moved lower */
  left: 5%; /* Moved further left */
  background: var(--primary-color);
  opacity: 0.15;
  animation-duration: 15s;
  animation-delay: -2s;
}

.dot-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(rgba(50, 153, 142, 0.2) 1px, transparent 1px);
  background-size: 15px 15px;
  z-index: 2;
  pointer-events: none;
}

.dot-1 {
  top: 50px;
  right: 50px;
}

.dot-2 {
  bottom: 50px;
  left: 50px;
}

/* --- FV Wave Divider --- */
.fv-wave {
  position: absolute;
  bottom: -1px; 
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden; /* Hide the overflowed wide waves */
}

.fv-wave svg {
  display: block;
  width: 200%; /* Wider than screen for movement padding */
  height: 60px;
  position: relative;
}

@media (min-width: 1024px) {
  .fv-wave svg { height: 100px; }
}

.wave-bg {
  fill: #A5D6A7;
  opacity: 0.5;
  animation: waveSway 15s infinite ease-in-out;
}

.wave-fg {
  fill: var(--primary-color);
  animation: waveSway 10s infinite ease-in-out;
  animation-delay: -3s;
}

@keyframes waveSway {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-50%) scaleY(1.1); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(30px, -50px) rotate(5deg) scale(1.05); }
  66% { transform: translate(-20px, 30px) rotate(-5deg) scale(0.95); }
}

/* --- Marquee (Seamless Infinite) --- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  display: flex;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex: 0 0 auto;
  width: 450px;
  height: 450px;
  margin-right: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.marquee-item:hover {
  transform: scale(1.02);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Fade Animation --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Popup (Lightbox Pro) --- */
#gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#gallery-modal.show {
  opacity: 1;
  visibility: visible;
}

#modal-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.modal-nav:hover { background: rgba(255, 255, 255, 0.3); }
.modal-prev { left: -70px; }
.modal-next { right: -70px; }

@media (max-width: 1024px) {
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
  .modal-nav { background: rgba(0,0,0,0.5); }
}

/* --- Others --- */
.problem-list-item {
  background: linear-gradient(135deg, #fff, #f0f7f6);
  border-left: 5px solid var(--primary-color);
  width: 100%; /* All same width within the container */
  max-width: 100%;
  transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
  .problem-list-item {
    margin-left: auto;
    margin-right: auto;
  }
}

.problem-list-item:hover {
  transform: translateX(10px);
}

.accent-right-box {
  background: var(--primary-color);
  color: #fff !important;
  border-right: 5px solid #fff;
  padding: 20px 40px;
  border-radius: 10px;
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
  box-shadow: 0 10px 30px rgba(50, 153, 142, 0.3);
}

@media (max-width: 1024px) {
  .accent-right-box {
    margin: 32px auto 0;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.glass-mint { background: rgba(165, 214, 167, 0.15) !important; }
.glass-teal { background: rgba(50, 153, 142, 0.1) !important; }

@media (max-width: 768px) {
  .glass-card {
    padding: 25px;
    border-radius: 20px;
  }
}

.section-relative {
  position: relative;
  overflow: hidden;
}

.section-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  z-index: 1;
}

.about-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  opacity: 0.15;
  top: 10%;
  right: -50px;
  animation: float 12s infinite alternate;
}

.about-shape-2 {
  width: 250px;
  height: 250px;
  background: var(--primary-color);
  opacity: 0.1;
  bottom: 10%;
  left: -50px;
  animation: float 18s infinite alternate-reverse;
}

#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* --- CTA Buttons (Glassmorphism Variations) --- */
.cta-glass-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #fff !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-glass-tel {
  background: rgba(50, 153, 142, 0.3); /* Primary green tint */
}

.cta-glass-web {
  background: rgba(230, 126, 34, 0.4); /* Web orange tint */
}

.cta-glass-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cta-glass-tel:hover {
  background: rgba(50, 153, 142, 0.5);
}

.cta-glass-web:hover {
  background: rgba(230, 126, 34, 0.6);
}

.cta-glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.6s;
}

.cta-glass-btn:hover::before {
  left: 100%;
}

.sp-fixed-cta {
  display: none;
}

@media (max-width: 768px) {
  .sp-fixed-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
  }
  .sp-cta-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    color: #fff;
  }
  .sp-cta-tel { background-color: var(--primary-color); }
  .sp-cta-web { background-color: #E67E22; }
}

#nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

#nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  height: 70px;
  width: 100%;
}

.nav-overlay-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  min-height: calc(100vh - 70px);
}

.nav-overlay-link {
  font-size: 1.1rem; /* Further reduced for elegance */
  margin: 8px 0;
  font-weight: 700;
  color: #1a2e2b;     /* Deep dark green for a professional feel */
  letter-spacing: 0.1em;
  padding: 8px 20px;
}

.close-btn {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-btn:active {
  transform: scale(0.9) rotate(90deg);
}
