/* 素材あつめ便(先行登録ページ)だけの追加のスタイル。基本は /style.css。色は style.css の変数(ライト・ダーク両対応)を使う。 */
.sozai-sample {
  margin: 12px 0 24px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.sozai-sample-title {
  margin: 0 0 8px;
}
/* 見本であることを示す小さな印(題の前) */
.sozai-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  vertical-align: 1px;
}
.sozai-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sozai-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.sozai-list li:first-child {
  border-top: 0;
}
.sozai-item {
  overflow-wrap: anywhere;
}
.sozai-state {
  margin-left: auto; /* スマホ幅で折り返しても右に寄せる */
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}
.sozai-state.done {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.sozai-state.todo,
.sozai-state.part {
  background: var(--warn-bg);
  color: var(--warn-fg);
}
.sozai-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 14px 0 0;
}
.sozai-progress progress {
  flex: 1 1 160px;
  max-width: 320px;
  height: 14px;
}
footer.site .wrap > span:not(.copy) {
  flex-basis: 100%;
}
/* 入力した文字を太字にしない(style.css 側の直しとは別に、この商品の側でも指定しておく) */
form.stack input[type="email"],
form.stack input[type="text"],
form.stack textarea {
  font-weight: 400;
}
/* 同意のチェック欄: 押しやすい大きさと余白 */
form.stack label.agree {
  padding: 8px 0;
}
form.stack label.agree input {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  margin-right: 6px;
}
/* 送信後に表示するアドレスが長くても、はみ出さない */
#doneto {
  overflow-wrap: anywhere;
}
/* プライバシーの説明の事業者の表の1列目。style.css の min-width: 14em を、同じセレクタで上書きする */
.table-scroll table.plain td:first-child {
  min-width: 8em;
}

/* ---- 「ひな形・書き方」のページ(lib/guide-pages.js)の表。スマホの幅では、1行を1枚のカードにして縦に並べる(横にはみ出さない) ---- */
table.guide {
  width: 100%;
  margin: 12px 0 20px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
}
table.guide th,
table.guide td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
table.guide thead th {
  background: var(--soft);
}
table.guide tbody th {
  font-weight: 700;
}
/* 依頼リストのひな形の6つの表(5列): 列の幅を決めて、表ごとに幅が変わらないようにそろえる。「締切」「状態」(4・5列目)は折り返さない。
   スマホの幅では、下で1行を1枚のカードにするので、この幅は効かない(見出しの行は隠れ、セルは縦に並ぶ)。 */
table.guide {
  table-layout: fixed;
}
table.guide thead th:nth-child(1) {
  width: 23%;
}
table.guide thead th:nth-child(2) {
  width: 25%;
}
table.guide thead th:nth-child(4) {
  width: 6.5em;
}
table.guide thead th:nth-child(5) {
  width: 5.5em;
}
table.guide th:nth-child(4),
table.guide td:nth-child(4),
table.guide th:nth-child(5),
table.guide td:nth-child(5) {
  white-space: nowrap;
}
@media (max-width: 719px) {
  /* 見出しの行は画面から隠し(読み上げには残す)、各セルの前に列の名前を出す */
  table.guide thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  table.guide,
  table.guide tbody,
  table.guide tr,
  table.guide th,
  table.guide td {
    display: block;
  }
  table.guide {
    background: transparent;
  }
  table.guide tr {
    margin: 0 0 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }
  table.guide tbody th,
  table.guide td {
    padding: 2px 0;
    border: 0;
  }
  table.guide td::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 13px;
  }
  /* カードでは「締切」「状態」(4・5列目。どの行も同じ「○月○日」「未依頼」)を出さない。コピー用の文字には入っている */
  table.guide td:nth-child(4),
  table.guide td:nth-child(5) {
    display: none;
  }
}
/* ひな形を丸ごとコピー(ボタンと、コピー用の文字) */
.guide-copy {
  margin: 12px 0 20px;
}
.guide-copy details {
  margin-top: 10px;
}
.guide-copy summary {
  cursor: pointer;
}
.guide-copy pre {
  max-height: 20em;
  margin: 8px 0 0;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
}
#tpl-copied {
  margin-left: 8px;
  color: var(--ok-fg);
}
