/* ==========================================================================
   rh-common.css — 下層ヒーロー／パンくず／ページ見出し／共通CTA帯／見つけよう行／LINE・Instagram
   ========================================================================== */

/* ヘッダー（固定）の分だけ本文を下げる */
html .rh-main { padding-top: 0; }

/* ---------- 下層ヒーロー（Figma 355:5806）---------- */
html .rh-hero {
  position: relative; height: 341px; overflow: hidden;
  display: grid; place-items: center; padding-top: var(--rh-header-h);
  color: var(--rh-white); text-align: center;
}
html .rh-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html .rh-hero--none { height: var(--rh-header-h) !important; background: none; }
html .rh-hero--none > *, html .rh-hero--none::after { display: none; }
html .rh-hero::after { content: ""; position: absolute; inset: 0; background: var(--rh-black); mix-blend-mode: multiply; opacity: .3; }
html .rh-hero__en {
  position: absolute; left: 0; right: 0; top: calc(50% + 47px); z-index: 1;
  font-family: var(--rh-en-serif); font-size: 130px; line-height: 1; letter-spacing: 6.5px;
  opacity: .15; white-space: nowrap; transform: translateY(-50%);
}
html .rh-hero__ja {
  position: relative; z-index: 2; margin-top: 40px;
  font-family: var(--rh-serif); font-size: 28px; font-weight: 600; letter-spacing: 1.4px;
}

/* ---------- パンくず ---------- */
html .rh-crumbs ol { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 0; padding-top: 14px; padding-bottom: 14px; }
html .rh-crumbs li { flex: none; color: var(--rh-gray); font-size: 12px; line-height: 1.6; white-space: nowrap; }
html .rh-crumbs li:last-child { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
html .rh-crumbs li + li::before { content: "＞"; color: var(--rh-blue); margin: 0 8px; font-size: 11px; }
html .rh-crumbs a:hover { color: var(--rh-blue); }

/* ---------- ページ見出し H1（Figma 355:5895）---------- */
html .rh-pagehead { padding-top: 72px; }
html .rh-pagehead__en { color: var(--rh-blue); font-family: var(--rh-en-sans); font-size: 12px; font-weight: 300; line-height: 18px; letter-spacing: 1.9px; }
html .rh-pagehead__title { padding-top: 14px; font-family: var(--rh-serif); font-size: 34px; font-weight: 500; line-height: 57.8px; letter-spacing: 1.53px; color: var(--rh-text); }
html .rh-pagehead__lead { padding-top: 14px; color: var(--rh-gray); font-size: 16px; line-height: 26px; }
/* フォーム系（10/4）：大見出しはヒーローと重なるので外し、パンくずの下に説明だけ。電話の見出しは英字ラベルなし */
html .rh-pagehead--lead { padding-top: 16px; }
html .rh-pagehead--lead .rh-pagehead__lead { padding-top: 0; }
html .rh-pagehead--tel { padding-top: 48px; }
html .rh-pagehead--tel .rh-pagehead__title { padding-top: 0; font-size: 26px; line-height: 1.6; }

/* セクション見出し（ページ内の H2。H1 と同じ型の小さい版） */
html .rh-sechead { margin-bottom: 32px; }
html .rh-sechead__en { color: var(--rh-blue); font-family: var(--rh-en-sans); font-size: 12px; font-weight: 300; letter-spacing: 1.9px; }
html .rh-sechead__title { margin-top: 10px; font-family: var(--rh-serif); font-size: 28px; font-weight: 500; line-height: 1.6; letter-spacing: 1.2px; color: var(--rh-text); }
html .rh-sechead__lead { margin-top: 8px; color: var(--rh-gray); font-size: 15px; line-height: 1.75; }

/* ---------- 横長リンクカード（Figma 394:5736）---------- */
html .rh-linkcard {
  position: relative; display: flex; align-items: center; gap: 27px;
  height: 86px; padding-right: 20px; overflow: hidden;
  background: var(--rh-soft); border: .5px solid var(--rh-line-blue); border-radius: var(--rh-r-btn);
  color: var(--rh-dark); transition: border-color .2s;
}
html .rh-linkcard:hover { border-color: var(--rh-blue); }
html .rh-linkcard img { width: 120px; height: 86px; object-fit: cover; flex: none; }
html .rh-linkcard span { flex: 1; font-size: 16px; font-weight: 700; line-height: 30.6px; letter-spacing: .68px; white-space: nowrap; }
html .rh-linkcard small { display: block; font-family: var(--rh-en-sans); font-size: 10px; font-weight: 300; line-height: 10px; }

/* ---------- 共通CTA帯（Figma 407:7302）---------- */
html .rh-cta {
  position: relative; overflow: hidden; padding: 42px 0 48px;
  background: url(../img/photo/cta-bg.jpg) center / cover no-repeat;
  color: var(--rh-white); text-align: center;
}
html .rh-cta::before { content: ""; position: absolute; inset: 0; background: var(--rh-blue); opacity: .8; }
html .rh-cta > .rh-inner { position: relative; }
html .rh-cta__kicker { font-family: var(--rh-serif); font-size: 16px; letter-spacing: .8px; line-height: 15px; }
html .rh-cta__ghost {
  position: absolute; left: 0; right: 0; top: 64px;
  font-family: var(--rh-en-serif); font-size: 100px; line-height: 1; letter-spacing: 5px;
  opacity: .1; pointer-events: none; white-space: nowrap;
}
html .rh-cta__title { margin-top: 32px; font-family: var(--rh-serif); font-size: 32px; font-weight: 600; letter-spacing: 1.6px; line-height: 1.4; }
html .rh-cta__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 29px; margin-top: 58px; }
html .rh-cta__card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  height: 353px; padding-top: 249px; border-radius: var(--rh-r-card);
  background: var(--rh-white); color: var(--rh-link); overflow: hidden;
  transition: background-color .2s;
}
html .rh-cta__card:hover { background: #e8f1fa; }   /* 浮く動きはやめて、背景の色だけ */
html .rh-cta__photo { position: absolute; top: 0; left: 0; width: 100%; height: 208px; object-fit: cover; }
html .rh-cta__icon { position: absolute; top: 181px; left: 50%; transform: translateX(-50%); }
html .rh-cta__lead { color: var(--rh-card-lead); font-size: 12px; font-weight: 500; line-height: 22px; }
html .rh-cta__name { font-size: 24px; font-weight: 700; line-height: 1.5; }
html .rh-cta__card .rh-arrow-circle { position: absolute; right: 15px; bottom: 11px; }
html .rh-cta__tel {
  display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
  margin: 50px 0 0 3px; padding: 19px 45px 19px 48px;
  background: var(--rh-white); box-shadow: 6px 6px 6px rgba(0, 0, 0, .16);
  color: var(--rh-black);
}
html .rh-cta__tel-title { display: flex; align-items: center; gap: 36px; color: var(--rh-blue); font-size: 24px; font-weight: 700; }
html .rh-cta__tel-nums { display: flex; gap: 35px; }
html .rh-cta__tel-nums a { display: inline-flex; align-items: center; gap: 14px; font-family: var(--rh-en-sans); font-size: 21.5px; font-weight: 500; letter-spacing: .86px; }
html .rh-cta__tel-nums a span { font-family: var(--rh-sans); }
html .rh-cta__tel-nums span { font-size: 15.8px; font-weight: 400; letter-spacing: 0; }
html .rh-cta__tel-hours { font-size: 12px; letter-spacing: .6px; }

/* ---------- 見つけよう行＋LINE・Instagram ---------- */
html .rh-find { padding: 80px 0 100px; }
html .rh-find__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
html .rh-find__title { color: #233b50; font-size: 16px; font-weight: 600; letter-spacing: .24px; }
html .rh-find__links { display: flex; gap: 17px; }
html .rh-find__links .rh-linkcard:first-child { width: 351px; }
html .rh-find__links .rh-linkcard:last-child { width: 383px; }

html .rh-sns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
html .rh-sns__item {
  position: relative; display: flex; align-items: center; height: 143px; overflow: hidden;
  color: var(--rh-white);
  background-size: cover; background-position: center;
}
html .rh-sns__item--line { background-image: linear-gradient(rgba(76, 199, 100, .7), rgba(76, 199, 100, .7)), url(../img/photo/sns-line-bg.jpg); }
html .rh-sns__item--insta {
  background-image:
    linear-gradient(90deg, rgba(107, 32, 245, .5) 0%, rgba(217, 46, 190, .5) 37.5%, rgba(234, 96, 60, .5) 65.4%, rgba(247, 208, 71, .5) 100%),
    url(../img/photo/sns-insta-1.jpg), url(../img/photo/sns-insta-2.jpg), url(../img/photo/sns-insta-3.jpg);
  background-size: 100% 100%, 33.4% 100%, 33.4% 100%, 33.4% 100%;
  background-position: 0 0, 0 50%, 50% 50%, 100% 50%;
  background-repeat: no-repeat;
}
/* スマホの画面（デザインはスマホ枠のマスク。ここでは角丸の枠で近似） */
html .rh-sns__phone {
  position: absolute; left: 6.5%; top: 14px; width: 92px; height: 190px;
  border: 4px solid #111; border-radius: 16px; overflow: hidden; background: #fff;
}
html .rh-sns__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
html .rh-sns__body { margin-left: 32%; text-shadow: 2px 2px 6px rgba(0, 0, 0, .2); }
html .rh-sns__lead { display: block; font-size: 16px; }
html .rh-sns__lead::before { content: "＼ "; }
html .rh-sns__lead::after { content: " ／"; }
html .rh-sns__name { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-family: var(--rh-serif); font-size: 24px; letter-spacing: 1.2px; }
html .rh-sns__logo { width: 44px; height: 44px; padding: 8px; border-radius: 7px; border: .5px solid #fff; background: var(--rh-line-green); }
html .rh-sns__item--insta .rh-sns__logo { background: #fff; }
html .rh-sns__item .rh-arrow-circle { position: absolute; right: 20px; bottom: 9px; background: #fff; color: #63c778; }
html .rh-sns__item--insta .rh-arrow-circle { color: #ea33b4; }

/* ==========================================================================
   SP
   ========================================================================== */
@media (max-width: 1100px) {
  html .rh-cta__tel { gap: 20px 32px; }
  html .rh-find__row { flex-direction: column; align-items: flex-start; }
  html .rh-sns__body { margin-left: 30%; }
  html .rh-sns__name { font-size: 20px; }
}
@media (max-width: 767px) {
  html .rh-hero { height: 220px; }
  html .rh-hero__en { font-size: 64px; letter-spacing: 3px; top: calc(50% + 34px); }
  html .rh-hero__ja { font-size: 22px; margin-top: 24px; }
  html .rh-pagehead { padding-top: 40px; }
  html .rh-pagehead__title { font-size: 26px; line-height: 1.6; }
  html .rh-pagehead__lead { font-size: 14px; line-height: 1.8; }
  html .rh-pagehead--lead { padding-top: 8px; }
  html .rh-pagehead--tel { padding-top: 32px; }
  html .rh-pagehead--tel .rh-pagehead__title { font-size: 20px; }
  html .rh-sechead__title { font-size: 22px; }

  html .rh-cta { padding: 36px 0 40px; }
  html .rh-cta__ghost { font-size: 60px; top: 56px; }
  html .rh-cta__title { font-size: 22px; margin-top: 24px; }
  html .rh-cta__cards { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  html .rh-cta__card { height: auto; padding: 0 0 18px; flex-direction: row; align-items: center; gap: 12px; text-align: left; }
  html .rh-cta__photo { position: static; width: 104px; height: 92px; }
  html .rh-cta__icon { display: none; }
  html .rh-cta__card > span:not(.rh-arrow-circle) { display: block; }
  html .rh-cta__card { display: grid; grid-template-columns: 104px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 0; }
  html .rh-cta__photo { grid-row: 1 / 3; }
  html .rh-cta__lead { align-self: end; font-size: 11px; line-height: 1.5; padding-right: 40px; }
  html .rh-cta__name { align-self: start; font-size: 20px; padding-right: 40px; }
  html .rh-cta__card .rh-arrow-circle { right: 12px; bottom: auto; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; }
  html .rh-cta__tel { flex-direction: column; gap: 10px; margin-top: 24px; padding: 18px 16px; }
  html .rh-cta__tel-title { gap: 10px; font-size: 18px; }
  html .rh-cta__tel-nums { flex-direction: column; gap: 4px; }
  html .rh-cta__tel-nums a { font-size: 20px; }

  html .rh-find { padding: 44px 0 56px; }
  html .rh-find__links { flex-direction: column; width: 100%; }
  html .rh-find__links .rh-linkcard:first-child,
  html .rh-find__links .rh-linkcard:last-child { width: 100%; }
  html .rh-linkcard { gap: 16px; }
  html .rh-linkcard img { width: 96px; }
  html .rh-sns { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  html .rh-sns__item { height: 112px; }
  html .rh-sns__phone { left: 12px; width: 70px; height: 150px; }
  html .rh-sns__body { margin-left: 104px; }
  html .rh-sns__lead { font-size: 12px; }
  html .rh-sns__name { font-size: 16px; gap: 8px; margin-top: 6px; }
  html .rh-sns__logo { width: 32px; height: 32px; padding: 5px; }
}

/* タブレット（768px〜。I3）：ページ末の「見つけよう、これからの住まい。」のカードが固定の幅で右にはみ出していた → 2枚で幅を分ける。
   LINE・Instagram の帯は 2列だと文字が写真に重なるので 1023px までは1列に */
@media (min-width: 768px) and (max-width: 1100px) {
  html .rh-find__links { width: 100%; }
  html .rh-find__links .rh-linkcard:first-child, html .rh-find__links .rh-linkcard:last-child { flex: 1 1 0; width: auto; min-width: 0; }
  html .rh-find__links .rh-linkcard { gap: 14px; }
  html .rh-find__links .rh-linkcard img { width: 96px; }
  html .rh-find__links .rh-linkcard span { font-size: 15px; letter-spacing: .3px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html .rh-sns { grid-template-columns: 1fr; gap: 16px; }
}
/* タブレット：お問い合わせの3枚のカード。一言が2行になると「お問い合わせ」が右下の矢印に重なっていた → 高さを中身に合わせ、矢印の分を下に空ける（清水 10/22） */
@media (min-width: 768px) and (max-width: 1100px) {
  html .rh-cta__card { height: auto; padding: 249px 14px 52px; text-align: center; }
  html .rh-cta__name { font-size: 21px; }
}

/* ページ専用の CTA 帯（法人・リフォーム。rh/rh-cta.php。清水 10/22）：お問い合わせ先が1つなので、横長のカード1枚。写真は左、文字は右 */
html .rh-cta__cards--one { grid-template-columns: 1fr; max-width: 820px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) {
  html .rh-cta__card.rh-cta__card--wide { height: 208px; padding: 0 76px 0 calc(42% + 48px); align-items: flex-start; justify-content: center; text-align: left; }
  html .rh-cta__card--wide .rh-cta__photo { width: 42%; height: 100%; }
  html .rh-cta__card--wide .rh-cta__icon { top: 50%; left: 42%; transform: translate(-50%, -50%); }
  html .rh-cta__card--wide .rh-cta__name { font-size: 24px; }
  html .rh-cta__card--wide .rh-arrow-circle { right: 24px; bottom: auto; top: 50%; transform: translateY(-50%); }
  html .rh-cta--business .rh-cta__tel, html .rh-cta--reform .rh-cta__tel { max-width: 820px; margin-left: auto; margin-right: auto; row-gap: 6px; }
}
