/* この商品案内の内側だけに適用。既存のmmp-系・メニュー用CSSは変更しません。 */
#guricha-home-teabags,
#guricha-home-teabags * {
  box-sizing: border-box;
}

#guricha-home-teabags {
  --gtb-ink: #3f332d;
  --gtb-muted: #6e5d52;
  --gtb-green: #0f3b24;
  --gtb-line: #e5dcd2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 18px;
  gap: 10px;
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  height: 350px;
  margin: 0 auto;
  padding: 16px 20px 12px;
  border: 1px solid var(--gtb-line);
  border-radius: 12px;
  background: #f6f3f0;
  color: var(--gtb-ink);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  letter-spacing: normal;
  isolation: isolate;
  container: guricha-teabags / inline-size;
  -webkit-text-size-adjust: 100%;
}

#guricha-home-teabags [hidden] {
  display: none !important;
}

#guricha-home-teabags h2,
#guricha-home-teabags h3,
#guricha-home-teabags p,
#guricha-home-teabags ul,
#guricha-home-teabags li {
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-indent: 0;
}

#guricha-home-teabags h2::before,
#guricha-home-teabags h2::after,
#guricha-home-teabags h3::before,
#guricha-home-teabags h3::after,
#guricha-home-teabags li::before,
#guricha-home-teabags li::after {
  content: none;
}

#guricha-home-teabags .gtb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

#guricha-home-teabags .gtb-heading {
  min-width: 0;
}

#guricha-home-teabags .gtb-kicker {
  margin-bottom: 3px;
  color: var(--gtb-muted);
  font: 500 12px/18px "Zen Kaku Gothic New", sans-serif;
  letter-spacing: .06em;
}

#guricha-home-teabags .gtb-title {
  color: var(--gtb-ink);
  font-family: inherit;
  font-size: 25px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: .025em;
}

#guricha-home-teabags .gtb-lead {
  margin-left: auto;
  color: var(--gtb-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
}

#guricha-home-teabags .gtb-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

#guricha-home-teabags .gtb-nav {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #b4a599;
  border-radius: 50%;
  background: #fffdf8;
  color: var(--gtb-ink);
  box-shadow: none;
  font: inherit;
  cursor: pointer;
}

#guricha-home-teabags .gtb-nav::before,
#guricha-home-teabags .gtb-nav::after {
  content: none;
}

#guricha-home-teabags .gtb-nav svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

#guricha-home-teabags .gtb-nav:disabled {
  opacity: .35;
  cursor: default;
}

#guricha-home-teabags .gtb-viewport {
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#guricha-home-teabags .gtb-viewport::-webkit-scrollbar {
  display: none;
}

#guricha-home-teabags .gtb-list {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  height: 100%;
  list-style: none;
}

#guricha-home-teabags .gtb-item {
  display: block;
  flex: 1 0 172px;
  min-width: 0;
  height: 100%;
  list-style: none;
  scroll-snap-align: start;
}

#guricha-home-teabags .gtb-card {
  --gtb-accent: #0f3b24;
  --gtb-tint: #edf2e9;
  display: grid;
  grid-template-rows: 22px minmax(0, 1fr) 24px 18px;
  gap: 4px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px 9px 7px;
  border: 1px solid var(--gtb-line);
  border-top: 3px solid var(--gtb-accent);
  border-radius: 8px;
  background: #fff;
  color: var(--gtb-ink);
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease;
}

#guricha-home-teabags .gtb-card--nylon {
  --gtb-accent: #6e5d52;
  --gtb-tint: #f3eee8;
}

#guricha-home-teabags .gtb-card::before,
#guricha-home-teabags .gtb-card::after {
  content: none;
}

#guricha-home-teabags .gtb-material {
  display: block;
  align-self: start;
  padding: 2px 3px;
  border-radius: 4px;
  background: var(--gtb-tint);
  color: var(--gtb-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

#guricha-home-teabags .gtb-photo {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

#guricha-home-teabags .gtb-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

#guricha-home-teabags .gtb-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--gtb-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
  white-space: nowrap;
}

#guricha-home-teabags .gtb-name img {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  opacity: 1;
}

#guricha-home-teabags .gtb-amount {
  color: var(--gtb-muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

#guricha-home-teabags .gtb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gtb-muted);
  font-size: 11px;
  line-height: 18px;
}

#guricha-home-teabags .gtb-all-link {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gtb-green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  box-shadow: none;
}

#guricha-home-teabags .gtb-all-link::before,
#guricha-home-teabags .gtb-all-link::after {
  content: none;
}

#guricha-home-teabags .gtb-hint {
  white-space: nowrap;
}

#guricha-home-teabags[data-overflow="false"] .gtb-hint {
  visibility: hidden;
}

#guricha-home-teabags .gtb-all-link:focus-visible,
#guricha-home-teabags .gtb-card:focus-visible,
#guricha-home-teabags .gtb-nav:focus-visible,
#guricha-home-teabags .gtb-viewport:focus-visible {
  outline: 2px solid var(--gtb-green);
  outline-offset: -3px;
}

@media (hover: hover) {
  #guricha-home-teabags .gtb-all-link:hover {
    color: var(--gtb-ink);
    text-decoration: none;
  }

  #guricha-home-teabags .gtb-card:hover {
    border-color: var(--gtb-accent);
    background: #fffdf8;
  }

  #guricha-home-teabags .gtb-nav:not(:disabled):hover {
    background: var(--gtb-green);
    color: #fff;
  }
}

/* 狭い埋め込み欄にも対応。画面幅ではなく、この案内欄の幅を基準に調整します。 */
@container guricha-teabags (max-width: 790px) {
  #guricha-home-teabags .gtb-lead {
    display: none;
  }
}

@container guricha-teabags (max-width: 530px) {
  #guricha-home-teabags .gtb-head {
    align-items: flex-end;
    gap: 8px;
  }

  #guricha-home-teabags .gtb-title {
    font-size: 20px;
    line-height: 27px;
  }

  #guricha-home-teabags .gtb-title-part {
    display: block;
  }

  #guricha-home-teabags .gtb-kicker {
    display: none;
  }

  #guricha-home-teabags .gtb-name {
    font-size: 15px;
  }
}

/* コンテナクエリ未対応環境向けの補助 */
@media (max-width: 830px) {
  #guricha-home-teabags .gtb-lead {
    display: none;
  }
}

@media (max-width: 570px) {
  #guricha-home-teabags {
    padding-right: 14px;
    padding-left: 14px;
  }

  #guricha-home-teabags .gtb-head {
    align-items: flex-end;
    gap: 8px;
  }

  #guricha-home-teabags .gtb-title {
    font-size: 20px;
    line-height: 27px;
  }

  #guricha-home-teabags .gtb-title-part {
    display: block;
  }

  #guricha-home-teabags .gtb-kicker {
    display: none;
  }

  #guricha-home-teabags .gtb-name {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #guricha-home-teabags .gtb-card {
    transition: none;
  }
}
