/* =========================================
   CHIBA CHIKUSAN 共通CSS（トップ + ログイン統合）
   ========================================= */

:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --brand:#0f766e;
  --brand2:#115e59;
  --shadow: 0 10px 25px rgba(0,0,0,.06);
  --radius: 14px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Noto Sans JP", sans-serif;
  background:var(--bg);
  color:var(--text);
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

/* -------------------------
   Header / Footer（共通）
-------------------------- */
.site-header{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color:#fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.site-header__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:800;
  letter-spacing:.08em;
  font-size:18px;
}

.site-title{
  font-weight:800;
  letter-spacing:.08em;
  font-size:18px;
  white-space:nowrap;
}

.site-footer{
  padding:16px 12px;
  border-top:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  text-align:center;
  font-size:12px;
}

/* -------------------------
   共通カード
-------------------------- */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.card-head{
  padding:18px;
  border-bottom:1px solid var(--line);
  text-align:center;
}

.page-title{
  margin:0;
  font-weight:800;
  font-size:18px;
}

.card-body{
  padding:22px 20px 20px;
}

.card-body .form-input{
  padding-left:12px;   /* ← 通常inputと同じに戻す */
}

/* 英字表記（色は親要素を継承） */
.en{
  display:block;
  font-size:11px;
  font-weight:600;
  margin-top:2px;
  letter-spacing:.04em;
  color:inherit;
  opacity:.9;
}

/* =========================================
   トップページ用
   ========================================= */

.wrap{
  flex:1;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 28px;
  width:100%;
}

.card-head{
  padding:18px;
  border-bottom:1px solid var(--line);
  text-align:center;
}

/* 概要 */
.lead{
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px;
  background:#fff;
}

.lead h2{
  margin:0 0 8px;
  font-size:14px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
}

.lead p{
  margin:0;
  color:var(--text);
  font-size:14px;
  line-height:1.7;
}

.lead p + p{ margin-top:10px; }

/* 手続き選択 */
.section-title{
  margin: 22px 0 18px;
  text-align:center;
  font-weight:800;
  font-size:15px;
  line-height:1.6;
}

.actions{
  display:grid;
  gap:14px;
  margin-top: 18px;
}

.one-btn-actions{
  display:flex;
  justify-content:center;
  margin-top:20px;
}

.one-btn-actions .btn{
  width:auto;
  min-width:220px;
}

.btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  padding: 12px;
  border-radius: 12px;
  font-weight:800;
  font-size:14px;
  border: 1px solid transparent;
  cursor:pointer;
  user-select:none;
}

.btn-primary{
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  color:#fff;
}

.btn-primary:hover{ opacity:.92; }

.btn-outline{
  background:#fff;
  color:var(--brand);
  border-color: rgba(15,118,110,.35);
}

.btn-outline:hover{
  background:#f0fdfa;
}

.note{
  margin-top: 14px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  text-align:center;
}

/* =========================================
   ログインページ用
   ========================================= */

.login-wrap{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px 16px;
}

/* ログインカード幅（ログインのみ適用したいならクラスで分けるのが理想） */
.login-wrap .card{
  width:100%;
  max-width:420px;
}

/* ログイン（そのまま） */
.login-wrap .form-input{
  padding-left:34px;
}

/* 新規登録など（アイコン無し） */
.wrap .form-input{
  padding-left:12px;
}

.wrap:not(.login-wrap) .form-input{
  padding-left:12px;
}

.password-reminder .form-input{
  padding-left:38px;
}

/* フォーム */
.form-group{ margin-bottom:16px; }

.form-label{
  display:block;
  font-size:13px;
  font-weight:700;
  margin-bottom:6px;
  color:var(--muted);
}

.input-wrap{ position:relative; }

.input-wrap i{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:16px;
}

.form-input{
  width:100%;
  padding:10px 12px 10px 34px;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:14px;
  outline:none;
}

.form-input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 2px rgba(15,118,110,.15);
}

/* placeholder を薄く */
.form-input::placeholder{
  color:#c7cdd4;
  opacity:1;
}

/* ログインボタン */
.login-btn{
  width:100%;
  margin-top:6px;
  padding:11px;
  border:none;
  border-radius:10px;
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  color:#fff;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
}

.login-btn:hover{ opacity:.92; }

/* 下リンク */
.login-links{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:center;
  font-size:13px;
}

.login-links a{
  color:var(--brand);
  font-weight:700;
}

.login-links a:hover{
  text-decoration:underline;
}


/* 言語選択の説明文 */
.desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  margin:0 0 14px;
  text-align:center;
}

/* ラジオ（カードUI） */
.radio-group{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.radio-card{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 12px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
  user-select:none;
  background:#fff;
}

.radio-card:hover{
  background:#f9fafb;
}

.radio-card input{
  margin-top:3px;
  accent-color: var(--brand);
}

.radio-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  line-height:1.2;
}

.radio-text .jp{
  font-weight:800;
  font-size:14px;
}

.radio-text .en2{
  font-weight:700;
  font-size:12px;
  color:var(--muted);
}

/* ===== 新規従事者登録：必須バッジ ===== */
.req{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  color:#b91c1c;
  background:#fef2f2;
  border:1px solid #fecaca;
  letter-spacing:.04em;
}

/* 注釈テキスト */
.help{
  display:block;
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
}

/* 行間（項目ブロック） */
.form-row{
  margin-bottom:16px;
}

/* ラジオ並び */
.radio-line{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:6px;
}

.radio-line label{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:700;
  color:var(--text);
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}

.radio-line input[type="radio"]{
  accent-color: var(--brand);
  cursor:pointer;
}

/* select を input と見た目統一 */
.form-select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:14px;
  outline:none;
  background:#fff;
}

.form-select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 2px rgba(15,118,110,.15);
}

/* =========================
   フォームエラー
   ========================= */

/* フォーム全体エラー */
.field-error{
  display:block;          /* ← margin が効きやすい形に */
  margin-top:10px;
  padding-top:0;          /* 念のため */
  font-size:12px;
  font-weight:700;
  color:#b91c1c;
}

/* 項目エラー */
.field-error{
  /*display:none;*/
  margin-top:10px;
  font-size:12px;
  font-weight:700;
  color:#b91c1c;
}

/* エラー時 input 枠 */
.form-input.error,
.form-select.error{
  border-color:#ef4444;
  background:#fff7f7;
}


/* エラー表示 */
.form-input-error{
  margin-bottom:14px;
  padding:10px 12px;
  border-radius:10px;
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#b91c1c;
  font-size:13px;
  font-weight:700;
}

.form-input.error{
  border-color:#ef4444;
  background:#fff7f7;
}

/* select */
.form-select.error{
  border-color:#ef4444;
  background:#fff7f7;
}

/* focus時も赤維持 */
.form-input.error:focus,
.form-select.error:focus{
  border-color:#ef4444;
  box-shadow:0 0 0 2px rgba(239,68,68,.15);
}

/* =========================
   資格証登録 追加CSS（追記分のみ）
   ========================= */

.license-list{
  display:grid;
  gap:14px;
  margin-top:10px;
}

.license-item{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:12px 12px;
}

.license-title{
  font-weight:800;
  font-size:14px;
  margin-bottom:10px;
}

.license-grid{
  display:grid;
  gap:12px;
}

.license-col .form-label{
  margin-bottom:6px;
}

.form-file{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  font-size:13px;
  outline:none;
}

.form-file:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 2px rgba(15,118,110,.15);
}

/* =========================
   資格証：提出済み表示
========================= */

.license-item.is-uploaded{
    background:var(--soft, #f6f7fb);
    border:1px solid var(--line, #e6e6e6);
}

.uploaded-badge{
    margin-left:8px;
    padding:3px 8px;
    font-size:11px;
    font-weight:900;
    border-radius:20px;
    background:#e6f4ea;
    color:#0f7b3f;
}

.uploaded-text{
    margin:8px 0 0;
    font-size:12px;
    font-weight:700;
    color:var(--muted, #667085);
}


/* =========================
   同意書画面 追加CSS（追記分のみ）
   ========================= */

.consent-box{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:14px 14px;
  line-height:1.75;
  font-size:14px;
  color:var(--text);
  max-height: 52vh;       /* 長文対策：スクロール */
  overflow:auto;
}

.consent-lead{
  margin:0 0 10px;
  font-weight:800;
}

.consent-box p{
  margin:0;
}

.consent-box p + p{
  margin-top:12px;
}

/* 同意チェック */
.agree-line{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:14px;
  font-weight:800;
  cursor:pointer;
  user-select:none;
}

.agree-line input{
  margin-top:3px;
  accent-color: var(--brand);
}

.agree-line input:disabled + span{
  color:#9ca3af;        /* 薄いグレー */
}

/* 念のため：カーソルも無効風 */
.agree-line input:disabled + span{
  cursor:not-allowed;
}

.confirm-alert{
  border:1px solid #fecaca;
  background:#fef2f2;
  color:#b91c1c;
  border-radius:12px;
  padding:12px 14px;
  font-size:13px;
  font-weight:800;
  margin:0 0 12px;
}

.confirm-lead{
  margin:0 0 10px;
  font-size:13px;
  line-height:1.7;
  color:var(--text);
}

.confirm-note{
  margin:0 0 16px;
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
}

.confirm-block{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:14px 14px;
  margin-top:14px;
}

.confirm-section-title{
  font-weight:800;
  font-size:14px;
  margin-bottom:10px;
}

.confirm-row{
  display:flex;
  gap:12px;
  padding:10px 0;
  border-top:1px dashed var(--line);
}

.confirm-row:first-child{
  border-top:none;
  padding-top:0;
}

.confirm-label{
  width:120px;
  flex:0 0 120px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.confirm-value{
  flex:1;
  font-size:14px;
  font-weight:700;
  color:var(--text);
  word-break:break-word;
}

/* 資格証画像 */
.doc-grid{
  display:grid;
  gap:12px;
}

.doc-item{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
}

.doc-title{
  font-weight:800;
  font-size:13px;
  margin-bottom:8px;
}

.doc-thumb{
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#f9fafb;
}

.doc-thumb img{
  width:100%;
  height:auto;
  display:block;
}

/* 同意状況 */
.agree-list{
  display:grid;
  gap:8px;
}

.agree-item{
  font-size:13px;
  font-weight:800;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.agree-check{
  color:var(--brand);
}

.agree-ok{
  color:var(--brand);
}

/* 持ち物・ルール */
.item-list,
.rule-list{
  margin:0;
  padding-left:18px;
  color:var(--text);
  line-height:1.7;
  font-size:13px;
}

.item-list li + li,
.rule-list li + li{
  margin-top:10px;
}

.confirm-sublead{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

/* =========================
   スクロール誘導（点滅）
   ========================= */

/* 誘導中：枠を軽く点滅 */
.consent-box.is-hint{
  position:relative;
  animation: consentHint 1.2s ease-in-out infinite;
}

/* =========================
   スクロール誘導説明
   ========================= */

.scroll-guide{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:10px;
  background:#f0fdfa;
  border:1px solid rgba(15,118,110,.25);
  color:var(--brand);
  font-size:13px;
  font-weight:700;
  line-height:1.6;
}

/* 非活性ボタン */
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  filter:grayscale(.2);
}


/* 右端に “スクロールできます” の薄いグラデーション */
.consent-box.is-hint::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:18px;
  height:100%;
  pointer-events:none;
  background: linear-gradient(to left, rgba(15,118,110,.18), rgba(15,118,110,0));
}

/* 下向き矢印（右下）を点滅 */
.consent-box.is-hint::before{
  content:"▼";
  position:absolute;
  right:10px;
  bottom:10px;
  font-size:12px;
  font-weight:800;
  color: rgba(15,118,110,.75);
  pointer-events:none;
  animation: arrowBlink 1s ease-in-out infinite;
}

/* =========================
   登録完了画面
   ========================= */

.complete-box{
  text-align:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:22px 18px;
}

/* チェックアイコン */
.complete-icon{
    width:64px;
    height:64px;
    margin:0 auto 16px;
    border-radius:50%;
    background:var(--brand);
    color:#fff;
    font-size:30px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 6px 14px rgba(0,0,0,.15);
}

/* 見出し */
.complete-lead{
  margin:0 0 10px;
  font-size:16px;
  font-weight:900;
  color:var(--text);
}

/* 注釈 */
.complete-sub{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

/* =========================
   パスワードリマインダー
   ========================= */

/* 横幅だけこの画面用に拡張 */
.password-reminder .card{
  max-width:640px;
  margin:0 auto;
}

/* アイコン位置 */
.password-reminder .input-wrap{
  position:relative;
}

.password-reminder .input-wrap i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  color:var(--muted);
}

/* アイコン分の余白確保（.wrap .form-input に勝つ） */
.password-reminder .input-wrap.has-icon .form-input{
  padding-left:38px;
}

.confirm-notebox{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:14px 14px;
  margin:14px 0;
}

.confirm-notebox__title{
  margin:0 0 10px;
  font-weight:900;
  font-size:13px;
  color:var(--text);
}

.confirm-notebox__list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.7;
  font-size:12px;
}

.confirm-notebox__list li + li{
  margin-top:8px;
}

.confirm-mail{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:14px 14px;
  margin:14px 0 0;
}

.confirm-mail__label{
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  margin-bottom:6px;
}

.confirm-mail__value{
  font-size:14px;
  font-weight:800;
  color:var(--text);
  word-break:break-word;
}

.password-reminder.is-narrow .card{
  max-width:520px;
  margin:0 auto;
}

/* input-wrap + icon */
.password-reminder .input-wrap{
  position:relative;
}

.password-reminder .input-wrap i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:16px;
}

/* アイコン分の余白を確保（既存 .wrap .form-input に勝つ） */
.password-reminder .input-wrap.has-icon .form-input{
  padding-left:38px;
}


/* “狭い方”の幅を適用 */
.password-reminder.is-narrow .card{
  max-width:520px;
  margin:0 auto;
}

/* ボタン中央 */
.complete-actions{
    margin-top:22px;
    text-align:center;

    display:flex;
    justify-content:center;
    gap:12px;   /* ← ボタン間隔 */
    flex-wrap:wrap;
}

/* 幅を狭める（既存 .btn が幅100%でも崩れないように） */
.btn-compact{
  width:auto;
  min-width:220px;
}

/* =========================
   パスワード再設定完了
   ========================= */

/* 狭い幅適用 */
.password-reminder.is-narrow .card{
  max-width:520px;
  margin:0 auto;
}

/* 完了ボックス */
.complete-box{
  text-align:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:22px 18px;
}

/* チェックアイコン */
.complete-icon{
  width:54px;
  height:54px;
  margin:0 auto 12px;
  border-radius:50%;
  background:rgba(15,118,110,.12);
  color:var(--brand);
  font-size:26px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* 見出し */
.complete-lead{
  margin:0 0 10px;
  font-size:16px;
  font-weight:900;
  color:var(--text);
}

/* 本文 */
.complete-text{
  margin:0;
  font-size:13px;
  line-height:1.8;
  color:var(--text);
}

/* ボタン幅コンパクト */
.btn-compact{
  width:auto;
  min-width:220px;
}

.page-head{
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.page-title{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
}

/* QR ブロック */
.qr-block{
  padding: 18px;
  text-align:center;
}
.qr-img{
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.qr-img img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}
.qr-code{
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 14px;
}
.qr-name{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

/* メニュー */
.menu{
  padding: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.menu-group{
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
}
.menu-group__title{
  padding: 12px 14px;
  font-weight: 800;
  background: #f9fafb;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.menu-group__title small{
  color: var(--muted);
  font-weight: 700;
}
.menu-list{
  list-style:none;
  padding: 0;
  margin: 0;
}
.menu-item{
  border-top: 1px solid var(--line);
}
.menu-item:first-child{ border-top: none; }

.menu-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
}
.menu-link .label{
  font-weight: 700;
}
.menu-link .arrow{
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.menu-link:hover{
  background:#f9fafb;
}

.danger{
  color: var(--danger);
}
    
/* グループタイトル左側 */
.title-left{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
}

/* アイコン共通 */
.menu-group__title i{
  font-size:18px;
  line-height:1;
  color: var(--brand);
}

/* =========================
   従事者情報詳細（追記分のみ）
   ========================= */

.detail-block{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:14px 14px;
  margin-top:14px;
}

.detail-section-title{
  font-weight:900;
  font-size:14px;
  margin-bottom:10px;
}

.detail-row{
  display:flex;
  gap:12px;
  padding:10px 0;
  border-top:1px dashed var(--line);
}

.detail-row:first-of-type{
  border-top:none;
  padding-top:0;
}

.detail-label{
  width:140px;
  flex:0 0 140px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.detail-value{
  flex:1;
  font-size:14px;
  font-weight:700;
  color:var(--text);
  word-break:break-word;
}

.addr-zip{
  display:inline-block;
  font-weight:900;
  color:var(--text);
  margin-bottom:2px;
}

.detail-actions{
  margin-top:12px;
  display:flex;
  justify-content:flex-start;
}

.detail-actions.center{
  display:flex;
  justify-content:center;
}

.detail-footer{
  margin-top:18px;
  display:flex;
  justify-content:center;
}

/* ボタン幅（既存btnが100%でもコンパクト化） */
.btn-compact{
  width:auto;
  min-width:240px;
}

@media (max-width: 520px){
  .detail-row{
    flex-direction:column;
    gap:6px;
  }
  .detail-label{
    width:auto;
    flex:none;
  }
  .btn-compact{
    min-width: 100%;
  }
}


/* =========================
   完了画面 共通
   ========================= */

.complete-block{
    text-align:center;
    padding:26px 10px 10px;
}

.complete-icon{
    width:64px;
    height:64px;
    margin:0 auto 16px;
    border-radius:50%;
    background:var(--brand);
    color:#fff;
    font-size:30px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 6px 14px rgba(0,0,0,.15);
}

.complete-title{
    margin:0 0 10px;
    font-size:18px;
    font-weight:900;
    color:var(--brand);
}

.actions.center{
    justify-content:center;
}

/* =========================
   希望シフト：日時横並び（標準幅）
========================= */

.datetime-inline{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:nowrap;
}

/* 既存 width:100% を解除 */
.datetime-inline > input,
.datetime-inline > select,
.datetime-inline .form-input,
.datetime-inline .form-select{
    width:auto !important;
    display:inline-block !important;
}

/* --- 日付：標準サイズ --- */
.datetime-inline > input[type="date"],
.datetime-inline .form-input[type="date"]{
    flex:0 0 180px;   /* ← 標準幅 */
    max-width:180px;
}

/* --- 時間：固定幅 --- */
.datetime-inline > select,
.datetime-inline .form-select{
    flex:0 0 120px;
    max-width:120px;
}

/* =========================
   希望シフト一覧
   （style.css に追記）
========================= */

.shift-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:8px;
}

.shift-item{
    padding:12px 12px;
    border:1px solid var(--line, #e6e6e6);
    border-radius:14px;
    background:#fff;
}

.shift-time{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    font-weight:900;
}

.shift-sep{
    color:var(--muted, #667085);
    font-weight:800;
}

.empty-state{
    padding:18px 12px;
    border:1px dashed var(--line, #e6e6e6);
    border-radius:14px;
    background:var(--soft, #f6f7fb);
    text-align:center;
}

.empty-text{
    margin:0;
    font-size:13px;
    font-weight:800;
    color:var(--muted, #667085);
}

/* =========================
   希望シフト一覧：削除付き
========================= */

.shift-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.shift-del-form{
    margin:0;
}

/* 危険色（既存btnを壊さない軽い赤系） */
.btn-danger{
    color:#c53030;
    border-color:#f5c2c7;
    background:#fff;
}

.btn-danger:hover{
    background:#fff5f5;
}

/* =========================
   確定シフト一覧
   （style.css に追記）
========================= */

.fixed-shift-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:8px;
}

.fixed-shift-item{
    border:1px solid var(--line, #e6e6e6);
    border-radius:14px;
    background:#fff;
    overflow:hidden;
}

.fixed-shift-head{
    padding:12px 12px;
    background:var(--soft, #f6f7fb);
    border-bottom:1px solid var(--line, #e6e6e6);
}

.fixed-site-name{
    margin:0;
    font-size:14px;
    font-weight:900;
    color:var(--brand);
}

.fixed-site-address{
    margin:6px 0 0;
    font-size:12px;
    font-weight:800;
    color:var(--muted, #667085);
}

.fixed-shift-body{
    padding:12px 12px;
}

.fixed-row{
    display:flex;
    gap:10px;
    padding:8px 0;
    border-top:1px dashed var(--line, #e6e6e6);
}

.fixed-row:first-child{
    border-top:none;
    padding-top:0;
}

.fixed-label{
    width:90px;
    margin:0;
    font-size:12px;
    font-weight:900;
    color:var(--muted, #667085);
    flex:0 0 auto;
}

.fixed-value{
    margin:0;
    font-size:13px;
    font-weight:900;
    flex:1 1 auto;
    word-break:break-word;
}


.fixed-shift-list + .actions{
    display:flex;
    justify-content:center;
}

@media (max-width: 520px){
    .fixed-row{
        flex-direction:column;
        gap:6px;
    }

    .fixed-label{
        width:auto;
    }
}

/* スマホ */
@media (max-width: 520px){
    .shift-item{
        padding:10px 10px;
    }

    .shift-row{
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        gap:8px;
    }

    .shift-time{
        flex:1 1 auto;
        min-width:0;
        flex-wrap:wrap;
        row-gap:4px;
    }

    .shift-del-form{
        flex:0 0 auto;
        margin:0;
    }

    .shift-del-form .btn{
        padding:8px 10px;
        min-height:36px;
        white-space:nowrap;
    }
}

@keyframes pop{
    0%{ transform:scale(.6); opacity:0; }
    100%{ transform:scale(1); opacity:1; }
}


@keyframes consentHint{
  0%,100%{ box-shadow: 0 0 0 0 rgba(15,118,110,.0); }
  50%    { box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
}

@keyframes arrowBlink{
  0%,100%{ opacity:.2; transform: translateY(0); }
  50%    { opacity:.95; transform: translateY(2px); }
}


/* =========================================
   レスポンシブ
   ========================================= */

@media (min-width: 860px){
  .actions{
    grid-template-columns: 1fr 1fr;
  }
  .card-body{
    padding: 20px 22px 22px;
  }
  .license-grid{
    grid-template-columns: 1fr 1fr;
  }
  .doc-grid{
    grid-template-columns: 1fr 1fr;
  }
  .layout-2col{
    display:grid;
    grid-template-columns: 340px 1fr;
    gap: 14px;
    align-items:start;
  }
  .menu{ padding: 18px; }
  .radio-group{
    flex-direction:column;
    gap:8px;
  }
}

@media (max-width: 520px){
    .datetime-inline{
        gap:8px; /* 縦の間隔を詰める */
    }

    /* 日付・時間だけ高さをコンパクトに */
    .datetime-inline > input[type="date"],
    .datetime-inline > select,
    .datetime-inline .form-input[type="date"],
    .datetime-inline .form-select{
        padding:10px 12px !important;  /* ここを詰める */
        line-height:1.2 !important;
        min-height:40px !important;     /* 端末でも崩れにくい最低ライン */
        height:auto !important;
    }

    /* もし既存で select が異常に高い場合の保険 */
    .datetime-inline > select,
    .datetime-inline .form-select{
        padding-top:8px !important;
        padding-bottom:8px !important;
    }
}
