/* 基本スタイル・リセット */
html {
  background-color: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}
/*汎用エリア*/
.spOnly {
	display: none;
}
.pcOnly {
	display: block;
}
.mt0 {
	margin-top: 0 !important;
}
.mt10 {
	margin-top: 10px !important;
}
.mt15 {
	margin-top: 15px !important;
}
.mt20 {
	margin-top: 20px !important;
}
.mt40 {
	margin-top: 40px !important;
}
.mt60 {
	margin-top: 60px !important;
}
.mb20{
	margin-bottom: 20px !important;
}
.mb40{
	margin-bottom: 40px !important;
}
.alignR {
	text-align: right;
}
.alignL {
	text-align: left;
}
a:hover {
	opacity: 0.7;
	cursor: pointer;
}
.flex{
	display: flex;
}
.txt_12{
  font-size: 12px;
}
.txt_14{
  font-size: 14px;
}
.txt_18{
  font-size: 18px;
}
.txt_24{
  font-size: 24px;
}
.smallfont {
    font-size: 80% !important;
    line-height: 1.8;
}
.txt_red{
	color:#E60012;
}
.txt_ucblue{
  color: #1D2088;
}
.txt_bold{
  font-weight: bold;
}
.txt_ul{
  border-bottom: solid 1px #1D2088;
}
.txt_center{
	text-align: center;
}
.txt_bold{
	font-weight: bold;
}
.sec_ttl01 {
  text-align: center;
  font-weight: bold;
  display: table;
  margin: 0 auto 60px;
}
.sec_ttl01 h1 {
  font-size: 2.1rem;
  color: #0f1350;
  padding-bottom: 16px;
  border-bottom: 1px solid #0f1350;
  font-weight: bold;
}
.sec_ttl02 h2 {
  font-size: 1.25rem;
  color: #0f1350;
  border-bottom: 2px solid #0f1350;
  font-weight: bold;
  margin: 0 0 40px;
  padding: 0 0 4px 4px;
}
.sec_ttl03 h3 {
  font-size: 1rem;
  background: #4B4E7C;
  color: #fff;
  padding: 8px 12px 6px;
  margin: 0 0 30px;
}
.sec_ttl04 h4 {
  font-size: 1rem;
  color: #0F1350;
  padding-left: 12px;
  margin: 0 0 14px;
  position: relative;
}
.sec_ttl04 h4::before {
  position: absolute;
  content: "";
  width: 4px;
  height: 90%;
  background-color: #0F1350;
  top: 0;
  bottom: 0;
  left: 0;
}
@media screen and (max-width: 767px){
	body.spNav_fixed::before {
		z-index: 150;
	}
	.spOnly {
		display: block;
	}
	.pcOnly {
		display: none;
	}
	.flex{
		display: block;
	}
  header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* SP用ヘッダーとbodyの最上部余白を0にする */
  body {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .spNav,
  .ucSpHeader2025 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
/*汎用エリアここまで*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 24px 16px;
}

/* ヘッダー */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  font-size: 2.1rem;
  color: #1a1a1a;
  font-weight: 700;
}

.page-subtitle {
  color: #333;
  margin-top: 4px;
}

.printbtn-area {
  text-align: center;
  margin-top: 28px;
}

.printbtn {
  background-color: #0F1350;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.printbtn:hover {
  background-color: #1d2b68;
}

.printbtn a{
  color: #ffffff;
  text-decoration: none;
}

.printbtn span:before {
  font-family: "Font Awesome 5 Free";
  content: '\f02f';
  font-weight: 900;
  margin-right: 10px;
}

.points-filter-btn {
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 74px;
  min-height: 78px;
  padding: 8px 4px;
  background: #fff;
  border: 0;
  border-radius: 0 0 0 10px;
  box-shadow: 0 2px 10px rgba(20, 24, 40, .16);
  font-size: 0.68rem;
  line-height: 1.35;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #374151;
}

.points-filter-btn:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.printbtn-area {
  text-align: center;
  margin-top: 28px;
}

/* フィルターパネル */
.top-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  grid-template-areas:
    "categories filter"
    "subcategories subcategories";
  align-items: start;
  gap: 9px 10px;
  margin-bottom: 20px;
}

.category-panel {
  grid-area: categories;
  padding: 8px 12px 10px;
  background: #f0f0f0;
}

.category-heading {
  margin-bottom: 7px;
  color: #10184f;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}

.category-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.sub-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.category-pill {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  max-width: 100%;
  white-space: normal;
}

.category-main.has-two-line-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  min-height: 42px;
}

.category-main.has-two-line-label .category-main-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.1;
  text-align: left;
  gap: 2px;
}

.category-main.has-two-line-label .category-line.primary,
.category-main.has-two-line-label .category-line.secondary {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.category-main::before {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.category-main.category-all { background: #5b6063; }
.category-main.category-all::before { content: ""; }
.category-main.category-premium { background: #c2af5d; }
.category-main.category-premium::before {
  content: ""; 
  display: inline-block;
  width: 32px;
  height: 13px;
  background-image: url(/uc/ucpoint/item/images/premium.png);
  background-size: contain;
  vertical-align: middle;
}
.category-pill.active {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

/* 大カテゴリは選択中もカテゴリ固有の色を維持する */
.category-main.category-all,
.category-main.category-all.active {
  background-color: #5b6063;
}

.category-main.category-premium,
.category-main.category-premium.active {
  background-color: #c2af5d;
}

.category-main.category-gourmet,
.category-main.category-gourmet.active {
  background-color: #a2a8a9;
}
.category-main.category-gourmet::before {
  content: ""; 
  display: inline-block;
  width: 21px;
  height: 17px;
  background-image: url(/uc/ucpoint/item/images/gourmet.png);
  background-size: contain;
  vertical-align: middle;
}
.category-main.category-home-kitchen,
.category-main.category-home-kitchen.active {
  background-color: #f8bf37;
}
.category-main.category-home-kitchen::before {
  content: ""; 
  display: inline-block;
  width: 25px;
  height: 22px;
  background-image: url(/uc/ucpoint/item/images/kitchen.png);
  background-size: contain;
  vertical-align: middle;
}
.category-main.category-catalog,
.category-main.category-catalog.active {
  background-color: #55b435;
}
.category-main.category-catalog::before {
  content: ""; 
  display: inline-block;
  width: 18px;
  height: 22px;
  background-image: url(/uc/ucpoint/item/images/book.png);
  background-size: contain;
  vertical-align: middle;
}

.category-main.category-uc-selection,
.category-main.category-uc-selection.active {
  background-color: #a67cb8;
}
.category-main.category-uc-selection::before {
  content: ""; 
  display: inline-block;
  width: 22px;
  height: 17px;
  background-image: url(/uc/ucpoint/item/images/selection.png);
  background-size: contain;
  vertical-align: middle;
}

/* ポイント絞り込みポップアップメニュー */
.points-wrapper {
  grid-area: filter;
  position: relative;
}

.filter-icon {
  position: relative;
  display: block;
  width: 25px;
  height: 24px;
  margin: 0 auto 4px;
  background: linear-gradient(#1d2b68, #1d2b68) 0 4px / 25px 1px no-repeat,
    linear-gradient(#1d2b68, #1d2b68) 0 12px / 25px 1px no-repeat,
    linear-gradient(#1d2b68, #1d2b68) 0 20px / 25px 1px no-repeat;
    
}

.filter-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 14px;
  width: 5px;
  height: 5px;
  border: 1px solid #1d2b68;
  border-radius: 50%;
  background: #fff;
  box-shadow: -8px 8px 0 -1px #fff, -8px 8px 0 0 #1d2b68, 7px 16px 0 -1px #fff, 7px 16px 0 0 #1d2b68;
}

.points-menu {
  position: absolute;
  right: 0;
  top: 86px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 100;
  min-width: 200px;
}

.points-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.points-option:hover {
  background-color: #f3f4f6;
}

.points-option.reset {
  color: #dc2626;
  border-top: 1px solid #f3f4f6;
}

/* 件数表示 */
.result-info {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
}

/* 2列横長カードレイアウト */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* When grouped (category sections), make the outer grid a single column
   so each category section spans full width; inner .group-grid keeps 2 columns */
.grid.grouped {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .group-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
  }

  .group-note {
    width: 100%;
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .card-image {
    width: 100%;
    min-width: 100%;
    height: 220px;
    flex: 0 0 220px;
    padding: 12px 12px 8px;
  }

  .gallery-stage {
    gap: 6px;
  }

  .gallery-thumb {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  .card-body {
    padding: 12px 14px 14px;
  }
}

/* カード要素 */
.card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 200px;
  min-width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 12px;
  flex: 0 0 200px;
  background: linear-gradient(180deg, rgba(245, 246, 250, 0.9), rgba(255, 255, 255, 0.7));
}

.gallery-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
}

.gallery-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  border-radius: 8px;
  background-color: rgba(255,255,255,0.25);
}

.gallery-main-image.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  flex-wrap: wrap;
}

.gallery-thumb {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f3f4f6;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: rgba(17, 24, 39, 0.3);
  transform: translateY(-1px);
}

.gallery-thumb.is-active {
  border-color: var(--category-color, #6b7280);
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.06);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
  border-radius: 8px;
  box-shadow: none;
  background-color: rgba(255,255,255,0.25);
}

.gallery-main-image,
.gallery-thumb img {
  background: linear-gradient(135deg, rgba(243, 244, 246, 0.8), rgba(255, 255, 255, 0.9));
}

.card-body {
  padding: 16px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #333;
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 1;
}

.card-body > .card-header,
.card-body > .product-name,
.card-body > .description,
.card-body > .spec-panel {
  display: block;
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-body .card-header {
  display: flex;
  color: #333;
}

.number-badge {
  font-size: 0.75rem;
  color: #fff;
  background-color: var(--category-color, #6b7280);
  padding: 2px 8px;
  border-radius: 4px;
}

.points-large {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--category-color, #d97706);
}

.points-label {
  font-size: 0.75rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--category-color, #111827);
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: pre-line;
}

.card-body .product-name {
  display: block;
  color: var(--category-color, #111827);
}

.description {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 12px;
  line-height: 1.6;
  display: block;
  white-space: pre-line;
  overflow: visible;
  min-height: auto;
}

.spec-panel td,
.spec-panel th,
.product-name {
  white-space: pre-line;
}

.card-body .description {
  display: block;
  color: #4b5563;
}

.spec-panel {
  margin-top: auto;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 0;
  overflow: visible;
}

/* 仕様テーブル */
.spec-panel table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem;
  table-layout: fixed;
}

.spec-panel tr + tr th,
.spec-panel tr + tr td {
  border-top: 1px solid #e5e7eb;
}

.spec-panel th,
.spec-panel td {
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spec-panel th {
  color: #6b7280;
  width: 38%;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  white-space: normal;
}

.spec-panel td {
  color: #374151;
  line-height: 1.5;
  white-space: pre-wrap;
}

.alcohol-note {
  margin-top: 8px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #6b7280;
  padding: 8px 10px;
}

.card.is-stopped {
  position: relative;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.card.is-stopped::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.46);
  z-index: 10;
}

.stopped-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.stopped-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

/* グループ化セクション */
.category-group {
  margin-bottom: 28px;
}

.sub-category-group {
  margin-bottom: 18px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 16px;
  margin-bottom: 14px;
  background-color: var(--category-color, #6b7280);
}

.group-title {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.group-note {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: left;
}

.group-note div {
  white-space: normal;
}

.sub-group-header {
  display: flex;
  align-items: center;
  margin: 8px 0 12px;
  padding-left: 12px;
  border-left: 3px solid #d1d5db;
}

.sub-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
}

.category-group.category-appliance .group-title,
.card.category-appliance .number-badge,
.card.category-appliance .points-large,
.card.category-appliance .product-name {
  color: #1d4ed8;
}

.category-group.category-beauty .group-title,
.card.category-beauty .number-badge,
.card.category-beauty .points-large,
.card.category-beauty .product-name {
  color: #be185d;
}

.category-group.category-electronics .group-title,
.card.category-electronics .number-badge,
.card.category-electronics .points-large,
.card.category-electronics .product-name {
  color: #0f766e;
}

.category-group.category-food .group-title,
.card.category-food .number-badge,
.card.category-food .points-large,
.card.category-food .product-name {
  color: #15803d;
}

.category-group.category-lifestyle .group-title,
.card.category-lifestyle .number-badge,
.card.category-lifestyle .points-large,
.card.category-lifestyle .product-name {
  color: #0ea5e9;
}

.category-group.category-sports .group-title,
.card.category-sports .number-badge,
.card.category-sports .points-large,
.card.category-sports .product-name {
  color: #d97706;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

/* Ensure cards inside groups keep horizontal layout and don't stack vertically */
.category-group .card {
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 200px;
}

/* Prevent more than 2 columns inside a group even on very wide screens */
.group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}

@media (max-width: 768px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
}

/* 該当なしメッセージ */
.empty {
  text-align: center;
  padding: 48px 0;
  color: #9ca3af;
  font-size: 1rem;
}

/* 右下固定ページ操作 */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.floating-print-button,
.back-to-top-button {
  display: block;
  border: 0;
  cursor: pointer;
}

.floating-print-button {
  width: 56px;
  height: 56px;
  padding: 0;
  background: transparent;
}

.floating-print-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.back-to-top-button {
  min-width: 72px;
  padding: 10px 12px;
  background: #ccc;
  color: #000;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

.floating-print-button:hover,
.back-to-top-button:hover {
  opacity: .78;
}

@media (max-width: 600px) {
  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .floating-print-button {
    width: 48px;
    height: 48px;
  }

  .back-to-top-button {
    min-width: 64px;
    padding: 9px 10px;
    font-size: .7rem;
  }
}

@media print {
  .floating-actions {
    display: none;
  }
}

@media (max-width: 600px) {
  .top-panel {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 8px;
  }

  .category-panel {
    padding: 7px 8px 9px;
  }

  .category-bar {
    gap: 5px;
  }

  .category-main {
    padding: 7px 8px;
    font-size: .78rem;
    text-align: center;
  }

  .points-filter-btn {
    width: 64px;
    min-height: 74px;
    font-size: .62rem;
  }

  .sub-category-bar {
    gap: 6px;
    padding-left: 0;
  }

  .category-sub {
    min-width: 70px;
    padding: 5px 10px;
    font-size: .78rem;
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .sec_ttl01 {
    display: block;
    width: 100%;
    margin-bottom: 36px;
  }

  .sec_ttl01 h1 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
    overflow-wrap: anywhere;
  }

  .page-subtitle {
    overflow-wrap: anywhere;
  }

  .card {
    flex-direction: column;
    width: 100%;
  }

  .category-group .card {
    flex-direction: column;
  }

  .card-image {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: clamp(160px, 48vw, 220px);
  }

  .card-body {
    width: 100%;
    padding: 14px;
  }

  .card-header {
    gap: 8px;
    flex-wrap: wrap;
  }

  .points-large {
    margin-left: auto;
  }

  .group-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .category-group,
  .sub-category-group,
  .group-header,
  .group-grid {
    max-width: 100%;
    min-width: 0;
  }

  .floating-actions {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}
/* 強制スタイル指定 */
header nav.pcNav {
  min-height: 76px !important;
}