@charset "utf-8";

/* 全て商品ページ専用の新規クラス。既存CSSの上書きは行わない。 */
.fp-page {
  --fp-review-ink: #b32025;
  --fp-backdrop-top: #ffefd9;
  --fp-backdrop-base: #fff8ef;
  --fp-photo-background: #fff4cc;
  --fp-photo-frame-size: 82%;
  --fp-photo-frame-max-width: 240px;
  --fp-photo-image-size: 75%;
  --fp-photo-image-max-height: 75cqw;
  --fp-medicine-band-background: #3d61a4;
  --fp-medicine-band-color: #faed3c;
  --fp-card-name-size: 1rem;
  --fp-booth-label-size: .8125rem;
  --fp-offer-callout-size: .875rem;
  --fp-card-company-size: calc(var(--fp-card-name-size) * .9375);
  --fp-card-spec-size: var(--fp-card-name-size);
  max-width: 1080px;
  margin-inline: auto;
  background: linear-gradient(180deg, #fff4e4, #fffaf2 60%, #ffe8d0);
}
.fp-header { background: #fff; }
.fp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.fp-header__logo { display: flex; align-items: center; min-height: 44px; width: 155px; }
.fp-header__return, .fp-bottom__return, .fp-page-top { border-color: #3d61a4; color: #fff; background: #3d61a4; }
.fp-header__return:hover, .fp-bottom__return:hover, .fp-page-top:hover { background: #304d85; }
.fp-main {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--fp-backdrop-top) 0, var(--fp-backdrop-base) 700px, var(--fp-backdrop-base) 100%);
}
.fp-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 540px;
  pointer-events: none;
  background: url("festa-background.svg") center top / cover no-repeat;
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}
.fp-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 32px 64px;
  text-align: center;
}
.fp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("hero-decoration.svg") center / cover no-repeat;
}
.fp-hero__content { position: relative; z-index: 1; max-width: 930px; margin-inline: auto; }
.fp-hero__eyebrow { width: 39%; max-width: 363px; margin-inline: auto; }
.fp-hero__title { width: 74%; max-width: 690px; margin: 44px auto 52px; }
.fp-hero__eyebrow img, .fp-hero__title img { width: 100%; }
.fp-hero__mascot { position: absolute; top: 36px; right: -6%; width: 12%; max-width: 118px; transform: translate(-20px, -30px); pointer-events: none; }
.fp-hero__date { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 7px; width: 88%; max-width: 760px; margin-inline: auto; padding: 12px 28px; clip-path: polygon(0 0,100% 0,98% 50%,100% 100%,0 100%,2% 50%); color: #fff; background: #3d61a4; font-size: 1.4375rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.fp-hero__date time { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; min-width: 0; max-width: 100%; gap: 5px; }
.fp-hero__date strong { font-size: 3.375rem; font-weight: 900; line-height: 1; }
.fp-hero__weekday { align-self: baseline; display: inline-block; width: 1.565em; height: 1.565em; margin-left: 4px; border-radius: 50%; color: #3d61a4; background: #fff; line-height: 1.565em; }
.fp-hero__notes { max-width: 760px; margin: 20px auto 0; color: var(--fp-ink); font-size: .875rem; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
.fp-hero__notes p { padding-left: 1em; text-indent: -1em; }
.fp-hero__notes p + p { margin-top: 0; }
.fp-catalog { padding-block: 36px 48px; }
.fp-review-summary { margin-bottom: 32px; padding: 20px 24px; border: 1px solid #e3b5b7; border-radius: 8px; color: var(--fp-review-ink); background: #fff7f7; font-size: var(--fp-text-size); overflow-wrap: anywhere; }
.fp-review-summary strong { font-size: 1.125rem; }
.fp-review-summary__details { margin-top: 8px; }
.fp-review-summary__details summary { display: list-item; min-height: 44px; padding-block: 10px; cursor: pointer; }
.fp-review-summary__details summary:focus-visible { outline: 3px solid var(--fp-blue); outline-offset: 4px; }
.fp-review-summary__details ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; margin: 0; padding-left: 20px; }
.fp-review-summary__details a { display: inline-block; min-height: 44px; padding-block: 10px; color: var(--fp-review-ink); }
.fp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.fp-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--fp-border); border-radius: 8px; background: #fff; scroll-margin-top: 16px; }
.fp-card__photo { position: relative; container-type: inline-size; display: grid; grid-template-rows: auto minmax(40px, 1fr); place-items: center; width: var(--fp-photo-frame-size); max-width: var(--fp-photo-frame-max-width); margin: 16px auto 0; overflow: hidden; border-radius: 3px; background: var(--fp-photo-background); }
/* 医薬品帯は画像と別の行に置き、文字拡大時は枠の高さを伸ばす。 */
.fp-card__photo::before { content: ""; width: 100%; aspect-ratio: 1; grid-column: 1; grid-row: 1 / 3; }
.fp-card__photo > * { grid-column: 1; }
.fp-card__photo-header { grid-row: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 4px; width: 100%; z-index: 1; }
.fp-card__booth { align-self: stretch; max-width: 100%; padding: 6px 18px; color: #fff; background: var(--fp-medicine-band-background); font-size: var(--fp-booth-label-size); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.fp-card__photo--pending { color: var(--fp-muted); font-size: var(--fp-text-size); }
.fp-card__photo--pending > span { grid-row: 2; }
.fp-card__image { grid-row: 2; position: absolute; inset: 0; width: var(--fp-photo-image-size); height: min(100%, var(--fp-photo-image-max-height)); min-height: 0; margin: auto; object-fit: contain; }
.fp-card__photo--medicine .fp-card__image { padding-block: 8px; }
.fp-card__offer-callout { grid-row: 1; justify-self: end; position: relative; max-width: calc(100% - 16px); margin: 8px 8px 0; padding: 4px 8px; border: 1px solid var(--fp-green); border-radius: 10px; color: var(--fp-green); background: #fff; font-size: var(--fp-offer-callout-size); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.fp-card__offer-callout span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.fp-card__offer-callout::after { content: ""; position: absolute; right: 18px; bottom: -5px; width: 8px; height: 8px; border-right: 1px solid var(--fp-green); border-bottom: 1px solid var(--fp-green); background: #fff; transform: rotate(45deg); }
.fp-card__offer-stage { grid-row: 2; position: relative; width: 100%; height: 100%; min-height: 0; }
.fp-card__photo--with-offer .fp-card__image { inset: 8px auto 8px 6%; width: 34%; height: calc(100% - 16px); }
.fp-card__offer-image { position: absolute; inset: 0 6% 0 auto; width: 50%; height: 75%; margin-block: auto; object-fit: contain; }
.fp-card__medicine-class { margin-left: auto; max-width: 100%; padding: 4px 10px; color: var(--fp-medicine-band-color); background: var(--fp-medicine-band-background); font-size: var(--fp-card-name-size); font-weight: 700; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.fp-card__medicine-class-part { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.fp-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px; overflow-wrap: anywhere; }
.fp-card__photo-note { margin-bottom: 10px; color: var(--fp-review-ink); font-size: var(--fp-text-size); line-height: 1.7; }
.fp-card__company { margin-bottom: 10px; color: var(--fp-muted); font-size: var(--fp-card-company-size); line-height: 1.6; line-break: strict; text-wrap: balance; }
.fp-card__company-line { display: block; }
.fp-card__name { margin-bottom: 24px; font-size: var(--fp-card-name-size); font-weight: 700; line-height: 1.6; }
.fp-card__brand, .fp-card__product { display: block; }
.fp-card__product { width: fit-content; max-width: 100%; word-break: keep-all; overflow-wrap: anywhere; }
.fp-card__company-part, .fp-card__name-part { display: inline-block; max-width: 100%; vertical-align: top; line-break: strict; overflow-wrap: anywhere; text-wrap: balance; }
.fp-card__name-part { word-break: break-all; }
.fp-card__spec { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--fp-border); min-height: 40px; font-size: var(--fp-card-spec-size); }
.fp-review-change { color: var(--fp-review-ink); }
.fp-card__review { margin-top: 10px; padding-top: 12px; border-top: 1px dashed #e3b5b7; color: var(--fp-review-ink); font-size: var(--fp-text-size); line-height: 1.7; }
.fp-card__review-label { margin-bottom: 4px; font-weight: 700; }
.fp-card__review-label span { margin-left: 4px; font-size: var(--fp-meta-size); font-weight: 400; }
.fp-card__review-links { display: flex; flex-wrap: wrap; gap: 0 12px; }
.fp-review-source { display: inline-flex; align-items: center; min-height: 44px; color: var(--fp-review-ink); }
.fp-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.fp-page-top {
  position: fixed;
  right: max(16px, calc((100vw - 1080px) / 2 + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}
.fp-page-top::before {
  content: "";
  width: 0;
  height: 0;
  border-inline: 8px solid transparent;
  border-bottom: 11px solid #fff;
  transform: translateY(-2px);
}
.fp-footer { padding: 28px 24px; border-top: 1px solid #e7dbc9; background: #fff; text-align: center; }
.fp-footer__logo { width: 140px; margin-inline: auto; }
.fp-footer__copy { display: block; margin-top: 16px; color: var(--fp-muted); font-size: var(--fp-meta-size); }
@media (max-width: 900px) {
  .fp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-hero__date { font-size: 1.125rem; }
  .fp-hero__date strong { font-size: 2.625rem; }
}
@media (max-width: 600px) {
  .fp-page { --fp-card-name-size: calc(1rem * 14 / 15); --fp-offer-callout-size: .75rem; }
  .fp-main::before { height: 500px; }
  .fp-hero { padding: 44px 14px 48px; }
  .fp-hero__eyebrow { width: 51%; }
  .fp-hero__mascot { top: 8px; right: 0; width: 14%; }
  .fp-hero__title { width: 82%; margin-block: 28px 36px; }
  .fp-hero__date { width: 100%; gap: 2px; padding: 10px 8px; font-size: var(--fp-text-size); }
  .fp-hero__date time { gap: 2px; }
  .fp-hero__date strong { font-size: 2rem; }
  .fp-hero__weekday { width: 1.625em; height: 1.625em; margin-left: 2px; line-height: 1.625em; }
  .fp-header__inner { flex-wrap: wrap; justify-content: center; gap: 12px; padding-block: 16px; }
  .fp-header__logo { width: 112px; }
  .fp-header__return { max-width: 100%; padding-inline: 10px; }
  .fp-catalog { padding-block: 28px 36px; }
  .fp-review-summary { padding: 16px; }
  .fp-review-summary__details ul { grid-template-columns: 1fr; }
  .fp-grid { gap: 18px 10px; }
  .fp-card__booth { padding-inline: 10px; }
  .fp-card__offer-callout { margin-top: 6px; padding: 3px 6px; }
  .fp-card__photo { margin: 12px auto 0; }
  .fp-card__medicine-class { padding-inline: 4px; }
  .fp-card__body { padding: 10px; }
  .fp-card__name { margin-bottom: 20px; }
  .fp-footer { padding-bottom: 80px; }
}
