/* 2026おせち専用。カテゴリ52と対象5商品以外には適用しない。 */
.osechi-early-archive,
.osechi-early-item {
  --osechi-red: #971f1e;
  --osechi-red-dark: #651311;
  --osechi-vermilion: #c73625;
  --osechi-gold: #d3aa4c;
  --osechi-gold-pale: #f5e6b5;
  --osechi-cream: #fffaf0;
  --osechi-ink: #2b1b16;
}

/* ---------- カテゴリランディング ---------- */
.osechi-early-archive #primary.osechi-landing {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
}

.osechi-early-archive #primary.osechi-landing #content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.osechi-hero {
  overflow: hidden;
  color: #fff;
  background: var(--osechi-red-dark);
  border-block: 1px solid #7e1715;
}

.osechi-hero__shell {
  display: grid;
  grid-template-columns: minmax(350px, .86fr) minmax(0, 1.14fr);
  width: min(100%, 1320px);
  height: 420px;
  margin: 0 auto;
}

.osechi-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px clamp(26px, 3.2vw, 44px);
  text-align: left;
}

.osechi-hero__year {
  margin: 0 0 10px;
  color: var(--osechi-gold-pale);
  font: 600 .78rem/1.4 var(--font-sans);
  letter-spacing: .22em;
}

.osechi-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  order: 3;
  margin: 16px 0 0;
  padding: 9px 16px;
  color: var(--osechi-red-dark);
  background: var(--osechi-gold-pale);
  border: 1px solid var(--osechi-gold);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}

.osechi-hero__badge strong {
  padding-right: 9px;
  border-right: 1px solid rgba(101, 19, 17, .35);
  font-size: 1.08rem;
}

.osechi-hero__badge--ended { color: #fff; background: rgba(38, 8, 7, .42); }

.osechi-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.6vw, 3.35rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.18;
  text-shadow: 0 2px 0 #42100d;
}

.osechi-hero__lead {
  order: 4;
  max-width: 520px;
  margin: 14px 0 0;
  color: #fff9ec;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  font-weight: 600;
  line-height: 1.9;
  text-wrap: balance;
}

.osechi-hero__delivery {
  order: 5;
  margin: 13px 0 0;
  color: #f7eaca;
  font-size: .88rem;
  font-weight: 500;
}

.osechi-hero__jump {
  order: 6;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 10px 24px;
  color: var(--osechi-red-dark) !important;
  background: #fff;
  border: 1px solid var(--osechi-gold-pale);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(39, 5, 4, .18);
}

.osechi-hero__jump:hover { text-decoration: none; transform: translateY(-1px); }

.osechi-hero__media {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
  padding: 2px;
  background: var(--osechi-gold);
}

.osechi-hero__media figure {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.osechi-hero__media figure:first-child { grid-row: 1 / -1; }

.osechi-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.osechi-products {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.osechi-products__heading,
.osechi-assurance__heading { text-align: center; }

.osechi-products__heading > p,
.osechi-assurance__heading > p {
  margin: 0 0 8px;
  color: var(--osechi-red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.osechi-products__heading h2,
.osechi-assurance__heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.45;
}

.osechi-products__heading > span {
  display: block;
  margin-top: 12px;
  color: var(--c-muted);
  font-size: .94rem;
}

.osechi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 38px;
}

.osechi-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  margin: 0;
  background: var(--c-paper);
  border: 1px solid #dfc994;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(71, 39, 23, .08);
}

.osechi-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6efe2;
}

.osechi-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.osechi-card__tier {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 42px;
  padding: 7px 13px;
  color: #fff;
  background: rgba(101, 19, 17, .93);
  border: 1px solid var(--osechi-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(32, 7, 4, .2);
}

.osechi-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.osechi-card__kicker {
  margin: 0 0 10px;
  color: var(--osechi-red);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.osechi-card h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.5; }
.osechi-card h3 a:hover { color: var(--osechi-red); text-decoration: none; }

.osechi-card__headline {
  margin: 12px 0 0;
  color: var(--osechi-ink);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.7;
}

.osechi-card__lead { margin: 8px 0 0; color: #5c5149; font-size: .9rem; line-height: 1.8; }

.osechi-card__price {
  position: relative;
  width: 100%;
  margin-top: 22px;
  padding: 16px 18px;
  background: #fff7d9;
  border: 1px solid #e7c960;
}

.osechi-card__regular {
  margin: 0;
  color: #6b6258;
  font-size: .76rem;
  line-height: 1.4;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.osechi-card__saving {
  position: absolute;
  top: -13px;
  right: 10px;
  margin: 0;
  padding: 4px 10px;
  color: #fff;
  background: var(--osechi-vermilion);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 2px 2px 0 #822019;
}

.osechi-card__current { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 4px 0 0; }
.osechi-card__current span { width: 100%; color: var(--osechi-red-dark); font-size: .72rem; font-weight: 700; }
.osechi-card__current strong { color: var(--osechi-red); font-size: clamp(1.65rem, 4vw, 2.1rem); line-height: 1.2; }
.osechi-card__current small { color: #5c5149; font-size: .72rem; }

.osechi-card__arrival {
  margin: 15px 0 0;
  color: #52463e;
  font-size: .82rem;
  font-weight: 600;
}

.osechi-card__purchase {
  width: 100%;
  margin-top: 16px;
}

.osechi-card__purchase form {
  margin: 0;
}

.osechi-card__purchase input.skubutton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  padding: 12px 18px;
  color: #fff !important;
  background: var(--osechi-red);
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
}

.osechi-card__purchase input.skubutton:hover { color: #fff; background: var(--osechi-red-dark); }
.osechi-card__purchase input.skubutton:focus-visible { outline: 3px solid var(--osechi-gold); outline-offset: 3px; }
.osechi-card__quantity-note { margin: 8px 0 0; color: #52463e; font-size: .78rem; text-align: center; }
.osechi-card__soldout { margin: 0; padding: 12px; color: #52463e; background: #eee7de; text-align: center; }
.osechi-assurance {
  padding: 68px max(20px, calc((100% - 1120px) / 2));
  background: #f1e7d6;
  border-block: 1px solid #dfcfb6;
}

.osechi-assurance__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.osechi-assurance__grid > div {
  position: relative;
  padding: 28px 24px 24px;
  background: rgba(255, 253, 250, .86);
  border-top: 2px solid var(--osechi-gold);
}

.osechi-assurance__grid span {
  position: absolute;
  top: -17px;
  left: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--osechi-red);
  border-radius: 50%;
  font-family: var(--font-serif);
}

.osechi-assurance__grid strong { display: block; color: var(--osechi-ink); font-family: var(--font-serif); font-size: 1.08rem; }
.osechi-assurance__grid p { margin: 8px 0 0; color: #5f554d; font-size: .87rem; line-height: 1.75; }

/* ---------- 対象5商品の商品ページ ---------- */
.osechi-early-item #secondary { display: none !important; }

.osechi-early-item #primary,
.osechi-early-item #content {
  float: none !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.osechi-early-item .item-header,
.osechi-early-item #itempage > .item-name,
.osechi-early-item #itempage .detail-box > .item-name { display: none !important; }

.osechi-early-item #itempage {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr) !important;
  grid-template-areas:
    "gallery purchase"
    "description description";
  align-items: start !important;
  gap: 28px 34px;
}

.osechi-early-item #itempage #img-box { grid-area: gallery; order: initial; position: sticky; top: 22px; }
.osechi-early-item #itempage .item-info { grid-area: purchase; order: initial; }
.osechi-early-item #itempage .item-description { grid-area: description; order: initial; }

.osechi-early-item #itempage #img-box .itemimg {
  max-height: 680px;
  background: #fff;
  border: 1px solid #eadfce;
  box-shadow: 0 8px 28px rgba(70, 38, 22, .08);
}

.osechi-early-item #itempage #img-box[data-hataya-gallery] .itemimg > a { aspect-ratio: 1 / 1; }
.osechi-early-item #itempage #img-box[data-hataya-gallery] .itemimg > a > img { object-fit: contain; }

.osechi-early-item #itempage .item-info > form[action$="/usces-cart/"] {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--c-paper);
  border: 1px solid #dfc994;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(71, 39, 23, .08);
}

.osechi-early-item #itempage .skuform { padding: 22px 24px; }
.osechi-early-item #itempage .skuform > .skuname { display: none; }

.osechi-offer__eyebrow {
  margin: 0 0 6px;
  color: var(--osechi-red);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .11em;
}

.osechi-offer__title {
  margin: 0;
  color: var(--osechi-ink) !important;
  font-size: clamp(1.65rem, 2.4vw, 1.9rem) !important;
  line-height: 1.42 !important;
  text-wrap: balance;
}

.osechi-offer__lead {
  margin: 9px 0 0;
  color: #4e4037;
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.8;
}

.osechi-offer__deadline {
  margin: 13px 0 0;
  padding: 9px 12px;
  color: var(--osechi-red-dark);
  background: #fff3c7;
  border: 1px solid #e6c45f;
  line-height: 1.45;
}

.osechi-offer__deadline strong { font-size: .9rem; }
.osechi-offer__deadline--ended { background: #f1ede6; border-color: #d5cdc0; color: #554d45; }

.osechi-offer__delivery {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8f3ea;
  border-left: 3px solid var(--osechi-gold);
}

.osechi-offer__delivery-label {
  padding: 3px 7px;
  color: #fff;
  background: var(--osechi-red-dark);
  font-size: .69rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.osechi-offer__delivery p { margin: 0; color: #5e5249; font-size: .82rem; line-height: 1.5; }
.osechi-offer__delivery strong { color: var(--osechi-ink); font-size: .86rem; white-space: nowrap; }

.osechi-offer__price-label {
  margin: 14px 0 -8px;
  color: var(--osechi-red-dark);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.osechi-early-item #itempage .field_price { margin: 9px 0 !important; font-size: clamp(1.7rem, 3vw, 2.05rem) !important; }

.osechi-early-active #itempage .field_price .field_cprice::before { content: "早割期間終了後価格 "; }
.osechi-early-ended #itempage .field_price .field_cprice,
.osechi-early-ended #itempage .cprice-note { display: none !important; }

.osechi-early-item #itempage .zaikostatus { margin-top: 10px; color: #675b52; font-size: .78rem; }
.osechi-early-item #itempage span.quantity { margin: 7px 0 10px; }
.osechi-early-item #itempage span.cart-button { margin-top: 8px !important; }
.osechi-early-item #itempage span.cart-button .skubutton { min-height: 54px; padding-block: 12px !important; background: var(--osechi-red) !important; font-size: 1.02rem !important; }
.osechi-early-item #itempage span.cart-button .skubutton:hover { background: var(--osechi-red-dark) !important; }

.osechi-comparison-note {
  margin: 0 28px 24px;
  color: #675d54;
  font-size: .72rem;
  line-height: 1.65;
}

.osechi-early-item #itempage .item-description { max-width: 920px !important; margin: 26px auto 0; }
.osechi-early-item #itempage .item-description > :first-child { margin-top: 0; }

@media (max-width: 980px) {
  .osechi-hero__shell { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); }
  .osechi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .osechi-early-item #itempage {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }
  .osechi-early-item #itempage #img-box { position: static; order: 1; }
  .osechi-early-item #itempage .item-info { order: 2; }
  .osechi-early-item #itempage .item-description { order: 3; }
}

@media (max-width: 680px) {
  .osechi-hero__shell { grid-template-columns: 1fr; height: auto; }
  .osechi-hero__inner { padding: 30px 22px 28px; }
  .osechi-hero__year { font-size: .82rem; }
  .osechi-hero h1 { font-size: 1.65rem; letter-spacing: .03em; line-height: 1.4; }
  .osechi-hero__badge { margin-top: 12px; padding: 8px 12px; font-size: .85rem; }
  .osechi-hero__badge strong { font-size: .92rem; }
  .osechi-hero__lead { margin-top: 12px; font-size: .95rem; line-height: 1.7; }
  .osechi-hero__delivery { font-size: .82rem; line-height: 1.65; }
  .osechi-hero__jump { min-height: 46px; margin-top: 14px; font-size: .88rem; }
  .osechi-hero__media { min-height: 300px; }
  .osechi-products { width: min(100% - 28px, 1120px); padding: 54px 0 60px; }
  .osechi-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .osechi-card__body { padding: 23px 20px; }
  .osechi-card__price { padding: 15px; }
  .osechi-assurance { padding-block: 52px; }
  .osechi-assurance__grid { grid-template-columns: 1fr; gap: 20px; background: transparent; border: 0; }
  .osechi-assurance__grid { gap: 26px; }
  .osechi-early-item #primary,
  .osechi-early-item #content { max-width: 100% !important; }
  .osechi-early-item #itempage .skuform { padding: 19px 16px; }
  .osechi-offer__eyebrow { font-size: .82rem; }
  .osechi-offer__title { font-size: 1.65rem !important; line-height: 1.45 !important; }
  .osechi-offer__lead { font-size: .9rem; }
  .osechi-offer__deadline { font-size: .88rem; }
  .osechi-comparison-note { margin: 0 18px 20px; }
  .osechi-offer__delivery { grid-template-columns: 1fr; }
  .osechi-offer__delivery p,
  .osechi-offer__delivery strong { font-size: .82rem; }
}

@media (max-width: 350px) {
  .osechi-hero__inner { padding-inline: 18px; }
  .osechi-hero__media { min-height: 270px; }
  .osechi-products { width: min(100% - 22px, 1120px); }
  .osechi-early-item #itempage .skuform { padding-inline: 14px; }
  .osechi-offer__title { font-size: 1.55rem !important; }
  .osechi-offer__delivery strong { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .osechi-hero__jump { transition: none; }
}

/* Keep price and purchase controls close together at the first view. */
.osechi-offer__deadline { flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.osechi-offer__deadline .osechi-offer__saving {
  padding: 3px 8px;
  color: #fff;
  background: var(--osechi-red);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.osechi-early-item #itempage .field_price {
  line-height: 1.25 !important;
  margin: 6px 0 !important;
}
.osechi-early-item #itempage .zaikostatus { margin-top: 4px; }
.osechi-early-item #itempage span.quantity { margin: 4px 0; }
.osechi-early-item #itempage span.cart-button { margin-top: 4px; }
@media (max-width: 680px) {
  .osechi-early-item #itempage #img-box[data-hataya-gallery] .itemimg > a {
    aspect-ratio: auto;
    height: 280px;
  }
  .osechi-offer__delivery { grid-template-columns: auto 1fr; gap: 8px; }
  .osechi-offer__delivery-label { align-self: start; }
  .osechi-offer__delivery strong { font-size: 13px; }
}
