@charset "UTF-8";

:root {
  --primary-color: #333333;
  --secondary-color: #ffffff;
  --text-color: #fff;
  --accent-color: #FFA500;
  --sub-nav-color: #000000;
  --button-color: #633319;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
}


/*pagenation*/
.Pagination {
  display: flex;
  align-items: center;
  padding-top: 2em;
  justify-content: center;
}

.Pagination-Item-Link {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 45px;
  height: 45px;
  background: #fff;
  border: solid 2px #111;
  font-size: 14px;
  color: #111;
  font-weight: bold;
  transition: all 0.15s linear;
}

.Pagination-Item-Link-Icon {
  width: 20px;
}

.Pagination-Item-Link.isActive {
  background: #111;
  color: #fff;
  pointer-events: none;
}

.Pagination-Item-Link:not(.isActive):hover {
  background: #111;
  color: #fff;
}

.Pagination>*+* {
  margin-left: 12px;
}

/*Splide*/
.splide-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.splide__slide {
  box-sizing: border-box;
  opacity: 0.6;
}

.splide__slide.is-active {
  opacity: 1;
}

.hero .splide__slide {
  display: flex;
  /* 画像を中央揃えにしやすくするため */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 画像がはみ出た場合に隠す */
}


.splide__slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;
}


.hero .splide__slide img {}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.thumbnail-carousel .splide__slide.is-active img {
  opacity: 1;
}



body {
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}


header {
  background: #fff;
  color: var(--text-color);
  padding: 14px 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}


.logo {
  font-size: 1.5em;
  font-weight: bold;
  display: inline-block;
  padding: 10px 0 10px 10px;
  color: var(--primary-color);
}

.nav {
  display: flex;
  flex-direction: column-reverse;
  white-space: nowrap;
}

.nav.active {
  display: block;
}

.nav ul {
  padding: 0 4px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 16px;
}

.nav li+li {
  font-size: 0.9em;
  padding: 0.2em 0;
}


.nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav i {
  margin-right: 6px;
  font-size: 1em;
  vertical-align: middle;
}

.nav a:hover {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sub-navigation ul {
  display: none;
}

.search-menu {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
}

.hamburger {
  width: 36px;
  height: 36px;
  position: absolute;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  top: 1em;
  right: 1em;
  background: #fff;
  cursor: pointer;
  z-index: 100;
}

.hamburger span,
.hamburger span::after,
.hamburger span::before {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.5s;
  padding-right: 0;
}

.hamburger span::before {
  top: -10px;
}

.hamburger span::after {
  bottom: -10px;
}

.hamburger.open span {
  background-color: transparent;
}

.hamburger.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.open span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

footer {
  position: sticky;
  top: 100vh;
  width: 100%;
  background: var(--primary-color);
  color: var(--text-color);
  text-align: center;
  padding: 1em 0;
}

.search-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  right: 0;
  background-color: var(--button-color);
  color: #ddd;
}

.search-bar {
  position: relative;
  flex: 0 1 300px;
  margin: 0 16px;
  min-width: 180px;
}

.form-input input {
  width: 100%;
  padding: 9px 42px 7px 35px;
}

.hero {
  width: 100%;
  padding: 20px 0 20px 20px;
}

.sp-nav {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  top: 100%;
  top: 0;
  height: 100vh;
  display: none;
  background-color: var(--primary-color);
  padding: 50px 0;
  transition: all 0.5s;
  border-top: 1px solid var(--text-color);
  z-index: 10;
}

.sp-nav.active {
  display: block;
}

.sp-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-item:last-child {
  border-bottom: none;
}

.sp-item a {
  position: relative;
  display: block;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  padding: 14px 36px 14px 16px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-transform: uppercase;
}


.sp-item a:hover {
  color: var(--primary-color);
  background-color: var(--text-color);
}

.fa-solid {
  margin-left: 10px;
}

.sp-item a i {
  margin: 0 8px;
  width: 20px;
  text-align: center;
}

.nav.open {
  right: 0;
}

.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #333;
  min-width: 160px;
  z-index: 100;
  padding: 0;
  margin: 0;
  list-style: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.submenu li a {
  color: #fff;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  font-size: 0.95em;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: var(--secondary-color);
  color: #222;
}

.has-submenu:hover>.submenu,
.has-submenu:focus-within>.submenu {
  display: block;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0;
  padding: 2px 2px;
}

.category-bar {
  display: none;
}

.category-nav {
  justify-content: center;
  background: var(--secondary-color);
  margin: 0 auto;
}

.category-nav {
  display: flex;
  width: 100%;
  position: relative;
}


.js-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-left: 20px;
  padding: 10px 16px 0 0;
  font-size: 0.9em;
  text-transform: none;
}

.js-accordion-content.is-open {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.sub-category-item a {
  color: var(--text-color);
  text-decoration: none;
}

.category-item.has-submenu {
  position: relative;
}

.category-item .submenu {
  display: none;

  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  border: 1px solid #ddd;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  padding: 10px 0;
  min-width: 180px;
  z-index: 10;
  list-style: none;
  margin: 0;
}

.category-item .submenu li {
  margin: 0;
}

.category-bar {
  position: relative;
  z-index: 5;
}

.category-nav .category-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}


.category-nav .category-item a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  position: relative;
}

.category-item .submenu li a:hover {
  background-color: #f5f5f5;
  opacity: 0.8;
}

/* --- ホバーエフェクト --- */

/* ヘッダーナビゲーション */
header .nav ul li a {
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;

}

header .nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.05);

}

/* カテゴリーバーナビゲーション */
.category-bar .category-nav .category-list .category-item>a {
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 15px;
  border-radius: 4px;
  display: inline-block;
}

.category-bar .category-nav .category-list .category-item>a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* カテゴリーバーのサブメニュー */
.category-bar .category-nav .category-list .submenu li a {
  transition: background-color 0.3s ease, color 0.3s ease;
  display: block;
  padding: 8px 15px;
}

.main-content-wrapper {
  grid-template-columns: 2fr;
}

.sidebar {
  display: none;
}

.product-section {
  padding-bottom: 20px;
}

.product-section h2 {
  position: relative;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 15px;
  padding-bottom: 8px;
  color: #333;
}

.product-section h2::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 3px solid var(--secondary-color);
  border-radius: 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

.product-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.product-item a {
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  pointer-events: none;
}

.product-item img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 4px;
  pointer-events: visible;
}

.product-name {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(0.9rem * 1.4 * 2);
  flex-grow: 1;
  padding-left: 10px;
}

.product-price {
  font-size: 1rem;
  font-weight: bold;
  margin-top: auto;
  text-align: right;
}

.more-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  width: 230px;
  line-height: 1em;
  background-color: var(--button-color);
  color: var(--text-color);
  margin: 20px auto;
}

.more-link a {
  display: flex;
  font-weight: bold;
  padding: 8px 16px;
  transition: .3s;
  justify-content: center;
  transition: 0.3s;
  white-space: nowrap;
  padding: 10px;
}


.more-link a:hover {
  opacity: 0.9;
}

.ranking-item {
  position: relative;
}

.ranking-badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ffbf00;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px 0 6px 0;
  line-height: 1;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 1;

}

.ranking-item:nth-child(1) .ranking-badge {
  background-color: #ffd700;
}

/* Gold */
.ranking-item:nth-child(2) .ranking-badge {
  background-color: #c0c0c0;
}

/* Silver */
.ranking-item:nth-child(3) .ranking-badge {
  background-color: #cd7f32;
}

/* Bronze */
.feature-section {
  margin-bottom: 20px;
}


.feature-section h2 {
  position: relative;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 8px;
  color: #333;
}

.feature-section h2::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 3px solid var(--secondary-color);
  border-radius: 5px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  display: block;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}

.feature-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.feature-item img {
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-item-content {
  padding: 15px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #333;
  letter-spacing: 0.05em;
}

.feature-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.product-price {
  margin-top: 0;
  font-weight: bold;
  text-align: left;
}

.more-link a i {
  margin-left: 8px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 15px;
}

.product-image {
  display: block;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-image:hover img {
  opacity: 0.8;
  transition: 0.5s;
  cursor: pointer;
}

.product-info h1 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.price {
  font-size: 1.2em;
  color: #c00;
  margin-bottom: 10px;
}

.description {
  margin: 20px 0;
}

.add-to-cart {
  padding: 10px 20px;
  background: var(--button-color);
  color: #fff;
  border: none;
  cursor: pointer;
}

.cart-link {
  color: var(--text-color);
}

.cart-link:hover {
  opacity: 0.8;
  transition: 0.5s;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.color-selector {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 15px;
}

.color-option {
  width: 24px;
  height: 24px;

  border-radius: 50%;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  display: inline-block;
}


.color-option.active {
  border-color: #007bff;
  /* 選択されている色オプションの枠線 (例: 青) */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  /* 選択時の影 */
}

.add-to-cart {
  margin-bottom: 20px;
}

.special-wrapper {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-bottom: 20px;

}

.special-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.special-card:hover {
  opacity: 0.8;
}

.special-image img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  object-fit: cover;
  aspect-ratio: 6 / 4;
}

.special-body {
  padding: 15px;
}

.special-title {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
  font-weight: bold;
}

.special-description {
  font-size: 0.9em;
  color: #555;
  line-height: 1.5;
}

.special-section h1 {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 15px 0;
}

.special-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.special-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.special-detail-text {
  padding: 10px 0;
  line-height: 1.6;
  text-align: left;

}

.special-detail-text a {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
}

.special-detail-text a:hover {
  opacity: 0.8;
}

.product-details {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
}

/* PC向けレイアウト */
@media (min-width: 960px) {

  .special-wrapper {
    grid-template-columns: repeat(3, 1fr);
    margin: 40px 0;
  }

  .wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
  }

  .fa-solid {
    padding-right: 5px;
  }


  .nav {
    display: inline-block !important;
    position: static;
    background: none;
    width: auto;
    padding: 0;
    order: 2;
    margin: auto
  }

  .sp-nav {
    display: none;
  }

  .category-nav {
    position: relative;
  }

  .category-list {
    flex-direction: row;
    padding: 2px 2px;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
  }

  .category-bar {
    display: block;
  }


  .nav ul {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
  }

  .nav ul:first-child {
    padding-left: 0;
  }

  .nav li {
    margin: 0 0 0 24px;
    white-space: nowrap;
    color: var(--primary-color);
  }

  .hamburger {
    display: none;
  }


  header .container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }

  .category-nav {
    display: flex;
    width: 100%;
  }

  .main-content-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding-bottom: 20px;
    align-items: start;
  }

  .sidebar {
    position: static;
    top: 0;
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid #eee;
  }

  .sidebar h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    background-color: var(--sub-nav-color);
    color: var(--text-color);
  }

  .sidebar-category-list {
    padding: 0;
    margin: 0 0 20px 0;
  }

  .sidebar-category-list li a {
    display: block;
    padding: 8px 5px;
    color: #333;
    font-size: 0.9em;
    margin-left: 20px;
  }

  .sidebar-category-list a:hover {
    opacity: 0.5;
    text-decoration: underline;
    transition-property: opacity;
    transition-duration: 0.5s;
  }

  .sidebar-banners {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .sidebar-banners a {
    display: block;
  }

  .sidebar-banners img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
  }

  .sidebar-banners img:hover {
    opacity: 0.75;

  }


  .sidebar {
    display: block;
    flex-basis: 25%;
  }

  .main-area {
    flex: 1;
    min-width: 0;
  }

  .main-content-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    padding-bottom: 40px;
    align-items: start;
    margin-top: 40px;
  }

  .product-info {
    flex-direction: row;


  }

  .product-section {
    width: 970px;
    max-width: 100%;
    margin: 0 0 50px auto;
  }

  .product-section h2 {
    font-size: 1.6rem;
    padding-bottom: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
  }


  .product-item {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }


  .product-item img {
    margin-bottom: 12px;
  }

  .product-name {
    font-size: 0.95rem;
    margin-bottom: 5px;
    min-height: calc(0.95rem * 1.4 * 2);
    padding-left: 10px;
    font-weight: bold;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .more-link {
    text-align: center;
    margin-top: 25px;
  }

  .more-link a {
    padding: 20px;
  }

  .ranking-badge {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 8px 0 8px 0;
    z-index: 1;
  }

  .feature-section h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
  }

  .feature-item-content {
    padding: 20px;
  }

  .feature-description {
    font-size: 0.95rem;
  }

  .feature-title {
    white-space: wrap;
  }

  .sub-navigation ul {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin: 0;
    background-color: var(--sub-nav-color);
  }

  .sub-item {
    margin: 0 10px;
  }

  .sub-link {
    color: var(--text-color);
  }

  .sub-link:hover {
    opacity: 0.9;
    transition: .3s;
  }

  .product-details {
    flex-direction: row;
  }

  .feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
  }

  .feature-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
  }

  .feature-card:hover {
    transform: scale(1.02);
  }

  .feature-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .feature-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
  }

  .feature-text h2 {
    margin: 0 0 10px;
    font-size: 24px;
  }

  .feature-text p {
    margin: 0;
    font-size: 16px;
  }

  .special-detail-text {
    padding: 30px 0;
  }
}



@media (min-width: 768px) and (max-width: 1024px) {

  .logo {
    font-size: 1em;
  }



  header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .nav {
    display: block;
    position: static;
    background: none;
    width: auto;
    text-align: left;
    padding: 0;
    order: 1;

  }

  .nav ul {
    flex-direction: row;
    justify-content: flex-end;
  }

  .nav li {
    margin: 0 0 0 24px;
  }



  .hamburger {
    display: none;
  }

  .logo {
    margin-left: 8px;

  }

  header .container {
    position: relative;
  }

  .special-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
  }

  .feature-section {
    margin-bottom: 40px;
  }

  .product-info {
    flex-direction: row;


  }

  .product-details {
    flex-direction: row;
  }
}