/* ===== Global reset & base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", "Arial", 'Noto Sans JP', sans-serif;
  color: #222;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: #242325;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

/* Visually hidden (one definition only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus visibility */
.btn_design:focus-visible,
.hover:focus-visible,
a:focus-visible {
  outline: 2px solid #991122;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Common utilities ===== */
.red {
  font-weight: bold;
  font-size: 25px;
  color: #991122;
  letter-spacing: 0.15em;
}

.lime {
  color: #918F4A;
}

.hover {
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.25);
  display: inline-block;
  margin: 0 0 1em;
  cursor: pointer;
  transition: all 0.3s ease 0s;
}

.hover:hover {
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(-0.2em);
}

.btn_design {
  background: #991122;
  font-size: 12px;
  font-family: "Yu Gothic";
  max-width: 200px;
  margin: 10px auto 0px;
  text-align: center;
  font-weight: bold;
  padding: 3px 5px;
  box-sizing: border-box;
  transition: all .3s;
  color: #fff;
}

.btn_design:hover {
  background-color: transparent;
  border: 2px solid #991122;
  border-radius: 30px;
  cursor: pointer;
  color: #222;
}

/* ===== Layout containers ===== */
#feature-container {
  text-align: center;
  width: 100%;
}

.hero,
.intro {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__image img {
  display: block;
  width: 100%;
  height: auto;
}

.button-text {
  font-size: 15px;
  font-family: "Helvetica Neue", "Arial", 'Noto Sans JP', sans-serif;
}

/* Category title image wrapper */
h2.product-category__title span {
  display: grid;
  width: 50%;
  margin: 0 auto;
}

/* ==================================================
   PC settings  ※Rakutenは 700px 推奨（別CSSで上書き）
================================================== */
@media screen and (min-width:769px) {
  .pc {
    display: block;
  }

  .sp {
    display: none;
  }

  /* Typography / Spacing */
  .ttl_bold {
    font-weight: bold;
    font-size: 25px;
    letter-spacing: 0.15em;
  }

  .spacer {
    margin-top: 50px;
  }

  .spacer-hf {
    margin-top: 25px;
  }

  .mb-50 {
    margin-bottom: 50px;
  }

  /* Base layout */
  #feature-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
  }

  .intro {
    margin: 50px auto 100px;
    text-align: center;
  }

  .intro__title, .inner-title {
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem 0;
    font-weight: bold;
  }

  .pickup-banner {
    margin: 30px auto;
    text-align: center;
  }

  .pickup-banner img {
    max-width: 500px;
  }

  .product-category {
    margin-bottom: 100px;
  }

  .product-category picture {
    display: block;
    margin: 0 auto;
    /* max-width: 500px; */
  }

  .product-category__text {
    margin-bottom: 50px;
  }

  .banner-category {
    margin: 80px 0 40px;
  }

  /* Featured product (float layout remains for compatibility) */
  .featured-product {
    margin: 20px auto 30px;
    overflow: hidden;
  }

  .featured-product__img-container {
    width: 35%;
    float: left;
  }

  .featured-product__img-container img {
    width: 100%;
  }

  .featured-product__details {
    margin: 0px 10px;
    padding: 5px;
    width: 60%;
    float: right;
  }

  h3.featured-product__name {
    text-align: left;
  }

  h3.featured-product__name span {
    display: block;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    line-height: 2.5rem;
    margin-top: 15px;
    font-size: .9em;
  }

  .featured-product__name img,
  .product-card__title img {
    width: 100%;
  }

  .featured-product__description {
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
  }

  /* Main product */
  .main-product {
    margin: 20px auto 30px;
    overflow: hidden;
  }

  .main-product__img-container {
    width: 100%;
  }

  .main-product__description {
    width: 85%;
    font-size: 0.9rem;
    margin: 20px auto 0;
  }

  /* CTA link (duplicate colors cleaned) */
  .featured-product__cta {
    float: right;
    margin-bottom: 24px;
    width: 60%;
    border-radius: 4px;
    display: block;
    margin: 16px auto;
    padding: 10px 0;
    text-align: right;
    font-size: 0.9rem;
    font-weight: bold;
    color: #60a858;
  }

  .featured-product__cta:hover {
    font-style: italic;
    font-weight: bold;
  }

  img.buy_btn {
    width: 60%;
    margin: 0 auto;
    display: block;
    padding: 10px 0;
  }

  /* ====== NEW: Stable 3-up product grid ====== */
  .product-list_03 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 20px auto;
    padding: 0;
    width: 100%;
  }

  .product-list_03>.product-card {
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    /* keep neutral: themes can override */
    background: transparent;
    /* neutral */
    box-shadow: none;
    /* neutral */
  }

  .product-list_03 .product-card>a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
  }

  .product-list_03 .product-card__img-container {
    position: relative;
    aspect-ratio: 1/1;
    /* square thumbs for consistent rows */
    background: #f6f6f6;
    /* neutral fallback */
    overflow: hidden;
    border-bottom: 1px solid #eee;
  }

  .product-list_03 .product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
  }

  .product-list_03>.product-card:hover .product-card__image {
    transform: scale(1.03);
  }

  .product-list_03 .product-card__title {
    text-align: center;
    line-height: 1.55;
    padding: 12px 10px 16px;
  }

  .product-list_03 .product-card__brand {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
  }

  .product-list_03 .product-card__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 25px;
    font-size: 14px;
    color: #222;
  }
}

/* ==================================================
   スマホ settings
================================================== */
@media screen and (max-width:768px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  .hidden-sp {
    display: none !important;
  }

  img {
    width: 100%;
  }

  .sp-img_hf {
    display: block;
    width: 50%;
    margin: 0 auto;
  }

  .sp-img_L {
    display: block;
    width: 80%;
    margin: 0 auto;
  }

  /* Typography / Spacing */
  .ttl_bold {
    font-weight: bold;
    font-size: 25px;
    letter-spacing: 0.15em;
    padding: 0 10px;
  }

  .spacer {
    margin-top: 50px;
  }

  .ma-l-15 {
    margin-left: 15px;
  }

  /* Base layout */
  .intro {
    width: 90%;
    margin: 5px auto 30px;
  }

  .intro__title, .inner-title {
    font-size: 1.1rem;
    text-align: center;
    margin: 2rem 0;
    font-weight: bold;
  }

  .intro__text {
    text-align: left;
    font-size: .95rem;
    line-height: 1.8;
    margin-bottom: 3rem;
  }

  .product-category {
    margin-bottom: 80px;
  }

  .featured-product__description,
  .main-product__description,
  .product-category__description,
  .product-category__text {
    width: 90%;
    padding: 5px 15px;
    margin: 0px auto 30px;
    font-size: 15px;
    text-align: left;
  }

  section.banner-category {
    margin-top: 50px;
  }

  h3.banner-card__title {
    font-size: 1rem;
    margin: 5px 0 40px;
    font-weight: 600;
  }

  section.featured-collections {
    padding: 0 10px;
  }

  #feature-container h2 {
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
  }

  .pickup-banner {
    width: 100%;
    margin: 5px auto;
    text-align: center;
    clear: both;
  }

  /* Featured product */
  .featured-product {
    width: 100%;
  }

  .featured-product__img-container img {
    width: 90%;
  }

  .featured-product__details {
    margin: 10px auto 50px;
  }

  h2.product-category__title {
    display: grid;
    justify-items: center;
  }

  h3.featured-product__name {
    text-align: left;
    width: 90%;
    padding: 5px 15px;
    margin: 0px auto;
  }

  h3.featured-product__name span {
    display: block;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin-top: 15px;
    font-size: .85em;
  }

  h3.product-card__title {
    font-size: .8rem;
  }

  /* Main product */
  .main-product {
    margin: 20px auto 30px;
    overflow: hidden;
  }

  .main-product img {
    width: 90%;
  }

  /* CTA (button-like link) */
  .featured-product__cta {
    margin: 5px auto;
    padding: 10px 80px;
    text-align: center;
    font-weight: bold;
    border: double #c0c0c0;
  }

  .featured-product__cta:hover {
    font-style: italic;
    font-weight: bold;
  }

  /* ====== NEW: 2-up grid on mobile ====== */
  .product-list_03 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px auto;
    padding: 0;
    width: 100%;
  }

  .product-list_03 .product-card__img-container {
    aspect-ratio: 1/1;
  }

  span.product-card__brand {
    display: block;
  }



  /* ==================================================
   楽天用 幅700px固定レイアウト対応
===================================================== */
  .rakuten #feature-container,
  .theme-nabe.rakuten #feature-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 10px;
  }

  @media screen and (min-width:700px) {

    .rakuten .intro,
    .rakuten .product-category {
      max-width: 700px;
      margin: 0 auto;
    }
  }