/* セクション全体 */
#funeral-plan-list {
    padding: 40px 20px;
    background-color: #F2EBDC;
    background-image: linear-gradient(rgba(242, 241, 240, 0.85), rgba(242, 241, 240, 0.85)),url('/wp-content/themes/akitsusousai/assets/images/plan/plan_haikei.jpg'); /* ←画像パスは適宜変更 */
    background-size: cover;       /* 画面にフィットさせる */
    background-position: center;  /* 中央寄せ */
    background-repeat: no-repeat; /* 繰り返しなし */
  }


/* 全体レイアウト（見出し & プランカード） */
.plan-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between; /* 左右配置 */
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px; /* 左右の間隔を調整 */

}

/* 左側 (h2 → p の順番) */
.plan-header {
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: upright;
    display: flex;
    flex-direction: column; /* 🔥 h2 → p の順番 */
    align-items: flex-start;
    text-align:left; /* 🔥 右寄せ (縦書き) */
    width: 100px; /* 幅を固定 */
}

/* 縦書きの見出し */
.plan-header h2 {
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 10px; /* 🔥 h2 と p の間隔を調整 */
}

/* 縦書きの説明文 */
.plan-header p {
    font-size: 1.4rem;
    color: #ffffff;
    line-height: 2;
}

/* 右側のプランコンテナ (縦に並ぶ) */
.plan-list-container {
    display: flex;
    flex-direction: column; /* ✅ 縦並びに */
    align-items: center; /* ✅ 中央寄せ */
    gap: 40px; /* ✅ カードの間隔 */
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 右側のプランカード */
.plan-list-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;

    width: 100%;
    max-width: 1000px;
    text-align: left;
    position: relative;
}

/* プラン内容 */
.plan-list-content {
    display: flex;
    justify-content: space-between; /* 左右に分ける */
    align-items: flex-start; /* 上揃え */
    gap: 20px; /* 間隔 */
    padding: 20px 40px;
    text-align: left;
    flex-wrap: wrap; /* レスポンシブ対応 */
  }

  .plan-list-text-block {
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: var(--fs__m);
    display: inline-block;
    background-image: url('/wp-content/themes/akitsusousai/assets/images/plan/chokusou_plan_haikei.svg'); /* ✅ 画像パス */
    background-repeat: no-repeat;
    background-position: top left; /* ✅ 左上に表示 */
    background-size: 150px 150px; /* ✅ 画像サイズを調整 */
  }


  /* バッジ画像 */
.plan-list-corner-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: auto;
    z-index: 10;
}

/* プラン画像 */
.plan-list-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.plan-list-content h3 {
    font-size: var(--fs__3l);
    margin-bottom: 15px;
}

.plan-list-description {
    font-size: var(--fs__l);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* テキストボックスの配置 */
.plan-list-text-boxes {
    display: flex;
    flex-wrap: wrap; /* ✅ 複数のボックスを折り返し可能に */
    gap: 10px; /* ✅ ボックス間のスペース */
    margin-bottom: 15px;
    max-width: 100%; /* ✅ 親要素の幅を超えないように */
  }

/* テキストボックスのスタイル */
.plan-list-text-box {
    display: flex; /* ✅ フレックスボックスを使って中央配置 */
    align-items: center; /* ✅ 縦方向の中央揃え */
    justify-content: center; /* ✅ 横方向の中央揃え */
    border: 1px solid #333;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: var(--fs__m);
    color: #333;
    white-space: nowrap;
    max-width: 150px;
  }


/* 金額部分 */
.plan-list-price {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    font-size: var(--fs__5l);
    font-weight: bold;
    color: #C24A57;
    white-space: nowrap;
    justify-content: center;
    text-align: right;
    gap: 8px;
  }

  .plan-list-price span {
    display: inline-block;
  }

  .price-value {
    display: flex;
    align-items:center; /* 🔥 数字と単位を下揃えに */
    font-size: var(--fs__4l);
    gap: 4px;
  }

  .price-unit-small {
    font-size: var(--fs__1l);
    color: #333;
    line-height: 1;
  }



  /* ラベル2つを横並びにグループ化 */
.price-label-wrapper {
    display: inline-flex;
    gap: 8px;
    margin-right: 12px;
    align-items: center;
  }

  /* 既存: 税込価格ラベル */
  .price-list-small {
    font-size: var(--fs__s);
    color: #fff;
    background-color: #8C0085;
    display: inline-block;
    line-height: 1.2;
    text-align: center;
    padding: 5px 8px;
    border-radius: 4px;
  }

  /* 新規: 会員価格ラベル */
  .price-member-label {
    font-size: var(--fs__s);
    color: #fff;
    background-color: #daa520;
    display: inline-block;
    line-height: 1.2;
    text-align: center;
    padding: 5px 8px;
    border-radius: 4px;
  }

  .list-slide-images {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
  }

  .list-slide-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: smoothFade 8s infinite ease-in-out;
    transition: opacity 1s ease-in-out;
  }

  .list-slide-images img:nth-child(1) {
    animation-delay: 0s;
  }
  .list-slide-images img:nth-child(2) {
    animation-delay: 4s;
  }

  @keyframes smoothFade {
    0%   { opacity: 0; }
    10%   { opacity: 1; }
    40%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
  }



/* 1024px以下（タブレット） */
@media screen and (max-width: 1024px) {
  .plan-list-container {
    padding: 30px 16px;
    gap: 30px;
  }

  .plan-list-content {
    padding: 20px 24px;
    gap: 16px;
  }

  .plan-list-content h3 {
    font-size: var(--fs__2l);
  }

  .plan-list-description {
    font-size: var(--fs__m);
    margin-bottom: 20px;
  }

  .plan-list-text-box {
    font-size: var(--fs__s);
    padding: 4px 10px;
  }
}

/* 768px以下（スマホ） */
@media screen and (max-width: 768px) {
  .plan-list-container {
    padding: 24px 12px;
    gap: 20px;
  }

  .plan-list-card {
    width: 100%;
  }

  .plan-list-content {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .plan-list-img {
    height: 200px;
  }

  .plan-list-price {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center; /* スマホでも中央横並び */
    font-size: var(--fs__3l);
    text-align: center;
    gap: 15px;
  }

  .price-label-wrapper {
    flex-direction: row;
    gap: 6px;
    margin-right: 0;
  }

  .price-list-small,
  .price-member-label {
    font-size: var(--fs__s);
    padding: 3px 6px;
    line-height: 1.2;
  }

  .price-value {
    font-size: var(--fs__3l);
    gap: 3px;
    align-items: baseline;
  }

  .price-unit-small {
    font-size: var(--fs__s);
  }
}

/* 480px以下（小型スマホ） */
@media screen and (max-width: 480px) {
  .plan-list-price {
    font-size: var(--fs__2l);
    gap: 10px;
  }

  .price-list-small,
  .price-member-label {
    font-size: var(--fs__s);
    padding: 2px 5px;
  }

  .price-value {
    font-size: var(--fs__2l);
  }

  .price-unit-small {
    font-size: var(--fs__xs);
  }
}
