/*
Theme Name: モコムLP
Theme URI: https://mocom3-lp-replica-2605.kurata10145.chatgpt.site/
Author: Codex
Description: モコムの1ページLPを、動画・カルーセル・固定CTA・レスポンシブ表示ごと再現する専用テーマです。
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mocom-lp
*/

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow: auto;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: #000;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.6rem;
  font-style: normal;
  letter-spacing: -0.1em;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("assets/images/background.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 750px auto;
  content: "";
}

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

img,
video {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.fv-wrapper {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.fv {
  position: relative;
  max-height: 1228.8px;
  overflow: hidden;
}

.fv-poster,
.fv-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  outline: none;
  filter: drop-shadow(0 0 rgba(0, 0, 0, 0));
}

.fv-video {
  position: absolute;
  inset: 0;
}

.fv-message {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.35em 1em 0.45em;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: rgba(255, 218, 232, 0.86);
  color: #8f2048;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: clamp(2rem, 5.2vw, 4rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  box-shadow: 0 3px 12px rgba(121, 48, 77, 0.18);
  pointer-events: none;
}

.fv-message span {
  display: block;
  white-space: nowrap;
}

.button-container {
  position: fixed;
  bottom: 1%;
  left: 50%;
  z-index: 999;
  width: 100%;
  max-width: 600px;
  transform: translateX(-50%);
}

.button-container a {
  display: block;
}

.button {
  display: block;
  width: 100%;
  height: auto;
  padding: 0 5% 3%;
  animation: button-bounce 3s ease infinite;
}

.sec1-wrapper {
  z-index: 0;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  text-align: left;
}

.sec1-inner {
  margin: 4% 5% 0;
}

.sec1-title {
  width: 60%;
  margin-bottom: 7%;
}

.sec1-title-card {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 0;
  padding: 1.6rem 2.6rem;
  border: 2px solid #202020;
  background: #fff;
  color: #ff7698;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.sec1-title-card::after {
  position: absolute;
  right: 4%;
  bottom: -11%;
  width: 22px;
  height: 2px;
  background: #202020;
  content: "";
  transform: rotate(45deg);
  transform-origin: right center;
}

.slider-window {
  margin-bottom: 4%;
  overflow: hidden;
}

.autoplay-slider {
  display: flex;
  width: max-content;
  max-width: 300%;
  animation: slider 15s linear infinite;
}

.slide {
  width: 100%;
  max-width: 500px;
  margin-right: 1%;
}

.slider-img {
  width: auto;
  max-width: 100%;
}

.slider-img-framed {
  box-sizing: border-box;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 3px 4px 4px rgba(58, 45, 58, 0.2);
}

.text-wrapper {
  padding: 4%;
  border-radius: 12px;
  background-color: #fff;
}

.sub-title {
  margin: 0 0 2%;
  font-size: 3.5rem;
  font-weight: 700;
}

.text {
  margin: 0;
  font-size: 3rem;
}

.sec3-wrapper {
  z-index: 0;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  text-align: left;
}

.sec3-inner {
  margin: 0 5% 5%;
  padding-top: 5%;
}

.sec3-heading {
  margin: 0;
}

.sec3-title {
  display: block;
  width: 44%;
  margin: 0 0 5%;
}

.sec3-title-mobile {
  display: none;
  margin-bottom: 5%;
}

.sec3-lead {
  margin: 0;
  font-size: 3rem;
}

.feature-carousel {
  margin: 4% 0 8%;
}

.feature-carousel-stage {
  position: relative;
}

.feature-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.feature-track::-webkit-scrollbar {
  display: none;
}

.feature-column {
  display: flex;
  flex: 0 0 100%;
  align-items: flex-start;
  gap: 5%;
  min-width: 0;
  margin: 0;
  padding: 4%;
  border-radius: 12px;
  background-color: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feature-column-reverse {
  flex-direction: row-reverse;
}

.feature-copy,
.feature-image {
  width: 47.5%;
}

.feature-image {
  flex: 0 0 47.5%;
}

.feature-title {
  margin: 0 0 3%;
  color: #ff7691;
  font-size: 3.3rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1.2;
}

.feature-title-single {
  font-size: clamp(1.45rem, 3.4vw, 2.6rem);
  letter-spacing: -0.1em;
  white-space: nowrap;
}

.feature-text {
  margin: 0;
  font-size: 2rem;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 6rem;
  height: 6rem;
  padding: 0 0 0.5rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #ff7691;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 4.5rem;
  line-height: 1;
  place-items: center;
  box-shadow: 0 3px 0 #e85f7b, 0 2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
}

.carousel-arrow-prev {
  left: -3rem;
}

.carousel-arrow-next {
  right: -3rem;
}

.carousel-arrow:active {
  transform: translateY(calc(-50% + 2px));
  box-shadow: 0 1px 0 #e85f7b;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  margin-top: 5%;
}

.carousel-dot {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 2px solid #ff7691;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #ff7691;
}

.safety-wrapper,
.faq-wrapper {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
}

.safety-inner,
.faq-inner {
  margin: 0 5%;
}

.safety-inner {
  padding: 0 0 8%;
}

.faq-inner {
  padding: 2% 0 5%;
}

.section-title-card {
  margin-bottom: 5%;
}

.section-lead {
  margin: 0 0 4%;
  font-size: 3rem;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2%;
}

.safety-card {
  min-width: 0;
  padding: 3% 2.4% 4%;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.safety-image {
  display: block;
  width: 100%;
  max-width: 216px;
  margin: 0 auto 4%;
}

.safety-card-title {
  margin: 0 0 3%;
  color: #ff7691;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1.45;
}

.safety-card-text {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.08em;
  line-height: 1.65;
  text-align: left;
}

.faq-list {
  display: grid;
  gap: 2rem;
  margin: 0;
}

.faq-item {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(70, 38, 53, 0.08);
}

.faq-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 0;
  padding: 2.5% 3%;
  font-size: 2.2rem;
  letter-spacing: -0.06em;
  line-height: 1.65;
}

.faq-question {
  align-items: center;
  color: #343434;
  font-weight: 700;
}

.faq-answer {
  border-top: 2px dashed #ffd1dc;
  background: #fffafb;
}

.faq-mark {
  flex: 0 0 auto;
  width: 5.2rem;
  height: 5.2rem;
}

.page-footer {
  width: 100%;
  min-height: clamp(160px, 38vw, 250px);
}

@keyframes slider {
  to {
    transform: translateX(-50%);
  }
}

@keyframes button-bounce {
  0%,
  40%,
  80%,
  100% {
    transform: translateY(5px);
  }
  20%,
  60% {
    transform: translateY(-15px);
  }
}

@media (max-width: 768px) {
  .sub-title {
    font-size: 4.6vw;
  }

  .sec3-title {
    display: none;
  }

  .sec3-title-mobile {
    display: flex;
  }

  .text {
    font-size: 3.8vw;
  }

  .sec3-lead {
    font-size: 3.8vw;
  }

  .section-lead {
    font-size: 3.8vw;
  }

  .safety-card-title {
    font-size: 3vw;
  }

  .safety-card-text {
    font-size: 2.45vw;
  }

  .faq-list {
    gap: 2.6vw;
  }

  .faq-row {
    gap: 2.6vw;
    font-size: 3.5vw;
  }

  .faq-mark {
    width: 8.5vw;
    height: 8.5vw;
  }

  .feature-title {
    font-size: 4.7vw;
  }

  .feature-text {
    font-size: 3.8vw;
  }

  .carousel-arrow {
    width: 11vw;
    height: 11vw;
    border-width: 2px;
    font-size: 9.5vw;
  }

  .carousel-arrow-prev {
    left: -5.5vw;
  }

  .carousel-arrow-next {
    right: -5.5vw;
  }

  .carousel-dots {
    gap: 2.2vw;
  }

  .carousel-dot {
    width: 2.6vw;
    height: 2.6vw;
  }
}

@media (max-width: 500px) {
  .feature-text {
    font-size: 3.3vw;
  }

  .safety-grid {
    grid-template-columns: 1fr;
    gap: 3.5vw;
  }

  .safety-card {
    display: grid;
    grid-template-columns: 30% 1fr;
    column-gap: 4%;
    padding: 4%;
    text-align: left;
  }

  .safety-image {
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
  }

  .safety-card-title {
    align-self: end;
    margin-bottom: 1.5vw;
    font-size: 4.2vw;
  }

  .safety-card-text {
    font-size: 3.35vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .autoplay-slider,
  .button {
    animation: none;
  }

  .feature-track {
    scroll-behavior: auto;
  }
}
