#package_area {
  background: url("../img/package/package_bg.webp") no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  position: relative;
  padding: 60px 0;
  margin: 0 auto;
  z-index: 0;
  min-height: 100vh;
}

.package_logo {
  width: 30%;
  max-width: 500px;
  margin: 0 auto;
}

/* パッケージコンテンツ全体のコンテナ - 縦並びに変更 */
.package-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 250px 20px;
}

/* package-contentを横並びレイアウトに変更 */
.package-content {
  display: flex;
  align-items: center; /* 左右のコンテンツを中央で揃える */
  gap: 30px;
  width: 100%;
  max-width: 750px;
  margin-bottom: 0; /* gap で管理するため */
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

/* 左側の画像コンテナ */
.package-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 垂直方向の中央揃えを追加 */
  text-align: center;
  width: 150px; /* 固定幅で統一 */
  min-width: 150px; /* 最小幅も指定 */
  height: 150px; /* 高さも固定 */
}

/* 右側のコンテンツエリア */
.package-content-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px; /* 各要素間のスペース */
  min-height: 150px;
}

.package-container h2 {
  margin: 10px 0 0 0;
  font-size: 1.2rem;
  color: #020826;
  text-align: center;
}

/* package-contentのh2を右上に配置 */
.package-content h2 {
  margin: 0;
  font-size: 1.5rem;
  font-family: "yu-mincho-pr6", YuMincho, "Yu Mincho", sans-serif; /* キャラクター名と同じフォント */
  font-weight: 400; /* キャラクター名と同じウェイト */
  color: #020826;
  text-align: left;
  flex-shrink: 0; /* タイトルエリアの固定 */
}

.cd-image, .package-image {
  height: 120px;
  width: auto;
  max-width: 140px; /* 統一されたサイズ */
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  display: block;
  margin: 0 auto;
}

/* GAME DISCの画像を他と同じサイズに調整 */
.cd-image {
  min-width: 120px; /* 最小幅を大きく設定 */
  max-width: 150px; /* 最大幅も少し大きく */
  height: 130px; /* 高さも少し大きく */
  width: auto;
  object-fit: contain;
  transform: scale(1.1); /* 1.1倍に拡大 */
}

/* 基本説明文エリア */
.text-box {
  text-align: left;
  padding: 0;
  margin: 0;
}

.text-box p,
.text-box span {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #020826;
  line-height: 1.8;
  text-align: left;
  margin: 0;
  letter-spacing: 0.14em; /* キャラクター紹介文と同じ文字間隔 */
}

/* 追加説明文エリア */
.description-box {
  text-align: left;
  padding: 10px 0 0 0;
  margin: 0;
  border-top: 1px solid rgba(2, 8, 38, 0.2); /* 区切り線 */
}

.description-box p,
.description-box span {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400; /* 少し軽めのフォントウェイト */
  font-size: 0.85rem; /* 少し小さめのフォントサイズ */
  color: #020826;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  opacity: 0.9; /* 少し薄めにして階層を表現 */
  letter-spacing: 0.14em; /* キャラクター紹介文と同じ文字間隔 */
}

/* h2タイトルとボタンを横並びにするためのコンテナ */
.title-with-button {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0px;
}

.title-with-button h2 {
  margin: 0; /* h2のマージンをリセット */
  font-size: 1.5rem;
  font-family: "yu-mincho-pr6", YuMincho, "Yu Mincho", sans-serif;
  font-weight: 400;
  color: #020826;
  flex-shrink: 0; /* タイトルが縮まないように */
}

/* APPEND DISCの詳細ボタン用スタイル */
.append-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 8px 4px 8px;
  margin-left: 15.5rem;
  margin-bottom: 0.14rem;
}

.append-details-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(2, 8, 38, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 8, 38, 0.25);
}

.append-details-btn img {
  height: 30px;
  width: auto;
}

.append-details-btn span {
  white-space: nowrap;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #020826;
}

/* 基４先生描きおろし特別漫画の横にTrialReadingボタンを配置するためのスタイル */
.special-comic-line {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trial-reading-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-radius: 6px;
  text-decoration: none;
}

.trial-reading-btn img {
  height: 20px;
  width: auto;
}

.trial-reading-btn span {
  white-space: nowrap;
}

.append-disc-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
}

.append-disc-line p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #020826;
  line-height: 1.8;
  letter-spacing: 0.14em;
  flex: none;
}

/* 新しく作成したリンクのスタイル調整（下線を消し、文字色を周りと同じにする） */
.package-link {
  text-decoration: none; /* 下線を削除 */
  color: inherit; /* 文字色を親要素から継承 */
  transition: all 0.3s ease; /* ホバーエフェクトを滑らかにする */
}

/* ブロック全体にマウスが乗ったときのスタイル */
.package-link:hover {
  transform: translateY(-3px); /* カードが少し上に浮き上がる */
  box-shadow: 0 8px 20px rgba(2, 8, 38, 0.2); /* 影を付けて立体感を出す */
  background: rgba(255, 255, 255, 0.15); /* 背景を少し明るくする */
}

/* APPEND DISCのリンクエリアを基準に設定 */
.package-link {
  position: relative; /* 疑似要素を配置するための基準点にする */
  overflow: hidden;   /* 角丸に合わせて画像がはみ出ないようにする */
}

/* リンクエリアの前面に画像のレイヤーを追加 */
.package-link::before {
  content: ''; /* 疑似要素を表示するためには必須 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* 背景画像の設定 */
  background-image: url('../img/package/append_a.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* 画像がエリア内に収まるように調整 */

  /* 透明度の設定 */
  opacity: 0.2; /* 10%の不透明度。0に近いほど透明になります */

  /* マウスイベントを無効化し、下のリンクがクリックされるようにする */
  pointer-events: none;
}

/* ホバー時に表示する、白い半透明レイヤーの準備 */
.package-link::after {
  content: ''; /* 疑似要素の必須記述 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* 最初は完全に透明にしておく */
  background-color: rgba(255, 255, 255, 0);

  /* ホバー時の色の変化を滑らかにする */
  transition: background-color 0.3s ease;

  /* このレイヤーがクリックの邪魔をしないようにする */
  pointer-events: none;
}

/* マウスが乗ったときに、レイヤーを白く半透明にする */
.package-link:hover::after {
  background-color: rgba(255, 255, 255, 0.2); /* 20%の不透明度を持つ白 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  #package_area {
    background: url("../img/package/package_bg_sp.webp") no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    position: relative;
    padding: 60px 0;
    margin: 0 auto;
    z-index: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .package-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .package-container {
    width: 150px; /* モバイルでも幅を統一 */
    min-width: 150px;
    margin: 0 auto; /* 中央配置 */
  }

  .package-content h2 {
    text-align: center;
    margin: 0 0 0 0;
  }

  .text-box,
  .description-box {
    text-align: center;
  }

  .text-box p,
  .description-box p,
  .description-box span {
    text-align: center;
  }

  .package-wrapper {
    padding: 0 10px 150px 10px;
  }

  .append-disc-line {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;                  /* スマホ版では中央揃え */
    gap: 6px;
  }

  .append-disc-line p {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #020826;
    line-height: 1.8;
    letter-spacing: 0.14em;
    text-align: center;                       /* テキスト自体も中央揃え */
  }

  .title-with-button {
    flex-direction: column;
    align-items: center;
    gap: 0px;
    text-align: center;
  }

  .title-with-button h2 {
    text-align: center;
  }

  /* APPEND DISCの詳細ボタン用スタイル */
  .append-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    flex-shrink: 0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px 4px 8px;
    margin-left: 0rem;
    margin-top: -1rem;
    margin-bottom: 0rem;
  }

  .append-details-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(2, 8, 38, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 8, 38, 0.25);
  }

  .append-details-btn img {
    height: 30px;
    width: auto;
  }

  .append-details-btn span {
    white-space: nowrap;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #020826;
  }

  /* 基４先生描きおろし特別漫画の横にTrialReadingボタンを配置するためのスタイル */
  .special-comic-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
}
