/* ===================================================
   お問合せフォーム CSS
   ブランドヘッダー + フォームカード 一式
   =================================================== */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");

/* ---------------------------------------------------
   共通設定
   --------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 40px 16px;
  overflow-x: hidden;
  background: #ffe1e5;
  color: #333;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

/* ---------------------------------------------------
   全体レイアウト
   --------------------------------------------------- */

#wrapper {
  display: block;
  width: 100%;
  max-width: 802px;
  margin: 0 auto;
}

#main {
  display: block;
  width: calc(100% - 32px);
  max-width: 680px;
  margin: 0 auto;
}

/* ---------------------------------------------------
   ブランドヘッダー
   --------------------------------------------------- */

.plastans-mail-header,
.plastans-mail-header * {
  box-sizing: border-box;
}

.plastans-mail-header {
  position: relative;
  width: 100%;
  max-width: 740px;
  min-height: 220px;
  margin: 0 auto;
  padding: 70px 110px 24px;
}

.plastans-mail-logo {
  display: block;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  transition: transform 180ms ease;
}

.plastans-mail-logo:hover {
  transform: scale(1.02);
}

.plastans-mail-logo img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.plastans-mail-menu {
  position: absolute;
  top: 18px;
  right: 10px;
  display: block;
  width: 96px;
  padding: 6px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.plastans-mail-menu:hover {
  transform: translateY(-3px) scale(1.03);
}

.plastans-mail-menu img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  filter:
    drop-shadow(0 0 3px #fff)
    drop-shadow(0 5px 5px rgba(64, 157, 205, 0.35));
  animation: plastans-mail-menu-float 3s ease-in-out infinite;
}

@keyframes plastans-mail-menu-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ---------------------------------------------------
   フォームカード
   --------------------------------------------------- */

.section {
  width: 100%;
  max-width: none;
  padding: 40px 48px;
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 12px 30px rgba(233, 120, 155, 0.18);
}

.section__ttl {
  margin: 0 0 20px;
  color: #333;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

#txt_explain p {
  margin: 0 0 26px;
  color: #555;
  font-size: 15px;
  line-height: 1.9;
}

.red_txt {
  color: #e2568a;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------------------------------------------------
   フォームテーブル
   --------------------------------------------------- */

table.table {
  display: block;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
}

table.table > tbody {
  display: block;
  width: 100%;
}

table.table tr {
  display: block;
  width: 100%;
  margin: 0 0 22px;
}

/* お名前・ふりがなを横並び
   HTML側にクラスを付けられない前提 */
table.table tr:nth-child(1),
table.table tr:nth-child(2) {
  display: inline-block;
  width: 48%;
  vertical-align: top;
  margin-bottom: 22px;
}

table.table tr:nth-child(1) {
  margin-right: 4%;
}

table.table tr:nth-child(3) {
  clear: both;
}

table.table th,
table.table td {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  vertical-align: top;
  font-weight: normal;
}

table.table th {
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------------------------------------------------
   確認画面
   --------------------------------------------------- */

table#checkforms td {
  min-height: 48px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #fff;
  border: 1px solid #ffa6a6;
  border-radius: 12px;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------------------------------------------------
   必須バッジ
   --------------------------------------------------- */

table.table th span.red {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 7px;
  vertical-align: middle;
  background: #ffa6a6;
  border-radius: 5px;
  color: #fff;
  font-size: 0;
  line-height: 1;
}

table.table th span.red::before {
  content: "必須";
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ---------------------------------------------------
   入力欄
   --------------------------------------------------- */

table.table input[type="text"],
table.table input[type="email"],
table.table input[type="tel"],
table.table input[type="number"],
table.table input[type="url"],
table.table select,
table.table textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 13px 14px;
  appearance: none;
  background: #fff;
  border: 1px solid #f6d3de;
  border-radius: 12px;
  color: #333;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

table.table input[type="text"]:focus,
table.table input[type="email"]:focus,
table.table input[type="tel"]:focus,
table.table input[type="number"]:focus,
table.table input[type="url"]:focus,
table.table select:focus,
table.table textarea:focus {
  border-color: #f6799e;
  box-shadow: 0 0 0 3px rgba(246, 121, 158, 0.15);
}

table.table input::placeholder,
table.table textarea::placeholder {
  color: #aaa;
  opacity: 1;
}

table.table textarea {
  min-height: 160px;
  resize: vertical;
}

/* 自動入力時の背景色対策 */
table.table input:-webkit-autofill,
table.table input:-webkit-autofill:hover,
table.table input:-webkit-autofill:focus {
  -webkit-text-fill-color: #333;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}

/* ---------------------------------------------------
   同意チェック
   --------------------------------------------------- */

.agree_box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 26px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.agree_box input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #f6799e;
  cursor: pointer;
}

.agree_box a {
  color: #e2568a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.agree_box a:hover {
  text-decoration-thickness: 2px;
}

/* ---------------------------------------------------
   ボタン
   --------------------------------------------------- */

.button_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-top: 6px;
}

.button_box input[type="button"],
.button_box input[type="submit"] {
  flex: 1 1 160px;
  width: auto;
  min-height: 54px;
  margin: 0;
  padding: 15px 20px;
  appearance: none;
  background: #ffa6a6;
  border: none;
  border-radius: 40px;
  box-shadow: 0 10px 20px rgba(255, 166, 166, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.button_box input[type="button"]:hover,
.button_box input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 166, 166, 0.45);
}

.button_box input[type="button"]:active,
.button_box input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(255, 166, 166, 0.3);
}

.button_box input[type="button"]:focus-visible,
.button_box input[type="submit"]:focus-visible {
  outline: 3px solid rgba(246, 121, 158, 0.3);
  outline-offset: 3px;
}

.button_box input[type="button"]:disabled,
.button_box input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* 確認画面の戻るボタン */
.button_box input[name="submit_button"][value="戻る"] {
  background: #fff;
  border: 1px solid #ffa6a6;
  box-shadow: none;
  color: #e87878;
}

/* ---------------------------------------------------
   サイトへ戻るリンク
   --------------------------------------------------- */

#main > .button_box {
  margin-top: 20px;
  background: none;
  box-shadow: none;
}

#main > .button_box a {
  display: inline-block;
  padding: 8px 12px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

#main > .button_box a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------
   タブレット
   --------------------------------------------------- */

@media screen and (max-width: 768px) {
  body {
    padding: 24px 12px;
  }

  #main {
    width: calc(100% - 16px);
  }

  .plastans-mail-header {
    min-height: 180px;
    padding: 64px 96px 20px 30px;
  }

  .plastans-mail-logo {
    max-width: 400px;
  }

  .plastans-mail-menu {
    top: 12px;
    right: 4px;
    width: 86px;
  }

  .section {
    padding: 36px 34px 32px;
    border-radius: 32px;
  }
}

/* ---------------------------------------------------
   スマートフォン
   --------------------------------------------------- */

@media screen and (max-width: 600px) {
  body {
    padding: 16px 8px 24px;
    font-size: 16px;
  }

  #wrapper {
    width: 100%;
  }

  #main {
    width: 100%;
    max-width: none;
  }

  .plastans-mail-header {
    width: 100%;
    min-height: 145px;
    padding: 54px 76px 14px 16px;
  }

  .plastans-mail-logo {
    width: 100%;
    max-width: 360px;
  }

  .plastans-mail-menu {
    top: 6px;
    right: 2px;
    width: 74px;
    padding: 4px;
  }

  .section {
    padding: 30px 22px 28px;
    border-radius: 28px;
  }

  .section__ttl {
    margin-bottom: 18px;
    font-size: 22px;
  }

  #txt_explain p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.9;
  }

  .red_txt {
    font-size: 14px;
  }

  table.table tr {
    margin-bottom: 22px;
  }

  table.table th {
    margin-bottom: 8px;
    font-size: 15px;
  }

  table.table input[type="text"],
  table.table input[type="email"],
  table.table input[type="tel"],
  table.table input[type="number"],
  table.table input[type="url"],
  table.table select,
  table.table textarea {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 16px;
  }

  table.table textarea {
    min-height: 170px;
  }

  .agree_box {
    gap: 10px;
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 1.7;
  }

  .button_box {
    gap: 12px;
  }

  .button_box input[type="button"],
  .button_box input[type="submit"] {
    min-height: 54px;
    font-size: 16px;
  }
}

/* ---------------------------------------------------
   小型スマートフォン
   --------------------------------------------------- */

@media screen and (max-width: 480px) {
  body {
    padding-right: 6px;
    padding-left: 6px;
  }

  .plastans-mail-header {
    min-height: 130px;
    padding: 50px 66px 12px 12px;
  }

  .plastans-mail-menu {
    width: 66px;
  }

  .section {
    padding: 26px 18px 24px;
    border-radius: 24px;
  }

  .section__ttl {
    font-size: 21px;
  }

  /* お名前・ふりがなを縦並びへ戻す */
  table.table tr:nth-child(1),
  table.table tr:nth-child(2) {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .button_box {
    display: block;
  }

  .button_box input[type="button"],
  .button_box input[type="submit"] {
    display: block;
    width: 100%;
    margin-bottom: 12px;
  }

  .button_box input[type="button"]:last-child,
  .button_box input[type="submit"]:last-child {
    margin-bottom: 0;
  }
}

/* ---------------------------------------------------
   極小画面
   --------------------------------------------------- */

@media screen and (max-width: 360px) {
  .plastans-mail-header {
    min-height: 115px;
    padding: 46px 58px 10px 10px;
  }

  .plastans-mail-menu {
    width: 58px;
  }

  .section {
    padding: 24px 15px 22px;
    border-radius: 22px;
  }

  .section__ttl {
    font-size: 20px;
  }

  #txt_explain p,
  table.table th,
  table#checkforms td {
    font-size: 14px;
  }
}

/* ---------------------------------------------------
   アニメーション軽減設定
   --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .plastans-mail-logo,
  .plastans-mail-menu,
  .plastans-mail-menu img,
  .button_box input[type="button"],
  .button_box input[type="submit"],
  table.table input,
  table.table textarea,
  table.table select {
    animation: none;
    scroll-behavior: auto;
    transition: none;
  }
}