:root {
  --primary: #D14820;
  --primary-dark: #B83D18;
  --primary-light: #FFF4F0;
  --text: #1A1A1A;
  --text-secondary: #505050;
  --text-muted: #707070;
  --border: #E8E8E8;
  --bg: #FAFAFA;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 32px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 40px;
  }
}

/* ========================================
   Ã¥â€¦Â±Ã©â‚¬Å¡Ã£Æ’ËœÃ£Æ’Æ’Ã£Æ’â‚¬Ã£Æ’Â¼
======================================== */
header {
  padding: 24px 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  /*gap: 8px;*/
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.logo span {
  color: var(--primary);
}

.tagline {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  header {
    padding: 32px 0 24px;
  }
  
  .logo {
    font-size: 2rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }

  .tagline {
    font-size: 0.9rem;
  }
}

/* ========================================
   Ã£â€šÂµÃ£Æ’â€“Ã£Æ’Å¡Ã£Æ’Â¼Ã£â€šÂ¸Ã§â€Â¨Ã£Æ’ËœÃ£Æ’Æ’Ã£Æ’â‚¬Ã£Æ’Â¼Ã¯Â¼Ë†privacy, termsÃ¯Â¼â€°
======================================== */
.subpage .container {
  max-width: 720px;
}

.subpage header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

/* ========================================
   Ã£â€šÂµÃ£Æ’â€“Ã£Æ’Å¡Ã£Æ’Â¼Ã£â€šÂ¸Ã§â€Â¨Ã£â€šÂ³Ã£Æ’Â³Ã£Æ’â€ Ã£Æ’Â³Ã£Æ’â€žÃ¯Â¼Ë†privacy, termsÃ¯Â¼â€°
======================================== */
.subpage body {
  line-height: 1.8;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.content {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .content {
    padding: 32px;
  }
}

.section {
  margin-bottom: 32px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.section p:last-child {
  margin-bottom: 0;
}

.section ul {
  margin: 12px 0;
  padding-left: 20px;
}

.section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.section li:last-child {
  margin-bottom: 0;
}

.note-box {
  margin: 16px 0;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.note-box p {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.note-box p:last-child {
  margin-bottom: 0;
}

.contact-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-light);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-info:hover {
  opacity: 0.8;
}

.contact-info svg {
  width: 18px;
  height: 18px;
}

/* ========================================
   Ã¦Â¤Å“Ã§Â´Â¢Ã£Æ’Å“Ã£Æ’Æ’Ã£â€šÂ¯Ã£â€šÂ¹
======================================== */
.search-box {
  margin: 16px 0;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .search-input {
    padding: 14px 44px 14px 48px;
    font-size: 1rem;
  }
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear.show {
  display: flex;
}

.search-clear svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.search-clear:hover svg {
  color: var(--text);
}

/* ========================================
   ã‚«ãƒ†ã‚´ãƒª
======================================== */
.category-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.selected-count {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.category-scroll {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.category-scroll:active {
  cursor: grabbing;
}

.category-scroll.dragging {
  scroll-behavior: auto;
}

.category-scroll::-webkit-scrollbar { height: 6px; }
.category-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.category-scroll::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
.category-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

.category-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

@media (min-width: 768px) {
  .scroll-btn {
    display: flex;
  }
}

.scroll-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.scroll-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.scroll-btn:disabled:hover {
  border-color: var(--border);
  background: var(--white);
}

.scroll-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.scroll-btn:hover svg {
  color: var(--primary);
}

.category-chip {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-chip svg {
  width: 14px;
  height: 14px;
}

.category-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.category-chip:not(.active):hover {
  border-color: var(--text-muted);
}

/* ========================================
   Ã£Æ’â€¢Ã£â€šÂ£Ã£Æ’Â«Ã£â€šÂ¿Ã£Æ’Â¼Ã£Æ’â€˜Ã£Æ’ÂÃ£Æ’Â«
======================================== */
.filter-panel {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .filter-panel {
    padding: 24px;
  }
  
  .filter-sliders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .filter-sliders .slider-section {
    margin-bottom: 0;
  }
}

/* ========================================
   Ã£â€šÂ¹Ã£Æ’Â©Ã£â€šÂ¤Ã£Æ’â‚¬Ã£Æ’Â¼
======================================== */
.slider-section {
  margin-bottom: 24px;
}

.slider-section:last-of-type {
  margin-bottom: 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slider-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.range-slider {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
}

.range-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.range-fill {
  position: absolute;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.range-input {
  position: absolute;
  width: 100%;
  height: 44px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  cursor: pointer;
  pointer-events: auto;
  transition: box-shadow 0.2s;
}

.range-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  cursor: pointer;
}

.range-input::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 8px rgba(209, 72, 32, 0.15);
}

.range-input::-moz-range-thumb:hover {
  box-shadow: 0 0 0 8px rgba(209, 72, 32, 0.15);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.slider-mark {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ========================================
   Ã£Æ’Â¬Ã£Æ’â„¢Ã£Æ’Â«Ã£â€šÂ¤Ã£Æ’Â³Ã£â€šÂ¸Ã£â€šÂ±Ã£Æ’Â¼Ã£â€šÂ¿Ã£Æ’Â¼
======================================== */
.level-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--primary-light);
  border-radius: 8px;
}

.level-indicator svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.level-text {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* ========================================
   Ã£â€šÂ½Ã£Æ’Â¼Ã£Æ’Ë†Ã£Æ’Å“Ã£â€šÂ¿Ã£Æ’Â³
======================================== */
.sort-section {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.sort-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

@media (min-width: 768px) {
  .sort-section {
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }
  
  .sort-btn {
    flex: none;
    padding: 10px 24px;
  }
}

/* ========================================
   Ã§ÂµÂÃ¦Å¾Å“Ã£Æ’ËœÃ£Æ’Æ’Ã£Æ’â‚¬Ã£Æ’Â¼
======================================== */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 12px;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 10px;
}

.results-count span {
  color: var(--text);
  font-weight: 600;
}

/* ========================================
   Ã¨Â¡Â¨Ã§Â¤ÂºÃ¥Ë†â€¡Ã£â€šÅ Ã¦â€ºÂ¿Ã£ÂË†
======================================== */
.view-toggle {
  display: flex;
  gap: 2px;
  background: var(--border);
  padding: 3px;
  border-radius: 8px;
}

.view-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.view-btn.active {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.view-btn.active svg {
  color: var(--text);
}

/* ========================================
   Ã¥â€¢â€ Ã¥â€œÂ - Ã£Æ’ÂªÃ£â€šÂ¹Ã£Æ’Ë†Ã¨Â¡Â¨Ã§Â¤Âº
======================================== */
.products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  overflow: hidden;
}

.products.grid-view {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

@media (min-width: 768px) {
  .products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .products.grid-view {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
}

@media (min-width: 1024px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .products.grid-view {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (min-width: 1440px) {
  .products {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .products.grid-view {
    grid-template-columns: repeat(9, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 5px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.products.grid-view .product-card {
  padding: 0;
  flex-direction: column;
  overflow: hidden;
}

.product-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .product-card {
    padding: 12px;
    gap: 6px;
  }
  
  .product-img {
    width: 100px;
    height: 100px;
  }
}

.products.grid-view .product-img {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 0;
}

.products.grid-view .product-img img {
  position: absolute;
  top: 0;
  left: 0;
}

.discount-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  background: var(--primary);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--white);
}

.product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products.grid-view .product-info {
  padding: 0 4px 4px;
}

.product-title {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.products.grid-view .product-title {
  display: none;
}

.product-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  overflow: hidden;
  padding: 0 5px;
}

.products.grid-view .product-meta {
  margin-top: 0;
  flex-direction: baseline;
  /*gap: 2px;*/
}

.price-now {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.products.grid-view .price-now {
  font-size: 0.75rem;
}

.price-original {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.products.grid-view .price-original {
  font-size: 0.55rem;
}

/* ========================================
   Ã¥â€¢â€ Ã¥â€œÂÃ£â€šÂ«Ã£Æ’Â¼Ã£Æ’â€°Ã©ÂÅ¾Ã¨Â¡Â¨Ã§Â¤Âº
======================================== */
.product-card.hidden {
  display: none;
}

/* ========================================
   Ã£â€šâ€šÃ£ÂÂ£Ã£ÂÂ¨Ã¨Â¦â€¹Ã£â€šâ€¹Ã£Æ’Å“Ã£â€šÂ¿Ã£Æ’Â³
======================================== */
.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  margin: 50px auto 0;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.load-more-btn svg {
  width: 16px;
  height: 16px;
}

.load-more-btn.hidden {
  display: none;
}

/* ========================================
   Ã£Æ’â€¢Ã£Æ’Æ’Ã£â€šÂ¿Ã£Æ’Â¼
======================================== */
.footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.footer-logo span {
  color: var(--primary);
}

.footer-desc {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.footer-notice {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-divider {
  color: var(--border);
  font-size: 0.75rem;
}

.footer-copyright {
  margin-top: 20px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Ã£â€šÂµÃ£Æ’â€“Ã£Æ’Å¡Ã£Æ’Â¼Ã£â€šÂ¸Ã§â€Â¨Ã£Æ’â€¢Ã£Æ’Æ’Ã£â€šÂ¿Ã£Æ’Â¼Ã¯Â¼Ë†Ã£â€šÂ·Ã£Æ’Â³Ã£Æ’â€”Ã£Æ’Â«Ã§â€°Ë†Ã¯Â¼â€° */
.subpage .footer {
  margin-top: 48px;
  padding: 24px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer {
    margin-top: 50px;
    padding: 40px 0;
  }
  
  .footer-desc {
    max-width: 480px;
  }
}
/* ========================================
   ã‚¹ã‚±ãƒ«ãƒˆãƒ³ãƒ­ãƒ¼ãƒ€ãƒ¼ & ã‚¢ãƒ‹ãƒ¡ãƒ¼ã‚·ãƒ§ãƒ³
======================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.product-card.skeleton {
  pointer-events: none;
}

.skeleton-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.2s infinite;
  flex-shrink: 0;
}

.skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.2s infinite;
}

.skeleton-line.short {
  width: 60%;
}

.products.grid-view .product-card.skeleton {
  padding: 0;
  flex-direction: column;
}

.products.grid-view .skeleton-img {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 0;
}

.products.grid-view .skeleton-info {
  padding: 4px;
}

.products.grid-view .skeleton-line {
  height: 10px;
}