/* =========================================================
   FINAL FANTASY RESONANCE Style Custom CSS
   （HD-2Dドット絵 × RPGメニューウィンドウ × 金の紋章）
   ========================================================= */

/* 大見出し（h2相当）：ゲーム内メニューの「ウィンドウ枠」を再現 */
.content-head,
.main .mu__h-large {
  position: relative;
  padding: 13px 20px 10px 46px !important;
  color: #fdf6e3 !important;
  font-weight: 900;
  line-height: 1.3 !important;
  background-color: #0b1230 !important;
  background-image:
    /* 内側の淡い光（メニューウィンドウのハイライト） */
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    /* 藍色ベース */
    linear-gradient(160deg, #182a5e 0%, #0b1230 55%, #060a1c 100%) !important;
  background-repeat: no-repeat;
  background-size: 100% 100%;

  /* ウィンドウ枠（控えめな二重線） */
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
  box-shadow:
    inset 0 0 0 1px rgba(6, 10, 28, 0.6),
    inset 0 0 0 2px rgba(127, 216, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.4);
  border-radius: 2px;
}

/* 四隅の宝石（ウィンドウ角の装飾ジェム） */
.content-head::before,
.main .mu__h-large::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 15px;
  height: 15px;
  background-color: #38c9ff;
  background-image:
    linear-gradient(115deg, transparent 42%, #ffffff 44%, #ffffff 56%, transparent 58%),
    linear-gradient(to bottom, #d8f7ff 0%, #38c9ff 55%, #12507f 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 0 8px rgba(56, 201, 255, 0.9);
}

.content-head::after,
.main .mu__h-large::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #d4af37;
  box-shadow:
    0 0 0 2px #060a1c,
    0 0 4px rgba(212, 175, 55, 0.6);
  transform: rotate(45deg);
  opacity: 0.7;
}

/* 中見出し（h3相当）：巻物／リボン風バナー */
.main .mu__h-middle {
  position: relative;
  margin-left: 0 !important;
  padding: 9px 16px 7px 22px !important;
  color: #fdf6e3 !important;
  font-weight: 900;
  line-height: 1.2 !important;
  border: none !important;

  background: linear-gradient(100deg, #1d3f74 0%, #142a52 60%, #0b1230 100%) !important;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 2px 0 #d4af37;
}

.main .mu__h-middle::before {
  content: "◆";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #38c9ff;
  font-size: 0.75em;
  text-shadow: 0 0 5px rgba(56, 201, 255, 0.9);
}

/* 小見出し（h4相当）：メニューの選択カーソル「▶」風 */
.main .mu__h-little {
  position: relative;
  display: flex !important;
  align-items: center !important;
  padding: 6px 8px 6px 22px !important;
  color: #0b1230 !important;
  font-weight: 900;
  line-height: 1.3 !important;
  border: none !important;
  background: #fdf6e3 !important;
  border-left: 4px solid #d4af37 !important;
  border-bottom: 1px solid #c9c0a6 !important;
}

.main .mu__h-little::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #1d3f74;
}

/* コンテンツ背景（夜空とクリスタルの淡い光） */
.wiki-head__contents.blank-bg {
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 201, 255, 0.07) 0%, transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(212, 175, 55, 0.05) 0%, transparent 38%),
    linear-gradient(180deg, #0a0f1c 0%, #05070d 100%) !important;
  border-top: 1px solid #2a2410;
}

/* サイドメニュー見出し：金枠のウィンドウタブ */
.menu__head strong.mu__h-large {
  position: relative;
  padding: 9px 12px 10px;
  color: #fdf6e3 !important;
  font-weight: 900;
  background: linear-gradient(160deg, #182a5e 0%, #0b1230 100%) !important;
  border: 2px solid #d4af37;
  border-bottom: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 0 1px #060a1c;
}

/* ボタンリンク：金縁のオレンジグラデーションボタン */
a.btn-link {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  top: 0 !important;
  color: #fdf6e3 !important;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: center;
  transition: 0.2s;
  border: 2px solid #d4af37 !important;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 160, 60, 0.35), transparent 60%),
    linear-gradient(180deg, #7a3a12 0%, #2e1305 100%) !important;
  box-shadow: inset 0 0 0 1px #1a0a02, 0 0 6px rgba(212, 175, 55, 0.35);
}
a.btn-link:hover, a.btn-link:active {
  transform: translateY(2px);
  color: #ffffff !important;
  border-color: #ffe9a8 !important;
  box-shadow: inset 0 0 0 1px #1a0a02, 0 0 12px rgba(255, 160, 60, 0.8);
}