:root {
  --color-primary: #2e9fd8;
  --color-button: #ff9695;
  --color-strawberry: #ff6765;
  --color-bg-mobile: #f5f0ec;
  --color-bg-desktop: #fdf0f3;
  --color-card-bg: #f0f8ff;
  --color-card-lavender: #f5effc;
  --color-card-bg-pink: #fdf5f6;
  --color-desc: #888;
  --color-nav-text: #333;
  --color-footer-border: #e8e0e0;
  --color-footer-link: #888;
  --color-footer-legal: #999;
  --color-footer-legal-separator: #ddd;
  --color-footer-copyright: #aaa;
  --color-footer-icon-bg: #888;

  --font-brand: 'Fredoka', sans-serif;
  --font-heading: 'Mochiy Pop One', sans-serif;
  --font-accent: 'Zen Maru Gothic', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

@media (width < 768px) {
  html {
    font-size: calc(100vw / 375 * 10);
  }
}

@media (768px <= width < 1024px) {
  html {
    font-size: calc(100vw / 1024 * 10);
  }
}

@media (1024px <= width) {
  html {
    font-size: 62.5%;
  }
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background-color: var(--color-bg-mobile);
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (768px <= width) {
  body {
    background-color: var(--color-bg-desktop);
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(1.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== NAV ===== */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background-color: #fff;
  border-bottom: 0.3rem solid #fff;
}

.nav-container__inner {
  width: 100%;
  max-width: 140rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 4rem;
}

.nav-container__logo {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--color-primary);
  letter-spacing: 0.02rem;
}

.nav-container__links {
  display: none;
  align-items: center;
  gap: 2.4rem;
}

.nav-container__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--color-nav-text);
  padding: 0.6rem 1.4rem;
  border-radius: 10rem;
  transition: color .2s, background-color .2s;
}

.nav-container__link:hover {
  color: var(--color-primary);
  background-color: var(--color-card-bg);
}

.nav-container__cta {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--color-nav-text);
  padding: 0.6rem 1.4rem;
  border-radius: 10rem;
  transition: color .2s, background-color .2s;
}

.nav-container__cta:hover {
  color: var(--color-primary);
  background-color: var(--color-card-bg);
}

.nav-container__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3.2rem;
  height: 3.2rem;
}

.nav-container__hamburger-bar {
  display: block;
  width: 2rem;
  /* 流動remだと太さが端数pxになり線ごとに丸めが変わって太さが揃わないため、極細の値だけ固定px */
  height: 2px;
  background-color: var(--color-nav-text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-container__hamburger-bar:not(:last-child) {
  margin-bottom: 5px;
}

/* translateY は線の太さ 2px + 間隔 5px = 7px（バツ印の中心を揃えるため）*/
.nav-container--open .nav-container__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-container--open .nav-container__hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-container--open .nav-container__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
}

.nav-container--open .nav-drawer {
  display: block;
}

.nav-drawer__inner {
  max-width: 140rem;
  margin: 0 auto;
  border-top: 0.1rem solid #fff;
  padding: 1.2rem 4rem 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 2.4rem;
}

.nav-drawer__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--color-nav-text);
  padding: 1rem 1.4rem;
  border-bottom: 0.1rem solid #fff;
  border-radius: 10rem;
  transition: color .2s, background-color .2s;
}

.nav-drawer__link:hover {
  color: var(--color-primary);
  background-color: var(--color-card-bg);
}

@media (768px <= width) {
  .nav-container__hamburger {
    display: none;
  }

  .nav-container__links {
    display: flex;
  }

  .nav-drawer {
    display: none !important;
  }
}

/* ===== LP CONTAINER ===== */
.lp-container {
  background-color: var(--color-card-bg);
}

/* PCで見える両脇の水色エリアに、白いヨーグルトのしずくをアクセントとして散らす */
@media (768px <= width) {
  .lp-container {
    background-image: url(../images/background-yogurt-drop.png),
    url(../images/background-yogurt-drop.png),
    url(../images/background-yogurt-drop.png);
    background-repeat: no-repeat;
    background-size: 14rem auto, 18rem auto, 24rem auto;
    background-position: left 8% top 14%,
    right 6% top 46%,
    left 12% top 80%;
  }
}

.lp-container__inner {
  width: 46rem;
  max-width: 100%;
  margin: 0 auto;
  background-color: var(--color-card-bg-pink);
  position: relative;
  z-index: 1;
}

.lp-container__inner::before,
.lp-container__inner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1rem;
  pointer-events: none;
}

.lp-container__inner::before {
  left: -1rem;
  background: linear-gradient(to left, rgba(0, 0, 0, .02), rgba(0, 0, 0, 0));
}

.lp-container__inner::after {
  right: -1rem;
  background: linear-gradient(to right, rgba(0, 0, 0, .02), rgba(0, 0, 0, 0));
}

@media (width < 768px) {
  .lp-container__inner::before,
  .lp-container__inner::after {
    display: none;
  }
}

/* story・drinks・food をまとめるラッパー。KV下〜フッター上の縦余白はここで調整する */
.lp-container__content {
  padding-top: 6.4rem;
  padding-bottom: 11.4rem;
}

/* ===== KV ===== */
.kv {
  position: relative;
  overflow: hidden;
}

.kv__image {
  width: 100%;
  display: block;
}

/* ===== STORY ===== */
/* 下方向の余白は margin-bottom が持つ（padding-bottom には持たせない） */
.story {
  padding: 5.6rem 3.2rem 0;
  margin-bottom: 8rem;
}

.story__title {
  margin: 0 0 3.2rem;
  text-align: center;
}

.story__title-image {
  height: 2.8rem;
}

.story__lead {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.9;
  color: var(--color-button);
  margin: 0 0 13rem;
  text-align: center;
}

.story__step {
  opacity: 0;
}

.story__step--visible {
  animation: fadein .8s ease-out forwards;
}

.story__step-heading {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-desc);
  letter-spacing: 0.05em;
  /* 文字幅ぴったりの下線にするため fit-content + auto で中央寄せ */
  width: fit-content;
  margin: 0 auto 2rem;
  text-align: center;
  /* 文字の背景に敷くマーカー風の下線（＋マークと同じピンク） */
  background-image: linear-gradient(var(--color-button), var(--color-button));
  background-size: 100% 0.6rem;
  background-position: bottom;
  background-repeat: no-repeat;
}

.story__step-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.9;
  color: var(--color-desc);
  margin: 0;
  text-align: center;
}

/* 果実＋ヨーグルトの「＋」マーク（横棒と縦棒を疑似要素で重ねる） */
.story__connector {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  margin: 4rem auto;
}

.story__connector::before,
.story__connector::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background-color: var(--color-button);
  border-radius: 10rem;
}

.story__connector::before {
  width: 2.4rem;
  height: 0.6rem;
}

.story__connector::after {
  width: 0.6rem;
  height: 2.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .story__step {
    opacity: 1;
  }

  .story__step--visible {
    animation: none;
  }
}

/* ===== PHOTO PLACEHOLDER ===== */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.photo-placeholder--contain {
  object-fit: contain;
}

.photo-placeholder--circle {
  width: 24rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  /* border に直接グラデーションは使えないため、透明ボーダーの下に背景グラデーションを縁まで敷いて縁取りにする */
  border: 0.5rem solid transparent;
  background-image: linear-gradient(var(--color-card-lavender), var(--color-card-bg));
  background-origin: border-box;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, .05);
  margin: 0 auto 2.8rem;
}

/* ===== DRINKS ===== */
.drinks {
  padding: 5.6rem 4.8rem;
  margin-bottom: 3rem;
}

.drinks__list {
  display: flex;
  flex-direction: column;
}

.drinks__card:not(:last-child) {
  margin-bottom: 5.6rem;
}

.drinks__card {
  background-color: #fff;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 2.4rem;
  /* シリーズロゴの配置基準 */
  position: relative;
}

.drinks__series-logo {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  width: 6.4rem;
}

.drinks__new-badge {
  position: absolute;
  top: 2rem;
  right: 1.6rem;
  width: 8rem;
  transform: rotate(12deg);
}

.drinks__body {
  padding: 1.8rem 2.4rem 3.2rem;
}

.drinks__name-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  column-gap: 1rem;
  margin-bottom: 0.8rem;
}

.drinks__name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-button);
  margin: 0;
  line-height: 1.3;
}

.drinks__price {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-button);
  margin: 0;
}

.drinks__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--color-desc);
  margin: 0 0 1.4rem;
}

.drinks__button {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  background-color: var(--color-button);
  padding: 1rem;
  border-radius: 10rem;
  transition: background-color .2s;
}

.drinks__button:hover {
  background-color: var(--color-strawberry);
}

/* ===== FOOD ===== */
.food {
  padding: 5.6rem 4.8rem;
}

.food__list {
  display: flex;
  flex-direction: column;
}

.food__card:not(:last-child) {
  margin-bottom: 5.6rem;
}

.food__card {
  background-color: #fff;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 2.4rem;
  /* シリーズロゴの配置基準 */
  position: relative;
}

.food__series-logo {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  width: 6.4rem;
}

.food__new-badge {
  position: absolute;
  top: 2rem;
  right: 1.6rem;
  width: 8rem;
  transform: rotate(12deg);
}

.food__body {
  padding: 1.8rem 2.4rem 3.2rem;
}

.food__name-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  column-gap: 1rem;
  margin-bottom: 0.8rem;
}

.food__name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-button);
  margin: 0;
  line-height: 1.3;
}

.food__price {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-button);
  margin: 0;
}

.food__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--color-desc);
  margin: 0 0 1.4rem;
}

.food__button {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  background-color: var(--color-button);
  padding: 1rem;
  border-radius: 10rem;
  transition: background-color .2s;
}

.food__button:hover {
  background-color: var(--color-strawberry);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 10;
  width: 4.8rem;
  height: 4.8rem;
  border: none;
  border-radius: 50%;
  background-color: var(--color-button);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  /* スクロールするまでは非表示。JSが --visible を付け外しする */
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background-color .2s;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-strawberry);
}

/* PCでは footer-container__bottom（幅140rem・フッター左右padding 4rem）の右端に揃える。
   画面が140remより狭い間は右端から4rem、広くなったら 50vw - 70rem でコンテンツ右端に追従 */
@media (768px <= width) {
  .back-to-top {
    right: max(4rem, calc(50vw - 70rem));
  }
}

/* 上向きの山型矢印（上と左のボーダーを45度回転させて描く） */
.back-to-top__arrow {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  border-top: 0.3rem solid #fff;
  border-left: 0.3rem solid #fff;
  border-radius: 0.2rem;
  transform: rotate(45deg);
  /* 回転した矢印の見た目の中心をボタン中央に合わせる */
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.footer-container {
  background-color: #fff;
  border-top: 0.1rem solid #fff;
  padding: 4rem 4rem 0;
}

.footer-container__inner {
  max-width: 140rem;
  margin: 0 auto;
}

.footer-container__columns {
  display: flex;
  padding-bottom: 3.2rem;
}

.footer-container__column-inner {
  display: flex;
  flex-direction: column;
}

.footer-container__heading {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin: 0 0 1.6rem;
}

.footer-container__list {
  display: flex;
  flex-direction: column;
}

.footer-container__list li:not(:last-child) {
  margin-bottom: 1.2rem;
}

.footer-container__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--color-footer-link);
}

.footer-container__divider {
  height: 0.1rem;
  background-color: var(--color-footer-border);
}

.footer-container__bottom {
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.footer-container__legal {
  display: flex;
  align-items: center;
  column-gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-container__legal-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--color-footer-legal);
}

.footer-container__legal-separator {
  color: var(--color-footer-legal-separator);
}

.footer-container__sns {
  display: flex;
  gap: 1rem;
}

.footer-container__sns-link {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background-color: var(--color-footer-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-container__copyright {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--color-footer-copyright);
  /* デフォルトmarginがフッターの外にはみ出して背景色が見えるためリセット */
  margin: 0;
  padding-bottom: 2.4rem;
  text-align: center;
}

@media (width < 768px) {
  .footer-container__columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-container__column:not(:last-child) {
    margin-bottom: 3.2rem;
  }

  .footer-container__column-inner {
    align-items: center;
  }

  .footer-container__bottom {
    flex-direction: column;
  }

  .footer-container__legal {
    justify-content: center;
    margin-bottom: 1.6rem;
  }
}

@media (768px <= width) {
  .footer-container__columns {
    flex-direction: row;
    justify-content: center;
    column-gap: 12rem;
  }

  .footer-container__column-inner {
    align-items: flex-start;
  }

  .footer-container__bottom {
    justify-content: space-between;
  }
}
