/* ============================================= */
/* 全体ベース                                    */
/* ============================================= */
body {
  height: 100%;     /* Safariで必須 */
  margin: 0;
  font-family: "Cinzel", "Noto Serif JP", serif;
  background: #0a0f29; /* 単色 */
  color: #f4f0ff;
  line-height: 1.7;
  min-height: 100vh; /* 画面全体を確保 */
  display: flex;
  flex-direction: column;
}

/* ============================================= */
/* placeholderの文字サイズと色                     */
/* ============================================= */
.target1::placeholder {
  color: #ed7a9c;
  font-size: 10px;
}
.target2::placeholder {
  font-size: 10px;
color: #666;
}

/* ============================================= */
/* オーブ演出                                    */
/* ============================================= */
.orb-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* 必要に応じて他要素(z-index:1など)に合わせて調整 */
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,180,255,0.9), rgba(120,60,200,0.0));
  filter: blur(3px);
  opacity: 0.7;
  will-change: transform, opacity; /* パフォーマンスのヒント */
  /* transition は JS 側で個別に付けるのでここではデフォルトのみ */
  transition: transform 3s ease-in-out, opacity 3s linear;
  pointer-events: none;
}

/* キーフレームは軽く、動きはJSで個別に付与 */
@keyframes floatOrb {
  from { transform: translate(0,0); }
  to   { transform: translate(var(--dx), var(--dy)); }
}

/* ============================================= */
/* ヘッダーとナビ                                */
/* ============================================= */
.shop-header {
  position: relative;
  display: inline-block;
  background: url('../img/photo_00079.jpg') center center / cover no-repeat;
  border-bottom: 2px solid #6c4cc3;
  text-align: center;
  padding: 100px 20px 150px 20px; /* 上 右 下 左 */
  box-shadow: 0 0 12px rgba(108, 76, 195, 0.8);
  overflow: hidden; /* 擬似要素がはみ出さないように */
}

.shop-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.3) 5%,   /* 真中側を暗く */
    rgba(0, 0, 0, 0.5) 10%,   /* 真中側を暗く */
    rgba(0, 0, 0, 0.6) 20%,   /* 真中側を暗く */
    rgba(0, 0, 0, 0.7) 50%,  /* 中間側を暗く */
    rgba(0, 0, 0, 0.8) 100% /* 外側を暗く */
  );
  pointer-events: none;
}

.shop-header h1 {
  position: relative;
}

.shop-header h1 a {
  position: relative;
  font-family: 'Cinzel', 'Cinzel Decorative', 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 3.4rem;
  letter-spacing: 3px;
  color: #ffffff;
  text-decoration: none;
  animation: glow 2s infinite ease-in-out;
  z-index: 2;
  display: inline-block; /* aタグだけ inline-block にして文字周囲の暗さを調整 */
}

.shop-header h1::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;   /* 広めにして文字周囲をカバー */
  height: 250%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse farthest-corner at center,
    rgba(200, 120, 0, 0.3) 0%,    /* 文字付近は濃いオレンジ寄りの黄色 */
    rgba(200, 130, 0, 0.2) 30%,  /* 徐々に薄く */
    rgba(200, 140, 0, 0.1) 60%,   /* さらに外側で薄く */
    rgba(200, 150, 0, 0) 100%     /* 外側は完全に透明 */
  );
  z-index: 1;
  pointer-events: none;
}

@keyframes glow {
  0%, 100% {
    text-shadow:
      0 0 5px #fff,
      0 0 10px #e8e0ff,   /* 白に近い淡紫 */
      0 0 15px #c0b0ff,   /* 紫寄りの光 */
      0 0 20px #a080ff;   /* 少し濃い紫 */
  }
  50% {
    text-shadow:
      0 0 8px #fff,
      0 0 16px #f0e0ff,
      0 0 24px #c8a0ff,
      0 0 32px #9a5cff;
  }
}

/* ヘッダーナビ背景 */
.shop-header nav {
  background: rgba(75, 31, 127, 0.9); /* 紫系、少し透過 */
  padding: 4px 20px 13px 20px; /* padding: 上 右 下 左; */
  border-radius: 8px; /* 角を丸く */
  display: inline-block; /* 幅を文字列に合わせる場合 */
  position: relative;
  z-index: 10; /* h1::after(1)より前に出す */
}

/* ナビゲーション */
.shop-header nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ナビリンク */
.shop-header nav a {
  color: #f4eaff; /* 文字を明るめの紫系に */
  text-decoration: none;
  font-weight: bold;
  padding: 0 12px; /* 文字の周りの余白 */
  transition: color 0.3s, text-shadow 0.3s;
}

.shop-header nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background: linear-gradient(90deg, #a2d8ff, #ffde8a, #a2d8ff);
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* ホバー時 */
.shop-header nav a:hover {
  color: #fff8b0;
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.shop-header nav a:hover::after {
  width: 100%;
}

/* 現在選択中のカテゴリ */
.shop-header nav a.active {
  color: #ffea00;
  text-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 6px rgba(120,0,200,0.8);
}

/* ============================================= */
/* ヘッダーとナビ (Index以外)                       */
/* ============================================= */
.shop-header2 {
  position: relative;
  display: inline-block;
  background: url('../img/photo_00079.jpg') center center / cover no-repeat;
  border-bottom: 2px solid #6c4cc3;
  text-align: center;
  padding: 10px 20px 10px 20px; /* 上 右 下 左 */
  box-shadow: 0 0 12px rgba(108, 76, 195, 0.8);
  overflow: hidden; /* 擬似要素がはみ出さないように */
}

.shop-header2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.3) 5%,   /* 真中側を暗く */
    rgba(0, 0, 0, 0.5) 10%,   /* 真中側を暗く */
    rgba(0, 0, 0, 0.6) 20%,   /* 真中側を暗く */
    rgba(0, 0, 0, 0.7) 50%,  /* 中間側を暗く */
    rgba(0, 0, 0, 0.8) 100% /* 外側を暗く */
  );
  pointer-events: none;
}

.shop-header2 h1 {
  position: relative;
}

.shop-header2 h1 a {
  position: relative;
  font-family: 'Cinzel', 'Cinzel Decorative', 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 3.4rem;
  letter-spacing: 3px;
  color: #ffffff;
  text-decoration: none;
  animation: glow2 2s infinite ease-in-out;
  z-index: 2;
  display: inline-block; /* aタグだけ inline-block にして文字周囲の暗さを調整 */
}

.shop-header2 h1::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;   /* 広めにして文字周囲をカバー */
  height: 250%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse farthest-corner at center,
    rgba(200, 120, 0, 0.3) 0%,    /* 文字付近は濃いオレンジ寄りの黄色 */
    rgba(200, 130, 0, 0.2) 30%,  /* 徐々に薄く */
    rgba(200, 140, 0, 0.1) 60%,   /* さらに外側で薄く */
    rgba(200, 150, 0, 0) 100%     /* 外側は完全に透明 */
  );
  z-index: 1;
  pointer-events: none;
}

@keyframes glow2 {
  0%, 100% {
    text-shadow:
      0 0 5px #fff,
      0 0 10px #e8e0ff,   /* 白に近い淡紫 */
      0 0 15px #c0b0ff,   /* 紫寄りの光 */
      0 0 20px #a080ff;   /* 少し濃い紫 */
  }
  50% {
    text-shadow:
      0 0 8px #fff,
      0 0 16px #f0e0ff,
      0 0 24px #c8a0ff,
      0 0 32px #9a5cff;
  }
}

/* ヘッダーナビ背景 */
.shop-header2 nav {
  background: rgba(75, 31, 127, 0.9); /* 紫系、少し透過 */
  padding: 4px 20px 13px 20px; /* padding: 上 右 下 左; */
  border-radius: 8px; /* 角を丸く */
  display: inline-block; /* 幅を文字列に合わせる場合 */
  position: relative;
  z-index: 10; /* h1::after(1)より前に出す */
}

/* ナビゲーション */
.shop-header2 nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ナビリンク */
.shop-header2 nav a {
  color: #f4eaff; /* 文字を明るめの紫系に */
  text-decoration: none;
  font-weight: bold;
  padding: 0 12px; /* 文字の周りの余白 */
  transition: color 0.3s, text-shadow 0.3s;
}

.shop-header2 nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background: linear-gradient(90deg, #a2d8ff, #ffde8a, #a2d8ff);
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* ホバー時 */
.shop-header2 nav a:hover {
  color: #fff8b0;
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.shop-header2 nav a:hover::after {
  width: 100%;
}

/* 現在選択中のカテゴリ */
.shop-header2 nav a.active {
  color: #ffea00;
  text-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 6px rgba(120,0,200,0.8);
}

/* ============================================= */
/* フッター                                       */
/* ============================================= */
.shop-footer {
  text-align: center;
  padding: 10px;
  background: #1b1030; /* 単色 */
  border-top: 2px solid #6c4cc3;
  font-size: 0.9rem;
  color: #d2c7ff;
}

.shop-footer a {
  color: #4dd0ff;
  text-decoration: none; /* 下線を消す */
}

.shop-footer a:visited {
  color: #4dd0ff; /* 訪問済みも同じ色 */
}

.shop-footer a:hover {
  color: #ffe9ac; /* ホバー時に少し変えるなら（任意） */
}

/* ============================================= */
/* 言語切替スイッチャー                              */
/* ============================================= */
.language-switcher {
  margin-top: 20px;
  text-align: left;
}

.language-switcher ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.language-switcher li {
  font-size: 14px;
}

.language-switcher li a {
  text-decoration: none;
  color: #ffffff;
  padding: 2px 8px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.language-switcher li.active a,
.language-switcher li a:hover {
  border-bottom-color: #ffffff;
  font-weight: bold;
  color: #ffffff;
}

/* ============================================= */
/* 日本国内向け・海外向けの商品を切り替えられるバー */
/* ============================================= */
/* 固定バー */
.region-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(27, 16, 48, 0.95); /* 濃い紫に変更 */
  display: flex;
  justify-content: center;
  padding: 4px 8px;  /* 高さを少し低く */
  gap: 10px;
  z-index: 9999;
  box-shadow: 0 0 12px rgba(100,50,180,0.7), 0 0 25px rgba(50,0,80,0.6);
}

/* 固定バー内のボタン */
.region-btn {
  background: linear-gradient(135deg, #a05fff, #4b007f); /* ボタンも暗めに */
  color: #fff;
  font-weight: normal;
  padding: 6px 14px;   /* 小さめに調整 */
  font-size: 0.75rem;  /* 文字を少し小さく */
  border-radius: 10px;
  border: 1.5px solid #7d3cff;
  cursor: pointer;
  text-shadow: 0 0 3px #fff, 0 0 6px #b085ff, 0 0 10px #4b007f;
  box-shadow: 0 0 8px rgba(160,130,255,0.6), 0 0 15px rgba(75,0,127,0.5);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.region-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(200,150,255,0.8), 0 0 25px rgba(110,51,204,0.7);
  background: linear-gradient(135deg, #c186ff, #6e33cc);
}

/* 特定商取引法ボタン用（目立たないデザイン） */
.terms-btn {
  background: rgba(255,255,255,0.1); /* 透明感ある背景で控えめに */
  color: #ddd;                        /* 文字色も薄め */
  border: 1px solid rgba(255,255,255,0.2);
  text-shadow: none;
  box-shadow: none;
  font-size: 0.7rem;                  /* 文字を少し小さめ */
  padding: 5px 10px;
  border-radius: 8px;
  margin-left: 8px;
  text-decoration: none;              /* 下線を消す */
  transition: background 0.3s ease, color 0.3s ease;
}

.terms-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;              /* 念のためホバー時も下線なし */
}

/* ============================================= */
/* メイン                                        */
/* ============================================= */
.shop-main {
  padding: 40px 0; /* 上下だけの余白 */
  width: 100%;
  background: linear-gradient(180deg, #0a0f29, #1b1030 80%, #2a1a40);
  flex: 1;
  box-sizing: border-box;
}

.shop-main-inner {
  max-width: 1100px; /* 中央コンテンツの幅 */
  margin: 0 auto;    /* 真ん中に寄せる */
  padding: 0 20px;   /* 両端の余白 */
}

/* ============================================= */
/* 商品リスト・カード                             */
/* ============================================= */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列レイアウト */
  gap: 30px; /* 横・縦の間隔をしっかり確保 */
  padding: 0 20px; /* 左右余白 */
  max-width: 1200px; /* 最大幅 */
  margin: 0 auto; /* ページ中央寄せ */
  justify-content: center; /* グリッド全体を中央に */
  box-sizing: border-box;
}

.product-card {
  background: rgba(30, 0, 60, 0.9); /* さらに濃い紫、透明感少なめ */
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;   /* 中身を縦並び */
  justify-content: space-between; /* ボタンを下寄せ */
  color: #fff;
  box-shadow:
    0 0 12px 3px rgba(162, 216, 255, 0.8),
    0 0 25px 6px rgba(51, 0, 136, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0; /* gap で制御するため margin-bottom は不要 */
  height: 100%; /* 高さを揃える */
  min-height: 320px; /* カードが潰れないよう最低高さ */
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px 4px rgba(162, 216, 255, 0.9),
              0 0 25px 6px rgba(51, 0, 136, 0.7);
}

.product-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #f4eaff;
}

.product-card .price {
  color: #ffde8a;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.product-card .desc {
  font-size: 0.9rem;
  color: #ddd0f0;
  margin-bottom: 15px;
}

/* カード内のボタン配置調整 */
.product-card .magic-action-btn {
  margin: 5px 0; /* ボタン上下に余白を追加 */
  display: inline-block;
}

/* ボタンを縦に並べた時に間隔を少し広めに */
.product-card .magic-action-btn + .magic-action-btn {
  margin-top: 10px;
}

/* 商品詳細 */
.product-detail {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(180, 140, 255, 0.5);
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.product-detail h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff0ff;
}

.product-detail .price {
  font-size: 1.1rem;
  color: #ffe5a0;
  margin-bottom: 15px;
}

.product-detail .desc {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 25px;
  text-align: left; /* ← ここで左寄せに */
}

.region-label {
  font-size: 0.9rem;       /* 文字サイズ調整 */
  margin: 0 0 4px 0;       /* 上:0, 右:0, 下:4px, 左:0 にして価格との隙間を小さく */
  color: #ffd700;          /* 文字色はお好みで */
}

.product-category,
.target-region,
.price {
  margin: 0;          /* 上下の余白をゼロに */
  padding: 2px 0;     /* 必要に応じて少し余白を入れる */
}

/* タブレットサイズ（〜1024px）で2列 */
@media (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホサイズ（〜600px）で1列 */
@media (max-width: 600px) {
  .product-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================= */
/* 固定カートボタン                                */
/* ============================================= */
#cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #c9b27c;
  color: #0f3d2e;
  padding: 0.8rem 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* ============================================= */
/* カート                                         */
/* ============================================= */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ============================================= */
/* カートテーブル                                  */
/* ============================================= */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(20, 10, 40, 0.6); /* 暗めの半透明背景 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(162,216,255,0.4), 0 0 30px rgba(75,31,127,0.3);
}

.cart-table th,
.cart-table td {
  padding: 12px 15px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  border-bottom: 1px solid rgba(162,216,255,0.2);
  white-space: nowrap;
}

.cart-table th {
  background: rgba(75,31,127,0.6); /* ヘッダーの濃い紫 */
  text-shadow: 0 0 4px #a2d8ff;
}

.cart-table tr:last-child td {
  border-bottom: none; /* 最下行の下線を消す */
}

.cart-table tr:hover {
  background: rgba(110,51,204,0.3); /* ホバーで少し光らせる */
}

/* ============================================= */
/* index.php 商品写真                             */
/* ============================================= */
.product-image {
  width: 100%;        /* カード幅に合わせる */
  height: auto;       /* 縦横比を維持 */
  border-radius: 12px; /* 角丸 */
  margin-bottom: 10px;
  object-fit: cover;  /* トリミングして表示 */
}

/* ============================================= */
/* detail.php 商品写真                             */
/* ============================================= */
.product-image2 {
  max-width: 300px;   /* 最大幅を指定（お好みで 300〜500px） */
  width: 100%;        /* 画面サイズに応じて縮む */
  height: auto;       /* 縦横比を維持 */
  border-radius: 12px; /* 角丸 */
  margin: 0 auto 20px; /* 中央寄せ + 下に余白 */
  display: block;      /* 中央寄せに必要 */
  object-fit: cover;   /* 必要ならトリミング */
}

/* ============================================= */
/* checkout.php                           */
/* ============================================= */
/* inputボックスのデザイン */
.m-form-text {
    height: 2.4em;
    width: 80%;
    padding: 0 16px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 0 0 1px #ccc inset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
		background    : #FAFAFA;
}

.m-form-text:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgb(33, 150, 243) inset;
}

.m-form-text3 {
    height: 2.4em;
    width: 130px;
    padding: 0 16px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 0 0 1px #ccc inset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.m-form-text3:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgb(33, 150, 243) inset;
}

/* ============================================= */
/* モーダル全体                                   */
/* ============================================= */
.magic-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 0, 30, 0.85); /* 濃い紫系の透明背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 1s ease forwards;
}

/* モーダルの中身 */
.magic-modal-content {
  background: rgba(40, 0, 70, 0.95);
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  font-family: "serif";
  box-shadow: 0 0 20px 6px rgba(162, 216, 255, 0.7),
              0 0 40px 12px rgba(120, 0, 200, 0.8);
  transform: scale(0.6);
  opacity: 0;
  animation: magicAppear 1s ease forwards;
}

/* タイトルに魔法っぽい光 */
.magic-title {
  font-size: 22px;
  margin-bottom: 15px;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #a2d8ff,
    0 0 6px #6600cc;
}

/* ボタン */
.magic-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes magicAppear {
  0% { opacity: 0; transform: scale(0.6) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ============================================= */
/* ボタン類                                       */
/* ============================================= */

.magic-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a2d8ff, #4b1f7f);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(162,216,255,0.6), 0 0 30px rgba(75,31,127,0.5);
  transition: all 0.3s ease;
}

.magic-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;        /* 文字を大きく */
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 8px #a2d8ff, 0 0 12px #6e33cc; /* 光の縁取り */
  background: rgba(50, 0, 80, 0.7); /* 濃い暗い紫 */
  border-radius: 50%;
  width: 36px;
  height: 36px;
  pointer-events: none; /* SVGやボタンのクリックには干渉させない */
}

.magic-btn:hover {
  background: radial-gradient(circle at 30% 30%, #d1aaff, #6e33cc);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(209,170,255,0.8), 0 0 40px rgba(110,51,204,0.7);
}

.magic-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotateMagic 6s linear infinite;
  pointer-events: none;
}

/* 回転アニメ */
@keyframes rotateMagic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 星の点滅アニメ */
.magic-star {
  animation: starBlink 2s ease-in-out infinite alternate;
}
@keyframes starBlink {
  0% { fill-opacity: 0.1; }
  50% { fill-opacity: 0.5; }
  100% { fill-opacity: 0.1; }
}

/* ルーン文字の光り方 */
.magic-rune {
  fill-opacity: 0.6;
  animation: runeGlow 3s ease-in-out infinite alternate;
}
@keyframes runeGlow {
  0% { fill-opacity: 0.6; filter: drop-shadow(0 0 2px #a2d8ff); }
  50% { fill-opacity: 1; filter: drop-shadow(0 0 6px #fff); }
  100% { fill-opacity: 0.6; filter: drop-shadow(0 0 2px #a2d8ff); }
}

.magic-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  position: relative;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #a2d8ff, #4b1f7f);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none; /* <a>用に追加 */
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(162,216,255,0.6), 0 0 30px rgba(75,31,127,0.5);
  transition: all 0.3s ease;
}

.magic-action-btn:hover {
  background: radial-gradient(circle at 30% 30%, #d1aaff, #6e33cc);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(209,170,255,0.8), 0 0 40px rgba(110,51,204,0.7);
}

.magic-action-btn::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: repeating-conic-gradient(
    rgba(255,255,255,0.15) 0deg 30deg,
    rgba(0,0,0,0) 30deg 60deg
  );
  border-radius: 50%;
  transform: rotate(0deg);
  animation: rotateMagic 5s linear infinite;
  pointer-events: none;
}

.magic-action-btn span {
  display: inline-block;
  width: 120px; /* ボタンの文字に合わせて統一幅を指定 */
  text-align: center; /* 文字を中央に */
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #a2d8ff,
    0 0 6px #330088;
  background: rgba(50, 0, 80, 0.7); /* 濃い暗い紫 */
  padding: 3px 8px;
  border-radius: 14px;
  position: relative;
  z-index: 2;
}

/* 削除ボタン用 少し横を短く */
.magic-action-btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  position: relative;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #a2d8ff, #4b1f7f);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none; /* <a>用に追加 */
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(162,216,255,0.6), 0 0 30px rgba(75,31,127,0.5);
  transition: all 0.3s ease;
}

.magic-action-btn2:hover {
  background: radial-gradient(circle at 30% 30%, #d1aaff, #6e33cc);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(209,170,255,0.8), 0 0 40px rgba(110,51,204,0.7);
}

.magic-action-btn2::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: repeating-conic-gradient(
    rgba(255,255,255,0.15) 0deg 30deg,
    rgba(0,0,0,0) 30deg 60deg
  );
  border-radius: 50%;
  transform: rotate(0deg);
  animation: rotateMagic 5s linear infinite;
  pointer-events: none;
}

.magic-action-btn2 span {
  display: inline-block;
  width: 50px; /* ボタンの文字に合わせて統一幅を指定 */
  text-align: center; /* 文字を中央に */
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #a2d8ff,
    0 0 6px #330088;
  background: rgba(50, 0, 80, 0.7); /* 濃い暗い紫 */
  padding: 3px 8px;
  border-radius: 14px;
  position: relative;
  z-index: 2;
}

/* ============================================= */
/* + - ボタン類                                   */
/* ============================================= */
.magic-sign {
  position: relative;
  z-index: 2;
  color: #fff; /* 白文字 */
  font-size: 22px;
  font-weight: normal;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #a2d8ff,
    0 0 6px #330088; /* 青～紫の光 */
}

/* ============================================= */
/* モーダル内ボタン類                                   */
/* ============================================= */
.magic-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  position: relative;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #a2d8ff, #4b1f7f);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none; /* <a>用に追加 */
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(162,216,255,0.6), 0 0 30px rgba(75,31,127,0.5);
  transition: all 0.3s ease;
}

.magic-modal-btn:hover {
  background: radial-gradient(circle at 30% 30%, #d1aaff, #6e33cc);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(209,170,255,0.8), 0 0 40px rgba(110,51,204,0.7);
}

.magic-modal-btn::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: repeating-conic-gradient(
    rgba(255,255,255,0.15) 0deg 30deg,
    rgba(0,0,0,0) 30deg 60deg
  );
  border-radius: 50%;
  transform: rotate(0deg);
  animation: rotateMagic 5s linear infinite;
  pointer-events: none;
}

.magic-modal-btn span {
  display: inline-block;
  width: 100px; /* ボタンの文字に合わせて統一幅を指定 */
  text-align: center; /* 文字を中央に */
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #a2d8ff,
    0 0 6px #330088;
  background: rgba(50, 0, 80, 0.7); /* 濃い暗い紫 */
  padding: 3px 8px;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

/* ===============================
   特定商取引法ページ用（ボックス囲み）
   =============================== */
.shop-terms {
 padding: 40px 0; /* 上下だけの余白 */
 width: 100%;
 background: linear-gradient(180deg, #0a0f29, #1b1030 80%, #2a1a40);
 flex: 1;
 box-sizing: border-box;
}

.terms-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(180, 140, 255, 0.5);
  max-width: 700px;
  margin: auto;
  text-align: left;
}

/* 見出しの装飾はそのまま */
.terms-container h1 {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #fff0ff;
}

.terms-container h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #474747;
    padding-bottom: 5px;
    color: #fff0ff;
}

.terms-container p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #fff;
}

.terms-container ul {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-container li {
    margin-bottom: 10px;
    color: #fff;
}

.terms-container a {
    color: #1e73be;
    text-decoration: underline;
}

.terms-container a:hover {
    color: #145a8a;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .terms-container {
        padding: 20px 15px;
    }

    .terms-container h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .terms-container h2 {
        font-size: 1.2rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .terms-container p,
    .terms-container li {
        font-size: 0.95rem;
    }
}
