@charset "UTF-8";

/* 基本設定 */
html {
  font-size: 100%;
}

body {
  color: #333;
  font-size: 0.875rem;
  min-height: 100vh;
  position: relative;
}

a {
  color: #333;
  text-decoration: none;
  transition: all 0.5s;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

li {
  list-style: none;
}

.wrapper {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

.content {
  padding-top: 60px;
  padding-bottom: 160px;
}

/* ヘッダー */
#header {
  width: 100%;
  max-width: 1000px; /* 最大幅を1000pxに制限 */
  margin: 0 auto; /* 中央寄せ */
}

.site-title img {
  width: 100%;
  height: auto; /* 縦横比を維持して可変 */
  display: block;
}

.site-title {
  width: 100%;
  height: 100%;
  padding: 0 4%;
  box-sizing: border-box;
}

.site-title img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.h1 {
  font-size: 10px !important;
  font-weight: normal;
}

.page-title {
  font-size: 0.875rem;
  font-weight: normal;
  margin-bottom: 30px;
}

/*ハンドメイドボックスへのリンク*/

.link-button-wrap {
  text-align: center;
}

/* PC（デフォルト）：横並び */
.purchase-links {
  width: 80%; /* ← 90% や 100% から少し縮める */
  margin: 0 auto; /* 中央寄せ */
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.link-button-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.link-button-wrap a {
  width: 100%;   /* ボタンは親要素にフィット */
  max-width: 360px; /* 必要なら最大幅の制御 */
  box-sizing: border-box;
}

.link-button-wrap p {
  margin: 6px 0 0;
}

.css-arrow-button {
  display: inline-block;
  border: 1px solid;
  position: relative;
  background: #fff;
  color:#614f38;
  border:2px solid #614f38;
  padding:1.5rem 5.5rem 1.5rem 1.8rem;
  transition: all .3s;

  &:after{
    content:"";
    position:absolute;
    display: block;
    transition: all .3s;
    width: 7px;
    height: 18px;
    top:50%;
    right: 2.5rem;
    box-shadow:2px -2px 0 #fff;
    border-top: solid 2px #614f38;
    border-right: solid 2px #614f38;
    transform: translateY(-50%) rotate(45deg) skewX(-45deg);;
    
  }

  &:hover {
    &:after {
      right:5px;
      height: 40px;
    }
  }
}



/* 商品リスト */
.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.product-item {
  width: 100%;
}

.product-list img {
  margin-bottom: 10px;
}

.product-list p {
  font-size: 0.75rem;
}

/* カテゴリーボタン */
.category-nav {
  margin-top: 5%;
  margin-bottom: 20px;
}

.category-nav button {
  background-color: transparent;
  border: 1.5px solid #999;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 0 6px;
}

.category-nav button:hover {
  border-color: #666;
  color: #333;
}

.category-nav button.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

/* フッター */
#footer {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
}

#footer .menu {
  display: flex;
}

#footer .menu li {
  font-size: 0.75rem;
  margin-right: 30px;
}

#footer .copyright {
  font-size: 0.625rem;
}

/* ===== レスポンシブ調整 ===== */
@media screen and (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 500px) {
  .wrapper {
    padding: 0 16px;
  }

  /* ヘッダー画像を可変にする */
  #header {
    height: auto; /* 固定高さを解除 */
  }

  .site-title img {
    height: auto;
    width: 100%;
    object-fit: cover; /* 必要に応じて画像の切り抜き調整 */
  }

  .css-arrow-button {
    padding: 1rem 2rem 1rem 1rem;
  }

  .css-arrow-button:after {
    right: 1.5rem; /* デフォルトより少し離す */
  }
    .category-nav {
    display: flex;
    flex-wrap: wrap; /* 改行を許可して複数行に */
    justify-content: center; /* 中央寄せ */
    gap: 8px 6px; /* 上下8px・左右6pxの間隔 */
  }

  .category-nav button {
    margin: 0; /* gapで間隔を管理するのでmarginはゼロ */
  }
  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .purchase-links {
    flex-direction: column;
    align-items: stretch; /* 幅を揃える */
    gap: 16px;
  }

  .link-button-wrap a {
    max-width: 70%;
  }
}
