@charset "UTF-8";

/**
 * 改修用スタイル
 *
 * アップロード先: common/renewal/
 * 本フォルダ（css / img）を一括アップロードして改修内容を反映できます。
 * common/css/style.css の後に読み込まれるため、既存スタイルを上書きできます。
 *
 * 画像参照例: url(../img/ファイル名.png)
 */

/* ==========================================================================
   ハンバーガーメニュー（SP）
   ========================================================================== */

@media screen and (max-width: 768px) {
  .global-nav__item.sp-nav--flat > a {
    display: block;
    color: #262626;
    line-height: 40px;
    padding: 0 10px;
    text-decoration: none;
  }
}

/* ==========================================================================
   TOPページ 製品ナビ（PCのみ）
   ========================================================================== */

@media screen and (max-width: 768px) {
  .layout-top1.pc-only {
    display: none !important;
  }
}

/* ==========================================================================
   TOPページ SPファーストビュー
   ========================================================================== */

@media screen and (min-width: 769px) {
  .top-sp-fv.sp-only {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .top-sp-fv {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #fff;
  }

  .top-sp-fv__bg {
    /* 390px幅で高さ635px。500px相当以上は高さ固定（内側コンテンツで伸びない） */
    --top-sp-fv-height: min(calc(100vw * 635 / 390), calc(500px * 635 / 390));
    display: grid;
    grid-template-rows: var(--top-sp-fv-height);
    width: 100%;
    height: var(--top-sp-fv-height);
    max-height: var(--top-sp-fv-height);
    overflow: hidden;
  }

  .top-sp-fv__bg-img {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 15%;
  }

  .top-sp-fv__inner {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 0 10px 23px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .top-sp-fv__head {
    flex-shrink: 0;
    padding-top: 6px;
  }

  .top-sp-fv__catch {
    margin: 0;
    padding: 19px 14px;
    color: #fff;
    /* 390px幅で2.6rem(26px)相当。350px〜は画面幅に比例 */
    font-size: calc(100vw * 26 / 390);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.05em;
  }

  @media screen and (max-width: 349px) {
    .top-sp-fv__catch {
      font-size: 22px;
    }
  }

  .top-sp-fv__content {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 0;
    overflow: hidden;
  }

  .top-sp-fv__result {
    margin: 0 0 34px 20px;
    line-height: 0;
  }

  .top-sp-fv__result-img {
    display: block;
    width: min(30vw, calc(100vw * 168 / 390));
    max-width: 168px;
    height: auto;
  }

  .top-sp-fv__copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
  }

  .top-sp-fv__copy-line {
    margin: 0;
    font-size: clamp(1.44rem, calc(100vw * 16 / 390), 1.6rem);
    font-weight: 600;
    line-height: 1.6;
    color: #2a63a6;
    letter-spacing: 0.05em;
  }

  .top-sp-fv__copy-line:last-child {
    margin-bottom: 0;
  }

  .top-sp-fv__copy-line span {
    display: inline;
    padding: 4px 12px;
    background-color: #fff;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .top-sp-fv__btn-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: clamp(4px, calc(100vw * 10 / 390), 5px);
    margin-top: auto;
    padding-top: clamp(8px, calc(100vw * 12 / 390), 12px);
  }

  .top-sp-fv__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, calc(100vw * 8 / 390), 8px);
    width: 100%;
    max-width: 400px;
    padding: clamp(10px, calc(100vw * 12 / 390), 12px) 35px;
    border: 2px solid #fff;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .top-sp-fv__btn-area .top-sp-fv__btn,
  .top-sp-fv__btn-area .top-sp-fv__btn:hover,
  .top-sp-fv__btn-area .top-sp-fv__btn:focus,
  .top-sp-fv__btn-area .top-sp-fv__btn:active,
  .top-sp-fv__btn-area .top-sp-fv__btn:visited {
    text-decoration: none !important;
  }

  .top-sp-fv__btn-area .top-sp-fv__btn-text,
  .top-sp-fv__btn-area .top-sp-fv__btn-label,
  .top-sp-fv__btn-area .top-sp-fv__btn-tel,
  .top-sp-fv__btn-area .top-sp-fv__btn:active .top-sp-fv__btn-text,
  .top-sp-fv__btn-area .top-sp-fv__btn:active .top-sp-fv__btn-label,
  .top-sp-fv__btn-area .top-sp-fv__btn:active .top-sp-fv__btn-tel {
    text-decoration: none !important;
  }

  .top-sp-fv__btn--contact {
    flex-wrap: nowrap;
    gap: 4px;
    height: 60px;
    min-height: 60px;
    padding: 0 35px;
    background-color: #e94f51;
  }

  .top-sp-fv__btn--contact .top-sp-fv__btn-text {
    flex: 0 1 auto;
    white-space: nowrap;
    color: #fff;
  }

  .top-sp-fv__btn--tel {
    flex-direction: column;
    gap: 4px;
    background-color: #2a63a6;
  }

  .top-sp-fv__btn-icon {
    flex-shrink: 0;
    display: block;
    width: clamp(22px, calc(100vw * 24 / 390), 24px);
    height: auto;
  }

  .top-sp-fv__btn-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.44rem, calc(100vw * 16 / 390), 1.6rem);
    font-weight: bold;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .top-sp-fv__btn-label {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.44rem, calc(100vw * 16 / 390), 1.6rem);
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .top-sp-fv__btn-tel {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.98rem, calc(100vw * 22 / 390), 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    color: #fff;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 349px以下：FV全体をコンパクトに（ボタン周りは約90%） */
  @media screen and (max-width: 349px) {
    .top-sp-fv__inner {
      padding: 0 8px 10px;
    }

    .top-sp-fv__head {
      padding-top: 4px;
    }

    .top-sp-fv__catch {
      padding: 10px 12px;
      line-height: 1.45;
    }

    .top-sp-fv__content {
      padding-top: 6px;
    }

    .top-sp-fv__result {
      margin-bottom: 6px;
    }

    .top-sp-fv__result-img {
      width: min(27vw, 140px);
    }

    .top-sp-fv__copy-line {
      font-size: 1.44rem;
      line-height: 1.5;
    }

    .top-sp-fv__copy-line span {
      padding: 1px 8px;
    }

    .top-sp-fv__btn-area {
      gap: 8px;
      padding-top: 8px;
    }

    .top-sp-fv__btn {
      padding: 10px 15px;
    }

    .top-sp-fv__btn--contact {
      height: 60px;
      min-height: 60px;
      padding: 0 15px;
      gap: 3px;
    }

    .top-sp-fv__btn--tel {
      gap: 3px;
    }

    .top-sp-fv__btn-icon {
      width: 22px;
    }

    .top-sp-fv__btn-text,
    .top-sp-fv__btn-label {
      font-size: 1.44rem;
    }

    .top-sp-fv__btn-tel {
      font-size: 1.98rem;
    }
  }
}

/* ==========================================================================
   TOPページ 用途から探す（SP）
   ========================================================================== */

@media screen and (min-width: 769px) {
  .top-purpose-nav.sp-only {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .top-purpose-nav {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #fff;
  }

  .top-purpose-nav__inner {
    max-width: 100%;
    padding: 18px 10px 20px;
    box-sizing: border-box;
  }

  .top-purpose-nav__heading {
    margin: 0 0 2px;
    padding: 0 0 9px;
    border-bottom: 1px solid #3f3f3f;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.64;
    color: #3f3f3f;
    letter-spacing: 0.05em;
  }

  .top-purpose-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .top-purpose-nav__item {
    min-width: 0;
    margin: 0;
  }

  .top-purpose-nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 60px;
    padding: 10px 0 10px;
    box-sizing: border-box;
    color: #3f3f3f;
    text-decoration: none;
    background-color: #fff;
  }

  .top-purpose-nav__thumb {
    flex-shrink: 0;
    width: 16vw;
    max-width: 60px;
    min-width: 52px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .top-purpose-nav__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .top-purpose-nav__label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.35;
    color: #3f3f3f;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .top-purpose-nav__arrow {
    flex-shrink: 0;
    display: block;
    width: 8px;
    height: 14px;
    background: url(../img/arrow-right.png) no-repeat center / contain;
  }
}

/* ==========================================================================
   TOPページ SPバナー
   ========================================================================== */

@media screen and (max-width: 768px) {
  .top-sp-bnr {
    margin-top: 38px;
  }

  .top-sp-bnr__inner {
    padding: 0 10px 12px;
  }

  .top-sp-bnr__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .top-sp-bnr__item {
    margin: 0;
  }

  .top-sp-bnr__link {
    display: block;
    line-height: 0;
  }

  .top-sp-bnr__img {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* ==========================================================================
   TOPページ 管理医療機器（SP）
   ========================================================================== */

@media screen and (max-width: 768px) {
  .feel_block.sp-only {
    padding: 0;
  }

  .feel_block.sp-only .link_area {
    display: block;
    width: 100%;
  }

  .feel_block.sp-only .link_area > div + div {
    margin-top: 15px;
  }

  .feel_block.sp-only img.pc {
    display: none;
  }

  .feel_block.sp-only img.sp {
    display: block;
    width: calc(100% - 20px);
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ==========================================================================
   TOPページ サイドバー（SP）
   ========================================================================== */

@media screen and (min-width: 769px) {
  .layout-top-side.sp-only {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .layout-top-side.sp-only {
    display: block;
    padding: 10px;
  }

  .layout-top-side.sp-only .banner {
    margin: 0 0 10px;
    padding: 0 10px 20px;
    text-align: center;
    border-bottom: none;
  }

  .banner {
    border-bottom: none;
  }

  .layout-top-side.sp-only .banner img {
    max-width: 100%;
    height: auto;
  }

  .layout-top-side.sp-only .fb-page {
    margin-top: 10px;
    max-width: 100%;
    overflow: hidden;
  }
}

/* ==========================================================================
   TOPページ お知らせ（SP）
   ========================================================================== */

@media screen and (max-width: 768px) {
  .topics {
    padding: 40px 10px 0;
    border-bottom: none;
  }
}

/* ==========================================================================
   TOPページ layout-top2 見出し画像
   ========================================================================== */

@media screen and (max-width: 768px) {
  .layout-top2 .home-heading1 img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* ==========================================================================
   SP固定CTA（全ページ・画面下部）
   ========================================================================== */

@media screen and (min-width: 769px) {
  .sp-fixed-cta.sp-only {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding-bottom: calc(81px + env(safe-area-inset-bottom, 0px));
  }

  footer {
    padding-bottom: calc(81px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .top-back {
    bottom: calc(81px + env(safe-area-inset-bottom, 0px) + 8px) !important;
    z-index: 101;
  }

  .sp-fixed-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    height: calc(81px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.5s,
      visibility 0.5s;
  }

  .sp-fixed-cta.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sp-fixed-cta__inner {
    display: flex;
    height: 81px;
    max-width: 100%;
  }

  .sp-fixed-cta__btn {
    display: flex;
    flex: 1 1 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 100%;
    padding: 6px 8px;
    border: 2px solid #fff;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .sp-fixed-cta__btn:hover,
  .sp-fixed-cta__btn:focus,
  .sp-fixed-cta__btn:active,
  .sp-fixed-cta__btn:visited {
    color: #fff;
    text-decoration: none !important;
  }

  .sp-fixed-cta__btn .sp-fixed-cta__title,
  .sp-fixed-cta__btn .sp-fixed-cta__note,
  .sp-fixed-cta__btn .sp-fixed-cta__note-label,
  .sp-fixed-cta__btn .sp-fixed-cta__note-time {
    text-decoration: none !important;
  }

  .sp-fixed-cta__btn--mail {
    background-color: #e94f51;
  }

  .sp-fixed-cta__btn--tel {
    background-color: #2a63a6;
  }

  .sp-fixed-cta__row--head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
  }

  .sp-fixed-cta__icon {
    flex-shrink: 0;
    line-height: 0;
  }

  .sp-fixed-cta__btn--mail .sp-fixed-cta__icon-img {
    display: block;
    width: 22px;
    height: auto;
  }

  .sp-fixed-cta__btn--tel .sp-fixed-cta__icon-img {
    display: block;
    width: 19px;
    height: auto;
  }

  .sp-fixed-cta__title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
  }

  .sp-fixed-cta__note {
    display: block;
    font-weight: bold;
    line-height: 1.25;
    color: #fff;
  }

  .sp-fixed-cta__btn--mail .sp-fixed-cta__note {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
  }

  .sp-fixed-cta__btn--tel .sp-fixed-cta__note {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.25em;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.3;
  }

  .sp-fixed-cta__note-label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
  }

  .sp-fixed-cta__note-time {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.25;
  }
}
@media screen and (max-width: 370px) {
  .sp-fixed-cta__btn--mail .sp-fixed-cta__icon-img {
    width: 20px;
  }
  .sp-fixed-cta__title {
    font-size: 1.2rem;
  }
  .sp-fixed-cta__btn--mail .sp-fixed-cta__note {
    font-size: 1.4rem;
  }
  .sp-fixed-cta__note-time {
    font-size: 1.2rem;
  }
}
@media screen and (max-width: 349px) {
  .sp-fixed-cta__btn--mail .sp-fixed-cta__icon-img {
    width: 19px;
  }
  .sp-fixed-cta__title {
    font-size: 1rem;
  }
  .sp-fixed-cta__btn--mail .sp-fixed-cta__note {
    font-size: 1.2rem;
  }
  .sp-fixed-cta__note-time {
    font-size: 1rem;
  }
}
