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

:root {
  --main-color: #0abab5;
  --text-color: #333333;
  --bg-color: #ffffff;
  --section-margin-pc: 120px;
  --section-margin-sp: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

/* Base Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

/* --- CTA Section Glass Tint --- */
.cta-section .bg-white\/50 {
  background-color: #0abab55c;
}

/* Service Number Visibility Increase */
.text-\[\#0abab5\]\/10 {
  color: rgb(10 186 181 / 61%) !important;
}

#service h3 {
  color: #0abab5;
}

/* Service Number Custom Adjustments */
#service .text-white\/5 {
  color: #0abab5 !important;
  opacity: 0.7; /* Increased to 70% as requested */
}

#service .-top-10 {
  top: -4.5rem !important;
}

#service .text-\[120px\] {
  font-size: 100px !important;
}

/* Border Color Override - White */
.border-\[#0abab5\] {
  --tw-border-opacity: 1 !important;
  border-color: rgb(255 255 255) !important;
}

section {
  margin-bottom: 0;
  /* Removed margin-bottom */
}

/* Marker effect */
.bg-marker {
  background: linear-gradient(transparent 60%, rgba(10, 186, 181, 0.3) 60%);
  display: inline;
  padding: 0 4px;
}

/* About Card Inner Padding Override */
@media (min-width: 1024px) {
  #about .lg\:p-14 {
    padding: 30px !important;
  }
}

/* Recommend Card Inner Padding Override */
@media (min-width: 1024px) {
  #recommend .lg\:p-12 {
    padding: 50px 31px !important;
  }
}

/* Pure CSS Infinite Marquee */
.gallery-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-marquee-inner {
  display: flex;
  width: max-content;
  gap: 20px; /* Precise 20px Gap */
  animation: scroll-marquee 40s linear infinite;
}

.marquee-item {
  width: 320px; /* Increased Mobile Size */
  flex-shrink: 0;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); } /* Adjust for exactly half width including gap */
}

/* Force animation to NEVER stop */
.gallery-marquee-container *:hover,
.gallery-marquee-container *:focus,
.gallery-marquee-inner {
  animation-play-state: running !important;
}

@media (min-width: 1024px) {
  .gallery-marquee-inner {
    animation-duration: 60s; /* Slower for bigger images */
  }
  .marquee-item {
    width: 550px; /* Much Bigger for Desktop */
  }
}
@media (min-width: 1024px) {
  #about .grid,
  #service .grid {
    gap: 30px !important;
  }
}

@media (min-width: 1024px) {
  section {
    margin-bottom: 0;
    /* Removed margin-bottom */
  }
}

/* Section Title Styling (Full Redesign) */
.section-title-wrap {
  position: relative;
  margin-bottom: 0;
  padding-bottom: 50px;
  /* Added 50px bottom padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .section-title-wrap {
    margin-bottom: 0;
    padding-bottom: 60px;
    align-items: center;
    /* Centered */
  }
}

.section-title-en {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(10, 186, 181, 0.2);
  /* Enhanced Stroke */
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 0.8;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .section-title-en {
    font-size: 5rem;
    margin-left: -1rem;
  }
}

.section-title-main {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-color);
  position: relative;
  margin-top: -1.2rem;
  /* Reduced overlap */
  display: flex;
  flex-direction: column;
  /* Vertical feel for centered title */
  align-items: center;
  gap: 0.8rem;
  letter-spacing: 0.3rem;
}

.section-title-main::before {
  content: '';
  width: 30px;
  height: 2px;
  box-shadow: 0 0 0 1.5px var(--main-color);
  /* Outlined (stroke) style */
  display: block;
}

@media (min-width: 1024px) {
  .section-title-main {
    font-size: 2rem;
    margin-top: -2.2rem;
  }

  .section-title-main::before {
    width: 45px;
    height: 3px;
    box-shadow: 0 0 0 2px var(--main-color);
  }
}

/* --- Unique Section Image Styles --- */

/* ABOUT: Geometric Shard Style */
.img-shard {
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  filter: grayscale(0.5);
}

.img-shard:hover {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  filter: grayscale(0);
  transform: scale(1.02);
}

/* SERVICE: Floating Soft Frame */
.service-img-wrap {
  position: relative;
  overflow: visible;
}

.service-img-wrap::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: -15px;
  left: -15px;
  border: 4px solid var(--main-color);
  z-index: -1;
  opacity: 0.3;
  transition: all 0.4s ease;
}

.service-img-wrap:hover::after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.1;
}

/* RECOMMEND/PRICE: Shadow Levitation */
.card-img-levitate {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.card-img-levitate:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px -15px rgba(10, 186, 181, 0.2);
}

/* MESSAGE: Organic Blob Style */
.img-organic {
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  transition: all 0.8s ease-in-out;
  overflow: hidden;
  box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.05);
}

.img-organic:hover {
  border-radius: 58% 42% 38% 62% / 42% 56% 44% 58%;
  transform: rotate(2deg) scale(1.05);
}

/* GALLERY: Parallax Pan */
.gallery-img-pan {
  transition: transform 1.2s cubic-bezier(0.1, 0.6, 0.1, 1);
}

.gallery-item:hover .gallery-img-pan {
  transform: scale(1.1);
}

/* --- Base System Refinement --- */
header {
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

/* FV Swiper */
.fv-swiper {
  width: 100%;
  aspect-ratio: 21 / 9;
  /* Ultra-wide, shorter height on PC */
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .fv-swiper {
    aspect-ratio: 1 / 1;
    /* Square, shorter height for SP */
  }
}

.fv-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fill the aspect-ratio container without gaps */
  vertical-align: bottom;
}

/* CTA */
.cta-section {
  background: var(--main-color);
  color: white;
}

.cta-btn {
  transition: transform 0.3s ease, background 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* Parallax */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 1023px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* FAQ Accordion */
.accordion-item {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-header {
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #f9f9f9;
}

.accordion-content {
  max-height: 0;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Floating Elements */
.pagetop-btn {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 54px;
  height: 54px;
  background: #0abab5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 99;
  box-shadow: 0 4px 15px rgba(10, 186, 181, 0.3);
}

.pagetop-btn.show {
  opacity: 1;
  visibility: visible;
  bottom: 85px;
}

.pagetop-btn:hover {
  transform: translateY(-5px);
  background: #089d98;
  box-shadow: 0 8px 25px rgba(10, 186, 181, 0.45);
  color: white;
}

/* SP Fixed CTA */
.sp-fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .sp-fixed-cta {
    display: none;
  }
}

/* Hamburger Overlay */
#hamburger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Images: No rounded corners or shadows as per requirement */
img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Swiper Gallery */
.gallery-swiper .swiper-slide img {
  cursor: pointer;
}

/* Scroll Line Animation */
@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }

  50% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}

.animate-scroll-line {
  animation: scrollLine 2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
/* SP Padding Override */
@media (max-width: 1023px) {
  .px-8 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
/* Right click disable message (hidden) */
.no-select {
  user-select: none;
}