@charset "UTF-8";
/* ==========================================================================
   お問い合わせ（contact.html）専用スタイル
   ・style.css の後に読み込みます
   ========================================================================== */

/* 見出し「CONTACT」・フォームの項目名・送信ボタン用のフォント（元サイトにアップロードされている 07ラノベPOP） */
@font-face {
  font-family: "LightNovelPOP";
  src: url("../assets/fonts/lightnovelpop.woff2") format("woff2");
  font-display: swap;
}

/* --------------------------------------------------------------------------
   ページタイトル（動く背景の帯）
   -------------------------------------------------------------------------- */
.pg-title { position: relative; height: 333px; overflow: hidden; background: #fff; }
.pg-title__bg { position: absolute; inset: 0; }
.pg-title__sub {
  position: absolute; left: 0; right: 0; top: 116px;
  font-size: 16px; line-height: 16px; letter-spacing: .4em; font-weight: 400;
  color: var(--c-text2); text-align: center;
}
.pg-title__main {
  position: absolute; left: 0; right: 0; top: 133px;
  font-family: "LightNovelPOP", var(--font);
  font-size: 50px; line-height: 70px; color: var(--c-title); text-align: center;
}

/* --------------------------------------------------------------------------
   お問い合わせフォーム（白いカードの中に入力欄を並べたデザイン）
   -------------------------------------------------------------------------- */
.ct { position: relative; padding: 80px 20px 96px; background: rgba(255, 255, 255, .8); }
.ct__lead {
  max-width: 838px; margin: 0 auto;
  font-size: 14px; line-height: 22.4px; letter-spacing: .05em; color: var(--c-text2); text-align: center;
}
.ct__lead a { color: var(--c-title); }

.ct-form {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px;
  max-width: 760px; margin: 44px auto 0; padding: 44px 48px 40px;
  background: #fff; border-radius: 20px; border-top: 6px solid var(--c-title);
  box-shadow: 0 6px 28px rgba(59, 59, 59, .08);
}
.ct-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-form__note { grid-column: 1 / -1; margin-bottom: -4px; font-size: 13px; line-height: 1.6; color: var(--c-text); }
.ct-form__note .ct-req { margin: 0 2px 0 0; }

.ct-field { grid-column: 1 / -1; min-width: 0; }
.ct-field--half { grid-column: auto; }
.ct-field__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 9px;
  font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--c-text2);
}
/* 「必須」の小さな札 */
.ct-req {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 4px; background: var(--c-title); color: #fff;
  font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .05em;
}

/* 入力欄：白い背景・薄い枠線。入力中は赤い枠＋うっすら影 */
.ct-field__input {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px;
  border: 1px solid #e2dbd8; border-radius: 10px; background: #fff;
  font: 400 15px/1.6 var(--font); color: var(--c-text2);
  appearance: none; -webkit-appearance: none; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ct-field__input::placeholder { color: #b9b2af; opacity: 1; }
.ct-field__input:hover { border-color: #cfc6c2; }
.ct-field__input:focus { border-color: var(--c-title); box-shadow: 0 0 0 4px rgba(254, 96, 96, .14); }
.ct-field__textarea { height: auto; min-height: 200px; padding: 14px 16px; line-height: 1.8; resize: vertical; }

/* 送信ボタンを押したときに、未入力・形式違いの欄を赤く表示 */
.ct-form.is-validated .ct-field__input:invalid { border-color: #e5484d; background: #fff7f7; }
.ct-form.is-validated .ct-field__input:invalid:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }

.ct-form__submit {
  grid-column: 1 / -1; justify-self: center;
  display: flex; align-items: center; justify-content: center;
  width: 300px; height: 58px; margin-top: 10px;
  border: 0; border-radius: 50px; background: var(--c-title); color: #fff;
  font: 700 17px/1 var(--font); letter-spacing: .1em;
  box-shadow: 0 4px 0 #d94b4b; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .3s ease;
}
.ct-form__submit:hover { background: #ff7272; }
.ct-form__submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #d94b4b; }
.ct-form__submit:disabled { cursor: default; opacity: .7; }

/* 送信後のメッセージ（「送信ありがとうございました」など） */
.ct-form__msg {
  grid-column: 1 / -1; margin-top: -6px; min-height: 0;
  font-size: 14px; line-height: 1.7; font-weight: 700; color: var(--c-title); text-align: center;
  display: none;
}
.ct-form__msg.is-shown { display: block; }

/* --------------------------------------------------------------------------
   関連ページへのリンク（4つの丸い画像）
   -------------------------------------------------------------------------- */
.hlinks { display: flex; }
.hlinks__col { flex: 1 1 0; min-width: 245px; height: 326px; padding-top: 44px; background: rgba(255, 255, 255, .8); }
.hlinks__img { display: block; width: 225px; height: 225px; margin: 0 auto; border-radius: 50%; overflow: hidden; }
.hlinks__img img { width: 100%; height: 100%; object-fit: cover; }
.hlinks__label {
  width: 214px; margin: 21px auto 0;
  font-size: 25px; line-height: 35px; font-weight: 700; color: var(--c-title); text-align: center;
}

/* --------------------------------------------------------------------------
   このページで使うアニメーション
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* ふわっと表示（Fade In） */
  .a-fadein { animation: 1200ms cubic-bezier(.445, .05, .55, .95) var(--d, 1ms) 1 normal backwards m-fadeIn; }
}

/* ==========================================================================
   スマホ（750px以下）
   ========================================================================== */
@media (max-width: 750px) {
  .pg-title { height: 156px; }
  .pg-title__sub { left: 20px; right: 20px; top: 53px; font-size: 12px; line-height: 12px; }
  .pg-title__main { left: 20px; right: 20px; top: 66px; font-size: 25px; line-height: 35px; }

  .ct { padding: 30px 14px 50px; }
  .ct__lead { font-size: 12px; line-height: 19.2px; }
  .ct-form { grid-template-columns: 1fr; gap: 18px; margin-top: 26px; padding: 26px 18px 28px; border-radius: 14px; border-top-width: 5px; }
  .ct-form__note { font-size: 11px; margin-bottom: 0; }
  .ct-field--half { grid-column: 1 / -1; }
  .ct-field__label { margin-bottom: 7px; font-size: 13px; }
  .ct-req { height: 18px; padding: 0 6px; font-size: 10px; }
  .ct-field__input { height: 46px; padding: 0 12px; font-size: 16px; border-radius: 8px; }
  .ct-field__input::placeholder { font-size: 13px; }
  .ct-field__textarea { min-height: 170px; padding: 10px 12px; }
  .ct-form__submit { width: 100%; height: 52px; margin-top: 6px; font-size: 16px; }
  .ct-form__msg { margin-top: 0; font-size: 12px; }

  .hlinks {
    display: grid; grid-template-columns: repeat(2, 147px); justify-content: center;
    background: rgba(255, 255, 255, .8);
  }
  .hlinks__col { min-width: 0; height: 196px; padding-top: 20px; background: none; }
  .hlinks__col:nth-child(n+3) { height: 186px; padding-top: 0; }
  .hlinks__img { width: 133px; height: 133px; }
  .hlinks__label { width: auto; margin: 0; padding-top: 1px; font-size: 16px; line-height: 22.4px; }
}
