/* =========================================================
   Arbonic — contact_B.html 専用スタイル
   ⚠️ arbonic.css は変更しない。差分はすべてこのファイルに置く。
   読み込み順: ... → style.css → arbonic.css → THIS FILE LAST
   ========================================================= */

/* ---------------------------------------------------------
   高齢者向けの基本調整
   本文14px前後は小さすぎる。この画面だけ底上げする。
   --------------------------------------------------------- */
.cb-scope {
  --cb-fs-body: 17px;
  --cb-fs-label: 19px;
  --cb-radius: 6px;
  --cb-touch: 56px;          /* 押せるものの最小の高さ */
}

.cb-scope,
.cb-scope p,
.cb-scope li,
.cb-scope label {
  font-size: var(--cb-fs-body);
  line-height: 1.9;
  color: var(--arb-charcoal);
}

/* ---------------------------------------------------------
   ページ冒頭「入力していただくのは3つだけです」
   --------------------------------------------------------- */
.cb-promise {
  background: var(--arb-beige);
  border-top: 1px solid var(--arb-line);
  border-bottom: 1px solid var(--arb-line);
  padding: 26px 0;
  text-align: center;
}
.cb-promise h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  margin: 0 0 14px;
  line-height: 1.6;
}
.cb-promise-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-promise-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
}
.cb-promise-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--arb-green-deep);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   ① LINE（主導線）
   --------------------------------------------------------- */
.cb-line-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--arb-beige) 100%);
  padding: 52px 0 46px;
}
.cb-card {
  background: #fff;
  border: 1px solid var(--arb-line);
  border-radius: var(--cb-radius);
  box-shadow: 0 2px 14px rgba(31, 77, 46, .07);
}
.cb-line-card {
  border-top: 5px solid #06C755;    /* LINE brand green */
  padding: 32px 26px 30px;
  max-width: 760px;
  margin: 0 auto;
}
.cb-badge {
  display: inline-block;
  background: var(--arb-green-deep);
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.cb-line-card h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 27px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.cb-line-lead {
  margin: 0 0 22px;
  font-size: 17px;
}
.cb-line-body {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
.cb-line-actions { flex: 1 1 300px; min-width: 260px; }

.cb-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  background: #06C755;
  color: #fff !important;
  font-size: 21px;
  font-weight: 700;
  border-radius: var(--cb-radius);
  text-decoration: none !important;
  box-shadow: 0 3px 0 #04a445;
  transition: transform .08s ease, box-shadow .08s ease;
}
.cb-line-btn:hover { color: #fff !important; opacity: .94; }
.cb-line-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #04a445; }
.cb-line-btn .cb-line-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #fff;
  color: #06C755;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0;
  flex: 0 0 auto;
}
.cb-line-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.cb-line-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
}
.cb-line-points li::before {
  content: '';
  position: absolute;
  left: 4px; top: 12px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #06C755;
}

/* QR（PCで見ている人向け） */
.cb-qr { flex: 0 0 190px; text-align: center; }
.cb-qr-frame {
  width: 172px; height: 172px;
  margin: 0 auto 8px;
  border: 1px solid var(--arb-line);
  border-radius: var(--cb-radius);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cb-qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.cb-qr-placeholder {
  font-size: 12px;
  line-height: 1.7;
  color: var(--arb-muted);
  padding: 10px;
  text-align: center;
}
.cb-qr-note { font-size: 13px !important; color: var(--arb-muted); margin: 0; }

@media (max-width: 767.98px) {
  .cb-qr { display: none; }          /* スマホでQRは意味がない */
  .cb-line-card { padding: 26px 18px 24px; }
  .cb-line-card h2 { font-size: 23px; }
}

/* ---------------------------------------------------------
   ② WEBフォーム（従導線）
   --------------------------------------------------------- */
.cb-form-section { padding: 46px 0 40px; }
.cb-form-wrap { max-width: 760px; margin: 0 auto; }

.cb-form-intro {
  border-left: 5px solid var(--arb-brown);
  padding: 4px 0 4px 18px;
  margin-bottom: 28px;
}
.cb-form-intro h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 25px;
  margin: 0 0 8px;
  line-height: 1.5;
}
.cb-form-intro p { margin: 0; }

/* ---- ブロック（1 / 2 / 3）---- */
.cb-block {
  border: 1px solid var(--arb-line);
  border-radius: var(--cb-radius);
  background: #fff;
  padding: 0 0 24px;
  margin-bottom: 26px;
}
.cb-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--arb-beige);
  border-bottom: 1px solid var(--arb-line);
  border-radius: var(--cb-radius) var(--cb-radius) 0 0;
  padding: 16px 20px;
}
.cb-block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--arb-green-deep);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  flex: 0 0 auto;
}
.cb-block-head h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  margin: 0;
  flex: 1;
}
.cb-req, .cb-opt {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: .06em;
}
.cb-req { background: #A6321F; color: #fff; }
.cb-opt { background: #fff; color: var(--arb-muted); border: 1px solid var(--arb-line); }

.cb-block-body { padding: 22px 20px 0; }

/* ---- 入力欄の共通 ---- */
.cb-field { margin-bottom: 24px; }
.cb-field:last-child { margin-bottom: 0; }

.cb-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--cb-fs-label);
  font-weight: 500;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 8px;
}
.cb-help {
  font-size: 14px !important;
  color: var(--arb-muted);
  margin: 6px 0 0;
  line-height: 1.75;
}

.cb-input,
.cb-textarea {
  width: 100%;
  font-size: 18px;
  font-family: inherit;
  color: var(--arb-charcoal);
  background: #fff;
  border: 2px solid #c9c2ae;
  border-radius: var(--cb-radius);
  padding: 14px 14px;
  min-height: var(--cb-touch);
  -webkit-appearance: none;
}
.cb-textarea { min-height: 130px; line-height: 1.8; resize: vertical; }
.cb-input:focus,
.cb-textarea:focus {
  outline: none;
  border-color: var(--arb-green-deep);
  box-shadow: 0 0 0 3px rgba(31, 77, 46, .13);
}
.cb-input::placeholder,
.cb-textarea::placeholder { color: #a9a294; }

/* ---- 4択（ラジオ）---- */
.cb-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .cb-choices { grid-template-columns: 1fr; } }

.cb-choice { position: relative; margin: 0; }
.cb-choice input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
/* ⚠️ セレクタは必ず直下( > )で書くこと。
   `.cb-choice span` と書くと入れ子の内側 span にも当たり、
   丸が二重に出て文字が縦に潰れる。 */
.cb-choice > span {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 12px 16px;
  border: 2px solid #c9c2ae;
  border-radius: var(--cb-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.cb-choice > span::before {
  content: '';
  width: 24px; height: 24px;
  border: 2px solid #b3ab97;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: border-color .12s, box-shadow .12s;
}
.cb-choice-text {
  display: block;
  flex: 1;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
}
.cb-choice input:checked + span {
  border-color: var(--arb-green-deep);
  background: #f1f6f2;
}
.cb-choice input:checked + span::before {
  border-color: var(--arb-green-deep);
  box-shadow: inset 0 0 0 5px var(--arb-green-deep);
}
.cb-choice input:focus-visible + span {
  outline: 3px solid rgba(31, 77, 46, .35);
  outline-offset: 2px;
}
.cb-choice small {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--arb-muted);
  line-height: 1.55;
  margin-top: 2px;
}

/* ---- 写真を選ぶ ---- */
.cb-pick {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cb-pick-btn {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  border: 2px solid var(--arb-green-deep);
  border-radius: var(--cb-radius);
  background: var(--arb-green-deep);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 0 #163a22;
  transition: transform .08s ease, box-shadow .08s ease;
}
.cb-pick-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #163a22; }
.cb-pick-btn.cb-pick-video {
  background: #fff;
  color: var(--arb-green-deep);
  box-shadow: 0 3px 0 #cfc7b2;
  font-size: 18px;
}
.cb-pick-btn.cb-pick-video:active { box-shadow: 0 1px 0 #cfc7b2; }
.cb-pick-btn .cb-ico { font-size: 24px; line-height: 1; }

.cb-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- 送った写真の一覧 ---- */
.cb-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.cb-thumbs:empty { display: none; }

.cb-thumb {
  position: relative;
  border: 1px solid var(--arb-line);
  border-radius: var(--cb-radius);
  overflow: hidden;
  background: #f3f0e6;
}
.cb-thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd8c8;
}
.cb-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #2c3a30;
  color: #fff;
  font-size: 30px;
}
.cb-thumb-state {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.4;
  background: #fff;
  border-top: 1px solid var(--arb-line);
}
.cb-thumb-state.is-sending { color: var(--arb-brown); }
.cb-thumb-state.is-done { color: var(--arb-green-deep); font-weight: 700; }
.cb-bar {
  position: absolute;
  left: 0; right: 0; bottom: 34px;
  height: 5px;
  background: rgba(0, 0, 0, .12);
}
.cb-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--arb-green-mid);
  transition: width .25s linear;
}
.cb-thumb-remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(34, 34, 34, .72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.cb-thumb-remove:hover { background: #A6321F; }

.cb-count {
  margin-top: 14px;
  font-size: 16px !important;
  font-weight: 700;
  color: var(--arb-green-deep);
}
.cb-count:empty { display: none; }

/* ---- 作例（こんな写真があると助かります）---- */
.cb-samples {
  margin-top: 26px;
  background: var(--arb-beige);
  border: 1px solid var(--arb-line);
  border-radius: var(--cb-radius);
  padding: 18px 18px 16px;
}
.cb-samples h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  margin: 0 0 14px;
}
.cb-sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
@media (max-width: 575.98px) { .cb-sample-grid { grid-template-columns: repeat(2, 1fr); } }
.cb-sample-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--arb-line);
  margin-bottom: 6px;
}
.cb-sample-grid span {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--arb-charcoal-2);
}
.cb-samples-note {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700;
  color: var(--arb-green-deep);
}

/* ---- エラー表示 ---- */
.cb-error {
  display: none;
  align-items: center;
  gap: 9px;
  background: #fdeceA;
  border: 2px solid #A6321F;
  border-radius: var(--cb-radius);
  color: #8d2a19;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 14px;
  margin-bottom: 12px;
}
.cb-error.is-on { display: flex; }
.cb-field.is-invalid .cb-input,
.cb-field.is-invalid .cb-textarea { border-color: #A6321F; background: #fffaf9; }

/* ---- 注意・気づき（メールの打ち間違い等）---- */
.cb-notice {
  display: none;
  gap: 10px;
  align-items: flex-start;
  background: #fdf6e3;
  border: 2px solid #c99a2e;
  border-radius: var(--cb-radius);
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.75;
}
.cb-notice.is-on { display: flex; }
.cb-notice button {
  border: 1px solid var(--arb-green-deep);
  background: #fff;
  color: var(--arb-green-deep);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  padding: 6px 12px;
  margin-top: 6px;
  cursor: pointer;
}
.cb-notice button:hover { background: var(--arb-green-deep); color: #fff; }

/* 電話番号欄の強調（キャリアメール検出時にJSが付ける） */
.cb-field.is-highlight {
  background: #fdf6e3;
  border-radius: var(--cb-radius);
  box-shadow: 0 0 0 3px #f0dfae;
  padding: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

/* ---- 送信ボタン（画面下に固定）---- */
.cb-submit-spacer { height: 104px; }

.cb-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--arb-line);
  box-shadow: 0 -3px 16px rgba(0, 0, 0, .09);
  padding: 12px 0 14px;
  margin-top: 10px;
}
.cb-submit-btn {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 68px;
  border: 0;
  border-radius: var(--cb-radius);
  background: var(--arb-green-deep);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 3px 0 #163a22;
}
.cb-submit-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #163a22; }
.cb-submit-note {
  text-align: center;
  margin: 9px 0 0 !important;
  font-size: 13.5px !important;
  color: var(--arb-muted);
}

/* ---- 送信完了 ---- */
.cb-done { display: none; padding: 56px 0 60px; }
.cb-done.is-on { display: block; }
.cb-done-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--arb-line);
  border-top: 6px solid var(--arb-green-deep);
  border-radius: var(--cb-radius);
  background: #fff;
  padding: 40px 26px 34px;
}
.cb-done-card h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 29px;
  margin: 0 0 22px;
}
.cb-caseno {
  background: var(--arb-beige);
  border: 1px dashed var(--arb-green-deep);
  border-radius: var(--cb-radius);
  padding: 18px 14px;
  margin-bottom: 22px;
}
.cb-caseno small {
  display: block;
  font-size: 14px;
  color: var(--arb-muted);
  margin-bottom: 4px;
}
.cb-caseno b {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  letter-spacing: .06em;
  color: var(--arb-green-deep);
  line-height: 1.2;
}

/* ---- 4ステップ（既存 .arb-flow を使わず、この画面用に軽量版）---- */
/* ⚠️ 背景は白。直下の .cb-promise がベージュなので、ここもベージュにすると
   境目が消えて1つの大きな帯に見え、「3つだけです」の宣言が埋もれる。 */
.cb-flow-section { background: #fff; padding: 46px 0 40px; }
.cb-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
@media (max-width: 767.98px) { .cb-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px)    { .cb-flow { grid-template-columns: 1fr; } }
.cb-flow li {
  background: #fff;
  border: 1px solid var(--arb-line);
  border-top: 4px solid var(--arb-green-mid);
  border-radius: var(--cb-radius);
  padding: 18px 16px;
}
.cb-flow b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--arb-green-mid);
  line-height: 1;
  margin-bottom: 8px;
}
.cb-flow h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  margin: 0 0 6px;
}
.cb-flow p { font-size: 14.5px !important; margin: 0; line-height: 1.75; }
.cb-flow-tag {
  display: inline-block;
  font-size: 11.5px;
  background: var(--arb-beige-warm);
  color: var(--arb-brown);
  border-radius: 3px;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ---- 制作中の注記（クライアント確認用。公開時に削除する）---- */
.cb-draft-flag {
  background: #3A3A3A;
  color: #fff;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: .04em;
  padding: 9px 14px;
  line-height: 1.7;
}
.cb-draft-flag b { color: #ffd97a; }
