.policy-title {
	padding-bottom: 0.5625rem;
	padding-top: calc(var(--gheader-h) + 8px);
	position: relative;
	text-align: center;
}

.policy-title h1 {
	color: #f62837;
	font-size: 2.7rem;
	font-weight: 700;
}

.policy-title span {
	color: #f62837;
	display: inline-block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 2;
	margin-top: 0rem;
}

@media screen and (max-width: 769px) {
.policy-title {
	padding-bottom: 0.375rem;
	padding-top: 3.75rem;
}

.policy-title h1 {
	font-size: 1.5rem;
}

.policy-title span {
	font-size: 1rem;
	line-height: normal;
	margin-top: 0rem;
	}}

.policy-desc {
  color: #444;
  font-size: 1rem;
  line-height: 1.9;
  margin-top: 1.2rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
}

/* プライバシー同意セクション */
.privacy-section {
  margin-top: 2rem;
  padding: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.privacy-section h3 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  border-bottom: none;
  padding-bottom: 0;
}

.privacy-section p {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  text-align: left;
}

.privacy-check {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  background-color: transparent;
  padding: 0;
  border: none;
}.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  user-select: none;
}

/* チェック非表示 */
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

/* カスタムボックス */
.custom-box {
  width: 30px;
  height: 30px;
  border: 3px solid #2563eb; 
  border-radius: 5px;
  background-color: #fff;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: inset 0 0 0 2px #fff; 
}

/* チェックマーク */
.custom-box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 55%;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.15s ease;
}


.checkbox-label input[type="checkbox"]:checked + .custom-box {
  background-color: #d32f2f; 
  box-shadow: inset 0 0 0 2px #fff; 
  border-radius: 5px;
}

.checkbox-label input[type="checkbox"]:checked + .custom-box::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}


.checkbox-label input[type="checkbox"]:active + .custom-box {
  transform: scale(0.95);
}


.checkbox-label input[type="checkbox"]:focus-visible + .custom-box {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}


/* レスポンシブ対応 */
@media screen and (max-width: 769px) {
  .privacy-section {
    margin-top: 1.5rem;
    padding: 0;
  }
  
  .privacy-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .privacy-section p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .privacy-check {
    margin-top: 1.2rem;
    padding: 0;
  }
  
  .checkbox-label {
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  
  .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 769px) {
  .policy-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 0 1.5rem;
  }
}

main section.card {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

main section.card .desc {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #555;
  line-height: 1.8;
}

main section.card .form-scope {
  display: block;
}

main section.card form .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  main section.card form .grid-2 {
    grid-template-columns: 1fr;
  }
}

main section.card form .row {
  margin-bottom: 1.5rem;
}

main section.card label {
 
  font-weight: 600;
  margin-bottom: 0.5em;
}

main section.card input,
main section.card textarea,
main section.card select {
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

main section.card textarea {
  min-height: 180px;
  resize: vertical;
}

main section.card .req {
  color: #e60012;
  font-weight: 700;
  font-size: 0.9em;
}

main section.card .opt {
  color: #999;
  font-size: 0.9em;
}

main section.card .note {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.3em;
}

main section.card .agree {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  line-height: 1.6;
}

main section.card .agree input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.25em;
}

main section.card .agree label {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
}

main section.card .agree label .note {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.3em;
  line-height: 1.5;
}


main section.card .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

main section.card .btn {
  background-color: #e60012;
  color: #fff;
  border: none;
  padding: 0.8em 2em;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

main section.card .btn:hover {
  opacity: 0.85;
}

main section.card .btn.secondary {
  background-color: #aaa;
}

/* 枠全体は既存の .card をそのまま利用 */
main section.card .form-scope { display:block; }

/* 2カラムの行グリッド */
.form-grid{
  display:grid;
  grid-template-columns: 240px 1fr;
  border:1px solid #e6e6e6;
  border-top:none;
}

/* 行セル共通 */
.form-grid .cell{
  padding: 14px 16px;
  border-top:1px solid #e6e6e6;
}

/* 左ラベル列 */
.form-grid .cell.-label{
  background:#f7f6f5;
  display:flex;
  align-items:center;
}

/* 右フィールド列 */
.form-grid .cell.-field{
  background:#fff;
}

/* ラベル内テキスト */
.field-label{
  font-weight:600;
  color:#333;
  display:inline-flex;
  align-items:center;
  gap:.5em;
}

/* 必須マーク */
.mark.req{ color:#e60012; font-weight:700; }

/* 「法人のみ」バッジ */
.badge{
  display:inline-block;
  font-size:.8rem;
  color:#e60012;
  border:1px solid #e60012;
  padding:.1em .5em;
  border-radius:3px;
  line-height:1.4;
}

/* テキスト入力系 */
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid textarea,
.form-grid select{
  width:100%;
  padding:.7em .8em;
  border:1px solid #ccc;
  border-radius:4px;
  font-size:1rem;
  box-sizing:border-box;
}

/* テキストエリア */
.form-grid textarea{
  min-height: 200px;
  resize: vertical;
}

/* 注意書き */
.note{
  margin-top:.35em;
  font-size:.9rem;
  color:#666;
}

/* 文字数カウント行 */
.meta{
  margin-top:.4em;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.meta .count{ font-size:.85rem; color:#999; }

/* チェックリスト（業務）*/
.checklist{
  display:grid;
  grid-template-columns: repeat(2,minmax(220px,1fr));
  gap:.5rem 1rem;
  list-style:none;
  padding:0; margin:0;
}
.checklist input{ margin-right:.4em; }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
}

.checklist li {
  display: flex;
  align-items: center;
  line-height: 1.6;
}

.checklist li input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.6em;
  flex-shrink: 0;
}

.checklist li label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  cursor: pointer;
}


@media (max-width: 960px){
  .form-grid{ grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px){
  .form-grid{ grid-template-columns: 1fr; }
  .form-grid .cell.-label{ background:#f7f6f5; }
}

/* ラジオボタン行 */
.radio-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
  line-height: 1.6;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
}

/* ラジオボタン */
.radio-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1em;
  height: 1em;
  border: 2px solid #b3b3b3;
  border-radius: 50%;
  margin-right: 0.4em;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
transform: scale(0.85);
}

.radio-row input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8em;
  height: 0.8em;
  background-color: #e60012;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radio-row input[type="radio"]:hover {
  border-color: #e60012;
}

/* ラベル */
.radio-row label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  cursor: pointer;
line-height:2; 
}


  .step[hidden] { display: none !important; }
  .confirm-title { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
  .confirm-list { display: grid; grid-template-columns: 180px 1fr; gap: .75rem 1rem; border-top: 1px solid #e5e5e5; padding-top: 1rem; }
  .confirm-list dt { color: #555; }
  .confirm-list dd { margin: 0; }
  .pre-wrap { white-space: pre-wrap; }
  .actions.-confirm { display: flex; gap: .75rem; margin-top: 1.25rem; }
  .btn.-secondary { background: #f3f3f3; color: #333; border: 1px solid #ddd; }
  /* チェックリストの確認用の見た目 */
  .cf-list { margin: 0; padding-left: 1.2em; }
  .cf-list li { list-style: disc; }

/* ====== iPad・タブレット最適化（768–1024px） ====== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .policy-title {
    padding-top: calc(var(--gheader-h) + 4px);
    padding-bottom: 0.5rem;
  }
  .policy-title h1 { font-size: 2rem; }
  .policy-title span {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  /* リード説明 */
  .policy-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 640px;
    padding: 0 1rem;
  }

  
  main section.card {
    max-width: 760px;
    padding: 3rem 1.25rem;
  }
  main section.card .desc {
    margin-bottom: 2rem;
    line-height: 1.75;
  }

  
  .form-grid {
    grid-template-columns: 200px 1fr; 
  }
  .form-grid .cell {
    padding: 12px 14px;
  }
  .form-grid .cell.-label { 
    align-items: center;
  }
  .field-label {
    font-weight: 600;
    font-size: 0.95rem;
  }


  .form-grid input[type="text"],
  .form-grid input[type="email"],
  .form-grid textarea,
  .form-grid select {
    padding: 0.65em 0.8em;
    font-size: 0.95rem;
  }
  .form-grid textarea { min-height: 180px; }

  
  main section.card .checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
  }
  main section.card .checklist li label {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  /* ラジオ行：コンパクト化 */
  .radio-row { gap: 1.1em; line-height: 1.6; }
  .radio-row input[type="radio"] {
    width: 0.95em;
    height: 0.95em;
    transform: none;
  }
  .radio-row input[type="radio"]:checked::after {
    width: 0.6em;
    height: 0.6em;
  }
  .radio-row label {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  main section.card .note { font-size: 0.9rem; line-height: 1.6; }
  main section.card .actions { gap: 0.8rem; margin-top: 1.75rem; }
  main section.card .btn {
    padding: 0.7em 1.6em;
    font-size: 0.95rem;
    border-radius: 4px;
  }
  .confirm-list {
    grid-template-columns: 160px 1fr;
    gap: 0.7rem 0.9rem;
  }
  .confirm-title { font-size: 1.2rem; }
}
@media screen and (min-width: 768px) and (max-width: 820px) {
  .form-grid { grid-template-columns: 180px 1fr; }
  .policy-title h1 { font-size: 1.9rem; }
  .policy-desc { max-width: 600px; }
  main section.card { max-width: 740px; }
}

/* ============ エラー時の赤枠表示 ============ */
/* テキスト入力フィールドのエラー */
.form-grid input[type="text"].error,
.form-grid input[type="email"].error,
.form-grid textarea.error,
.form-grid select.error {
  border: 1px solid #e60012 !important;
}

/* チェックボックスリストのエラー */
.checklist.has-error {
  border: 1px solid #e60012;
 
}

/* ラジオボタン行のエラー */
.radio-row.has-error {
  border: 1px solid #e60012;
 
}

.form-grid input[type="text"]:focus.error,
.form-grid input[type="email"]:focus.error,
.form-grid textarea:focus.error,
.form-grid select:focus.error {
  border: 1px solid #e60012;
}