/* 本CSSファイルで使用する設定値 */
:root {
  --hmn2025-color-black: #403e3e;
  --hmn2025-color-red: #d21c30;
}

/* 移設を行った結果調整が必要な部分を上書きするCSSを記述する */

#WideCv .Column {
  display: flex;
}
@media screen and (max-width: 648px) {
  #WideCv .Column {
    flex-direction: column;
  }
}

#Low h1:not(.old-style),
#Low h2:not(#inquiry-title):not(.old-style) {
  background: none;
  background-color: #fafafa;
  border: none;
  position: relative;
  outline: none;
  display: flex;
  align-items: center;
  padding: 32px;
  &::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 1.6em;
    background: var(--hmn2025-color-red);
    margin-right: 1em;
    vertical-align: middle;
    position: relative;
    flex-shrink: 0; /* 縮小を防ぐ */
  }
}

@media screen and (max-width: 648px) {
  #Low h1:not(.old-style),
  #Low h2:not(#inquiry-title):not(.old-style) {
    padding: 24px;

    &::before {
      height: 24px;
    }
  }
}

#Low h2:not(#inquiry-title):not(.old-style) {
  padding: 16px 32px;
}

.SearchBox {
  text-align: right;
}

.LocalNavi a[aria-current="page"],
.LocalNavi .current a {
  color: #cc0033;
  font-weight: bold;
}

.IndexList.Book {
  display: flex;
  flex-wrap: wrap;
}

.flow_no {
  z-index: 1;
}

.humanletter .IndexList {
  display: flex;
  flex-wrap: wrap;
}

.EntryBody .Pager ul li {
  margin-left: 0;
  margin-bottom: 0;
  font-size: 14px;
}

div.hmn_1907.tkp div.ttl.about_vision_ttl div.bg_kv {
  background-image: url(/assets/img/about/vision/vision_kv_pc.jpg);
}

div.hmn_1907.ikkatsu div.ttl.simulation_ttl div.bg_kv {
  background-image: url(/assets/img/simulation/simulation_kv_pc.jpg);
}

.hmn_1907 div.Contents {
  width: 960px;
  margin: 30px auto 50px;
}

/* セミナー */

/* sate02は過去セミナーとして薄い赤に設定していたが、最新と同じ赤に変更  */
.semibox.sate02 {
  border: 2px solid #cf1126;
}
.semibox.sate02 .head {
  background: #cf1126;
}

#single-semi .wrap {
  margin: 15rem auto;
  @media screen and (max-width: 767px) {
    margin-top: 73px;
  }
}
/* @media only screen and (min-width: 769px) {
  #single-semi .wrap {
    width: 800px;
  }
}
@media only screen and (max-width: 768px) {
  #single-semi .wrap {
    width: 95%;
  }
} */

.home_main_wrap {
  background-image: url(../images/home/fv_bg.jpg);
}
h2.home_main_ttl {
  background: none;
  border-top: 0;
  border-bottom: none;
  margin: 0;
}
.home_main {
  margin-top: 150px;
  @media screen and (max-width: 767px) {
    margin-top: 73px;
  }
}
#page-past.wrap,
#page-category {
  margin: 15rem auto;
}

.cancel_policy_link {
  width: fit-content;
  margin: 24px auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(---Text, #333);
  font-family: YuGothic;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 180%; /* 32.4px */
}
.cancel_policy_link::before {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url(/assets/img/common/arrow/arrow_link_circle_r.png);
  background-repeat: no-repeat;
  background-size: contain;
}

/******************************************
 *           検索結果画面
 ******************************************/
.search-conditions {
  margin: 0.5em 0 1em;
  padding: 1em;
  background-color: #f9f9f9;
  display: flex;
  gap: 1em;
  .search-form {
    margin-left: auto;
  }
  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 0.5em;
    .search-form {
      margin-left: initial;
    }
  }
}

/******************************************
 *           フロントページ
 ******************************************/

div.front div.top_view div.kv_slider .slick-dots li button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #403e3e;
}

div.front div.top_view div.kv_slider .slick-dots li.slick-active button {
  background-color: #403e3e;
  border: 1px solid #403e3e;
}

/* 詳細度を上げるために.hmn_1907でラップ */
div.hmn_1907.front main {
  /* ニュースリスト */
  .home-news {
    margin-bottom: 24px;
    padding: 0;
  }
  .home-news__title {
    position: relative;
    text-align: center;
    font-size: 30px;
    line-height: 1.5;
    font-weight: bold;
    margin: 32px 0;
    @media screen and (max-width: 767px) {
      font-size: 18px;
    }
  }
  .home-news__title::before,
  .home-news__title::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 50px;
    height: 1px;
    background: #333;
    position: relative;
    top: -2px;
  }
  .home-news__title::before {
    margin-right: 50px;
  }
  .home-news__title::after {
    margin-left: 50px;
  }
  .home-news__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
    background-color: #f7f7f7;
    padding: 16px clamp(16px, 5vw, 100px);
    @media (min-width: 1201px) {
      padding: 16px 100px;
    }
    .home-news__subtitle {
      font-size: 20px;
      font-weight: 800;
      line-height: 160%;
      color: #333;
      margin-bottom: 0;
      padding-bottom: 4px;
      border-bottom: 1px solid #5e5e5e;
      @media screen and (max-width: 767px) {
        font-size: 16px;
      }
    }
    .home-news__item {
      padding: 0 8px 8px 8px;
      border-bottom: 1px dashed #9b9b9b;
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 12px;
      .post-date {
        font-size: 14px;
        color: #333;
        white-space: nowrap;
        min-width: 140px;
      }
      .new-label {
        font-family: "Roboto", sans-serif;
        display: inline-block;
        color: var(--hmn2025-color-red);
        border: 1px solid var(--hmn2025-color-red);
        padding: 3px 4px;
        font-size: 13px;
        line-height: 1;
        font-weight: bold;
        margin-left: 4px;
        min-width: 42px;
        text-align: center;
        border-radius: 4px;
      }
      .post-title {
        font-size: 16px;
        line-height: 1.6;
        font-weight: bold;
        color: #333;
        text-decoration: none;
        @media screen and (max-width: 767px) {
          font-size: 14px;
        }
      }
      @media screen and (max-width: 767px) {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
      }
    }
  }
  .home-news__more {
    margin-top: 16px;
    font-size: 16px;
    a {
      text-decoration: none;
      border: none;
      line-height: 1;
      @media screen and (max-width: 567px) {
        font-size: 13px;
        background-size: 16px auto;
      }
    }
  }

  /* 更新リスト */
  .home-latest {
    padding: 0;
    margin-bottom: 60px;
  }
  .home-latest-blocks {
    max-width: 1200px;
    box-sizing: content-box;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    padding: 0 1em;
    .home-latest-block {
      flex: 1 1 calc(50% - 1em);
      box-sizing: border-box;
      border: 1px solid #5e5e5e;
      @media screen and (max-width: 768px) {
        flex: 1 1 100%;
      }
    }
    .home-latest-block__inner {
      padding: 16px;
    }
    .home-latest-block__title {
      background-color: #5e5e5e;
      font-size: 20px;
      font-weight: 800;
      line-height: 160%;
      color: #ffffff;
      margin: 0;
      background-image: none;
      @media screen and (max-width: 567px) {
        font-size: 16px;
        padding: 4px;
      }
    }
    .home-latest-block__item {
      padding: 0 8px 8px 8px;
      border-bottom: 1px dashed #9b9b9b;
      display: flex;
      align-items: flex-start;
      gap: 8px;
      .post-date {
        font-size: 14px;
        color: #333;
        white-space: nowrap;
        min-width: 140px;
      }
      .new-label {
        display: inline-block;
        color: var(--hmn2025-color-red);
        border: 1px solid var(--hmn2025-color-red);
        padding: 4px 4px;
        font-size: 13px;
        line-height: 1;
        font-weight: bold;
        margin-left: 8px;
        min-width: 50px;
        text-align: center;
        border-radius: 4px;
      }
      .post-title {
        font-size: 16px;
        line-height: 1.6;
        font-weight: bold;
        color: #333;
        text-decoration: none;
        @media screen and (max-width: 567px) {
          font-size: 14px;
        }
      }
      @media screen and (max-width: 567px) {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
      }
    }
    .home-latest-block__item + .home-latest-block__item {
      margin-top: 12px;
    }
  }
  .home-latest__more {
    margin-top: 16px;
    font-size: 16px;
    a {
      text-decoration: none;
      border: none;
      line-height: 1;
      @media screen and (max-width: 567px) {
        font-size: 13px;
        background-size: 16px auto;
      }
    }
  }

  /* 3つの強み */
  .home-strongpoint {
    background: linear-gradient(
      180deg,
      rgba(255, 216, 216, 0.3) 2.73%,
      rgba(253, 120, 120, 0.3) 79.07%
    );
    padding: clamp(40px, 5vw, 60px) 16px;
  }
  .home-strongpoint__title {
    position: relative;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 auto 48px;
    @media screen and (max-width: 568px) {
      font-size: 20px;
    }
  }
  .home-strongpoint__title::before,
  .home-strongpoint__title::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 50px;
    height: 1px;
    background: #333;
    position: relative;
    top: -6px;
    @media screen and (max-width: 568px) {
      width: 10px;
    }
  }
  .home-strongpoint__title::before {
    margin-right: 50px;
    @media screen and (max-width: 568px) {
      margin-right: 10px;
    }
  }
  .home-strongpoint__title::after {
    margin-left: 50px;
    @media screen and (max-width: 568px) {
      margin-left: 10px;
    }
  }
  .home-strongpoint__list {
    display: flex;
    max-width: 1200px;
    gap: 16px;
    margin: auto;
    @media screen and (max-width: 768px) {
      flex-direction: column;
      width: 100%;
    }
  }
  .home-strongpoint__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex: 1 0 0;
    background: #fff;
    box-shadow: 6px 6px 0 0 #c9c2c2;
  }
  .home-strongpoint__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    .strongpoint-no {
      color: var(---Red, #d21c30);
      font-family: "Times New Roman";
      font-size: 40px;
      font-style: italic;
      font-weight: 700;
      line-height: 100%; /* 40px */
      @media screen and (max-width: 567px) {
        font-size: 30px;
      }
    }
  }
  .home-strongpoint__body {
    font-size: 18px;
    line-height: 1.6;
    @media screen and (max-width: 567px) {
      font-size: 16px;
    }
  }

  .home-strongpoint__subtitle {
    color: var(---Text, #333);
    font-family: YuMincho;
    font-size: 28px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-align: left;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hmn2025-color-red);
    min-height: 3.5em;
    @media screen and (max-width: 567px) {
      font-size: 20px;
    }
  }
  .home-strongpoint__more {
    margin: auto 0 0;
    padding: 16px 0 0;
    text-align: right;
    a {
      font-size: 18px;
      @media screen and (max-width: 567px) {
        font-size: 13px;
      }
    }
  }

  .image_cont {
    width: 100%;
    height: 100%;
    background-color: #eee;
    justify-content: center;
    align-items: center;
    display: flex;
    aspect-ratio: 545 / 320;
  }
}

/* バナー */
@media screen and (min-width: 768px) {
  .three_two_one li,
  .three_two_one .col {
    width: 25%;
  }
}
@media screen and (max-width: 767px) {
  .three_two_one li,
  .three_two_one .col {
    width: 50%;
  }
}
@media screen and (max-width: 567px) {
  .three_two_one li,
  .three_two_one .col {
    width: 100%;
  }
}

div.front section.top_service .content_col .content_inner h3.youtube__title {
  color: white;
}

/******************************************
 *           フッター
 ******************************************/

/* 詳細度確保のためセレクタの階層を深く */
footer.hmn_1907 {
  /* .footer_sitemap {
    font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
  } */
  .footer_sitemap > ul li.frame.hierarchy_sitemap {
    .child_cont {
      dt {
        border-bottom: 1px solid #d21c30;
        a {
          display: block;
          font-size: 18px;
          padding: 0.5em 0;
        }
        a:not(.pointer_event_none) {
          background-position: right center;
          background-repeat: no-repeat;
          background-size: 18px auto;
          background-image: url(/assets/img/common/arrow/arrow_link_circle_r.png);
        }
      }
    }
  }
  @media screen and (max-width: 768px) {
    /* 奇数個で最後の場合 */
    section.footer_bottom_nav ul li:last-child:nth-child(odd) {
      width: 100%;
    }
  }

  .footer_office {
    bottom: 100px;
  }
  .footer_top .footer_logo {
    width: 291px;
  }
}

@media screen and (min-width: 769px) {
  footer.hmn_1907 section.footer_bottom_nav ul li a {
    font-size: 10px !important;
  }
}

@media screen and (min-width: 1200px) {
  footer.hmn_1907 section.footer_bottom_nav ul li a {
    font-size: 12px !important;
  }
}

@media screen and (min-width: 1244px) {
  footer.hmn_1907 section.footer_bottom_nav ul li a {
    font-size: 14px !important;
  }
}

/******************************************
 *           会社概要
 ******************************************/
/* 詳細度確保のためセレクタの階層を深く */
.hmn_1907 {
  /* ナビゲーション */
  .company-nav {
    width: 95%;
    max-width: 1240px;
    min-width: 1000px;
    padding: 0 20px;
    position: relative;
    margin: 38px auto 0;
    @media screen and (max-width: 999px) {
      width: 100%;
      min-width: initial;
    }
  }
  .company-nav__main {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
    @media screen and (max-width: 999px) {
      flex-wrap: wrap;
      .company-nav__item--main {
        flex: 1 1 50%;
        max-width: calc(50% - 4px); /* gap分を引く */
      }
    }
  }
  .company-nav__item--main {
    flex: 1 1 0;
    /* 均等幅で広がる */
    min-width: 0;
    display: flex;
    a,
    span {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      text-align: center;
      padding: 16px;
      border: 1px solid var(--hmn2025-color-red);
      font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
      color: #000;
      font-family: YuMincho;
      font-size: 16px;
      font-style: normal;
      font-weight: 800;
      line-height: 180%; /* 28.8px */
      @media screen and (max-width: 999px) {
        font-size: 14px;
        padding: 8px 0;
      }
    }
    span.current {
      background-color: var(--hmn2025-color-red);
      color: #fff;
    }
    a:not(.current)::after {
      content: "";
      display: inline-block;
      width: 18px;
      height: 10px;
      background-image: url(/assets/img/common/arrow/arrow_right_r.png);
      background-repeat: no-repeat;
      background-position: center center;
      background-size: contain;
    }
  }
  .company-nav__sub {
    display: flex;
    justify-content: flex-end;
    gap: 32px;
    margin-top: 16px;
    @media screen and (max-width: 999px) {
      margin-top: 0;
    }
  }
  .company-nav__item--sub {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    a {
      display: flex;
      align-items: center;
      padding: 8px 0;
      gap: 8px;
      font-family: "游ゴシック", "Yu Gothic", "YuGothic", sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: 180%; /* 28.8px */
      @media screen and (max-width: 999px) {
        font-size: 14px;
      }
    }
    a::before {
      content: "";
      display: inline-block;
      width: 18px;
      height: 18px;
      background-image: url(/assets/img/common/arrow/arrow_link_circle_r.png);
      background-repeat: no-repeat;
      background-position: center center;
      background-size: contain;
      @media screen and (max-width: 999px) {
        width: 14px;
        height: 14px;
      }
    }
  }
}

/* フッターナビ */
div.hmn_1907.article main {
  section.company-footer-nav {
    width: 100%;
    background-color: #f7f7f7;
    padding: 40px 0;
  }
  .company-footer-nav__inner {
    display: flex;
    max-width: 1200px;
    width: 95%;
    padding: 32px 48px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: white;
    gap: 40px;
    margin: auto;
    @media screen and (max-width: 999px) {
      padding: 24px 16px;
    }
  }
  .company-footer-nav__list {
    width: 100%;
    display: flex;
    flex-direction: column;
    dt {
      color: #333;
      font-family: YuGothic;
      font-size: 21px;
      font-style: normal;
      font-weight: 700;
      line-height: 180%; /* 37.8px */
      display: flex;
      align-items: center;
      padding: 0 8px 8px 8px;
      align-items: center;
      gap: 10px;
      align-self: stretch;
      border-bottom: 1px solid var(---Black, #403e3e);
      &::after {
        content: "";
        display: inline-block;
        width: 30px;
        height: 9px;
        background-image: url(/assets/img/common/arrow/arrow_right_r.png);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
      }
      @media screen and (max-width: 999px) {
        font-size: clamp(16px, 3vw, 18px);
      }
    }
    dd {
      ul {
        display: flex;
        margin-top: 12px;
        gap: 24px;
        @media screen and (max-width: 999px) {
          flex-wrap: wrap;
        }
      }
      a {
        color: #333;
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: 180%; /* 32.4px */
        position: relative;
        @media screen and (max-width: 999px) {
          font-size: clamp(16px, 3vw, 18px);
        }
      }
      a::before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        background-image: url(/assets/img/common/arrow/arrow_link_circle_r.png);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        margin: 0 16px 0 8px;
        vertical-align: middle;
        @media screen and (max-width: 999px) {
          width: clamp(20px, 3vw, 24px);
          height: clamp(20px, 3vw, 24px);
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .company-footer-nav__list ul {
    flex-direction: column !important;
    gap: 8px !important;
  }
}

/******************************************
 *           about
 ******************************************/
/* ３つの強み */
div.hmn_1907.about {
  section.feature__box {
    padding: 30px 0;
    background-color: #ebebeb;
  }
  section.feature__box article div.feature__content {
    background-color: #fff;
    -moz-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 60px clamp(60px, 9vw, 115px);
    @media screen and (max-width: 767px) {
      padding: 30px 16px;
    }
  }
  .feature__nav {
    display: flex;
    gap: 8px;
    width: 100%;
    @media screen and (max-width: 767px) {
      flex-direction: column;
    }
  }
  .feature__nav-item {
    a {
      font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px 16px;
      font-size: 16px;
      font-style: normal;
      font-weight: 800;
      line-height: 180%; /* 28.8px */
      color: #000;
      border: 1px solid var(--hmn2025-color-red);
    }
    a::after {
      content: "";
      width: 8px;
      height: 8px;
      border-right: 2px solid var(--hmn2025-color-red);
      border-bottom: 2px solid var(--hmn2025-color-red);
      transform: rotate(45deg);
      display: inline-block;
      margin-left: 8px;
      margin-bottom: 6px;
    }
  }
  .feature__contents {
    max-width: 800px;
    margin: auto;
    h2 {
      margin-top: 48px;
      text-align: left;
    }
    h3 {
      color: #333;
      font-family: YuGothic;
      font-size: 25px;
      font-style: normal;
      font-weight: 700;
      line-height: 140%; /* 35px */
      border-left: 2px solid #333;
      text-align: left;
      padding-left: 16px;
      margin-top: 46px;
    }
    div img {
      margin-top: 36px;
    }
    h4 {
      padding-bottom: 8px;
      border-bottom: 1px solid #cccccc;
      padding-bottom: 5px;
      color: #000;
      font-family: "游ゴシック", "Yu Gothic", "YuGothic", sans-serif;
      font-size: 20px;
      font-style: normal;
      font-weight: 700;
      line-height: 140%; /* 28px */
      margin-bottom: 10px;
      margin: 30px 0 20px;
      text-align: left;
    }
    h5 {
      color: #000;
      font-family: "Noto Sans JP";
      font-size: 18px;
      font-style: normal;
      font-weight: 700;
      line-height: 160%; /* 28.8px */
      text-align: left;
      margin-top: 36px;
    }
    ol {
      list-style: decimal inside;
      margin-left: 1em;
      display: flex;
      flex-direction: column;
      gap: 8px;
      li {
        color: #000;
        font-family: "Noto Sans JP";
        font-size: clamp(14px, 2vw, 18px);
        font-style: normal;
        font-weight: 400;
        line-height: 160%;
      }
    }
  }
  .Penant li {
    background: #f6f6f6;
    display: block;
    padding: 15px 15px 15px 20px;
    font-size: clamp(1em, 1vw, 1.2em);
    padding-left: 35px;
    border: 1px solid #cccccc;
    margin-bottom: 10px;
  }
}
div.hmn_1907.about.feature div.ttl div.bg_kv {
  background-image: url(/assets/img/about/feature/feature_kv_pc.jpg);
}

/* 外部リンク */
.external-link::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url(../images/common/external.svg);
  background-repeat: no-repeat;
  margin-left: 4px;
  vertical-align: middle;
}
.external-link.--red::after {
  background-image: url(../images/common/external_red.svg);
}

/******************************************
 *           新CTA
 ******************************************/

/* 全てのページのCTAを統一するためPHPで一括して入れ替えたが、classの組み合わせ次第でスタイルが当たらず、迂闊に必要なclassを上位の要素に追加すると余計なスタイルが継承されてしまうため、必要なスタイルを切り出して個別に当てる。 */
.common_inquiry.common_inquiry_bottom {
  padding: 60px 0 80px;
  overflow: hidden;
  article {
    width: 95%;
    max-width: 1240px;
    min-width: 1000px;
    padding: 0 20px;
    position: relative;
    margin: 0 auto;
    @media screen and (max-width: 767px) {
      min-width: inherit;
      padding: 0;
    }
  }
}

/* 電話番号エリアの折り返し防止 - Safari対応（見た目は変更せず） */
.common_inquiry .right_col dt,
.common_inquiry .right_col dd {
  white-space: nowrap !important; /* 折り返しを防ぐ */
}

/******************************************
 *           医療
 ******************************************/

.post-type-archive-iryobook .Right h2 {
  margin-top: 0;
}

/******************************************
 *           Header Styles
 ******************************************/

@media screen and (max-width: 1000px) {
  .hmn_1907 nav.nav_pc > ul > li > a,
  .hmn_1907 nav.nav_pc > ul > li > span {
    font-size: clamp(8px, 1vw, 15px) !important;
    padding: 0 20px 25px;
  }
}

.hmn_2025 {
  .header-top {
    position: relative;
    width: 100%;
    height: 75px;
    padding-top: 15px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    @media screen and (max-width: 768px) {
      padding-top: 9px;
      height: auto;
    }
  }

  .header-top__logo {
    max-width: 389px;
    width: 22%;
    position: absolute;
    left: 20px;
    top: 15px;
  }

  @media screen and (min-width: 1024px) {
    .header-top__logo {
      width: 33%;
    }
  }

  @media screen and (min-width: 769px) {
    .header-top__logo {
      height: 100%;
      display: flex;
      align-items: center;
      padding-bottom: 16px;
    }
  }

  @media screen and (max-width: 768px) {
    .header-top__logo {
      width: 33%;
      max-width: 250px;
      top: 18px;
      left: 15px;
    }
  }

  @media screen and (max-width: 568px) {
    .header-top__logo {
      width: 185px;
      top: 24px;
    }
  }

  @media screen and (max-width: 414px) {
    .header-top__logo {
      width: 170px;
      left: 10px;
    }
  }

  .header-top__buttons {
    margin-inline-start: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;

    a {
      border: none;
      color: var(--hmn2025-color-black);
      font-size: clamp(10px, 1vw, 14px);
      padding: 8px 0;
      display: flex;
      align-items: center;
      span {
        width: auto;
        padding: 7px 7px 4px;
        border: 1px solid #d21c30;
        background-color: #fff;
        line-height: 1;
        border-radius: 0;
      }
      a::before {
        content: none;
      }
    }
  }

  .header-top__assist {
    margin-left: 24px;
    display: inline-block;
    a {
      padding: 8px;
      border: 1px solid #666;
      color: #666;
      background-color: #f4f4f4;
      border-radius: 4px;
      display: flex;
      align-items: center;
      text-decoration: none;
      font-size: clamp(10px, 1vw, 14px);
    }
    a::before {
      content: "";
      display: inline-block;
      width: 18px;
      height: 18px;
      background-image: url(/assets/img/2025/user.svg);
      background-size: contain;
      background-repeat: no-repeat;
    }
  }

  .header-top__search {
    margin-left: 24px;
    display: flex;
    align-items: center;
    form {
      display: flex;
      align-items: center;
      input.search-field {
        padding: 7px;
        border: 1px solid #666;
        color: #666;
        font-size: clamp(10px, 1vw, 14px);
        width: 200px;
      }
      button.search-submit {
        padding: 7px;
        border: 1px solid #666;
        background-color: #fff;
        margin-left: 2px;
        img {
          width: 16px;
          height: 16px;
        }
      }
    }
  }

  .header-bottom {
    height: calc(100% - 75px);
    position: relative;
    right: initial;
    bottom: initial;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    gap: 16px;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    padding: 0 20px;
    -webkit-align-items: center;
    align-items: center;
    nav.nav_pc {
      ul {
        li {
          a {
            align-self: flex-end;
          }
        }
      }
    }
  }

  .header-bottom__cv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    align-self: flex-start;
  }

  .header-bottom__tel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    dt {
      color: #fff;
      font-size: clamp(10px, 1vw, 12px);
      font-weight: bold;
      background-color: #0a0a0a;
      padding: 2px 10px;
    }
    dd {
      padding-left: 5px;
      color: #343434;
      font-size: clamp(15px, 1.5vw, 18px);
      font-weight: 700;
    }
  }

  .header-bottom__btn {
    align-self: flex-start;
    a {
      display: flex;
      align-items: center;
      text-decoration: none;
      padding: clamp(4px, 1.2vw, 16px);
      background-color: var(--hmn2025-color-red);
      color: #fff;
      font-size: clamp(9px, 1vw, 18px);
      font-weight: bold;
      border-radius: 4px;
    }
    a::before {
      content: "";
      display: inline-block;
      width: 30px;
      height: 21px;
      background-image: url(/assets/img/2025/icon_mail_red.svg);
      background-size: contain;
      background-repeat: no-repeat;
    }
  }
}

/******************************************
 *           お問合せ
 ******************************************/

/* contactページの背景画像設定 */

.ttl.service_ttl .bg_kv {
  background-image: url(/assets/img/contact/contact_kv_pc.jpg);
}

@media screen and (max-width: 768px) {
  .ttl.service_ttl .bg_kv {
    background-image: url(/assets/img/contact/contact_kv_sp.jpg);
  }
}

/* contactページのiframe操作性改善 */
.page-id-24519 iframe {
  /* レスポンシブ対応 */
  width: 100% !important;
  border: none !important;

  /* PC版での高さ設定 */
  height: 1600px !important;
  max-height: none !important;

  /* 下部の余白を削除 */
  margin-bottom: 0 !important;
  display: block;
}

/* スマホでのiframe最適化 - ビューポート幅に応じた動的高さ調整 */
@media screen and (max-width: 768px) {
  .page-id-24519 iframe {
    /* ビューポート幅に応じた高さ設定 */
    height: calc(250vw + 600px) !important;

    /* 最小・最大値の制限 */
    min-height: 1900px !important;
    max-height: 1900px !important;

    /* スクロールを完全に無効化 */
    overflow: hidden !important;

    /* スマホでのタッチ操作改善 */
    -webkit-overflow-scrolling: auto;
    touch-action: manipulation;

    /* スマホでも余白を削除 */
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }
}

/* より狭い画面での細かい調整 */
@media screen and (max-width: 480px) {
  .page-id-24519 iframe {
    height: calc(280vw + 500px) !important;
    min-height: 2100px !important;
    max-height: 2100px !important;
  }
}

/* iframeを含む親要素の調整 */
.page-id-24519 main {
  padding: 0 10px;
  overflow-x: hidden;
}

/* ページ全体のスクロール設定 */
.page-id-24519 body {
  overflow-x: hidden;
}

/* iframeの前後の要素の余白も調整 */
.page-id-24519 iframe + * {
  margin-top: 20px !important;
}

.page-id-24519 * + iframe {
  margin-top: 0 !important;
}

/* WordPressのpタグやHTMLブロック周辺の余白調整 */
.page-id-24519 p:has(+ iframe),
.page-id-24519 .wp-block-html:has(+ iframe) {
  margin-bottom: 0 !important;
}

.page-id-24519 iframe + p,
.page-id-24519 iframe + .wp-block-html,
.page-id-24519 iframe + div {
  margin-top: 20px !important;
}

/* JavaScript併用でiframe属性を動的制御 */
@media screen and (max-width: 768px) {
  .page-id-24519 iframe[scrolling="yes"],
  .page-id-24519 iframe[scrolling="auto"] {
    scrolling: no !important;
  }
}

/******************************************
 *           ブログアーカイブ - サイドメニューの表示順序調整
 ******************************************/

/* アーカイブページ・2カラムサービスページ・個別記事ページ専用のレスポンシブ対応 */
/* 648px以下でのみflexboxを使用してサイドメニューを下部に表示 */
@media screen and (max-width: 648px) {
  /* ブログアーカイブページ */
  .post-type-archive-blog .Contents,
  /* 齋藤伸市ブログアーカイブページ */
  .post-type-archive-president .Contents,
  /* 医療法人相談事例アーカイブページ */
  .post-type-archive-iryobook .Contents,
  /* 2カラムサービスページテンプレート */
  .page-template-page-2columnservice .Contents,
  /* 齋藤伸市ブログ個別記事ページ */
  .single-president .Contents {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .post-type-archive-blog .Contents .Left,
  .post-type-archive-president .Contents .Left,
  .post-type-archive-iryobook .Contents .Left,
  .page-template-page-2columnservice .Contents .Left,
  .single-president .Contents .Left {
    order: 2; /* サイドメニューを下部に */
  }

  .post-type-archive-blog .Contents .Right,
  .post-type-archive-president .Contents .Right,
  .post-type-archive-iryobook .Contents .Right,
  .page-template-page-2columnservice .Contents .Right,
  .single-president .Contents .Right {
    order: 1; /* メインコンテンツを上部に */
  }

  /* 2カラムサービスページのコンテンツ部分も上部に */
  .page-template-page-2columnservice .Contents > div:not(.BC):not(.Left) {
    order: 1;
  }
}

/******************************************
 *           common
 ******************************************/

html {
  scroll-snap-type: y proximity;
  scroll-padding-top: 73px;
  @media screen and (min-width: 769px) {
    scroll-padding-top: 150px;
  }
  scroll-behavior: smooth;
}

.d-none {
  display: none !important;
}

.d-md-none {
  @media screen and (min-width: 769px) {
    display: none !important;
  }
}
.d-md-block {
  @media screen and (min-width: 769px) {
    display: block !important;
  }
}

.text-white {
  color: #fff;
}

.fs-md-18px {
  @media screen and (min-width: 769px) {
    font-size: 18px !important;
  }
}

.d-flex {
  display: flex;
}

.d-md-flex {
  @media screen and (min-width: 769px) {
    display: flex;
  }
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.h-100 {
  height: 100%;
}

.event-template-default.single-event header.entry-header {
  background: none !important;
}

body.Service {
  font-size: 14px;
}

.d-inline-648px {
  @media screen and (min-width: 649px) {
    display: inline !important;
  }
}

.d-inline-768px {
  @media screen and (min-width: 769px) {
    display: inline !important;
  }
}

.fs-16px-max-768px {
  @media screen and (max-width: 768px) {
    font-size: 16px !important;
  }
}

.mb-0-max-648px {
  @media screen and (max-width: 648px) {
    margin-bottom: 0 !important;
  }
}

body.Service .Contents,
.Contents {
  margin-top: 180px;
}

@media screen and (max-width: 1000px) {
  body.Service .Contents,
  .Contents {
    margin-top: 180px;
  }
}

@media screen and (max-width: 768px) {
  body.Service .Contents,
  .Contents {
      margin-top: 103px;
  }
}