/* リハマッチ エリアLP 共通スタイル（クラス接頭辞 alp-） */
.alp {
  --c-text: #2E2A3B;
  --c-text-sub: #5A566A;
  --c-purple: #66507F;          /* ロゴ：英字タグライン */
  --c-purple-soft: #EFEAF4;
  --c-cyan: #00B3D6;            /* ロゴ：マッチ（装飾のみ。白文字は載せない） */
  --c-brand: #007A94;           /* シアンを濃くした色：電話ボタン・リンク（白文字 4.99:1） */
  --c-brand-deep: #00627A;
  --c-cyan-soft: #E8F7FB;
  --c-coral: #EC6D6D;           /* ロゴ：リハ（装飾のみ） */
  --c-coral-soft: #FDEEEE;
  --c-cta: #C94444;             /* コーラルを濃くした色：Web相談ボタン（白文字 4.78:1） */
  --c-cta-dark: #A83535;
  --c-bg: #FBFAF8;
  --c-bg-tint: #EEF8FB;
  --c-card: #FFFFFF;
  --c-line: #DDE3E8;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --c-focus: #1B5FBF;
  --radius-card: 16px;
  --radius-btn: 12px;
  --space-section: 72px;
  --gutter: 20px;
  --maxw: 1080px;

  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
:where(.alp) *, :where(.alp) *::before, :where(.alp) *::after { box-sizing: border-box; }
:where(.alp) img { max-width: 100%; height: auto; display: block; }
:where(.alp) a { color: var(--c-brand); }
.alp :focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
:where(.alp) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.alp) :where(ul, ol) { padding: 0; list-style: none; }

.alp-skip { position: absolute; left: -9999px; top: 0; }
.alp-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alp-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 8px; }

.alp-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.alp-section { padding: var(--space-section) 0; }
.alp-section--tint { background: var(--c-bg-tint); }
.alp-h1, .alp-h2, .alp-h3, .alp-btn, .alp-callout, .alp-stats-value, .alp-stats-label, .alp-therapist-job, .alp-faq-btn { font-family: var(--font-round); }
.alp-h2 {
  font-size: clamp(26px, 5.4vw, 34px);
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 20px;
}
.alp-h2--center { text-align: center; }
.alp-lead { color: var(--c-text-sub); margin-bottom: 36px; }
.alp-lead--center { text-align: center; }
.alp-h3 { font-size: clamp(20px, 4.4vw, 22px); line-height: 1.5; font-weight: 700; }
.alp-note { font-size: 15px; line-height: 1.8; color: var(--c-text-sub); margin-top: 20px; }
.alp-icon { width: 1em; height: 1em; flex: none; }

/* ボタン */
.alp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 10px 28px;
  border-radius: var(--radius-btn); border: 0;
  font: inherit; font-size: 19px; font-weight: 700; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  transition: background-color .15s ease, transform .15s ease;
}
.alp-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
.alp-btn .alp-icon { width: 24px; height: 24px; }
.alp-btn--cta { background: var(--c-cta); color: #fff; }
.alp-btn--cta:hover { background: var(--c-cta-dark); }
.alp-btn--tel { background: var(--c-brand); color: #fff; flex-direction: column; gap: 0; }
.alp-btn--tel:hover { background: var(--c-brand-deep); }
.alp-btn--tel .alp-btn-main { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; letter-spacing: 0.04em; }
.alp-btn--tel .alp-btn-sub { font-size: 14px; font-weight: 400; }
.alp-btn-arrow { font-size: 0.9em; }
.alp-btn-main, .alp-btn-sub { white-space: nowrap; }

.alp-cta-pair { display: grid; gap: 14px; }
.alp-cta-pair .alp-btn { width: 100%; }
.alp-cta-caption { font-size: 15px; color: var(--c-text-sub); margin-top: 10px; }

/* ヘッダー */
.alp-header { background: #fff; border-bottom: 1px solid var(--c-line); }
.alp-header .alp-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.alp-logo { min-height: 48px; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-text); font-weight: 700; }
.alp-logo-img { display: block; width: 176px; height: auto; }
.alp-logo-area { font-size: 16px; background: var(--c-purple); color: #fff; padding: 0 10px; border-radius: 999px; }
.alp-header-actions { display: none; align-items: center; gap: 16px; }
.alp-header-tel { text-decoration: none; color: var(--c-text); text-align: right; line-height: 1.3; }
.alp-header-tel strong { display: flex; align-items: center; gap: 6px; font-size: 24px; color: var(--c-brand); }
.alp-header-tel span { font-size: 13px; color: var(--c-text-sub); }
.alp-header .alp-btn { min-height: 52px; font-size: 17px; padding: 8px 20px; }
.alp-header-telicon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-brand); color: #fff; }
.alp-header-telicon .alp-icon { width: 24px; height: 24px; }

/* ファーストビュー */
.alp-hero { background: linear-gradient(180deg, var(--c-cyan-soft) 0%, var(--c-bg) 100%); padding: 40px 0 56px; }
.alp-hero .alp-inner { display: grid; gap: 32px; }
.alp-eyebrow { display: inline-block; font-size: 16px; font-weight: 700; color: var(--c-purple); background: var(--c-purple-soft); padding: 2px 14px; border-radius: 999px; margin-bottom: 16px; }
.alp-h1 { font-size: clamp(30px, 7.6vw, 46px); line-height: 1.4; font-weight: 700; margin-bottom: 20px; }
.alp-h1 span { display: block; }
.alp-hero-lead { margin-bottom: 24px; }
.alp-badges { display: grid; gap: 10px; margin-bottom: 28px; }
.alp-badge { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 17px; line-height: 1.5; }
.alp-badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-cyan-soft); color: var(--c-brand); flex: none; }
.alp-badge-icon .alp-icon { width: 22px; height: 22px; }
.alp-hero-media { border-radius: 20px; overflow: hidden; }

/* 画像の差し替え枠（プレビュー用） */
.alp-ph { display: flex; align-items: center; justify-content: center; text-align: center; background: repeating-linear-gradient(45deg, #E7EEE9, #E7EEE9 12px, #EEF3EF 12px, #EEF3EF 24px); color: var(--c-text-sub); font-size: 14px; line-height: 1.6; padding: 12px; }
.alp-ph--hero { aspect-ratio: 4 / 3; }

/* 写真 */
.alp-photo { width: 100%; height: auto; border-radius: var(--radius-card); object-fit: cover; }
.alp-photo--4x3 { aspect-ratio: 4 / 3; }
.alp-photo--wide { aspect-ratio: 16 / 9; }
.alp-split { display: grid; gap: 24px; align-items: center; }
.alp-card--photo { overflow: hidden; }
.alp-card-photo { display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 20px; aspect-ratio: 3 / 2; object-fit: cover; }
.alp-local-photo { margin: 0 auto 32px; max-width: 960px; }
.alp-closing-photo { margin: 0 auto 32px; max-width: 900px; }
.alp-hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.alp-voice-avatar { width: 88px; height: 88px; flex: none; }

/* お悩み */
.alp-worries { display: grid; gap: 10px; margin-bottom: 28px; }
.alp-worries li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--c-line); }
.alp-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: var(--c-brand); color: #fff; }
.alp-check .alp-icon { width: 16px; height: 16px; }
.alp-callout { background: var(--c-coral-soft); border-radius: var(--radius-card); padding: 20px 24px; font-weight: 700; font-size: 20px; line-height: 1.6; text-align: center; }

/* 自費リハとは */
.alp-about-body p + p { margin-top: 12px; }
.alp-goals-label { font-weight: 700; margin: 28px 0 12px; }
.alp-goals { display: grid; gap: 10px; }
.alp-goals li { background: #fff; border: 2px solid var(--c-coral); border-radius: 999px; padding: 10px 20px; font-weight: 700; text-align: center; }

/* カード共通 */
.alp-cards { display: grid; gap: 16px; }
.alp-card { background: var(--c-card); border-radius: var(--radius-card); border: 1px solid var(--c-line); padding: 24px; }
.alp-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.alp-num { font-size: 28px; font-weight: 700; color: var(--c-coral); font-family: var(--font-round); line-height: 1; }
.alp-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-cyan-soft); color: var(--c-brand); flex: none; }
.alp-card-icon .alp-icon { width: 28px; height: 28px; }
.alp-card p { color: var(--c-text-sub); }

/* 福岡の安心 */
.alp-local-lead { font-weight: 700; margin-bottom: 32px; }

/* セラピスト例 */
.alp-therapist { display: flex; flex-direction: column; gap: 14px; }
.alp-therapist-head { display: flex; align-items: center; gap: 14px; }
.alp-therapist-avatar { position: relative; flex: none; width: 72px; height: 72px; }
.alp-therapist-avatar svg { display: block; width: 72px; height: 72px; }
.alp-therapist-label { position: absolute; right: -4px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-purple); color: #fff; font-family: var(--font-round); font-weight: 700; font-size: 15px; border: 2px solid #fff; }
.alp-therapist-job { font-weight: 700; font-size: 18px; line-height: 1.5; }
.alp-therapist-career { font-size: 15px; color: var(--c-text-sub); line-height: 1.5; }
.alp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.alp-tags li { font-size: 15px; background: var(--c-bg-tint); border-radius: 999px; padding: 2px 12px; }
.alp-therapist-msg { font-size: 17px; }
.alp-price { border-top: 1px dashed var(--c-line); padding-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 16px; line-height: 1.7; }
.alp-price dt { color: var(--c-text-sub); }
.alp-price dd { font-weight: 700; }

/* ご利用者様の声 */
.alp-voice { display: flex; gap: 16px; align-items: flex-start; }
.alp-voice-who { font-size: 15px; color: var(--c-text-sub); margin: 4px 0 8px; }

/* 実績 */
.alp-stats { text-align: center; background: #fff; border-radius: var(--radius-card); border: 1px solid var(--c-line); padding: 32px 20px; }
.alp-stats-value { font-size: clamp(40px, 11vw, 60px); font-weight: 700; color: var(--c-purple); line-height: 1.2; }
.alp-stats-label { font-size: 22px; font-weight: 700; }

/* 流れ */
.alp-flow { display: grid; gap: 16px; counter-reset: step; }
.alp-flow li { position: relative; background: #fff; border-radius: var(--radius-card); border: 1px solid var(--c-line); padding: 20px 20px 20px 84px; }
.alp-flow li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--c-brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.alp-flow-step { display: block; font-size: 14px; color: var(--c-brand); font-weight: 700; letter-spacing: 0.08em; }

/* 対応エリア */
.alp-areas { display: grid; gap: 12px; }
.alp-area { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--c-line); padding: 18px 20px; }
.alp-area dt { font-weight: 700; color: var(--c-purple); margin-bottom: 4px; }
.alp-area dd { line-height: 1.8; }

/* FAQ */
.alp-faq { display: grid; gap: 12px; }
.alp-faq-item { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--c-line); }
.alp-faq-q { margin: 0; font-size: inherit; }
.alp-faq-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 64px; padding: 14px 20px; background: none; border: 0; border-radius: var(--radius-card);
  font: inherit; font-weight: 700; color: var(--c-text); cursor: pointer;
}
.alp-faq-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: 16px; }
.alp-faq-mark--a { background: var(--c-cta); }
.alp-faq-label { flex: 1; }
.alp-faq-toggle { flex: none; width: 24px; height: 24px; position: relative; }
.alp-faq-toggle::before, .alp-faq-toggle::after { content: ""; position: absolute; left: 3px; right: 3px; top: 11px; height: 2px; background: var(--c-text); transition: transform .2s ease; }
.alp-faq-toggle::after { transform: rotate(90deg); }
.alp-faq-btn[aria-expanded="true"] .alp-faq-toggle::after { transform: rotate(0deg); }
.alp-faq-a { display: flex; gap: 12px; padding: 0 20px 18px; }
.alp-faq-a[hidden] { display: none; }

/* フォーム（Contact Form 7 の出力に合わせる） */
.alp-form-box { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--c-line); padding: 28px 20px; max-width: 760px; margin: 0 auto; }
.alp-form .alp-field { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.alp-form .alp-label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.alp-req, .alp-opt { flex: none; white-space: nowrap; display: inline-block; font-size: 13px; line-height: 1.6; padding: 0 8px; border-radius: 4px; font-weight: 700; }
.alp-req { background: var(--c-cta); color: #fff; }
.alp-opt { background: #E8ECEF; color: var(--c-text-sub); }
.alp-help { font-size: 15px; color: var(--c-text-sub); margin: -4px 0 8px; }
.alp-form .wpcf7-form-control-wrap { display: block; }
.alp-form input[type="text"], .alp-form input[type="tel"], .alp-form input[type="email"], .alp-form select, .alp-form textarea {
  width: 100%; min-height: 56px; padding: 12px 14px;
  font: inherit; font-size: 18px; color: var(--c-text);
  background: #fff; border: 2px solid #8A8499; border-radius: 10px;
}
.alp-form textarea { min-height: 140px; line-height: 1.7; }
.alp-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-text) 50%), linear-gradient(135deg, var(--c-text) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.alp-form input:focus, .alp-form select:focus, .alp-form textarea:focus { border-color: var(--c-focus); outline: 3px solid rgba(27, 95, 191, 0.25); outline-offset: 0; }
.alp-form .alp-choices { display: grid; gap: 10px; }
.alp-form .alp-choices .wpcf7-list-item { display: block; margin: 0; }
.alp-form .alp-choices label, .alp-form .wpcf7-acceptance label {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
  border: 2px solid var(--c-line); border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.5;
}
.alp-form .alp-choices label:has(input:checked) { border-color: var(--c-brand); background: var(--c-cyan-soft); font-weight: 700; }
.alp-form input[type="radio"], .alp-form input[type="checkbox"] { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--c-brand); }
.alp-form .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; }
.alp-form .wpcf7-not-valid-tip { display: block; color: #B3261E; font-size: 15px; font-weight: 700; margin-top: 6px; }
.alp-form .wpcf7-not-valid { border-color: #B3261E !important; }
.alp-form .alp-submit { text-align: center; }
.alp-form .alp-submit .alp-btn, .alp-form input[type="submit"].alp-btn { width: 100%; max-width: 420px; }
.alp-form .wpcf7-spinner { display: block; margin: 12px auto 0; }
.alp-form .wpcf7-response-output { margin: 20px 0 0 !important; padding: 14px 16px !important; border-radius: 10px; font-weight: 700; }
.alp-form .alp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alp-form-status { margin: 20px 0 0; padding: 14px 16px; border-radius: 10px; font-weight: 700; line-height: 1.7; }
.alp-form-status--ok { border: 2px solid var(--c-brand); background: var(--c-cyan-soft); }
.alp-form-status--ng { border: 2px solid #B3261E; background: var(--c-coral-soft); }
.alp-form-after { text-align: center; margin-top: 20px; font-size: 16px; color: var(--c-text-sub); }

/* 締め */
.alp-closing { background: var(--c-coral-soft); text-align: center; }
.alp-closing .alp-cta-pair { max-width: 720px; margin: 28px auto 0; }

/* フッター */
.alp-footer { background: #3A3150; color: #E9EEF2; padding: 48px 0 120px; font-size: 15px; line-height: 1.9; }
.alp-footer a { color: #fff; }
.alp-notices { margin-bottom: 24px; }
.alp-notices li { position: relative; padding-left: 1.2em; }
.alp-notices li::before { content: "※"; position: absolute; left: 0; }
.alp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0; }
.alp-footer-links a { display: inline-block; padding: 8px 0; }

/* スマホ固定バー */
.alp-fixbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--c-line); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(0); transition: transform .2s ease;
}
.alp-fixbar[data-hidden="true"] { transform: translateY(110%); }
.alp-fixbar .alp-btn { min-height: 60px; padding: 6px 8px; font-size: 17px; width: 100%; }
.alp-fixbar .alp-btn--tel .alp-btn-main { font-size: 17px; }
.alp-fixbar .alp-btn--tel .alp-btn-sub { font-size: 12px; }


/* タブレット以上 */
@media (min-width: 768px) {
  .alp { font-size: 18px; }
  .alp-fixbar { display: none; }
  .alp-footer { padding-bottom: 48px; }
  .alp-header-actions { display: flex; }
  .alp-header-telicon { display: none; }
  .alp-cta-pair { grid-template-columns: 1fr 1fr; }
  .alp-worries { grid-template-columns: 1fr 1fr; }
  .alp-goals { grid-template-columns: repeat(3, 1fr); }
  .alp-cards--3 { grid-template-columns: repeat(3, 1fr); }
  .alp-cards--2 { grid-template-columns: 1fr 1fr; }
  .alp-areas { grid-template-columns: 1fr 1fr; }
  .alp-flow { grid-template-columns: 1fr 1fr; }
  .alp-form-box { padding: 40px; }
}
@media (min-width: 1000px) {
  .alp-hero { padding: 56px 0 72px; }
  .alp-hero .alp-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .alp-hero .alp-cta-pair { grid-template-columns: 1fr; max-width: 480px; }
  .alp-hero-media img { aspect-ratio: 4 / 3; }
  .alp-split { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .alp-hero--noimg .alp-inner { grid-template-columns: 1fr; max-width: 820px; }
  .alp-cards--therapists { grid-template-columns: repeat(3, 1fr); }
  .alp-flow { grid-template-columns: repeat(4, 1fr); }
  .alp-flow li { padding: 84px 20px 20px; }
}
@media (max-width: 767px) {
  .alp { font-size: 17px; --space-section: 56px; }
  .alp-voice { flex-direction: column; }
  .alp-voice-avatar { width: 72px; height: 72px; }
  .alp-hero-media { order: -1; }
}
/* reCAPTCHA のバッジ（画面右下に固定表示）が、スマホの固定バーのボタンに重ならないよう上に逃がす */
@media (max-width: 767px) {
  .grecaptcha-badge { bottom: 96px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .alp *, .alp *::before, .alp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
