/* ==========================================================================
   products.css
   商品紹介（products.php）専用スタイル
   ========================================================================== */

/* ==========================================================================
   p-pagetop（商品紹介ページだけ帯の画像を変え、下の旬カレンダーと地続きにする）
   ========================================================================== */
.p-pagetop {
  margin-bottom: 0;
}

/* 帯の上端は order.php など（page-top-slide-2.png）と同じ位置にそろえる。
   要素の高さは order.php と同じ「帯の高さ＋下のすき間（--slide-gap）」にして、
   画像は上半分（--slide-h の半分）にだけ敷き、その下は旬カレンダーと同じピンクで埋める。
   1枚の幅も order.php と同じ（--slide-w は sub-common.css の --slide-h × 487 / 186）。 */
.p-pagetop__slide {
  --slide-gap: 0px;
  bottom: 0;
  height: calc(var(--slide-h) + var(--slide-gap));
  background-image: url("../img/sub-photo/page-top-slide.jpg");
  background-position-y: 0;
  background-size: var(--slide-w) calc(var(--slide-h) / 2);
}

.p-pagetop__slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--slide-h) / 2 - 1px);
  bottom: 0;
  background: #fbf1f2;
}

/* order.php ではタブレット 64px・スマホ 44px、帯の下にすき間がある */
@media screen and (max-width: 1024px) {
  .p-pagetop__slide {
    --slide-gap: 20px;
    bottom: 0;
  }
}

/* 手機版（767px以下）：.p-pagetop__slide 整個區塊的高度 = 右側相片 .p-pagetop__photo 高度的一半。
   相片寬度 = min((pagetop寬 - 左右padding 32px) × 92%, 480px)（見 sub-common.css），
   相片比例 = 1024 / 1535（products-pagetop.png），用 cqw 以 pagetop 的寬度計算。 */
@media screen and (max-width: 767px) {
  .p-pagetop {
    container-type: inline-size;
  }

  .p-pagetop__slide {
    height: calc(min((100cqw - 32px) * 0.92, 480px) * 1024 / 1535 / 2);
  }
}

/* ==========================================================================
   p-season（旬カレンダー）
   淡いピンク地。左上に大きな白い野菜イラストを3枚、順番にフェードで切り替える。
   下端は白い波（curve-wh.png）で商品一覧へつなぐ。
   ========================================================================== */
.p-season {
  overflow: hidden;
  padding-bottom: calc(100px + 7vw);
  background: #fbf1f2;
  padding-top: 0;
}

.p-season > .sub-inner {
  position: relative;
  z-index: 2;
}

.p-season__dec {
  position: absolute;
  top: -1vw;
  left: -5vw;
  z-index: 0;
  width: min(40vw, 620px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

.p-season__dec img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: p-season-dec 12s ease-in-out infinite;
}

.p-season__dec img:nth-child(2) {
  animation-delay: 4s;
}
.p-season__dec img:nth-child(3) {
  animation-delay: 8s;
}

/* 1枚あたり 4s（12s の 1/3）表示し、前後をクロスフェードでつなぐ */
@keyframes p-season-dec {
  0% {
    opacity: 0;
    transform: scale(0.95) rotate(-4deg);
  }
  8% {
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.7;
  }
  41% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.p-season__curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  display: block;
  width: 100%;
  height: 7vw;
  min-height: 40px;
  pointer-events: none;
}
/* 表の外枠。画面が狭くても 809px より小さくはならず、
   はみ出した分は外側の .p-season__scroll で左右にスクロールして見る */
.p-season__scroller {
  position: relative;
}

.p-season__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-main) transparent;
}

.p-season__scroll::-webkit-scrollbar {
  height: 6px;
}

.p-season__scroll::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: var(--color-main);
}

/* スクロールできるときは、スクロールバーと表の間を少し空ける */
.p-season__scroller.is-scrollable .p-season__scroll {
  padding-bottom: 12px;
}

.p-season__wrap {
  min-width: 809px;
  padding: 26px 30px 30px;
  border: 2px dashed var(--color-main);
  border-radius: 40px;
  background: #fff;
}

/* 「左右にスクロールできます」の案内。表がはみ出しているときだけ表示し、
   一度でもスクロールされたら消える（sub.js が .is-scrollable / .is-scrolled を付ける） */
.p-season__hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 22px 14px;
  border-radius: 20px;
  background: rgba(200, 39, 46, 0.88);
  color: #fff;
  font-family: var(--font-round);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s;
}

.p-season__hint i {
  font-size: 1.8rem;
  animation: p-season-swipe 1.6s ease-in-out infinite;
}

.p-season__hint span::before {
  content: "\2190\00a0";
}

.p-season__hint span::after {
  content: "\00a0\2192";
}

@keyframes p-season-swipe {
  0%,
  100% {
    transform: translateX(-16px) rotate(-10deg);
  }
  50% {
    transform: translateX(16px) rotate(10deg);
  }
}

/* 表がふわっと表示されてから（.p-season__wrap に .is-inview が付いてから）出す */
.p-season__scroller.is-scrollable:not(.is-scrolled):has(.p-season__wrap.is-inview) .p-season__hint {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  .p-season__hint i {
    animation: none;
  }
}

.p-season__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.p-season__table thead th {
  padding: 8px 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #8c5a5a;
  text-align: center;
}

.p-season__table thead th:first-child {
  width: 130px;
}

.p-season__table thead th small {
  font-size: 0.7em;
}

/* 夏・冬の月は小さなアイコン付きで色分け */
.p-season__table thead th.is-summer {
  color: #e08a00;
}

.p-season__table thead th.is-winter {
  color: #3d7fc1;
}

.p-season__table tbody th {
  padding-right: 12px;
  text-align: left;
  white-space: nowrap;
}

.p-season__table tbody th a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--color-pink);
  color: var(--color-main);
  font-size: 0.9rem;
  font-weight: 700;
}

.p-season__table tbody th a:hover {
  opacity: 1;
  background: var(--color-main);
  color: #fff;
}

.p-season__table td {
  position: relative;
  height: 40px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% - 1px), #f2e2e2 calc(100% - 1px) 100%);
}

/* 販売中の月：つながった帯 */
.p-season__table td.is-on {
  background: var(--bar);
}

.p-season__table td.is-on:not(.is-on + td.is-on) {
  border-radius: 20px 0 0 20px;
}

.p-season__table td.is-on:not(:has(+ td.is-on)) {
  border-radius: 0 20px 20px 0;
}

.p-season__table td.is-on:not(.is-on + td.is-on):not(:has(+ td.is-on)) {
  border-radius: 20px;
}

/* 帯の中を行き来する小さな光 */
.p-season__table td.is-on span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.p-season__table tr.is-red {
  --bar: linear-gradient(180deg, #ee4b52, var(--color-main));
}
.p-season__table tr.is-pink {
  --bar: linear-gradient(180deg, #ff9ea4, #f06a77);
}
.p-season__table tr.is-green {
  --bar: linear-gradient(180deg, #8fd16f, var(--color-leaf));
}
.p-season__table tr.is-brown {
  --bar: linear-gradient(180deg, #c99a6b, #9b6a3f);
}

/* 表が画面に入ったら、帯が左（1月）から右（12月）へ順番に伸びる。
   各セルは自分の月（--col）ぶん遅れて伸び始め、1セル分の時間で伸び切るので、
   つながった帯が左から右へ描かれていくように見える。行（--row）ごとに少しずつずらす */
.p-season__table td.is-on {
  --cell-time: 0.07s;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--cell-time) linear;
  transition-delay: 0s;
}

.p-season__table td.is-on span {
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.2s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p-season__wrap.is-inview td.is-on {
  transform: scaleX(1);
  transition-delay: calc(0.4s + var(--row, 0) * 0.15s + var(--col, 0) * var(--cell-time));
}

/* 帯が通り過ぎたあとに、中の白い丸がぽんっと出る */
.p-season__wrap.is-inview td.is-on span {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.5s + var(--row, 0) * 0.15s + var(--col, 0) * var(--cell-time));
}

@media (prefers-reduced-motion: reduce) {
  .p-season__table td.is-on,
  .p-season__table td.is-on span {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.p-season__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #8c5a5a;
  text-align: right;
}

/* ==========================================================================
   p-items（商品一覧）
   写真と本文が左右交互に入れ替わるジグザグレイアウト。
   写真の背後に商品カラーの丸い影、左上にトップと同じ縦タグを付ける。
   ========================================================================== */

#items .c-sub-heading p {
  padding-bottom: 30px;
}

.p-items__list {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.p-item {
  --accent: var(--color-main);
  --accent-soft: #ffd9db;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
  /* 旬カレンダーの商品名から飛んできたとき、上に余白を残す
	   （番号「01」が上にはみ出しているので、その分も見えるように） */
  scroll-margin-top: 85px;
}

@media screen and (max-width: 1024px) {
  .p-item {
    scroll-margin-top: 60px;
  }

  .p-season__note {
    text-align: left;
  }
}

@media screen and (max-width: 767px) {
  .p-item {
    scroll-margin-top: 35px;
  }
}

.p-item--green {
  --accent: #4f9a35;
  --accent-soft: #dff2cf;
}
.p-item--brown {
  --accent: #9b6a3f;
  --accent-soft: #f2e1cc;
}
.p-item--pink {
  --accent: #e0576a;
  --accent-soft: #ffe0e4;
}

.p-item:nth-child(even) .p-item__visual {
  order: 2;
}

.p-item__visual {
  position: relative;
  padding: 20px;
}

/* 写真の後ろの色付きの丸 */
.p-item__visual::before {
  content: "";
  position: absolute;
  inset: 6% 2% 0 8%;
  border-radius: 50%;
  background: var(--accent-soft);
  transform: rotate(-8deg);
}

.p-item:nth-child(even) .p-item__visual::before {
  inset: 6% 8% 0 2%;
  transform: rotate(8deg);
}

.p-item__photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 40px;
  background: #fff;
  box-shadow:
    0 0 0 8px #fff,
    0 20px 36px rgba(140, 19, 19, 0.14);
  transform: rotate(-2deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p-item:nth-child(even) .p-item__photo {
  transform: rotate(2deg);
}

.p-item:hover .p-item__photo {
  transform: rotate(0deg) scale(1.02);
}

.p-item__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 商品名タグ（トップページの .p-products__tag と同じ形） */
.p-item__tag {
  position: absolute;
  top: 0;
  left: 44px;
  z-index: 3;
  writing-mode: vertical-rl;
  /* 数字・英字も横に寝かせず、正立させて縦に並べる（例：5kg） */
  text-orientation: upright;
  padding: 14px 8px 24px;
  border-radius: 8px 8px 0 0;
  background-color: var(--color-main);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3rem;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}

.p-item__num {
  position: absolute;
  z-index: 2;
  right: 0;
  top: -30px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 3px var(--accent);
  paint-order: stroke fill;
  transform: rotate(8deg);
}

.p-item:nth-child(even) .p-item__num {
  right: auto;
  left: auto;
  right: 10px;
}

.p-item__category {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 0;
  padding: 8px 20px;
  border-radius: 30px;
  background: var(--color-sun);
  color: #8c1313;
  font-family: var(--font-round);
  font-weight: 900;
  box-shadow: 0 0 0 4px #fff;
  transform: rotate(-6deg);
}

/* ---------- 本文 ---------- */
.p-item__body {
  position: relative;
}

.p-item__catch {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-round);
  font-weight: 900;
  color: var(--accent);
  transform: rotate(-2deg);
}

.p-item__catch::before {
  content: "＼ ";
}

.p-item__catch::after {
  content: " ／";
}

.p-item__name {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--color-text);
}

/* 説明文の下に添える注意書き（小さめ・太字） */
.p-item__note {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.8;
}

.p-item__desc {
  line-height: 2;
  letter-spacing: 0.03em;
}

.p-item__info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px;
  margin-top: 24px;
}

.p-item__info > div {
  padding: 10px 16px;
  border-radius: 18px;
  background: #fff;
}

.p-item__info dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8c5a5a;
}

.p-item__info dt i {
  color: var(--accent);
}

.p-item__info dd {
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* 販売時期は太陽色でいちばん目立たせる */
.p-item__info .p-item__season {
  background: var(--color-sun-light);
}

.p-item__info .p-item__season dt i {
  color: #e08a00;
  animation: c-sun-spin 8s linear infinite;
}

.p-item__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px dashed var(--color-pink-deep);
}

.p-item__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--color-main);
  font-weight: 700;
}

.p-item__unit {
  margin-right: 6px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--color-main);
  color: #fff;
  font-size: 0.8rem;
  align-self: center;
}

.p-item__price strong {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.p-item__yen small {
  font-size: 0.75rem;
  color: #8c5a5a;
}

.p-item__btn {
  margin: 0;
  padding: 14px 26px;
  font-size: 1rem;
  letter-spacing: 0.08rem;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media screen and (max-width: 1000px) {
  .p-item {
    gap: 40px;
  }

  .p-item__info {
    grid-template-columns: 1fr 1fr;
  }

  .p-item__info .p-item__season {
    grid-column: span 2;
  }
}

@media screen and (max-width: 800px) {
  .p-items__list {
    gap: 70px;
  }

  .p-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .p-item:nth-child(even) .p-item__visual {
    order: 0;
  }

  .p-item__visual {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .p-item__num {
    font-size: 4.5rem;
  }

  /* キャッチと商品名は左右中央に。
     キャッチは傾けた inline-block のまま幅を保つため display: table＋左右 auto で中央寄せ */
  .p-item__catch {
    display: table;
    margin-left: auto;
    margin-right: auto;
  }

  .p-item__name {
    text-align: center;
  }

  /* 商品名の区切り（<span>）ごとにまとめて折り返す。2行になっても各行が中央にそろう */
  .p-item__name span {
    display: inline-block;
  }
}

@media screen and (max-width: 600px) {
  .p-season__wrap {
    padding: 18px 16px 20px;
    border-radius: 28px;
  }

  .p-item__tag {
    left: 30px;
    font-size: 1.05rem;
  }

  .p-item__photo {
    border-radius: 28px;
  }

  .p-item__info {
    grid-template-columns: 1fr;
  }

  .p-item__info .p-item__season {
    grid-column: auto;
  }

  .p-item__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .p-item__price {
    justify-content: center;
  }

  .p-item__btn {
    justify-content: center;
  }
}

/* ==========================================================================
   p-super（宮崎県内のスーパーでも、出会えます！）
   点線で縁取った淡いピンクのカード。PC・タブレットは左に文章、右に野菜箱の写真。
   スマホは縦一列（見出し → 文章 → 呼びかけ → 写真）。
   ========================================================================== */
.p-super {
  padding-top: 40px;
  padding-bottom: 120px;
}

.p-super__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 50px 50px 70px;
  border-radius: 60px;
  /* 白地に、小さく淡い方眼（縦線＋横線）を敷く */
  background-color: #fff;
  background-image: linear-gradient(rgba(200, 39, 46, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 39, 46, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  outline: 2px dashed var(--color-main);
  outline-offset: -18px;
  box-shadow:
    0 0 0 8px #fff7f7,
    0 10px 40px rgba(232, 150, 156, 0.25);
}

/* 上の左右の角に貼った紙テープ（about.php ごあいさつの .p-greeting__tape と同じ柄）。
   カードが壁に貼ってあるように見せる */
.p-super__tape {
  position: absolute;
  top: 18px;
  z-index: 2;
  width: 130px;
  height: 34px;
  background: repeating-linear-gradient(45deg, rgba(214, 164, 76, 0.85) 0 10px, rgba(232, 199, 138, 0.85) 10px 20px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.p-super__tape--l {
  left: -30px;
  transform: rotate(-38deg);
}

.p-super__tape--r {
  right: -30px;
  transform: rotate(38deg);
  background: repeating-linear-gradient(45deg, rgba(200, 39, 46, 0.75) 0 10px, rgba(232, 120, 125, 0.75) 10px 20px);
}

/* 「＼」の集中線（見出しの左上に付ける） */
.p-super__ttl::before {
  content: "";
  position: absolute;
  left: -48px;
  top: -8px;
  width: 42px;
  height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23c8272e' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cpath d='M4 24l12 5'/%3E%3Cpath d='M12 9l9 11'/%3E%3Cpath d='M28 3l2 13'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* 呼びかけの左上は双葉アイコン（Font Awesome の fa-solid fa-seedling） */
.p-super__call::before {
  content: "\f4d8";
  position: absolute;
  left: -36px;
  top: 0;
  font-family: "Font Awesome 6 Free";
  font-size: 0.85em;
  font-weight: 900;
  line-height: 1;
  color: var(--color-leaf);
  transform: rotate(-12deg);
}

.p-super__ttl {
  position: relative;
  z-index: 1;
  margin-left: 44px;
  font-family: var(--font-round);
  font-size: clamp(1.6rem, 3.3vw, 3.3rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-main);
}

/* 画面に入ると、文字の下に蛍光ペンのラインが左から右へ引かれる
   （見出しは黄色、そのあと呼びかけは淡いピンク）。
   左端を起点に background-size の幅を 0 → 100% に伸ばす。
   スマホで2行になっても行ごとに引かれるよう box-decoration-break: clone を指定 */
.p-super__ttl > span,
.p-super__call > span {
  position: relative;
  z-index: 1;
  background: linear-gradient(transparent 60%, #ffe066 60%, #ffe066 92%, transparent 92%) left bottom / 0% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.p-super__call > span {
  background-image: linear-gradient(transparent 60%, #ffd3d9 60%, #ffd3d9 92%, transparent 92%);
}

.p-super.is-inview .p-super__ttl > span,
.p-super.is-inview .p-super__call > span {
  background-size: 100% 100%;
  transition-delay: 0.5s;
}

/* 見出しの線を引き終えてから、呼びかけの線を引く */
.p-super.is-inview .p-super__call > span {
  transition-delay: 1.3s;
}

/* スマホで折り返すときに、言葉の途中で改行されないようにする */
.p-super__ttl span span,
.p-super__call span span {
  display: inline-block;
}

.p-super__text {
  position: relative;
  z-index: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  margin-top: 20px;
  font-family: var(--font-round);
  font-size: clamp(1rem, 1.45vw, 1.4rem);
  font-weight: 700;
  line-height: 1.85;
  color: var(--color-text);
}

.p-super__text p {
  font-size: 1.15rem;
}

.p-super__call {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  margin: 20px 0 0 44px;
  font-family: var(--font-round);
  font-size: clamp(1.3rem, 2.3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--color-main);
}

.p-super__photo {
  z-index: 0;
  width: 40%;
  min-width: 250px;
  padding: 10px;
}

.p-super__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.box-wrap {
  gap: 20px;
  display: flex;
  align-items: center;
}

.p-super__text p span {
  display: inline-block;
}

/* タブレット */

@media screen and (max-width: 1200px) {
  .p-super__text p span {
    display: inline;
  }

  .p-super__text p {
    font-size: 1.05rem;
  }

  .box-wrap {
    gap: 0;
  }

  .p-super__call {
    margin: 20px 0 0 0;
    text-align: center;
  }

  .p-super__call::before {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .p-super__card {
    padding: 64px 36px 40px 48px;
    border-radius: 48px;
  }

  .box-wrap {
    gap: 0;
    flex-direction: column;
  }

  .p-super__photo {
    width: 80%;
    max-width: 500px;
    margin-top: 20px;
  }

  .p-super__ttl {
    font-size: 2rem;
  }
}

/* スマホ：縦一列 */
@media screen and (max-width: 767px) {
  .p-super {
    padding-top: 20px;
    padding-bottom: 80px;
  }

  .p-super__card {
    padding: 50px 35px 30px;
    border-radius: 36px;
    outline-offset: -10px;
    box-shadow:
      0 0 0 6px #fff7f7,
      0 8px 28px rgba(232, 150, 156, 0.25);
  }

  .p-super__tape {
    top: 12px;
    width: 90px;
    height: 26px;
  }

  .p-super__tape--l {
    left: -22px;
  }

  .p-super__tape--r {
    right: -22px;
  }

  /* 幅が狭いので「＼」と双葉は文字の左上（上側）に置く */
  .p-super__ttl::before {
    left: -15px;
    top: -10px;
    width: 28px;
    height: 28px;
  }

  .p-super__call::before {
    left: 0;
    top: -30px;
  }

  .p-super__ttl {
    margin-left: 0;
    font-size: max(5.5vw, 1.75rem);
    line-height: 1.6;
  }

  .p-super__text {
    max-width: none;
    margin-top: 10px;
  }

  .p-super__text p {
    font-size: 0.95rem;
  }

  .p-super__call {
    margin: 52px 0 0;
    font-size: min(3.5vw, 1.5rem);
    white-space: normal;
    line-height: 1.7;
    margin: 20px 0 0 0;
  }

  .p-super__photo {
    position: static;
    align-self: center;
    width: min(72%, 320px);
    margin: 16px 0 0;
  }

  .p-super__call::before {
    left: -15px;
    top: -7px;
    font-size: 0.65em;
  }
}

@media screen and (max-width: 600px) {
  .p-super__call {
    font-size: max(6vw, 1rem);
  }

  .p-super__photo {
    margin: 0;
    width: 100%;
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-super__ttl > span,
  .p-super__call > span {
    transition: none;
  }

  .p-season__dec img {
    animation: none;
  }

  .p-season__dec img:first-child {
    opacity: 0.7;
  }
}
