/* ==========================================================
   お問い合わせ（contact.php）
   ========================================================== */
.ssg-contact { position: relative; z-index: 2; padding: 64px 20px 88px; }
.ssg-contact__inner { max-width: 1040px; margin: 0 auto; text-align: center; }
.ssg-contact__lead { margin: 0 0 32px; }
@media (max-width: 767px) {
  .ssg-contact__lead { text-align: left; }
}

/* ---------- お電話でのお問い合わせ ---------- */
.ssg-ctel { position: relative; padding: 8px 0 0; }
.ssg-ctel__ttl { margin: 0 0 18px; font-family: "Mochiy Pop One", sans-serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.9; color: var(--ssg-deep); }
.ssg-ctel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; }
.ssg-ctel__btn {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 3px solid var(--ssg-deep);
  border-radius: 999px;
  padding: 16px 28px;
  text-decoration: none;
  transition: all .3s ease;
}
.ssg-ctel__btn--tel { background: var(--ssg-deep); color: #fff; box-shadow: 0 6px 0 var(--ssg-darker); }
.ssg-ctel__btn--tel:hover { color: #fff; transform: translateY(4px); box-shadow: 0 2px 0 var(--ssg-darker); }
.ssg-ctel__btn--tel:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ssg-darker); }
.ssg-ctel__btn--fax { background: #fff; color: var(--ssg-deep); box-shadow: 0 6px 0 var(--ssg-line); }
.ssg-ctel__circle { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.ssg-ctel__circle img { width: 30px; height: 30px; display: block; }
.ssg-ctel__btn--fax .ssg-ctel__circle { background: #E1EED3; color: var(--ssg-deep); }
.ssg-ctel__circle .ssg-ms { font-size: 30px; }
.ssg-ctel__body { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.ssg-ctel__lbl { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .14em; }
.ssg-ctel__num { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: clamp(28px, 4vw, 36px); white-space: nowrap; letter-spacing: .02em; }
.ssg-ctel__note { margin: 24px 0 0; color: var(--ssg-dark); font-size: 15px; }

/* ---------- フォーム ---------- */
.ssg-cform { position: relative; margin-top: clamp(64px, 8vw, 96px); border-radius: 40px; padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px); text-align: left; }
.ssg-cform__leaf1 { position: absolute; top: -22px; left: 50%; margin-left: -44px; width: 44px; height: 44px; background: var(--ssg-green); border-radius: 0 100% 0 100%; transform: rotate(-12deg); }
.ssg-cform__leaf2 { position: absolute; top: -10px; left: 50%; margin-left: 4px; width: 26px; height: 26px; background: var(--ssg-yellow); border-radius: 100% 0 100% 0; }
.ssg-cform__ttl { margin: 0 0 12px; text-align: center; font-family: "Mochiy Pop One", sans-serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.9; color: var(--ssg-deep); }
.ssg-cform__lead { margin: 0 0 32px; text-align: center; }

/* フォームCMS（mail-form.css）の出力をデザインに合わせる。並べ替え・ラベルは js/contact.js */
#cms-contact-1-1-area .form-contents { padding: 0; }
#cms-contact-1-1-area form dl { margin: 0 0 24px; display: grid; gap: 24px; }
#cms-contact-1-1-area .ssg-cms-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
#cms-contact-1-1-area .ssg-cms-field { display: grid; gap: 8px; min-width: 0; }
#cms-contact-1-1-area form dl dt:not(.pattern-exclusion) { float: none; width: auto; padding: 0; margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ssg-dark); line-height: 1.9; }
#cms-contact-1-1-area form dl dt:not(.pattern-exclusion) span.required::before,
#cms-contact-1-1-area form dl dt:not(.pattern-exclusion) span.required::after,
#cms-contact-1-1-area form dl dt:not(.pattern-exclusion) span.optional::before,
#cms-contact-1-1-area form dl dt:not(.pattern-exclusion) span.optional::after { content: none; display: none; }
#cms-contact-1-1-area form dl dd:not(.pattern-exclusion) { padding: 0; margin: 0; line-height: 1.9; }
#cms-contact-1-1-area form dl dt .ssg-cms-tag { background: var(--ssg-deep); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
#cms-contact-1-1-area form dl dt .ssg-cms-tag--opt { background: var(--ssg-yellow); color: var(--ssg-dark); }
#cms-contact-1-1-area dd:not(.pattern-exclusion) .textarea,
#cms-contact-1-1-area dd:not(.pattern-exclusion) .textarea-serect,
#cms-contact-1-1-area dd:not(.pattern-exclusion) input.textarea {
  width: 100%;
  height: auto;
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ssg-txt);
  background-color: #fff;
  border: 2px solid #DDEBCB;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}
#cms-contact-1-1-area dd:not(.pattern-exclusion) textarea.textarea { resize: vertical; line-height: 1.8; height: 222px; }
#cms-contact-1-1-area dd:not(.pattern-exclusion) .textarea-serect {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ssg-deep) 50%), linear-gradient(135deg, var(--ssg-deep) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
#cms-contact-1-1-area .textarea::placeholder { color: #A39B8E; }
#cms-contact-1-1-area .textarea:focus, #cms-contact-1-1-area .textarea-serect:focus { border-color: var(--ssg-green); box-shadow: 0 0 0 4px #EAF5DC; }
#cms-contact-1-1-area .form-contents .submit-btn {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  font-family: "Mochiy Pop One", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.9;
  color: #fff;
  background: var(--ssg-deep);
  border: none;
  border-radius: 999px;
  padding: 18px 28px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ssg-darker);
  transition: transform .5s var(--ssg-ease), box-shadow .5s var(--ssg-ease);
}
#cms-contact-1-1-area .form-contents .submit-btn::before { content: none; }
#cms-contact-1-1-area .form-contents .submit-btn:hover { transform: translateY(4px); box-shadow: 0 2px 0 var(--ssg-darker); }
#cms-contact-1-1-area .form-contents .submit-btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ssg-darker); }
/* 送信完了・エラー */
#cms-contact-1-1-area .form-thanks-msg p { text-align: center; line-height: 1.9; }
#cms-contact-1-1-area .form-thanks-msg .back-home-btn { width: auto; text-align: center; }
#cms-contact-1-1-area .form-thanks-msg .back-home-btn a { display: inline-block; padding: 14px 32px; border-radius: 999px; background: var(--ssg-yellow); color: var(--ssg-dark); font-family: "Mochiy Pop One", sans-serif; font-weight: 400; font-size: 17px; letter-spacing: normal; box-shadow: 0 5px 0 var(--ssg-yellow-sh); }
#cms-contact-1-1-area .form-err-msg { border-radius: 14px; }
/* iOS Safari の入力時ズーム対策（CMS のセレクタより強く） */
@media (hover: none) and (pointer: coarse) {
  #cms-contact-1-1-area dd:not(.pattern-exclusion) .textarea,
  #cms-contact-1-1-area dd:not(.pattern-exclusion) .textarea-serect { font-size: 16px; }
}

/* ---------- 採用について（左右に木のイラスト。右は左右反転） ---------- */
.ssg-crec { position: relative; max-width: 860px; margin: clamp(48px, 6vw, 72px) auto 0; padding: 0 clamp(110px, 17vw, 190px); text-align: center; }
.ssg-crec__tree { position: absolute; bottom: -5px; /* ボタンの影（5px）の下端にそろえる */ width: clamp(96px, 13vw, 150px); height: auto; pointer-events: none; user-select: none; }
.ssg-crec__tree--l { left: 0; }
.ssg-crec__tree--r { right: 0; transform: scaleX(-1); }
.ssg-crec__ttl { margin: 0 0 6px; display: flex; justify-content: center; align-items: center; gap: 10px; font-family: "Mochiy Pop One", sans-serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.6; color: var(--ssg-deep); } /* 「フォームでのお問い合わせ」と同じ大きさ */
.ssg-crec__txt { margin: 0 0 20px; }
.ssg-crec__btns { width: min(100%, 520px); margin: 0 auto; }
/* スマホ：「採用について」の左右に木。説明文・ボタンはその下に全幅 */
@media (max-width: 639px) {
  .ssg-crec { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .ssg-crec__body { display: contents; }
  .ssg-crec__tree { position: static; width: 62px; grid-row: 1; align-self: end; margin-bottom: 6px; } /* 木の下端を「採用について」の文字の下にそろえる（行間の余白分を上げる） */
  .ssg-crec__tree--l { grid-column: 1; justify-self: end; }
  .ssg-crec__tree--r { grid-column: 3; justify-self: start; }
  .ssg-crec__ttl { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  .ssg-crec__txt { grid-column: 1 / -1; grid-row: 2; margin: 12px 0 0; }
  .ssg-crec__btns { grid-column: 1 / -1; grid-row: 3; width: 100%; margin-top: 24px; }
}

