/* 11/15: 配信前の打ち合わせ・プラン別の案内・法定表記の分離 */
#safety-heading { font-size: clamp(24px, 3vw, 40px); letter-spacing: 0; }
#safety-heading .line { display: inline-block; }
#safety .phrase, .apply-plan-content .phrase, .legal-page .phrase,
.header-cta .phrase, .btn .phrase, .footer-links .phrase {
  display: inline-block;
  white-space: nowrap;
}
.spb-right { align-items: baseline; }
.closing-wordmark { width: 100%; align-self: center; }
.closing-wordmark img {
  width: 100%; height: auto; border: 0; border-radius: 0;
  background: none; box-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.28)) drop-shadow(0 -1px 0 rgba(90,30,0,.35));
}
#apply { overflow-anchor: none; }
.apply-summary { position: relative; min-width: 0; }
.apply-plan-content { display: flow-root; }
.apply-plan-content .sec-title { margin-top: 0; }
.apply-plan-content .mc-estimate { font-size: 28px; color: var(--orange); }
.apply-plan-content .mc-price-row { flex-wrap: wrap; }
.apply-plan-content .mc-terms { margin-bottom: 20px; }
.apply-plan-measure {
  position: absolute; top: 0; left: 0; width: 100%;
  visibility: hidden; pointer-events: none; min-height: 0 !important;
}
.site-footer .footer-inner { grid-template-columns: auto 1fr; align-items: end; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; }
.footer-links a { color: #8290a6; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.footer-copyright { margin: 14px 0 0; text-align: right; color: #8290a6; font-size: 13px; }
.legal-content { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; text-align: left; }
.legal-content h1 { margin: 0 0 36px; font-size: 28px; line-height: 1.5; }
.legal-content h2 { margin: 32px 0 10px; font-size: 20px; }
.legal-content p, .legal-content dd { margin: 0; line-height: 1.9; }
.legal-content dl { margin: 0; }
.legal-content dl > div { padding: 22px 0; border-bottom: 1px solid var(--line-navy); }
.legal-content dt { margin-bottom: 8px; font-weight: 700; }
.legal-content a { text-decoration: underline; overflow-wrap: anywhere; }
.legal-date { margin-top: 36px !important; }
@media (max-width: 1024px) and (min-width: 768px) {
  .closing-grid { grid-template-columns: 1.15fr .85fr; }
}
@media (max-width: 767px) {
  #safety-heading { font-size: clamp(18px, 5.05vw, 24px); }
  #safety-heading .line { display: block; }
  .closing-wordmark { grid-row: 1; width: 70%; margin: 0 auto; }
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { flex-direction: column; align-items: flex-end; gap: 12px; }
  .legal-content { padding: 40px 24px 56px; }
  .legal-content h1 { font-size: 24px; }
}
/* 12:14 印6: フッターの法定表記は下線つきの小さいリンク（担当の追い直し） */
.site-footer .footer-links a, .site-footer .footer-links a .phrase { text-decoration: underline !important; text-decoration-color: rgba(130,144,166,.7) !important; text-underline-offset: 3px; }
/* 12:14 印1: 開封メールの入れ物が 0px になり幅によって見えなかった＝右の紙の帯の高さを最初の画面に合わせる */
@media (min-width: 768px) {
  .hero-stage .hero-ranks { top: 0 !important; bottom: auto !important; height: 100% !important; width: auto !important; aspect-ratio: 373 / 724; }
  .hero-stage .hero-openmail { width: clamp(150px, 13vw, 210px); }
}
@media (min-width: 768px) {
  .hero-stage .hero-ranks { width: calc(var(--hero-h, 727px) * 373 / 724) !important; min-width: 300px; }
  .hero-stage .hero-openmail { max-width: none !important; }
}
/* 封筒は 1〜5 の右の空き・4〜5 の高さ（hero-visual は動きで transform が付き、入れ物の基準になる） */
@media (min-width: 768px) {
  .hero-stage .hero-ranks { inset: auto !important; right: clamp(-90px, -4vw, -20px) !important; top: clamp(10px, 2vw, 40px) !important; width: clamp(160px, 15vw, 240px) !important; height: auto !important; aspect-ratio: auto !important; min-width: 0; }
  .hero-stage .hero-openmail { position: static !important; display: block; width: 100% !important; transform: rotate(-6deg) !important; }
}
/* 封筒を最初の画面の右端基準へ移した（hero-stage の直下） */
.hero-mailspot { display: none; }
@media (min-width: 768px) {
  .hero-mailspot { display: block; position: absolute; right: clamp(70px, 7vw, 120px); top: 54%; width: clamp(170px, 15vw, 230px); pointer-events: none; z-index: 2; }
  .hero-mailspot img { display: block; width: 100%; height: auto; max-width: none; transform: rotate(-6deg); filter: drop-shadow(0 14px 18px rgba(80,25,0,.28)); }
}
.site-footer .footer-links a, .site-footer .footer-links a .phrase { color: #b4bfd0 !important; font-size: 13px; }
.footer-copyright { color: #9aa6b8 !important; }
/* 11/15 23:07 東さん「右側のメールはなし」 */
.hero-mailspot { display: none !important; }
