/* ================================================================
   paid_counseling_form_v1_4.html
   styles.css (1rem=10px) 準拠 / form-pc- 接頭辞
================================================================ */
html { font-size: 62.5%; }

/* ─── ページラッパー ─── */
.form-pc-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.6rem 8.0rem;
}

/* ─── ヒーロー ─── */
.form-pc-hero {
  padding: 2.4rem 0 1.6rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
}
.form-pc-hero__trust {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 0.6rem;
}
.form-pc-trust-br { display: none; }
@media (max-width: 640px) {
  .form-pc-trust-br  { display: block; }
  .form-pc-trust-pipe { display: none; }
}
.form-pc-hero__title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #153b6d;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.form-pc-hero__sub {
  font-size: 1.4rem;
  color: #555;
  line-height: 1.7;
}

/* ─── 料金テーブル ─── */
.form-pc-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2.0rem 0;
}
@media (max-width: 640px) {
  .form-pc-plans { grid-template-columns: 1fr; gap: 0.8rem; }
}
.form-pc-plan-card {
  border: 2px solid #dde4ee;
  border-radius: 0.8rem;
  padding: 1.6rem 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.form-pc-plan-card:hover { border-color: #153b6d; background: #f7f9fc; }
.form-pc-plan-card.is-selected {
  border-color: #d13232;
  background: #fff5f5;
}
.form-pc-plan-card__badge {
  position: absolute;
  top: -1.0rem;
  left: 50%;
  transform: translateX(-50%);
  background: #d13232;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.2rem 1.0rem;
  border-radius: 1rem;
  white-space: nowrap;
}
.form-pc-plan-card__badge--recommend {
  background: #153b6d;
}
.form-pc-plan-card__name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #153b6d;
  margin-bottom: 0.6rem;
}
.form-pc-plan-card__price {
  font-size: 2.4rem;
  font-weight: bold;
  color: #d13232;
  line-height: 1.2;
}
.form-pc-plan-card__price-sub {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 0.8rem;
}
.form-pc-plan-card__desc {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
  text-align: left;
}
.form-pc-plan-card__input {
  /* ラジオボタンは視覚的に隠してカードUI全体でトグル */
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ─── 選択中プランのサマリー ─── */
.form-pc-plan-summary {
  background: #153b6d;
  color: #fff;
  border-radius: 0.6rem;
  padding: 1.2rem 1.8rem;
  margin-bottom: 2.0rem;
  font-size: 1.4rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.form-pc-plan-summary.is-visible { display: flex; }
.form-pc-plan-summary__label { font-size: 1.2rem; opacity: 0.8; }
.form-pc-plan-summary__name { font-weight: bold; font-size: 1.5rem; }
.form-pc-plan-summary__price { font-size: 1.8rem; font-weight: bold; }

/* ─── フォームカード ─── */
.form-pc-card {
  background: #fff;
  border: 1px solid #dde4ee;
  border-radius: 1.0rem;
  overflow: hidden;
  margin-bottom: 2.0rem;
}
.form-pc-card__hd {
  background: #153b6d;
  padding: 1.8rem 2.4rem;
}
.form-pc-card__hd-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.2rem;
}
.form-pc-card__hd-sub {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.8);
}
.form-pc-card__body {
  padding: 2.0rem 2.4rem 1.6rem;
}
@media (max-width: 640px) {
  .form-pc-card__hd { padding: 1.4rem 1.6rem; }
  .form-pc-card__body { padding: 1.6rem 1.4rem; }
}

/* ─── フォームフィールド ─── */
.form-pc-fgrp {
  margin-bottom: 1.6rem;
}
.form-pc-fgrp:last-child { margin-bottom: 0; }
.form-pc-flbl {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  color: #153b6d;
  margin-bottom: 0.6rem;
}
.form-pc-req {
  background: #d13232;
  color: #fff;
  font-size: 1.0rem;
  font-weight: bold;
  padding: 0.1rem 0.5rem;
  border-radius: 0.3rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.form-pc-opt {
  background: #aaa;
  color: #fff;
  font-size: 1.0rem;
  font-weight: bold;
  padding: 0.1rem 0.5rem;
  border-radius: 0.3rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.form-pc-input,
.form-pc-select,
.form-pc-textarea {
  font-size: 1.6rem; /* iOS Safari zoom防止（16px以上必須・変更禁止） */
  width: 100%;
  padding: 1.1rem 1.3rem;
  border: 1.5px solid #dde4ee;
  border-radius: 0.6rem;
  font-family: "Noto Sans JP", sans-serif;
  color: #222;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-pc-input:focus,
.form-pc-select:focus,
.form-pc-textarea:focus {
  outline: none;
  border-color: #153b6d;
  box-shadow: 0 0 0 3px rgba(21,59,109,0.1);
}
.form-pc-input.form-pc-err,
.form-pc-select.form-pc-err,
.form-pc-textarea.form-pc-err {
  border-color: #d13232;
  box-shadow: 0 0 0 3px rgba(209,50,50,0.1);
}
.form-pc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.0rem center;
  background-size: 2rem;
  padding-right: 3.0rem;
  cursor: pointer;
}
.form-pc-textarea {
  resize: vertical;
  min-height: 10rem;
  line-height: 1.8;
}
.form-pc-input::placeholder,
.form-pc-textarea::placeholder {
  font-size: 1.3rem;
  color: #aaa;
}
.form-pc-hint {
  font-size: 1.3rem;
  color: #777;
  margin-top: 0.4rem;
  line-height: 1.6;
}
.form-pc-errmsg {
  font-size: 1.2rem;
  color: #d13232;
  margin-top: 0.4rem;
  display: none;
}
.form-pc-errmsg--show { display: block; }
.form-pc-err-plan {
  font-size: 1.3rem;
  color: #d13232;
  font-weight: bold;
  margin-bottom: 1.6rem;
  display: none;
  padding: 0.8rem 1.2rem;
  border: 1px solid #d13232;
  border-radius: 0.4rem;
  background: #fff5f5;
}
.form-pc-err-plan--show { display: block; }

/* ─── 名前2列 ─── */
.form-pc-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 480px) {
  .form-pc-name-row { grid-template-columns: 1fr; gap: 0; }
}

/* ─── プライバシー同意 ─── */
.form-pc-pcheck {
  border: 1px solid #dde4ee;
  border-radius: 0.6rem;
  padding: 1.2rem 1.4rem;
  background: #f7f9fc;
}
.form-pc-pcheck label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1.6;
}
.form-pc-pcheck input[type="checkbox"] {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: #153b6d;
}
.form-pc-pcheck a { color: #153b6d; }

/* ─── 送信ボタン ─── */
.form-pc-submit {
  width: 100%;
  padding: 1.6rem 2.4rem;
  background: #d13232; /* マスターガイド4-1 p1色 */
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  font-weight: bold;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 1.6rem;
  letter-spacing: 0.03em;
}
.form-pc-submit:hover { background: #b52828; }
.form-pc-submit:active { transform: scale(0.99); }
.form-pc-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.form-pc-submit-micro {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.form-pc-submit-micro span {
  font-size: 1.2rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── ハニーポット ─── */
.form-pc-honeypot { display: none; }

/* ─── 注意書きセクション ─── */
.form-pc-notes {
  background: #f7f9fc;
  border: 1px solid #e5e9f0;
  border-radius: 0.8rem;
  padding: 1.6rem 2.0rem;
  margin-top: 2.0rem;
  font-size: 1.3rem;
  color: #555;
  line-height: 1.8;
}
.form-pc-notes__title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #153b6d;
  margin-bottom: 0.8rem;
}
.form-pc-notes ul {
  padding-left: 1.8rem;
  margin: 0;
}
.form-pc-notes li { margin-bottom: 0.4rem; }

/* スクリーンリーダー用（視覚的に非表示） */
.form-pc-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ─── 専攻その他表示 ─── */
.form-pc-specialty-other { display: none; }
.form-pc-specialty-other--show { display: block !important; }

/* ─── 戻るリンク ─── */
.form-pc-back {
  text-align: center;
  margin-top: 2.4rem;
  font-size: 1.3rem;
}
.form-pc-back a {
  color: #153b6d;
  text-decoration: underline;
}
