/* ==========================================================================
   お問い合わせ・法人お問い合わせフォーム専用スタイル（ry-rental.com 忠実再現）
   - 参考: https://www.ry-rental.com/contact/index.php
   - body class でスコープ：.page-contact-* / .page-business-*
   - apply / cancel には影響しません
   ========================================================================== */

/* ----------------------------------------------------------
   ページ全体：背景を白に上書き（form.css の .p-contact bg を打消）
   ---------------------------------------------------------- */
.page-contact-input .p-contact,
.page-contact-confirm .p-contact,
.page-contact-thanks .p-contact,
.page-business-input .p-contact,
.page-business-confirm .p-contact,
.page-business-thanks .p-contact,
.page-review-post .p-contact,
.page-mypage .p-contact {
  background-color: #fff;
}

/* レイアウト幅 */
.page-contact-input .l-inner__contact,
.page-contact-confirm .l-inner__contact,
.page-contact-thanks .l-inner__contact,
.page-business-input .l-inner__contact,
.page-business-confirm .l-inner__contact,
.page-business-thanks .l-inner__contact,
.page-review-post .l-inner__contact,
.page-mypage .l-inner__contact {
  max-width: 850px;
}

/* ----------------------------------------------------------
   イントロ説明文（page_txt 相当）
   ---------------------------------------------------------- */
.p-contact-intro {
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.8;
  color: #2a2a2a;
  text-align: center;
}

.p-contact-intro p {
  margin: 0;
}

.p-contact-intro p + p {
  margin-top: 0.6em;
}

.p-contact-intro .attention {
  color: #01a273;
}

/* 営業時間内対応の但し書き（やや控えめに） */
.p-contact-intro__note {
  font-size: 13px;
  color: #777;
}

/* 自己解決の案内（カード変更・領収書DL）＝本文から切り出した囲み */
.p-contact-selfhelp {
  max-width: 520px;
  margin: 18px auto;
  padding: 14px 18px;
  background: #f0faf6;
  border: 1px solid #cdeede;
  border-radius: 8px;
  line-height: 1.7;
}

.p-contact-selfhelp p {
  margin: 0;
}

.p-contact-selfhelp p + p {
  margin-top: 8px;
}

/* 種別「ご契約・お支払い」「返却・集荷」を選ぶと出すマイページの案内（#42） */
.p-contact-mypage-hint {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #f0faf6;
  border: 1px solid #cdeede;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.p-contact-mypage-hint[hidden] {
  display: none;
}

.p-contact-mypage-hint a {
  color: #00704f;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   お問い合わせの入力の区切り（2026-10-17 運用者）＝「お問い合わせの前に」「お問い合わせフォーム」。
   見出しと面はマイページ（wellsub-core assets/mypage.css の .p-mypage-heading・.p-mypage-block__body）と同じ値
   ---------------------------------------------------------- */
.p-contact-section + .p-contact-section {
  margin-top: 50px;
}

.p-contact-heading {
  position: relative;
  margin: 0 0 14px;
  padding-left: 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #2a2a2a;
}

.p-contact-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: #01a273;
}

.p-contact-phrase {
  display: inline-block;   /* 文節の切れ目でだけ折る */
}

.p-contact-card {
  padding: 24px 30px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: #2a2a2a;
}

.p-contact-card p {
  margin: 0;
}

.p-contact-card a:not(.p-btn-process) {
  color: #01a273;
  text-decoration: underline;
}

.p-contact-card a:not(.p-btn-process):hover {
  text-decoration: none;
}

/* マイページでできること＝緑の点の箇条（マイページの買取の条件と同じ形） */
.p-contact-card__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.p-contact-card__list li {
  position: relative;
  padding-left: 18px;
}

.p-contact-card__list li + li {
  margin-top: 4px;
}

.p-contact-card__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(0.9em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #01a273;
}

.p-contact-card__action {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* 主でないボタン＝白地に緑（このページの主は「入力内容の確認」） */
.p-btn-process.p-contact-btn--sub {
  background-color: #fff;
  color: #01a273;
}

.p-btn-process.p-contact-btn--sub:not(:disabled):hover {
  background-color: #f0faf6;
  color: #01a273;
}

.p-contact-card .p-contact-card__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
}

/* 受付・営業時間・返信の目安＝フォームのすぐ上（項目名＋値の小さな表・注記は控えめに） */
.p-contact-hours {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #2a2a2a;
}

.p-contact-hours p {
  margin: 0;
}

.p-contact-hours dl {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 2px 12px;
  margin: 8px 0 0;
}

.p-contact-hours dt {
  font-weight: 600;
  color: #555;
}

.p-contact-hours dd {
  margin: 0;
}

/* 確認画面の送信ボタンの下の注記（受付完了メールが届かないとき）＝マイページの買取のボタンの下の注記と同じ控えめな文字。PC は真ん中・スマホは左 */
.p-contact-submit-note {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 13px;
  line-height: 1.8;
  color: #777;
  text-align: center;
}

.p-contact-intro a {
  color: #01a273;
  text-decoration: underline;
}

.p-contact-intro a:hover {
  text-decoration: none;
}

/* 営業時間・休業日のショップ情報 */
.p-shop-hours {
  display: flex;
  flex-wrap: wrap;
  width: 280px;
  margin: 16px auto 0;
  text-align: left;
  font-size: 13px;
  color: #2a2a2a;
  line-height: 1.6;
}

.p-shop-hours dt {
  width: 90px;
  margin: 0;
  padding: 4px 0;
  font-weight: 600;
  color: #555;
}

.p-shop-hours dd {
  width: calc(100% - 90px);
  margin: 0;
  padding: 4px 0;
}

/* 確認画面：未入力表示 */
.confirm-empty {
  color: #999;
}

/* ----------------------------------------------------------
   フォームエリア（白ページ上の灰色ブロック）
   - 入力ページと確認ページで横幅を完全に一致させる
   ---------------------------------------------------------- */
.p-form-area {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 40px 0 0;
  background-color: #f6f6f6;
  padding: 40px 30px;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .p-form-area {
    margin-top: 20px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
  }

  /* 確認画面のみ：モバイルでも確認内容エリアにグレー背景 */
  .page-contact-confirm .p-form-area,
  .page-business-confirm .p-form-area {
    background-color: #f6f6f6;
    padding: 20px 16px;
    border-radius: 4px;
  }
}

/* ----------------------------------------------------------
   入力テーブル（table_input_form 相当：枠線・背景色なしのミニマル）
   ---------------------------------------------------------- */
.p-form-table,
.p-form-table--confirm {
  width: 100%;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.p-form-table th,
.p-form-table td {
  padding: 10px 5px;
  text-align: left;
  vertical-align: middle;
  border: none;
}

/* ラベル（th）：入力テキストよりも若干薄い色味で統一 */
.p-form-table th {
  width: 30%;
  font-size: 14px;
  font-weight: normal;
  color: #707070;
  line-height: 1.4;
}

/* 必須マーク（緑・小さめ） */
.p-form-table .required {
  display: inline-block;
  margin-left: 5px;
  color: #01a273;
  font-size: 12px;
  vertical-align: top;
  font-weight: normal;
}

/* 入力欄：ry-rental の com_form.css 準拠 */
.p-form-table input[type="text"],
.p-form-table input[type="email"],
.p-form-table input[type="tel"],
.p-form-table input[type="password"],
.p-form-table select,
.p-form-table textarea {
  width: 100%;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  background-color: #fff;
  padding: 8px 10px;
  font-size: 15px;
  color: #2a2a2a;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

/* select は appearance:none で矢印が消えるので背景SVGで復元 */
.p-form-table select {
  height: 40px;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='%232a2a2a' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}

/* 未選択時はプレースホルダー色。required + value="" で :invalid マッチ */
.p-form-table select:invalid {
  color: #999;
}
.p-form-table select option {
  color: #2a2a2a;
}
.p-form-table select option[value=""] {
  color: #999;
}

.p-form-table input[type="text"]:focus,
.p-form-table input[type="email"]:focus,
.p-form-table input[type="tel"]:focus,
.p-form-table input[type="password"]:focus,
.p-form-table select:focus,
.p-form-table textarea:focus {
  outline: 1px solid #40a1e1;
  border-color: #d4d4d4;
}

.p-form-table input:disabled,
.p-form-table select:disabled,
.p-form-table textarea:disabled {
  background-color: #fafafa;
}

.p-form-table textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* プレースホルダー */
.p-form-table input::placeholder,
.p-form-table textarea::placeholder {
  color: #999;
  font-family: inherit;
  font-size: 15px;
}

/* ----------------------------------------------------------
   入力エラー
   ---------------------------------------------------------- */
.p-form-table .is-error {
  border-color: #ff0101 !important;
}

.p-form-table .error-text {
  display: block;
  margin-top: 6px;
  color: #ff0101;
  font-size: 12px;
}

.p-form-error-notice {
  background: #fff5f5;
  border: 1px solid #ff0101;
  color: #c00;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
}

/* ----------------------------------------------------------
   送信ボタン（btn_process.black 相当）
   ---------------------------------------------------------- */
.p-process-btn-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.p-btn-process {
  display: block;
  max-width: 260px;
  width: 100%;
  font-size: 16px;
  text-align: center;
  font-weight: normal;
  letter-spacing: 0.08em;
  border-radius: 5px;
  padding: 18px 10px;
  box-sizing: border-box;
  cursor: pointer;
  background-color: #01a273;
  border: 1px solid #01a273;
  color: #fff;
  transition: background-color 0.3s, color 0.3s;
  font-family: inherit;
  text-decoration: none;
}

.p-btn-process:not(:disabled):hover {
  background-color: #fff;
  color: #01a273;
  text-decoration: none;
}

.p-btn-process:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 戻るボタン（白地・グレー枠・グレー文字） */
.p-btn-process--back {
  background-color: #fff;
  border-color: #9d9d9d;
  color: #555;
}

.p-btn-process--back:not(:disabled):hover {
  background-color: #f0f0f0;
  border-color: #9d9d9d;
  color: #555;
}

/* ----------------------------------------------------------
   確認テーブル（入力テーブルと同じミニマル構造）
   ---------------------------------------------------------- */
/* 確認テーブル：罫線なし。font-size / color は入力テーブルと統一 */
.p-form-table--confirm th,
.p-form-table--confirm td {
  border: none;
  padding: 18px 5px;  /* PC: 項目間を広めに */
}

.p-form-table--confirm td {
  color: #2a2a2a;
  font-size: 15px;
  line-height: 1.6;
}

.p-form-table--confirm .confirm-message {
  white-space: pre-wrap;
  word-break: break-word;
}

/* ----------------------------------------------------------
   完了画面
   ---------------------------------------------------------- */
.page-contact-thanks .p-complete-content,
.page-business-thanks .p-complete-content {
  text-align: center;
  padding: 10px 0 40px;
}

.page-contact-thanks .p-complete-body,
.page-business-thanks .p-complete-body {
  font-size: 14px;
  line-height: 1.8;
  color: #2a2a2a;
  margin-bottom: 60px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact-thanks .p-complete-body p,
.page-business-thanks .p-complete-body p {
  margin: 0;
}

.page-contact-thanks .p-complete-body p + p,
.page-business-thanks .p-complete-body p + p {
  margin-top: 0.5em;
}


.page-contact-thanks .p-complete-btn,
.page-business-thanks .p-complete-btn {
  display: inline-block;
  max-width: 260px;
  width: 100%;
  font-size: 16px;
  text-align: center;
  font-weight: normal;
  letter-spacing: 0.08em;
  border-radius: 5px;
  padding: 18px 10px;
  box-sizing: border-box;
  background-color: #01a273;
  border: 1px solid #01a273;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  margin: 0 auto;
}

.page-contact-thanks .p-complete-btn,
.page-business-thanks .p-complete-btn:hover {
  background-color: #fff;
  color: #01a273;
}

/* ----------------------------------------------------------
   モバイル対応：テーブルが崩れる
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  /* H1 と導入文の間隔を縮める（form.css の 60px を上書き） */
  .p-contact__content {
    margin-top: 20px;
  }

  /* iOS Safari の入力欄フォーカス時オートズームを抑止しつつ、見た目は 14px。
     仕組み：font-size を 16px に保ちつつ transform: scale(0.875) で 14px 相当に縮小。
     width / height のレイアウトずれは calc() と margin-bottom 負値で補正。
     ※ apply/cancel フォーム（form.css）と同じパターン */
  .p-form-table input[type="text"],
  .p-form-table input[type="email"],
  .p-form-table input[type="tel"],
  .p-form-table input[type="password"],
  .p-form-table select {
    font-size: 16px;
    height: calc(40px / 0.875);
    width: calc(100% / 0.875);
    transform: scale(0.875);
    transform-origin: left top;
    margin-bottom: calc(40px - 40px / 0.875);
  }

  .p-form-table textarea {
    font-size: 16px;
    height: calc(160px / 0.875);
    width: calc(100% / 0.875);
    transform: scale(0.875);
    transform-origin: left top;
    margin-bottom: calc(160px - 160px / 0.875);
  }

  .p-form-table input::placeholder,
  .p-form-table textarea::placeholder {
    font-size: 16px;
  }

  .p-form-table,
  .p-form-table thead,
  .p-form-table tbody,
  .p-form-table tr,
  .p-form-table th,
  .p-form-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  /* 各行の間隔を広げる（最初の行以外で上に余白を取る） */
  .p-form-table tr + tr th {
    padding-top: 28px;
  }

  .p-form-table th {
    padding: 0 0 8px;
  }

  .p-form-table td {
    padding: 0;
  }

  /* 確認テーブル モバイル：罫線なし、padding で行間隔 */
  .p-form-table--confirm tr,
  .p-form-table--confirm th,
  .p-form-table--confirm td {
    border: none;
  }

  .p-form-table--confirm tr + tr th {
    padding-top: 28px;
  }

  .p-form-table--confirm th {
    padding: 0 0 6px;
  }

  .p-form-table--confirm td {
    padding: 0;
  }

  /* イントロ */
  .p-contact-intro {
    font-size: 13px;
  }

  /* お問い合わせの入力の区切り（2026-10-17）＝マイページと同じ値 */
  /* H1 の下の 20px（上の .p-contact__content＝中央の導入文向け）は左の見出しには詰まって見える（10/17 運用者）＝
     最初の区切りだけ 16px 足して 36px（マイページのトップと同じ）。margin は親と重なるので padding で足す */
  .p-contact__content > .p-contact-section:first-child {
    padding-top: 16px;
  }

  .p-contact-section + .p-contact-section {
    margin-top: 40px;
  }

  .p-contact-heading {
    font-size: 17px;
  }

  .p-contact-card {
    padding: 20px 16px;
    font-size: 14px;
  }

  .p-contact-card__action .p-btn-process {
    max-width: none;
  }

  .p-contact-hours {
    font-size: 13px;
  }

  /* お問い合わせの入力・確認のボタン＝マイページと同じく中身の幅いっぱい（10/17 運用者「マイページのボタンの大きさを参考に」。PC は 260px のままでマイページと同じ） */
  #contact-input-form .p-process-btn-area .p-btn-process,
  #contact-confirm-form .p-process-btn-area .p-btn-process {
    max-width: none;
  }

  .p-contact-submit-note {
    text-align: left;
  }

  /* スマホでは導入文の強制改行を無効化（自然折り返しに任せる） */
  .p-contact-intro__br {
    display: none;
  }

  /* ボタン領域：縦積み（送信を上、戻るを下） */
  .p-process-btn-area {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 30px;
  }
}

/* ============================================================
   選択肢＝レビュー投稿フォーム用（contact/business にはラジオ・チェックが無い）
   ⚠️ 共通リセット（common.css の input{appearance:none;width:100%}）が効くので、
      ラジオ・チェックを置くときは幅・高さを必ず自分で書く（書かないと 168×0px に潰れて
      不可視になる＝2026-08-16・08-19 実測）。★評価＝.p-form-rating__input、
      掲載同意＝.p-form-agree input[type="checkbox"]（どちらも下で描く）。
      2026-10-13 に「ネイティブ表示へ戻す」共通ルールは撤去（使う要素が無くなった）。
   ============================================================ */

/* 選択肢の並び（★評価は下の .p-form-rating で上書き） */
.p-form-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.p-form-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  line-height: 1.6;
  color: #2a2a2a;
  cursor: pointer;
}
.p-form-choice--block {
  align-items: flex-start;
}
.p-form-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b6b6b;
}
.p-form-error-notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #e0b4b4;
  border-radius: 3px;
  background-color: #fdf3f3;
  color: #a33a3a;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   レビュー投稿フォーム 固有
   （選択肢の基本形は上の「選択肢（ラジオ／チェックボックス）」節）
   ============================================================ */

/* ─── ★評価（横1列の5つを押して選ぶ・2026-10-13 運用者選択＝旧は★5〜1の縦5行）───
   色は assets/css/review.css の .p-review__star / .is-filled が正本。
   当ページは review.css を読み込まない（一覧用レイアウトが混ざるため）ので同値で持つ。
   ⚠️ 片方だけ変えると商品ページと投稿フォームで★の色がズレる。
   DOM は 5→1 の順（page-review-post.php の wellsub_review_stars）＝row-reverse で左から1〜5に見せ、
   `:checked ~` で「選んだ★とそれより左」を着色する。 */
.p-form-rating {
  display: flex;
  flex-wrap: wrap;          /* 320px 級では「選択してください」を★の下へ回す */
  align-items: center;
  gap: 4px 12px;
}
.p-form-rating__stars {
  position: relative;
  display: inline-flex;
  flex-direction: row-reverse;
}
/* ラジオは見えなくするだけ（フォーカスと矢印キーでの選択は残す）。幅・高さは共通リセット対策で明示 */
.p-form-rating__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.p-form-rating__star {
  padding: 2px 3px;
  font-size: 30px;
  line-height: 1;
  color: #ddd;            /* review.css .p-review__star と同値 */
  cursor: pointer;
  transition: color 0.12s;
}
.p-form-rating__input:checked ~ .p-form-rating__star {
  color: #f5a623;         /* review.css .p-review__star.is-filled と同値 */
}
/* マウスを乗せた★まで仮に着色（タッチ端末は hover が残るので出さない） */
@media (hover: hover) {
  .p-form-rating__stars:hover .p-form-rating__star {
    color: #ddd;
  }
  .p-form-rating__stars .p-form-rating__star:hover,
  .p-form-rating__stars .p-form-rating__star:hover ~ .p-form-rating__star {
    color: #f5a623;
  }
}
.p-form-rating__input:focus-visible + .p-form-rating__star {
  outline: 2px solid #3aa66e;
  outline-offset: 1px;
  border-radius: 3px;
}
.p-form-rating__value {
  font-size: 13px;
  color: #9a9a9a;
  white-space: nowrap;
}
.p-form-rating__value.is-selected {
  font-size: 15px;
  font-weight: 700;
  color: #2a2a2a;
}

/* 文字数は入力欄の右下（入力欄に付いた情報として読ませる） */
.p-form-note--count {
  margin-top: 4px;
  text-align: right;
}

/* ─── 書き方ガイド（記載例だけ） ─── */
/* 入力欄の"下"に置く（2026-08-19 運用者指摘＝先に書き始めてもらう）。
   記載例はプレースホルダーでなくここに置く（入力を始めると消える場所に手本を置かない）。
   2026-10-14 に「ポイント」の段をなくして記載例だけにした（運用者指示）＝段の区切り（__row）と
   箇条書き（__list）は撤去。記載例の文字は本文より一段薄く＝手本であって入力欄の主役ではない。 */
.p-form-hint {
  margin-top: 12px;
  padding: 16px 18px;
  background-color: #f4f9f6;
  border: 1px solid #d8e9e0;
  border-radius: 4px;
}
.p-form-hint__label {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 12px;
  border: 1px solid #9fcdb6;
  border-radius: 999px;
  background-color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #2f7c5c;
}
.p-form-hint__example {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #767676;   /* 白地で 4.5:1 を保つ下限付近（2026-10-14 に #5a5a5a から薄くした） */
}

/* ─── 投稿特典の告知（掲出位置＝イントロ直後・入力欄の前・2026-10-13 に送信ボタンの下から戻した） ─── */
.p-form-reward {
  margin: 0 0 26px;
  padding: 18px 20px;
  border: 1px solid #e6dcc4;
  border-radius: 4px;
  background-color: #fdfaf2;
}
.p-form-reward__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #8a6d1f;
}

/* ─── 写真欄（要素ごとの margin を積まず、親の gap で縦リズムを作る） ─── */
.p-form-photo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p-form-file {
  width: auto;
  max-width: 100%;
  font-size: 14px;
}
.p-form-note--flush {
  margin-top: 0;
}

/* ─── 送信ボタン：必須が揃うまでグレー（レビュー投稿のみ） ───
   他フォームの :disabled（送信中の二重押し防止＝半透明）には影響させない。 */
#review-post-form .p-btn-process:disabled {
  background-color: #c9c9c9;
  border-color: #c9c9c9;
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
}
#review-post-form .p-btn-process:disabled:hover {
  background-color: #c9c9c9;
  color: #fff;
}

/* エラーが出ているセル（ラジオ／チェックは枠線を持てないため背景で示す） */
.p-form-table td.is-error-cell > .p-form-choices {
  padding: 8px 10px;
  border-radius: 3px;
  background-color: #fdf3f3;
}

/* ─── 1列レイアウト（レビュー投稿のみ・2026-10-13 運用者選択）───
   PC・スマホとも「ラベルの下に入力欄」。旧＝PC は左30%のラベル列で、全幅の掲載名・写真と
   評価・レビューの左端が2通りあり、入力欄と書き方ガイドも細くなっていた。
   ラベルは入力欄の直上に寄せ（下8px）、項目どうしは上の余白で分ける。contact/business は2列のまま。 */
.page-review-post .p-form-table,
.page-review-post .p-form-table tbody,
.page-review-post .p-form-table tr,
.page-review-post .p-form-table th,
.page-review-post .p-form-table td {
  display: block;
  width: auto;
}
.page-review-post .p-form-table th {
  padding: 24px 0 8px;
  font-weight: 600;
  color: #4a4a4a;
}
.page-review-post .p-form-table td {
  padding: 0;
}
/* スマホの説明文も 14px（共通の 13px は短い1文向け＝この頁は特典と2観点の案内を読ませる） */
.page-review-post .p-contact-intro {
  font-size: 14px;
}

/* 商品名（イントロ）＝これが自分のレンタル品の話だと分かる見出し */
.p-contact-intro__item {
  margin-bottom: 4px !important;
  font-size: 13px;
  color: #6b6b6b;
}
.p-contact-intro__item strong {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #2a2a2a;
}

/* ─── 2観点のセクション見出し（レビュー投稿のみ・§4.3） ───
   「サービスについて」「商品について」「掲載について」を視覚的に分け、
   どちらの観点を書いているか迷わせない。 */
.p-form-table tr.p-form-section th {
  width: auto;
  padding: 26px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #01a273;
  line-height: 1.5;
}
.page-review-post .p-form-table tr.p-form-section th {
  padding-top: 30px;
}
.page-review-post .p-form-table tr:first-child.p-form-section th {
  padding-top: 0;
}
/* セクション直後の行は見出しと1かたまりに見せる（上の余白を詰める） */
.page-review-post .p-form-table tr.p-form-section + tr th,
.page-review-post .p-form-table tr.p-form-section + tr td {
  padding-top: 6px;
}
.p-form-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background-color: #01a273;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

/* ─── 投稿特典（Amazonギフトカードを"券面"として見せる・2026-08-19 改訂）───
   🧱 Amazon のロゴ・ブランド素材は使わない（商標）。券面の形＋金色のリボンという
      一般的なギフトカードの意匠だけで「カードが届く」ことを伝え、金額を最大要素にする。
   ============================================================ */
.p-form-reward__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 0;
}
/* 130px＝スマホ（375px級）でも2枚が横に並ぶ下限。それより狭い端末では折り返して縦に積む */
.p-form-reward__amount {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p-form-reward__cond {
  font-size: 12.5px;
  font-weight: 700;
  color: #8a7a52;
  line-height: 1.5;
}
.p-form-reward__cond > span {
  display: inline-block;   /* 文節の切れ目でだけ折る */
}
.p-form-reward__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 62px;
  margin-top: auto;               /* 条件の文が2行に折れても券面の下端を揃える */
  padding: 10px 46px 10px 14px;   /* 右はリボンぶん空ける */
  border-radius: 6px;
  background: linear-gradient(135deg, #33404f 0%, #4a5d72 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}
/* 縦の金リボン（右寄り）＝ギフトの意匠 */
.p-form-reward__card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 22px;
  width: 11px;
  background: linear-gradient(#f8d98a, #e0a92e);
}
.p-form-reward__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}
.p-form-reward__yen {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
  color: #ffd77a;
  letter-spacing: 0.02em;
}
.p-form-reward__unit {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
/* 写真つき＝上位の特典。券面を一段強く（数字も大きく）して差をつける */
.p-form-reward__amount.is-up .p-form-reward__card {
  background: linear-gradient(135deg, #26313d 0%, #3d5164 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.p-form-reward__amount.is-up .p-form-reward__yen {
  font-size: 26px;
}
.p-form-reward__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #e6dcc4;
  font-size: 13px;
  line-height: 1.8;
  color: #6b6b6b;
}
/* スマホ：券面2枚を横に並べる（縦に積むと特典の欄だけで1画面近くになる）。
   リボンと余白を詰め、金額が1行に収まる幅を作る。 */
@media (max-width: 767px) {
  .p-form-reward {
    padding: 16px 14px;
  }
  .p-form-reward__amounts {
    gap: 10px;
  }
  .p-form-reward__card {
    min-height: 58px;
    padding: 9px 28px 9px 11px;
  }
  .p-form-reward__card::before {
    right: 11px;
    width: 8px;
  }
  .p-form-reward__brand {
    font-size: 10px;
    letter-spacing: 0;
  }
  .p-form-reward__yen {
    font-size: 21px;
  }
  .p-form-reward__amount.is-up .p-form-reward__yen {
    font-size: 23px;
  }
}

/* ─── 掲載への同意（入力枠の外・送信ボタンの直前） ───
   箱は上の入力枠と同じ幅（2026-10-13 運用者指摘＝旧は文の幅に縮めた箱で、注記の長さで幅が決まり
   入力枠と左右の端がずれ、短いチェック行の右が空いていた）。PC は中身を中央に置いて
   中央の送信ボタンと軸を揃える（2026-08-25 の「左寄せの箱が中央のボタンと並ぶと崩れる」への答えは維持）。
   スマホは2〜3行に折れるので左揃え（下の @media）。 */
.p-form-agree {
  margin: 30px 0 0;
  padding: 18px 24px;
  border: 1px solid #d9e6df;
  border-radius: 6px;
  background-color: #f7fbf9;
  text-align: center;
}
.p-form-agree .p-form-choice {
  font-size: 15px;
  font-weight: 600;
  color: #2a2a2a;
}
/* 掲載同意のチェックは自前で描く（2026-10-13 運用者指摘＝スマホで位置が少しずれる）。
   ネイティブのチェック（appearance:auto）は iOS Safari と Chrome で描く大きさ・位置が違い、
   Chrome で揃えても iPhone でずれる。箱（18px・border-box）とチェック印（SVG）を CSS で描き、
   どのブラウザでも同じ形・同じ位置にする。
   位置＝1行目の文字の高さ中心。.p-form-choice--block は align-items:flex-start（行の頭に付く）なので
   (行の高さ 15px×1.6＝24px − 18px) ÷ 2 ＝ 3px 下げる。
   🧱 center 揃えにしないのは、ラベルが2行に折り返したときにチェックが2行の中間へ落ちるため。 */
.p-form-agree input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  border: 1.5px solid #8fa39a;
  border-radius: 4px;
  background: #fff no-repeat center / 12px 9px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s;
}
.p-form-agree input[type="checkbox"]:checked {
  border-color: #3aa66e;
  background-color: #3aa66e;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'><path fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 4.5l3 3 6-6'/></svg>");
}
.p-form-agree input[type="checkbox"]:focus-visible {
  outline: 2px solid #3aa66e;
  outline-offset: 2px;
}
.p-form-agree .p-form-note {
  margin-top: 6px;
}
.p-form-agree .p-form-choice > span > span,
.p-form-agree .p-form-note > span {
  display: inline-block;   /* 文節の切れ目でだけ折る（「するこ／と」「ご／住所」と切れない） */
}
/* 同意と送信ボタンを1つの「送る」かたまりに見せる（共通の 50px は他フォーム用） */
#review-post-form .p-process-btn-area {
  margin-top: 32px;
}
@media (max-width: 767px) {
  .p-form-agree {
    padding: 16px;
    text-align: left;
  }
  .p-form-agree .p-form-note {
    padding-left: 25px;   /* checkbox 18px + .p-form-choice の gap 7px＝ラベル文字の頭に揃える */
  }
  /* 送信ボタンは同意の箱と同じ幅（2026-10-13 運用者指摘＝共通の max-width 260px だと
     上の箱より細く、左右の端が揃わない）。他フォームのボタンは変えない。 */
  #review-post-form .p-btn-process {
    max-width: none;
  }
}
.p-form-agree.is-error-cell {
  border-color: #ff0101;
  background-color: #fdf3f3;
}
.p-form-agree .error-text {
  display: block;
  margin-top: 6px;
  padding-left: 25px;
  color: #ff0101;
  font-size: 12px;
}
