/* Kernel Work Shifts 申込ページ（共通の見た目は kws-site.css。ここはフォームと横の案内） */

/* 配置：パソコンはフォーム＋右の案内、スマホは縦に */
.signup-grid{ display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 8px; }
body:not([data-view="viewForm"]) .side{ display: none; }                         /* 申込フォーム以外の画面では案内を出さない */
body:not([data-view="viewForm"]) .signup-grid{ grid-template-columns: minmax(0, 680px); justify-content: center; }
.form-card h2{ font-size: 18px; margin: 0 0 2px; }
.lead{ line-height: 1.7; margin: 0 0 8px; }
.small-lead{ color: var(--sub); font-size: 14px; margin-bottom: 4px; }

/* 入力欄 */
.form-card label{ display: block; margin-top: 16px; font-size: 14px; font-weight: 600; }
.form-card input, .form-card select, .form-card textarea{ width: 100%; padding: 10px 12px; margin-top: 6px; font-size: 16px; border: 1px solid #d1d5db; border-radius: 8px; font-family: inherit; background: #fff; color: var(--ink); font-weight: normal; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus{ outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,214,.15); }
.req, .opt{ font-size: 11px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-weight: 600; vertical-align: 1px; }
.req{ background: #fde8e8; color: var(--red); }
.opt{ background: #eef0f3; color: #555; }
.note{ display: block; font-size: 12px; color: var(--sub); margin-top: 6px; line-height: 1.6; font-weight: normal; }
.msg{ display: block; font-size: 13px; margin-top: 4px; min-height: 1em; font-weight: normal; }
.msg.okmsg{ color: var(--green); }
.msg.ngmsg{ color: #c00; }
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 営業日・営業時間のまとまり */
.grp{ border: 1px solid var(--line); border-radius: 12px; margin: 20px 0 0; padding: 10px 16px 16px; background: #fafbfd; }
.grp legend{ font-size: 14px; font-weight: 700; padding: 0 6px; }
.sub-h{ font-size: 13px; font-weight: 600; color: #374151; margin-top: 12px; }
.days{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.form-card .chip{ display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 999px; font-size: 14px; background: #fff; cursor: pointer; user-select: none; font-weight: 600; }
.form-card .chip input, .form-card .inl input, .form-card .agree input{ width: auto; margin: 0; padding: 0; box-shadow: none; }
.chip:has(input:checked){ background: #e9f0fd; border-color: var(--blue); }
.chip.sat{ color: #1d4ed8; } .chip.sun{ color: var(--red); }
.hours{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.form-card .hours input[type=time]{ width: 9em; margin: 0; }
.hours input[type=time]:disabled{ background: #f3f4f6; color: #999; }
.radios{ display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.form-card .inl{ display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: normal; cursor: pointer; }

/* 同意・ボタン・結果 */
.form-card .agree{ display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: #f3f6fb; font-weight: normal; }
.form-card .agree input{ transform: scale(1.25); }
.form-card .btn.block{ margin-top: 16px; padding: 13px 20px; font-size: 16px; }
.sub{ margin: 0 0 0 6px; padding: 2px 10px; font-size: 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; cursor: pointer; }
.error{ color: #c00; margin-top: 8px; }
.ok{ color: var(--green); font-weight: 700; font-size: 18px; margin-top: 0; }
.small{ font-size: 13px; color: var(--sub); margin-top: 14px; }
.kv{ border-collapse: collapse; width: 100%; margin: 10px 0; }
.kv th, .kv td{ border-bottom: 1px solid var(--line); padding: 8px 4px; text-align: left; font-size: 14px; vertical-align: top; }
.kv th{ width: 8em; color: var(--sub); font-weight: normal; }
code{ font-size: 15px; background: #f3f4f6; padding: 2px 8px; border-radius: 6px; }

/* 右の案内 */
.side{ display: grid; gap: 16px; position: sticky; top: 76px; }
.side-box{ background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.side-box h3{ font-size: 15px; margin: 0 0 10px; }
.flow{ list-style: none; counter-reset: st; margin: 0; padding: 0; }
.flow li{ position: relative; padding-left: 38px; margin-bottom: 14px; font-size: 13px; color: var(--sub); }
.flow li:last-child{ margin-bottom: 0; }
.flow li::before{ counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.flow b{ display: block; color: var(--ink); font-size: 14px; }
.checks{ list-style: none; margin: 0; padding: 0; }
.checks li{ position: relative; padding-left: 24px; margin: 6px 0; font-size: 14px; }
.checks li::before{ content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }
.side-note{ margin: 10px 0 0; font-size: 13px; color: var(--sub); }

/* ---- タブレット・スマホ ---- */
@media (max-width: 900px){
  .signup-grid{ grid-template-columns: minmax(0, 1fr); }
  .side{ position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .side{ grid-template-columns: 1fr; }
  .side-box{ padding: 16px; border-radius: 12px; }
  .grp{ padding: 8px 12px 14px; }
  .hours{ flex-wrap: nowrap; }
  .form-card .hours input[type=time]{ width: auto; flex: 1 1 0; min-width: 0; }
  .hours .inl{ flex: 0 0 auto; }
  .form-card .chip{ padding: 8px 14px; }                       /* 指で押しやすい大きさ */
  .radios .inl{ padding: 4px 0; }
  .kv th{ width: 6.5em; }
  .kv td{ word-break: break-all; }
}
@media (max-width: 360px){
  .hours{ flex-wrap: wrap; }
  .hours .inl{ flex-basis: 100%; }
  .form-card .chip{ padding: 7px 11px; }
}

/* ---- 利用規約・プライバシーポリシー（.terms） ---- */
.terms{ max-width: 860px; margin: 8px auto 0; }
.terms h2{ font-size: 16px; margin: 28px 0 8px; padding-left: 10px; border-left: 4px solid var(--blue); }
.terms h2:first-of-type{ margin-top: 0; }
.terms ol, .terms ul{ padding-left: 1.6em; margin: 4px 0; }
.terms li, .terms p{ font-size: 14px; line-height: 1.85; margin: 3px 0; }
.terms table{ border-collapse: collapse; width: 100%; margin: 8px 0; }
.terms th, .terms td{ border: 1px solid var(--line); padding: 8px 10px; font-size: 13px; line-height: 1.7; text-align: left; vertical-align: top; }
.terms th{ background: #f6f8fb; width: 30%; }
.terms .date{ text-align: right; margin-top: 28px; font-size: 13px; color: var(--sub); }
.terms .intro{ color: var(--sub); }
@media (max-width: 560px){
  .terms ol, .terms ul{ padding-left: 1.3em; }
  .terms li, .terms p{ overflow-wrap: anywhere; }
  .terms table, .terms table tbody, .terms table tr, .terms table th, .terms table td{ display: block; width: auto; }   /* 表は見出しと中身を縦に並べる */
  .terms table th{ border-bottom: 0; }
  .terms table td{ border-top: 0; margin-bottom: 8px; }
}
