/* 商品詳細ページ（左に写真・右に商品情報、その下に説明文） */
.pd .wrapper {
  width: 100%;
  max-width: 1080px;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---- 上段：写真と商品情報 ---- */
.pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 64px 0 64px; /* パンくず（米貴 / 商品購入 / …）との間をあける */
}
.pd-main {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f4ec;
}
.pd-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.pd-thumbs li {
  width: calc((100% - 30px) / 4);
}
.pd-thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}
.pd-thumbs button:hover,
.pd-thumbs button[aria-current="true"] {
  border-color: #333;
  opacity: 1;
}
.pd-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pd-info {
  padding-top: 8px;
}
.pd-cat {
  display: inline-block;
  color: #5a5648;
  background: #f1eee6;
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
}
.pd-title {
  margin: 18px 0 0;
  font-size: 28px;
  line-height: 1.6;
  letter-spacing: 2px;
  font-weight: 600;
}
.pd-price {
  margin: 20px 0 0;
  padding: 18px 0;
  border-top: 1px solid #e3e1d3;
  border-bottom: 1px solid #e3e1d3;
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  letter-spacing: 1px;
}
.pd-qty {
  margin-right: 14px;
  font-size: 14px;
  color: #666;
}
.pd-price .price {
  font-size: 28px;
  font-weight: 600;
}
.pd-yen {
  font-size: 14px;
  margin-left: 2px;
}
.pd-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  height: 64px;
  border-radius: 7px;
  color: #fff;
  background: var(--kt-accent);
  border: 2px solid var(--kt-accent);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  transition: 0.3s;
}
.pd-cart:hover {
  color: var(--kt-accent);
  background: #fff;
}
.pd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 22px;
  font-size: 13px;
}
.pd-links a {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pd-links a:hover {
  color: #333;
}

/* ---- 下段：説明文（独自デザインを持つ商品＝カリっと米など。共通デザインは下の「pd-desc-std」） ---- */
.pd-desc:not(.pd-desc-std) {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 56px;
  border-top: 1px solid #e3e1d3;
}
.product-on .pd-desc:not(.pd-desc-std) p {
  margin: 18px 0;
  line-height: 2.1;
}
.pd-desc:not(.pd-desc-std) h2 {
  font-size: 22px;
  line-height: 1.7;
  margin: 32px 0 8px;
}
.pd-desc:not(.pd-desc-std) h3 {
  font-size: 18px;
  line-height: 1.7;
  margin: 28px 0 8px;
}
/* 説明文の写真は2枚ずつ横に並べる（1枚だけのときは横幅いっぱい） */
.pd-desc:not(.pd-desc-std) :not(figure) > img {
  display: inline-block;
  width: calc(50% - 8px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 4px;
  border-radius: 6px;
  vertical-align: top;
}
/* 奇数枚のときの最後の1枚も横幅いっぱいにして、後ろの文章が横に回り込まないようにする */
.pd-desc:not(.pd-desc-std) :not(figure) > img:only-of-type,
.pd-desc:not(.pd-desc-std) :not(figure) > img:last-of-type:nth-of-type(odd) {
  width: 100%;
  aspect-ratio: auto;
  margin: 4px 0;
}
.pd-desc:not(.pd-desc-std) blockquote {
  margin: 32px 0;
  padding: 8px 28px;
  background: #faf9f5;
  border-left: 3px solid #d8d3c4;
  border-radius: 6px;
  text-align: left;
}
.product-on .pd-desc:not(.pd-desc-std) blockquote p {
  text-align: left;
}
.pd-desc:not(.pd-desc-std) ul {
  text-align: left;
  display: inline-block;
}

.pd .btn-all {
  margin-top: 56px;
}
.pd.product-block {
  padding-bottom: 72px;
}
/* 「一覧に戻る」はカートボタン（黄色）と区別してサイトの緑に */
.pd .btn-2.pd-back {
  color: #333;
  background: #fff;
  border: 1px solid #333;
}
.pd .btn-2.pd-back::before {
  display: none;
}
.pd .btn-2.pd-back:hover {
  color: #fff;
  background: #333;
}

/* ---- あなたにおすすめの商品（同じカテゴリの商品をスライド表示） ---- */
/* 上の商品部分と同じ幅（最大1080px・左右24pxの余白）に収める */
.pd-rel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 100px;
  box-sizing: border-box;
}
.pd-rel-inner {
  padding-top: 56px;
  border-top: 1px solid #e3e1d3;
}
.pd-rel-ttl {
  text-align: center;
  font-size: 24px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 32px;
}
.pd-rel-ttl span {
  display: block;
  text-align: center;
  margin-top: 6px;
  color: #a8a395;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: normal;
}
.pd-rel-slider {
  position: relative;
}
.pd-rel-list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.pd-rel-list::-webkit-scrollbar {
  display: none;
}
.pd-rel-item {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}
.pd-rel-item a {
  display: block;
  color: inherit;
}
.pd-rel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f4ec;
  transition: 0.3s;
}
.pd-rel-item a:hover img {
  opacity: 0.8;
}
/* 上の商品情報のカテゴリ表示と同じ緑の札（小さめ） */
.pd-rel-cat {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f1eee6;
  color: #5a5648;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}
.pd-rel-name {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 1px;
  font-weight: 600;
}
.pd-rel-price {
  margin-top: 4px;
  font-size: 13px;
  color: #555;
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.pd-rel-price span {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}
.pd-rel-prev,
.pd-rel-next {
  position: absolute;
  top: calc((100% - 70px) / 2);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}
.pd-rel-prev { left: -22px; }
.pd-rel-next { right: -22px; }
/* 矢印はカテゴリの緑と区別して、白地に濃い灰色 */
.pd-rel-prev::before,
.pd-rel-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #444;
  border-right: 2px solid #444;
  transition: 0.3s;
}
.pd-rel-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.pd-rel-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.pd-rel-prev:hover,
.pd-rel-next:hover {
  background: #444;
  border-color: #444;
}
.pd-rel-prev:hover::before,
.pd-rel-next:hover::before {
  border-color: #fff;
}

/* ---- スマートフォン・タブレット ---- */
@media (max-width: 900px) {
  .pd-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .pd-info {
    padding-top: 0;
  }
  .pd-title {
    font-size: 22px;
  }
  .pd-rel-item {
    flex-basis: calc((100% - 24px) / 2);
  }
  .pd-rel-prev { left: -8px; }
  .pd-rel-next { right: -8px; }
}
@media (max-width: 500px) {
  .pd .wrapper {
    padding: 0 16px;
  }
  .pd-desc:not(.pd-desc-std) {
    padding-top: 36px;
  }
  .pd-desc:not(.pd-desc-std) h2 {
    font-size: 18px;
  }
  .pd-desc:not(.pd-desc-std) h3 {
    font-size: 16px;
  }
  .pd-desc:not(.pd-desc-std) blockquote {
    padding: 4px 18px;
  }
  .pd.product-block {
    padding-bottom: 48px;
  }
  .pd-rel {
    padding: 0 16px 48px;
  }
  .pd-rel-inner {
    padding-top: 40px;
  }
  .pd-rel-ttl {
    font-size: 20px;
  }
  /* スマホは1枚半見せて、横に動かせることが分かるように */
  .pd-rel-list {
    gap: 14px;
  }
  .pd-rel-item {
    flex-basis: 66%;
  }
  .pd-rel-prev,
  .pd-rel-next {
    width: 36px;
    height: 36px;
  }
}

/* おすすめ商品：自動で動かす／止めるボタン */
.pd-rel .pd-rel-ctrl {
  margin-top: 6px;
  text-align: right;
}
.pd-rel-toggle {
  padding: 2px 0;
  border: none;
  background: none;
  color: #aaa;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pd-rel-toggle:hover {
  color: #555;
}

/* 商品ページでは大見出し（h1）を商品名だけにするため、ヘッダーのロゴは h1 ではなく div にしている。h1 と同じ並びにする */
@media only screen and (max-width: 1240px) {
  .h-nav-wrap .h-site-logo {
    display: flex;
    align-items: center;
  }
}

/* =====================================================================
   説明文の共通デザイン（独自デザインを持たない商品すべて）
   文章・写真は商品ファイルのまま。並べ方と見た目だけを整える
   ===================================================================== */
.pd .pd-desc.pd-desc-std {
  position: relative;
  max-width: none;
  margin: 8px 0 0;
  padding: 72px 64px 80px;
  border-top: none;
  border-radius: 32px;
  background: #fbf5ea;
  color: #4a3528;
  overflow: hidden;
}
/* 背景の淡い丸（トップの特集コーナーと同じ雰囲気） */
.pd .pd-desc.pd-desc-std::before,
.pd .pd-desc.pd-desc-std::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.pd .pd-desc.pd-desc-std::before {
  top: -140px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: #f8e6d6;
}
.pd .pd-desc.pd-desc-std::after {
  bottom: -160px;
  left: -140px;
  width: 360px;
  height: 360px;
  background: #f1ecd9;
}
/* 中身は読みやすい幅の1列にそろえる */
.pd .pd-desc.pd-desc-std > * {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* 「About this item ／ 商品について」（カリっと米など独自デザインの商品にも同じものを付けて、入口をそろえる） */
.pd .pd-desc .pd-desc-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
  font-family: "Noto Serif JP", serif;
}
.pd .pd-desc .pd-desc-en {
  position: relative;
  padding: 0 16px;
  color: #e07b45;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.pd .pd-desc .pd-desc-en::before,
.pd .pd-desc .pd-desc-en::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: #e07b45;
}
.pd .pd-desc .pd-desc-en::before { right: 100%; }
.pd .pd-desc .pd-desc-en::after { left: 100%; }
.pd .pd-desc .pd-desc-ja {
  margin-top: 10px;
  color: #3d2a1e;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 4px;
}

/* 文章 */
.pd .pd-desc.pd-desc-std p,
.product-on .pd-desc.pd-desc-std p {
  margin-top: 0;
  margin-bottom: 1.1em;
  color: #4a3528;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.06em;
}
.pd .pd-desc.pd-desc-std strong {
  font-weight: bold;
  background: linear-gradient(transparent 62%, #f8dcb4 62%);
}
.pd .pd-desc.pd-desc-std a:not(.pd-photos a) {
  color: #b5552a;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pd .pd-desc.pd-desc-std a:hover {
  color: #e07b45;
}

/* 大きい見出し（キャッチコピー） */
.pd .pd-desc.pd-desc-std h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  color: #3d2a1e;
  font-family: "Noto Serif JP", serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-align: center;
  word-break: auto-phrase; /* 言葉の途中や1文字だけで改行しない */
  text-wrap: balance;
}
.pd .pd-desc.pd-desc-std h2 + h2 {
  margin-top: -12px;
}
.pd .pd-desc.pd-desc-std h2:not(:has(+ h2))::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 22px auto 0;
  border-radius: 3px;
  background: #e07b45;
}
.pd .pd-desc .pd-desc-head + h2 {
  margin-top: 0;
}

/* 小さい見出し（補足のコピー） */
.pd .pd-desc.pd-desc-std h3 {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 16px 24px;
  border-radius: 999px;
  background: #fff;
  color: #6b4a33;
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-align: center;
  word-break: auto-phrase;
  text-wrap: balance;
  box-shadow: 0 4px 16px rgba(120, 80, 40, 0.06);
}

/* 写真：枚数に合わせて並べる */
.pd .pd-desc-std .pd-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 32px;
}
.pd .pd-desc-std .pd-photos--1 {
  grid-template-columns: minmax(0, 1fr);
}
.pd .pd-desc-std .pd-photos--3 > img:first-child {
  grid-column: 1 / -1;
}
.pd .pd-desc-std .pd-photos--5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pd .pd-desc.pd-desc-std .pd-photos > img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  background: #f3ece0;
  box-shadow: 0 8px 24px rgba(120, 80, 40, 0.1);
}
.pd .pd-desc.pd-desc-std .pd-photos--1 > img {
  aspect-ratio: auto;
}
/* 見出しの中に写真が入っている商品も、写真を上・文字を下に分ける */
.pd .pd-desc.pd-desc-std h2 .pd-photos,
.pd .pd-desc.pd-desc-std h3 .pd-photos {
  margin-bottom: 36px;
}

/* 囲み（使い方・特長など） */
.pd .pd-desc.pd-desc-std blockquote {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 44px 48px 36px;
  border: none;
  border-top: 5px solid #e9c766;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(120, 80, 40, 0.08);
  text-align: left;
  quotes: none;
}
.pd .pd-desc.pd-desc-std blockquote::before,
.pd .pd-desc.pd-desc-std blockquote::after {
  content: none;
  display: none;
}
.pd .pd-desc.pd-desc-std blockquote p {
  font-size: 15px;
}
.pd .pd-desc.pd-desc-std blockquote .pd-photos {
  margin: 20px 0 24px;
}
/* 囲みの中の色付きの枠（「こんな方に」の一覧など） */
.pd .pd-desc.pd-desc-std div[style*="background"] {
  margin: 28px 0;
  padding: 26px 28px !important;
  border-radius: 18px;
  background: #fbf5ea !important;
}
.pd .pd-desc.pd-desc-std ul {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.pd .pd-desc.pd-desc-std li {
  padding: 4px 0;
  color: #4a3528;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* スマートフォン */
@media (max-width: 767px) {
  .pd .pd-desc.pd-desc-std {
    margin-left: -4px;
    margin-right: -4px;
    padding: 48px 20px 56px;
    border-radius: 24px;
  }
  .pd .pd-desc .pd-desc-head {
    margin-bottom: 32px;
  }
  .pd .pd-desc .pd-desc-ja {
    font-size: 21px;
  }
  .pd .pd-desc.pd-desc-std p,
  .product-on .pd-desc.pd-desc-std p {
    font-size: 15px;
    line-height: 2;
  }
  .pd .pd-desc.pd-desc-std h2 {
    margin-top: 40px;
    font-size: 20px;
    letter-spacing: 0.06em;
  }
  .pd .pd-desc.pd-desc-std h3 {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 15px;
  }
  .pd .pd-desc-std .pd-photos {
    gap: 8px;
  }
  .pd .pd-desc.pd-desc-std .pd-photos > img {
    border-radius: 12px;
  }
  .pd .pd-desc-std .pd-photos--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd .pd-desc.pd-desc-std blockquote {
    padding: 32px 20px 24px;
    border-radius: 18px;
  }
  .pd .pd-desc.pd-desc-std div[style*="background"] {
    padding: 20px 16px !important;
  }
}

/* 贈答用の「包装紙」「シール」の選択肢（説明文のあとに続く部分） */
.pd .box {
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 56px 48px 24px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid #efe6d6;
}
.pd .box .ttl {
  text-align: center;
}
.pd .box .ttl-2 {
  color: #3d2a1e;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 4px;
}
.pd .box .ttl-2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: #e9c766;
}
.pd .box .ttl-3 {
  margin-top: 12px;
  color: #6b4a33;
  font-size: 14px;
  letter-spacing: 2px;
}
.product-on .box .p-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-left: 0;
  margin-right: 0;
}
.product-on .box .p-area + .p-area {
  margin-top: 16px;
}
.product-on .box .p-area figure {
  width: calc((100% - 64px) / 5);
  max-width: 180px;
  margin: 0;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: #fbf5ea;
}
.product-on .box .p-area figure img {
  border-radius: 10px;
}
.product-on .box .p-area figure figcaption {
  padding-top: 8px;
  color: #4a3528;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}
@media (max-width: 767px) {
  .pd .box {
    padding: 40px 16px 8px;
    border-radius: 24px;
  }
  .pd .box .ttl-2 {
    font-size: 20px;
  }
  .product-on .box .p-area {
    gap: 10px;
  }
  .product-on .box .p-area figure {
    width: calc((100% - 20px) / 3);
    padding: 8px 8px 6px;
  }
}
