/* =========================================================
   おいしい食べ方（how-to-eat.html）
   PC: 上原ファーム HOW TO EAT.dc.html / SP・TB: MEat.dc.html
   ========================================================= */
@media (max-width: 1199px) { .only-pc { display: none !important; } }
@media (min-width: 1200px) { .not-pc { display: none !important; } }

.eat-h2 { font-size: 34px; font-weight: 700; letter-spacing: .12em; }
.ripe .tag, .cut .tag { align-self: auto; }

/* ---------- 食べごろの見分け方 ---------- */
.ripe { padding: 150px var(--pad-x) 140px; display: flex; flex-direction: column; gap: 64px; }
.ripe__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ripe__lead { font-size: 15px; line-height: 2; color: var(--muted); }
.ripe__body { display: grid; grid-template-columns: 520px minmax(0,1fr); gap: 100px; align-items: center; }
.ripe__visual { position: relative; width: 520px; height: 520px; }
.ripe__ring { position: absolute; inset: -26px; border-radius: 50%; border: 2px dashed rgba(91,42,78,.28); animation: spin 60s linear infinite; }
.ripe__shot {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 14px solid var(--sand-2);
  background: repeating-linear-gradient(135deg, var(--c1) 0 14px, var(--c2) 14px 28px);
  opacity: 0; transform: scale(.9) rotate(8deg);
  transition: opacity .8s ease, transform 1s cubic-bezier(.3,1.3,.5,1);
}
.ripe__shot.is-active { opacity: 1; transform: scale(1) rotate(0deg); }
.ripe__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ripe__badge {
  position: absolute; right: 0; top: 20px; width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--sun); color: var(--plum-deep);
  transition: background .5s, color .5s; animation: wobble 5s ease-in-out infinite;
}
.ripe__badge[data-stage="0"] { background: #E6DCE3; color: var(--plum); }
.ripe__badge[data-stage="1"] { background: var(--sand); color: #A86A0C; }
.ripe__badge-sub { font-size: 10px; font-weight: 700; letter-spacing: .2em; white-space: nowrap; }
.ripe__badge-main { font-size: 20px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }

.ripe__panel { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.ripe__steps { position: relative; display: grid; grid-template-columns: repeat(3,1fr); }
.ripe__track, .ripe__fill { position: absolute; left: 16.6%; top: 27px; height: 4px; border-radius: 2px; }
.ripe__track { right: 16.6%; background: rgba(91,42,78,.15); }
.ripe__fill { width: calc(var(--stage, 2) * 33.4%); background: var(--sun); transition: width .8s var(--ease-out); }
.ripe__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-base); color: var(--ink); }
.ripe__dot {
  width: 58px; height: 58px; border-radius: 50%; background: var(--cream); border: 3px solid rgba(91,42,78,.3);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 16px; color: var(--muted);
  transition: all .5s var(--ease-bounce);
}
.ripe__step.is-done .ripe__dot { background: var(--sun); border-color: var(--sun); color: var(--plum-deep); }
.ripe__step.is-current .ripe__dot { transform: scale(1.15); }
.ripe__t { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.ripe__when { font-size: 12px; color: var(--muted); }
.ripe__card { padding: 36px 40px; border-radius: 28px; background: var(--sand); display: flex; flex-direction: column; gap: 14px; }
.ripe__card[hidden] { display: none; }
.ripe__en { font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--green); }
.ripe__ct { font-family: var(--font-mincho); font-size: 28px; font-weight: 600; letter-spacing: .12em; }
.ripe__card p { font-size: 15px; line-height: 2; color: var(--muted); }

/* ---------- 切り方と食べ方 ---------- */
.cut {
  position: relative; background: var(--sand);
  clip-path: polygon(0 4%,12% 1%,28% 3.5%,46% 0,63% 3%,80% .5%,100% 3%,100% 97%,86% 100%,70% 96.5%,52% 99.5%,34% 97%,16% 100%,0 97.5%);
  padding: 170px var(--pad-x) 180px; display: flex; flex-direction: column; gap: 72px;
}
.cut__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cut__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 56px; }
.cut__line { position: absolute; left: 16%; right: 16%; top: 140px; border-top: 3px dotted rgba(91,42,78,.35); transform-origin: left; }
.cut__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cut__visual { position: relative; flex: none; width: 280px; height: 280px; }
.cut__photo {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 12px solid var(--cream);
  background: repeating-linear-gradient(135deg, var(--c1) 0 12px, var(--c2) 12px 24px);
  transition: transform .6s cubic-bezier(.3,1.5,.5,1);
}
.cut__photo:hover { transform: rotate(-4deg) scale(1.04); }
.cut__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cut__no {
  position: absolute; left: 0; top: 6px; width: 66px; height: 66px; border-radius: 50%; background: var(--sun); color: var(--plum-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: wobble 5s ease-in-out infinite;
}
.cut__no .only-pc { font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.cut__num { font-family: var(--font-mono); font-size: 20px; line-height: 1; }
.cut__text { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cut__text h3 { font-size: 20px; font-weight: 700; letter-spacing: .1em; }
.cut__text p { max-width: 300px; font-size: 14px; line-height: 1.9; color: var(--muted); text-wrap: pretty; }

/* ---------- 保存のしかた ---------- */
.storage { padding: 150px var(--pad-x) 130px; display: flex; flex-direction: column; gap: 60px; }
.storage__head { display: flex; flex-direction: column; gap: 18px; }
.storage__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.storage__card {
  --c: var(--sun-deep);
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 44px 40px 40px;
  background: #FFFDF8; border-radius: 40px 36px 44px 32px; box-shadow: 0 24px 48px -32px rgba(62,30,58,.3);
  transition: transform .5s cubic-bezier(.3,1.5,.5,1);
}
.storage__card:hover { transform: translateY(-6px) rotate(-1deg); }
.storage__card--fridge { --c: var(--green); border-radius: 36px 44px 32px 40px; }
.storage__card--freezer { --c: var(--plum); border-radius: 44px 32px 40px 36px; }
.storage__stamp {
  flex: none; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--c);
  box-shadow: inset 0 0 0 4px #FFFDF8, inset 0 0 0 6px var(--c);
  display: flex; align-items: center; justify-content: center; color: var(--c); font-size: 28px; font-weight: 700;
  transform: rotate(-8deg);
}
.storage__text { display: contents; }
.storage__en { font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--c); }
.storage__text h3 { font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.storage__text p { font-size: 14px; line-height: 2; color: var(--muted); text-wrap: pretty; }

/* ---------- アレンジ ---------- */
.arrange { position: relative; overflow: hidden; background: var(--plum-deep); color: var(--cream); padding: 130px var(--pad-x) 140px; display: flex; flex-direction: column; gap: 64px; }
.arrange__ring { position: absolute; left: -200px; bottom: -260px; width: 640px; height: 640px; border-radius: 50%; border: 1px dashed rgba(242,179,61,.25); animation: spin 100s linear infinite; pointer-events: none; }
.arrange__head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.arrange__head-l { display: flex; flex-direction: column; gap: 18px; }
.arrange__title { font-family: var(--font-mincho); font-size: 36px; font-weight: 600; letter-spacing: .14em; }
.arrange__lead { max-width: 420px; font-size: 15px; line-height: 2; color: rgba(251,247,240,.86); }
.arrange__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.recipe { --shape: 40px; display: flex; flex-direction: column; gap: 18px; transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.recipe--round { --shape: 50%; }
.recipe:hover { transform: translateY(-8px); }
.recipe__img { position: relative; aspect-ratio: 1; border-radius: var(--shape); background: repeating-linear-gradient(135deg, var(--c1) 0 12px, var(--c2) 12px 24px); }
.recipe__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--shape); }
.recipe__time {
  position: absolute; right: -8px; top: -8px; background: var(--sun); color: var(--plum-deep);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 8px 14px; border-radius: 30px 24px 32px 22px; white-space: nowrap;
  animation: sway 4s ease-in-out infinite;
}
.recipe h3 { font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.recipe p { font-size: 14px; line-height: 1.9; color: rgba(251,247,240,.82); text-wrap: balance; }

/* ---------- 締め（PCのみ） ---------- */
.eat-cta {
  position: relative; margin: 140px calc(var(--pad-x) - 40px); padding: 90px 80px; background: var(--sand);
  border-radius: 48% 52% 46% 54% / 30% 34% 30% 26%;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.eat-cta__d1 { left: 120px; top: 60px; width: 22px; height: 22px; animation: drift 8s ease-in-out infinite; }
.eat-cta__d2 { right: 160px; bottom: 70px; width: 16px; height: 16px; animation: drift 9s ease-in-out -3s infinite; }
.eat-cta__title { font-family: var(--font-mincho); font-size: 36px; font-weight: 600; letter-spacing: .14em; line-height: 1.7; }
.eat-cta__btns { display: flex; gap: 20px; }
.eat-cta__btn { padding: 14px 32px; }

/* =========================================================
   TB（768〜1199px）… MEat size="tb"
   ========================================================= */
@media (max-width: 1199px) {
  .eat-h2 { font-size: 28px; letter-spacing: .1em; }

  .ripe { padding: 90px 48px; gap: 28px; }
  .ripe__head { gap: 12px; }
  .ripe__body { display: flex; flex-direction: column; gap: 28px; }
  .ripe__visual { align-self: center; width: 320px; height: 320px; margin: 12px 0; }
  .ripe__ring { inset: -18px; }
  .ripe__shot { border-width: 10px; background: repeating-linear-gradient(135deg, var(--c1) 0 12px, var(--c2) 12px 24px); }
  .ripe__shot.is-active { transform: none; }
  .ripe__badge { right: -10px; top: 0; width: 92px; height: 92px; transition: background .5s; }
  .ripe__badge-sub { font-size: 11px; letter-spacing: 0; }
  .ripe__badge-main { font-size: 16px; letter-spacing: 0; }
  .ripe__panel { gap: 28px; }
  .ripe__track, .ripe__fill { top: 23px; }
  .ripe__step { gap: 8px; }
  .ripe__dot { width: 50px; height: 50px; font-size: 14px; }
  .ripe__t { font-size: 13px; letter-spacing: 0; }
  .ripe__card { padding: 26px 24px; border-radius: 24px; gap: 10px; }
  .ripe__ct { font-size: 22px; letter-spacing: .1em; }
  .ripe__card p { font-size: 13px; line-height: 1.9; }

  .cut { clip-path: polygon(0 2%,25% 0,50% 1.5%,75% 0,100% 1.5%,100% 98%,75% 100%,50% 98.5%,25% 100%,0 98.5%); padding: 100px 48px; gap: 32px; }
  .cut__head { gap: 12px; }
  .cut__grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .cut__item { gap: 16px; }
  .cut__visual { width: 170px; height: 170px; }
  .cut__photo { border-width: 8px; background: repeating-linear-gradient(135deg, var(--c1) 0 10px, var(--c2) 10px 20px); }
  .cut__photo:hover { transform: none; }
  .cut__no { left: -6px; top: -2px; width: 42px; height: 42px; }
  .cut__num { font-size: 14px; line-height: normal; }
  .cut__text { gap: 6px; }
  .cut__text h3 { font-size: 16px; letter-spacing: 0; }
  .cut__text p { max-width: none; font-size: 13px; line-height: 1.8; }

  .storage { padding: 90px 48px; gap: 24px; }
  .storage__head { gap: 24px; }
  .storage__grid { gap: 16px; }
  .storage__card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 22px; border-radius: 32px 28px 36px 26px; box-shadow: 0 20px 40px -28px rgba(62,30,58,.3); }
  .storage__card:hover { transform: none; }
  .storage__card--fridge { border-radius: 28px 36px 26px 32px; }
  .storage__card--freezer { border-radius: 36px 26px 32px 28px; }
  .storage__stamp { width: 56px; height: 56px; font-size: 22px; box-shadow: inset 0 0 0 3px #FFFDF8, inset 0 0 0 5px var(--c); }
  .storage__text { display: flex; flex-direction: column; gap: 6px; }
  .storage__text h3 { font-size: 16px; letter-spacing: 0; }
  .storage__text p { font-size: 13px; line-height: 1.8; }

  .arrange { padding: 90px 48px; gap: 24px; }
  .arrange__head-l { gap: 24px; }
  .arrange__title { font-size: 28px; letter-spacing: .1em; }
  .arrange__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .recipe { --shape: 28px; gap: 10px; }
  .recipe--round { --shape: 50%; }
  .recipe:hover { transform: none; }
  .recipe__time { right: -4px; top: -4px; font-size: 11px; letter-spacing: 0; padding: 6px 10px; border-radius: 24px 20px 26px 18px; }
  .recipe h3 { font-size: 15px; letter-spacing: 0; }
  .recipe p { font-size: 12px; line-height: 1.8; text-wrap: wrap; }
}

/* =========================================================
   SP（〜767px）… MEat size="sp"
   ========================================================= */
@media (max-width: 767px) {
  .eat-h2 { font-size: 24px; }

  .ripe { padding: 72px 24px; }
  .ripe__visual { width: 250px; height: 250px; }
  .ripe__ct { font-size: 19px; }

  .cut { padding: 80px 24px; }
  /* 写真を大きく見せるため、写真の下に文字を置く */
  .cut__grid { grid-template-columns: 1fr; gap: 44px; }
  .cut__item { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .cut__visual { width: 220px; height: 220px; }
  .cut__no { width: 50px; height: 50px; }
  .cut__num { font-size: 16px; }
  .cut__text { align-items: center; }
  .cut__text h3 { font-size: 17px; }

  .storage { padding: 72px 24px; }
  .storage__grid { grid-template-columns: 1fr; }
  .storage__card { flex-direction: row; }

  .arrange { padding: 72px 24px; }
  .arrange__title { font-size: 24px; }
  .arrange__grid { gap: 24px 14px; }
}

/* タブレット・スマホでは締めの欄（クリーム色）を出さないので、アレンジ（濃い紫）の次がフッター（濃い紫）になる。
   くっついて見えないよう、アレンジの下の辺もギザギザにして、クリーム色の余白をはさんでフッターにする（農園日記などと同じ見せ方） */
@media (max-width: 1199px) {
  .arrange {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 75% 100%, 50% calc(100% - 16px), 25% 100%, 0 calc(100% - 20px));
    padding-bottom: 112px; margin-bottom: 64px;
  }
}
@media (max-width: 767px) {
  .arrange { padding-bottom: 94px; margin-bottom: 48px; }
}
