html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 14px;
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: #333;
  line-height: 1.7;
}

/* 共通 */
section {
  padding-bottom: 80px;
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h2 {
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 40px;
}

h3 {
  font-weight: 500;
}

@media screen and (max-width: 520px) {
  .sm-font {
    font-size: 20px !important;
  }
}

.btn-primary {
  display: inline-block;
  background: #2f6b3f;
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 15px;
}

.btn-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;

  background: #1f6b3a;
  color: #fff;
  font-size: 16px;
  text-decoration: none;

  padding: 10px 40px;
  border-radius: 999px;
  margin-top: 10px;

  /* 黄色の影 */
  box-shadow: 6px 6px 0 #f2c94c;

  transition: transform .2s ease, box-shadow .2s ease;
}

/* 右の三角 */
.btn-entry .arrow {
  position: absolute;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.btn-entry:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #f2c94c;
}

.btn-entry-fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(clamp(12px, 2vw, 20px));
  z-index: 9999;

  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: unset;

  &:hover {
    transform: translateX(-50%);
    box-shadow: unset;
  }
}

@media print {
  .btn-entry-fixed { display: none !important; }
}

.btn-top {
  position: fixed;
  right: clamp(12px, 2vw, 20px);
  bottom: calc(clamp(12px, 2vw, 20px) + 64px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1f6b3a;
  color: #fff;
  text-decoration: none;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 9999;
}

.btn-top::before {
  content: "";
  display: block;

  width: 10px;
  height: 10px;

  border-top: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(-45deg);
}

.btn-top:hover { box-shadow: unset; }
.btn-top:active { transform: translateY(1px); }
.btn-top:focus-visible {
  outline: 3px solid #a0d5a9;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 480px) {
  .btn-top { width: 48px; height: 48px; }
}

@media print {
  .btn-top { display: none !important; }
}

.section-separate01 {
  position: relative;
  &:before {
    content: "";
    position: absolute;
    top: -69px;
    left: 0;
    width: 100%;
    height: 70px;
    background: url("img/common/bg-header01.svg") center / cover no-repeat;
  }
}

.section-separate02 {
  position: relative;
  &:before {
    content: "";
    position: absolute;
    top: -69px;
    left: 0;
    width: 100%;
    height: 70px;
    background: url("img/common/bg-header02.svg") center / cover no-repeat;
  }
}

/* ===============================
  HERO
================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: url("img/hero/hero-bg.jpg") center / cover no-repeat;
}

/* 背景写真 */
.hero-bg {
  height: 600px;
}

/* 上部 野菜フレーム */
.hero-frame-top {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1920px;
  transform: translateX(-50%);
  height: 100%;
  background: url("img/hero/bg-craft-vegitable01.png") no-repeat top center / 85%;
  z-index: 1;
}

/* 中央レイヤー */
.hero-inner {
  position: absolute;
  height: 600px;
  max-width: 600px;
  margin: 0 auto;
  inset: 0;
}

/* 野菜 */
.veg {
  position: absolute;
  width: 340px;
}

.veg-left {
  left: -250px;
  bottom: 0;
  z-index: 1;
}

.veg-left-sm {
  display: none;
  z-index: 1;
}

.veg-right {
  width: 265px;
  right: -250px;
  bottom: 160px;
  z-index: 1;
}

/* 紙 */
.hero-paper {
  background: url("img/hero/bg-paper.jpg") center / contain;
  width: 100%;
  height: calc(100% - 100px);
  padding: 100px 0 15px;
  text-align: center;
  position: relative;
}

/* リボン */
.hero-ribbon {
  display: inline-block;
  width: 465px;
}

/* タイトル */
.hero-title {
  position: relative;
  padding-top: 245px;
  z-index: 2;
  img {
    position: absolute;
    top: -25px;
    left: -10px;
    width: 105%;
    max-width: unset;
  }
}

.hero-title span {
  font-size: 42px;
  color: #1f6b3a;
}

/* 期間 */
.hero-period {
  display: flex;
  flex-direction: column;
  align-items: center;
  .period {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    width: 320px;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 16px;
    span {
      font-size: 20px;
    }
  }
  img {
    width: 175px;
  }
}

/* プレゼント円 */
.hero-present {
  font-size: 26px;
  position: absolute;
  right: -120px;
  bottom: 10px;
  width: 235px;
  height: 205px;
  background: #1f6b3a;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  padding-top: 30px;
  transform: rotate(10deg);
  box-shadow: 0 0 0 4px #fff;
  line-height: 1.2;
  z-index: 2;
  .number {
    line-height: 0.9;
    font-size: 80px;
    font-weight: 700;
    color: #f0b200;
  }
  .people {
    font-size: 40px;
  }
  .yellow-text {
    color: #f0b200;
  }
}

.hero-present img {
  position: absolute;
  bottom: 25px;
  right: -110px;
  width: 135px;
  transform: rotate(-10deg);
}

.hero-sm-img .sm-img {
  display: none;
}

@media screen and (max-width: 1100px) {
  .hero-frame-top {
    display: none;
  }
  .hero-bg {
    height: 550px;
  }
  .hero-inner {
    height: 550px;
  }
  .hero-paper {
    padding-top: 0;
    height: 100%;
  }
  .hero-period {
    padding-bottom: 100px;
  }
  .veg {
    width: 150px;
  }
  .veg-left-sm {
    display: block;
    left: 0px;
    bottom: 10px;
  }

  .veg-left, .veg-right {
    display: none;
  }

  .hero-present {
    right: 5px;
    bottom: 100px;
    width: 140px;
    height: 125px;
    font-size: 16px;
    padding-top: 15px;
    .number {
      font-size: 50px;
    }
    .people {
      font-size: 24px;
    }
    img {
      bottom: -100px;
      right: 70px;
      width: 80px;
      transform: rotate(-10deg);
    }
  }
}

@media screen and (max-width: 600px) {
  .hero-bg {
    display: none;
    height: 800px;
  }
  .hero-inner {
    position: relative;
    height: auto;
  }
  .hero-ribbon {
    width: 90%;
  }
 .hero-title {
  padding-top: 0;
  img {
    position: static;
    width: 100%;
    margin: auto;
  }
 }
 .hero-period {
    padding-top: 10px;
    padding-bottom: 0;
    .period {
      font-size: 14px;
      width: auto;
      span {
        font-size: 16px;
      }
    }
 }
 .veg-left-sm {
    display: none;
  }
  .hero-present {
    display: none;
  }
  .hero-sm-img .sm-img {
    display: block;
  }
}

@media screen and (max-width: 400px) {
  .veg {
    position: static;
  }
  .hero-present {
    bottom : 145px;
  }
}

/* ===============================
  NAV
================================ */
.bg-nav {
  position: relative;
  z-index: 2;
  background: url("img/menu/bg-menu.png") top center no-repeat;
}

.hero-nav {
  padding: 70px 0 32px;
  max-width: 1090px;
  margin: 0 auto;
}

.hero-nav ul {
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px;
  padding: 0;
  margin: 0;
  font-size: 18px;
}

.hero-nav li {
  text-align: center;
  color: #1f6b3a;
}

.hero-nav img {
  height: 50px;
  padding: 10px;
  display: block;
  margin: 0 auto 8px;
  &.carrot {
    height: 70px;
    padding: 0;
  }
  &.broccoli {
    height: 56px;
    padding: 7px;
  }
}

@media (max-width: 900px) {
  .hero-nav ul {
   font-size: 14px;
  }
  .hero-nav img {
    height: 40px;
    padding: 5px;
    &.carrot {
      height: 50px;
    }
    &.broccoli {
      height: 45px;
      padding: 2.5px;
    }
  }
}

@media (max-width: 620px) {
  .hero-nav ul {
   justify-content: center;  
   font-size: 12px;
  }
  .hero-nav li {
    width: calc(33% - 10px);
  }
  .hero-nav img {
    height: 30px;
    padding: 2px;
    &.carrot {
      height: 34px;
    }
    &.broccoli {
      height: 32px;
      padding: 1px;
    }
  }
  .bg-nav {
    background: #fff;
  }
}

/* INTRO */
.intro {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 80px;
  margin-top: 70px;

  .intro-img {
    width: 28%;
    img {
      width: 100%;
      height: auto;
      display: block;
    }
    &.right {
      width: 25%;
    }
  }
  .intro-text {
    font-size: 14px;
    line-height: 2.2;
    color: #006837;
    padding : 0 5px;
  }
}

.intro-inner {
  max-width: 1420px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}

/* 1280px以下 */
@media (max-width: 1280px) {
  .intro-inner {
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
  }
  .intro {
    margin-top: 0;
  }
  .intro .intro-text {
    order: -1;
    flex: 1 0 100%;
  }
  .intro .intro-img {
    width: 40%;
    margin: 20px;
  }
}
/* FLOW */
.flow {
  background: #f2eedd;
  padding-bottom: 120px;
}

.flow h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 40px;
  color: #2f6b3f;
}

.flow h2 img {
  width: 110px;
  height: auto;
  display: block;
}

.flow-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 960px;
  background: url("img/step/bg-step.png") no-repeat top 25px center;
  padding: 0 50px 50px;
  margin: auto;
  &:before {
    content: "";
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: calc(100% - 25px);
    background: url("img/step/bg-step.png") repeat-y center top;
  }
}

.arrow-right {
  display: flex;
  align-items: center;
  z-index: 1;
  img {
    width: 27px;
    height: auto;
  }
}

.step {
  background: #fff;
  width: 28%;
  height: 330px;
  z-index: 1;
  .number {
    text-align: center;
    line-height: 55px;
    color: #fff;
    width: 100%;
    height: 55px;
    background: #30903c;
    font-size: 30px;
  }
  .bubble {
    position: relative;
    color: #006837;
    background: #fcee21;
    border-radius: 45px;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 210px;
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
    &::after {
      position: absolute;
      content: "";
      display: block;
      width: 20px;
      height: 20px;
      bottom: -18px;
      left: calc(50% - 10px);
      background: url("img/step/step-bubble.svg") no-repeat center / contain;
      margin: auto;
    }
  }
  img {
    max-width: 100%;
    height: 150px;
    margin: 0 auto;
    display: block;
  }
}

/* 940px以下 */
@media (max-width: 940px) {
  .flow-steps {
    flex-direction: column;
    align-items: center;
    padding: 0 20px 50px;
    gap: 0;
  }
  .step {
    width: 90%;
    .bubble {
      white-space: normal;
    }
  }
  .arrow-right {
    transform: rotate(90deg);
  }
}

/* PRESENT */
.present {
  background: #7dad49;
  color: #fff;
  padding: 0 20px 80px;
}

.present h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 40px;
}

.present h2 img {
  width: 80px;
  height: auto;
  display: block;
}

.present-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 50px;
}

.present article {
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 20px;
  width: 260px;

  img {
    max-height: 150px;
    margin: auto;
  }
  h3 {
    color: #006837;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    font-size: 18px;
    margin: 0;
    border-bottom: #006837 2px dotted;
    span {
      font-size: 14px;
    }
  }
  p {
    text-align: left;
    margin-bottom: 0;
  }
}

/* ABOUT */
.about {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 10px 200px 10px;
  overflow: hidden;
}

.about-header {
  padding-top: 200px;
}

.about-header-image {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1920px;
  transform: translateX(-50%);
  height: 450px;
  background: url("img/yabu-city/bg-craft-vegitable02.png") no-repeat top center / 100%;
  z-index: -1;
}

.about-footer-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1920px;
  transform: translateX(-50%);
  height: 570px;
  background: url("img/yabu-city/bg-craft-vegitable03.png") no-repeat bottom center / 100%;
  z-index: -1;
}



.about h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  border-bottom: #006837 2px dotted;
  margin: 0 auto 30px;
  padding-bottom: 20px;
  color: #2f6b3f;
}

.about h2 img {
  width: 170px;
  height: auto;
  display: block;
}

.about-item {
  max-width: 1040px;
  margin: 80px auto;
  display: flex;
}

/* ===== 左テキスト ===== */

.about-text {
  position: relative;
  background: rgb(242, 241, 236, 0.7);
  padding: 0 48px;
  width: 420px;
  height: 370px;
  border-radius: 70px;
  position: relative;
  z-index: 1;
  span {
    color: #006934;
  }
}

/* ラベル */
.about-label {
  position: absolute;
  display: flex;
  align-items: flex-end;
  top: -35px;
  right: 75px;
  margin-bottom: 20px;
  width: 230px;
}

/* 見出し */
.about-text h3 {
  text-align: left;
  font-size: 24px;
  line-height: 1.6;
  color: #1f6b3a;
  margin: 75px 0 20px 0;
}

/* 本文 */
.about-text p {
  text-align: left;
  font-size: 15px;
  line-height: 1.9;
}

/* ===== 右テキスト ===== */
.about-item.second {
  flex-direction: row-reverse;
  margin-bottom: 40px;
  .about-label {
    right: auto;
    left: 75px;
  }
}

.about-item.third {
 margin-top: 40px;
}

/* ===== 右画像 ===== */

.about-image {
  position: relative;
  flex: auto;
}

.about-image img {
  position: absolute;
  top: -35px;
  left: -45px;
  width: 100%;
  height: auto;
  display: block;
}

.about-image img.third {
  top: 50px;
  left: 40px;
  width: 80%;
}

/* ===== 左画像 ===== */
.about-item.second .about-image img {
  left: auto;
  right: -45px;
}

/* 940px以下 */
@media (max-width: 940px) {
  .about-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-item.second {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-text {
    width: 90%;
    height: auto;
    padding: 20px;
    margin-top: 40px;
    border-radius: 70px 70px 0 0;
  }
  .about-text h3 {
    margin-top: 40px;
  }
  .about-image {
    width: 90%;
    background: rgb(242, 241, 236, 0.7);
    padding: 0 20px 20px 20px;
    border-radius: 0 0 70px 70px;
  }
  .about-image img {
    position: static;
    margin: 0 auto;
  }
}


/* QUIZ */
.quiz {
  background: #7dad49;
  padding: 0;
}

.quiz-inner {
  position: relative;
  max-width: 900px;
  background: url("img/quiz/bg-quiz.png") no-repeat top center / 100%;
  background-color: #fff;
  margin: 0 auto;
  padding: 25px 20px 120px;
}

.quiz-intro {
  width: 118%;
  min-height: 265px;
  margin-left: -9%;

  .intro-img {
    width: 28%;
  }
  img {
    width: 100%;
    height: auto;
    display: block;
  }

  .intro-text {
    position: relative;
    min-width: 224px;
    margin-top: 20px;
    padding: 20px 70px 40px 70px;
    font-size: 16px;
    color: #fff;
    background: url("img/quiz/speech-bubble.png") no-repeat top center / 100%;

    img {
      position: absolute;
      width: 70px;
      top: 50px;
      right: 0;
    }
    p {
      margin-top: 5px;
    }

    span {
      font-size: 20px;
      color: #f0b200;
      &.small-text {
        font-size: 16px;
      }
    }
  }
}

.organic-title {
  max-width: 425px;
  margin: 0 auto;
}

.quiz-intro-content {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1120px) {
  .quiz-intro {
    width: 100%;
    margin-left: 0;
    .intro-text {
      p {
        margin-top: 10px;
      }
      span {
        font-size: 16px;
      }
    }
  }
}

@media (max-width: 940px) {
  .quiz-intro-content {
    justify-content: center;
  }
}

@media (max-width: 750px) {
  .quiz-intro-content {
    flex-wrap: wrap;
  }
  .quiz .intro-img {
    width: 50%;
  }
  .quiz .intro-text {
    order: 1;
    transform: scale(0.8);
    white-space: nowrap;
  }
}

.quiz-box {
  position: relative;
  max-width: 720px;
  margin: 60px auto;
  padding: 6px;
  border-radius: 23px;
  background: url("img/quiz/quiz-border.jpg") repeat;
}

.quiz-box-top {
  position: absolute;
  width: 100px;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
}

.quiz-box-inner {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px 0;
}

.quiz-content {
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  .quiz-image {
    width: 40%;
  }
  .quiz-text {
    width: 60%;
    min-width: 320px;
    text-align: left;
  }
}

.answer-select {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 10px;
  color: #006837;
  font-weight: 700;
  margin-top: 40px;
  .choice {
    font-size: 14px;
    width: 225px;
    min-height: 38px;
    border-radius: 40px;
    background: url("img/quiz/quiz-choice.jpg") repeat;
    .choice-text {
      &:before {
        content: "";
        display: block;
        width: 24px;
        height: 24px;
        background: url("img/quiz/choice-A.svg") no-repeat center / contain;
        margin-right: 10px;
      }
      display: flex;
      justify-content: flex-start;
      align-items: center;
      background-color: #fff;
      border-radius: 40px;
      height: calc(100% - 6px);
      padding: 0 7px;
      margin: 3px;
      &.B {
        &:before {
          background-image: url("img/quiz/choice-B.svg");
        }
      }
      &.C {
        &:before {
          background-image: url("img/quiz/choice-C.svg");
        }
      }
    }
  }
}

/* 760px以下 */
@media (max-width: 760px) {
  .answer-select {
    margin-top: 10px;
    justify-content: center;
    .choice {
      width: 45%;
      margin: 5px;
    }
  }
}

/* 610px以下 */
@media (max-width: 650px) {
  .quiz-content {
    flex-direction: column;
    align-items: center;
    .quiz-image {
      width: auto;
      margin-bottom: 20px;
    }
    .quiz-text {
      width: 90%;
      min-width: unset;
      text-align: left;
    }
  }
  .answer-select {
    margin-top: 10px;
    justify-content: center;
    .choice {
      width: 100%;
      margin: 5px;
    }
  }
}

/* PRECAUTION */
.precaution {
  background: #f2eedd;
  padding-bottom: 35px;
}

.precaution-inner {
  max-width: 770px;
  margin: 0 auto;
  padding: 0 20px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

.precaution h2 {
  color: #006837;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 40px;
}

.precaution h2 img {
  width: 125px;
  height: auto;
  display: block;
}

.precaution-intro {
  text-align: left;
}

.precaution h3 {
  color: #006837;
}

.precaution p {
  margin-top: 0px;
}

.precaution ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 0;
}

.precaution .precaution-list {
  text-align: left;
  padding-bottom: 40px;
}

.precaution .precaution-item {
  border-bottom: 2px dotted #006837;
  margin-bottom: 10px;
  padding-bottom: 5px;
} 

/* FOOTER */
.footer {
  background: #2f6b3f;
  text-align: center;
  color: #fff;
  height: 80px;
  padding: 30px;
}

@media (max-width: 600px) {
  .footer {
    padding-bottom: 120px;
  }
}
