@charset "UTF-8";
/* ==========================================================================
   GC Holdings corporate site - profile-request.css
   「会社概要のダウンロード」の入力画面（フッターのカードから開くモーダル）
   画面の状態: 入力前／入力の誤り／送信中／送信完了／送れなかった／回数の上限
   ========================================================================== */

body.is-profile-open { overflow: hidden; }

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden; /* 閉じている間はキーボードフォーカスも受けない */
  opacity: 0;
  transition: opacity .25s, visibility 0s .25s;
}

.profile-modal.is-open { visibility: visible; opacity: 1; transition: opacity .25s; }

.profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 6, 20, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.profile-modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 44px 44px 40px;
  border: 1px solid rgba(140, 170, 255, .45);
  border-radius: 10px;
  background: var(--c-card-blue);
  box-shadow: 0 40px 90px -30px rgba(4, 40, 255, .6);
  color: #fff;
  outline: none;
  transform: translateY(12px);
  transition: transform .35s var(--ease);
}

.profile-modal.is-open .profile-modal__box { transform: none; }

.profile-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 5px;
  transition: background .25s, color .25s;
}

.profile-modal__close svg { width: 12px; height: 12px; }
.profile-modal__close:hover { background: #fff; color: var(--c-blue-bright); }

/* 送信中は閉じられない */
.profile-modal.is-sending .profile-modal__close { opacity: .4; pointer-events: none; }
.profile-modal.is-sending .profile-modal__backdrop { cursor: progress; }

.profile-modal .label .star { width: 14px; height: 14px; color: var(--c-blue-bright); fill: currentColor; }

.profile-modal__view[hidden] { display: none; }

.profile-modal__title {
  margin-top: 18px;
  font: 700 28px/1.4 var(--font-ja);
}

.profile-modal__lead {
  margin-top: 12px;
  font: 400 14px/1.8 var(--font-ja);
  color: rgba(255, 255, 255, .75);
}

/* --------------------------------------------------------------------------
   入力フォーム
   -------------------------------------------------------------------------- */
.profile-form { margin-top: 28px; }

.profile-field + .profile-field { margin-top: 18px; }

.profile-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 13px/1 var(--font-ja);
}

.profile-req {
  padding: 4px 6px;
  border-radius: 3px;
  background: var(--c-blue-bright);
  font: 700 10px/1 var(--font-ja);
}

.profile-input {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(0, 15, 112, .12);
  border-radius: 6px;
  background: #f4f5f9;
  color: #1b1f33;
  font: 400 15px/1 var(--font-ja);
  outline: none;
  appearance: none;
  transition: box-shadow .2s, opacity .2s;
}

.profile-input::placeholder { color: #9ca3af; }
.profile-input:focus { box-shadow: 0 0 0 3px rgba(79, 134, 255, .55); }
.profile-input:disabled { opacity: .6; }

.profile-field.is-error .profile-input { box-shadow: 0 0 0 2px #ff6b81; }

.profile-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font: 500 12.5px/1.5 var(--font-ja);
  color: #ff9aa9;
}

.profile-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff6b81;
  color: var(--c-card-blue);
  font: 700 11px/1 var(--font-en);
}

.is-error > .profile-error { display: flex; }

.profile-consent {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
}

.profile-consent__purpose {
  margin-bottom: 12px;
  font: 400 12.5px/1.7 var(--font-ja);
  color: rgba(255, 255, 255, .75);
}

.profile-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 14px/1.5 var(--font-ja);
  cursor: pointer;
}

.profile-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--c-blue-bright);
  cursor: pointer;
}

.profile-check a { color: #9fb3ff; text-decoration: underline; text-underline-offset: 3px; }
.profile-check a:hover { color: #fff; }

.profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  margin-top: 26px;
  padding: 0 20px;
  border-radius: 5px;
  background: var(--c-blue-bright);
  font: 700 16px/1 var(--font-ja);
  letter-spacing: .5px;
  transition: background .25s, color .25s;
}

.profile-btn__chev { width: 8px; height: 12px; transition: transform .25s; }
.profile-btn:hover { background: #fff; color: var(--c-blue-bright); }
.profile-btn:hover .profile-btn__chev { transform: translateX(3px); }

.profile-btn--ghost { margin-top: 12px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; }

.profile-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: profile-spin .8s linear infinite;
}

@keyframes profile-spin { to { transform: rotate(360deg); } }

.profile-form.is-sending .profile-btn { background: var(--c-blue-deep); color: rgba(255, 255, 255, .85); cursor: progress; }
.profile-form.is-sending .profile-spinner { display: block; }
.profile-form.is-sending .profile-btn__chev { display: none; }
.profile-form.is-sending .profile-check { opacity: .6; cursor: default; }

.profile-note {
  margin-top: 14px;
  font: 400 12px/1.7 var(--font-ja);
  color: rgba(255, 255, 255, .55);
  text-align: center;
}

.profile-nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   結果（送信完了・送れなかった・回数の上限）
   -------------------------------------------------------------------------- */
.profile-result { text-align: center; }

.profile-result__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: var(--c-blue-bright);
}

.profile-result__icon svg { width: 28px; height: 28px; }
.profile-result__icon--warn { background: #3a2a5c; box-shadow: inset 0 0 0 2px #ff9aa9; color: #ff9aa9; }
.profile-result__icon--wait { background: var(--c-panel); box-shadow: inset 0 0 0 2px #9fb3ff; color: #9fb3ff; }

.profile-result .profile-modal__title { margin-top: 20px; font-size: 24px; }
/* アドレスは途中で折らず、1 行に収まらないほど長いときだけ折る */
.profile-result__mail { font-weight: 700; color: #fff; overflow-wrap: anywhere; }

.profile-hint {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  font: 400 13px/1.7 var(--font-ja);
  color: rgba(255, 255, 255, .8);
  text-align: left;
}

/* --------------------------------------------------------------------------
   SP
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .profile-modal { padding: 12px; }

  .profile-modal__box {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 30px 20px 24px;
  }

  .profile-modal__close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .profile-modal .label { font: 400 11px/11px var(--font-cond); letter-spacing: 1.4px; }
  .profile-modal__title { margin-top: 12px; font-size: 21px; }
  .profile-modal__lead { font-size: 13px; line-height: 1.7; }
  .profile-form { margin-top: 22px; }
  /* iOS は 16px 未満の入力欄にフォーカスすると画面が拡大されるため 16px にする */
  .profile-input { height: 48px; font-size: 16px; }
  .profile-consent { margin-top: 20px; padding: 14px; }
  .profile-btn { height: 52px; margin-top: 22px; font-size: 15px; }
  .profile-btn--ghost { margin-top: 10px; }
  .profile-result .profile-modal__title { font-size: 20px; }
  .profile-result .profile-modal__lead { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-modal,
  .profile-modal.is-open,
  .profile-modal__box { transition: none; }
  .profile-modal__box { transform: none; }
}
