/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@media screen and (max-width: 1366px) {
  html {
    font-size: 0.732vw;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 2.325vw;
  }
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  min-height: 100vh;
  font-size: 1.6rem;
  background: url(../images/recipe/bg_all.jpg);
  background-size: 103%;
  background-position: 100%;
  overflow-x: hidden;
  color: #3c3c3c;
}

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

ul {
  list-style: none;
}

/* Header Section */
.header {
  width: 100vw;
  overflow-x: hidden;
}

.header::before {}

.header-content {
  padding-top: 3.2rem;
  padding-bottom: 7.8rem;
}

.header-content .header_mv {
  position: relative;
  left: -3.2rem;
  width: calc(100% + 6.4rem);
  margin-bottom: 10.4rem;
  max-width: none;
}

.header-content .header_mv_txt {
  display: block;
  width: 75.4rem;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  max-width: 96rem;
  margin: 0 auto;
  padding: 0;
}

/* Recipe Section */
.recipe-section {
  background-color: #ffffff;
  margin-top: 4.8rem;
  padding: 4rem;
  border-radius: 2rem;
  position: relative;
  border: solid 1px #707070;
  box-shadow: 0 0.3rem 2.4rem rgba(0, 0, 0, 0.16);
}

.recipe-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
}

.recipe-section-alt {}

.recipe-card {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  max-width: 100%;
  margin: 0 auto;
}

.recipe-card-reverse {
  flex-direction: row-reverse;
}

/* Recipe Image */
.recipe-image-container {
  flex: 0 0 42rem;
  position: relative;
}

.recipe-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 2.4rem;
  text-align: center;
}

.recipe-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2rem;
}

.recipe-description {
  font-size: 1.8rem;
  line-height: 1.7;
  margin-top: 2rem;
  text-align: center;
  font-weight: 600;
}

/* Recipe Details */
.recipe-details {
  flex: 1;
  padding: 0;
}

.recipe-material h3,
.recipe-wrap h3 {
  position: relative;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.recipe-material h3 {
  margin-bottom: 1.3rem;
}

.recipe-wrap h3 {
  margin-bottom: 2.1rem;
}

.recipe-material h3::before,
.recipe-wrap h3::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  background-color: #404040;
}

.recipe-material h3 span,
.recipe-wrap h3 span {
  position: relative;
  background: #ffffff;
  padding-right: 1rem;
}

.material-list {
  margin-bottom: 3rem;
}

.material-list li {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.2rem 0;
  line-height: 1.6;
}

.material-list li::before {
  content: '・';
}

.recipe-wrap {
  margin-top: 3rem;
}

.recipe-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.recipe-info:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recipe-info .number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  background-color: #F5E9D3;
  color: #3C3C3C;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
}

.recipe-info p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

/* Footer */
.footer {
  padding: 25rem 0 4rem;
  text-align: center;
}

.copyright {
  font-size: 1.6rem;
  color: #3C3C3C;
  letter-spacing: 0.1em;
}

/* Responsive Design */

/* Mobile (768px and below) */
@media screen and (max-width: 768px) {

  body {
    background-size: cover;
  }

  /* Header */
  .header-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  .header-content .header_mv {
    left: -2rem;
    width: calc(100% + 4rem);
    margin-bottom: 5rem;
  }

  .header-content .header_mv_txt {
    width: 90%;
  }

  /* Main Content */
  .main-content {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  /* Recipe Section */
  .recipe-section {
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    border-radius: 1.5rem;
  }

  .recipe-card,
  .recipe-card-reverse {
    flex-direction: column;
    gap: 2.5rem;
  }

  .recipe-image-container {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .recipe-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .recipe-image {
    border-radius: 1.5rem;
  }

  .recipe-description {
    font-size: 1.6rem;
    margin-top: 1.5rem;
  }

  .recipe-details {
    text-align: left;
  }

  .recipe-material h3,
  .recipe-wrap h3 {
    font-size: 1.6rem;
  }

  .material-list {
    margin-bottom: 2rem;
  }

  .material-list li {
    font-size: 1.5rem;
    padding: 0.3rem 0;
  }

  .recipe-wrap {
    margin-top: 2rem;
  }

  .recipe-info {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .recipe-info .number {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    margin-top: 0.2rem;
  }

  .recipe-info p {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  /* Footer */
  .footer {
    padding: 15rem 0 3rem;
  }

  .copyright {
    font-size: 1.2rem;
  }
}


/* Animation on scroll */
.recipe-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.recipe-card.visible {
  opacity: 1;
  transform: translateY(0);
}