@charset "UTF-8";

/* ========================================
   XenoX — plan.css
   ======================================== */

:root {
  --ink: #0b0f1a;
  --cyan: #00c8e0;
  --cyan-dim: rgba(0, 200, 224, 0.1);
  --cyan-border: rgba(0, 200, 224, 0.25);
  --gold: #c49a3c;
  --gold-light: #e8b84b;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --text: #1c1c1e;
  --text-mid: #4a4a52;
  --text-light: #8a8a96;
  --border: #e2e0da;
  --link-color: #0070c0;

  /* セクション余白 */
  --section-py: 72px;
  --section-px: 40px;
}

/* ========== LAYOUT ========== */
#_plan {
  display: grid;
  grid-auto-rows: min-content;
}

/* ========== TOP ========== */
#_top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-py) var(--section-px);
  background: linear-gradient(160deg,
    #9ef4ff 0%, #57c1e8 30%, #2f8ad4 60%, #2ea89b 100%);
}

#_top .__title {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

#_iconImg {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.__title_text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.__title_label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}

/* ========== お得サマリー帯（価格・件数・お得額） ========== */
#_summary {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.__summary_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.__summary_item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
}

.__summary_num {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.__summary_num small {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--text-mid);
  margin-left: 2px;
}

.__summary_item--saving .__summary_num { color: var(--gold); }

.__summary_label {
  align-self: flex-end;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
  white-space: nowrap;
}

.__summary_divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* HERO内の価格表示 */
.__title_price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.__price_num {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 6vw, 32px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.__price_unit {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.__price_unit small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* トライアルバッジ（_summary内で使用） */
.__price_trial {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(196, 154, 60, 0.35);
  white-space: nowrap;
}

.__contract_status {
  position: fixed;
  top: 76px;
  right: -28px;
  z-index: 100;

  width: 180px;
  padding: 7px 0;
  transform: rotate(35deg);
  transform-origin: center;

  text-align: center;
  font-family: "Manrope","Noto Sans JP",sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #eaf0ff;

  background: linear-gradient(90deg, #f88f05, #fc9f26);
  border-top: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(10,18,40,.3);
  box-shadow:
    0 6px 18px rgba(42,92,245,.4),
    0 1px 2px rgba(0,0,0,.2);
}

#_plan h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
}

/* ========== CUSTOM ========== */
#_custome { background: var(--white); }

/* ========== SECTION HEADING ========== */
#_plan section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 36px;
}

/* ========== PLUGIN GRID ========== */
#_plugins > div {
  padding: var(--section-py) var(--section-px);
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

/* セクション見出しに件数バッジ */
.__plugin_count {
  display: inline-block;
  margin-left: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  padding: 3px 12px;
  border-radius: 999px;
  vertical-align: middle;
}

.__plugin_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.__plugin_card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.__plugin_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--cyan-border);
}

.__plugin_card--nolink {
  cursor: default;
  opacity: 0.85;
}
.__plugin_card--nolink:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.__plugin_card_icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: cover;
}

.__plugin_card_icon--ph {
  background: var(--off-white);
  border: 1px solid var(--border);
}

.__plugin_card_body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.__plugin_card_name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.__plugin_card_more {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
  transition: transform 0.2s;
}

.__plugin_card:hover .__plugin_card_more {
  transform: translateX(2px);
}




/* ================================================================
   INFO REQUIRED（契約情報未入力の警告）
   ================================================================ */
#_info_required {
  background: var(--off-white);
  border-top: 1px solid var(--border);
}

#_info_required > div {
  padding: 72px 40px;
  display: flex;
  justify-content: center;
}

.__info_card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 36px 40px;
  width: 560px;
  max-width: 100%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.__info_label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 14px;
}

.__info_title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.45;
}

.__info_desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
  margin: 0 0 24px;
}

.__info_link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.__info_link:hover {
  background: #1a2a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* ================================================================
   STATUS CARD（契約中 / トライアル中 / パートナー）
   ================================================================ */

#_status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 40px;
  background: var(--off-white);
}
#_status a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
#_status a:hover {
  background: #1a2a4a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}


/* ================================================================
   CONTRACT CARD（トライアル・契約フォーム）
   ================================================================ */

#_contract,
#_download {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  text-align: center;
  user-select: none;
}

#_contract > div,
#_download > div {
  padding: 72px 40px;
  display: flex;
  justify-content: center;
}

/* ─── カード ─── */
.__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  width: 500px;
  max-width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── カードヘッダー ─── */
.__card_header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.__card_header img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.__card_header span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ─── タブ切替（トライアル/契約） ─── */
.__type_toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--off-white);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 20px;
}

.__type_toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.2s;
}

.__type_toggle label input { display: none; }

.__type_toggle label.active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ─── トライアル情報 ─── */
.__trial_info {
  text-align: center;
  padding: 16px 0 20px;
}

.__trial_badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(196, 154, 60, 0.1);
  border: 1px solid rgba(196, 154, 60, 0.25);
  padding: 6px 20px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.__trial_info p {
  margin: 0;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ─── 契約詳細（価格＋支払方法） ─── */
.__contract_detail {
  display: grid;
  grid-auto-rows: min-content;
  align-items: center;
  gap: 20px;
  padding: 16px 0 20px;
}

.__detail_price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}

.__yen {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.__per {
  font-size: 12px;
  color: var(--text-light);
}

.__detail_method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.__detail_method label {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
  transition: all 0.15s;
}

.__detail_method label input { display: none; }

.__detail_method label.active {
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
  color: var(--text);
}

.__detail_method label span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ─── カードフッター ─── */
.__card_footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
}
.__agree span {
  line-height: 14px;
}

.__agree input { display: none; }

/* チェックボックスは2 SVG構成（input の兄弟をCSSで切替） */
.__agree .gi-unchecked,
.__agree .gi-checked { width: 24px; height: 24px; transition: fill 0.15s; }
.__agree .gi-unchecked { display: inline-block; fill: var(--text-light); }
.__agree .gi-checked { display: none; fill: var(--cyan); }
.__agree input:checked ~ .gi-unchecked { display: none; }
.__agree input:checked ~ .gi-checked { display: inline-block; }

.__agree a {
  color: var(--link-color);
  text-decoration: underline;
}

/* ─── ボタン共通 ─── */
.__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.__submit:hover {
  background: #1a2a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.__submit.disabled {
  background: #ccc;
  color: var(--white);
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.__submit--trial {
  background: var(--gold) !important;
  color: var(--white) !important;
}

.__submit--trial:hover {
  background: var(--gold-light) !important;
}

.__submit--trial.disabled {
  background: #ccc !important;
  color: var(--white) !important;
}

/* ========== LOGIN ========== */
#_login {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  text-align: center;
}
#_login > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: var(--section-py) var(--section-px);
  font-size: 14px;
  color: var(--text-mid);
  box-sizing: border-box;
  width: 100%;
}
#_login a {
  color: var(--link-color);
  text-decoration: underline;
}

/* ========== SPINNER ========== */
.__spinner_wrap {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.__spinner {
  position: relative;
  width: 52px;
  height: 52px;
}
.__ring {
  position: absolute;
  border-radius: 9999px;
  border-width: 2.5px;
  border-style: solid;
  box-sizing: border-box;
}
.__ring_back  { inset: 0; border-color: rgba(0, 200, 224, 0.18); }
.__ring_front { inset: 0; border-color: transparent; border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
.__ring_inner { inset: 8px; border-color: transparent; border-top-color: var(--gold); animation: spin 1.4s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== DIALOG ========== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.dialog-box {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.dialog-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.dialog-message {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.dialog-btn-cancel,
.dialog-btn-ok {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.dialog-btn-cancel {
  background: var(--off-white);
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.dialog-btn-cancel:hover { background: var(--border); }
.dialog-btn-ok { background: var(--ink); color: var(--white); }
.dialog-btn-ok:hover { background: #1a2a4a; }

/* ========== FADE IN ========== */
.__fade_in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* タブレット */
@media screen and (max-width: 768px) {
  :root {
    --section-py: 56px;
    --section-px: 24px;
  }

  #_top {
    padding: 48px 24px;
  }

  #_top .__title {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .__title_text {
    align-items: center;
  }

  .__version_item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .__plugin_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* お得サマリー帯：タブレットは横並び維持・間隔詰める */
  .__summary_item {
    padding: 0 20px;
    gap: 10px;
  }
  .__summary_inner {
    padding: 24px 16px;
    flex-wrap: wrap;
    gap: 12px 0;
  }

  .__card {
    padding: 22px 20px;
  }
}

/* スマホ */
@media screen and (max-width: 480px) {
  :root {
    --section-py: 44px;
    --section-px: 16px;
  }

  /* TOP */
  #_top { padding: 40px 16px; }
  #_iconImg { width: 60px; height: 60px; }

  /* プラグイングリッド */
  .__plugin_grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .__plugin_card { padding: 14px 14px; gap: 12px; }
  .__plugin_card_icon { width: 40px; height: 40px; border-radius: 8px; }
  .__plugin_card_name { font-size: 13px; }

  /* お得サマリー帯：縦並び */
  .__summary_inner {
    flex-direction: column;
    gap: 20px;
    padding: 28px 16px;
  }
  .__summary_divider {
    width: 200px;
    max-width: 80%;
    height: 1px;
  }
  .__summary_item {
    padding: 0;
    justify-content: center;
  }

  /* HERO内価格：センター寄せ */
  .__title_price { justify-content: center; }

  /* バージョン */
  .__version_item { padding: 12px 0; }
  .__version_meta { flex-wrap: wrap; gap: 4px; }

  /* ステータスカード */
  .__status_card { padding: 32px 16px 22px; }
  .__status_badge { font-size: 10px; top: 8px; right: 8px; }

  /* 契約カード */
  #_contract > div,
  #_download > div { padding: var(--section-py) 16px; }

  .__card { padding: 20px 16px; width: 100%; border-radius: 12px; }
  .__card_header { gap: 10px; padding-bottom: 14px; margin-bottom: 14px; }
  .__card_header img { width: 36px; height: 36px; }
  .__card_header span { font-size: 14px; }

  /* 支払方法：縦並び */
  .__detail_method {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .__detail_method label {
    justify-content: flex-start;
    padding: 10px 14px;
  }

  .__yen { font-size: 28px; }

  .__submit { height: 44px; font-size: 14px; }

  /* ダイアログ */
  .dialog-box { padding: 20px 18px; }
  .dialog-actions { flex-direction: column-reverse; gap: 8px; }
  .dialog-btn-cancel,
  .dialog-btn-ok { width: 100%; text-align: center; padding: 12px; }
}