/* ========================================
   ガルパ攻略 追加UI
======================================== */

/* ---------- サイト名 ---------- */
.site-title {
  position: relative;
  padding-bottom: 30px;
}

.site-title::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 16px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4f86, #ff85aa);
}

.site-title-main {
  font-size: 26px !important;
  font-weight: 900 !important;
  letter-spacing: -1px;
}

.site-title-sub {
  margin-top: 6px;
  color: #888;
  font-size: 10px !important;
  font-weight: 700;
}

.mobile-site-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mobile-site-title strong {
  font-size: 16px;
  font-weight: 900;
}

.mobile-site-title small {
  color: #999;
  font-size: 8px;
  font-weight: 600;
}

/* ---------- 属性マーク ---------- */
.attribute {
  min-width: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 58px !important;
  line-height: 0.5 !important;
  vertical-align: middle;
  transform: translateY(-4px) !important;
}

.theory-row-title {
  align-items: center;
  column-gap: 10px !important;
}

/* ---------- ページタイトル ---------- */
.page-header h1 {
  position: relative;
  width: fit-content;
}

.page-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: #ff4f86;
  opacity: 0.85;
}

.page-header p {
  margin-top: 18px;
}

/* ---------- 最終更新・X ---------- */
.main {
  position: relative;
}

.site-meta {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px auto;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 79, 134, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
}

.site-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.site-meta-item > span {
  color: #aaa;
  font-size: 9px;
  font-weight: 700;
}

.site-meta-item strong {
  color: #555;
  font-size: 11px;
  font-weight: 900;
}

.site-meta-item a {
  color: #e83f76;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.site-meta-item a:hover {
  text-decoration: underline;
}

.site-meta-divider {
  width: 1px;
  height: 15px;
  background: #e5e5e8;
}

@media (min-width: 1101px) {
  .site-meta {
    position: absolute;
    top: 78px;
    right: clamp(42px, 7vw, 125px);
    z-index: 20;
    margin: 0;
  }
}

/* ---------- 左ナビ ---------- */
.nav-button {
  position: relative;
  min-height: 56px;
  padding: 9px 13px !important;
  gap: 12px !important;
  overflow: hidden;
  border: 1px solid transparent !important;
  transition: transform 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.nav-button .nav-icon {
  width: 35px !important;
  height: 35px;
  flex: 0 0 35px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f3f6;
  color: transparent !important;
  font-size: 0 !important;
  transition: background 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.nav-button .nav-icon::before {
  color: #555;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.nav-button[data-page="score"] .nav-icon::before {
  content: "♫";
}

.nav-button[data-page="power"] .nav-icon::before {
  content: "⬢";
  font-size: 15px;
}

.nav-button[data-page="personal"] .nav-icon::before {
  content: "◎";
  font-size: 19px;
}

.nav-button[data-page="points"] .nav-icon::before {
  content: "Pt";
  font-size: 11px;
  letter-spacing: -0.5px;
}

.nav-button[data-page="cards"] .nav-icon::before {
  content: "▦";
  font-size: 18px;
}

.nav-button:hover {
  transform: translateX(3px);
  border-color: rgba(255, 79, 134, 0.13) !important;
  background: rgba(255, 79, 134, 0.045) !important;
}

.nav-button:hover .nav-icon {
  transform: scale(1.06);
  background: #fff0f5;
}

.nav-button:hover .nav-icon::before {
  color: #ff4f86;
}

.nav-button.active {
  border: 1px solid rgba(255, 79, 134, 0.28) !important;
  background: linear-gradient(
    90deg,
    rgba(255, 79, 134, 0.15),
    rgba(255, 79, 134, 0.06)
  ) !important;
  color: #e83f76 !important;
  box-shadow: 0 5px 15px rgba(255, 79, 134, 0.08);
}

.nav-button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #ff4f86;
}

.nav-button.active .nav-icon {
  background: linear-gradient(135deg, #ff4f86, #ff7ca4);
  box-shadow: 0 4px 12px rgba(255, 79, 134, 0.22);
}

.nav-button.active .nav-icon::before {
  color: #fff;
}

/* ========================================
   ポイント調整
======================================== */

/* Pt調整ツールのバッジは非表示 */
.point-header-badge {
  display: none !important;
}

/* PCでも 1 → 2 → 3 の縦並び */
.point-adjust-panel {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 16px;
  background: transparent;
}

.point-target-section,
.point-adjust-calculate {
  grid-column: auto !important;
}

/* ---------- 各セクション ---------- */
.point-adjust-section {
  min-width: 0;
  padding: 21px 22px;
  border: 1px solid rgba(0, 0, 0, 0.065) !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.045) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.point-adjust-section:hover {
  border-color: rgba(255, 79, 134, 0.14) !important;
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.055) !important;
}

.point-adjust-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.point-adjust-section-number {
  flex: 0 0 auto;
  width: 34px !important;
  height: 34px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #ff3f7c, #ff739e) !important;
  color: #fff;
  font-size: 12px !important;
  font-weight: 900;
  box-shadow: 0 4px 11px rgba(255, 79, 134, 0.18);
}

.point-adjust-section-heading h2 {
  margin: 0;
  color: #222;
  font-size: 15px;
  font-weight: 900;
}

.point-adjust-section-heading p {
  margin: 3px 0 0;
  color: #999;
  font-size: 9px;
}

/* ---------- 入力欄 ---------- */
.point-adjust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.point-adjust-wide {
  grid-column: 1 / -1;
}

.point-adjust-field {
  min-width: 0;
  display: block;
}

.point-adjust-field > span {
  display: block;
  margin-bottom: 6px;
  color: #666;
  font-size: 9px;
  font-weight: 800;
}

.point-adjust-field input,
.point-adjust-field select,
.point-medley-row select {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 11px;
  border: 1px solid #d9d9df !important;
  border-radius: 9px;
  outline: none;
  background: #fbfbfc !important;
  color: #222;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.point-adjust-field input:hover,
.point-adjust-field select:hover,
.point-medley-row select:hover {
  border-color: #c9c9d0 !important;
  background: #fff !important;
}

.point-adjust-field input:focus,
.point-adjust-field select:focus,
.point-medley-row select:focus {
  border-color: #ff6d99 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 79, 134, 0.1) !important;
}

.point-adjust-field input:disabled,
.point-adjust-field select:disabled {
  border-color: #dddddf !important;
  background: #f1f1f4 !important;
  color: #999 !important;
  cursor: not-allowed;
  opacity: 1;
}

.point-adjust-input-unit {
  position: relative;
}

.point-adjust-input-unit input {
  padding-right: 40px;
}

.point-adjust-input-unit > span {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #999;
  font-size: 9px;
  font-weight: 900;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ---------- メドレー ---------- */
.point-medley-boost-box {
  display: none;
  margin-top: 14px;
  padding: 13px;
  border-radius: 10px;
  background: #f7f7f9;
}

.point-medley-title {
  margin-bottom: 10px;
  color: #666;
  font-size: 9px;
  font-weight: 900;
}

.point-medley-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.point-medley-row {
  min-width: 0;
}

.point-medley-row > span {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-size: 8px;
  font-weight: 800;
}

/* ---------- 現在Pt → 目標Pt ---------- */
.point-target-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.point-target-box {
  padding: 14px 16px;
  border: 1px solid #e5e5e9;
  border-radius: 12px;
  background: #fafafa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.point-target-box.target {
  border: 1px solid rgba(255, 79, 134, 0.4) !important;
  background: linear-gradient(135deg, #fffafd, #fff5f8) !important;
}

.point-target-box.target:hover {
  box-shadow: 0 5px 16px rgba(255, 79, 134, 0.07);
}

.point-target-label {
  display: block;
  margin-bottom: 7px;
  color: #888;
  font-size: 9px;
  font-weight: 900;
}

.point-target-box.target .point-target-label {
  color: #e83f76;
}

.point-target-input {
  position: relative;
}

.point-target-input input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 52px 0 12px;
  border: 1px solid #dddde2;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.point-target-input input:focus {
  border-color: #ff8eae;
  box-shadow: 0 0 0 3px rgba(255, 79, 134, 0.09);
}

.point-target-input span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #999;
  font-size: 10px;
  font-weight: 900;
  transform: translateY(-50%);
}

.point-target-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.point-target-arrow span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2f2f6, #ebebf0) !important;
  color: #666 !important;
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.025);
}

/* ---------- 計算ボタン ---------- */
.point-adjust-calculate {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 56px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 13px;
  background: linear-gradient(100deg, #ff3f7c, #ff5f91) !important;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 19px rgba(255, 79, 134, 0.2) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.point-adjust-calculate small {
  display: none !important;
}

.point-adjust-calculate::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -30%;
  width: 20%;
  height: 300%;
  transform: rotate(20deg);
  background: rgba(255, 255, 255, 0.18);
  transition: left 0.4s ease;
}

.point-adjust-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 79, 134, 0.27) !important;
}

.point-adjust-calculate:hover::after {
  left: 110%;
}

/* ---------- 結果 ---------- */
.point-result-area {
  margin-top: 24px;
}

.point-result-area[hidden] {
  display: none;
}

.point-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.point-result-summary-item {
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
}

.point-result-summary-item span {
  display: block;
  color: #999;
  font-size: 8px;
  font-weight: 800;
}

.point-result-summary-item strong {
  display: block;
  margin-top: 4px;
  color: #222;
  font-size: 19px;
  font-weight: 900;
}

.point-result-list {
  display: grid;
  gap: 13px;
}

.point-result-card {
  overflow: hidden;
  border: 1px solid #e7e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.point-result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #eeeeef;
  background: #fafafa;
}

.point-result-number {
  color: #999;
  font-size: 8px;
  font-weight: 900;
}

.point-result-earned {
  margin-top: 2px;
  color: #222;
  font-size: 14px;
  font-weight: 900;
}

.point-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
}

.point-status.ok {
  background: #eaf8ed;
  color: #27863b;
}

.point-status.ng {
  background: #fff0f1;
  color: #cf3d49;
}

.point-result-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 16px;
}

.point-result-score-label {
  color: #777;
  font-size: 10px;
  font-weight: 800;
}

.point-result-score-value {
  color: #e83f76;
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

.point-result-details {
  margin: 0 16px 14px;
  padding: 12px 13px;
  border-radius: 9px;
  background: #f7f7f9;
}

.point-result-details-title {
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5e8;
  color: #999;
  font-size: 8px;
  font-weight: 900;
}

.point-result-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 4px 0;
  color: #666;
  font-size: 10px;
}

.point-result-detail-row span:last-child {
  color: #222;
  font-weight: 800;
}

.point-result-remaining {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px 14px;
  border-top: 1px dashed #e0e0e4;
  color: #888;
  font-size: 9px;
}

.point-result-remaining strong {
  color: #e83f76;
  font-size: 14px;
  font-weight: 900;
}

.point-result-error {
  padding: 18px;
  border: 1px solid #ffd6da;
  border-radius: 12px;
  background: #fff4f5;
  color: #c53d48;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

/* ---------- 理論編成カード ---------- */
.band-block,
.ranking-entry {
  border: 1px solid rgba(0, 0, 0, 0.035);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.band-block:hover,
.ranking-entry:hover {
  border-color: rgba(255, 79, 134, 0.08);
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.055);
}

/* ---------- スマホ ---------- */
@media (max-width: 800px) {
  .attribute {
    min-width: 30px;
    font-size: 45px !important;
    transform: translateY(-3px) !important;
  }

  .site-meta {
    position: static;
    margin: 0 4px 16px auto;
    padding: 7px 10px;
    gap: 8px;
  }

  .nav-button {
    min-height: 52px;
  }

  .nav-button .nav-icon {
    width: 32px !important;
    height: 32px;
    flex-basis: 32px;
  }

  .page-header h1::after {
    bottom: -5px;
  }

  .point-adjust-section {
    padding: 17px 14px;
    border-radius: 13px;
  }

  .point-adjust-grid {
    grid-template-columns: 1fr;
  }

  .point-adjust-wide {
    grid-column: auto;
  }

  .point-medley-grid {
    grid-template-columns: 1fr;
  }

  .point-target-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .point-target-arrow span {
    width: 32px;
    height: 32px;
    transform: rotate(90deg);
  }

  .point-result-summary {
    grid-template-columns: 1fr;
  }

  .point-result-score {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .point-result-score-value {
    font-size: 17px;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .site-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .point-result-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ========================================
   イベントボーナス 0%固定表示
======================================== */

#pointEventBonus:disabled {
  background: #f1f1f4 !important;

  border-color: #dddddf !important;

  color: #999 !important;

  cursor: not-allowed !important;

  opacity: 1 !important;
}


/* 固定中は%も薄くする */

#pointEventBonusGroup.is-fixed
.point-adjust-input-unit > span {
  color: #aaa !important;
}


/* グレーアウト時はフォーカス演出なし */

#pointEventBonus:disabled:hover,
#pointEventBonus:disabled:focus {
  border-color: #dddddf !important;

  background: #f1f1f4 !important;

  box-shadow: none !important;
}