/* ================================ */
/* 🔧 1. ベースリセットと初期化 */
/* ================================ */
html, body,
.fs-body-top,
.fs-l-page,
.fs-l-main,
.fs-l-pageMain,
#fs_Top {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* ================================ */
/* 📱 2. モバイル共通設定 (max-width: 767px) */
/* ================================ */
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
  }

  .malama-header {
    flex-direction: column;
    align-items: center;
    padding: 1em 1em 0.5em;
  }

  .malama-header__logo img {
    height: 100px;
  }

  .malama-header__nav {
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
    margin-top: 1em;
    padding: 0;
  }

  .malama-header__nav li {
    text-align: center;
    width: 100%;
  }

  .malama-header__nav li a {
    font-size: 16px;
  }

  .fs-l-sideArea {
    display: none !important;
  }

  .fs-l-productLayout {
    flex-direction: column;
    padding: 0 16px;
    gap: 32px;
  }

  .fs-l-productLayout__item--1,
  .fs-l-productLayout__item--2 {
    flex: 1 1 100%;
  }
}

/* ================================ */
/* 🧱 3. 商品一覧ページ（fs-c-productList） */
/* ================================ */
@media (min-width: 768px) {
  body .fs-c-productList {
    padding: 0 24px !important;
  }

  .fs-l-pageMain .fs-c-productList {
    padding: 0 24px !important;
  }

  .fs-c-productList {
    width: calc(100% - 48px);
    margin: 0 auto !important;
  }
}

/* ================================ */
/* 🛍 4. 商品詳細ページ（fs-l-productLayout） */
/* ================================ */
.fs-l-productLayout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.fs-l-productLayout__item--1 {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fs-c-productMainImage img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.fs-c-productThumbnail {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 1em;
}

.fs-l-productLayout__item--2 {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  padding-top: 1em;
}

.fs-c-productNameHeading {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5em;
  line-height: 1.4;
  color: #5c5247;
}

.fs-c-productPrice__main__price {
  font-size: 1.6em;
  font-weight: 500;
  color: #8b7d6c;
}

.fs-c-productPrice__addon {
  font-size: 0.9em;
  color: #999;
}

.fs-c-button--addToCart--detail {
  background-color: #8b7d6c;
  color: #fff;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.fs-c-button--addToCart--detail:hover {
  background-color: #5c5247;
}

.fs-c-productQuantityAndWishlist {
  display: flex;
  gap: 1em;
  align-items: center;
}

.fs-c-productNumber {
  font-size: 0.85em;
  color: #999;
}

/* ================================ */
/* 🧩 5. ヘッダー・カート・ナビなど */
/* ================================ */
.fs-l-header {
  position: relative;
  padding: 20px 0;
  background-color: #fefdfc;
}

.fs-l-header__contents {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 24px;
  background: #fefdfc;
  position: relative;
}

.malama-cart {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b7d6c;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  z-index: 100;
  transition: color 0.3s ease;
}

.malama-cart__icon {
  fill: currentColor;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.malama-cart:hover {
  color: #a5cdd5;
}

.malama-cart:hover .malama-cart__icon {
  transform: translateY(-2px);
}

/* ================================ */
/* 🗂 その他（商品一覧・講座など） */
/* ================================ */
.section-product-list {
  padding: 2em 1.5em !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.malama-heading-simple {
  text-align: center !important;
  display: block;
  width: 100%;
  margin: 2em 0 1em;
}

/* リセットとスクロール調整 */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
  height: auto !important;
}

.fs-l-page,
.fs-l-main,
.fs-pt-carousel,
.fs-l-pageMain {
  overflow-y: visible !important;
  height: auto !important;
}

.fs-l-main {
  flex: none !important;
}

/* ブランド一覧 */
.fs-c-categoryList__item {
  padding: 20px 16px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  transition: background-color 0.3s;
}

.fs-c-categoryList__item:hover {
  background-color: #f9f9f9;
}

.fs-c-categoryList__item a {
  display: block;
  color: #333;
  font-size: 16px;
  text-decoration: none;
}

.fs-c-categoryList__item::after {
  content: "›";
  float: right;
  color: #aaa;
  font-size: 18px;
}

/* 講座カード一覧 */
.fs-c-subgroupList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 2em 1em;
}

@media screen and (min-width: 768px) {
  .fs-c-subgroupList {
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
  }
}

.fs-c-subgroupList__item {
  border: none;
  border-radius: 12px;
  background-color: #f8f8f8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.fs-c-subgroupList__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.fs-c-subgroupList__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-decoration: none;
  color: #4a4a4a;
}

.fs-c-subgroupList__label {
  font-size: 17px;
  font-weight: 500;
}

.fs-c-subgroupList__link::after {
  content: "›";
  font-size: 20px;
  color: #a5cdd5;
  display: inline-block;
  transition: transform 0.3s ease;
}

.fs-c-subgroupList__link:hover::after {
  transform: translateX(4px);
}

.fs-c-subgroupList__item,
.fs-c-subgroupList__link {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ✅ ログインページ専用余白 */
body.fs-body-login .fs-l-pageMain {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  body.fs-body-login .fs-l-pageMain {
    padding-left: 40px;
    padding-right: 40px;
  }
}
.fs-l-page {
  overflow: visible !important;
  height: auto !important;
}
.fs-l-pageMain {
  overflow: visible !important;
  height: auto !important;
}
.malama-header__logo img {
  max-width: 100%;
  height: auto;
  display: block;
}
@media screen and (max-width: 767px) {
  .malama-header__logo img {
    height: 140px;
  }
}
