.ymh-floating-contact,
body.page-id-55 .ymh-floating-contact { display: none; }
.ymh-floating-contact__phone-label,
.ymh-floating-contact__points,
.ymh-floating-contact__directory-note,
.ymh-floating-contact__directory { display: none; }
.ymh-floating-contact__ribbon { display: none; }
@media (min-width: 1000px) {
  .ymh-floating-contact { display: block; position: fixed; z-index: 90; right: 0; bottom: 80px; width: 320px; border: 1px solid #943419; border-radius: 10px; background: var(--ymh-gradient, linear-gradient(112deg, #913014, #be481c)); box-shadow: 0 6px 24px #1b223326; font-family: "Noto Sans JP", sans-serif; color: #333; }
  .ymh-floating-contact__panel { margin-left: 40px; padding: 24px 20px; background: #fff; border: 0; border-radius: 0 9px 9px 0; box-shadow: none; text-align: center; }
  .ymh-floating-contact__panel[hidden] { display: none; }
  .ymh-floating-contact .ymh-floating-contact__eyebrow { margin: 0 0 5px; font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: .04em; color: #444; }
  .ymh-floating-contact h2 { margin: 0 0 11px; font-family: "Noto Sans JP", sans-serif; font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: .04em; color: #333; }
  .ymh-floating-contact h2 span { color: #a63812; }
  .ymh-floating-contact__tags { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
  .ymh-floating-contact__tags span { padding: 3px 12px; background: #f1f2f5; color: #424957; font-size: 13px; font-weight: 700; letter-spacing: .06em; border-radius: 999px; }
  .ymh-floating-contact .ymh-floating-contact__phone { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent !important; box-shadow: none; color: #a8303a !important; text-decoration: none; }
  .ymh-floating-contact__phone strong { display: inline-block; padding: 0; background: transparent; color: #a8303a !important; font-family: "Roboto", sans-serif; font-size: 27px; font-weight: 700; line-height: 1.3; letter-spacing: -.03em; white-space: nowrap; }
  .ymh-floating-contact__phone .ymh-contact-icon { width: 21px; height: 21px; }
  .ymh-floating-contact .ymh-floating-contact__note { margin: 4px 0 13px; color: #444; font-size: 14px; font-weight: 500; line-height: 1.6; }
  .ymh-floating-contact .ymh-floating-contact__link { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 10px 16px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; transition: filter .2s, transform .2s; }
  .ymh-floating-contact__link + .ymh-floating-contact__link { margin-top: 10px; }
  .ymh-floating-contact__link--line { background: #078744; }
  .ymh-floating-contact__link--mail { background: linear-gradient(115deg, #8d2e11, #bd471a); }
  .ymh-floating-contact__link .ymh-contact-icon { width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; }
  .ymh-floating-contact__link > span:last-child { margin-left: auto; font-size: 22px; font-weight: 400; line-height: 1; }
  .ymh-floating-contact__link:hover { filter: brightness(1.12); transform: translateY(-1px); }
  .ymh-floating-contact .ymh-floating-contact__toggle { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 9px 0 0 9px; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; }
  .ymh-floating-contact__symbol { position: absolute; bottom: 24px; width: 10px; height: 10px; font-size: 0; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
  .ymh-floating-contact:not(.is-collapsed) .ymh-floating-contact__toggle::before { content: "閉じる"; position: absolute; bottom: 51px; writing-mode: vertical-rl; font-size: 18px; font-weight: 700; letter-spacing: .12em; }
  .ymh-floating-contact__reopen { display: none; }
  .ymh-floating-contact.is-collapsed { width: 42px; border: 0; border-radius: 10px 0 0 10px; }
  .ymh-floating-contact.is-collapsed .ymh-floating-contact__toggle { position: static; width: 42px; height: 150px; flex-direction: column; gap: 16px; padding: 18px 0; border-radius: 10px 0 0 10px; background: transparent; box-shadow: none; }
  .ymh-floating-contact.is-collapsed .ymh-floating-contact__reopen { display: block; writing-mode: vertical-rl; font-size: 18px; font-weight: 700; letter-spacing: .12em; }
  .ymh-floating-contact.is-collapsed .ymh-floating-contact__symbol { position: static; width: auto; height: auto; border: 0; font-size: 22px; transform: none; }
  .ymh-floating-contact a:focus-visible, .ymh-floating-contact button:focus-visible { outline: 3px solid #e68442; outline-offset: 4px; }
}
@media (max-width: 999px) {
  body:has(.ymh-floating-contact--footer-bar) .ymh-utility { display: none; }
  body:has(.ymh-floating-contact--footer-bar):not(.home) #header { margin-bottom: 0; }
  body.ymh-contact-footer-open { padding-bottom: 122px; }
  .ymh-floating-contact--footer-bar:not(.is-collapsed) { display: block; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; width: 100%; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid #e8e2dd; background: #fff; box-shadow: 0 -6px 22px #3020151c; color: #333; font-family: "Noto Sans JP", sans-serif; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 36px 58px; gap: 5px; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 8px 5px; border: 0; border-radius: 0; background: linear-gradient(to bottom, #f6ede6 0 36px, #fff 36px 100%); box-shadow: none; text-align: center; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__panel[hidden] { display: none; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; height: 36px; padding-right: 28px; color: #493a32; font-size: 10px; font-weight: 700; }
  .ymh-floating-contact__points span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; white-space: nowrap; }
  .ymh-floating-contact__points span + span { border-left: 1px solid #d8c9bd; }
  .ymh-floating-contact__points b { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%; background: #a63812; color: #fff; font-size: 10px; line-height: 1; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__eyebrow,
  .ymh-floating-contact--footer-bar h2,
  .ymh-floating-contact--footer-bar .ymh-floating-contact__tags,
  .ymh-floating-contact--footer-bar .ymh-floating-contact__note,
  .ymh-floating-contact--footer-bar .ymh-floating-contact__phone strong { display: none; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__phone { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 58px; padding: 4px 2px; border-radius: 3px; background: linear-gradient(115deg, #8d2e11, #bd471a); color: #fff; text-decoration: none; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__phone .ymh-contact-icon { width: 19px; height: 19px; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__phone-label { display: block; font-size: 9px; font-weight: 700; line-height: 1.2; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__link { grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 58px; padding: 4px 2px; border-radius: 3px; color: #fff; text-decoration: none; font-size: 9px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: filter .2s, transform .2s; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__link--mail { grid-column: 2; background: linear-gradient(115deg, #8d2e11, #bd471a); }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__link--line { grid-column: 3; background: #078744; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__link .ymh-contact-icon { width: 20px; height: 20px; flex: 0 0 20px; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__link > span:last-child { display: none; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__toggle { position: absolute; top: 4px; right: 5px; width: 20px; height: 20px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #595959; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__symbol { font-size: 17px; }
  .ymh-floating-contact--footer-bar .ymh-floating-contact__reopen { display: none; }
  .ymh-floating-contact--footer-bar.is-collapsed { display: block; left: auto; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .ymh-floating-contact--footer-bar.is-collapsed .ymh-floating-contact__toggle { position: static; width: auto; height: 40px; gap: 10px; padding: 0 16px; border-radius: 4px; background: linear-gradient(115deg, #8d2e11, #bd471a); box-shadow: 0 4px 14px #30201526; }
  .ymh-floating-contact--footer-bar.is-collapsed .ymh-floating-contact__reopen { display: inline; font-size: 12px; font-weight: 700; }
  .ymh-floating-contact--footer-bar a:focus-visible, .ymh-floating-contact--footer-bar button:focus-visible { outline: 3px solid #e68442; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) { .ymh-floating-contact .ymh-floating-contact__link { transition: none; } }
@media print { .ymh-floating-contact { display: none; } }

/* Give the phone number the space previously used by the urgency note. */
@media(min-width:1000px) {
 .ymh-floating-contact__panel { padding-inline:14px; }
 .ymh-floating-contact .ymh-floating-contact__phone { gap:4px; margin:8px 0 16px; }
 .ymh-floating-contact__phone strong { font-size:32px; }
 .ymh-floating-contact:not(.ymh-floating-contact--service-bar) .ymh-floating-contact__phone strong { font-family:inherit; font-size:16px; letter-spacing:0; }
 .ymh-floating-contact__phone .ymh-contact-icon { width:18px; height:18px; flex:0 0 18px; }
}

/* Desktop contact tab and a separate, always reachable page-top control. */
.ymh-reopen-desktop, .ymh-back-to-top { display:none; }
@media(min-width:1000px) {
 .ymh-reopen-desktop { display:inline; }
 .ymh-reopen-mobile { display:none; }
 body .ymh-floating-contact { bottom:112px; }
 body .ymh-floating-contact.is-collapsed { width:68px; border-radius:14px 0 0 14px; }
 body .ymh-floating-contact.is-collapsed .ymh-floating-contact__toggle { width:68px; height:260px; padding:28px 0; border-radius:14px 0 0 14px; }
 body .ymh-floating-contact.is-collapsed .ymh-floating-contact__reopen { font-size:21px; line-height:1.5; letter-spacing:.18em; }
 body .ymh-floating-contact.is-collapsed .ymh-floating-contact__symbol { display:none; }
 body .ymh-back-to-top { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; position:fixed; z-index:91; right:14px; bottom:22px; width:68px; height:68px; padding:6px 0 8px; border:0; border-radius:50%; background:#eeeef0; color:#bf451b; font:500 20px/1.1 'Oswald',sans-serif; box-shadow:0 3px 14px #24242414; cursor:pointer; }
 .ymh-back-to-top::before { content:''; width:13px; height:13px; border-top:2px solid currentColor; border-left:2px solid currentColor; transform:rotate(45deg); }
 body .ymh-back-to-top:hover { background:#e3e3e6; }
 .ymh-back-to-top:focus-visible { outline:3px solid #bf451b; outline-offset:4px; }
 body:has(.ymh-back-to-top) .ct-back-to-top { display:none; }
}
@media print { .ymh-back-to-top { display:none!important; } }

/* Hide both the open panel and its collapsed tab only at the homepage desktop CTA. */
@media (min-width:1000px) {
 body.home .ymh-floating-contact.is-home-cta-visible { display:none; }
}

.ymh-floating-contact .ymh-floating-contact__service-title {
  display: none;
  margin: 0;
  color: #292929;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 999px) {
  body.ymh-contact-footer-open.home { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  body.ymh-contact-footer-open.ymh-service-reading { padding-bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
  .ymh-floating-contact--home-bar .ymh-floating-contact__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 6px;
    padding: 10px 12px 8px;
    background: #fff;
  }
  .ymh-floating-contact--home-bar .ymh-floating-contact__panel :is(.ymh-floating-contact__phone, .ymh-floating-contact__link) { display: none; }
  .ymh-floating-contact--home-bar .ymh-floating-contact__directory-note {
    display: block;
    margin: 0;
    padding-inline: 28px;
    color: #46372f;
    font-size: clamp(11px, 3.1vw, 13px);
    font-weight: 700;
    line-height: 1.55;
  }
  .ymh-floating-contact--home-bar .ymh-floating-contact__directory {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2.5vw, 12px);
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 5px;
    background: var(--ymh-gradient, linear-gradient(112deg, #913014, #be481c));
    color: #fff;
    font-size: clamp(13px, 4.1vw, 16px);
    font-weight: 700;
    text-decoration: none;
  }
  .ymh-floating-contact__directory-icons { display: inline-flex; flex: none; gap: 4px; }
  .ymh-floating-contact__directory-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #fff;
  }
  .ymh-floating-contact__directory-icon--phone { color: var(--ymh-contact-phone-red, #a8303a); }
  .ymh-floating-contact__directory-icon--mail { color: var(--ymh-contact-email-blue, #24669a); }
  .ymh-floating-contact__directory .ymh-contact-icon { display: block; width: 17px; height: 17px; }
  .ymh-floating-contact__directory-arrow { flex: none; font-size: 21px; line-height: 1; }
  .ymh-floating-contact--home-bar:not(.is-collapsed) .ymh-floating-contact__toggle {
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
  }
  .ymh-floating-contact--service-bar .ymh-floating-contact__panel {
    grid-template-rows: auto auto;
    gap: 16px 5px;
    padding: 7px 8px 8px;
    background: #fff;
  }
  .ymh-floating-contact--two-methods .ymh-floating-contact__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ymh-floating-contact--service-bar .ymh-floating-contact__service-title {
    display: block;
    grid-column: 1 / -1;
    padding-inline: 24px;
    font-size: clamp(12px, 3.6vw, 15px);
  }
  .ymh-floating-contact--service-bar :is(.ymh-floating-contact__phone, .ymh-floating-contact__link) {
    position: relative;
    min-height: 58px;
    padding-block: 12px 5px;
    border-radius: 6px;
    font-size: clamp(10px, 2.8vw, 13px);
  }
  .ymh-floating-contact--service-bar .ymh-floating-contact__phone-label { font-size: inherit; }
  .ymh-floating-contact--service-bar .ymh-floating-contact__ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    padding: 3px 5px;
    border-radius: 999px;
    background: #fff07e;
    color: #222;
    font-size: clamp(8px, 2.35vw, 10px);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }
}
