@charset "UTF-8";
/*
 * アフィリエイター専用スタイル。
 * ドラクエ調の土台（.g-scope / .g-window / .g-btn など）は guild.css 側にあるので
 * このファイルは必ず guild.css の後に読み込むこと。
 */

/* 全体の枠（サイドメニュー＋本文） */
.a-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 20px;
  align-items: start;
}

.a-side { position: sticky; top: 16px; }

.a-nav { list-style: none; margin: 0; padding: 0; }
.a-nav li { margin-bottom: 8px; }
.a-nav a {
  display: block;
  border: 2px solid #454a7d;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--g-text) !important;
  text-decoration: none;
  background: rgba(255, 255, 255, .03);
  line-height: 1.5;
}
.a-nav a:hover { background: #22224d; }
.a-nav a.is-active { border-color: var(--g-accent); background: rgba(255, 212, 94, .12); color: #fff !important; }
.a-nav a::before { content: "▶ "; color: var(--g-accent); font-size: 11px; }

/* 数字タイル */
.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.a-stat {
  border: 2px solid #454a7d;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .04);
}
.a-stat__label { font-size: 11px; color: var(--g-sub); margin: 0 0 6px; line-height: 1.5; }
.a-stat__value { font-size: 22px; font-weight: 700; margin: 0; color: #fff; letter-spacing: .02em; }
.a-stat__unit { font-size: 12px; color: var(--g-sub); margin-left: 3px; }
.a-stat.is-accent { border-color: var(--g-accent); background: rgba(255, 212, 94, .1); }
.a-stat.is-accent .a-stat__value { color: var(--g-accent); }

/* バッジ */
.a-badge-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.a-badge-figure {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--g-line);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, #23234f 0%, #06060f 75%);
  box-shadow: 0 0 0 3px #06060f;
}
.a-badge-figure svg { width: 78px; height: 78px; display: block; }
.a-badge-figure.is-small { width: 64px; height: 64px; border-width: 2px; border-radius: 8px; }
.a-badge-figure.is-small svg { width: 44px; height: 44px; }
.a-badge-figure.is-locked { filter: grayscale(1); opacity: .35; }
.a-badge-meta { flex: 1 1 220px; }
.a-badge-meta h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.a-badge-meta p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--g-sub); }

.a-badge-list { display: flex; flex-wrap: wrap; gap: 16px; }
.a-badge-item { width: 118px; text-align: center; }
.a-badge-item p { margin: 8px 0 0; font-size: 11px; line-height: 1.6; color: var(--g-sub); }
.a-badge-item .a-badge-figure { margin: 0 auto; }
.a-badge-item.is-owned p { color: var(--g-accent); }

/* テーブル */
.a-table-wrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.a-table th, .a-table td { border: 1px solid #3b3f66; padding: 9px 10px; line-height: 1.7; text-align: left; vertical-align: middle; }
.a-table th { background: rgba(255, 255, 255, .06); color: #fff; font-weight: 500; white-space: nowrap; }
.a-table td { color: var(--g-text); overflow-wrap: anywhere; }
.a-table tr:hover td { background: rgba(255, 255, 255, .03); }
.a-table .is-num { text-align: right; white-space: nowrap; }

/* カレンダー */
.a-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.a-cal th {
  border: 1px solid #3b3f66;
  padding: 8px 4px;
  font-size: 12px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-weight: 500;
}
.a-cal td { border: 1px solid #3b3f66; height: 84px; vertical-align: top; padding: 6px; }
.a-cal .a-cal__day { font-size: 12px; color: var(--g-sub); }
.a-cal .a-cal__cv { display: block; font-size: 16px; font-weight: 700; color: var(--g-accent); margin-top: 6px; line-height: 1.3; }
.a-cal .a-cal__sub { display: block; font-size: 10px; color: var(--g-sub); margin-top: 2px; line-height: 1.4; }
.a-cal td.is-empty { background: rgba(0, 0, 0, .25); }
.a-cal td.is-today { outline: 2px solid var(--g-accent); outline-offset: -2px; }
.a-cal td.has-cv { background: rgba(255, 212, 94, .12); }
.a-cal th.is-sun, .a-cal td.is-sun .a-cal__day { color: #ff9a8a; }
.a-cal th.is-sat, .a-cal td.is-sat .a-cal__day { color: #8ec7ff; }

/* コード（タグ・リンク）の表示 */
.a-code {
  position: relative;
  border: 2px solid #454a7d;
  border-radius: 6px;
  background: #05050d;
  padding: 14px 14px 14px;
  margin: 0;
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #d9f2ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.a-code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.a-code-head p { margin: 0; font-size: 13px; color: #fff; }
.a-copied { font-size: 12px; color: var(--g-ok); }

/* ツール選択 */
.a-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.a-tool {
  border: 2px solid #454a7d;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.a-tool img { width: 100%; height: 128px; object-fit: cover; border-radius: 4px; border: 2px solid #3b3f66; margin-bottom: 10px; }
.a-tool__name { font-size: 14px; line-height: 1.6; margin: 0 0 6px; color: #fff; overflow-wrap: anywhere; flex: 1; }
.a-tool__price { font-size: 15px; font-weight: 700; color: var(--g-accent); margin: 0 0 4px; }
.a-tool__reward { font-size: 11px; color: var(--g-sub); margin: 0 0 10px; line-height: 1.6; }
.a-tool__issued { font-size: 11px; color: var(--g-ok); margin: 0 0 8px; }

/* CV種別のえらび方 */
.a-types { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.a-type input { position: absolute; opacity: 0; pointer-events: none; }
.a-type__box {
  display: block;
  border: 3px solid #555a7a;
  border-radius: 8px;
  padding: 18px 16px;
  background: #05050d;
  cursor: pointer;
  height: 100%;
  box-sizing: border-box;
  transition: border-color .15s ease, transform .1s ease;
}
.a-type__box:hover { transform: translateY(-2px); }
.a-type input:checked + .a-type__box { border-color: var(--g-accent); box-shadow: 0 0 14px rgba(255, 212, 94, .35); }
.a-type input:disabled + .a-type__box { opacity: .4; cursor: not-allowed; }
.a-type__name { display: block; font-size: 16px; color: #fff; margin-bottom: 8px; }
.a-type__desc { display: block; font-size: 12px; line-height: 1.9; color: var(--g-sub); }
.a-type__tag { display: inline-block; font-size: 10px; border: 1px solid var(--g-accent); color: var(--g-accent); border-radius: 999px; padding: 2px 8px; margin-bottom: 8px; }

/* ラベル（運営が付けるタグ） */
.a-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.a-label {
  display: inline-block;
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  line-height: 1.6;
}

/* 期限の色分け */
.a-exp-ok { color: var(--g-ok); }
.a-exp-soon { color: var(--g-accent); }
.a-exp-out { color: var(--g-danger); }

/* サイト一覧 */
.a-site { border: 2px solid #3b3f66; border-radius: 8px; padding: 14px 16px; background: rgba(255, 255, 255, .03); }
.a-site + .a-site { margin-top: 12px; }
.a-site h3 { font-size: 15px; margin: 0 0 4px; color: #fff; overflow-wrap: anywhere; }
.a-site a { color: #8ec7ff !important; font-size: 12px; overflow-wrap: anywhere; }

/* 登録フォームのサイト行 */
.a-site-row { border: 2px dashed #5a5f8c; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.a-site-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.a-site-row__head span { font-size: 13px; color: var(--g-accent); }

@media screen and (max-width: 900px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-side { position: static; }
  .a-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .a-nav li { margin-bottom: 0; }
  .a-types { grid-template-columns: 1fr; }
  .a-cal td { height: 62px; }
  .a-cal .a-cal__cv { font-size: 14px; }
  .a-badge-figure { width: 88px; height: 88px; }
  .a-badge-figure svg { width: 60px; height: 60px; }
}
