/* About Section */
.about {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 100vh;
  /* padding: 0 2rem; */
}

.about .todokede {
  width: 878px;
  max-width: 100%;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  padding: 1rem 2rem;
  margin: 42px 0;
}

.about .container {
  width: 100%;
  max-width: 100%;
  padding: 2rem 0;
  text-align: center;
  background-image: url("../img/bg_woman.webp");
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  min-height: 400px;
  position: relative;
  z-index: 1;
}
.sp-br {
  display: none;
}
.about .container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/bg_man.webp");
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  z-index: -1;
}

.about h2 {
  font-family: var(--font-mincho);
  font-size: 40px;
  color: white;
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  line-height: 2;
  letter-spacing: 0.2em;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.about h3 {
  font-family: var(--font-mincho);
  font-size: 16px;
  color: white;
  margin-bottom: 11px;
  text-align: left;
  position: relative;
  z-index: 2;
  letter-spacing: 0.3rem;
}

.about p {
  text-align: left;
  font-size: 16px;
  font-family: var(--font-mincho);
  line-height: 1.8;
  color: white;
  position: relative;
  z-index: 2;
  letter-spacing: 0.2rem;
}

/* Features Section */
.grid {
  display: flex;
  justify-content: center;
  width: 878px;
  max-width: 100%;
  margin: 0 auto 0 auto;
  padding: 8px 0 0 0;
}

.item {
  flex: 1;
  aspect-ratio: 1;
  background: transparent;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  background-image: url("../img/bg_bubble.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  z-index: 1;
}

.item.answer-bg {
  background-image: url("../img/answer_bg.webp");
}

.item:nth-child(2) {
  z-index: 2;
}

.item h3 {
  font-family: var(--font-mincho);
  font-size: 26px;
  color: white;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.2em;
}

.item p {
  font-family: var(--font-mincho);
  font-size: 17px;
  color: white;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.2em;
}
.features-grid {
  display: flex;
  justify-content: center;
  width: 878px;
  max-width: 100%;
  margin: 3rem auto;
  padding: 2rem 0;
}

.feature-item {
  flex: 1;
  background: transparent;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  background-image: url("../img/bg_bubble.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  z-index: 1;
}

.feature-item:nth-child(2) {
  z-index: 2;
}

.feature-item h3 {
  font-family: var(--font-mincho);
  font-size: 26px;
  color: white;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.2em;
}

.feature-item p {
  font-family: var(--font-gothic);
  font-size: 17px;
  color: white;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.2em;
}

/* Contact Section */
.last-cta h2 {
  font-weight: 100;
  letter-spacing: 0.3rem;
  font-size: 36px;
  margin-bottom: 100px;
}

.salusmore-image {
  display: block;
  margin: 2rem auto;
  height: 50px;
  width: auto;
}

.last-cta {
  padding-bottom: 0;
  margin-bottom: 4rem;
}

.last-cta h4 {
  text-align: center;
  font-family: var(--font-english);
  margin: 3rem 0;
  font-weight: 100;
  font-size: 18px;
  letter-spacing: 0.2em;
}

.contact p {
  text-align: center;
  font-size: 1.1rem;
  font-family: var(--font-gothic);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: #000;
  color: #838383;
  text-align: center;
  padding: 2rem 0;
  font-family: var(--font-gothic);
}

.footer p {
  font-family: var(--font-mincho);
  font-size: 12px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Worries Section */
.worries {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("../img/22908537.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 750px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 73.33%, 50% 100%, 0 73.33%);
  padding: 0;
}

.worries-content {
  width: 878px;
  max-width: 100%;
  text-align: center;
  z-index: 2;
  position: relative;
  padding: 0 2rem;
}

.worries-image {
  max-width: 100%;
  height: auto;
  z-index: 2;
  position: relative;
}

.worries-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.worries-list {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  width: 100%;
  max-width: 878px;
  margin-left: auto;
  margin-right: auto;
  height: 375px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: visible;
}

.worries-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.worry-man {
  height: 375px;
  z-index: 10;
  position: absolute;
  right: -0px;
  bottom: 0px;
  object-fit: contain;
}

.worries-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/bg_grid.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.worry-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  position: relative;
  z-index: 2;
}

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

.checkmark {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  min-width: 20px;
  position: relative;
  z-index: 2;
}

.worry-text {
  font-family: var(--font-mincho);
  font-size: 20px;
  color: #333;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* Answer Section */
.answer {
  background-color: #000;
  color: white;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.answer .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.answer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 20%;
  background-image: url("../img/decoration_hexagon_rotate.webp");
  background-size: contain;
  background-position: right top;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.answer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 30%;
  background-image: url("../img/decoration_hexagon.webp");
  background-size: contain;
  background-position: left bottom;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.supplement-img {
  max-width: 400px;
  height: 280px;
  margin-top: -140px;
  z-index: 2;
  position: relative;
  object-fit: contain;
}

.answer h2 {
  font-family: var(--font-mincho);
  font-size: 31px;
  font-weight: 400;
  color: white;
  line-height: 1.8;
  margin: 0;
  z-index: 2;
  position: relative;
  letter-spacing: 0.3em;
}

.answer h2 span {
  font-size: 65px;
  font-weight: 100;
  position: relative;
}

.answer h2 .dot {
  position: absolute;
  top: -15px;
  font-size: 20px;
  font-weight: 300;
}

.answer h2 .dot:first-child {
  left: 20px;
}

.answer h2 .dot:last-child {
  right: 20px;
}

.circles-container {
  display: flex;
  justify-content: center;
  width: 878px;
  max-width: 100%;
  margin: 3rem auto;
  padding: 2rem 0;
}

.circle {
  flex: 1;
  background: transparent;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  background-image: url("../img/answer_bg.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  z-index: 1;
}

.circle:nth-child(2) {
  z-index: 2;
}

.circle h3 {
  font-family: var(--font-mincho);
  font-size: 26px;
  color: white;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.2em;
}

.circle p {
  font-family: var(--font-gothic);
  font-size: 17px;
  color: white;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.2em;
}

.circle-content {
  text-align: center;
  color: white;
  font-family: var(--font-mincho);
  font-size: 14px;
  line-height: 1.6;
  padding: 1rem;
}

.circle-content p {
  margin: 0.2rem 0;
  font-weight: 300;
}

.circle-content .text-small {
  font-size: 17px;
}

.circle-content .text-large {
  font-size: 28px;
}

.vitality {
  max-width: 878px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  gap: 0.5rem;
}

.vitality-box {
  height: 320px;
  width: 100%;
  margin: 0 2rem;
  position: relative;
  background-image: url("../img/answer_bg_silver.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.vitality-content {
  width: 75%;
  height: 100%;
  padding: 48px 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  position: relative;
  text-align: left;
}

.vitality-content h3 {
  font-family: var(--font-mincho);
  font-size: 24px;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.vitality-content p {
  font-family: var(--font-gothic);
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  letter-spacing: 0.2em;
}

.answer-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 1;
}

.answer-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 20%,
    black 50%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 20%,
    black 50%
  );
}

/* Component Section */
.component {
  background-color: #000;
  color: white;
  padding: 2em 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-direction: column;
  position: relative;
}

.component::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 20%;
  background-image: url("../img/decoration_hexagon.webp");
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  z-index: 3;
  pointer-events: none;
}

.component::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 20%;
  background-image: url("../img/decoration_hexagon_rotate.webp");
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  z-index: 3;
  pointer-events: none;
}

.component-box {
  width: 878px;
  max-width: 100%;
  height: 400px;
  margin: 0 auto;
  position: relative;
  background-color: transparent;
  overflow: hidden;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.component-content {
  width: 60%;
  height: 100%;
  text-align: left;
  position: relative;
  z-index: 2;
}

.component-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.decorative-symbol {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  object-fit: contain;
}

.english-title {
  font-family: var(--font-english);
  font-size: 14px;
  color: #c8a88b;
  margin-right: 20px;
  letter-spacing: 0.2em;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: #c8a88b;
}

.component-content h3 {
  font-family: var(--font-mincho);
  font-size: 32px;
  color: white;
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.component-content p {
  font-family: var(--font-gothic);
  font-size: 16px;
  color: #c8a88b;
  line-height: 1.8;
  letter-spacing: 0.2em;
}

.component-content .white-text {
  color: white;
}

.component-content .mincho-text {
  font-family: var(--font-mincho);
  margin-bottom: 16px;
}

.red-wine-image {
  width: 40%;
  height: auto;
  object-fit: contain;
  object-position: top;
  z-index: 1;
  position: relative;
  max-width: 40%;
}

.component-grey {
  background-color: #1a1a1a;
  width: 100%;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
}

.component-black {
  background-color: #000;
  width: 100%;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
}

/* Relief Section */
.relief {
  background-image: url("../img/decoration_geometry.webp"),
    url("../img/decoration_geometry_rotate.webp"), url("../img/silver_bg.webp");
  background-size: 25%, 25%, cover;
  background-position: left top, right bottom, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.relief-header {
  margin-bottom: 4rem;
}

.relief-subtitle {
  font-family: var(--font-mincho);
  font-size: 18px;
  color: #333;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.relief-title {
  font-family: var(--font-mincho);
  font-size: 36px;
  color: #333;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.relief-title br {
  display: none;
}

.relief-content {
  width: 878px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 2rem;
}

.relief-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.relief-text {
  flex: 1;
  position: relative;
  width: 878px;
  max-width: 100%;
}

.relief-text-title::before {
  content: "";
  position: absolute;
  left: 0rem;
  top: 0;
  width: 6px;
  height: 100%;
  background-color: #c8a88b;
}

.relief-text .relief-text-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  position: relative;
  padding-left: 2rem;
  letter-spacing: 0.1rem;
}

.relief-text .relief-text-title h3 {
  font-family: var(--font-mincho) !important;
}

.relief-text .relief-text-p {
  font-family: var(--font-gothic);
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  letter-spacing: 0.1rem;
}

.relief-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 768px) {
  /* 768px以下のスタイル */
  .header .container {
    padding: 1rem 20px;
  }

  .hero-content {
    align-items: flex-end !important;
    height: 84vh;
    padding: 30px 1rem;
  }

  .hero-video {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .hero-video video {
    /* height: 70%; */
  }

  .hero-title {
    font-size: 34px;
    margin-bottom: 0;
  }

  .hero-text {
    padding-left: 0;
  }

  .product-section {
    margin-top: -120px;
    padding: 0 8px;
  }

  .product-banner span {
    font-size: 15px;
  }

  .product-banner {
    padding: 1rem 1rem;
    justify-content: center;
  }

  .product-banner span::before {
    left: -5rem;
  }
  .product-banner span::after {
    right: -5rem;
  }
  .product-banner span::before,
  .product-banner span::after {
    width: 5rem;
  }
  .product-info {
    flex: 3;
  }

  .product-content {
    gap: 0;
    padding: 0.5rem;
    height: 330px;
  }
  .product-name {
    display: flex;
    justify-content: center;
    margin-bottom: 11px;
    margin-top: 20px;
  }
  .product-image {
    height: auto;
    margin-bottom: 35px;
    flex: 2;
  }
  .product-image img {
    max-width: 75%;
  }
  .product-name-img {
    height: 22px;
  }
  .product-specs {
    gap: 1rem;
    flex-direction: column-reverse;
    margin-bottom: 13px;
  }
  .purchase-btn-text {
    font-size: 20px;
  }
  .purchase-btn-bg {
    object-fit: fill;
  }
  .specs-text span {
    letter-spacing: 0.1em;
  }

  .about .todokede {
    width: auto;
    margin: 2rem;
    padding: 1rem 0;
  }
  .about h2 {
    font-size: 24px;
    margin: 0px;
  }
  .grid {
    flex-direction: column;
    margin: 0 6rem;
    width: auto;
  }
  .grid .item:nth-child(2) {
    margin-top: -60px;
    margin-bottom: -60px;
  }

  .about .container {
    background-size: 50%;
    background-position: left bottom;
  }

  .about .container::after {
    background-size: 90%;
    background-position: right bottom;
  }
  .sp-br {
    display: block;
  }
  .worries-list {
    height: 394px;
    padding: 34px 20px;
    height: auto;
  }
  .worries-left {
    height: 100%;
    justify-content: normal;
  }
  .checkmark {
    margin-right: 0;
  }
  .worry-text {
    font-size: 20px;
    text-align: left;
    z-index: 1;
  }
  .worry-man {
    height: auto;
    width: 28%;
    z-index: 0;
  }
  .worries {
    clip-path: polygon(0 0, 100% 0, 100% 91.33%, 50% 100%, 0 91.33%);
  }

  .answer {
    gap: 0;
  }

  .answer .grid .item:nth-child(2) {
    margin: 0;
  }
  .answer .container {
    background-size: 50%;
    background-position: left bottom;
    padding: 0;
    background-image: url("../img/bg_woman.webp");
    background-position: left bottom;
    background-repeat: no-repeat;
  }

  .answer .container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/bg_man.webp");
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    z-index: -1;
  }
  .answer h2 {
    font-size: 22px;
    padding: 0 1rem;
  }
  .vitality {
  }
  .vitality-box {
    height: 520px;
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-direction: column-reverse;
  }
  .vitality-content {
    width: 100%;
    height: 60%;
    padding: 1.5rem;
  }
  .vitality-content h3 {
    font-size: 18px;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  .vitality-content p {
    font-size: 14px;
  }
  .answer-image {
    position: relative;
    height: 40%;
    width: 100%;
    object-fit: cover;
    z-index: 1;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .component-black .component-box {
    height: auto;
    gap: 1rem;
    flex-direction: column-reverse;
  }
  .component-grey .component-box {
    height: auto;
    gap: 1rem;
    flex-direction: column;
  }
  .component-content {
    width: 100%;
  }
  .english-title {
    margin-right: 20px;
  }
  .red-wine-image {
    width: 100%;
    max-width: 100%;
  }
  .component-content h3 {
    font-size: 26px;
    margin-bottom: 11px;
  }
  .relief-content {
    gap: 1.5rem;
  }
  .relief-item {
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .relief-image {
    width: 100%;
    height: auto;
  }
  .relief-text-title h3 {
    font-size: 18px;
    letter-spacing: 0.1rem;
  }
  .relief-text-p {
    font-size: 15px;
  }
  .relief-text .relief-text-title {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
  }
  .relief {
    padding: 2rem 0;
  }
  .relief-title {
    margin-bottom: 1rem;
  }

  .relief-title br {
    display: block;
  }

  .relief-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  /* 480px以下のスタイル */
  .logo-img {
    height: 20px;
  }
  .online-store-btn {
    padding: 6px 10px;
  }
  .hero-title {
    font-size: 28px;
  }
  .price-img {
    height: 72px;
  }
  .specs-text {
    padding: 0.5rem 1rem;
  }
  .specs-text span {
    font-size: 14px;
  }
  .purchase-btn-text {
    font-size: 18px;
  }
  .purchase-btn {
    padding: 10px 4px;
  }
  .grid {
    margin: 0 2rem;
  }
  .worries {
    height: 700px;
  }
  .worry-text {
    font-size: 16px;
  }
  .salusmore-image {
    height: 36px;
  }
  .product-image img {
    max-width: 100%;
  }
  .product-image {
    margin-bottom: 70px;
  }
  .product-content {
    height: 290px;
  }
  .worry-man {
    width: 36%;
  }
  .answer h2 span.small {
    font-size: 14px;
  }
  .item p {
    font-size: 14px;
  }
  .item h3 {
    font-size: 21px;
  }
  .vitality-content h3 {
    font-size: 21px;
  }
  .vitality-box:first-child {
    height: 650px;
  }
  .component-content .mincho-text {
    margin-bottom: 20px;
  }
  .last-cta h2 {
    letter-spacing: 0.3rem;
    font-size: 26px;
  }
  .last-cta .container {
    padding: 0 8px;
  }
}

/* Scroll Animation Styles */
.scroll-animate {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: all 0.8s ease !important;
}

.scroll-animate.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 特定の要素に対するアニメーション強化 */
.item.scroll-animate,
.item.answer-bg.scroll-animate,
.vitality-box.scroll-animate,
.component-box.scroll-animate,
.relief-item.scroll-animate,
.answer h2.scroll-animate {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: all 0.8s ease !important;
}

.item.scroll-animate.animate,
.item.answer-bg.scroll-animate.animate,
.vitality-box.scroll-animate.animate,
.component-box.scroll-animate.animate,
.relief-item.scroll-animate.animate,
.answer h2.scroll-animate.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 各セクションのアニメーション - scroll-animateクラスがない要素のみ */
.about:not(.scroll-animate),
.worry-item:not(.scroll-animate),
.item:not(.scroll-animate),
.answer:not(.scroll-animate),
.vitality-box:not(.scroll-animate),
.component-box:not(.scroll-animate),
.relief-item:not(.scroll-animate),
.product-banner:not(.scroll-animate),
.product-content:not(.scroll-animate) {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.about:not(.scroll-animate).animate,
.worry-item:not(.scroll-animate).animate,
.item:not(.scroll-animate).animate,
.answer:not(.scroll-animate).animate,
.vitality-box:not(.scroll-animate).animate,
.component-box:not(.scroll-animate).animate,
.relief-item:not(.scroll-animate).animate,
.product-banner:not(.scroll-animate).animate,
.product-content:not(.scroll-animate).animate {
  opacity: 1;
  transform: translateY(0);
}

/* 遅延アニメーション */
.scroll-animate-delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate-delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate-delay-3 {
  transition-delay: 0.3s;
}

.scroll-animate-delay-4 {
  transition-delay: 0.4s;
}

.scroll-animate-delay-5 {
  transition-delay: 0.5s;
}

.scroll-animate-delay-6 {
  transition-delay: 0.6s;
}

/* スマホでのアニメーション最適化 */
@media (max-width: 768px) {
  .scroll-animate {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.6s ease !important;
  }

  .scroll-animate.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* スマホでは遅延を短縮 */
  .scroll-animate-delay-1 {
    transition-delay: 0.05s;
  }
  .scroll-animate-delay-2 {
    transition-delay: 0.1s;
  }
  .scroll-animate-delay-3 {
    transition-delay: 0.15s;
  }
  .scroll-animate-delay-4 {
    transition-delay: 0.2s;
  }
  .scroll-animate-delay-5 {
    transition-delay: 0.25s;
  }
  .scroll-animate-delay-6 {
    transition-delay: 0.3s;
  }
}

/* さらに小さな画面での最適化 */
@media (max-width: 480px) {
  .scroll-animate {
    opacity: 0 !important;
    transform: translateY(15px) !important;
    transition: all 0.5s ease !important;
  }

  .scroll-animate.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* 小さな画面では遅延をさらに短縮 */
  .scroll-animate-delay-1 {
    transition-delay: 0.03s;
  }
  .scroll-animate-delay-2 {
    transition-delay: 0.06s;
  }
  .scroll-animate-delay-3 {
    transition-delay: 0.09s;
  }
  .scroll-animate-delay-4 {
    transition-delay: 0.12s;
  }
  .scroll-animate-delay-5 {
    transition-delay: 0.15s;
  }
  .scroll-animate-delay-6 {
    transition-delay: 0.18s;
  }
}

/* iPhoneでの初期表示問題を解決 */
body:not(.fonts-loaded):not(.fonts-fallback) .scroll-animate {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.fonts-loaded .scroll-animate,
body.fonts-fallback .scroll-animate {
  opacity: 0 !important;
  visibility: visible !important;
  transform: translateY(30px) !important;
  transition: all 0.8s ease !important;
}

body.fonts-loaded .scroll-animate.animate,
body.fonts-fallback .scroll-animate.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* スマホでの初期表示改善 - フォント読み込み前でも表示される要素 */
@media (max-width: 768px) {
  body:not(.fonts-loaded):not(.fonts-fallback) .hero-title,
  body:not(.fonts-loaded):not(.fonts-fallback) .product-banner span {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* iPhoneでのフォント読み込み完了後の表示改善 */
@media (max-width: 768px) {
  body.fonts-loaded .scroll-animate,
  body.fonts-fallback .scroll-animate {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.6s ease !important;
  }

  body.fonts-loaded .scroll-animate.animate,
  body.fonts-fallback .scroll-animate.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}
