@charset "utf-8";
/* ===================================================================

 file name  :form.css
 style info :提携（仲介）会社紹介依頼書フォーム
             PC：Figmaデザイン準拠（960px） / SP：767px以下

=================================================================== */

:root {
  --c-green: #2f8a3b;
  --c-green-dark: #24702e;
  --c-green-pale: #eef3d8;
  --c-bg: #f6f7f2;
  --c-text: #222;
  --c-sub: #666;
  --c-placeholder: #a0a0a0;
  --c-line: #e3e7d6;
  --c-frame: #dadfcb;
  --c-step-line: #e2e6d6;
  --c-input-line: #cfcfcf;
  --c-check-line: #9a9a9a;
  --c-required: #d64545;
  --c-link: #1a5fc8;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: normal;
}

/* ---------------------------------------------------------------------------
	レイアウト
--------------------------------------------------------------------------- */
.l-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 320px;
}
.l-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 56px;
}

.l-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.l-header .l-inner {
  display: flex;
  align-items: center;
  height: 80px;
}
.l-header__logo {
  display: block;
  width: 240px;
}
.l-header__logo img {
  display: block;
  width: 240px;
  height: 29.85px;
}

.l-main {
  flex: 1 0 auto;
}
.l-main .l-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.l-copyright {
  background: var(--c-green);
  color: #fff;
  font-size: 12px;
  line-height: normal;
  text-align: center;
  padding: 20px 24px;
}

/* ---------------------------------------------------------------------------
	ページ見出し
--------------------------------------------------------------------------- */
.p-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-heading__sub {
  color: var(--c-green);
  font-size: 13px;
  font-weight: 500;
}
.p-heading__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  font-feature-settings: "palt" 1;
}
.p-heading__lead {
  font-size: 15px;
}

/* ---------------------------------------------------------------------------
	ステップ
--------------------------------------------------------------------------- */
.p-steps {
  display: flex;
  gap: 12px;
}
.p-steps__item {
  flex: 1 1 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 96px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-step-line);
  border-radius: 8px;
  font-size: 14px;
}
.p-steps__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--c-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.p-steps__txt {
  flex: 1 1 0;
  min-width: 0;
}

/* フォーム内の各ブロック間隔 */
.c-form-area,
.c-form-area > form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------------------------------------------------------------------------
	サーバー側エラー
--------------------------------------------------------------------------- */
.e-style {
  padding: 16px 24px;
  background: #fdf1f1;
  border: 1px solid #efc4c4;
  border-radius: 8px;
  color: var(--c-required);
  font-size: 14px;
}
.e-style p {
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------------------
	フォームテーブル
--------------------------------------------------------------------------- */
.c-form-table {
  background: #fff;
  border: 1px solid var(--c-frame);
  border-radius: 12px;
  overflow: hidden;
}
.c-form-table__row {
  display: flex;
  border-bottom: 1px solid var(--c-line);
}
.c-form-table__row:last-child {
  border-bottom: 0;
}
.c-form-table__label {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 230px;
  padding: 20px 16px 20px 24px;
  background: var(--c-green-pale);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.c-form-table__field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 24px;
}
/* 確認画面：テキスト表示 */
.c-form-table--confirm .c-form-table__field {
  justify-content: center;
  min-height: 76px;
  word-break: break-word;
}

.c-required {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--c-required);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.c-field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-field-pair {
  display: flex;
  gap: 16px;
}
.c-field-pair .c-field-inline > span {
  flex-shrink: 0;
  color: var(--c-sub);
  font-size: 14px;
}
.c-field-note {
  color: var(--c-sub);
  font-size: 12px;
}
.c-zip-mark {
  font-size: 16px;
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
	入力部品
--------------------------------------------------------------------------- */
.c-input,
.c-textarea {
  display: block;
  width: 100%;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--c-input-line);
  border-radius: 6px;
  color: var(--c-text);
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.c-input {
  height: 44px;
}
.c-textarea {
  height: 140px;
  padding: 12px 14px;
  resize: vertical;
}
.c-input::placeholder,
.c-textarea::placeholder {
  color: var(--c-placeholder);
}
.c-input:focus,
.c-textarea:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(47, 138, 59, 0.15);
}
.c-input.err,
.c-textarea.err,
.err .c-input {
  border-color: var(--c-required);
  background: #fff8f8;
}

.c-input--name { width: 232px; }
.c-input--kana { width: 220px; }
.c-input--age { width: 100px; }
.c-input--zip { width: 160px; }
.c-input--tel { width: 300px; }
.c-input--mail { width: 420px; }
.c-input--room { width: 140px; }


/* ラジオ・チェックボックス */
.c-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 10px 0;
}
.c-radio,
.c-checkbox {
  position: relative;
  display: flex;
}
.c-radio input,
.c-checkbox input {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  opacity: 0;
}
.c-radio label,
.c-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
  font-size: 15px;
  cursor: pointer;
}
.c-radio label::before,
.c-checkbox label::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #fff no-repeat center;
  border: 1.5px solid var(--c-check-line);
  transition: border-color 0.2s, background-color 0.2s;
}
.c-radio label::before {
  border-radius: 50%;
}
.c-checkbox label::before {
  border-radius: 4px;
}
.c-radio input:checked + label::before {
  border-color: var(--c-green);
  background-image: radial-gradient(circle, var(--c-green) 0 4.5px, transparent 5px);
}
.c-checkbox input:checked + label::before {
  border-color: var(--c-green);
  background-color: var(--c-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.c-radio input:focus-visible + label::before,
.c-checkbox input:focus-visible + label::before {
  box-shadow: 0 0 0 3px rgba(47, 138, 59, 0.25);
}

/* ---------------------------------------------------------------------------
	個人情報
--------------------------------------------------------------------------- */
.p-privacy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--c-frame);
  border-radius: 8px;
}
.p-privacy__title {
  font-size: 14px;
  font-weight: 700;
}
.p-privacy__txt {
  color: var(--c-sub);
  font-size: 13px;
}
.p-privacy__txt a {
  color: var(--c-link);
  text-decoration: underline;
}
.p-privacy__txt a:hover {
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
	ボタン
--------------------------------------------------------------------------- */
.p-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.c-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 56px;
  border-radius: 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.c-btn--primary {
  background: var(--c-green);
  border: 0;
  color: #fff;
}
.c-btn--primary:hover {
  background: var(--c-green-dark);
}
.c-btn--secondary {
  background: #fff;
  border: 1px solid var(--c-green);
  color: var(--c-green);
}
.c-btn--secondary:hover {
  background: var(--c-green-pale);
}

/* ---------------------------------------------------------------------------
	完了・エラー画面メッセージ
--------------------------------------------------------------------------- */
.p-message {
  padding: 48px 24px;
  background: #fff;
  border: 1px solid var(--c-frame);
  border-radius: 12px;
  text-align: center;
}
.p-message__title {
  color: var(--c-green);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.p-message--error .p-message__title {
  color: var(--c-required);
}
.p-message a {
  color: var(--c-link);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
	お問い合わせ先
--------------------------------------------------------------------------- */
.p-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.p-contact__name {
  color: var(--c-sub);
  font-size: 13px;
  font-weight: 500;
}
.p-contact__tel {
  color: var(--c-green);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.p-contact__tel a {
  color: inherit;
  text-decoration: none;
}
.p-contact__hours {
  color: var(--c-sub);
  font-size: 12px;
}

/* ---------------------------------------------------------------------------
	exValidation エラーチップ
--------------------------------------------------------------------------- */
.formError .formErrorContent {
  font-family: inherit;
}

/* ===========================================================================
	SP（767px以下）
=========================================================================== */
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .l-inner {
    padding: 0 16px;
  }
  .l-header .l-inner {
    height: 60px;
  }
  .l-header__logo,
  .l-header__logo img {
    width: 180px;
    height: auto;
  }
  .l-main .l-inner {
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .p-heading {
    gap: 8px;
  }
  .p-heading__sub {
    font-size: 12px;
  }
  .p-heading__title {
    font-size: 22px;
  }
  .p-heading__lead {
    font-size: 14px;
  }

  .c-form-area,
  .c-form-area > form {
    gap: 24px;
  }
  .p-steps {
    flex-direction: column;
    gap: 8px;
  }
  .p-steps__item {
    flex: none;
    min-height: 0;
    align-items: center;
    padding: 12px 14px;
    font-size: 13px;
  }

  .c-form-table {
    border-radius: 8px;
  }
  .c-form-table__row {
    flex-direction: column;
  }
  .c-form-table__label {
    width: 100%;
    align-items: center;
    padding: 10px 16px;
    white-space: normal;
    font-size: 14px;
  }
  .c-form-table__field {
    align-items: stretch;
    padding: 14px 16px 16px;
  }
  .c-form-table--confirm .c-form-table__field {
    min-height: 0;
  }

  .c-field-pair {
    gap: 12px;
    width: 100%;
  }
  .c-field-pair .c-field-inline {
    flex: 1 1 0;
    min-width: 0;
  }
  .c-input--name,
  .c-input--kana,
  .c-input--tel,
  .c-input--mail {
    width: 100%;
  }
  /* iOSのズーム防止 */
  .c-input,
  .c-textarea {
    font-size: 16px;
  }
  .c-choice-list {
    gap: 8px 24px;
    padding: 4px 0;
  }

  .p-privacy {
    padding: 16px;
  }
  .p-privacy__txt {
    font-size: 12px;
  }

  .c-btn {
    width: 100%;
    max-width: 320px;
  }

  .p-message {
    padding: 32px 16px;
  }
  .p-message__title {
    font-size: 18px;
  }

  .l-copyright {
    font-size: 10px;
    padding: 16px;
  }
}
