/**
 * パスワード保護ページの入力フォーム（.pba-post-password）
 * PC・携帯共通
 */

.pba-post-password {
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

.pba-post-password__form {
  margin: 0;
}

.pba-post-password__card {
  position: relative;
  padding: clamp(1.35rem, 4.5vw, 2.1rem);
  background: linear-gradient(160deg, #fbfcfb 0%, #ffffff 42%, #f4f7f5 100%);
  border: 1px solid rgba(45, 74, 62, 0.14);
  border-radius: 16px;
  box-shadow:
    0 14px 44px rgba(45, 74, 62, 0.09),
    0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* アクセントライン */
.pba-post-password__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2d4a3e, #4a7a66, #2d4a3e);
  border-radius: 16px 16px 0 0;
}

.pba-post-password__title {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.12rem, 3.2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.35;
  color: #2d4a3e;
  letter-spacing: 0.03em;
}

.pba-post-password__lead {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #444;
}

.pba-post-password__fields {
  margin-bottom: 1.15rem;
}

.pba-post-password__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2d4a3e;
  text-transform: uppercase;
}

.pba-post-password__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.82rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(45, 74, 62, 0.28);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pba-post-password__input::placeholder {
  color: #999;
}

.pba-post-password__input:hover {
  border-color: rgba(45, 74, 62, 0.4);
}

.pba-post-password__input:focus {
  outline: none;
  border-color: #2d4a3e;
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.2);
}

.pba-post-password__submit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.88rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff !important;
  background: #2d4a3e;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(45, 74, 62, 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.pba-post-password__submit:hover {
  background: #3d5f4f;
  box-shadow: 0 8px 24px rgba(45, 74, 62, 0.35);
}

.pba-post-password__submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.35), 0 6px 20px rgba(45, 74, 62, 0.28);
}

.pba-post-password__submit:active {
  transform: translateY(1px);
}

/* 内ページオーバーレイ内：周囲とのバランス */
body.pba-inner-page .pba-post-password {
  margin-top: 0.5rem;
  margin-bottom: 2.25rem;
}

/* パソコン：ボタン幅を自然に */
@media (min-width: 480px) {
  .pba-post-password__submit {
    width: auto;
    min-width: 11rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) {
  .pba-post-password {
    max-width: 30rem;
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .pba-post-password__card {
    padding: 2rem 2.25rem 2.1rem;
  }

  .pba-post-password__lead {
    font-size: 0.95rem;
  }
}

/* ダークモード（OS設定） */
@media (prefers-color-scheme: dark) {
  .pba-post-password__card {
    background: linear-gradient(160deg, #252b28 0%, #1e2421 50%, #222925 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
      0 14px 44px rgba(0, 0, 0, 0.35),
      0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .pba-post-password__title,
  .pba-post-password__label {
    color: #b8d4c4;
  }

  .pba-post-password__lead {
    color: rgba(255, 255, 255, 0.82);
  }

  .pba-post-password__input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
  }

  .pba-post-password__input:hover {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .pba-post-password__input:focus {
    border-color: #7eb89a;
    box-shadow: 0 0 0 3px rgba(126, 184, 154, 0.25);
  }

  .pba-post-password__submit {
    background: #3d5a4e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }

  .pba-post-password__submit:hover {
    background: #4a6b5c;
  }
}
