/* Approved B composition; mobile keeps the headline and actions within the small viewport. */
.comparison-page .photo-hero.hero-b {
  height: 100svh; min-height: 660px; max-height: 1100px;
  padding: 0; background: #faf6ed; color: #1c2327;
}
.hero-b .photo-hero-picture { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.hero-b .photo-hero-background { position: absolute; inset: 0; object-fit: cover; object-position: 50% 50%; animation: none; filter: brightness(1.13) contrast(.96) saturate(1.03); }
.hero-b .photo-hero-picture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #faf6edcc 0%, #faf6ed9e 18%, #faf6ed26 30%, transparent 40%); pointer-events: none; }
.hero-b .b-title {
  position: absolute; top: 16%; left: 7.6%; margin: 0;
  display: flex; flex-direction: row-reverse; align-items: flex-start; gap: .32em;
  font: 600 min(4.55vw, 7.3svh, 78px)/1.3 'Noto Serif JP', serif;
  letter-spacing: .04em; color: #171d22;
}
.hero-b .b-title span { display: block; writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap; }
.hero-b .b-title span + span { margin-top: .9em; }
.hero-b .b-content { position: absolute; top: 61.8%; left: 3.5%; width: 390px; max-width: 35%; }
.hero-b .b-signature { display: flex; align-items: center; gap: 14px; margin: 0; color: #fff; font: 600 13px/1.5 'DM Sans', sans-serif; letter-spacing: .13em; text-shadow: 0 1px 5px #37404540; }
.hero-b .b-signature::before { content: ''; width: 35px; height: 1px; flex: 0 0 auto; background: currentColor; }
.hero-b .b-service, .hero-b .b-lead { font-family: 'Noto Serif JP', serif; font-weight: 600; }
.hero-b .b-service { margin: 21px 0 0; font-size: clamp(14px, 1.35vw, 19px); line-height: 1.7; letter-spacing: .045em; white-space: nowrap; }
.hero-b .b-lead { margin: 13px 0 0; font-size: clamp(13px, 1.12vw, 16px); line-height: 1.8; letter-spacing: .045em; }
.hero-b .photo-hero-book { display: flex; justify-content: center; width: 100%; max-width: 350px; min-height: 58px; margin-top: 18px; padding: 9px 16px; gap: 18px; color: #1d365a; background: #fffcf4d9; border: 1px solid #304f85; box-shadow: none; }
.hero-b .action-copy { flex: 0 1 auto; min-width: 0; }
.hero-b .action-copy strong { font: 600 15px/1.5 'Noto Serif JP', serif; letter-spacing: .04em; white-space: nowrap; }
.hero-b .action-arrow { width: 34px; height: 34px; background: #304f85; }
.hero-b .action-arrow svg { width: 20px; height: 20px; stroke-width: 1.3; }
.hero-b .photo-hero-book:hover { background: #fffdf9; box-shadow: 0 5px 18px #21345013; }
.hero-b .b-scroll { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 44px; color: #253449; }
.hero-b .b-scroll span { font: 500 8px/1.5 'DM Sans', sans-serif; letter-spacing: .26em; }
.hero-b .b-scroll svg { width: 20px; height: 35px; fill: none; stroke: currentColor; stroke-width: .8; overflow: visible; animation: scroll-invitation 2.8s ease-in-out infinite; }
.hero-b .b-scroll .scroll-arrow-glow { stroke: #fff6c9; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 18 100; filter: drop-shadow(0 0 2px #fff2b8); opacity: 0; animation: scroll-light 2.8s ease-in-out infinite; }
@keyframes scroll-invitation {
  0%, 100% { transform: translateY(-2px); opacity: .7; }
  25% { opacity: 1; }
  70% { transform: translateY(4px); opacity: 1; }
  85% { transform: translateY(6px); opacity: 0; }
  86% { transform: translateY(-2px); opacity: 0; }
}
@keyframes scroll-light {
  0% { stroke-dashoffset: 20; opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  85%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
.hero-b .hero-place { right: 3.5%; bottom: 4%; margin: 0; color: #27312f; font-size: 8px; letter-spacing: .22em; text-shadow: none; }
.hero-b a:focus-visible { outline: 3px solid #234ee8; outline-offset: 5px; }
.comparison-page.photo-fv-active .site-header:not(.scrolled) .brand img { filter: none; }
.comparison-page.photo-fv-active .site-header:not(.scrolled) .menu-toggle { background: #fffcf3e8; border-color: transparent; }
.comparison-page.photo-fv-active .site-header:not(.scrolled) .menu-toggle span { background: #1c2a3d; }
@media (min-width: 801px) and (max-height: 730px) {
  .hero-b .b-title { top: 15%; font-size: min(4.55vw, 48px); }
  .hero-b .b-content { top: 58%; }
  .hero-b .b-service { margin-top: 15px; font-size: 14px; }
  .hero-b .b-lead { margin-top: 9px; font-size: 13px; }
  .hero-b .photo-hero-book { min-height: 54px; margin-top: 14px; }
  .hero-b .b-scroll { bottom: 2%; gap: 4px; }
  .hero-b .b-scroll svg { height: 27px; }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .hero-b .b-content { max-width: 37%; }
  .hero-b .photo-hero-book { max-width: 320px; gap: 14px; padding: 9px 12px; }
  .hero-b .action-copy strong { font-size: 14px; }
}
@media (max-width: 800px) {
  .comparison-page .photo-hero.hero-b { height: 100vh; height: 100svh; min-height: 0; max-height: none; }
  .hero-b .photo-hero-background { top: calc(50% + 8px); bottom: auto; height: 100%; max-height: 158vw; transform: translateY(-50%); object-position: 52% center; mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); }
  .hero-b .photo-hero-picture::after { background: linear-gradient(to bottom, #faf6edcf 0%, #faf6edb8 20%, transparent 35%, transparent 64%, #faf6edeb 80%, #faf6ed 100%); }
  .hero-b .b-title { top: clamp(112px, 17svh, 144px); left: 6%; right: 6%; flex-direction: row; justify-content: center; gap: .08em; font-size: clamp(26px, 8.3vw, 44px); line-height: 1.3; letter-spacing: .025em; }
  .hero-b .b-title span { writing-mode: horizontal-tb; }
  .hero-b .b-title span + span { margin-top: 0; }
  .hero-b .b-content { display: contents; }
  .hero-b .b-signature { display: none; }
  .hero-b .b-service { position: absolute; top: clamp(86px, 13svh, 114px); left: 6%; right: 6%; text-align: center; font-size: clamp(11px, 3vw, 15px); margin: 0; line-height: 1.5; letter-spacing: .08em; }
  .hero-b .b-lead { position: absolute; bottom: calc(122px + env(safe-area-inset-bottom, 0px)); left: 6%; right: 6%; text-align: center; font-size: clamp(13px, 3.5vw, 16px); margin: 0; line-height: 1.7; letter-spacing: .035em; }
  .hero-b .photo-hero-book { position: absolute; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); left: 6%; right: 6%; width: auto; max-width: none; min-height: 52px; margin: 0; padding: 8px 14px; gap: 16px; background: #fffcf3f2; }
  .hero-b .action-copy strong { font-size: clamp(13px, 3.8vw, 16px); letter-spacing: .025em; }
  .hero-b .action-arrow { width: 34px; height: 34px; }
  .hero-b .b-scroll { left: 50%; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); flex-direction: row; align-items: center; justify-content: center; min-height: 36px; min-width: 90px; gap: 10px; }
  .hero-b .b-scroll svg { width: 12px; height: 25px; }
  .hero-b .hero-place { display: none; }
}
@media (max-width: 800px) and (max-height: 600px) {
  .hero-b .b-title { top: 104px; font-size: clamp(25px, 7.8vw, 36px); }
  .hero-b .b-service { top: 80px; font-size: 11px; }
  .hero-b .b-lead { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); font-size: 12px; line-height: 1.5; }
  .hero-b .photo-hero-book { bottom: calc(48px + env(safe-area-inset-bottom, 0px)); min-height: 46px; padding: 6px 12px; gap: 12px; }
  .hero-b .action-arrow { width: 32px; height: 32px; }
  .hero-b .b-scroll { bottom: calc(4px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-b .reset-action, .hero-b .action-arrow, .hero-b .action-arrow svg { transition: none; }
  .hero-b .b-scroll svg { animation: none; transform: none; opacity: 1; }
  .hero-b .b-scroll .scroll-arrow-glow { animation: none; display: none; }
}

/* Approved desktop centered composition. */
@media(min-width:801px){
 .hero-b .b-title{left:19%;transform:translateX(-50%);gap:.20em;}
 .hero-b .b-content{left:19%;transform:translateX(-50%);width:320px;max-width:32%;text-align:center;}
 .hero-b .b-signature{justify-content:center;font-size:11px;letter-spacing:.14em;gap:10px;}
 .hero-b .b-signature::before{width:24px;}
 .hero-b .b-service{font-size:17px;letter-spacing:.015em;}
 .hero-b .b-lead{font-size:15px;line-height:1.8;}
 .hero-b .photo-hero-book{width:310px;max-width:100%;margin:18px auto 0;gap:14px;}
 .hero-b .action-copy strong{font-size:14px;}
}
