/* =========================================================
   ヤギのこと（goats.html）
   PC: 上原ファーム GOATS（SP・TBのデザインは無いので、MAbout と同じ考え方で1列にまとめる）
   ========================================================= */
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg) } 50% { transform: translateY(-10px) rotate(2deg) } }
@keyframes bubble { 0%,55% { opacity: 0; transform: scale(.3) translateY(10px) } 65% { opacity: 1; transform: scale(1.1) } 72%,90% { opacity: 1; transform: scale(1) } 100% { opacity: 0; transform: scale(.8) translateY(-6px) } }
@keyframes hoof { 0%,100% { opacity: 0 } 20%,70% { opacity: 1 } }
@keyframes grass { 0%,100% { transform: skewX(-6deg) } 50% { transform: skewX(6deg) } }
@keyframes floatYs { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* ---------- 幕（このページだけ「メェ〜」） ---------- */
.curtain__goat {
  width: 120px; height: 120px; border-radius: 50%; background: var(--plum); color: var(--sun);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; letter-spacing: .1em; white-space: nowrap;
  animation: curtainMark 1.1s cubic-bezier(.3,1.4,.5,1) both;
}
@media (max-width: 1199px) { .curtain__goat { width: 110px; height: 110px; font-size: 24px; } }
@media (max-width: 767px) { .curtain__goat { width: 96px; height: 96px; font-size: 21px; } }

/* ---------- イントロ ---------- */
.g-intro { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 150px calc(var(--pad-x) + 100px) 110px; text-align: center; }
.hooves { display: flex; gap: 18px; align-items: flex-end; height: 40px; }
.hoof { display: flex; gap: 4px; transform: translateY(var(--y)) rotate(var(--r)); animation: hoof 3.6s ease-in-out infinite both; }
.hoof i { width: 9px; height: 14px; border-radius: 50% 50% 45% 45%; background: #C9B79C; }
.g-intro__title { font-family: var(--font-mincho); font-size: 38px; font-weight: 600; letter-spacing: .14em; line-height: 1.7; }
.g-intro__body { max-width: 680px; font-size: 16px; line-height: 2.2; letter-spacing: .06em; text-wrap: pretty; }
@media (max-width: 1199px) {
  .g-intro { gap: 24px; padding: 90px 72px 80px; }
  .g-intro__title { font-size: 30px; letter-spacing: .12em; }
  .g-intro__body { max-width: 560px; font-size: 15px; letter-spacing: .04em; text-align: left; }
}
@media (max-width: 767px) {
  .g-intro { padding: 70px 24px 60px; }
  .g-intro__title { font-size: 24px; }
  .g-intro__body { font-size: 14px; }
}

/* ---------- 2頭のプロフィール ---------- */
.goats { position: relative; padding: 40px calc(var(--pad-x) - 20px) 140px; }
.goats__blob { position: absolute; left: -120px; right: -120px; top: 120px; bottom: 40px; background: var(--sand); border-radius: 50% 50% 46% 54% / 18% 20% 14% 12%; }
.goats__list { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.goat { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.goat--yuki { margin-top: 90px; }
.goat__visual { position: relative; width: 420px; height: 420px; }
.goat__ring { position: absolute; inset: -22px; border-radius: 50%; border: 2px dashed rgba(91,42,78,.35); animation: spin 60s linear infinite; }
.goat--yuki .goat__ring { border-color: rgba(242,179,61,.6); }
.goat__photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(62,30,58,.35); animation: bob 5s ease-in-out infinite; }
.goat--yuki .goat__photo { animation-delay: -2.5s; }
.goat__photo img { width: 100%; height: 100%; object-fit: cover; }
.goat__say {
  position: absolute; top: 18px; right: -6px; padding: 12px 20px; border-radius: 24px 24px 24px 6px;
  background: #fff; color: var(--plum); font-size: 18px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(62,30,58,.4); transform-origin: left bottom;
  animation: bubble 4.8s ease-out infinite both;
}
.goat--yuki .goat__say { animation-delay: -2.4s; }
.goat__badge {
  position: absolute; left: -8px; bottom: 22px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--plum); color: var(--sun);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transform: rotate(-10deg); box-shadow: inset 0 0 0 4px var(--plum), inset 0 0 0 6px #fff;
}
.goat--yuki .goat__badge { background: var(--sun); color: var(--plum-deep); box-shadow: inset 0 0 0 4px var(--sun), inset 0 0 0 6px #fff; }
.goat__sex { font-size: 24px; font-weight: 700; line-height: 1; }
.goat__sex-en { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; white-space: nowrap; }
.goat__name { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.goat__en { font-family: var(--font-mono); font-size: 13px; letter-spacing: .3em; color: var(--green); }
.goat__name h3 { font-size: 46px; font-weight: 700; letter-spacing: .12em; color: var(--plum); }
.goat__dl { margin: 0; width: 460px; max-width: 100%; display: flex; flex-direction: column; padding: 10px 30px; border-radius: 28px; background: #fff; }
.goat__dl > div { display: flex; gap: 20px; padding: 14px 0; border-bottom: 2px dotted rgba(91,42,78,.2); }
.goat__dl > div:last-child { border-bottom: 0; }
.goat__dl dt { flex: none; width: 120px; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--muted); }
.goat__dl dd { margin: 0; font-size: 15px; }
@media (max-width: 1199px) {
  .goats { padding: 20px 48px 90px; }
  .goats__blob { left: -60px; right: -60px; top: 80px; bottom: 20px; border-radius: 50% 50% 46% 54% / 10% 10% 8% 8%; }
  .goats__list { grid-template-columns: 1fr; gap: 72px; }
  .goat { gap: 20px; }
  .goat--yuki { margin-top: 0; }
  .goat__visual { width: 320px; height: 320px; }
  .goat__ring { inset: -16px; }
  .goat__say { font-size: 16px; padding: 10px 18px; }
  .goat__badge { width: 80px; height: 80px; bottom: 14px; }
  .goat__sex { font-size: 22px; }
  .goat__name { gap: 6px; }
  .goat__en { font-size: 12px; }
  .goat__name h3 { font-size: 38px; }
  .goat__dl { padding: 6px 24px; border-radius: 24px; }
  .goat__dl > div { gap: 16px; padding: 12px 0; }
  .goat__dl dt { width: 112px; }
  .goat__dl dd { font-size: 14px; }
}
@media (max-width: 767px) {
  .goats { padding: 10px 24px 72px; }
  .goats__blob { left: -40px; right: -40px; }
  .goat__visual { width: 260px; height: 260px; }
  .goat__say { right: -14px; font-size: 15px; }
  .goat__badge { left: -12px; width: 70px; height: 70px; bottom: 8px; box-shadow: inset 0 0 0 3px var(--plum), inset 0 0 0 5px #fff; }
  .goat--yuki .goat__badge { box-shadow: inset 0 0 0 3px var(--sun), inset 0 0 0 5px #fff; }
  .goat__sex { font-size: 20px; }
  .goat__sex-en { font-size: 9px; }
  .goat__name h3 { font-size: 32px; }
  .goat__dl { padding: 4px 20px; }
  .goat__dl > div { gap: 12px; }
  .goat__dl dt { width: 104px; font-size: 12px; }
}

/* ---------- ギャラリー ---------- */
.g-gallery { position: relative; display: flex; flex-direction: column; gap: 56px; padding: 60px calc(var(--pad-x) - 20px) 140px; }
.g-gallery__head { display: flex; align-items: center; gap: 16px; }
.g-gallery__head h2 { font-size: 32px; font-weight: 700; letter-spacing: .12em; }
.g-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; align-items: start; }
.polaroid {
  margin: var(--mt) 0 0; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 20px;
  background: #fff; border-radius: 8px; box-shadow: 0 20px 40px -24px rgba(62,30,58,.4);
  transform: rotate(var(--rot)); transition: transform .5s cubic-bezier(.3,1.5,.5,1);
}
.polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); }
.polaroid__img { aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { white-space: nowrap; font-size: 14px; font-weight: 700; text-align: center; color: var(--muted); }
@media (max-width: 1199px) {
  .g-gallery { gap: 32px; padding: 0 48px 90px; }
  .g-gallery__head { gap: 14px; }
  .g-gallery__head h2 { font-size: 28px; letter-spacing: .1em; }
  .g-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .polaroid { margin-top: calc(var(--mt) * .5); }
}
@media (max-width: 767px) {
  .g-gallery { padding: 0 24px 72px; }
  .g-gallery__head h2 { font-size: 24px; letter-spacing: .08em; }
  .g-gallery__grid { gap: 20px 16px; }
  .polaroid { gap: 10px; padding: 10px 10px 14px; }
  .polaroid figcaption { font-size: 13px; }
}

/* ---------- 農園日記へ ---------- */
.g-diary {
  position: relative; margin: 0 calc(var(--pad-x) - 20px) 140px; padding: 80px 100px; border-radius: 48px;
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 60px; overflow: hidden;
}
.g-diary__grass { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; justify-content: space-around; pointer-events: none; }
.g-diary__grass span { width: var(--w); height: var(--h); border-radius: 50% 50% 0 0; background: #2F6A2C; transform-origin: bottom center; animation: grass 3s ease-in-out infinite; }
.g-diary__text { position: relative; display: flex; flex-direction: column; gap: 20px; }
.g-diary__en { font-family: var(--font-mono); font-size: 13px; letter-spacing: .3em; color: var(--sun); }
.g-diary__text h2 { font-family: var(--font-mincho); font-size: 34px; font-weight: 600; letter-spacing: .12em; line-height: 1.7; }
.g-diary__text p { max-width: 560px; font-size: 15px; line-height: 2.1; }
.g-diary__btn {
  position: relative; flex: none; width: 200px; height: 200px; border-radius: 50%;
  background: var(--sun); color: var(--plum-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 700; letter-spacing: .1em;
  animation: floatYs 4s ease-in-out infinite; transition: background .3s, color .3s;
}
.g-diary__btn span { font-size: 22px; }
.g-diary__btn:hover { background: var(--cream); color: var(--plum); }
@media (max-width: 1199px) {
  .g-diary { margin: 0 48px 90px; padding: 64px 56px 80px; border-radius: 40px; flex-direction: column; align-items: flex-start; gap: 32px; }
  .g-diary__text { gap: 16px; }
  .g-diary__text h2 { font-size: 28px; letter-spacing: .1em; }
  .g-diary__text p { font-size: 14px; }
  .g-diary__btn { align-self: flex-end; width: 160px; height: 160px; font-size: 15px; gap: 6px; }
  .g-diary__btn span { font-size: 20px; }
}
@media (max-width: 767px) {
  .g-diary { margin: 0 16px 72px; padding: 48px 28px 72px; border-radius: 32px; gap: 28px; }
  .g-diary__en { font-size: 12px; }
  .g-diary__text h2 { font-size: 19px; letter-spacing: .08em; }
  .g-diary__btn { width: 132px; height: 132px; font-size: 14px; }
  .g-diary__btn span { font-size: 18px; }
}

/* ヒーロー写真の表示位置（PCは2頭の頭が入る位置、TB・SPはヤギ1頭が入る位置） */
.goats-hero img { object-position: 50% 74%; }
@media (max-width: 1199px) { .goats-hero img { object-position: 50% 60%; } }
