/* ▼ ヘッダー全体 */
header {
  position: relative !important;
}
.sub-header {
  background-color: #4d6df8;
}

/* ▼ 横並び用の内包ブロック */
.sub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  margin: 0 auto;
}

/* ▼ ナビ部分 */
.sub-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.sub-nav ul li a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.sub-nav ul li a:hover {
  opacity: 0.7;
}

/* ▼ スマホ対応 */
@media screen and (max-width: 768px) {
  .sub-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .sub-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .sub-header h1 {
    text-align: center;
  }
}

/* プライバシーポリシー全体ラッパー（会社概要と同じ） */
.company.policy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 10px;
}
.company.company > p {
  margin-bottom: 40px;
}

/* タイトル（会社概要の.section-titleと統一） */
.company.policy .section-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 40px;
}

/* 各セクション */
.policy-section {
  margin-bottom: 40px;
}

/* セクション見出し（会社概要のth相当） */
.policy-section h3 {
  font-size: 20px;
  font-weight: bold;
  border-left: 4px solid #ff699c;
  padding-left: 10px;
  margin-bottom: 10px;
}

/* 本文テキスト（会社概要のtd相当） */
.policy-section p,
.policy-section li {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* リスト（ul）余白整え */
.policy-section ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin: 0;
}

.policy-section li {
  position: relative;
  margin-bottom: 0.5em;
}
.policy-section p {
  text-indent: 1em;
}
.policy-section a {
  color: #ff699c;
}

/* ▼ フッター全体 */
footer {
  margin-bottom: 0 !important;
}

/* ========== お問い合わせ（/contact/） ========== */
.company.contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 10px;
}

.company.contact .section-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* フォーム全体 */
.company.contact .c-form {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* 項目ごと */
.company.contact .form-group {
  margin-bottom: 20px;
}

.company.contact .form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* インプット共通 */
.company.contact .form-group input[type="text"],
.company.contact .form-group input[type="email"],
.company.contact .form-group select,
.company.contact .form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  box-sizing: border-box;
}

/* フォーカス */
.company.contact .form-group input:focus,
.company.contact .form-group select:focus,
.company.contact .form-group textarea:focus {
  border-color: #4d6df8;
  box-shadow: 0 0 0 3px rgba(77,109,248,.15);
}

/* プレースホルダー薄め */
.company.contact ::placeholder {
  color: #9aa3a8;
}

/* 補足文 */
.company.contact .form-group small {
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 12px;
}

/* テキストエリア高さ */
.company.contact textarea {
  min-height: 140px;
  resize: vertical;
}
.c-alert--error {
  color: #ff699c;
}
/* 必須エラー時（サーバー側で .is-error を当てる運用想定） */
.company.contact .form-group.is-error input,
.company.contact .form-group.is-error select,
.company.contact .form-group.is-error textarea {
  border-color: #ff699c;
  box-shadow: 0 0 0 3px rgba(255,105,156,.15);
}

.company.contact .error-list {
  border: 1px solid #ffccd9;
  background: #fff1f6;
  color: #b3003b;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 20px;
}
.company.contact .error-list li { margin-left: 1.2em; }

/* 送信ボタン */
.company.contact .form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.company.contact .c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}
.company.contact .c-btn,.company.contact .c-btn--primary {
  background: #4d6df8;
  color: #fff;
  transition: opacity .2s ease, transform .02s ease;
  margin: 30px auto;
  font-size: 16px;
}
.company.contact .c-btn:hover,.company.contact .c-btn--primary:hover { opacity: .9; }
.company.contact .c-btn:active,.company.contact .c-btn--primary:active { transform: translateY(1px); }

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .company.contact { padding: 36px 12px; }
  .company.contact .c-form { padding: 18px; }
  .company.contact .section-title { font-size: 24px; }
}

/* ========== thanks.php の軽い余白調整 ========== */
.company.contact .thanks-note {
  margin-top: 16px;
  color: #666;
  line-height: 1.8;
}
.company.contact .thanks-note a { color: #ff699c; }

/* ▼ エラー時のハイライト */
.is-error {
  border: 2px solid #ff5a5a !important;
  background-color: #fff6f6;
}

/* ▼ thanksページのメッセージ */
.thanks-note {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  text-align: center;
  margin: 60px auto;
  max-width: 600px;
}