@charset "utf-8";

/* ==========================================================
   カーネーションドライハーブ 商品ページ  herb-page.css
   接頭辞: herb-   ラッパー: .herb-page
   設置先（想定）: https://gigaplus.makeshop.jp/peachpig/herbp/herb-page.css
   ルール:
   ・全て .herb-page 配下に限定（ショップ全体と衝突させない）
   ・margin / padding は全て !important（メイクショップ対策）
   ・中央寄せしたい要素は text-align:center を明示
   ・ブレークポイントは 600px に統一
   ========================================================== */

/* ---------- ベース ---------- */
.herb-page{
  width:100%;
  max-width:1200px;
  margin:0 auto!important;
  padding:0 16px!important;
  box-sizing:border-box;
  font-family:"Yu Gothic Medium","游ゴシック Medium","YuGothic","游ゴシック体","Noto Sans JP",sans-serif;
  letter-spacing:2px;
  line-height:1.8;
  text-align:left!important;
}
.herb-page *,
.herb-page *::before,
.herb-page *::after{
  box-sizing:border-box;
}
.herb-page h2,
.herb-page h3,
.herb-page p,
.herb-page ul,
.herb-page dl,
.herb-page dd{
  margin:0!important;
  padding:0!important;
}
.herb-page img,
.herb-page iframe{
  max-width:100%;
  height:auto;
  display:block;
}

/* リンク：ラッパー内だけ色・下線を消す（ボタンは下で個別に色指定） */
.herb-page a:link,
.herb-page a:visited,
.herb-page a:hover,
.herb-page a:active{
  color:inherit;
  text-decoration:none;
}

/* ---------- ふわっと表示（JSが動いた時だけ隠す） ---------- */
.herb-page.is-js .fade-up{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .7s ease-out,transform .7s ease-out;
}
.herb-page.is-js .fade-up.show{
  opacity:1;
  transform:none;
}
@media (prefers-reduced-motion:reduce){
  .herb-page.is-js .fade-up{
    opacity:1;
    transform:none;
    transition:none;
  }
}

/* ---------- ヒーロー（画像＋タイトル） ---------- */
.herb-page .herb-hero{
  position:relative;
  width:100%;
  max-width:1000px;
  margin:50px auto!important;
  text-align:center!important;
}
.herb-page .herb-hero img{
  width:100%;
}
.herb-page .herb-hero-name{
  /* 画像の左端にぴったり付く大きな白ボックス（画像の幅48%×高さ80%、上下中央） */
  position:absolute;
  top:10%;
  left:0;
  width:48%;
  height:80%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  margin:0!important;
  padding:30px 30px 30px 9%!important;
  font-size:clamp(20px,2.5vw,26px);
  font-weight:800;
  line-height:1.6;
  text-align:left!important;
  background-color:rgba(255,255,255,.7);
  border-radius:0;
}
.herb-page .herb-hero-sub{
  display:block;
  margin-bottom:.6em!important;
  font-size:clamp(16px,2.5vw,18px);
  font-weight:500;
  color:darkslategray;
}

/* ---------- 動画（charlla） ---------- */
.herb-page .herb-douga{
  width:100%;
  max-width:500px;
  margin:80px auto!important;
  text-align:center!important;
}
.herb-page .herb-douga iframe{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1 / 1;
  border:0;
}
.herb-page .herb-douga-text{
  margin-top:15px!important;
  font-size:14px;
  line-height:1.6;
  text-align:center!important;
}

/* ---------- 特長ブロック（画像＋説明） ---------- */
.herb-page .herb-feature{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:50px;
  width:100%;
  max-width:1200px;
  margin:100px auto 50px!important;
}
.herb-page .herb-feature-pic{
  width:50%;
  max-width:500px;
}
.herb-page .herb-feature-body{
  width:40%;
  max-width:400px;
  text-align:left!important;
}
.herb-page .herb-feature-title{
  margin-bottom:.6em!important;
  font-size:clamp(20px,2.5vw,22px);
  font-weight:500;
  line-height:1.6;
  text-align:left!important;
}
.herb-page .herb-feature-text{
  margin-bottom:.8em!important;
  font-size:clamp(16px,2.5vw,18px);
  text-align:left!important;
}
.herb-page .herb-feature-text:last-child{
  margin-bottom:0!important;
}
.herb-page .herb-list{
  list-style:none;
  font-size:clamp(16px,2.5vw,18px);
  text-align:left!important;
}
.herb-page .herb-list li{
  padding-left:1em!important;
  text-indent:-1em;
}
.herb-page .herb-list li::before{
  content:"\30FB"; /* 「・」。文字コードに左右されない書き方 */
}

/* ---------- 縦線 ---------- */
.herb-page .herb-vline-box{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100px;
  margin-bottom:50px!important;
}
.herb-page .herb-vline{
  width:1px;
  height:100px;
  background-color:#000;
}

/* ---------- HOW TO USE ---------- */
.herb-page .herb-howto-head{
  margin:0 auto!important;
  text-align:center!important;
}
.herb-page .herb-howto-title,
.herb-page .herb-howto-sub{
  width:100%;
  margin:0!important;
  padding:0!important;
  font-size:20px;
  font-weight:normal;
  line-height:1.8;
  text-align:center!important;
}
.herb-page .herb-howto{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:40px;
  width:100%;
  max-width:1200px;
  margin:0 auto!important;
  padding:40px 0!important;
}
.herb-page .herb-howto-pic{
  width:50%;
}
.herb-page .herb-howto-body{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:15px;
  text-align:left!important;
}
.herb-page .herb-howto-title2{
  font-size:clamp(18px,2.5vw,22px);
  font-weight:700;
  color:#696969;
  text-align:left!important;
}
.herb-page .herb-howto-text{
  font-size:clamp(14px,2vw,16px);
  color:#696969;
  line-height:1.8;
  text-align:left!important;
}
.herb-page a.herb-btn,
.herb-page a.herb-btn:link,
.herb-page a.herb-btn:visited,
.herb-page a.herb-btn:hover,
.herb-page a.herb-btn:active{
  align-self:flex-start;
  display:inline-block;
  width:auto;
  padding:10px 20px!important;
  border:2px solid #696969;
  border-radius:6px;
  background-color:transparent;
  color:#696969;
  font-size:clamp(14px,2vw,16px);
  text-align:center!important;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .3s;
}
.herb-page a.herb-btn:hover{
  background-color:rgba(105,105,105,.1);
}
/* ---------- 関連商品（小さめの画像＋説明） ----------
   herb-page.css の「商品詳細」セクションの前あたりに追加してください */
.herb-page .herb-related{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:40px;
  width:100%;
  max-width:800px;
  margin:0 auto!important;
  padding:24px 0!important;
}
.herb-page .herb-related-pic{
  flex:0 0 200px;
  width:200px;
  border-radius:8px;
}
.herb-page .herb-related-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  text-align:left!important;
}
.herb-page .herb-related-title{
  font-size:clamp(16px,2.5vw,20px);
  font-weight:700;
  color:#696969;
  text-align:left!important;
}
.herb-page .herb-related-text{
  font-size:clamp(13px,2vw,15px);
  color:#696969;
  line-height:1.8;
  text-align:left!important;
}

/* スマホ（600px以下）は herb-page.css の @media (max-width:600px) の中に追加 */
@media screen and (max-width:600px){
  .herb-page .herb-related{
    gap:16px;
    padding:16px 0!important;
  }
  .herb-page .herb-related-pic{
    flex:0 0 120px;
    width:120px;
  }
}
/* ---------- 商品詳細 ---------- */
.herb-page .herb-detail{
  width:100%;
  max-width:1200px;
  margin:0 auto 50px!important;
  text-align:left!important;
}
.herb-page .herb-detail-title{
  margin:100px 0 0!important;
  padding:20px 0 20px 50px!important;
  border-top:2px solid #ccc;
  border-bottom:2px solid #ccc;
  font-size:clamp(15px,4vw,20px);
  font-weight:bold;
  color:#595857;
  text-align:left!important;
}
.herb-page .herb-spec{
  max-width:100%;
}
.herb-page .herb-spec-row{
  display:flex;
  align-items:flex-start;
  gap:20px;
  padding:24px 0 24px 50px!important;
  border-bottom:1px solid #ddd;
}
.herb-page .herb-spec dt{
  flex:0 0 120px;
  font-size:clamp(13px,4vw,15px);
  text-align:left!important;
}
.herb-page .herb-spec dd{
  flex:1;
  min-width:0;
  font-size:clamp(13px,4vw,15px);
  text-align:left!important;
}
.herb-page .herb-price{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:4px 24px;
}
.herb-page .herb-note{
  display:inline-block;
  margin-top:12px!important;
  padding:6px 12px!important;
  background-color:#e0e0e0;
  font-size:13px;
  line-height:1.6;
  text-align:left!important;
}

/* ---------- 人気のハーブ（スライダー） ---------- */
.herb-page .herb-popular-title{
  margin:100px auto 50px!important;
  font-size:clamp(18px,2.5vw,20px);
  font-weight:normal;
  text-align:center!important;
}
.herb-page .herb-slider-wrap{
  width:100%;
  max-width:900px;
  margin:0 auto!important;
  padding:0!important;
}
.herb-page .herb-slider{
  display:flex;
  gap:16px;
  padding:0 0 8px!important;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.herb-page .herb-slide{
  flex:0 0 300px;
  min-width:300px;
  scroll-snap-align:start;
}
.herb-page .herb-slide a{
  display:block;
}
.herb-page .herb-slide-img{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  border-radius:8px;
  overflow:hidden;
}
.herb-page .herb-slide-img img{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.herb-page .herb-slide-text{
  width:80%;
  margin:10px auto!important;
  font-size:14px;
  color:#333;
  text-align:center!important;
}

/* ==========================================================
   スマホ（600px以下）
   ========================================================== */
@media screen and (max-width:600px){

  /* ヒーロー画像：スマホでは正方形に切り抜き、画像の右側を表示する */
  .herb-page .herb-hero img{
    aspect-ratio:1 / 1;
    object-fit:cover;
    object-position:right center;
  }

  /* ヒーロー：右端からはみ出さないよう left/right 両指定 */
  .herb-page .herb-hero-name{
    top:50%;
    left:5%;
    right:5%;
    width:auto;
    height:auto;
    transform:translateY(-50%);
    align-items:center;
    padding:5%!important;
    text-align:center!important;
    background-color:rgba(216,221,226,.7); /* 共通CSS .pp-ing .bcolor（スマホ）と同じ */
  }

  /* 動画 */
  .herb-page .herb-douga{
    width:90%;
  }

  /* 特長ブロック：縦積み */
  .herb-page .herb-feature{
    flex-direction:column;
    gap:30px;
  }
  .herb-page .herb-feature-pic,
  .herb-page .herb-feature-body{
    width:90%;
    max-width:500px;
  }

  /* 縦線 */
  .herb-page .herb-vline-box{
    height:100px;
    margin-top:20px!important;
    margin-bottom:0!important;
  }
  .herb-page .herb-vline{
    height:80px;
  }

  /* HOW TO USE：縦積み */
  .herb-page .herb-howto{
    flex-direction:column;
    align-items:center;
    gap:20px;
  }
  .herb-page .herb-howto-pic{
    width:100%;
  }
  .herb-page .herb-howto-body{
    flex:none;
    width:100%;
  }
  .herb-page .herb-howto-title2{
    margin-bottom:0!important;
  }

  /* 商品詳細 */
  .herb-page .herb-detail-title{
    margin-top:50px!important;
    padding:14px 0 14px 5px!important;
    font-size:clamp(14px,4vw,15px);
  }
  .herb-page .herb-spec-row{
    gap:12px;
    padding:16px 0 16px 5%!important;
  }
  .herb-page .herb-spec dt{
    flex:0 0 5.5em;
    font-size:14px;
  }
  .herb-page .herb-spec dd{
    font-size:13px;
  }
  .herb-page .herb-price{
    flex-direction:column;
    gap:4px;
  }

  /* スライダー：次のスライドをのぞかせる */
  .herb-page .herb-slider{
    gap:12px;
    padding:0 18% 8px 0!important;
  }
  .herb-page .herb-slide{
    flex:0 0 82%;
    min-width:82%;
  }
}

/* ---------- 固定バナー（レシピ集への案内）----------
   共通CSS（.pp 配下）と同じ見た目を .herb-page 配下に用意したものです。
   PC：画面右端の縦中央（縦書き）／スマホ（600px以下）：画面下部。
   herb-page.css の末尾（お気に入りボタンの塊の前）に追加してください。 */

/* PC / スマホ 出し分け（<br class="only-sp"> 用） */
.herb-page .only-sp{ display:none!important; }
@media screen and (max-width:600px){
  .herb-page .only-sp{ display:block!important; }
}

.herb-page .fixed-banner{
  background:rgba(150,173,169,1);
  box-shadow:0 0 5px rgba(0,0,0,.3);
  z-index:9999;
  font-size:18px;
  color:#fff;
}
.herb-page .fixed-banner a,
.herb-page .fixed-banner a:link,
.herb-page .fixed-banner a:visited,
.herb-page .fixed-banner a:hover,
.herb-page .fixed-banner a:active{
  color:#fff;
  text-decoration:none;
}

/* PC：画面右端の縦中央 */
@media screen and (min-width:601px){
  .herb-page .fixed-banner{
    position:fixed;
    top:50%;
    right:0;
    transform:translateY(-50%);
    width:40px;
    writing-mode:vertical-rl;
    text-orientation:upright;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:15px 10px!important;
  }
}

/* スマホ：画面下部 */
@media screen and (max-width:600px){
  .herb-page .fixed-banner{
    position:fixed;
    left:0;
    bottom:0;
    width:100%;
    padding:10px 15px!important;
    text-align:center!important;
    writing-mode:horizontal-tb;
  }
  /* バナーに隠れないよう末尾に余白 */
  .herb-page{ padding-bottom:60px!important; }
}

/* ==========================================================
   ※ クリエイターモードのお気に入りボタン（ショップ側の要素）
   元ページのstyleにあったものをそのまま移植。
   ラッパー外の要素なので .herb-page 配下ではありません。
   他ページのCSSで既に指定済みなら、この塊は削除してOKです。
   ========================================================== */
.item-favorite a{
  font-size:var(--font-size-std);
  border:1px solid var(--favorite);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  width:100%;
  height:28px;
  border-radius:2px;
  margin-top:12px!important;
  padding:20px!important;
}