/* ==========================================================================
   rh-materials.css — 資料請求（materials.html／WP の /request/）
   デザイン：Figma「両備ホームズ_資料請求」01_資料請求（64:8。最終デザイン 10/8。SP 390px）
   スマホを先に書き、PC は同じ見た目のまま広げる（768px〜：幅を広げる、1024px〜：カード2列・横並び）
   ========================================================================== */
html .rh-matlp { --m-ink: #242424; --m-blue: #0054a6; --m-navy: #1b3f8b; --m-line: #b8c2d6; color: var(--m-ink); }
html .rh-matlp img { display: block; max-width: 100%; }
html .rh-matsp { display: inline; }
/* 文字の下の太い帯（マーカー） */
html .rh-matmark { background: linear-gradient(transparent 62%, #e7d3b0 62%, #e7d3b0 92%, transparent 92%); padding: 0 2px; }
html .rh-matmark--line { background: linear-gradient(transparent 55%, rgba(6, 199, 85, .3) 55%, rgba(6, 199, 85, .3) 95%, transparent 95%); }

/* ---------- 「無料 資料を受け取る」（丸い「1分で入力完了」が左に重なる） ---------- */
html .rh-matgo { position: relative; display: flex; align-items: center; width: 326px; max-width: 100%; height: 74px; margin: 0 auto; }
html .rh-matgo__time {
  position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px;
  border: 3px solid var(--m-blue); border-radius: 50%; background: #fff; color: var(--m-blue);
  font-size: 12px; font-weight: 700; line-height: 16px; text-align: center;
}
html .rh-matgo__btn {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 65px); height: 67px; margin-left: 65px; padding: 0 20px;
  border-radius: 4px; background: var(--m-blue); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1.12px; line-height: 27px; transition: background-color .2s;
}
html .rh-matgo__btn img { width: 20px; height: 20px; margin-left: auto; transition: transform .2s; }
html .rh-matgo__free { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 30px; background: #f7f7f7; color: #333; font-size: 12px; font-weight: 700; line-height: 14px; letter-spacing: .48px; }
@media (hover: hover) { html .rh-matgo:hover .rh-matgo__btn { background: #00428a; } html .rh-matgo:hover .rh-matgo__btn img { transform: translateX(3px); } }

/* ---------- ファーストビュー ---------- */
html .rh-matfv { padding: 0 15px; }
html .rh-matfv__box { display: flex; flex-direction: column; align-items: center; gap: 23px; overflow: hidden; padding: 60px 17px 40px; border-radius: 4px; background: #fcf7f2; text-align: center; }
html .rh-matfv__title { display: flex; flex-direction: column; gap: 4px; font-size: 22px; font-weight: 700; line-height: 36px; letter-spacing: 1.1px; }
html .rh-matfv__line { white-space: nowrap; }
html .rh-matfv__lead { margin-top: -8px; font-size: 14px; font-weight: 700; line-height: 28px; letter-spacing: .28px; }
html .rh-matfv__books { width: 361px; max-width: calc(100% + 20px); height: auto; }   /* 3冊を1枚に切り抜いた画像（背景なし） */

/* ---------- LINE でも届く ---------- */
html .rh-matline { display: flex; flex-direction: column; align-items: center; margin-top: 0; padding: 40px 0; background: #dbf2e4; }
html .rh-matline__row { display: flex; align-items: center; justify-content: center; gap: 17px; padding: 20px; margin-bottom: -7px; }
html .rh-matline__phone { position: relative; width: 104px; height: 135px; flex: none; }
html .rh-matline__phone img { position: absolute; left: 33px; top: 0; width: 71px; height: 135px; border-radius: 4px; }
html .rh-matline__star {
  position: absolute; left: 0; top: -26px; display: grid; place-items: center; width: 60px; height: 60px;
  background: url(../img/materials/line-star.svg) no-repeat center / 57px 59px; color: #06c755; font-size: 14px; font-weight: 700; line-height: 17px; text-align: center;
}
html .rh-matline__body { display: flex; flex-direction: column; gap: 10px; }
html .rh-matline__title { display: flex; align-items: center; gap: 5px; height: 40px; font-size: 18px; font-weight: 700; letter-spacing: .72px; color: #333; }
html .rh-matline__title img { width: 52px; height: 51px; margin-top: -11px; }
html .rh-matline__list { display: flex; flex-direction: column; gap: 3px; }
html .rh-matline__list li, html .rh-matknow__list li, html .rh-matcard__items > span {
  position: relative; padding: 7px 14px 7px 27px; border-radius: 4px; background: #fafafa; font-size: 12px; font-weight: 700; line-height: 19px;
}
html .rh-matline__list li { width: 174px; }
html .rh-matline__list li::before, html .rh-matknow__list li::before, html .rh-matcard__items > span::before {
  content: ""; position: absolute; left: 14px; top: 13px; width: 6px; height: 6px; background: #06c755;
}
html .rh-matline__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 271px; max-width: calc(100% - 40px); padding: 20px; white-space: nowrap;
  border-radius: 4px; background: #06c755; color: #fff; font-size: 14px; font-weight: 700; line-height: 27px; letter-spacing: 1.12px; transition: filter .2s;
}
html .rh-matline__btn img { width: 20px; height: 20px; flex: none; transition: transform .2s; }
@media (hover: hover) { html .rh-matline__btn:hover { filter: brightness(.94); } html .rh-matline__btn:hover img { transform: translateX(3px); } }

/* ---------- 資料請求で、わかること ---------- */
html .rh-matknow { position: relative; height: 394px; overflow: hidden; background: url(../img/materials/know-bg.jpg) center / cover no-repeat; }
html .rh-matknow__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; height: 100%;
  background: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
html .rh-matknow__title { font-size: 22px; font-weight: 700; line-height: 39px; letter-spacing: 1.1px; text-align: center; }
html .rh-matknow__list { display: flex; flex-direction: column; gap: 3px; width: 255px; }
html .rh-matknow__list li { padding: 10px 14px 10px 27px; background: #fff; font-size: 13px; }
html .rh-matknow__list li::before { top: 16px; background: var(--m-blue); }

/* ---------- Step の見出し ---------- */
html .rh-matstep { display: flex; align-items: center; justify-content: center; gap: 22px; }
html .rh-matstep__no {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 92px; height: 92px; flex: none;
  border-radius: 50%; background: var(--m-blue); color: #fff; font-family: var(--rh-en-sans); font-size: 42px; font-weight: 300; line-height: 29px; letter-spacing: 2.1px;
}
html .rh-matstep__no span { font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: .6px; }
html .rh-matstep__title { display: flex; flex-direction: column; align-items: center; font-size: 22px; font-weight: 700; line-height: 34px; letter-spacing: 1.1px; white-space: nowrap; }
html .rh-matstep__title small { margin-top: -2px; font-size: 15px; font-weight: 500; line-height: 1.7; letter-spacing: 0; }

/* ---------- Step1 資料のカード ---------- */
html .rh-matsel { padding: 50px 15px 50px; }
html .rh-matcards { display: grid; gap: 13px; margin: 13px 0 0; padding: 0; border: 0; }
html .rh-matcard {
  --c: var(--m-blue);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 21px; overflow: hidden; padding: 17px 0 19px;
  border: 2px solid #a4a4a4; border-radius: 16px; background: #fffefb; cursor: pointer; transition: border-color .2s, background-color .2s;
}
html .rh-matcard--red { --c: #8c0000; }
html .rh-matcard--green { --c: #058f00; }
html .rh-matcard--gold { --c: #c58e21; }
html .rh-matcard:has(input:checked) { border-color: var(--m-blue); }
html .rh-matcard:has(input:focus-visible) { outline: 3px solid var(--m-blue); outline-offset: 2px; }
@media (hover: hover) { html .rh-matcard:hover { border-color: var(--m-blue); background: #f7faff; } }
/* 写真 */
html .rh-matcard__pics { display: flex; flex-direction: column; align-items: center; width: 318px; max-width: calc(100% - 40px); }
html .rh-matcard__main { width: 100%; height: auto; aspect-ratio: 318 / 198; }   /* 切り抜き済み（背景なし）の画像。Figma の枠に合わせて書き出し済み */
html .rh-matcard__main--fit { width: 86.5%; }
html .rh-matcard__set { width: 275px; max-width: 100%; height: auto; margin-top: 4px; }
html .rh-matcard__book { width: 300px; max-width: 100%; height: auto; }
/* 名前と選ぶ箱 */
html .rh-matcard__head { display: flex; flex-direction: column; align-items: center; padding: 0 12px; }
html .rh-matcard__box { flex: none; width: 26px; height: 26px; border: 2px solid #a4a4a4; border-radius: 2px; background: #fff; transition: border-color .2s, background-color .2s; }
html .rh-matcard input:checked ~ .rh-matcard__head .rh-matcard__box { border-color: var(--m-blue); background: var(--m-blue) url(../img/materials/check-on.svg) no-repeat center / 26px 26px; }
html .rh-matcard__name { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; line-height: 39px; letter-spacing: 1px; white-space: nowrap; }
html .rh-matcard__catch { display: inline-flex; align-items: center; height: 28px; padding: 0 9px; border-radius: 4px; background: var(--c); color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
html .rh-matcard__desc { position: relative; width: 306px; max-width: calc(100% - 34px); padding-top: 21px; font-size: 15px; font-weight: 500; line-height: 1.7; }
html .rh-matcard__desc::before { content: ""; position: absolute; left: 50%; top: 0; width: 20px; height: 1px; margin-left: -10px; background: #8a8a8a; }
html .rh-matcard__items { display: flex; flex-direction: column; gap: 3px; margin-top: -5px; padding: 0 17px; }
html .rh-matcard__items > span { font-size: 12px; color: #494949; }
html .rh-matcard__items > span::before { background: var(--c); }

/* ---------- Step2 フォーム ---------- */
html .rh-matform { padding-top: 90px; background: #f0f0f0; }
html .rh-matform__band { margin-top: 30px; padding: 32px 16px 24px; background: #f3f5f9; }
/* フォームの中身はほかのフォームと同じ（rh-form.css の .rh-formcard など） */
html .rh-matform .rh-formcard { max-width: 720px; }
html .rh-matlinebox { margin-top: 14px; padding: 16px; border-radius: 4px; background: #e9f8ef; font-size: 13px; line-height: 1.7; }
html .rh-matlinebox .rh-matline__btn { width: auto; max-width: none; margin-top: 12px; }
html .rh-matafter { max-width: 720px; margin: 0 auto; }
html .rh-matafter:not(:has(section:not([hidden]))) { display: none; }

/* ---------- はじめての方へ ---------- */
html .rh-matsafe { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 60px 15px 30px; background: rgba(255, 255, 255, .6); text-align: center; }
html .rh-matsafe__en { position: relative; padding-bottom: 19px; color: var(--m-blue); font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: .7px; }
html .rh-matsafe__en::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 2px; margin-left: -10px; background: var(--m-ink); }
html .rh-matsafe__title { margin-top: -11px; font-size: 22px; font-weight: 700; line-height: 36px; letter-spacing: 1.1px; }
html .rh-matsafe__list { display: flex; flex-direction: column; gap: 4px; width: 294px; text-align: left; }
html .rh-matsafe__list li { display: flex; align-items: center; justify-content: center; gap: 9px; height: 108px; padding: 10px; border-radius: 3px; background: #f7f7f7; }
html .rh-matsafe__icon { display: grid; place-items: center; flex: none; width: 55px; height: 55px; border-radius: 10px; background: #fff; }
html .rh-matsafe__icon img { width: 32px; height: 32px; }
html .rh-matsafe__list li > span:last-child { display: flex; flex-direction: column; gap: 2px; width: 178px; padding: 3px 5px; color: #5b6b60; font-size: 13px; font-weight: 500; line-height: 19px; }
html .rh-matsafe__list b { color: var(--m-ink); font-size: 16px; line-height: 22px; }
html .rh-matsafe .rh-matgo { margin-top: 0; }

/* ---------- SP の追従ボタン ---------- */
html .rh-matfloat {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: center; gap: 8px; height: 56px;
  border-radius: 6px; background: var(--m-blue, #0054a6); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 47, 99, .28); transition: opacity .2s, transform .2s;
}
html .rh-matfloat small { margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .5); font-size: 10px; font-weight: 500; }
html .rh-matfloat.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 767px) { html .rh-matfloat { display: flex; } }

/* ========================================================================== PC：同じ見た目のまま広げる */
@media (min-width: 768px) {
  html .rh-matsp { display: none; }
  html .rh-matfv { max-width: 1040px; margin: 40px auto 0; padding: 0 40px; }
  html .rh-matfv__box { gap: 32px; padding: 80px 40px 64px; }
  html .rh-matfv__title { font-size: 34px; line-height: 52px; letter-spacing: 1.7px; }
  html .rh-matfv__lead { font-size: 16px; line-height: 32px; }
  html .rh-matfv__books { width: 600px; max-width: 100%; }
  html .rh-matgo { width: 400px; height: 84px; }
  html .rh-matgo__time { width: 84px; height: 84px; font-size: 13px; }
  html .rh-matgo__btn { height: 72px; margin-left: 74px; width: calc(100% - 74px); padding-left: 36px; font-size: 16px; }

  html .rh-matline { margin-top: 64px; padding: 48px 0; }
  html .rh-matline__row { gap: 32px; }
  html .rh-matline__list li { width: 220px; font-size: 13px; }
  html .rh-matline__btn { width: 340px; }

  html .rh-matknow { height: 440px; }
  html .rh-matknow__title { font-size: 28px; }
  html .rh-matknow__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 640px; }
  html .rh-matknow__list li { padding: 14px 16px 14px 30px; font-size: 14px; }
  html .rh-matknow__list li::before { left: 16px; top: 21px; }

  html .rh-matsel { max-width: 1040px; margin: 0 auto; padding: 80px 40px 80px; }
  html .rh-matstep__no { width: 104px; height: 104px; }
  html .rh-matstep__title { font-size: 26px; }
  html .rh-matcards { margin-top: 32px; }
  html .rh-matform { padding-top: 80px; }
  html .rh-matform__band { padding: 40px 24px 64px; }

  html .rh-matsafe { padding: 80px 40px 64px; gap: 36px; }
  html .rh-matsafe__title { font-size: 26px; }
}
@media (min-width: 1024px) {
  html .rh-matfv__box { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 56px; text-align: left; }
  html .rh-matfv__box > .rh-matfv__title, html .rh-matfv__box > .rh-matfv__lead { width: 100%; text-align: center; }
  html .rh-matline__inner, html .rh-matline { flex-direction: row; justify-content: center; gap: 24px; }
  html .rh-matline__row { margin-bottom: 0; }
  html .rh-matcards { grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
  html .rh-matcard { height: 100%; }
  html .rh-matcard__items { width: 100%; max-width: 380px; padding: 0 17px; }
  html .rh-matsafe__list { flex-direction: row; gap: 16px; width: auto; }
  html .rh-matsafe__list li { width: 300px; }
}
