@charset "UTF-8";

/* ========================================
   XenoX — plugin.css
   ======================================== */

:root {
  --ink: #0b0f1a;
  --ink-mid: #141928;
  --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;
}

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

#_plugin .fc-section__head {
  margin: 0 0 clamp(40px, 5vw, 56px);
  text-align: center;
}
#_plugin .fc-kicker {
  display: inline-block;
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.84px;
  color: #2a5cf5;
  padding: 6px 14px;
  background: #e8eeff;
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
#_plugin .fc-section__title {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.4;
  font-weight: 800;
  color: var(--fc-ink);
  margin: 0;
  letter-spacing: 0.16px;
  text-wrap: balance;
}

.__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);
}

/* ========== PRICE SECTION ========== */
#_price {
  background: #f8f8f8;
}
#_price > div {
  padding: 72px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
#_price p { margin: 0 0 16px; }
#_price .__price {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
}
#_price .__trial {
  display: inline-block;
  background: rgba(196, 154, 60, 0.12);
  border: 1px solid rgba(196, 154, 60, 0.35);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ========== VERSIONS SECTION ========== */
#_versions {
  background: var(--white);
}
#_versions > div {
  padding: 72px 40px;
  max-width: 640px;
  margin: 0 auto;
}
#_versions h2 { margin-bottom: 32px !important; }

.__versions_empty {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}
.__versions_list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.__version_item {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.__version_item:first-child { border-top: 1px solid var(--border); }
.__version_meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.__version_badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.6;
}
.__version_date {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.__version_num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 4px;
}
.__version_desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* ========== MANUAL SECTION ========== */
#_manual {
  background: var(--white);
}
#_manual > div {
  padding: 72px 40px;
  text-align: center;
}
#_manual h2 { margin-bottom: 32px !important; }
#_manual 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;
}
#_manual a:hover {
  background: #1a2a4a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
#_manual .gIcon {
  width: 26px;
  height: 26px;
  fill: var(--white);
}


/* ================================================================
   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 SECTION ========== */
#_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: 16px;
  padding: 72px 40px;
  font-size: 15px;
  color: var(--text-mid);
}

#_login a {
  color: var(--link-color);
  text-decoration: underline;
}


/* ========== IMAGE PREVIEW ========== */
#_custome img {
  cursor: zoom-in;
}

.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  animation: preview-fade-in 0.15s ease-out;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.preview-close {
  position: absolute;
  top: 16px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  line-height: 1;
}
.preview-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@keyframes preview-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media screen and (max-width: 600px) {
  .preview-overlay { padding: 16px; }
  .preview-close { top: 8px; right: 8px; }
}


/* ========== 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: 24px;
}

.dialog-box {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 32px;
  width: 380px;
  max-width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.dialog-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.dialog-message {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.dialog-btn-cancel,
.dialog-btn-ok {
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.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; }


/* ========== RESPONSIVE ========== */
@media screen and (max-width: 600px) {
  #_top {
    padding: 48px 24px;
  }
  #_top .__title {
    flex-direction: column;
    gap: 12px;
  }
  #_price > div,
  #_manual > div {
    padding: 52px 24px;
  }
  #_versions > div {
    padding: 52px 24px;
  }
  .__version_item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* ステータス */
  .__status_wrap {
    padding: 52px 16px;
  }
  .__status_card {
    gap: 16px;
  }
  .__status_actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* 契約カード */
  #_contract > div,
  #_download > div {
    padding: 52px 16px;
  }
  .__card {
    width: 100%;
    min-width: 300px;
    padding: 24px 20px;
  }

  /* 契約詳細を縦積みに */
  .__contract_detail {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .__detail_price {
    justify-content: center;
  }
  .__detail_method {
    flex-direction: row;
    gap: 8px;
  }

  #_login > div {
    padding: 52px 24px;
  }
}

@media screen and (max-width: 440px) {
  #_plugin h1 { font-size: 18px; }
  #_price .__price { font-size: 24px; }
  .__yen { font-size: 28px; }
  .__status_badge {
    align-self: center;
  }
}