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

:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --accent-color: #333;
  --bg-color: #fff;
  --text-color: #1a1a1a;
  --font-main: 'Noto Sans JP', sans-serif;
  --section-margin-pc: 120px;
  --section-margin-sp: 80px;
  --header-height: 80px;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* Utilities */
.section-margin {
  margin-bottom: var(--section-margin-sp);
}

@media (min-width: 768px) {
  .section-margin {
    margin-bottom: var(--section-margin-pc);
  }
}

.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex-asymmetric {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .flex-asymmetric {
    flex-direction: row;
    align-items: center;
  }
  .flex-asymmetric.reverse {
    flex-direction: row-reverse;
  }
  .flex-asymmetric > .col-img {
    flex: 0 0 40%;
  }
  .flex-asymmetric > .col-text {
    flex: 0 0 60%;
    padding: 0 60px;
  }
}

/* Header */
header {
  height: var(--header-height);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Section Headings */
.section-header-img {
  text-align: center;
  margin: 0 auto 60px;
}

.section-header-img .heading-text {
  color: var(--text-color);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-header-img .heading-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

@media (max-width: 767px) {
  .section-header-img {
    margin-bottom: 40px;
  }
  .section-header-img .heading-text {
    font-size: 1.75rem;
  }
}

/* FV */
.swiper-fv {
  width: 100%;
  height: auto;
}

.swiper-fv .swiper-slide img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* CTA */
.cta-section {
  background: #f8f8f8;
  padding: 60px 0;
  text-align: center;
}

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

/* Gallery */
.swiper-gallery {
  padding-bottom: 50px !important;
}

.swiper-gallery .swiper-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}


/* Voice Section */
.voice-content {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5; /* Standard property */
  -webkit-box-orient: vertical;
  max-height: 9em; /* 5 lines * 1.8 line-height = 9em */
  transition: max-height 0.3s ease;
}

.voice-content.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset; /* Standard property */
  max-height: none;
}

.swiper-voice-next,
.swiper-voice-prev {
  color: var(--primary-color) !important;
}

.swiper-voice-next::after,
.swiper-voice-prev::after {
  font-size: 24px !important;
  font-weight: bold;
}

@media (min-width: 1024px) {
  .swiper-voice-next {
    right: -50px !important;
  }
  .swiper-voice-prev {
    left: -50px !important;
  }
}

/* Gallery Modal */
#gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  z-index: 2001;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 10px;
}

.modal-close:hover {
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .modal-close {
    top: -50px;
    right: 0;
  }
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #333;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
}

/* Floating CTA SP */
.floating-cta-sp {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 998;
}

@media (max-width: 767px) {
  .floating-cta-sp {
    display: flex;
    justify-content: space-around;
  }
  #back-to-top {
      bottom: 80px;
  }
}
