/*
 * 公開側 お問い合わせ form / confirm / done(=thanks) page スタイル。
 */

/* 共通レイアウト ==================== */
.contact section {
  padding: 0 20vw;
  margin: 0 auto;
  color: rgb(50, 50, 50);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

@media (max-width: 959px) {
  .contact section {
    width: 90vw;
    padding: 0;
  }
}

/* Page top ==================== */
.contact-top {
  width: 75vw;
  margin: 100px auto 2rem auto;
}

.contact-top h2 {
  font-size: 45px;
  padding-bottom: 0.5rem;
  position: relative;
}

.contact-top h2::after {
  content: 'お問い合わせ';
  color: rgb(200, 200, 200);
  text-shadow: none;
  font-size: 16px;
  position: absolute;
  bottom: 0;
  left: 0;
}

@media (max-width: 519px) {
  .contact-top {
    width: 90vw;
  }

  .contact-top h2 {
    font-size: 36px;
  }

  .contact-top h2::after {
    font-size: 14px;
  }
}

/* contact/new ==================== */
.contact-form table {
  width: 100%;
  text-align: left;
}

.contact-form table th {
  width: 25%;
  vertical-align: top;
}

.contact-form table th label {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 1rem 0;
}

.contact-form table td {
  width: 75%;
}

.contact-form table td input,
.contact-form table td textarea {
  width: 100%;
  height: 3rem;
  margin: 0.5rem 0;
  padding: 1rem;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(215, 215, 215);
  border-radius: 0.3rem;
  font-family: inherit;
  font-size: 16px;
}

.contact-form table td textarea {
  height: 20rem;
}

.contact-form .form-terms {
  width: 100%;
}

.contact-form .form-terms label {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.contact-form .form-terms label input {
  margin: 0 0.5rem;
}

.contact-form .form-actions {
  text-align: center;
  margin: 3rem auto 7rem auto;
}

.contact-form .form-actions input {
  width: 50%;
  height: 4rem;
  font-size: 16px;
  font-weight: 600;
  color: rgb(248, 248, 248);
  background-color: rgb(50, 50, 50);
  border: 1px solid rgb(215, 215, 215);
  border-radius: 0.3rem;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form .form-actions input:hover {
  background-color: rgba(50, 50, 50, 0.9);
  transition: all 0.3s;
}

@media (max-width: 519px) {
  .contact-form table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
  }

  .contact-form table tr th {
    width: 100%;
  }

  .contact-form table tr th label {
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

  .contact-form table tr td {
    width: 100%;
  }

  .contact-form table tr td input,
  .contact-form table tr td textarea {
    height: 2.5rem;
    margin: 0;
    padding: 0.5rem;
  }

  .contact-form table tr td textarea {
    height: 20rem;
  }

  .contact-form .form-terms label {
    font-size: 12px;
  }

  .contact-form .form-actions input {
    height: 3.5rem;
    font-size: 14px;
  }
}

/* Privacy policy ==================== */
.form-privacy-policy {
  margin: 2rem auto 1rem auto;
  padding: 1rem 2rem;
  height: 20rem;
  font-size: 14px;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(215, 215, 215);
  border-radius: 0.3rem;
  overflow: scroll;
}

.form-privacy-policy dt {
  font-size: 18px;
  margin-bottom: 1rem;
}

.form-privacy-policy dd {
  margin: 0;
}

.form-privacy-policy dd h3 {
  margin-top: 1rem;
}

.form-privacy-policy dd p {
  margin: 0.2rem 0;
  padding-left: 1rem;
}

.form-privacy-policy dd ol {
  margin: 0.2rem 0;
}

.form-privacy-policy dd ul {
  margin: 0.2rem 0;
}

.form-privacy-policy dd ul li {
  margin: 0 0.2rem;
  padding-left: 2rem;
}

.form-privacy-policy dd .date {
  margin: 1rem 0;
  text-align: right;
}

@media (max-width: 519px) {
  .form-privacy-policy {
    padding: 0 1rem;
    font-size: 12px;
  }

  .form-privacy-policy dt {
    font-size: 16px;
    margin-bottom: 0.5rem;
  }
}

/* contact/confirm ==================== */
.contact-confirm table {
  width: 100%;
  text-align: left;
  margin: 0 auto 2rem auto;
}

.contact-confirm table th {
  width: 25%;
  padding: 1.25rem 0;
  vertical-align: text-top;
}

.contact-confirm table td {
  width: 75%;
  padding: 1.25rem 0 1.25rem 2rem;
}

.contact-confirm .confirm-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 3rem auto 7rem auto;
}

.contact-confirm .confirm-actions .confirm-commit,
.contact-confirm .confirm-actions .confirm-back {
  text-align: center;
}

.contact-confirm .confirm-actions .confirm-commit input,
.contact-confirm .confirm-actions .confirm-back input {
  width: 10rem;
  height: 4rem;
  margin: 0 1rem;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgb(215, 215, 215);
  border-radius: 0.3rem;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-confirm .confirm-actions .confirm-commit input {
  color: rgb(248, 248, 248);
  background-color: rgb(50, 50, 50);
}

.contact-confirm .confirm-actions .confirm-commit input:hover {
  background-color: rgba(50, 50, 50, 0.9);
  transition: all 0.3s;
}

.contact-confirm .confirm-actions .confirm-back input {
  background-color: rgb(250, 250, 250);
  border: 1px solid rgb(215, 215, 215);
}

.contact-confirm .confirm-actions .confirm-back input:hover {
  background-color: rgba(242, 242, 242, 1);
  transition: all 0.3s;
}

.contact-confirm h2 {
  width: 50%;
  margin: 3rem auto 1.5rem auto;
  text-align: center;
  border-bottom: 1px solid rgb(215, 215, 215);
}

.contact-confirm .contact-done {
  margin-bottom: 5rem;
}

@media (max-width: 959px) {
  .contact-confirm table {
    width: 90%;
  }

  .contact-confirm .confirm-actions .confirm-back input {
    color: rgb(50, 50, 50);
  }

  .contact-confirm .contact-done-message {
    width: 90%;
  }

  .contact-confirm h2 {
    width: 75%;
  }
}

@media (max-width: 519px) {
  .contact-confirm table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .contact-confirm table tr th {
    width: 100%;
    padding: 0;
  }

  .contact-confirm table tr td {
    width: 100%;
    padding: 0;
  }

  .contact-confirm .confirm-actions {
    margin: 2rem auto 5rem auto;
  }

  .contact-confirm .confirm-actions .confirm-commit input,
  .contact-confirm .confirm-actions .confirm-back input {
    width: 8rem;
    height: 3.5rem;
    margin: 0 1rem;
    font-size: 14px;
  }

  .contact-confirm h2 {
    margin: 2rem auto 2rem auto;
  }
}

/* contact/done ==================== */
.contact-done-message {
  margin: 0 auto;
  text-align: left;
}

/* 完了画面用アクション領域 */
.contact-done-actions {
  text-align: center;
  margin: 3rem auto 7rem auto;
}

/* リンクをボタン風に */
.contact-done-actions .btn-return {
  display: inline-block;
  width: 10rem;
  height: 4rem;
  line-height: 4rem;
  font-size: 16px;
  font-weight: 600;
  color: rgb(248, 248, 248);
  background-color: rgb(50, 50, 50);
  border-radius: 0.3rem;
  text-decoration: none;
  transition: all 0.3s;
}

.contact-done-actions .btn-return:hover {
  background-color: rgba(50, 50, 50, 0.9);
}

/*
 * Honeypot — Rails 8 spam 防衛のための utility。視覚的にも screen reader
 * にも届かない位置に飛ばす。
 */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
