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

:root {
  --primary-red: #da291c;
  --secondary-green: #2d6a4f;
  --accent-blue: #0077b6;
  --text-dark: #333333;
  --bg-light: #fef4fc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-size: 16px;
  background-color: var(--bg-light);
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

h1,
h2,
h3,
h4,
.font-bold {
  font-weight: 700;
}

/* Decorative Red Underline Heading Design */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 30px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  bottom: 0;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cline x1='40' y1='10' x2='260' y2='10' stroke='%23da291c' stroke-width='1'/%3E%3Cpath d='M30 10c0-1.5 4-3 8-3s4 1.5 4 3-4 3-8 3-8-1.5-8-3z' fill='%23da291c'/%3E%3Cpath d='M270 10c0-1.5-4-3-8-3s-4 1.5-4 3 4 3 8 3 8-1.5 8-3z' fill='%23da291c'/%3E%3Crect x='144' y='4' width='12' height='12' transform='rotate(45 150 10)' fill='%23da291c'/%3E%3Crect x='134' y='7' width='6' height='6' transform='rotate(45 137 10)' fill='%23da291c'/%3E%3Crect x='157' y='7' width='6' height='6' transform='rotate(45 160 10)' fill='%23da291c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* Section Title Styling */
.section-header {
  position: relative;
  width: 100%;
  max-width: 50%;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header img {
  width: 100%;
  height: auto;
  display: block;
}

.section-header .title-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* FV Header fixed adjustment */
header {
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #eee;
}

/* Swiper Fade Effect Adjustment */
.swiper-fv {
  width: 100%;
  height: auto;
  position: relative;
}

.swiper-fv .swiper-slide {
  width: 100%;
  height: auto;
}

.swiper-fv .swiper-slide picture,
.swiper-fv .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Floating CTA button (SP only) */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.floating-cta a {
  text-align: center;
  padding: 15px 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 50px;
  height: 50px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 40;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  bottom: 100px;
}

@media (min-width: 1024px) {
  #back-to-top.show {
    bottom: 40px;
  }
}

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

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
    /* iOS Safari compatibility */
  }
}

/* Hamburger Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-overlay.active {
  display: flex;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

/* Q&A Accordion */
.accordion-item {
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-header {
  padding: 20px;
  background: #f9f9f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.accordion-item.active .accordion-header {
  background: #fff;
}

/* Custom Gallery Modal */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-modal.active {
  opacity: 1;
  pointer-events: auto;
}

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

.custom-modal-img {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  z-index: 10000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.custom-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease;
  user-select: none;
}

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

.custom-modal-prev,
.custom-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10001;
  padding: 20px;
  user-select: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.custom-modal-prev:hover,
.custom-modal-next:hover {
  transform: translateY(-50%) scale(1.1);
  color: #ddd;
}

.custom-modal-prev {
  left: 20px;
}

.custom-modal-next {
  right: 20px;
}

/* Responsive Image for FV */
.fv-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Spacing for mobile text content */
.text-content {
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .text-content {
    margin-bottom: 0;
  }
}

img {
  vertical-align: bottom;
}

/* Asymmetry Grid for PC (Image larger than text) */
@media (min-width: 1024px) {
  .asymmetry-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 60px;
    align-items: center;
  }

  .asymmetry-grid.reverse {
    grid-template-columns: 6fr 4fr;
  }
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  z-index: 10;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Strawberry Cards Section Style */
.strawberry-cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-top: 50px;
}

@media (min-width: 640px) {
  .strawberry-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (min-width: 1024px) {
  .strawberry-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

.strawberry-card {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.strawberry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(218, 41, 28, 0.1);
}

.strawberry-icon-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  position: relative;
}

@media (max-width: 768px) {
  .strawberry-icon-wrapper {
    width: 120px;
    height: 120px;
  }
}

.strawberry-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white;
}

.strawberry-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strawberry-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 5px;
  display: block;
}

.strawberry-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

/* Rating Graphs */
.rating-container {
  margin-top: auto;
  text-align: left;
  border-top: 1px dashed rgba(218, 41, 28, 0.15);
  padding-top: 15px;
}

.rating-item {
  margin-bottom: 10px;
}

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

.rating-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: bold;
  margin-bottom: 4px;
  color: #444;
}

.rating-bar-bg {
  width: 100%;
  height: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7b8f, #da291c);
  border-radius: 4px;
  transition: width 1s ease-out;
}