:root {
  --focus: #b64920;
}

/* 相談につながる表示を全ページで統一 */
.siteHeader .tel,
.bigTel,
.btn[href^="tel:"] {
  white-space: nowrap;
  word-break: keep-all;
}

.taskHero .actions .btn[href^="tel:"] {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 310px;
  line-height: 1.25;
}

.taskHero .actions .btn[href^="tel:"] small {
  display: block;
  margin: 5px 0 0;
  white-space: normal;
  text-align: center;
}

.homeFacts span {
  max-width: 15em;
  margin-inline: auto;
}

/* 専用相談フォーム */
.contactChoices.contactDedicated {
  grid-template-columns: minmax(300px, .72fr) minmax(540px, 1.28fr);
  align-items: start;
}

.contactFormCard {
  background: #fff !important;
}

.contactFormCard > .lead {
  margin-bottom: 28px;
}

.formNotice {
  display: none;
  border: 2px solid var(--g);
  background: var(--p);
  color: var(--d);
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 22px;
  font-size: 18px;
  font-weight: 800;
}

.formNotice.isVisible {
  display: block;
}

.seniorForm {
  display: grid;
  gap: 22px;
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span,
.consent span {
  color: var(--d);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.required {
  display: inline-block;
  color: #fff;
  background: var(--focus);
  border-radius: 4px;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 15px;
}

.seniorForm input,
.seniorForm select,
.seniorForm textarea {
  width: 100%;
  border: 2px solid #879b92;
  background: #fff;
  border-radius: 8px;
  padding: 15px 16px;
  color: #162c25;
  font-size: 18px;
  line-height: 1.55;
}

.seniorForm textarea {
  min-height: 190px;
  resize: vertical;
}

.seniorForm input:focus,
.seniorForm select:focus,
.seniorForm textarea:focus {
  outline: 4px solid rgba(182, 73, 32, .2);
  border-color: var(--focus);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent input {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

.consent a {
  color: var(--g);
  text-decoration: underline;
}

.submitBtn {
  border: 0;
  border-radius: 8px;
  background: var(--o);
  color: #fff;
  min-height: 70px;
  padding: 16px 24px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.submitBtn:hover,
.submitBtn:focus-visible {
  filter: brightness(.92);
}

.formHelp {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media screen and (max-width: 950px) {
  .contactChoices.contactDedicated {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .taskHero .actions .btn[href^="tel:"] {
    min-width: 0;
    width: 100%;
  }

  .contactChoices.contactDedicated {
    padding-top: 46px;
  }

  .formGrid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .field > span,
  .consent span,
  .seniorForm input,
  .seniorForm select,
  .seniorForm textarea {
    font-size: 18px;
  }

  .submitBtn {
    width: 100%;
    font-size: 19px;
  }
}

/* ms-senior.net release 20260826-2 */
.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.formNotice.isError{border-color:#a83b2c;background:#fff1ed;color:#75271d}
.infoCards strong{color:var(--g);font-size:21px;line-height:1.6}
@media screen and (max-width:600px){.infoCards strong{font-size:20px}}

/* final balance 20260826-3 */
:root {
  --content-wide: 1320px;
  --content-reading: 900px;
  --card-radius: 16px;
}

html,
body {
  overflow-x: hidden;
}

body {
  color: #20332c;
  background: #fff;
}

.siteHeader {
  min-height: 94px;
  height: auto;
  padding-top: 13px;
  padding-bottom: 13px;
}

.siteHeader nav {
  gap: clamp(16px, 1.5vw, 26px);
}

.siteHeader nav a,
.siteHeader .tel {
  white-space: nowrap;
}

.section:not(.pale),
.popular {
  max-width: var(--content-wide);
}

.section.pale {
  padding-left: max(calc((100% - 1220px) / 2), 6vw);
  padding-right: max(calc((100% - 1220px) / 2), 6vw);
}

.heading.center,
.introBand,
.familyLead,
.promiseLead {
  max-width: var(--content-reading);
  margin-left: auto;
  margin-right: auto;
}

.heading > p:last-child,
.familyLead > p,
.promiseLead > p {
  max-width: 48em;
  margin-left: auto;
  margin-right: auto;
}

.heading h2,
.familyLead h2,
.promiseLead h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

.taskHero {
  grid-template-columns: minmax(0, 54.5%) minmax(0, 45.5%);
}

.taskHero > div {
  padding-left: max(6vw, calc((100vw - 1500px) / 2));
  padding-right: clamp(34px, 4vw, 72px);
}

.taskHero .lead {
  max-width: 38em;
}

.popularGrid,
.infoCards,
.linkCards,
.trustFeatureGrid,
.prices,
.activityGrid,
.storyGrid {
  align-items: stretch;
}

.popularGrid > a,
.linkCards > a,
.trustFeatureGrid > a,
.services article,
.infoCards article,
.prices article,
.activityGrid article,
.storyGrid article {
  height: 100%;
}

.popularGrid > a > div,
.linkCards > a > div,
.services article > div,
.activityGrid article > div,
.storyGrid article > div {
  display: flex;
  flex-direction: column;
}

.popularGrid b,
.linkCards b {
  margin-top: auto;
  padding-top: 12px;
}

.infoCards article,
.trustFeatureGrid > a,
.policyGrid article,
.compareGrid article,
.contactChoices > article,
.familyNotice,
.promiseList li {
  border-radius: var(--card-radius);
}

.infoCards article {
  padding: 32px 30px;
}

.infoCards h3,
.linkCards h3,
.popularGrid h3,
.trustFeatureGrid h3 {
  margin-bottom: 10px;
}

.cta > p:not(.tag) {
  max-width: 44em;
  margin-left: auto;
  margin-right: auto;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 4px solid rgba(182, 73, 32, .3);
  outline-offset: 4px;
}

@media screen and (max-width: 1150px) {
  .taskHero {
    grid-template-columns: 1fr;
  }

  .taskHero > img {
    order: -1;
    height: clamp(330px, 42vw, 440px);
  }

  .taskHero > div {
    padding: 46px 7vw 62px;
  }
}

@media screen and (max-width: 700px) {
  .section,
  .popular,
  .section.pale,
  .faqGroup.pale {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section,
  .popular {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .siteHeader {
    min-height: 88px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand > img {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .brand span {
    min-width: 0;
    font-size: 18px;
    line-height: 1.35;
  }

  .brand small {
    font-size: 15px;
    line-height: 1.4;
  }

  .taskHero > img,
  .pageHero > img {
    height: clamp(240px, 68vw, 310px);
  }

  .taskHero > div,
  .pageHero > div {
    padding: 30px 20px 48px;
  }

  .taskHero h1,
  .pageHero h1,
  .hero h1 {
    font-size: clamp(31px, 8.5vw, 37px);
    line-height: 1.48;
  }

  .taskHero h1 br,
  .pageHero h1 br,
  .hero h1 br,
  .heading h2 br,
  .seoFeature h2 br,
  .familyFeature h2 br,
  .cta h2 br {
    display: none;
  }

  .heading h2,
  .familyLead h2,
  .promiseLead h2,
  .darkPanel h2,
  .caseStories h2 {
    font-size: clamp(28px, 7.7vw, 34px);
    line-height: 1.52;
  }

  .tag {
    font-size: 16px;
  }

  .lead,
  .pageHero > div > p:last-child {
    font-size: 19px;
    line-height: 1.8;
  }

  .infoCards article,
  .trustFeatureGrid > a,
  .compareGrid article,
  .contactChoices > article,
  .policyGrid article {
    padding: 26px 20px;
  }

  .faq summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 12px;
    padding: 20px 2px;
  }

  .faq summary::after {
    margin-left: 0;
    text-align: center;
  }

  .faq details > div {
    padding: 16px 8px 24px;
  }
}

@media screen and (max-width: 430px) {
  .popularGrid > a {
    grid-template-columns: 1fr;
  }

  .popularGrid img {
    height: 200px;
    min-height: 0;
  }

  .popularGrid > a > div {
    padding: 20px;
  }

  .homeFacts {
    grid-template-columns: 1fr 1fr;
    padding: 22px 12px;
  }

  .homeFacts > div {
    border-right: 0;
    border-bottom: 1px solid #ffffff2d;
    padding: 14px 8px;
  }

  .homeFacts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .homeFacts strong {
    font-size: 21px;
    line-height: 1.45;
  }

  .taskHero .familyLine {
    font-size: 17px;
  }

  .cta {
    padding: 64px 20px;
  }
}

@media screen and (max-width: 380px) {
  .brand span {
    font-size: 17px;
  }

  .brand small {
    font-size: 14px;
  }

  .taskHero h1,
  .pageHero h1,
  .hero h1 {
    font-size: 30px;
  }

  .btn,
  .submitBtn {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* additional photo collection 20260826-4 */
.photoPreviewGrid,
.supportPhotoGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.photoPreviewGrid {
  margin-top: 38px;
}

.photoPreviewGrid figure,
.supportPhotoGrid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.photoPreviewGrid img,
.supportPhotoGrid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photoPreviewGrid figcaption,
.supportPhotoGrid figcaption {
  padding: 16px 18px 18px;
  color: var(--d);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.65;
}

.galleryGroup + .galleryGroup {
  padding-top: 28px;
}

.galleryGroup .subTitle {
  margin-top: 0;
  margin-bottom: 24px;
}

.imageNotice {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 20px 22px;
  border-left: 5px solid var(--o);
  background: var(--c);
  font-size: 17px;
}

@media screen and (max-width: 950px) {
  .photoPreviewGrid,
  .supportPhotoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 600px) {
  .photoPreviewGrid,
  .supportPhotoGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .photoPreviewGrid figcaption,
  .supportPhotoGrid figcaption {
    padding: 15px 17px 18px;
    font-size: 18px;
  }

  .galleryGroup + .galleryGroup {
    padding-top: 10px;
  }
}

/* 2026-09-12 ボタンの最後の1〜2文字だけが次の行に落ちるのを防ぐ */
.actions{flex-wrap:wrap}
.actions .btn:not([href^="tel:"]){white-space:nowrap}


/* EMS-SENIOR-NAV-20260914 ここから（戻すときは、このブロックと各HTMLの同名マーカー行を削除する） */
.navToggle{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.navBtn{display:none}
@media screen and (max-width:1150px){
  .siteHeader{position:relative;flex-wrap:wrap;align-items:center;padding-right:78px!important}
  .navBtn{display:flex;position:absolute;top:21px;right:16px;flex-direction:column;justify-content:center;gap:5px;box-sizing:border-box;width:50px;height:46px;margin:0;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
  .navBtn span{display:block;height:2px;border-radius:2px;background:#3b3b3b;transition:transform .18s ease,opacity .18s ease}
  .navToggle:focus-visible ~ .navBtn{outline:3px solid #f0a500;outline-offset:2px}
  .navToggle:checked ~ .navBtn span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .navToggle:checked ~ .navBtn span:nth-child(2){opacity:0}
  .navToggle:checked ~ .navBtn span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .siteHeader nav{display:none}
  .navToggle:checked ~ nav{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%;flex-basis:100%;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
  .navToggle:checked ~ nav a{display:block;padding:14px 10px;border-radius:10px;background:#faf7f2;text-align:center;font-weight:700;line-height:1.45;white-space:normal}
  .navToggle:checked ~ .tel{display:flex!important;flex-basis:100%;justify-content:center;margin-top:10px}
}
@media screen and (max-width:520px){
  .siteHeader{padding-right:72px!important}
  .navBtn{top:22px;right:14px;width:46px;height:44px;padding:0 11px}
}
@media screen and (max-width:430px){
  .navToggle:checked ~ nav{grid-template-columns:1fr}
}
@media print{.navBtn,.navToggle{display:none!important}}
/* EMS-SENIOR-NAV-20260914 ここまで */


/* EMS-SENIOR-HERO-20260914 ここから（戻すときはこのブロックを削除する）
   症状: /outside-care-insurance/ で390px時にヒーローが右に33pxはみ出して切れていた
   原因: .pageHero の 1fr トラックの自動最小値(min-content)を画像が押し広げ、トラックが408pxになっていた
   対処: minmax(0,1fr) にして自動最小値を0にする。他ページは元から375pxなので影響なし */
@media screen and (max-width:950px){
  .pageHero{grid-template-columns:minmax(0,1fr)}
  .pageHero>div{min-width:0}
  .pageHero>img{min-width:0;max-width:100%}
}
/* EMS-SENIOR-HERO-20260914 ここまで */
