/* =========================================================
   B案:写真主役レイアウト
   共通の変数・フォント・アイコン・写真枠・企業フッター・追従電話バーは
   styles.css を読み込んで再利用し、このファイルにはB案固有のレイアウトだけを置く。
   ========================================================= */

/* 短いラベルのみ keep-all。overflow-wrap:anywhere は語中で割れる原因になるため併用しない
   (styles.css のA案側と同じ方針) */
.b-hero__hours, .b-cta__hours, .b-price-card__head,
.b-service__title, .b-flow__title {
  word-break: keep-all;
}

.b-section { padding: 72px 0; }
.b-section--tint { background: var(--grey-bg); }
.b-section__head { text-align: center; margin-bottom: 44px; }
.b-section__title {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}
.b-section__lead {
  font-size: 18px;
  color: var(--text);
  margin-top: 12px;
  line-height: 1.9;
}

/* ===== ヘッダー ===== */
.b-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--sky);
  padding: 12px 0;
}
.b-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.b-header__logo { font-size: 24px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.b-header__right { display: flex; align-items: center; gap: 16px; }
.b-header__note { font-size: 15px; font-weight: 700; color: var(--text); text-align: right; line-height: 1.5; }
.b-header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-cta); color: var(--white);
  font-size: 21px; font-weight: 700; text-decoration: none;
  padding: 10px 22px; min-height: 56px; border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
}

/* ===== ヒーロー(フルワイド写真の上に白カード) ===== */
.b-hero { position: relative; overflow: hidden; }
.b-hero__photo {
  position: absolute; inset: 0;
  border-radius: 0;
  border: none;
  /* ラベルは白カードと重ならないよう右上に寄せる */
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right;
  padding: 24px;
}
.b-hero__photo .photo-ph__label { font-size: 17px; }
.b-hero__inner { position: relative; z-index: 2; padding: 72px 0 96px; }
.b-hero__card {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 44px 44px 40px;
  /* 見出し「毎日の暮らしに、まごころサポート。」が1行に収まる幅を確保 */
  max-width: 760px;
  box-shadow: 0 12px 40px rgba(14,63,71,0.18);
}
.b-hero__eyebrow {
  display: inline-block;
  background: var(--navy); color: var(--white);
  font-size: 16px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.b-hero__title { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.45; margin-bottom: 18px; }
.b-hero__desc { font-size: 18px; color: var(--text); line-height: 2; margin-bottom: 28px; }
.b-hero__cta { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.b-hero__phone-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--orange-cta); color: var(--white);
  text-decoration: none; border-radius: 12px;
  padding: 18px 24px; min-height: 72px;
  box-shadow: 0 6px 20px rgba(179,92,0,0.35);
}
.b-hero__phone-btn .icon { width: 36px; height: 36px; stroke-width: 2; }
.b-hero__phone-label { font-size: 19px; font-weight: 700; display: block; }
.b-hero__phone-number { font-size: 32px; font-weight: 700; letter-spacing: 1px; line-height: 1.1; }
.b-hero__hours { font-size: 16px; color: var(--text); font-weight: 700; }
.b-hero__code { font-size: 15px; color: var(--text-light); }

/* ===== お困りごと(共感パート) ===== */
.b-worry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.b-worry {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(14,63,71,0.08);
}
.b-worry__photo { aspect-ratio: 4 / 3; border-radius: 0; border-width: 0 0 2px 0; }
.b-worry__photo .photo-ph__label { font-size: 14px; }
.b-worry__body { padding: 20px 20px 24px; }
.b-worry__text { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.7; }
.b-worry__note { font-size: 16px; color: var(--text); margin-top: 8px; line-height: 1.8; }
.b-worry-answer {
  margin-top: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
}

/* ===== 料金(前倒し配置・不透明感の排除) ===== */
.b-price-hero {
  background: var(--white);
  border: 3px solid var(--sky);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  margin-bottom: 32px;
}
.b-price-hero__label { font-size: 20px; font-weight: 700; color: var(--navy); }
.b-price-hero__figure {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 8px 0 12px; flex-wrap: nowrap;
}
.b-price-hero__time { font-size: 40px; font-weight: 700; color: var(--navy); }
.b-price-hero__yen { font-size: 48px; font-weight: 700; color: var(--orange-text); line-height: 1.05; }
.b-price-hero__unit { font-size: 28px; font-weight: 700; color: var(--orange-text); }
.b-price-hero__note { font-size: 17px; color: var(--text); }
.b-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-price-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(14,63,71,0.08); }
.b-price-card__head { padding: 16px 20px; font-size: 20px; font-weight: 700; text-align: center; }
.b-price-card__head--blue { background: var(--navy); color: var(--white); }
.b-price-card__head--tint { background: #DBF1F5; color: var(--blue-ink); }
.b-price-card__head--grey { background: var(--usu-grey); color: var(--text); }
.b-price-card__body { padding: 22px 22px 26px; }
.b-price-card__list { list-style: none; }
.b-price-card__list li {
  font-size: 17px; padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; gap: 10px; align-items: flex-start;
}
.b-price-card__list li::before { content: '✓'; color: var(--navy); font-weight: 700; flex-shrink: 0; }
.b-price-card__note { font-size: 15px; color: var(--text-light); margin-top: 14px; line-height: 1.8; }

/* ===== サービス(写真カード) ===== */
.b-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-service {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(14,63,71,0.08);
}
.b-service__photo { aspect-ratio: 16 / 10; border-radius: 0; border-width: 0 0 2px 0; }
.b-service__body { padding: 20px 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.b-service__icon {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: rgba(69,189,207,0.16); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.b-service__title { font-size: 20px; font-weight: 700; color: var(--navy); }
.b-service__desc { font-size: 16px; color: var(--text); margin-top: 4px; line-height: 1.8; }
.b-service-note {
  margin-top: 32px; text-align: center; font-size: 17px; color: var(--text);
  background: var(--white); border-radius: 12px; padding: 20px;
}

/* ===== ご利用の流れ(写真付き4ステップ) ===== */
.b-flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.b-flow { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(14,63,71,0.08); position: relative; }
.b-flow__photo { aspect-ratio: 16 / 10; border-radius: 0; border-width: 0 0 2px 0; }
.b-flow__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--navy); color: var(--white);
  font-size: 16px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.b-flow__body { padding: 18px 20px 22px; }
.b-flow__title { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 8px; }
.b-flow__desc { font-size: 16px; color: var(--text); line-height: 1.8; }
.b-flow__phone { color: var(--orange-text); font-weight: 700; font-size: 19px; }

/* ===== お客様の声 ===== */
.b-voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-voice {
  background: var(--white); border-radius: 16px; padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(14,63,71,0.08);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.b-voice__photo { width: 96px; height: 96px; border-radius: 50%; padding: 8px; margin-bottom: 16px; }
.b-voice__photo .photo-ph__label { font-size: 12px; line-height: 1.3; }
.b-voice__text { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.9; }
.b-voice__info { font-size: 15px; color: var(--text-light); margin-top: 14px; }
.b-voice__tag {
  display: inline-block; margin-top: 10px;
  background: rgba(69,189,207,0.16); color: var(--blue-ink);
  font-size: 15px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.b-voice-note { text-align: center; font-size: 15px; color: var(--text-light); margin: -28px 0 32px; }

/* ===== 採用 ===== */
.b-recruit { background: var(--navy); }
.b-recruit .container { display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; align-items: center; }
.b-recruit__title { font-size: 32px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.b-recruit__sub { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.b-recruit__desc { font-size: 17px; color: var(--white); line-height: 1.9; margin-bottom: 26px; }
/* 一括指定の background は background-color を透明に戻すため色を分ける */
.b-recruit__photo {
  aspect-ratio: 4 / 3;
  border-color: var(--white);
  background-color: #F4FBFC;
  background-image: repeating-linear-gradient(45deg, #F4FBFC, #F4FBFC 12px, #E6F5F7 12px, #E6F5F7 24px);
}
.b-recruit__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange-cta); color: var(--white);
  font-size: 19px; font-weight: 700; text-decoration: none;
  padding: 16px 28px; min-height: 60px; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===== 最終CTA ===== */
.b-cta { background: var(--orange-cta); padding: 60px 0; text-align: center; color: var(--white); }
.b-cta__lead { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.b-cta__sub { font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.b-cta__phone-link {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--white); text-decoration: none;
}
.b-cta__phone-link .icon { width: 48px; height: 48px; stroke-width: 2; }
.b-cta__phone { font-size: clamp(28px, 8.6vw, 60px); font-weight: 700; letter-spacing: 1px; line-height: 1.15; white-space: nowrap; }
.b-cta__hours { font-size: 19px; font-weight: 700; margin-top: 14px; }
.b-cta__code { font-size: 19px; font-weight: 700; margin-top: 6px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .b-worry-grid { grid-template-columns: repeat(2, 1fr); }
  .b-price-grid { grid-template-columns: 1fr; }
  .b-service-grid { grid-template-columns: repeat(2, 1fr); }
  .b-flow-grid { grid-template-columns: repeat(2, 1fr); }
  .b-voice-grid { grid-template-columns: 1fr; }
  .b-recruit .container { grid-template-columns: 1fr; }
  .b-recruit__photo { order: -1; aspect-ratio: 16 / 9; }
  .b-hero__card { max-width: none; }
}

@media (max-width: 768px) {
  .b-section { padding: 52px 0; }
  .b-section__title { font-size: 26px; }
  .b-header { padding: 10px 0; }
  .b-header .container { flex-wrap: nowrap; }
  .b-header__logo { font-size: 18px; letter-spacing: 0; }
  .b-header__note { display: none; }
  .b-header__phone { font-size: 19px; padding: 8px 12px; min-height: 48px; white-space: nowrap; gap: 6px; }
  .b-header__phone .icon { width: 20px; height: 20px; }
  .b-header__logo { font-size: 16px; }

  /* 写真枠のラベルがカードに隠れないよう、上に余白を確保してラベルは1行だけ出す */
  .b-hero__inner { padding: 72px 0 56px; }
  .b-hero__card { padding: 26px 20px 28px; border-radius: 16px; }
  .b-hero__title { font-size: 25px; }
  .b-hero__desc { font-size: 17px; }
  .b-hero__phone-number { font-size: 26px; }
  .b-hero__photo { padding: 14px; align-items: center; text-align: center; }
  .b-hero__photo .photo-ph__label { font-size: 14px; }
  .b-hero__photo .photo-ph__note { display: none; }

  .b-worry-grid { grid-template-columns: 1fr; }
  .b-worry-answer { font-size: 19px; padding: 24px 20px; }
  .b-price-hero { padding: 24px 18px; }
  .b-price-hero__yen { font-size: 40px; }
  .b-service-grid { grid-template-columns: 1fr; }
  .b-flow-grid { grid-template-columns: 1fr; }
  .b-cta__phone-link .icon { width: 32px; height: 32px; }
}

@media (max-width: 359px) {
  /* 320px級ではヘッダーをアイコンのみの丸ボタンにする */
  .b-header__phone { font-size: 0; padding: 0; width: 48px; justify-content: center; border-radius: 50%; }
  .b-header__phone .icon { width: 24px; height: 24px; }
  .b-header__logo { font-size: 15px; }
}
