@charset "UTF-8";

/* 出汁の追加案内。既存の style.css の後に読み込みます。 */
.product-showcase .product-showcase__dashi-label {
  margin: 12px 0 18px;
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.product-dashi {
  position: relative;
  z-index: 1;
  padding: 64px 24px 76px;
  color: #211815;
  /* 背景は既存ページの和紙を引き継ぎます。 */
}

.product-dashi__inner {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.product-dashi__heading {
  text-align: center;
  margin-bottom: 36px;
}

.product-dashi__heading h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.product-dashi__heading h2::before,
.product-dashi__heading h2::after {
  content: "";
  flex: 1;
  max-width: 190px;
  height: 1px;
  background: #536b7d;
  opacity: 0.5;
}

.product-dashi__heading > p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.product-dashi__layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.15fr;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.product-dashi__photo {
  min-width: 0;
  margin: 0;
}

.product-dashi__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.product-dashi__photo figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.product-dashi__item {
  min-width: 0;
}

.product-dashi__item h3 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #536b7d;
  color: #536b7d;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.product-dashi__item > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  line-break: strict;
}

.product-dashi__item > p + p {
  margin-top: 12px;
}

.product-dashi__item--owner {
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid rgba(83, 107, 125, 0.35);
}

.product-dashi__item--owner h3 {
  color: #9f7865;
  border-bottom-color: #9f7865;
}

.product-dashi__item > .product-dashi__note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 1000px) and (min-width: 768px) {
  .product-dashi__layout {
    grid-template-columns: 1fr 1fr;
  }

  .product-dashi__photo {
    grid-column: 1 / -1;
    width: min(100%, 300px);
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .product-showcase .product-showcase__dashi-label {
    margin: 10px 0 14px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .product-dashi {
    padding: 44px 24px 56px;
  }

  .product-dashi__heading {
    margin-bottom: 20px;
  }

  .product-dashi__heading h2 {
    display: block;
    font-size: clamp(20px, 5.5vw, 25px);
    letter-spacing: 0.02em;
  }

  .product-dashi__heading h2::before,
  .product-dashi__heading h2::after {
    content: none;
  }

  .product-dashi__heading > p {
    margin-top: 10px;
    font-size: 14px;
  }

  .product-dashi__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-dashi__photo {
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .product-dashi__item h3 {
    font-size: 21px;
    margin-bottom: 14px;
  }

  .product-dashi__item > p {
    font-size: 16px;
    line-height: 1.9;
  }

  .product-dashi__item--owner {
    padding-left: 0;
    border-left: 0;
  }
}

/* 出汁の右上に「ぷるんとっ」 */
.product-dashi__photo {
  position: relative;
}

.product-dashi__photo .product-dashi__purun {
  position: absolute;
  top: 3%;
  right: -6%;
  z-index: 1;
  width: 112px;
  height: auto;
  pointer-events: none;
  -webkit-animation: dashi-purun-jitter 0.8s steps(1, end) infinite;
  animation: dashi-purun-jitter 0.8s steps(1, end) infinite;
}

.product-dashi__dish {
  position: relative;
}

/* なめらかに揺らさず、小刻みに切り替える */
@-webkit-keyframes dashi-purun-jitter {
  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }

  25% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 1px) rotate(-1deg);
  }

  75% {
    transform: translate(1px, 0) rotate(2deg);
  }
}
@keyframes dashi-purun-jitter {
  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }

  25% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 1px) rotate(-1deg);
  }

  75% {
    transform: translate(1px, 0) rotate(2deg);
  }
}

/* 個数 */
.product-dashi__count {
  display: inline-block;
  margin-left: 6px;
  font-size: 1.2em;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .product-dashi__photo .product-dashi__purun {
    top: 5%;
    right: 0;
    width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-dashi__photo .product-dashi__purun {
    -webkit-animation: none;
    animation: none;
  }
}

/* 説明の見出しを同じ高さに */
.product-dashi__layout {
  align-items: start;
}

/* 写真だけ縦中央に */
.product-dashi__photo {
  align-self: center;
}

/* ぷるんとっ：お皿の左側 */
.product-dashi__photo .product-dashi__purun {
  top: 5%;
  right: auto;
  left: -2%;
  width: 112px;
  -webkit-animation: dashi-purun-left 0.8s steps(1, end) infinite;
  animation: dashi-purun-left 0.8s steps(1, end) infinite;
}

/* 左への傾きを保ちながら、小刻みに揺らす */
@-webkit-keyframes dashi-purun-left {
  0%,
  100% {
    transform: translate(0, 0) rotate(-12deg);
  }

  25% {
    transform: translate(1px, -1px) rotate(-10deg);
  }

  50% {
    transform: translate(-1px, 1px) rotate(-13deg);
  }

  75% {
    transform: translate(1px, 0) rotate(-11deg);
  }
}
@keyframes dashi-purun-left {
  0%,
  100% {
    transform: translate(0, 0) rotate(-12deg);
  }

  25% {
    transform: translate(1px, -1px) rotate(-10deg);
  }

  50% {
    transform: translate(-1px, 1px) rotate(-13deg);
  }

  75% {
    transform: translate(1px, 0) rotate(-11deg);
  }
}

@media (max-width: 767px) {
  .product-dashi__photo .product-dashi__purun {
    top: 25%;
    right: auto;
    left: -3%;
    width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-dashi__photo .product-dashi__purun {
    -webkit-animation: none;
    animation: none;
    transform: rotate(-12deg);
  }
}
