/* Portal (top selection) & Shop EC */
.portal-hero {
  position: relative;
  min-height: clamp(620px, 86vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.portal-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
}

.portal-hero__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: portalFade 24s ease-in-out infinite;
}

.portal-hero__slide:nth-child(1) {
  opacity: 1;
  animation-name: portalFadeFirst;
  animation-delay: 0s;
}

@keyframes portalFadeFirst {
  0%,
  27.33% { opacity: 1; }
  36.33%,
  91% { opacity: 0; }
  100% { opacity: 1; }
}

.portal-hero__slide:nth-child(2) {
  animation-delay: 8s;
}

.portal-hero__slide:nth-child(3) {
  animation-delay: 16s;
}

@keyframes portalFade {
  0% { opacity: 0; }
  4.5% { opacity: 1; }
  27.33% { opacity: 1; }
  36.33% { opacity: 0; }
  100% { opacity: 0; }
}

.portal-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(18, 32, 51, 0.52) 0%,
    rgba(18, 32, 51, 0.46) 42%,
    rgba(18, 32, 51, 0.74) 100%
  );
}

.portal-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--white);
}

.portal-brand {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 22px rgba(8, 14, 24, 0.45);
  animation: fadeUp 0.9s var(--ease) both;
}

.portal-brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.28em;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold-pale);
  margin-top: 0.65rem;
}

.portal-catch {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.16em;
  opacity: 0.92;
  margin-bottom: 2.75rem;
  line-height: 1.9;
  text-shadow: 0 2px 16px rgba(8, 14, 24, 0.4);
  animation: fadeUp 0.9s var(--ease) 0.12s both;
}

.portal-choices {
  display: grid;
  gap: 1.25rem;
  animation: fadeUp 0.9s var(--ease) 0.24s both;
}

.portal-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: var(--white);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
  min-height: 200px;
}

.portal-choice:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold-light);
  transform: translateY(-4px);
}

.portal-choice__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-pale);
  margin-bottom: 0.75rem;
}

.portal-choice__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.portal-choice__desc {
  font-size: 13px;
  line-height: 1.75;
  opacity: 0.85;
  flex: 1;
  margin-bottom: 1.25rem;
}

.portal-choice__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-pale);
}

.portal-choice__cta::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}

.portal-choice:hover .portal-choice__cta::after {
  transform: translateX(4px);
}

.service-intro {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.9) 0%, rgba(255, 255, 255, 0.84) 42%, rgba(255, 252, 247, 0.92) 100%),
    url('../images/portal-divider.jpg') center 35% / cover no-repeat;
  padding: 4.75rem 1.5rem 4.25rem;
  color: #3d3a36;
}

.service-intro__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.service-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.75;
  color: #2e2c29;
  margin-bottom: 1.35rem;
}

.service-intro__line {
  display: block;
}

.service-intro__sp-br,
.service-intro__narrow-br {
  display: none;
}

.service-intro .phrase {
  display: inline-block;
  max-width: 100%;
}

.service-intro__close .phrase {
  white-space: nowrap;
}

.pc-break {
  display: none;
}

.service-intro__lead {
  max-width: 46rem;
  margin: 0 auto 1rem;
  font-size: 14px;
  line-height: 2.05;
  color: #5e5a54;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: balance;
}

.service-cards {
  display: grid;
  gap: 1.15rem;
  margin-top: 2.6rem;
  text-align: left;
}

.service-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(48, 42, 32, 0.07);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.service-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-card__staff {
  object-position: center 42%;
}

.service-card img.service-card__logo {
  object-fit: contain;
  background: #fff;
}

@media (hover: hover) {
  .service-card img {
    transition: transform 0.8s var(--ease);
  }

  .service-card:hover img {
    transform: scale(1.045);
  }
}

.service-card__visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  height: 188px;
  padding: 1.15rem 1.2rem;
  background:
    linear-gradient(165deg, rgba(42, 69, 102, 0.35), rgba(18, 32, 51, 0.88)),
    var(--navy-deep);
  color: var(--white);
}

.service-card__visual span {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-pale);
}

.service-card__visual strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.service-card__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.05rem 0.85rem;
  margin: 0.1rem 0 0.35rem;
  padding: 0;
  list-style: none;
  color: #5e5a54;
  font-size: 13px;
  line-height: 1.8;
}

.service-card__points li {
  position: relative;
  padding-left: 0.85rem;
  white-space: nowrap;
}

.service-card__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 1px;
  background: var(--gold);
}

.service-cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.service-cards .reveal:nth-child(3) { transition-delay: 0.16s; }
.service-cards .reveal:nth-child(4) { transition-delay: 0.24s; }
.service-cards .reveal:nth-child(5) { transition-delay: 0.32s; }
.service-cards .reveal:nth-child(6) { transition-delay: 0.4s; }

.service-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  color: #2e2c29;
  margin-bottom: 0.65rem;
}

.service-card__break {
  display: none;
}

.service-card p {
  font-size: 13px;
  line-height: 1.9;
  color: #5e5a54;
  margin-bottom: 0.45rem;
}

.service-card__more {
  margin: auto 0 0;
  padding-top: 0.85rem;
  font-size: 13px;
}

.service-card__more a {
  color: #2e2c29;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.25s var(--ease);
}

.service-card__more a:hover {
  color: var(--gold);
}

.day-slots {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 14px;
  text-align: left;
}

.service-intro__close {
  max-width: 46rem;
  margin: 2.85rem auto 0;
}

.service-intro__close h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  letter-spacing: 0.08em;
  color: #2e2c29;
  margin-bottom: 0.9rem;
}

.service-intro__close p {
  font-size: 14px;
  line-height: 2.05;
  color: #5e5a54;
  margin-bottom: 1rem;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: balance;
}

.service-intro__lead:last-of-type,
.service-intro__close p:last-child {
  margin-bottom: 0;
}

/* Shop */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 13px;
  color: var(--gray-600);
}

.shop-sort select {
  font: inherit;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: #fff;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-filter {
  padding: 0.45rem 1rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-600);
  background: var(--white);
  transition: all 0.2s var(--ease);
}

.shop-filter.is-active,
.shop-filter:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

#category,
#ranking,
#products {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.product-grid__more {
  height: 1px;
  grid-column: 1 / -1;
}

.product-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease);
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card__img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transition: none;
}

.product-card:hover .product-card__img img {
  transform: none;
}

.product-card__body {
  padding: 1.05rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
  min-width: 0;
}

.product-card__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.6;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.product-card__price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-top: auto;
  padding-top: 0.35rem;
}

.product-card__price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
}

.product-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-card__actions .btn {
  flex: 1;
  padding: 0.65rem 0.75rem;
  font-size: 12px;
}

/* Product detail */
.product-detail {
  display: grid;
  gap: 2rem;
  align-items: start;
}

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

.product-detail__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  /* 枠の中に画像全体を収める（切り取らない・小さい画像は拡大しない） */
  object-fit: scale-down;
  object-position: center;
  cursor: zoom-in;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-gallery__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.product-gallery__thumb.is-on {
  border-color: var(--navy);
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
  background: rgba(18, 22, 28, 0.9);
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox img {
  width: auto;
  height: auto;
  max-width: min(920px, 100%);
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  object-fit: contain;
  background: #fff;
}

.product-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .product-gallery__thumb {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
}

.product-detail__info h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1.45;
  margin: 0.5rem 0 1rem;
  overflow-wrap: anywhere;
}

.product-detail__price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.product-detail__price-kicker {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--gray-600);
}

.product-detail__ex-tax {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  margin: -0.85rem 0 1.25rem;
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.product-detail__ex-tax.product-detail__breakdown {
  display: grid;
  gap: 0.2rem;
}

.product-detail__media .product-intro {
  margin-top: 1.35rem;
}

.product-detail__media .product-intro h2 {
  margin-bottom: 0.65rem;
}

.product-detail__price small {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gray-600);
}

.product-specs {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  font-size: 14px;
}

.product-specs div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--gray-200, #e6e2dc);
}

.product-specs dt {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.product-specs dd {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.product-block {
  margin: 1.75rem 0 0;
}

.product-block h2 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--gold-pale);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.product-intro p {
  margin: 0 0 0.9rem;
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.product-intro p:last-child {
  margin-bottom: 0;
}

.product-set,
.product-set__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-set {
  display: grid;
  gap: 0.9rem;
}

.product-set__label {
  margin: 0 0 0.25rem;
  color: var(--gray-600);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.product-set__value {
  margin: 0;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.product-set__items {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.15rem;
}

.product-set__items li {
  position: relative;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.product-set__items li::before {
  content: '・';
  position: absolute;
  left: -1.15rem;
  color: var(--gold);
}

.product-note,
.product-detail__back,
.product-detail__note {
  color: var(--gray-600);
  line-height: 1.7;
}

.product-note {
  margin: 0.55rem 0 0;
  font-size: 13px;
}

.product-detail__back {
  margin: 1.5rem 0 1.25rem;
  font-size: 13px;
}

.product-detail__back a {
  color: var(--navy);
  text-decoration: underline;
}

.product-detail__note {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--gray-400);
}

@media (max-width: 767px) {
  .product-specs div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .product-specs dt {
    white-space: nowrap;
  }

  .product-block {
    margin-top: 1.45rem;
  }

  .product-intro p {
    font-size: 14px;
    line-height: 1.9;
  }
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.qty-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.qty-row input {
  width: 80px;
  padding: 0.65rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
  font-size: 14px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
}

.cart-item__name {
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.cart-summary {
  max-width: 360px;
  margin-left: auto;
  background: var(--off-white);
  padding: 1.5rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 14px;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-600);
}

.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 150;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Category section */
.cat-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.cat-heading__en {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.cat-heading__ja {
  font-size: 14px;
  color: var(--gray-600);
  letter-spacing: 0.08em;
}

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-inline: auto;
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc((100% - 0.75rem) / 2);
  width: calc((100% - 0.75rem) / 2);
  min-height: 168px;
  height: auto;
  padding: 1rem 0.7rem;
  background-color: var(--navy-deep);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
  overflow: hidden;
  border-radius: 6px;
}

.cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 51, 0.55);
  transition: background 0.25s var(--ease);
}

.cat-tile:hover {
  transform: none;
}

.cat-tile:hover::before {
  background: rgba(18, 32, 51, 0.42);
}

.cat-tile__name,
.cat-tile__price {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.cat-tile__name {
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cat-tile__price {
  margin-top: 0.4rem;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #fff;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Ranking */
.rank-section {
  background: var(--white);
}

.rank-head {
  text-align: center;
  margin-bottom: 2rem;
}

.rank-head__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.rank-head__sub {
  margin-top: 0.4rem;
  font-size: 13px;
  color: var(--gray-600);
  letter-spacing: 0.06em;
}

.rank-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 0.9rem;
}

.rank-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 47, 74, 0.06);
  transition: box-shadow 0.25s var(--ease);
}

.rank-card:hover {
  opacity: 1;
  box-shadow: 0 12px 28px rgba(26, 47, 74, 0.1);
}

.rank-card__img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--off-white);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.rank-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(18, 32, 51, 0.18);
}

.rank-badge--1 { background: var(--gold); }
.rank-badge--2 { background: #8a8680; }
.rank-badge--3 { background: #b8956a; }
.rank-badge--4,
.rank-badge--5 { background: var(--navy); }

.rank-card__brand {
  padding: 0 0.8rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.rank-card__name {
  padding: 0 0.8rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  line-height: 1.55;
  margin-bottom: 0.35rem;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.rank-card__price {
  padding: 0 0.8rem 0.95rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-top: auto;
}

.rank-more {
  text-align: right;
  margin-top: 1.5rem;
}

.rank-more a {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.rank-more a:hover {
  color: var(--gold);
}

.checkout-block-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin: 0.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.checkout-block-title:not(:first-of-type) {
  margin-top: 1.75rem;
}

.checkout-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.75rem 0 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.checkout-same {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
}

.checkout-same input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.form-wrap--wide {
  max-width: 720px;
}

.ship-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.ship-hint {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.ship-quote {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.7;
}

.ship-quote.is-error {
  color: #9b2c2c;
  font-weight: 700;
}

.ship-parcel {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--gray-200);
}

.ship-alloc {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
  padding: 0.65rem 0.85rem;
  background: var(--off-white);
  border-radius: var(--radius);
}

.ship-alloc .is-ok {
  color: #2e7d4f;
}

.ship-alloc .is-ng,
.ship-alloc.is-error {
  color: var(--red, #c0392b);
}

.ship-card {
  border: 1px solid var(--gray-200);
  padding: 1.25rem 1.15rem;
  margin-bottom: 1rem;
  background: #fff;
}

.ship-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ship-card__head h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.ship-card__head .btn {
  padding: 0.4rem 0.85rem;
  font-size: 12px;
}

.ship-qty-box {
  margin-top: 0.5rem;
  padding: 0.85rem;
  background: var(--off-white);
  border-radius: var(--radius);
}

.ship-qty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.ship-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
}

.ship-qty-row:last-child {
  border-bottom: none;
}

.ship-qty-name small {
  display: block;
  color: var(--gray-400);
  font-size: 11px;
  margin-top: 2px;
}

.ship-qty-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  color: var(--gray-600);
  white-space: nowrap;
}

.ship-qty-row input {
  width: 72px;
  padding: 0.45rem;
  text-align: center;
}

.purpose-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.purpose-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
}

.purpose-item:hover {
  border-color: var(--gold);
  background: var(--off-white);
}

.purpose-item:has(input:checked) {
  border-color: var(--navy);
  background: rgba(26, 47, 74, 0.04);
}

.purpose-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.purpose-error {
  font-size: 13px;
  color: var(--red, #c0392b);
  margin: 0.5rem 0 1rem;
}

.ship-purpose {
  margin-bottom: 1.15rem;
  padding: 0.85rem;
  background: var(--off-white);
  border-radius: var(--radius);
}

.ship-purpose .purpose-list {
  margin-bottom: 0;
}

.ship-purpose .purpose-item {
  background: #fff;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
}

.choice-item:hover {
  border-color: var(--gold);
  background: var(--off-white);
}

.choice-item:has(input:checked) {
  border-color: var(--navy);
  background: rgba(26, 47, 74, 0.04);
}

.choice-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.noshi-sample {
  margin: 0 0 1.75rem;
  padding: 1rem;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.noshi-sample__cap {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.noshi-sample__link {
  display: block;
  max-width: 320px;
  margin: 0 auto;
}

.noshi-sample__link img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 28px rgba(26, 47, 74, 0.12);
  background: #fff;
}

.noshi-sample__note {
  margin-top: 0.85rem;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.75;
  letter-spacing: 0.03em;
}

.noshi-sample__note a {
  color: var(--navy);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .noshi-sample__link {
    max-width: 380px;
  }
}

.noshi-sample-link-wrap {
  margin: 0 0 1.5rem;
  text-align: center;
}

.noshi-sample-link-wrap .btn {
  min-width: 220px;
}

.square-card-frame {
  position: relative;
}

.square-card {
  position: relative;
  z-index: 1;
  min-height: 96px;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.payment-choice__item {
  flex-wrap: wrap;
}

.card-brands {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  max-width: 100%;
  margin: 0.15rem 0 0;
  line-height: 0;
  font-size: 0;
}

.card-brand {
  display: flex;
  flex: 1 1 88px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 56px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 8px 10px;
  line-height: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
}

.card-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .card-brands {
    gap: 6px;
  }

  .card-brand {
    flex-basis: calc(33.333% - 6px);
    height: 52px;
    padding: 7px 8px;
  }

  .card-brand img {
    max-height: 32px;
  }
}

#square-back {
  margin-top: 0.75rem;
}

#square-pay {
  position: relative;
  z-index: 2;
}

#square-pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Bank transfer */
.payment-choice {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.payment-choice__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
}

.payment-choice__item:has(input:checked) {
  border-color: var(--navy);
  background: var(--off-white);
}

.payment-choice__item input {
  margin-top: 0.2rem;
}

.payment-choice__body {
  min-width: 0;
}

.payment-choice__body strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.payment-choice__body span {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.6;
}

.bank-box {
  text-align: left;
  margin: 1.5rem 0 2rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--gray-200);
  background: var(--off-white);
}

.bank-box__lead,
.bank-box__amount,
.bank-box__id {
  font-size: 14px;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.bank-box__amount strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.bank-box__id span {
  font-size: 12px;
  color: var(--gray-600);
}

.bank-box__dl {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.bank-box__dl > div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 0.5rem;
  font-size: 13px;
}

.bank-box__dl dt {
  color: var(--gray-600);
  font-weight: 500;
}

.bank-box__dl dd {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bank-box__summary {
  display: grid;
  gap: 0.35rem;
  margin: 0.85rem 0 0.15rem;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid var(--gray-200);
}

.bank-box__summary .bank-box__id,
.bank-box__summary .bank-box__amount {
  margin-bottom: 0;
}

.bank-box__account {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.bank-box__ship {
  margin-top: 0.85rem;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.75;
}

.bank-box__shot {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray-800);
}

@media (max-width: 767px) {
  .bank-box {
    margin: 1rem 0 1.5rem;
    padding: 1rem 0.85rem;
  }

  .bank-box__dl > div {
    grid-template-columns: 5.25em 1fr;
    font-size: 15px;
  }

  .bank-box__shot,
  .bank-box__ship {
    font-size: 14px;
  }
}

.ship-zip-hint {
  margin-top: 0.4rem;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}

.ship-zip-hint.is-error {
  color: var(--red);
}

.checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  font-size: 13px;
  color: var(--gray-800);
  line-height: 1.6;
  cursor: pointer;
}

.checkout-terms input {
  margin-top: 0.2rem;
}

.checkout-terms a {
  color: var(--navy);
  text-decoration: underline;
}

.optional-tag {
  display: inline-block;
  background: var(--gray-400);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  margin-left: 8px;
  vertical-align: middle;
}

.form-control.is-invalid {
  border-color: var(--red);
  background: #fff8f7;
}

.form-control:read-only,
.form-control:disabled {
  background: var(--off-white);
  color: var(--gray-800);
}

.field-error {
  margin-top: 0.35rem;
  font-size: 12px;
  color: var(--red);
  line-height: 1.5;
}

.form-errors {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #fff8f7;
  border: 1px solid #e7c5c0;
  color: var(--red);
  font-size: 13px;
  line-height: 1.7;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.15rem;
}

.zip-picks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 220px;
  margin-top: 0.45rem;
  overflow-y: auto;
}

.zip-pick {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.zip-pick:hover {
  border-color: var(--navy);
}

.assign-card {
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 1rem 1.05rem 0.9rem;
  margin-bottom: 0.85rem;
}

.assign-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.6;
}

.assign-card__head span {
  color: var(--gray-600);
  font-size: 13px;
}

.assign-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 0.55rem;
}

.assign-qty {
  display: block;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
}

.assign-qty input {
  margin-top: 0.3rem;
  text-align: center;
}

.assign-status {
  margin: 0.2rem 0 0.55rem;
  font-size: 12px;
  line-height: 1.5;
}

.assign-status.is-ok {
  color: #2e7d4f;
}

.assign-status.is-ng {
  color: var(--red);
}

.assign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.assign-card .assign-actions {
  display: none;
}

.checkout-mini {
  padding: 0.55rem 0.85rem;
  font-size: 12px;
}

#dest-add {
  margin-top: 0.25rem;
}

.ship-card,
.assign-card,
.confirm-block,
.form-errors,
.zip-pick {
  overflow-wrap: anywhere;
}

.confirm-block {
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.confirm-block h4 {
  margin-bottom: 0.45rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.confirm-block p,
.confirm-block li {
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.75;
}

.confirm-block ul {
  margin: 0;
  padding-left: 1.15rem;
}

.confirm-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  color: var(--navy);
  font-weight: 700;
}

#confirm-back {
  margin-top: 0.25rem;
}

@media (max-width: 767px) {
  #checkout-form .form-control,
  #checkout-confirm .form-control {
    font-size: 16px;
  }

  .assign-row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .assign-row .checkout-mini,
  #dest-add,
  .checkout-mini {
    width: 100%;
  }

  .ship-card {
    padding: 1rem 0.85rem;
  }
}


/* 本物の写真が無い商品の「画像準備中」タイル（拡大表示はしない） */
.product-detail__img img.product-gallery__nophoto {
  cursor: default;
}

/* 返礼品一覧の商品検索 */
.shop-search {
  position: relative;
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
  margin: 1rem 0 0.9rem;
}

.shop-search input[type='search'] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 2.4rem 0.75rem 0.9rem;
  border: 1px solid var(--gray-200, #ddd);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.shop-search__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.shop-search__clear {
  position: absolute;
  top: 50%;
  right: calc(5.2rem);
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6b6860;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.shop-search__clear[hidden] {
  display: none;
}

.shop-search-empty {
  line-height: 1.8;
}

.shop-search input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}
