/* WordPress標準の余白をリセット */
.has-global-padding {
  padding: 0;
}



/* ============================================================
 * 特定商取引法ページ
 * ============================================================ */

/* コンテナ:最大幅1350px、中央配置 */
.legal__container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 7rem 0 2rem;
}

/* PC:左右に5%の余白 */
@media (min-width: 768px) {
  .legal__container {
    padding: 8rem 5%;
  }
}

/* ヘッダー:下に余白 */
.legal__header {
  margin-bottom: 3rem;
}

/* タイトル:フォントサイズ・色・太さ */
.legal__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #3a302c;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

/* サブタイトル:フォントサイズ・色 */
.legal__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #666;
  margin: 0;
}

/* リスト全体:縦並び、項目間に余白 */
.legal__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 各項目:縦並び、下線あり */
.legal__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

/* PC:横並び */
@media (min-width: 768px) {
  .legal__item {
    flex-direction: row;
    gap: 3rem;
  }
}

/* 最後の項目:下線なし */
.legal__item:last-child {
  border-bottom: none;
}

/* 項目名:フォントサイズ・色・太字 */
.legal__term {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3a302c;
  font-weight: 600;
}

/* PC:項目名を200px幅に固定 */
@media (min-width: 768px) {
  .legal__term {
    width: 250px;
  }
}

/* 項目内容:フォントサイズ・色・行間 */
.legal__desc {
  margin-left: 10px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3a302c;
  line-height: 1.8;
}

/* 段落:下に余白 */
.legal__desc p {
  margin: 0 0 0.5rem;
}

/* 最後の段落:余白なし */
.legal__desc p:last-child {
  margin: 0;
}

/* リンク:色・下線 */
.legal__desc a {
  color: #224b37;
  text-decoration: underline;
}

/* リスト:左インデント */
.legal__desc ul {
  margin: 0;
  padding-left: 1.2em;
}

/* リスト項目:下に余白 */
.legal__desc li {
  margin: 0 0 0.5rem;
}

/* 最後のリスト項目:余白なし */
.legal__desc li:last-child {
  margin: 0;
}





/* ============================================================
 * 個人情報保護方針ページ
 * ============================================================ */

/* コンテナ:最大幅1350px、中央配置 */
.privacy__container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 7rem 0 2rem;
}

/* PC:左右に5%の余白 */
@media (min-width: 768px) {
  .privacy__container {
    padding: 8rem 5%;
  }
}

/* ヘッダー:下に余白 */
.privacy__header {
  margin-bottom: 3rem;
}

/* タイトル:フォントサイズ・色・太さ */
.privacy__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #3a302c;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

/* サブタイトル:フォントサイズ・色 */
.privacy__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #666;
  margin: 0;
}

/* コンテンツ全体 */
.privacy__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* 各セクション */
.privacy__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 見出し:フォントサイズ・色・太さ */
.privacy__heading {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #3a302c;
  font-weight: 600;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #3a302c;
}

/* 本文:フォントサイズ・色・行間 */
.privacy__text {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3a302c;
  line-height: 1.8;
  margin: 0;
}

/* リスト:左インデント */
.privacy__list {
  margin: 0;
  padding-left: 1.5em;
}

/* リスト項目:下に余白 */
.privacy__list li {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3a302c;
  line-height: 1.8;
  margin: 0 0 0.5rem;
}

/* 最後のリスト項目:余白なし */
.privacy__list li:last-child {
  margin: 0;
}







/* ============================================================
 * ご利用ガイドページ
 * ============================================================ */

/* コンテナ:最大幅1350px、中央配置 */
.guide__container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 7rem 0 2rem;
}

/* PC:左右に5%の余白 */
@media (min-width: 768px) {
  .guide__container {
    padding: 8rem 5%;
  }
}

/* ヘッダー:下に余白 */
.guide__header {
  margin-bottom: 3rem;
}

/* タイトル:フォントサイズ・色・太さ */
.guide__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #3a302c;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

/* サブタイトル:フォントサイズ・色 */
.guide__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #666;
  margin: 0;
}

/* 各セクション */
.guide__section {
  margin-bottom: 3rem;
}

/* 見出し:フォントサイズ・色・太さ */
.guide__heading {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #3a302c;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #3a302c;
}

/* サブ見出し */
.guide__subheading {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: #3a302c;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

/* コンテンツエリア */
.guide__content {
  margin: 0;
}

/* 本文:フォントサイズ・色・行間 */
.guide__text {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3a302c;
  line-height: 1.8;
  margin: 0 0 1rem;
}

/* 最後の本文:余白なし */
.guide__text:last-child {
  margin-bottom: 0;
}

/* リスト:左インデント */
.guide__list {
  margin: 0 0 1rem;
  padding-left: 1.5em;
}

/* 最後のリスト:余白なし */
.guide__list:last-child {
  margin-bottom: 0;
}

/* リスト項目:下に余白 */
.guide__list li {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3a302c;
  line-height: 1.8;
  margin: 0 0 0.5rem;
}

/* 最後のリスト項目:余白なし */
.guide__list li:last-child {
  margin-bottom: 0;
}

/* テーブル */
.guide__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}

/* 最後のテーブル:余白なし */
.guide__table:last-child {
  margin-bottom: 0;
}

.guide__table th,
.guide__table td {
  border: 1px solid #e0e0e0;
  padding: 0.75rem;
  text-align: left;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.guide__table th {
  background: #f5f5f5;
  color: #3a302c;
  font-weight: 600;
}

.guide__table td {
  color: #3a302c;
}

/* テーブル注釈 */
.guide__note {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: #666;
  margin: 0.5rem 0 0;
}

/* ============================================================
 * FAQセクション
 * ============================================================ */

/* セクション全体 */
.faq {
  padding: 0;
  margin: 4rem 0;
}

/* ヘッダー */
.faq__header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .faq__header {
    margin-bottom: 4rem;
  }
}

.faq__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #3a302c;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

.faq__title--sub {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #3a302c;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* FAQリスト */
.faq__list {
  margin: 0;
  padding: 0;
}

/* FAQアイテム */
.faq__item {
  background: rgba(254, 254, 254, 0.9);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

/* 最後のFAQアイテム:余白なし */
.faq__item:last-child {
  margin-bottom: 0;
}

/* 質問エリア */
.faq__question {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq__question:hover {
  background: rgba(254, 254, 254, 1);
}

.faq__question--icon {
  flex-shrink: 0;
  width: 40px;
  height: 35px;
  border-radius: 50%;
  background: #224b37;
  color: #fefefe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin-right: 12px;
}

.faq__question--text {
  flex: 1;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3a302c;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 12px 0 0;
}

.faq__toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #224b37;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  margin: 0;
}

/* 回答エリア */
.faq__answer {
  height: 0;
  overflow: hidden;
  transition: height 0.5s ease;
  position: relative;
}

.faq__answer.is--open::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 1px;
  background: #3a302c;
}

.faq__answer--wrapper {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.faq__answer--icon {
  flex-shrink: 0;
  width: 40px;
  height: 35px;
  border-radius: 50%;
  background: #224b37;
  color: #fefefe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin-right: 12px;
}

.faq__answer--text {
  flex: 1;
  margin: 0;
}

.faq__answer--text p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3a302c;
  line-height: 1.8;
  margin: 0 0 0.5rem;
}

.faq__answer--text p:last-child {
  margin-bottom: 0;
}












/* ============================================================
 * Productsセクション(商品一覧ページ)
 * ============================================================ */

/* --------------------------------
 * Products全体: 横幅いっぱいに強制
 * -------------------------------- */
.products {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw)!important;
  padding: 0;
  background-color: #56483e;
  overflow: hidden;
  box-sizing: border-box;
}

/* --------------------------------
 * Productsコンテナ
 * -------------------------------- */
.products__container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 7rem 2rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .products__container {
    padding: 7rem 5%;
  }
}

@media (min-width: 1200px) {
  .products__container {
    padding: 8rem 5%;
  }
}

/* --------------------------------
 * タイトル
 * -------------------------------- */
.products__title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  color: #fefefe;
  text-align: center;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

/* --------------------------------
 * サブタイトル
 * -------------------------------- */
.products__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #fefefe;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: 0 0 3rem;
}

@media (min-width: 768px) {
  .products__subtitle {
    margin-bottom: 4rem;
  }
}

/* --------------------------------
 * 商品グリッド全体
 * -------------------------------- */
.woocommerce .products ul::after, 
.woocommerce .products ul::before, 
.woocommerce ul.products::after, 
.woocommerce ul.products::before {
  display: none;
}

.products .wp-block-woocommerce-product-collection {
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

@media (min-width: 768px) {
  .products .wp-block-woocommerce-product-collection {
    margin-bottom: 4rem;
  }
}

/* --------------------------------
 * グリッドコンテナ
 * -------------------------------- */
.wc-block-product-template__responsive {
  grid-gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.products .wp-block-woocommerce-product-template {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .products .wp-block-woocommerce-product-template {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .products .wp-block-woocommerce-product-template {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------
 * 商品カード
 * -------------------------------- */
.products .wp-block-woocommerce-product-template > li {
  background-color: #493d35;
  border: 1px solid #fdece2;
  border-radius: 4px;
  padding: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .products .wp-block-woocommerce-product-template > li {
    padding: 1rem;
    margin: 0 auto;
  }
}

.products .wp-block-woocommerce-product-template > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================================
 * 在庫なし表示
 * ============================================================ */
.products .wp-block-woocommerce-product-template > li.outofstock {
  position: relative;
}

.products .wp-block-woocommerce-product-template > li.outofstock .wp-block-woocommerce-product-image {
  opacity: 0.6;
  position: relative;
}

.products .wp-block-woocommerce-product-template > li.outofstock .wp-block-woocommerce-product-image::after {
  content: "在庫なし -SOLD OUT-";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  width: 75%;
  color: #fefefe;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.products .wp-block-woocommerce-product-template > li.outofstock .products__button .wp-block-button__link {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 767px) {
  .products .wp-block-woocommerce-product-template > li.outofstock .wp-block-woocommerce-product-image::after {
    font-size: 0.7rem;
    padding: 8px 16px;
  }
}

/* --------------------------------
 * 商品画像
 * -------------------------------- */
.products .wp-block-woocommerce-product-image {
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 強制的に16:9にする */
    overflow: hidden;
}

/* 画像を囲んでいる a タグも 100% に広げる */
.products .wp-block-woocommerce-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 画像自体の設定 */
.products .wp-block-woocommerce-product-image img {
    border-radius: 4px;
    width: 100%;
    height: 100% ;
    object-fit: cover;     /* 縦横比を維持して枠を埋める */
    object-position: center; /* ど真ん中を映す */
}

/* --------------------------------
 * 商品タイトル
 * -------------------------------- */
.products .wp-block-post-title {
  color: #fefefe;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 0.5rem;
  text-align: left;
}

.products .wp-block-post-title a {
  color: #fefefe;
  text-decoration: none;
}

/* --------------------------------
 * 商品価格
 * -------------------------------- */
.products .wp-block-woocommerce-product-price,
.products .wp-block-woocommerce-product-price .woocommerce-Price-amount {
  color: #f6d8bb;
  font-size: clamp(1.2rem, 1.8vw, 1.3rem);
  margin-bottom: 1rem;
}

.products .tax-label {
	font-size: 14px;
}

/* --------------------------------
 * 購入するボタン
 * -------------------------------- */
.products__button {
  margin-top: auto;
}

.products__button .wp-block-button {
  width: 100%;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .products__button .wp-block-button {
    margin-bottom: 2px;
  }
}

.products__button .wp-block-button__link {
  background: #224b37;
  color: #f6d8bb;
  padding: 7px 24px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-align: center;
  width: 100%;
  outline: none;
}

@media (max-width: 767px) {
  .products__button .wp-block-button__link {
    min-width: auto !important;
  }
}

@media (min-width: 768px) {
  .products__button .wp-block-button__link {
    padding: 5px 32px;
    font-size: 1rem;
  }
}

.products .wp-block-woocommerce-product-template > li:hover .products__button .wp-block-button__link {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(34, 75, 55, 0.4);
}



/* ============================================================
 * ページネーション(商品一覧)
 * ============================================================ */

.products .wp-block-query-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
  padding: 0;
}

.products .wp-block-query-pagination a,
.products .wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background-color: #fff;
  color: #493d35;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.products .wp-block-query-pagination a:hover {
  background-color: #dc8452;
  color: #fefefe;
  border-color: #dc8452;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 132, 82, 0.2);
}

.products .wp-block-query-pagination .page-numbers.current {
  background-color: #dc8452;
  color: #fefefe;
  border-color: #dc8452;
  font-weight: 600;
}

.products .wp-block-query-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #999;
}
