@charset "UTF-8";

/* Shared header and mobile contact bar, based on index05.html. */
@media screen and (min-width: 751px) {
  body.site-ui .h_inner > .h_left > nav {
    position: absolute;
    top: 50%;
    left: calc(50% - 36px) !important;
    width: max-content;
    transform: translate(-50%, -50%);
  }
  body.site-ui .nav_list { gap: clamp(28px, 2.5vw, 48px); }
  body.site-ui .nav_list > li > a,
  body.site-ui .nav_list > li > .sub_btn {
    margin: 0;
    white-space: nowrap;
  }
}

@media screen and (min-width: 751px) and (max-width: 1600px) {
  body.site-ui .nav_list > li > a,
  body.site-ui .nav_list > li > .sub_btn { font-size: 15px; }
}

@media screen and (min-width: 751px) and (max-width: 1280px) {
  body.site-ui .nav_list > li > a,
  body.site-ui .nav_list > li > .sub_btn { font-size: 12px; }
}

@media screen and (max-width: 750px) {
  body.site-ui .h_inner { justify-content: flex-start; }
  body.site-ui #logo {
    width: clamp(115px, 31vw, 135px);
    height: 60px;
    max-width: none;
    margin: 0;
    overflow: hidden;
  }
  body.site-ui #logo a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
  }
  body.site-ui #logo img {
    display: block;
    width: 160%;
    max-width: none;
    height: auto;
    transform: translateX(-13%);
  }
  body.site-ui .index05-header-diagnosis {
    display: flex;
    align-items: center;
    width: min(41vw, 230px);
    height: 60px;
    margin-left: auto;
    margin-right: 61px;
  }
  body.site-ui .index05-header-diagnosis img {
    display: block;
    width: 100%;
    max-height: 55px;
    object-fit: contain;
  }
  body.site-ui .sp_contact li,
  body.site-ui .sp_contact li.sp_contact_line { width: 33.333%; min-width: 0; }
  body.site-ui .sp_contact li a {
    min-width: 0;
    padding: 2px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }
  body.site-ui .sp_contact li.sp_contact_tel,
  body.site-ui .sp_contact li.sp_contact_mail { padding: 0; }
  body.site-ui .sp_contact li.sp_contact_tel a { max-width: none; }
  body.site-ui .sp_contact li.sp_contact_mail .txt1,
  body.site-ui .sp_contact li.sp_contact_mail .txt2 {
    font-size: 11px;
    line-height: 1.2;
  }
body.site-ui .sp_contact li.sp_contact_mail {
  border: none;
}

  body.site-ui .sp_contact li.sp_contact_mail .txt1::before {
    right: -24px;
    top: -17px;
    width: 27px;
  }
  body.site-ui .sp_contact .index05-phone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #111;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
  }
  body.site-ui .sp_contact .index05-phone-label::before {
    content: "";
    display: block;
    width: 25px;
    height: 20px;
    background: url('../images/ic_tel.png') center / contain no-repeat;
  }
  body.site-ui .sp_contact li a .txt-tel,
  body.site-ui .sp_contact li a .txt-time { display: none; }
  body.site-ui .sp_contact li.sp_contact_line a {
    display: flex;
    flex-direction: row;
    gap: 2px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
  }
  body.site-ui .sp_contact li.sp_contact_line .ic_line { height: 24px; flex: 0 0 25px; }
  body.site-ui .sp_contact li.sp_contact_line .index05-line-label { display: block; max-width: none; white-space: nowrap; }
}

/* Keep the desktop fixed assessment route visually prominent. */
body.site-ui .box_fixed_pc .btn_box .btn-index1 a {
    background: #f00000;
}
body.site-ui .box_fixed_pc .btn_box .btn-index1 a:hover {
    background: #cf0000;
}
body.site-ui .box_fixed_pc .btn_box .btn-index1 a .txt::before {
    filter: hue-rotate(318deg) saturate(3.5) brightness(0.92);
}

/* Show the same desktop fixed inquiry routes used on the top page. */
@media screen and (min-width: 751px) {
    body.under.site-ui:not(#income-property):not(#my_home) .box_fixed_pc.pc {
        display: block;
    }
}

@media screen and (max-width: 360px) {
  body.site-ui #logo {
    width: clamp(105px, 31vw, 120px);
  }
  body.site-ui .index05-header-diagnosis { width: 140px; }
  body.site-ui .sp_contact li.sp_contact_mail .txt1,
  body.site-ui .sp_contact li.sp_contact_mail .txt2,
  body.site-ui .sp_contact li.sp_contact_line a { font-size: 8px; }
  body.site-ui .sp_contact .index05-phone-label { font-size: 10px; }
}

@media screen and (max-width: 750px) {
  body.site-ui {
    --sp-contact-safe: max(
      12px,
      env(safe-area-inset-bottom, 0px)
    );
  }

  body.site-ui .sp_contact {
    height: calc(60px + var(--sp-contact-safe));
  }

  body.site-ui .sp_contact li a {
    box-sizing: border-box;
    padding: 2px 3px var(--sp-contact-safe);
  }

  body.site-ui .to_top {
    bottom: calc(70px + var(--sp-contact-safe));
  }
}

/* Shared footer office layout. */
.footer-office-layout {
    margin: 120px 0 90px;
    border-top: 12px solid var(--organ);
}

.footer-office-layout .footer-office-layout__inner {
    display: grid;
    grid-template-columns: 26% 32% 42%;
    align-items: stretch;
    width: 100%;
    min-height: clamp(260px, 20vw, 388px);
    height: auto;
    padding: 0;
}

.footer-office-layout__photo,
.footer-office-layout__map {
    align-self: stretch;
    min-width: 0;
    height: auto;
}

.footer-office-layout__photo {
    margin: 0;
}

.footer-office-layout__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-office-layout__details {
    position: relative;
    z-index: 1;
    align-self: center;
    min-width: 0;
    margin-left: -52px;
    padding: 42px 32px 34px 46px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 47, 76, 0.08);
}

.footer-office-layout__title {
    margin: 0 0 22px;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
}

.footer-office-layout__title span {
    color: var(--organ);
}

.footer-office-layout__details dl {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
    margin: 0 0 8px;
}

.footer-office-layout__details dt,
.footer-office-layout__details dd {
    min-width: 0;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.03em;
}

.footer-office-layout__details dt {
    font-weight: 800;
}

.footer-office-layout__tokyo-note {
    margin: 18px 0 0;
    color: #555;
    text-align: right;
    font-size: 13px;
    line-height: 1.5;
}

.footer-office-layout__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f3f5f7;
}

@media screen and (min-width: 751px) and (max-width: 1280px) {
    .footer-office-layout__details {
        margin-left: -36px;
        padding: 34px 22px 28px 34px;
    }

    .footer-office-layout__title {
        margin-bottom: 16px;
        font-size: 21px;
    }

    .footer-office-layout__details dl {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 5px;
    }

    .footer-office-layout__details dt,
    .footer-office-layout__details dd {
        font-size: 14px;
        line-height: 1.65;
    }

    .footer-office-layout__tokyo-note {
        margin-top: 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 750px) {
    .footer-office-layout {
        margin: 50px 0 0;
        border-top-width: 5px;
    }

    .footer-office-layout .footer-office-layout__inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: auto;
    }

    .footer-office-layout__photo {
        width: calc(100% - 30px);
        height: auto;
        aspect-ratio: 460 / 357;
        margin: 0 auto;
    }

    .footer-office-layout__details {
        width: calc(100% - 54px);
        margin: -54px auto 30px;
        padding: 25px 22px 22px;
        border-radius: 20px;
    }

    .footer-office-layout__title {
        margin-bottom: 14px;
        padding-right: 8px;
        text-align: right;
        font-size: 20px;
    }

    .footer-office-layout__details dl {
        display: block;
        margin-bottom: 15px;
    }

    .footer-office-layout__details dt,
    .footer-office-layout__details dd {
        width: 100%;
        font-size: 15px;
        line-height: 1.7;
    }

    .footer-office-layout__tokyo-note {
        margin-top: 8px;
        text-align: left;
        font-size: 13px;
    }

    .footer-office-layout__map {
        width: 100%;
        height: 300px;
    }
}
