﻿/* =========================================
   mailform.css : メールフォーム専用スタイル
   読み込み順：base.css → list.css → mailform.css
========================================= */

@charset "utf-8";

/* ───────────────────────────────
   レイアウト・基本構造
─────────────────────────────── */
.page-mailform #contents {
  position: relative;
  min-height: 120px;
}
.page-mailform #logo {
  margin-bottom: 20px;
}
.mailform-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}
#main h2.apply-heading {
  margin-bottom: 0;
}
.center {
  text-align: center;
  margin-top: 20px;
}
.center img {
  display: block;
  margin: 0 auto;
}

/* ───────────────────────────────
   メールフォーム本体
─────────────────────────────── */
form#mail_form {
  width: 75%;
  margin: 50px auto;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 7px;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.2);
}
form#mail_form dl {
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}
form#mail_form dl dt {
  clear: both;
  width: 20%;
  float: left;
  border-top: 1px solid #ccc;
  padding: 15px 0;
  text-align: right;
  overflow: hidden;
}
form#mail_form dl dd {
  width: 75%;
  float: right;
  border-top: 1px solid #ccc;
  padding: 15px 0 15px 5%;
}
form#mail_form dl dt:first-child,
form#mail_form dl dt:first-child + dd {
  border: none;
}
form#mail_form dl dt span {
  display: block;
  font-size: 85%;
  color: #3377ff;
}

/* ───────────────────────────────
   入力欄・補足・エラー
─────────────────────────────── */
form#mail_form input[type='text'],
form#mail_form input[type='email'],
form#mail_form input[type='tel'] {
  width: 70%;
  max-width: 80%;
  height: 2em;
  padding: 2px 2%;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fafafa;
  font-size: 100%;
  font-family: inherit;
  margin-top: 7px;
}
form#mail_form input[type='text']:focus,
form#mail_form input[type='email']:focus,
form#mail_form input[type='tel']:focus,
form#mail_form textarea:focus {
  box-shadow: 0 0 5px #55ccff;
  border: 1px solid #55ccff;
  background: #fff;
}
form#mail_form select {
  font-size: 100%;
  font-family: inherit;
  height: 2.2em;
  padding: 2px 2%;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fafafa;
  margin-top: 7px;
}
form#mail_form textarea {
  display: block;
  width: 90%;
  max-width: 90%;
  height: 200px;
  padding: 2px 2%;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fafafa;
  font-size: 100%;
  font-family: inherit;
}
form#mail_form ul {
  list-style-type: none;
}
form#mail_form ul li label:hover {
  cursor: pointer;
}
form#mail_form ul li input[type='radio'],
form#mail_form ul li input[type='checkbox'] {
  margin-right: 10px;
  margin-top: 7px;
}
form#mail_form ul li:first-child input[type='radio'],
form#mail_form ul li:first-child input[type='checkbox'] {
  margin-top: 0;
}
form#mail_form dl dd span.error_blank,
form#mail_form dl dd span.error_format,
form#mail_form dl dd span.error_match {
  display: block;
  color: #ff0000;
  margin-top: 3px;
}
form#mail_form dl dt span.required,
form#mail_form dl dt span.optional {
  display: none;
  margin-right: 1em;
  margin-bottom: 2em;
}
form#mail_form dl dt span.required {
  background: #d9534f;
  border: 1px solid #d43f3a;
}
form#mail_form dl dt span.optional {
  background: #337ab7;
  border: 1px solid #2e6da4;
}

/* ───────────────────────────────
   補足・注意書き・ラベル
─────────────────────────────── */
.highlight-box {
  background-color: #fff8e6;
  padding: 30px 25px 20px 25px;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  max-width: 800px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}
.highlight-box::before {
  content: '❗ご確認のお願い🙇‍♀️❗';
  position: absolute;
  top: -12px;
  left: 20px;
  background-color: #f4c542;
  color: #333;
  padding: 4px 10px;
  font-size: 0.85em;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.highlight-box ul {
  padding-left: 1em;
  margin: 0;
}
.highlight-box li {
  margin: 10px;
  line-height: 1.6;
}
.highlight-key {
  background-color: #fff3c4;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  color: #585858;
}
.example {
  font-size: 0.85em;
  color: #666;
  display: inline-block;
  margin-top: 10px;
  clear: both;
}
.contact-notes {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-inline: 20%;
}
.contact-notes li {
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.85;
  letter-spacing: 0.01em;
  margin: clamp(10px, 2vw, 20px);
}

/* ───────────────────────────────
   ボタン・送信・ユーティリティ
─────────────────────────────── */
form#mail_form p#form_submit {
  width: 90%;
  margin: 0 auto;
  padding: 15px 0;
  border-top: 1px solid #ccc;
}
form#mail_form input#form_submit_button {
  margin-left: 35%;
}
input[type='submit'],
input[type='button'],
input[type='reset'] {
  -webkit-appearance: none; /* iOS Safariのデフォルトボタンスタイルを無効化 */
  appearance: none;
  background: linear-gradient(#fff, #eee);
  color: #000 !important; /* ← 強制的に黒文字に */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 10px 30px;
  margin-bottom: 20px;
}
input[type='submit']:hover,
input[type='button']:hover,
input[type='reset']:hover {
  background: #fff;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}
.submit-center {
  text-align: center;
  margin-top: 20px;
}
.text-center {
  text-align: center;
}
.error-messages {
  margin: 1em 0;
}
.btn {
  padding: 10px 30px;
  margin: 50px 0 20px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(#fff, #eee);
  font-size: 16px;
  border: 1px solid #ccc;
}

/* ───────────────────────────────
   テーブル・カラム・特殊表示
─────────────────────────────── */
.ta1 {
  width: 100%;
  margin: 0 auto 20px;
}
.ta1,
.ta1 td,
.ta1 th {
  border: 1px solid #ccc;
  padding: 10px 15px;
  word-break: break-all;
}
.ta1 th.tamidashi {
  width: auto;
  text-align: left;
  background: #eee;
  font-size: 18px;
}
.ta1 th {
  width: 140px;
  text-align: center;
  font-weight: normal;
}
.ta1 th img {
  width: 100%;
}
.ta1 td .specialbox {
  float: left;
  width: 80px;
  height: 40px;
}
.ta1 td .specialbox img {
  vertical-align: middle;
}

/* ───────────────────────────────
   カラム設定（ページ幅に応じた調整）
─────────────────────────────── */
.wl {
  width: 96%;
  font-size: smaller;
}
.ws {
  width: 50%;
}

/* ───────────────────────────────
   レスポンシブ対応
─────────────────────────────── */

/* 画面幅1024px以下 */
@media (max-width: 1024px) {
  .contact-notes {
    margin-inline: 10%;
  }
}

/* 画面幅1000px以下 */
@media screen and (max-width: 1000px) {
  form#mail_form {
    width: 95%;
  }
  form#mail_form dl {
    overflow: visible;
  }
  form#mail_form dl dt {
    width: auto;
    float: none;
    text-align: left;
    padding: 10px 0 5px;
    font-weight: bold;
  }
  form#mail_form dl dd {
    width: auto;
    float: none;
    border-top: none;
    padding: 0 0 13px 0;
    margin-left: 0;
  }
  form#mail_form dl dt span {
    font-weight: normal;
  }
  .highlight-box {
    width: 89%;
  }
  .example {
    position: relative;
    margin-top: 2px;
    clear: both;
  }
}

/* 画面幅768px以下 */
@media (max-width: 768px) {
  .contact-notes {
    margin-inline: 5%;
  }
}

/* 画面幅480px以下 */
@media screen and (max-width: 480px) {
  .example {
    font-size: 0.7em;
  }
  .highlight-box {
    width: 85%;
  }
  .contact-notes {
    margin-inline: clamp(8px, 4vw, 24px);
  }
  .ws,
  .wl {
    width: 94%;
  }
}

/* 画面幅400px以下 */
@media (max-width: 400px) {
  .highlight-box {
    width: 80%;
  }
  .contact-notes {
    margin-inline: clamp(8px, 4vw, 24px);
    padding-left: 1em;
  }
  .contact-notes li {
    font-size: 17px;
    line-height: 1.9;
  }
}

/* 画面幅375px以下 */
@media screen and (max-width: 375px) {
  form#mail_form {
    width: 100%;
  }
  form#mail_form input[type='text'],
  form#mail_form input[type='email'],
  form#mail_form input[type='tel'] {
    width: 80%;
    max-width: 90%;
  }
  .highlight-box {
    padding: 15px 10px;
    font-size: 0.85em;
    padding-top: 40px;
    width: 95%;
  }
  .highlight-box::before {
    font-size: 0.85em;
    left: 10px;
    top: -10px;
    padding: 3px 8px;
  }
  .highlight-box li {
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .ws,
  .wl {
    width: 94%;
  }
}
