@charset "UTF-8";
/* ==============================
   トラノスケ お問い合わせフォーム
   新サイト共通デザイン
============================== */

/* ページ全体 */
.contact-page {
  background: #fff;
  color: var(--ink);
  min-height: 100vh;
}

/* 共通コンテナ */
.contact-page-container {
  width: min(100% - 48px, 1000px);
  margin-inline: auto;
}

/* ==============================
   ヘッダー
============================== */

.contact-page-header {
  justify-content: space-between;
}

.contact-header-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #daddd9;
  border-radius: 4px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, border-color .2s;
}

.contact-header-back:hover {
  background: var(--cream);
  border-color: #bfc4c1;
}

/* ==============================
   ページタイトル
============================== */

.contact-page-hero {
  padding: 75px 0 80px;
  background:
    radial-gradient(
      circle at 88% 15%,
      rgba(243, 194, 83, .12),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #f7f5f0 0%,
      #f2eee8 100%
    );
}

.contact-page-hero .eyebrow {
  color: #9a7b3c;
  font-size: 12px;
}

.contact-page-hero h1 {
  margin-top: 15px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: .05em;
}

.contact-page-hero p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 14px;
  line-height: 2.1;
  color: #626c73;
}

/* ==============================
   フォームセクション
============================== */

.contact-form-section {
  padding: 85px 0 110px;
  background: #fff;
}

/* フォーム導入文 */
.contact-form-intro {
  margin-bottom: 38px;
}

.contact-form-intro h2 {
  color: var(--navy);
  font-size: 27px;
  font-weight: 700;
}

.contact-form-intro > p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

/* 英語利用者への案内 */
.contact-form-intro .contact-english-note {
  display: block;
  margin-top: 22px;
  padding: 14px 18px;
  background: #f7f5f0;
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  color: #5d6670;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.8;
}

/* ==============================
   フォーム本体
============================== */

.contact-form-box {
  background: #fff;
  border: 1px solid #e3e5e2;
  border-radius: 8px;
  overflow: hidden;
}

/* 入力項目の行 */
.contact-form-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  padding: 28px 34px;
  border-bottom: 1px solid #e7e9e6;
}

.contact-form-row:last-of-type {
  border-bottom: 1px solid #e7e9e6;
}

/* ラベル */
.contact-form-label {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

/* 必須ラベル */
.required-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

/* 任意ラベル */
.optional-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid #d6d9d6;
  border-radius: 3px;
  background: #f7f8f6;
  color: #7c8586;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

/* 入力欄 */
.contact-form-field {
  min-width: 0;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid #cfd5d5;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: #a0a7aa;
  opacity: 1;
}

.contact-form-field input:hover,
.contact-form-field select:hover,
.contact-form-field textarea:hover {
  border-color: #9ca8aa;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: #b38a34;
  box-shadow: 0 0 0 3px rgba(243, 194, 83, .2);
}

/* お問い合わせ対象の補足 */
.contact-form-help {
  margin-top: 9px;
  color: #7c8589;
  font-size: 11px;
  line-height: 1.8;
}

/* ==============================
   個人情報の取り扱い
============================== */

.contact-privacy {
  margin: 35px 34px 0;
  padding: 18px 22px;
  border-radius: 4px;
  background: var(--cream);
}

.contact-privacy p {
  color: #636d74;
  font-size: 12px;
  line-height: 1.9;
}

/* ==============================
   確認ボタン
============================== */

.contact-submit-area {
  display: flex;
  justify-content: center;
  padding: 35px 34px 48px;
}

.contact-submit {
  width: min(100%, 350px);
  min-height: 60px;
  justify-content: center;
  padding: 16px 28px;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.contact-submit:hover {
  background: #304761;
}

/* ==============================
   フッター
============================== */

.contact-page-footer {
  border-top: 1px solid #e7e9e6;
}

.contact-page-footer .footer-brand {
  flex-shrink: 0;
}

/* ==============================
   タブレット
============================== */

@media (max-width: 900px) {
  .contact-page-hero {
    padding: 65px 0 70px;
  }

  .contact-form-section {
    padding: 70px 0 85px;
  }

  .contact-form-row {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 20px;
    padding: 25px;
  }

  .contact-privacy {
    margin-inline: 25px;
  }
}

/* ==============================
   スマートフォン
============================== */

@media (max-width: 600px) {
  .contact-page-container {
    width: calc(100% - 38px);
  }

  .contact-page-header {
    padding-inline: 5%;
  }

  .contact-page-header .brand-type {
    font-size: 19px;
  }

  .contact-header-back {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .contact-page-hero {
    padding: 48px 0 55px;
  }

  .contact-page-hero .eyebrow {
    font-size: 10px;
  }

  .contact-page-hero h1 {
    margin-top: 12px;
    font-size: 32px;
  }

  .contact-page-hero p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 12px;
    line-height: 2;
  }

  .contact-page-hero p br {
    display: none;
  }

  .contact-form-section {
    padding: 52px 0 70px;
  }

  .contact-form-intro {
    margin-bottom: 28px;
  }

  .contact-form-intro h2 {
    font-size: 23px;
  }

  .contact-form-intro > p {
    font-size: 12px;
  }

  .contact-form-intro .contact-english-note {
    padding: 13px 14px;
    font-size: 11px;
  }

  .contact-form-row {
    display: block;
    padding: 21px 17px 24px;
  }

  .contact-form-label {
    align-items: center;
    padding-top: 0;
    margin-bottom: 13px;
    font-size: 13px;
  }

  .contact-form-field input,
  .contact-form-field select,
  .contact-form-field textarea {
    min-height: 48px;
    font-size: 16px;
    padding: 11px 13px;
  }

  .contact-form-field textarea {
    min-height: 170px;
  }

  .contact-form-help {
    font-size: 10px;
  }

  .contact-privacy {
    margin: 25px 17px 0;
    padding: 17px;
  }

  .contact-privacy p {
    font-size: 11px;
  }

  .contact-submit-area {
    padding: 28px 17px 32px;
  }

  .contact-submit {
    width: 100%;
    min-height: 56px;
    font-size: 13px;
  }

  .contact-page-footer {
    padding: 25px 7%;
  }

  .contact-page-footer .footer-brand {
    width: 100%;
  }
}

/* ==============================
   画面幅360px以下
============================== */

@media (max-width: 360px) {
  .contact-page-header {
    gap: 8px;
    padding-inline: 4%;
  }

  .contact-page-header .brand {
    gap: 7px;
  }

  .contact-page-header .brand-mark {
    width: 28px;
    height: 28px;
  }

  .contact-page-header .brand-type {
    font-size: 17px;
  }

  .contact-header-back {
    font-size: 9px;
    padding: 7px 8px;
  }

  .contact-page-container {
    width: calc(100% - 30px);
  }
}

/* ==============================
   動きを抑える設定
============================== */

@media (prefers-reduced-motion: reduce) {
  .contact-header-back,
  .contact-form-field input,
  .contact-form-field select,
  .contact-form-field textarea {
    transition: none;
  }
}


/* ==============================
   フォームの英語併記
============================== */

/* 項目名の日本語・英語を縦に配置 */
.contact-form-label > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.label-en {
  display: block;
  color: #8b949b;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.5;
}

/* 必須・任意の表示 */
.contact-form-label .required-label,
.contact-form-label .optional-label {
  font-size: 9px;
  white-space: nowrap;
}

/* 確認ボタンの英語 */
.contact-submit > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.button-en {
  display: block;
  color: #cbd3dc;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .02em;
}

/* スマートフォン */
@media (max-width: 600px) {
  .label-en {
    font-size: 11px;
  }

  .contact-form-label .required-label,
  .contact-form-label .optional-label {
    font-size: 9px;
  }

  .button-en {
    font-size: 10px;
  }
}


/* ==============================
   確認画面・送信完了画面
============================== */

/* 英語の補助表記 */
.mail-page-en {
  color: #818b95;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}

/* 確認画面のコンテナ */
.mail-confirm-box {
  border: 1px solid #e3e5e2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

/* 確認内容テーブル */
.mail-confirm-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mail-confirm-table th,
.mail-confirm-table td {
  padding: 25px 30px;
  border-bottom: 1px solid #e7e9e6;
  text-align: left;
  vertical-align: top;
}

.mail-confirm-table th {
  width: 230px;
  background: #faf9f6;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.mail-confirm-table th .label-en {
  display: block;
  margin-top: 4px;
  color: #8b949b;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
}

.mail-confirm-table td {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

/* 戻る・送信ボタン */
.mail-button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 35px 25px 40px;
}

.mail-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: min(100%, 240px);
  min-height: 64px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
}

.mail-button small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
}

.mail-button-primary {
  background: var(--navy);
  color: #fff;
}

.mail-button-primary small {
  color: #cbd3dc;
}

.mail-button-primary:hover {
  background: #304761;
}

.mail-button-secondary {
  background: #f7f5f0;
  border-color: #daddd9;
  color: var(--navy);
}

.mail-button-secondary small {
  color: #7e8994;
}

.mail-button-secondary:hover {
  background: #eeebe5;
}

/* エラー・送信完了画面 */
.mail-message-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 65px 45px;
  border: 1px solid #e3e5e2;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.mail-message-box h2 {
  color: var(--navy);
  font-size: 25px;
}

.mail-message-box > .mail-page-en {
  margin-top: 10px;
}

.mail-error-list {
  margin: 25px auto;
  padding: 20px;
  border: 1px solid #e2b8b8;
  border-radius: 4px;
  background: #fff8f8;
  color: #a13b3b;
  font-size: 13px;
  text-align: left;
}

/* 送信完了 */
.mail-success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  margin: 0 auto 27px;
  border-radius: 50%;
  background: #f7f1df;
  color: #a78737;
  font-size: 29px;
}

.mail-success-text {
  margin-top: 32px;
  color: #626c73;
  font-size: 14px;
  line-height: 2;
}

.mail-success .mail-button-row {
  margin-top: 20px;
  padding-bottom: 0;
}

/* スマートフォン */
@media (max-width: 600px) {
  .mail-confirm-table,
  .mail-confirm-table tbody,
  .mail-confirm-table tr,
  .mail-confirm-table th,
  .mail-confirm-table td {
    display: block;
    width: 100%;
  }

  .mail-confirm-table th {
    padding: 16px 19px 12px;
    border-bottom: 0;
  }

  .mail-confirm-table td {
    padding: 14px 19px 22px;
    font-size: 13px;
  }

  .mail-button-row {
    flex-direction: column-reverse;
    align-items: center;
    padding: 27px 18px 32px;
  }

  .mail-button {
    width: 100%;
    min-height: 58px;
    font-size: 13px;
  }

  .mail-message-box {
    padding: 45px 22px;
  }

  .mail-message-box h2 {
    font-size: 21px;
  }

  .mail-success-text {
    font-size: 12px;
  }
}


/* ==============================
   お問い合わせページの日英併記
============================== */

/* 英語の見出し */
.contact-page-hero .contact-heading-en,
.contact-form-intro .contact-heading-en {
  margin-top: 6px;
  color: #87919a;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* 英語の説明文 */
.contact-page-hero .contact-description-en,
.contact-form-intro .contact-description-en,
.contact-privacy .contact-description-en {
  margin-top: 8px;
  color: #87919a;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}

/* お問い合わせ対象の英語補足 */
.contact-form-help span[lang="en"] {
  display: inline-block;
  margin-top: 4px;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

/* スマートフォン */
@media (max-width: 600px) {
  .contact-page-hero .contact-heading-en,
  .contact-form-intro .contact-heading-en {
    font-size: 12px;
  }

  .contact-page-hero .contact-description-en,
  .contact-form-intro .contact-description-en,
  .contact-privacy .contact-description-en {
    font-size: 11px;
  }
}
