/* Rakuten IROIRO 良品 - Static Replica */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rakuten-red: #bf0000;
  --rakuten-orange: #ff6600;
  --text-dark: #333;
  --text-gray: #666;
  --text-light: #999;
  --border: #ddd;
  --border-light: #eee;
  --bg-gray: #f5f5f5;
  --link-blue: #0066cc;
  --star-gold: #ffb800;
  --price-red: #bf0000;
  --sidebar-width: 220px;
  --content-width: 1024px;
}

html { font-size: 14px; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== Top Promo Banner ===== */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.promo-banner img { width: 100%; max-width: 750px; height: auto; }

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 16px;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}
.rakuten-logo {
  flex-shrink: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: bold;
  color: var(--rakuten-red);
  letter-spacing: -0.5px;
  text-decoration: none;
  line-height: 1;
}
.rakuten-logo:hover { text-decoration: none; opacity: 0.85; }
.search-box {
  flex: 1;
  display: flex;
  max-width: 600px;
}
.search-box input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  outline: none;
}
.search-box input:focus { border-color: var(--rakuten-red); }
.search-box button {
  width: 60px;
  height: 36px;
  background: var(--rakuten-red);
  color: #fff;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: bold;
}
.search-box button:hover { background: #a00000; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.header-nav a, .header-nav button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-gray);
  white-space: nowrap;
}
.header-nav a:hover, .header-nav button:hover { color: var(--rakuten-red); text-decoration: none; }
.header-nav svg { width: 18px; height: 18px; fill: var(--text-gray); }

.welcome-bar {
  font-size: 11px;
  color: var(--text-light);
  padding: 2px 0 6px;
}

/* ===== Shop Banner ===== */
.shop-banner-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
}
.shop-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #f5e6c8;
}

/* ===== Main Layout ===== */
.page-container {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 0 40px;
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 0 12px 20px 0;
  border-right: 1px solid var(--border-light);
}
.shop-icon-wrap {
  margin-top: -40px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.shop-icon {
  width: 120px;
  height: 120px;
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  object-fit: cover;
  background: #fff;
}

.sidebar-section { margin-bottom: 20px; }
.sidebar-section h3 {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.sidebar-section ul li { border-bottom: 1px solid var(--border-light); }
.sidebar-section ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 4px;
  font-size: 12px;
  color: var(--text-dark);
}
.sidebar-section ul li a:hover { color: var(--rakuten-red); text-decoration: none; background: var(--bg-gray); }
.sidebar-section .arrow { color: var(--text-light); font-size: 10px; }
.sidebar-section .sub-menu { padding-left: 12px; display: none; }
.sidebar-section .sub-menu.open { display: block; }
.sidebar-section .sub-menu li a { font-size: 11px; color: var(--text-gray); padding: 5px 4px; }

.sidebar-info li a {
  display: block;
  padding: 6px 4px;
  font-size: 11px;
  color: var(--link-blue);
}

/* Calendar */
.calendar-wrap { margin-top: 16px; }
.calendar-wrap h3 { font-size: 12px; font-weight: bold; margin-bottom: 8px; }
.calendar-month { margin-bottom: 12px; }
.calendar-month .month-title {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 4px;
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: center;
}
.calendar-table th {
  padding: 3px;
  font-weight: normal;
  color: var(--text-gray);
  background: var(--bg-gray);
}
.calendar-table td {
  padding: 3px;
  border: 1px solid var(--border-light);
  width: 14.28%;
}
.calendar-table td.sun { color: #c00; }
.calendar-table td.sat { color: #06c; }
.calendar-table td.holiday { background: #ffe0e0; color: #c00; }
.calendar-table td.order-only { background: #fff3cd; }
.calendar-table td.ship-only { background: #d4edda; }
.calendar-legend { margin-top: 8px; font-size: 10px; }
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  margin-bottom: 4px;
}
.calendar-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.calendar-legend .dot.holiday { background: #ffe0e0; border: 1px solid #fcc; }
.calendar-legend .dot.order { background: #fff3cd; border: 1px solid #ffc; }
.calendar-legend .dot.ship { background: #d4edda; border: 1px solid #cfc; }

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 20px;
}

/* Shop Header Info */
.shop-header {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.shop-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.shop-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.stars { display: flex; gap: 1px; }
.stars svg { width: 16px; height: 16px; }
.stars .filled { fill: var(--star-gold); }
.stars .empty { fill: #ddd; }
.rating-score {
  font-size: 14px;
  font-weight: bold;
  color: var(--rakuten-orange);
}
.review-count { font-size: 12px; color: var(--link-blue); }
.shop-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 10px;
  color: var(--text-gray);
}
.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 4px;
}
.favorite-btn:hover { border-color: var(--rakuten-red); color: var(--rakuten-red); }
.favorite-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.shop-search {
  display: flex;
  margin-top: 12px;
  max-width: 360px;
}
.shop-search input {
  flex: 1;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 12px;
  outline: none;
}
.shop-search button {
  width: 40px;
  height: 32px;
  background: var(--text-gray);
  color: #fff;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-search button svg { width: 16px; height: 16px; fill: #fff; }

/* Hero Carousel */
.hero-carousel {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 4px;
}
.hero-track {
  display: flex;
  transition: transform 0.4s ease;
}
.hero-slide {
  flex: 0 0 100%;
  position: relative;
}
.hero-slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  padding: 0;
}
.hero-dots button.active { background: var(--rakuten-red); }
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 48px;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-dark);
  z-index: 2;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.hero-nav:hover { background: #fff; }
.hero-nav.prev { left: 8px; }
.hero-nav.next { right: 8px; }

/* Product Sections */
.product-section { margin-bottom: 32px; }
.product-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding: 0 4px;
}

/* Product Carousel */
.product-carousel {
  position: relative;
  overflow: hidden;
}
.product-track {
  display: flex;
  transition: transform 0.35s ease;
}
.product-slide {
  flex: 0 0 158px;
  padding: 0 6px;
}
.product-card { display: block; color: inherit; text-decoration: none; }
.product-card:hover { text-decoration: none; opacity: 0.85; }
.product-thumb {
  width: 158px;
  height: 158px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  margin-bottom: 8px;
}
.product-name {
  font-size: 12px;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  min-height: 50px;
}
.product-price {
  font-size: 20px;
  font-weight: normal;
  color: var(--price-red);
  line-height: 1.2;
}
.product-price .yen { font-size: 12px; }
.product-price .from { font-size: 11px; color: var(--text-gray); display: block; margin-bottom: 2px; }

.carousel-nav {
  position: absolute;
  top: 60px;
  width: 28px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-gray);
  z-index: 2;
  border-radius: 2px;
}
.carousel-nav:hover { background: #fff; color: var(--rakuten-red); }
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }
.carousel-nav.disabled { opacity: 0.3; pointer-events: none; }

/* Banner Grid (夏の日用品) */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.banner-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
.banner-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.banner-price {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255,255,255,0.9);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 16px;
  color: var(--price-red);
  font-weight: bold;
}
.banner-price .yen { font-size: 11px; }

.show-more {
  text-align: center;
  margin-top: 16px;
}
.show-more a {
  display: inline-block;
  padding: 8px 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-dark);
}
.show-more a:hover { border-color: var(--rakuten-red); color: var(--rakuten-red); text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 20px;
}
.footer-trust {
  max-width: var(--content-width);
  margin: 0 auto 20px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.trust-item img { width: 24px; height: 24px; flex-shrink: 0; }
.trust-item p { font-size: 11px; color: var(--text-gray); line-height: 1.5; }
.trust-item strong { display: block; font-size: 12px; color: var(--text-dark); margin-bottom: 2px; }

.footer-links {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.footer-links a { font-size: 11px; color: var(--text-gray); }
.footer-links a:hover { color: var(--rakuten-red); }

.footer-bottom {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom img { height: 32px; }
.footer-corp { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-corp a { font-size: 11px; color: var(--text-gray); }
.footer-copy { font-size: 11px; color: var(--text-light); }

/* Responsive */
@media (max-width: 768px) {
  .page-container { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 12px 16px;
  }
  .shop-icon-wrap { margin-top: 0; text-align: center; }
  .main-content { padding: 0 16px; }
  .banner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-trust { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .header-nav { display: none; }
}
