/*****************************************
  共通テキスト系
*****************************************/

.up-d_yearly-item {
  text-align: left;
  border-bottom: 2px solid #4f4f4f;
  font-weight: 700;
  font-size: 150%;
  margin-bottom: 20px;
  padding-bottom: 2px;
  width: 100%;
}

.up-d_yearly-item-subtitle {
  font-size: 16px;
  font-weight: bold;
}

.up-d_yearly-text {
  font-size: 14px;
  font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3',
               'Hiragino Kaku Gothic Pro', sans-serif;
  padding-bottom: 20px;
  line-height: 1.7;
}

/*****************************************
  ロイヤルシリーズ
*****************************************/

.up-d-royal-items {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 20px;
}

.up-d-royal-item {
  text-align: center;
}

.up-d-royal-item a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.up-d-royal-item a:hover {
  opacity: 0.7;
}

.up-d-royal-item img {
  width: 700px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.up-d-title {
  margin-top: 8px;
  font-size: 16px;
  color: #333;
}

.up-d-delivery-flow-img {
  display: flex;
  justify-content: center;
}



/*****************************************
  かけぽんページ
*****************************************/

.up-d_recipe-taitle {
  font-size:16px;
  font-weight: bold;
}

.up-d_kake-title,
.up-d_priduct-item-subtitle {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 2px solid #4f4f4f;
  margin-bottom: 20px;
  padding-bottom: 6px;
}

.up-d_priduct-item-subtitle {
  display: table;
  margin: 0 auto 20px;
}

/* ===== 画像＋テキスト ===== */
.up-d-media-box {
  display: flex;
  align-items: center;
  gap: 40px;
}

.up-d-media-image img {
  width: 500px;
  max-width: 100%;
  height: auto;
  display: block;
}

.up-d-media-text {
  font-size: 16px;
  flex: 1;
  line-height: 1.7;
}

/*****************************************
  商品グリッド
*****************************************/

/* グレー背景はフル幅 */
.up-d-product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
  padding: 60px 40px;
  margin: 60px 0;
  justify-items: center;
  background-color: #f7f7f7;
  width: 100%;
  box-sizing: border-box;
}

.up-d-product-list-white {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
  padding: 20px 40px;
  margin: 60px 0;
  justify-items: center;
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.up-d-product-list > .up-d_priduct-item-subtitle {
  grid-column: 1 / -1;
}

.up-d-product-item {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;       /* マス幅90% */
  max-width: 420px; /* 最大幅 */
  box-sizing: border-box;
  margin: 0 auto;   /* 中央寄せ */
}

.up-d-product-item img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 750 / 421;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.up-d-product-text {
  margin-bottom: 14px;
  line-height: 1.7;
}

.up-d-product-item a {
  transition: opacity 0.3s ease;
}

.up-d-product-item a:hover {
  opacity: 0.6;
}

.up-d-product-item > a:last-child {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #333;
  text-decoration: none;
  color: #333;
  width: fit-content;
  font-size: 16px;
}

/*****************************************
  YouTube
*****************************************/

.up-d-youtube {
  max-width: 900px;
  margin: 60px auto;
  cursor: pointer;
}

.up-d-youtube-thumb {
  position: relative;
}

.up-d-youtube-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.up-d-youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
}

.up-d-youtube-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.up-d_youtube-link {
  text-align: center;
  margin-top: 20px;
}

.up-d_youtube-link a {
  display: inline-block;
  font-size: 16px;
  padding: 10px 20px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  transition: 0.3s;
}

.up-d_youtube-link a:hover {
  background: #000;
  color: #fff;
}

.up-d_youtube_url {
  display: none;
}
[data-element-id] .up-d_youtube_url {
  display: block !important;
}

.up-d_youtube_url-registration {
  border: 2px solid #FDC44F;
  padding: 3px 8px;
  width: 800px;
  max-width: 100%;
  box-sizing: border-box;
}

.up-d_youtube-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.up-d_youtube-wrap iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  border: 0;
  display: block;
}

@media screen and (max-width: 768px) {

.up-d_yearly-item,
.up-d_yearly-item-subtitle,
.up-d_yearly-text,
.up-d-media-box,
.up-d-product-list,
.up-d-product-list-white,
.up-d_youtube-wrap,
.up-d_youtube-link,
.up-d-delivery-flow-img {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/*****************************************
  年間契約アイテム
*****************************************/

.up-d-media-box {
  width:90%;
}

.up-d_yearly-item {
    position: relative;
    width: 90%; 
    margin: 20px auto;
    padding: 0 5%; 
    padding-bottom: 12px; 
    font-size: 18px;
    font-weight: bold;
    text-align: left; 
    border-bottom: none;
  }

  /* 下線 */
  .up-d_yearly-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 2px solid #4f4f4f; 
    z-index: -1;
  }

  .up-d_yearly-item-subtitle {
    position: relative;
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 5px 0; /* 上:0 下:20px 左右0 */
    width: 100%;        /* 幅100% */
    text-align: left;   /* 左寄せ */
  }

  .up-d_yearly-item-subtitle::after {
    content: none;
  }

.up-d_yearly-text {
  padding-bottom: 20px;
  line-height: 1.7;
}
/*****************************************
  ローヤルゼリー縦並び（SP）
*****************************************/
.up-d-royal-items {
  display: flex;           /* 横並びの上書き */
  flex-direction: column;  /* 縦並びに */
  align-items: center;     /* 中央寄せ */
  gap: 20px;               /* アイテム間の余白 */
}

.up-d-royal-item {
  width: 100%;             /* SPではフル幅 */
  max-width: 500px;        /* 必要に応じて最大幅 */
  text-align: center;      /* 画像・タイトルを中央寄せ */
}

.up-d-royal-item img {
  width: 600px;
  height: auto;
}


/*****************************************
  画像＋テキスト（縦並び）
*****************************************/

.up-d-media-box {
  display: block;
}

.up-d-media-image img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.up-d-media-text {
  font-size: 14px;
}

/*****************************************
  商品グリッド（1列表示）
*****************************************/

.up-d-product-list,
.up-d-product-list-white {
  display: block;
  padding: 30px 15px;
  margin: 30px auto;
}

.up-d_priduct-item-subtitle {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 2px solid #4f4f4f;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.up-d-product-item {
  width: 100%; /* SPはフル幅 */
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  box-sizing: border-box;
}

.up-d-product-item img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.up-d-product-text {
  margin-bottom: 12px;
}

/* 最後のリンクボタン */
.up-d-product-item > a:last-child {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #333;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}

/*****************************************
  YouTube
*****************************************/

.up-d-youtube {
  max-width: 900px;
  margin: 60px auto;
  cursor: pointer;
}

.up-d-youtube-thumb {
  position: relative;
}

.up-d-youtube-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.up-d-youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
}

.up-d-youtube-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.up-d_youtube-link {
  text-align: center;
  margin-top: 20px;
}

.up-d_youtube-link a {
  display: inline-block;
  font-size: 16px;
  padding: 10px 20px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  transition: 0.3s;
}

.up-d_youtube-link a:hover {
  background: #000;
  color: #fff;
}

/* youtube URL表示 */
.up-d_youtube_url {
  display: none;
}
[data-element-id] .up-d_youtube_url {
  display: block !important;
}

.up-d_youtube_url-registration {
  border: 2px solid #FDC44F;
  padding: 3px 8px;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

/* YouTube iframe */
.up-d_youtube-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

  .up-d_youtube-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;           /* 左端に寄せる */
    width: 100%;       /* 横幅100% */
    height: 100%;
    transform: none;   /* 中央寄せの変形は無効化 */
    border: 0;
    display: block;
  }

/*****************************************
  デリバリー画像フル幅
*****************************************/

.up-d-delivery-flow-img {
  width: 100%;
}

.up-d-delivery-flow-img img {
  width: 100%;
  height: auto;
  display: block;
}

}
 
