/* Material Design inspired styles */

/* Color Palette
#007d7a
#239982
#50b482
#82cd7c
#bae475
#f9f871
*/

:root {
  --primary-color: #6200ea;
  --primary-light: #9d46ff;
  --primary-dark: #0a00b6;
  --secondary-color: #03dac6;
  --surface-color: #ffffff;
  --background-color: #f5f5f5;
  --error-color: #b00020;
  --text-primary: #333333de;
  --text-secondary: #33333399;
  --shadow-1: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-2: 0 4px 8px rgba(0,0,0,0.12);
  --shadow-3: 0 8px 16px rgba(0,0,0,0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  background-color: #f9f87120;
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-wrap {
  flex: 1;
}

/* Header */
header {
  background-color: #007D7A;
  color: #ffffff;
  box-shadow: var(--shadow-2);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding-inline: 0;
  align-items: center;
}

.nav-separator {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  user-select: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

.favorites-link {
  position: relative;
  padding-right: 14px !important;
}

.favorites-link .heart-icon {
  position: absolute;
  right: -2px;
  top: 0;
  color: #f44336;
  font-size: 12px;
  pointer-events: none;
}

/* Carousel */
.carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background-color: #232f3e;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 0 auto;
}

.carousel-slides {
  display: flex;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #37475a;
}

.carousel-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: white;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  pointer-events: none;
}

.carousel-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 1;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-content h2 {
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
  font-size: 20px;
  margin-bottom: 24px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #007D7A;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  padding: 0;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.carousel-btn:hover {
  background-color: #005f5d;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background-color: #007D7A;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background-color: #f9f871;
  transform: scale(1.2);
}

/* Main Container */
.container {
  max-width: 1248px;
  margin: 0 auto;
  margin-bottom: 0;
  padding: 24px;
  padding-top: 80px;
  padding-bottom: 0;
  min-height: calc(100vh - 200px);
}

.container-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Sections */
section {
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 32px;
  color: var(--text-primary);
  text-align: center;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .section-cta {
    margin-top: 60px;
  }
}

/* Featured Section */
.featured-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.featured-content {
  text-align: center;
  color: white;
  max-width: 600px;
}

.featured-content h3 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 16px;
}

.featured-content p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.featured-content .btn {
  background-color: white;
  color: var(--primary-color);
}

.featured-content .btn:hover {
  background-color: #f5f5f5;
  color: var(--primary-dark);
}

/* Category Section */
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.category-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.2s ease;
}

.category-card:hover {
  opacity: 0.7;
}

.category-image {
  width: 50%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
  padding: 10%;
}

.category-image[src*="icon_147181"] {
  filter: brightness(1.5) contrast(0.8);
}

.category-name {
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--text-primary);
}

/* Ranking Section */
.ranking-section .ranking-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.ranking-card {
  position: relative;
}

.rank-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rank-icon.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  font-size: 18px;
  font-weight: bold;
}

.rank-icon.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #333;
  font-size: 18px;
  font-weight: bold;
}

.rank-icon.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.rank-icon.rank-other {
  background: linear-gradient(135deg, #007d7a 0%, #239982 100%);
  color: white;
  font-size: 16px;
  font-weight: bold;
}

/* Responsive for ranking grid */
@media (max-width: 1024px) and (min-width: 768px) {
  .ranking-section .ranking-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ranking-section {
    margin-left: -24px;
    margin-right: -24px;
  }

  .ranking-section .section-title {
    margin-left: 24px;
    margin-right: 24px;
  }

  .ranking-section .ranking-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    grid-template-columns: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    padding-left: 0;
    padding-right: 24px;
    margin-left: 24px;
  }

  .ranking-section .ranking-grid::-webkit-scrollbar {
    height: 8px;
  }

  .ranking-section .ranking-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
  }

  .ranking-section .ranking-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }

  .ranking-section .ranking-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
  }

  .rank-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .rank-icon.rank-1,
  .rank-icon.rank-2,
  .rank-icon.rank-3 {
    font-size: 14px;
  }

  .rank-icon.rank-other {
    font-size: 12px;
  }
}

/* Recommended Section */
.recommended-section .product-grid {
  margin-bottom: 0;
}

/* New Arrival Section */
.new-arrival-section .product-grid {
  margin-bottom: 0;
}

/* Page Title */
.page-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 32px;
  color: var(--text-primary);
}

/* Products Layout */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  position: relative;
}

/* Filter Sidebar */
.filter-sidebar {
  background-color: var(--surface-color);
  border-radius: 8px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-1);
}

.filter-section {
  margin-bottom: 32px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.category-filter-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-btn {
  padding: 10px 16px;
  background-color: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  color: var(--text-primary);
}

.filter-btn:hover {
  background-color: #f5f5f5;
  border-color: #82cd7c;
}

.filter-btn.active {
  background-color: #239982;
  color: white;
  border-color: #239982;
}

/* Price Filter */
.price-filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.price-input::placeholder {
  font-size: 12px;
}

.price-input:focus {
  outline: none;
  border-color: #239982;
}

.price-separator {
  font-size: 14px;
  color: var(--text-secondary);
}

.filter-apply-btn {
  padding: 10px 16px;
  background-color: #239982;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-apply-btn:hover {
  background-color: #1d7f6b;
}

.filter-clear-btn {
  padding: 8px 16px;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-clear-btn:hover {
  background-color: #f5f5f5;
  color: var(--text-primary);
}

/* Products Content */
.products-content {
  width: 100%;
}

/* Mobile Filter Button */
.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background-color: #239982;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 90;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.mobile-filter-btn:hover {
  background-color: #1d7f6b;
  transform: scale(1.05);
}

/* Category Chips */
.category-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* Mobile Category Filter */
.category-filter-mobile {
  display: none;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 16px;
  background-color: var(--surface-color);
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.chip:hover {
  background-color: #82cd7c;
  color: white;
}

.chip.active {
  background-color: #239982;
  color: white;
  border-color: #239982;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-grid.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SP用の2カラム */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    min-width: unset;
  }

  /* ランキングセクションは例外とする */
  .ranking-section .ranking-grid .product-card,
  .ranking-section .ranking-grid .ranking-card,
  .ranking-section #ranking-products .product-card,
  #ranking-products .product-card,
  #ranking-products .ranking-card {
    min-width: calc(60% - 8px) !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    width: auto !important;
    max-width: calc(60% - 8px) !important;
  }

}

/* Product Card */
.product-card {
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-grid.fade-in .product-card {
  animation: fadeInCard 0.5s ease-in-out backwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.product-grid.fade-in .product-card:nth-child(1) { animation-delay: 0.05s; }
.product-grid.fade-in .product-card:nth-child(2) { animation-delay: 0.1s; }
.product-grid.fade-in .product-card:nth-child(3) { animation-delay: 0.15s; }
.product-grid.fade-in .product-card:nth-child(4) { animation-delay: 0.2s; }
.product-grid.fade-in .product-card:nth-child(5) { animation-delay: 0.25s; }
.product-grid.fade-in .product-card:nth-child(6) { animation-delay: 0.3s; }
.product-grid.fade-in .product-card:nth-child(7) { animation-delay: 0.35s; }
.product-grid.fade-in .product-card:nth-child(8) { animation-delay: 0.4s; }
.product-grid.fade-in .product-card:nth-child(9) { animation-delay: 0.05s; }
.product-grid.fade-in .product-card:nth-child(10) { animation-delay: 0.1s; }
.product-grid.fade-in .product-card:nth-child(11) { animation-delay: 0.15s; }
.product-grid.fade-in .product-card:nth-child(12) { animation-delay: 0.2s; }
.product-grid.fade-in .product-card:nth-child(13) { animation-delay: 0.25s; }
.product-grid.fade-in .product-card:nth-child(14) { animation-delay: 0.3s; }
.product-grid.fade-in .product-card:nth-child(15) { animation-delay: 0.35s; }
.product-grid.fade-in .product-card:nth-child(16) { animation-delay: 0.4s; }

.product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #f0f0f0;
  display: block;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1;
  padding: 0;
  line-height: 1;
}

.favorite-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.favorite-btn svg {
  width: 24px;
  height: 24px;
  transition: all 0.2s ease;
}

.favorite-btn:not(.active) svg {
  fill: none;
  stroke: #666;
  stroke-width: 2;
}

.favorite-btn.active svg {
  fill: #f44336;
  stroke: #f44336;
  stroke-width: 0;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 12px;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ff4081;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
}

.product-price {
  font-size: 20px;
  font-weight: 500;
  color: #0f1111;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.original-price {
  font-size: 16px;
  color: #565959;
  text-decoration: line-through;
  font-weight: 400;
}

.sale-price {
  font-size: 24px;
  color: #f44336;
  font-weight: 600;
}

.sale-badge {
  font-size: 14px;
  color: #f44336;
  font-weight: 500;
  background-color: #ffebee;
  padding: 2px 8px;
  border-radius: 4px;
}

.tax-included {
  font-size: 14px;
  font-weight: 400;
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #f44336;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-1);
}

.btn:hover {
  background-color: #d32f2f;
  box-shadow: var(--shadow-2);
}

.btn:active {
  box-shadow: var(--shadow-1);
  transform: translateY(1px);
}

.btn-full {
  width: 100%;
}

/* Text Link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  position: relative;
}

.text-link .arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #333;
  transition: width 0.3s ease;
}

.text-link:hover {
  color: #333;
}

.text-link:hover .arrow-icon {
  transform: translateX(4px);
}

.text-link:hover::after {
  width: calc(100% - 24px);
}

/* LINE Sticker Section */
.line-sticker-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--surface-color);
  padding: 80px 24px;
}

.line-sticker-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.line-sticker-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.line-sticker-content h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.line-sticker-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #239982;
  text-transform: none;
  letter-spacing: normal;
  font-size: 16px;
  padding: 14px 28px;
}

.line-btn:hover {
  background-color: #1d7f6b;
}

.line-btn .external-icon {
  width: 20px;
  height: 20px;
  stroke: white;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #239982;
  text-transform: none;
  letter-spacing: normal;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 28px;
  min-width: 200px;
}

.btn-green:hover {
  background-color: #1d7f6b;
}

.btn-green .external-icon {
  width: 20px;
  height: 20px;
  stroke: white;
}

.note-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #41c9b4;
  text-transform: none;
  letter-spacing: normal;
  font-size: 16px;
  padding: 14px 28px;
}

.note-btn:hover {
  background-color: #2fb89e;
}

.note-btn .external-icon {
  width: 20px;
  height: 20px;
  stroke: white;
}

/* note Section */
.note-section {
  margin-bottom: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--surface-color);
  padding: 80px 0;
}

.note-section .section-title,
.note-section .section-cta {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.note-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.note-card {
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.note-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #f0f0f0;
}

.note-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.note-card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-card-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: auto;
}

.line-sticker-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.line-sticker-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 600px;
}

.line-sticker-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-sticker-slide.active {
  opacity: 1;
}

.line-sticker-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* SNS Section */
.sns-section {
  margin-bottom: 80px;
}

.sns-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

.sns-grid::-webkit-scrollbar {
  height: 8px;
}

.sns-grid::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.sns-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.sns-grid::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.instagram-post {
  position: relative;
  display: block;
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 1 / 1;
  width: calc((100% - 72px) / 4);
  min-width: calc((100% - 72px) / 4);
  flex-shrink: 0;
  scroll-snap-align: start;
}

.instagram-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
  opacity: 1;
}

.instagram-post:hover img {
  filter: brightness(0.7);
}

.instagram-icon {
  width: 60px;
  height: 60px;
  color: white;
  stroke-width: 1.5;
}

/* Footer */
footer {
  background-color: #131921;
  color: #ffffff99;
  text-align: center;
  padding: 32px 24px;
  margin-top: 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* Utility Classes */
.d-n {
  display: none !important;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 48px;
  color: var(--text-secondary);
}

/* Skeleton Screen */
.ranking-section .skeleton-grid,
.ranking-section #ranking-products.skeleton-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 24px !important;
  margin-bottom: 48px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.skeleton-card {
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.skeleton-category {
  width: 60px;
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-title {
  width: 85%;
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-description {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 6px;
}

.skeleton-description:nth-child(4) {
  width: 90%;
}

.skeleton-description:nth-child(5) {
  width: 75%;
  margin-bottom: 12px;
}

.skeleton-price {
  width: 60%;
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 16px;
  margin-top: auto;
}

.skeleton-button {
  width: 100%;
  height: 42px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-rank-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 50%;
  z-index: 3;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive skeleton grid */
@media (max-width: 1024px) and (min-width: 768px) {
  .ranking-section .skeleton-grid,
  .ranking-section #ranking-products.skeleton-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .ranking-section .skeleton-grid,
  .ranking-section #ranking-products.skeleton-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    grid-template-columns: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 12px !important;
  }

  .ranking-section .skeleton-grid .skeleton-card {
    min-width: calc(65% - 8px) !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  .skeleton-rank-icon {
    width: 28px;
    height: 28px;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* Responsive */
/* タブレット: 3カラム */
@media (max-width: 1024px) and (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .filter-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: white;
    padding: 60px 24px 24px;
    border-radius: 0;
    overflow-y: auto;
  }

  .filter-sidebar.active {
    display: block;
  }

  .mobile-filter-btn {
    display: flex;
  }

  .filter-sidebar::before {
    content: '×';
    position: fixed;
    top: 16px;
    right: 24px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .category-filter-mobile {
    display: flex;
  }
  nav {
    padding: 12px 16px;
  }

  .logo {
    font-size: 20px;
  }

  .nav-links {
    gap: 8px;
    font-size: 12px;
  }

  .nav-links a {
    padding: 6px 0;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .category-filter {
    gap: 8px;
  }

  .chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  .carousel-container {
    height: 300px;
  }

  .carousel-content h2 {
    font-size: 32px;
  }

  .carousel-content p {
    font-size: 16px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .category-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    padding-bottom: 12px;
  }

  .category-card {
    min-width: 100px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .category-image {
    width: 80px;
    height: 80px;
    padding: 15%;
  }

  .category-name {
    font-size: 11px;
    margin-top: 4px;
  }

  .category-grid::-webkit-scrollbar {
    height: 6px;
  }

  .category-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
  }

  .category-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  .category-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
  }

  .featured-content h3 {
    font-size: 24px;
  }

  .featured-content p {
    font-size: 16px;
  }

  section {
    margin-bottom: 60px;
  }

  .line-sticker-section {
    padding: 60px 24px;
  }

  .line-sticker-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .line-sticker-content {
    align-items: stretch;
    text-align: center;
  }

  .line-sticker-content h2 {
    font-size: 22px;
  }

  .line-sticker-content p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .line-btn {
    width: 100%;
    justify-content: center;
  }

  .line-sticker-slider {
    height: 400px;
  }

  .sns-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    padding-bottom: 12px;
  }

  .instagram-post {
    min-width: calc(40% - 6px);
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .sns-grid::-webkit-scrollbar {
    height: 6px;
  }

  .sns-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
  }

  .sns-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  .sns-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
  }

  .note-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .note-section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 40px 12px 0;
  }

  .carousel-container {
    height: 250px;
  }

  .carousel-content h2 {
    font-size: 24px;
  }

  .carousel-content p {
    font-size: 14px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .product-description {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .product-category {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .product-price {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .sale-price {
    font-size: 18px;
  }

  .original-price {
    font-size: 14px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 12px;
  }


  .page-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .category-name {
    font-size: 12px;
  }

  .line-sticker-section {
    padding: 48px 16px;
  }

  .line-sticker-content h2 {
    font-size: 18px;
  }

  .line-sticker-content p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .line-sticker-slider {
    height: 300px;
  }

  .note-section {
    padding: 40px 0;
  }
}

/* Instagram Auto Section */
.instagram-auto-section {
  margin-bottom: 80px;
}

.instagram-auto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .instagram-auto-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.instagram-auto-post {
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.instagram-auto-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.instagram-auto-post img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.instagram-auto-post-caption {
  padding: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Falling Leaves Effect */
.falling-leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.falling-leaf {
  position: absolute;
  top: -50px;
  animation: fall linear infinite;
  opacity: 0.8;
  user-select: none;
}

@keyframes fall {
  0% {
    top: -50px;
    transform: rotate(0deg) translateX(0);
  }
  25% {
    transform: rotate(90deg) translateX(30px);
  }
  50% {
    transform: rotate(180deg) translateX(-30px);
  }
  75% {
    transform: rotate(270deg) translateX(20px);
  }
  100% {
    top: 100vh;
    transform: rotate(360deg) translateX(0);
  }
}
