@charset "UTF-8";
/* ギルド（仕事の依頼）専用スタイル。style.css には手を入れない。 */

.g-scope {
  --g-navy: #10102a;
  --g-navy-deep: #06060f;
  --g-line: #ffffff;
  --g-text: #f4f4f8;
  --g-sub: #b9bcd2;
  --g-accent: #ffd45e;
  --g-danger: #ff8a7a;
  --g-ok: #7ee0a8;
  background:
    radial-gradient(circle at 20% 0%, #232355 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, #1b2a55 0%, transparent 50%),
    var(--g-navy);
  color: var(--g-text);
  font-family: 'DotGothic16', 'IBM Plex Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  padding: 32px 16px 64px;
  min-height: 60vh;
}

.g-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ドラクエ風ウィンドウ */
.g-window {
  background: var(--g-navy-deep);
  border: 3px solid var(--g-line);
  border-radius: 8px;
  box-shadow: 0 0 0 3px var(--g-navy-deep), 0 6px 0 rgba(0, 0, 0, .45);
  padding: 20px 22px;
  margin-bottom: 22px;
}

.g-window--tight { padding: 14px 16px; }

.g-window h1,
.g-window h2 {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: .06em;
  margin: 0 0 10px;
  color: #fff;
}

.g-window h1::before,
.g-window h2::before { content: "▼ "; color: var(--g-accent); }

.g-window p { line-height: 1.9; letter-spacing: .04em; margin: 0 0 6px; color: var(--g-text); }
.g-window p:last-child { margin-bottom: 0; }

.g-sub { color: var(--g-sub); font-size: 13px; }

/* ボタン */
.g-btn {
  display: inline-block;
  border: 2px solid var(--g-line);
  border-radius: 6px;
  background: #1a1a3d;
  color: #fff !important;
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease;
  font-family: inherit;
  line-height: 1.4;
}
.g-btn:hover { background: #2a2a63; transform: translateY(-1px); }
.g-btn:active { transform: translateY(1px); }
.g-btn--primary { background: #2f6b3f; border-color: #a8f0c0; }
.g-btn--primary:hover { background: #3d8a52; }
.g-btn--gold { background: #6b5210; border-color: var(--g-accent); color: #fff2c4 !important; }
.g-btn--gold:hover { background: #8a6a15; }
.g-btn--danger { background: #6b2020; border-color: #ffb3a7; }
.g-btn--danger:hover { background: #8a2a2a; }
.g-btn--ghost { background: transparent; }
.g-btn[disabled],
.g-btn.is-disabled { opacity: .45; pointer-events: none; }

.g-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* 掲示板 */
.g-board {
  position: relative;
  border: 3px solid #6b4a21;
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .05) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #8a6435 0%, #6f4f27 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 320px;
}

.g-board.is-draggable { display: block; }
.g-board.is-draggable .g-card { position: absolute; margin: 0; }

.g-board__empty {
  width: 100%;
  text-align: center;
  color: #ffeccc;
  padding: 60px 10px;
  line-height: 2;
}

/* 依頼カード */
.g-card {
  position: relative;
  overflow: hidden;
  width: 258px;
  min-height: 210px;
  padding: 26px 16px 16px;
  border-radius: 4px;
  color: #2a2118;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  user-select: none;
  touch-action: none;
}

.g-board.is-draggable .g-card { cursor: grab; }
.g-board.is-draggable .g-card.is-dragging { cursor: grabbing; z-index: 50; }

.g-card__pin {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a8a, #c0392b 65%, #7d1f14);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
}

.g-card__from {
  font-size: 12px;
  letter-spacing: .04em;
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0, 0, 0, .3);
  overflow-wrap: anywhere;
}

.g-card__title {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.g-card__summary {
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  flex: 1;
}

.g-card__reward {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: .04em;
}

.g-card__status {
  font-size: 11px;
  margin: 0 0 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.g-card__link {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 6px;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, .55);
  background: rgba(255, 255, 255, .55);
  color: #2a2118 !important;
}
.g-card__link:hover { background: rgba(255, 255, 255, .85); }

.g-card__rank {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
}

/* 銅（1万円） */
.g-card.is-bronze {
  background: linear-gradient(160deg, #efe1c0 0%, #d9c298 100%);
  border: 3px solid #8a6a3d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .4);
}

/* 銀（5万円） */
.g-card.is-silver {
  background: linear-gradient(160deg, #fbfdff 0%, #d5dde6 55%, #eef3f8 100%);
  border: 3px solid #8f9dab;
  box-shadow: 0 0 0 2px #f2f6fa inset, 0 6px 12px rgba(0, 0, 0, .45);
}
.g-card.is-silver::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%);
  pointer-events: none;
  animation: g-shine 4.5s ease-in-out infinite;
}

/* 金（10万円） */
.g-card.is-gold {
  background: linear-gradient(160deg, #fff6d2 0%, #f3d98b 45%, #ffeeb5 100%);
  border: 4px double #a67c00;
  box-shadow:
    0 0 0 2px #fff3c4 inset,
    0 0 18px rgba(255, 212, 94, .55),
    0 8px 16px rgba(0, 0, 0, .5);
  animation: g-glow 2.8s ease-in-out infinite;
}
.g-card.is-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%);
  pointer-events: none;
  animation: g-shine 3.2s ease-in-out infinite;
}
.g-card.is-gold .g-card__rank { background: #a67c00; }
.g-card.is-gold .g-card__title::before { content: "👑 "; }

@keyframes g-shine {
  0%, 65% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes g-glow {
  0%, 100% { box-shadow: 0 0 0 2px #fff3c4 inset, 0 0 14px rgba(255, 212, 94, .4), 0 8px 16px rgba(0, 0, 0, .5); }
  50% { box-shadow: 0 0 0 2px #fff3c4 inset, 0 0 26px rgba(255, 212, 94, .8), 0 8px 16px rgba(0, 0, 0, .5); }
}

.g-card.is-done { filter: grayscale(.55); opacity: .8; }

/* 警告バナー（クリエイターに出し続ける） */
.g-alert {
  border: 2px solid var(--g-accent);
  background: rgba(255, 212, 94, .12);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.9;
  color: #ffe9a8;
}
.g-alert strong { color: #fff; }
.g-alert--danger { border-color: var(--g-danger); background: rgba(255, 138, 122, .12); color: #ffd6cf; }

/* 状態バッジ */
.g-badge {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  letter-spacing: .06em;
}
.g-badge--open { color: var(--g-accent); }
.g-badge--work { color: var(--g-ok); }
.g-badge--done { color: var(--g-sub); }

/* 定義リスト */
.g-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13px; line-height: 1.9; }
.g-dl dt { color: var(--g-sub); }
.g-dl dd { margin: 0; overflow-wrap: anywhere; }

.g-spec {
  white-space: pre-wrap;
  line-height: 2;
  font-size: 14px;
  background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--g-accent);
  padding: 14px 16px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

/* フォーム */
.g-field { margin-bottom: 20px; }
.g-field > label { display: block; font-size: 14px; margin-bottom: 8px; letter-spacing: .04em; }
.g-field .g-note { font-size: 12px; color: var(--g-sub); line-height: 1.8; margin: 6px 0 0; }

.g-input,
.g-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #05050d;
  border: 2px solid var(--g-line);
  border-radius: 6px;
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.8;
  font-family: inherit;
}
.g-textarea { min-height: 260px; resize: vertical; }
.g-input:focus,
.g-textarea:focus { outline: 2px solid var(--g-accent); outline-offset: 1px; }

.g-ranks { display: flex; flex-wrap: wrap; gap: 14px; }
.g-rank { flex: 1 1 200px; }
.g-rank input { position: absolute; opacity: 0; pointer-events: none; }
.g-rank__box {
  display: block;
  border: 3px solid #555a7a;
  border-radius: 8px;
  padding: 16px 14px;
  cursor: pointer;
  background: #05050d;
  text-align: center;
  transition: border-color .15s ease, transform .1s ease;
}
.g-rank__box:hover { transform: translateY(-2px); }
.g-rank input:checked + .g-rank__box { border-color: var(--g-accent); box-shadow: 0 0 14px rgba(255, 212, 94, .35); }
.g-rank__name { display: block; font-size: 15px; margin-bottom: 6px; }
.g-rank__price { display: block; font-size: 20px; font-weight: 700; color: var(--g-accent); }
.g-rank__desc { display: block; font-size: 11px; color: var(--g-sub); margin-top: 8px; line-height: 1.7; }
.g-rank--bronze .g-rank__name { color: #d8b98a; }
.g-rank--silver .g-rank__name { color: #dfe7ef; }
.g-rank--gold .g-rank__name { color: #ffd45e; }

.g-error { color: var(--g-danger); font-size: 13px; line-height: 1.8; margin: 6px 0 0; }

/* 一覧テーブル */
.g-list { display: grid; gap: 14px; }
.g-item {
  border: 2px solid #3b3f66;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .03);
}
.g-item__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.g-item__title { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.g-item__meta { font-size: 12px; color: var(--g-sub); line-height: 1.9; }

/* チャット */
.g-chat { display: flex; flex-direction: column; gap: 12px; max-height: 460px; overflow-y: auto; padding-right: 6px; }
.g-msg { max-width: 78%; }
.g-msg__name { font-size: 11px; color: var(--g-sub); margin: 0 0 4px; }
.g-msg__body {
  background: #1c1c40;
  border: 2px solid #454a7d;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.g-msg__time { font-size: 10px; color: var(--g-sub); margin: 4px 0 0; }
.g-msg.is-mine { align-self: flex-end; }
.g-msg.is-mine .g-msg__name,
.g-msg.is-mine .g-msg__time { text-align: right; }
.g-msg.is-mine .g-msg__body { background: #22452f; border-color: #4d8a63; }

.g-chat-form { display: flex; gap: 10px; margin-top: 16px; align-items: flex-start; }
.g-chat-form textarea { flex: 1; min-height: 84px; }

@media screen and (max-width: 900px) {
  .g-scope { padding: 24px 12px 48px; }
  .g-board { padding: 16px; gap: 14px; justify-content: center; }
  .g-card { width: 100%; max-width: 340px; }
  .g-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .g-dl dt { margin-top: 8px; }
  .g-chat-form { flex-direction: column; }
  .g-chat-form .g-btn { width: 100%; }
  .g-msg { max-width: 92%; }
}

/* ------------------------------------------------------------------
 * 「ギルドとは」の説明用
 * ------------------------------------------------------------------ */

/* 流れ（ステップ） */
.g-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.g-flow__step {
  position: relative;
  border: 2px solid #454a7d;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  padding: 16px 14px 14px;
}

.g-flow__step:not(:last-child)::after {
  content: "▶";
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  color: var(--g-accent);
  font-size: 12px;
  line-height: 1;
}

.g-flow__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--g-accent);
  color: var(--g-accent);
  font-size: 13px;
  margin-bottom: 8px;
}

.g-flow__who { display: block; font-size: 11px; color: var(--g-sub); margin-bottom: 4px; }
.g-flow__title { font-size: 14px; margin: 0 0 6px; line-height: 1.5; color: #fff; }
.g-flow__desc { font-size: 12px; line-height: 1.8; color: var(--g-sub); margin: 0; }
.g-flow__step.is-money { border-color: var(--g-accent); background: rgba(255, 212, 94, .08); }

/* 2カラム（依頼する人 / 受ける人） */
.g-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-col {
  border: 2px solid #3b3f66;
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .03);
}
.g-col h3 { font-size: 15px; margin: 0 0 10px; color: #fff; }
.g-col h3::before { content: "◆ "; color: var(--g-accent); }
.g-col ul { margin: 0; padding-left: 1.2em; }
.g-col li { font-size: 13px; line-height: 2; margin-bottom: 2px; }

/* 見本のカードを並べる（ドラッグはしない） */
.g-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  border: 3px solid #6b4a21;
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .05) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #8a6435 0%, #6f4f27 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45);
  padding: 22px;
  margin-top: 14px;
}
.g-samples .g-card { cursor: default; }

/* Q&A */
.g-qa { margin: 0; }
.g-qa dt {
  font-size: 14px;
  color: #fff;
  margin-top: 16px;
  line-height: 1.7;
}
.g-qa dt::before { content: "Q. "; color: var(--g-accent); }
.g-qa dt:first-child { margin-top: 0; }
.g-qa dd {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 2;
  color: var(--g-sub);
  padding-left: 1.6em;
  text-indent: -1.6em;
}
.g-qa dd::before { content: "A. "; color: var(--g-ok); }

/* 説明ブロック（掲示板やマイページに置く短い版） */
.g-howto {
  border: 2px dashed #5a5f8c;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, .03);
}
.g-howto__title { font-size: 14px; margin: 0 0 8px; color: #fff; }
.g-howto__title::before { content: "❔ "; }
.g-howto__steps { display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.g-howto__steps li { font-size: 12px; color: var(--g-sub); line-height: 1.7; }
.g-howto__steps li:not(:last-child)::after { content: " ▶"; color: var(--g-accent); }

@media screen and (max-width: 900px) {
  .g-flow { grid-template-columns: 1fr; }
  .g-flow__step:not(:last-child)::after { top: auto; right: auto; bottom: -14px; left: 50%; transform: translateX(-50%) rotate(90deg); }
  .g-cols { grid-template-columns: 1fr; }
  .g-samples { padding: 16px; }
}

/* ------------------------------------------------------------------
 * TOP に置く入口（ギルド／アフィリエイト）
 * ------------------------------------------------------------------ */
.t-entrances { padding-block: 40px; }
.t-entrance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.t-entrance { margin-bottom: 0; display: flex; flex-direction: column; }
.t-entrance p { font-size: 14px; }
.t-entrance__points { margin: 12px 0 0; padding-left: 1.2em; flex: 1; }
.t-entrance__points li { font-size: 13px; line-height: 2; color: var(--g-sub); }
.t-entrance__points li strong { color: var(--g-accent); }

@media screen and (max-width: 900px) {
  .t-entrance-grid { grid-template-columns: 1fr; }
}
