/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Background Layer (Fixed Background)
   ======================================== */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    z-index: -10;
    pointer-events: none;
}
@media (max-width: 767px) {
    .background-layer {
        background-image: url('../img/background_sp.png');

    }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-effects {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: inline;
}

.pc-only {
  display: none;
}

@media (min-width: 1024px) {
  .sp-only {
    display: none;
  }
  
  .pc-only {
    display: inline;
  }
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ffffff;
  color: #000000;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
  left: 16px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(166, 20, 105, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #A61469;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 16px 32px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header-right {
  display: flex;
  align-items: center;
}

/* PC Navigation */
.nav-pc {
  display: none;
  align-items: center;
  gap: 32px;
  margin-right: 32px;
}

@media (min-width: 1024px) {
  .nav-pc {
    display: flex;
  }
}

.nav-link {
  color: #ffffff;
  font-size: 16px;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* PC CTA Buttons */
.cta-buttons-pc {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1024px) {
  .cta-buttons-pc {
    display: flex;
  }
}

.btn-contact-header,
.btn-download-header {
  padding: 8px 24px;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-contact-header {
  background-color: #ffffff;
  color: #A61469;
}

.btn-contact-header:hover {
  background-color: #f3f4f6;
  transform: scale(1.05);
}

.btn-download-header {
  background-color: #12767F;
  color: #ffffff;
}

.btn-download-header:hover {
  background-color: #0F5A61;
  transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
  display: block;
  padding: 8px;
  color: #ffffff;
  transition: all 0.3s ease;
}

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

.hamburger-icon,
.close-icon {
  font-size: 24px;
  display: block;
}

.hamburger-icon.hidden,
.close-icon {
  display: none;
}

.close-icon.active {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #A61469;
  border-top: 1px solid #8A1056;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 16px 32px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  color: #ffffff;
  font-size: 16px;
  text-align: left;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.mobile-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-contact-mobile,
.btn-download-mobile {
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-contact-mobile {
  background-color: #ffffff;
  color: #A61469;
}

.btn-contact-mobile:hover {
  background-color: #f3f4f6;
  transform: scale(1.05);
}

.btn-download-mobile {
  background-color: #12767F;
  color: #ffffff;
}

.btn-download-mobile:hover {
  background-color: #0F5A61;
  transform: scale(1.05);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  min-height: 780px;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image: url('../img/fvBackgroundImage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 814px;
    height: 814px;
  }
}
@media (max-width: 767px) {
    .hero-section {
        background-image: url('../img/fvBackgroundImage_sp.png');
    }
}
.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 128px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .hero-container {
    padding-top: 160px;
  }
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .hero-content {
    display: grid;
    grid-template-columns: 4fr 3fr;
    grid-template-rows: auto auto;
    gap: 64px;
    align-items: center;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
    grid-column: 1;
    grid-row: 1;
  }
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f2937;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 60px;
  }
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 32px;
  color: #374151;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 30px;
  }
}

.hero-description {
  font-size: 16px;
  margin-bottom: 32px;
  color: #4b5563;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 18px;
    margin-bottom: 48px;
  }
}

.hero-image {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  padding: 0 32px;
}

@media (min-width: 1024px) {
  .hero-image {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-content: flex-end;
    margin-bottom: 0;
    padding: 0;
  }
}

.hero-img {
  width: 100%;
  max-width: 384px;
  height: auto;
}

@media (min-width: 1024px) {
  .hero-img {
    max-width: 480px;
    transform: scale(1.5);
    transform-origin: center right;
    margin-left: 60px;
    margin-top: 100px;
    max-height: 800px;
  }
}

.hero-cta {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-cta {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

/* Mobile CTA */
.hero-cta-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

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

.btn-contact-hero-sp,
.btn-download-hero-sp {
  width: 100%;
  border-radius: 9999px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0.68px;
}

.btn-contact-hero-sp {
  height: 48px;
  background-color: #A61469;
  color: #ffffff;
}

.btn-contact-hero-sp:hover {
  background-color: #8A1256;
  transform: scale(1.05);
}

.btn-download-hero-sp {
  height: 46px;
  background-color: #12767F;
  color: #ffffff;
  border: 2px solid #12767F;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

.btn-download-hero-sp:hover {
  background-color: #0F5A61;
  transform: scale(1.05);
}

/* Desktop CTA */
.hero-cta-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .hero-cta-desktop {
    display: flex;
    gap: 16px;
  }
}

.btn-contact-hero-pc,
.btn-download-hero-pc {
  border-radius: 9999px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  height: 65px;
}

.btn-contact-hero-pc {
  width: 190px;
  background-color: #A61469;
  color: #ffffff;
  font-size: 21.71px;
  line-height: 32.57px;
  letter-spacing: 0.68px;
}

.btn-contact-hero-pc:hover {
  background-color: #8A1256;
  transform: scale(1.05);
}

.btn-download-hero-pc {
  width: 260px;
  background-color: #12767F;
  color: #ffffff;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.5px;
  border: 2px solid #12767F;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.btn-download-hero-pc:hover {
  background-color: #0F5A61;
  transform: scale(1.05);
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2937;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 36px;
  }
}

.title-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 2rem;
}

.decoration-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.section-description {
  font-size: 18px;
  line-height: 1.8;
  color: #6b7280;
  max-width: 896px;
  margin: 0 auto 48px;
}

@media (min-width: 1024px) {
  .section-description {
    font-size: 20px;
  }
}

/* ========================================
   PROBLEMS SECTION
   ======================================== */
.section-problems {
  padding: 64px 24px;
}

.problems-images {
  max-width: 1152px;
  margin: 0 auto;
}

.problems-img-pc {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.problems-img-sp {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .problems-img-pc {
    display: block;
  }
  
  .problems-img-sp {
    display: none;
  }
}

/* ========================================
   SOLUTION SECTION
   ======================================== */
.section-solution {
  padding: 64px 24px;
}

.solution-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: #4b5563;
}

.solution-text {
  font-size: 24px;
  line-height: 1.6;
  text-align: center;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.section-features {
  padding: 64px 24px;
}

/* PC・TB版 */
.features-pc {
  display: none;
}

@media (min-width: 1024px) {
  .features-pc {
    display: block;
  }
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

/* 左画像→右テキスト */
.feature-left .feature-content {
  order: 2;
}

.feature-left .feature-image {
  order: 1;
}

/* 左テキスト→右画像 */
.feature-right .feature-content {
  order: 1;
}

.feature-right .feature-image,
.feature-right .feature-image-security {
  order: 2;
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.feature-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background-color: #A61469;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-right: 16px;
  flex-shrink: 0;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #6b7280;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

.bullet {
  color: #12767F;
  margin-right: 8px;
  flex-shrink: 0;
}

.feature-image img,
.feature-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-image-security {
  display: flex;
  justify-content: center;
  align-items: center;
}

.security-img {
    width: 40%;
    margin:0 auto;
}

/* SP版 */
.features-sp {
  display: block;
}

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

.feature-item-sp {
  margin-bottom: 64px;
}
.feature-item-sp .iso-b{
  width:40%;
  margin:32px auto 0;
  
}

.feature-item-sp:last-child {
  margin-bottom: 0;
}

.feature-img-sp {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 32px;
}

/* ========================================
   EFFECTS SECTION
   ======================================== */
.section-effects {
  padding: 64px 24px;
}

.effects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1536px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .effects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.effect-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(166, 20, 105, 0.15);
}

.effect-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: #fce7f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.effect-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: sepia(1) saturate(10) hue-rotate(290deg) brightness(0.8);
}

.effect-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.effect-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.effect-description {
  color: #4b5563;
  line-height: 1.6;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.section-cta {
  position: relative;
  z-index: 10;
  padding: 96px 32px 96px;
  background-color: #A61469;
  text-align: center;
}

.cta-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #ffffff;
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 36px;
  }
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.btn-contact-cta,
.btn-download-cta {
  width: 100%;
  max-width: 320px;
  min-width: 280px;
  height: 56px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.5px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.btn-contact-cta {
  background-color: #ffffff;
  color: #A61469;
  border: 2px solid #A61469;
}

.btn-contact-cta:hover {
  background-color: #f3f4f6;
  transform: scale(1.05);
}

.btn-download-cta {
  background-color: #12767F;
  color: #ffffff;
}

.btn-download-cta:hover {
  background-color: #0F5A61;
  transform: scale(1.05);
}

/* ========================================
   SPACER
   ======================================== */
.spacer {
  padding: 32px 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: #A61469;
  padding: 24px 16px;
}

.footer-container {
  width: 100%;
}

/* PC版レイアウト */
.footer-pc {
  display: none;
}

@media (min-width: 768px) {
  .footer-pc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer-logo-img {
    height: 28px;
  }
}

.footer-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
.footer-center {
    padding-right: 200px;
  }
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-links {
    gap: 16px;
  }
}

.footer-link {
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fce7f3;
}

.footer-separator {
  color: #ffffff;
  font-size: 12px;
}

.footer-copyright {
  font-size: 11px;
  color: #ffffff;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer-copyright {
    font-size: 11px;
  }
}

.footer-trademark {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
}

.footer-iso {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-iso-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer-iso-img {
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .footer-iso-img {
    height: 80px;
  }
}

/* SP版レイアウト */
.footer-sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-sp {
    display: none;
  }
}

.footer-logo-img-sp {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.footer-links-sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-link-sp {
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.footer-link-sp:hover {
  color: #fce7f3;
}

.footer-trademark-sp {
  font-size: 10px;
  color: #ffffff;
  text-align: center;
}

.footer-copyright-sp {
  font-size: 9px;
  color: #ffffff;
  text-align: center;
}

.footer-iso-sp {
  display: flex;
  align-items: center;
}

.footer-iso-img-sp {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Extra small devices (iPhone SE - 320px) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .solution-text {
    font-size: 20px;
  }
}

/* Large mobile devices (iPhone 16 Pro Max - 440px) */
@media (min-width: 440px) and (max-width: 767px) {
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 22px;
  }
}

/* Prevent layout shift on scroll */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
}
