/* /src/css/contact.css */

/* ページ全体の配置（Type Trip用） */
.tt-contact-page{
  padding: 44px 0 90px;
}

.tt-contact-hero__inner,
.tt-contact-wrap__inner{
  width: var(--container);
  margin: 0 auto;
}

.tt-contact-hero{
  padding: 18px 0 18px;
}

/* ✅ タイトル＋リードを中央寄せ */
.tt-contact-hero__inner{
  text-align: center;
}

.tt-contact-hero__title{
  text-align: center;
}

.tt-contact-hero__lead{
  margin: 14px 0 0;
  font-weight: 800;
  color: rgba(28,28,34,.80);
  line-height: 1.95;
  text-align: center;
}

.tt-contact-wrap{
  padding-top: 18px;
}

/* ✅ フォームを中央寄せ */
.tt-contact-wrap__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ===========================
   参考デザインそのまま（クラス名だけ変更）
   ※ 背景のグラデ枠は維持
=========================== */

.tt-form-shell{
  /* ✅ 760px上限＋画面に収める（120vwは大きすぎるので修正） */
  width: min(760px, 92vw);

  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(145deg, transparent 35%, #ff2772, hsl(197, 99%, 53%)) border-box;

  border: 2px solid transparent;
  padding: 32px 24px;
  font-size: 14px;
  font-family: inherit;

  /* ✅ 白背景なので文字はダークに */
  color: rgba(28,28,34,.92);

  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;

  border-radius: 16px;
  background-size: 200% 100%;
  animation: ttContactGradient 5s ease infinite;

  box-shadow: 0 26px 60px rgba(0,0,0,.18);
}

@keyframes ttContactGradient{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

.tt-form-shell button:active{
  scale: 0.98;
}

.tt-form{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ✅ honeypot を非表示 */
.tt-form__hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tt-form__group{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tt-form__label{
  display: block;
  margin-bottom: 6px;
  color: rgba(28,28,34,.55);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
}

/* 入力系（白背景に合わせて整える） */
.tt-form__input,
.tt-form__textarea,
.tt-form__select{
  width: 100%;
  box-sizing: border-box;

  padding: 12px 14px;
  border-radius: 10px;

  color: rgba(28,28,34,.90);
  font-family: inherit;
  font-weight: 700;

  background-color: rgba(255,255,255,.92);
  border: 1px solid rgba(28,28,34,.16);

  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

/* select も input と同じ見た目に */
.tt-form__select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(28,28,34,.55) 50%),
    linear-gradient(135deg, rgba(28,28,34,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.tt-form__textarea{
  resize: none;
  height: 140px;
  line-height: 1.8;
}

.tt-form__input::placeholder,
.tt-form__textarea::placeholder{
  color: rgba(28,28,34,.35);
}

/* ✅ フォーカス時：サイトの雰囲気に合わせて紫寄せ */
.tt-form__input:focus,
.tt-form__select:focus,
.tt-form__textarea:focus{
  outline: none;
  border-color: rgba(123,87,255,.65);
  box-shadow: 0 0 0 4px rgba(123,87,255,.16);
  background-color: #fff;
}

/* 同意欄 */
.tt-form__consent{
  display: grid;
  gap: 10px;
  margin-top: -4px;
}

.tt-form__check{
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: rgba(28,28,34,.72);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.7;
}

.tt-form__check input{
  margin-top: 2px;
  accent-color: #7b57ff;
}

.tt-form__link{
  color: rgba(47,73,255,.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(47,73,255,.25);
}
.tt-form__link:hover{
  border-bottom-color: rgba(47,73,255,.55);
}

/* ✅ 送信ボタン：おしゃれ版（グラデ＋光） */
.tt-form__submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  align-self: center;
  width: 42%;
  min-width: 170px;

  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);

  font-family: inherit;
  font-weight: 900;
  letter-spacing: .02em;

  color: #fff;
  cursor: pointer;

  background: linear-gradient(135deg, #ff2772 0%, #7b57ff 45%, #40c9ff 100%);
  box-shadow:
    0 18px 34px rgba(91,61,255,.18),
    0 10px 26px rgba(255,39,114,.14);

  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.tt-form__submit:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    0 24px 52px rgba(91,61,255,.22),
    0 16px 36px rgba(255,39,114,.18);
}

.tt-form__submit:active{
  transform: translateY(2px);
  box-shadow:
    0 16px 30px rgba(91,61,255,.18),
    0 10px 22px rgba(255,39,114,.12);
}

.tt-form__submit:focus-visible{
  outline: 3px solid rgba(123,87,255,.35);
  outline-offset: 4px;
}

/* 注釈 */
.tt-contact-note{
  width: min(820px, 92vw);
  margin: 0;
  color: rgba(28,28,34,.72);
  font-weight: 800;
  line-height: 1.9;
  text-align: center;
}

/* スマホ：ボタンは全幅 */
@media (max-width: 900px){
  .tt-form__submit{
    width: 100%;
    align-self: stretch;
    min-width: 0;
  }
}
