@charset "utf-8";

/* ============================================================
   DoorPage（front-page.php）スマートフォン・タブレット縦向き
   768px以下
   ============================================================ */

@media screen and (max-width: 768px) {
  .u-sp {
    display: block;
  }
  .u-pc {
    display: none;
  }

  html.is-menu-open {
    overflow: hidden;
    height: 100%;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
  }

  body.is-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    touch-action: none;
  }

  body.is-menu-open .p-header {
    touch-action: auto;
    pointer-events: auto;
  }

  body.is-menu-open .p-header__nav {
    touch-action: pan-y;
  }

  body.is-menu-open #main {
    pointer-events: none;
  }

  body.is-menu-open #wrapper > *:not(#naviWrapper):not(.p-header) {
    pointer-events: none;
  }

  #DoorPage #wrapper {
    min-width: 0;
  }

  /* --- ヘッダー（ハンバーガーメニュー） --- */
  .p-header {
    /* スクロールに関係なく右上に固定 */
    position: fixed;
    top: 5px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    font-family:
      "Noto Serif JP", Georgia, 游明朝, "Yu Mincho", YuMincho,
      "Hiragino Mincho ProN", HGS明朝E, メイリオ, Meiryo, serif;
    font-weight: 600;
  }
  #DoorPage .p-header {
    /* スクロールに関係なく右上に固定 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
  }

  .p-header__inner {
    width: 100%;
    padding: 0;
    /* ロゴ（左）とトグルボタン（右）を横並びにする */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: transparent; /* デスクトップの #785023 を上書き */
  }

  .p-header__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 60×60px の正方形ボタン */
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    background-color: #785023;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
    margin-left: auto; /* 右端へ */
    flex-shrink: 0;
  }

  /* 「メニュー」テキストは非表示 */
  .p-header__toggle-text {
    display: none;
  }

  .p-header__toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    flex-shrink: 0;
  }

  .p-header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    transition:
      transform 0.3s,
      opacity 0.3s;
  }

  .p-header.is-open .p-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .p-header.is-open .p-header__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .p-header.is-open .p-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  ul.p-header__nav {
    display: none;
    grid-template-columns: 1fr;
    border-left: none;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* flex-wrap で次行に落ちるため width: 100% が必要 */
    width: 100%;
    /* ヘッダー本体を透明にしたので nav 側で背景色を持つ */
    background-color: #785023;
  }

  .p-header.is-open ul.p-header__nav {
    display: grid;
  }

  .p-header__nav > li {
    padding: 0;
    height: auto;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: block;
  }

  .p-header__nav a::after {
    display: none;
    background-image: none;
  }

  .p-header__nav > li > a,
  .p-header__nav-row > a {
    display: block;
    height: auto;
    min-height: 0;
    padding: 15px 16px;
    font-size: 14px !important;
    line-height: 1;
    text-align: left;
    color: #fff;
    text-decoration: none;
  }

  .p-header__nav-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 15px 0 15px 16px;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    box-sizing: border-box;
  }

  .p-header__nav-row > a {
    display: block;
    flex: 1;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    text-align: left;
    color: #fff;
    text-decoration: none;
  }

  .p-header__nav-row > .p-header__sub-toggle {
    margin-left: auto;
  }


  .p-header__sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
  }

  .p-header__sub-toggle-icon {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
  }

  .p-header__sub-toggle-icon::before,
  .p-header__sub-toggle-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background-color: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.2s;
  }

  .p-header__sub-toggle-icon::before {
    width: 14px;
    height: 2px;
  }

  .p-header__sub-toggle-icon::after {
    width: 2px;
    height: 14px;
  }

  .p-header__nav-item--has-child.is-open .p-header__sub-toggle-icon::after,
  .p-header__sub-toggle[aria-expanded="true"]
    .p-header__sub-toggle-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
  }

  .p-header__nav-item--has-child > .p-header__sub-nav {
    display: none;
    visibility: visible;
    opacity: 1;
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.15);
    height: auto;
  }

  .p-header__nav-item--has-child.is-open > .p-header__sub-nav {
    display: flex;
  }

  .p-header__nav-item--has-child > .p-header__sub-nav > li {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  #DoorPage
    .p-header__nav-item--has-child
    > .p-header__sub-nav
    > li:last-child {
    border-bottom: none;
  }

  .p-header__nav-item--has-child > .p-header__sub-nav > li > a {
    display: block;
    height: auto;
    min-height: 0;
    padding: 15px 16px 15px 28px;
    font-size: 13px;
    line-height: 1;
    white-space: normal;
    text-align: left;
  }

  .p-header__footer {
    display: none;
    width: 100%;
    padding: 16px;
    background-color: #785023;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
  }

  .p-header.is-open .p-header__footer {
    display: block;
  }

  .p-header.is-open ul.p-header__nav {
    max-height: calc(100vh - 60px - 220px);
  }

  .p-header__headerR ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
  }

  .p-header__headerR ul li {
    float: none;
    margin: 0;
    flex: 0 0 auto;
  }

  .p-header__tel {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  .p-header__tel a {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
  }

  .p-header__tel-hours {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .p-header__headerR ul li:not(:first-child) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .p-header__headerR ul li:not(:first-child) a {
    display: block;
    max-width: 100%;
  }

  .p-header__headerR ul li:not(:first-child) img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .p-header__search {
    width: 100%;
  }

  .p-header__search .gsc-control-cse {
    padding: 0;
    background: transparent;
    border: none;
  }

  .p-header__search .gsc-search-box {
    margin: 0;
  }

  .p-header__search .gsc-input-box {
    background: #fff;
    border-radius: 2px;
  }

  /* --- メインエリア --- */
  #DoorPage #main {
    min-width: 0;
    height: auto;
    min-height: 0;
    /* fixed ヘッダー（60px）分だけ押し下げてコンテンツが隠れないようにする */
    padding-top: 60px;
  }

  #DoorPage .main_middle {
    min-height: 0;
    gap: 24px;
  }

  /* body プレフィックスで詳細度をデスクトップ側に揃え、padding を上書き */
  body#DoorPage .main_middle {
    font-size: 14px;
    padding: 24px 16px 32px;
  }

  body#DoorPage .main_middle .logo img {
    width: 140px;
    height: auto;
  }

  body#DoorPage h1 {
    font-size: 22px;
    line-height: 1.5;
    margin: 12px auto;
  }

  body#DoorPage p {
    font-size: 13px;
    line-height: 1.7;
    padding: 0 8px;
  }

  #DoorPage .main_middle_inner {
    padding: 0 8px;
  }

  /* --- バナーグリッド --- */
  #DoorPage .topmvLayout {
    width: 100%;
    max-width: 100%;
    gap: 16px;
    padding: 0;
    /* デスクトップから引き継がれる align-items: center を上書き（高さが異なるカードが崩れる対策） */
    align-items: flex-start;
  }

  #DoorPage .topmvLayout__container {
    width: calc(50% - 8px);
  }

  #DoorPage .topmvLayout__link {
    position: relative;
  }

  #DoorPage .topmvLayout__link:hover {
    scale: 1;
  }

  #DoorPage .topmvLayout__bg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 282 / 98;
    object-fit: cover;
  }

  #DoorPage .topmvLayout__inner {
    top: 0;
    bottom: 0;
    left: 3.5%;
    right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 64%;
    box-sizing: border-box;
  }

  #DoorPage .topmvLayout__inner--flex {
    flex-direction: row;
    align-items: center;
    max-width: 92%;
    gap: 6px;
  }

  #DoorPage .topmvLayout__ttl {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.25;
    margin: 0;
  }

  #DoorPage .topmvLayout__ttl span {
    font-size: clamp(15px, 3.8vw, 18px);
  }

  #DoorPage .topmvLayout__ttl--en {
    font-size: clamp(10px, 2.6vw, 12px);
    margin-bottom: 2px;
  }

  #DoorPage .topmvLayout__img {
    width: clamp(52px, 14vw, 72px);
    flex-shrink: 0;
    margin-top: 0;
  }

  #DoorPage .topmvLayout__img img {
    width: 100%;
  }

  #DoorPage .topmvLayout__btn {
    margin-top: 6px;
    padding: 5px 14px;
    font-size: clamp(11px, 2.8vw, 13px);
  }

  /* --- 下部リンク（#main 直下の ul のみ。ヘッダーナビへのスタイル漏れを防ぐ） --- */
  #DoorPage #main > ul {
    min-height: 0;
    height: auto;
  }

  #DoorPage #main > ul li {
    float: none;
    width: 100%;
    height: auto;
  }

  #DoorPage #main > ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 110px;
    padding: 20px 44px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    color: #fff;
  }

  #DoorPage #main > ul li a:after {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: 0;
  }

  #DoorPage #main > ul li a:hover:after {
    opacity: 1;
    transform: none;
  }

  #DoorPage #main > ul li:nth-of-type(1) a,
  #DoorPage #main > ul li:nth-of-type(2) a {
    border-width: 8px;
  }

  #DoorPage #main > ul li a span {
    font-size: 11px;
    margin-bottom: 8px;
  }

  #DoorPage #main > ul li img {
    width: 20px;
    right: 16px;
    z-index: 3;
  }

  #DoorPage #main > ul li div.bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  #DoorPage #main > ul li div.bg:after {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  #DoorPage .list_inner {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
  }

  /* --- 極小画面（480px以下） --- */
  @media screen and (max-width: 480px) {
    #DoorPage .topmvLayout__container {
      width: 100%;
    }

    #DoorPage .topmvLayout__inner {
      left: 4%;
      max-width: 58%;
    }

    #DoorPage .topmvLayout__inner--flex {
      max-width: 90%;
      gap: 8px;
    }

    #DoorPage .topmvLayout__ttl {
      font-size: clamp(18px, 5.5vw, 22px);
    }

    #DoorPage .topmvLayout__ttl span {
      font-size: clamp(16px, 5vw, 20px);
    }

    #DoorPage .topmvLayout__ttl--en {
      font-size: clamp(11px, 3.2vw, 12px);
    }

    #DoorPage .topmvLayout__img {
      width: clamp(64px, 18vw, 88px);
    }

    #DoorPage .topmvLayout__btn {
      font-size: clamp(12px, 3.5vw, 14px);
      padding: 6px 16px;
    }

    body#DoorPage h1 {
      font-size: 20px;
    }

    #DoorPage #main > ul li a {
      font-size: 15px;
      min-height: 100px;
      padding: 18px 40px;
    }
  }

  /* ============================================================
     共通：グローバルナビ（parts-gnav.php）モバイル
     ============================================================ */
  #naviToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0;
    border: none;
    background-color: #1e1658;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
  }

  .navi-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
  }

  .navi-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    transition:
      transform 0.3s,
      opacity 0.3s;
  }

  #naviWrapper.is-open .navi-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #naviWrapper.is-open .navi-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  #naviWrapper.is-open .navi-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  #naviWrapper #globalNav {
    display: none;
    width: 100%;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #naviWrapper.is-open #globalNav {
    display: block;
  }

  #globalNav > li {
    float: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  #globalNav > li > a {
    display: block;
    padding: 12px 16px;
  }

  #globalNav > li > a img {
    width: auto;
    max-width: 100%;
    height: 20px;
    display: block;
  }

  #globalNav > li > ul {
    display: none;
    position: static;
    width: 100%;
    height: auto !important;
    left: auto;
    top: auto;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  #globalNav > li.is-open > ul {
    display: block;
  }

  #globalNav > li > ul > li {
    float: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0;
  }

  #globalNav > li > ul > li > a {
    display: block;
    padding: 10px 16px 10px 28px;
  }

  #globalNav > li > ul > li > a img {
    height: 16px;
    width: auto;
    max-width: 100%;
  }

  /* サービス案内：サブメニュー開閉用 */
  #globalNav > li:has(> ul) {
    position: relative;
    cursor: pointer;
  }

  #globalNav > li:has(> ul)::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
  }

  #globalNav > li:has(> ul).is-open::after {
    content: "−";
  }

  /* ============================================================
     サイト共通
     ============================================================ */
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  body.is-menu-open #wrapper > *:not(#naviWrapper):not(.p-header) {
    pointer-events: none;
  }

  body.is-menu-open #naviWrapper {
    pointer-events: auto;
  }

  #wrapper {
    min-width: 0;
  }

  /* --- ヘッダー --- */
  #header {
    width: 100%;
    height: auto;
    padding: 0 16px;
    box-sizing: border-box;
  }

  h1#logo {
    position: static;
    float: none;
    width: calc(100% - 75px);
    line-height: 1.4;
  }

  h1#logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    line-height: 1.4;
    text-decoration: none;
  }

  h1#logo img {
    width: 48px;
    height: auto;
    flex-shrink: 0;
  }

  #headerR {
    display: none;
  }
  #search_box {
    display: none;
  }

  /* indexPage：モバイル */
  #naviWrapper {
    display: none;
  }
  .p-header {
    display: block; /* fixed 等 */
  }

  #main {
    width: 100%;
  }

  /* ============================================================
     indexPage（page-top.php）モバイル
     ============================================================ */

  /* --- メインビジュアル --- */
  #indexPage #mainvisual {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible !important;
  }

  #indexPage .mv-slide {
    order: 1;
    height: 42vw;
    min-height: 200px;
    max-height: 280px;
  }

  #indexPage .mv-slide .back01,
  #indexPage .mv-slide .back02,
  #indexPage .mv-slide .back03 {
    height: 100%;
  }

  #indexPage .index_copy.top-page_copy {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin: 0;
    padding: 20px 16px 12px;
    box-sizing: border-box;
    font-size: clamp(20px, 5.5vw, 28px);
    color: #282970;
    text-shadow: none;
    line-height: 1.5;
  }

  #indexPage .topmvLayout.top-page_mvLayout {
    order: 3;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px 16px;
    gap: 16px;
    box-sizing: border-box;
  }

  #indexPage .topmvLayout__container {
    width: calc(50% - 8px);
  }

  #indexPage .topmvLayout__link {
    position: relative;
  }

  #indexPage .topmvLayout__link:hover {
    scale: 1;
  }

  #indexPage .topmvLayout__bg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 282 / 98;
    object-fit: cover;
  }

  #indexPage .topmvLayout__inner {
    top: 0;
    bottom: 0;
    left: 3.5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 64%;
    box-sizing: border-box;
  }

  #indexPage .topmvLayout__inner--flex {
    flex-direction: row;
    align-items: center;
    max-width: 92%;
    gap: 6px;
  }

  #indexPage .topmvLayout__ttl {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.25;
    margin: 0;
  }

  #indexPage .topmvLayout__ttl span {
    font-size: clamp(15px, 3.8vw, 18px);
  }

  #indexPage .topmvLayout__ttl--en {
    font-size: clamp(10px, 2.6vw, 12px);
    margin-bottom: 2px;
  }

  #indexPage .topmvLayout__img {
    width: clamp(52px, 14vw, 72px);
    flex-shrink: 0;
    margin-top: 0;
  }

  #indexPage .topmvLayout__img img {
    width: 100%;
  }

  #indexPage .topmvLayout__btn {
    margin-top: 6px;
    padding: 5px 14px;
    font-size: clamp(11px, 2.8vw, 13px);
  }

  /* --- TOPICS --- */
  #indexPage .top_news {
    order: 4;
    position: relative;
    bottom: auto;
    height: auto;
    line-height: 1.5;
    overflow: visible;
  }

  #indexPage .top_news_wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  #indexPage .top_news_ttl {
    float: none;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;
  }

  #indexPage .top_news_ttl:before,
  #indexPage .top_news_ttl:after {
    display: none;
  }

  #indexPage .top_news_cnt {
    float: none;
    width: 100%;
    height: auto;
    margin-left: 0;
    line-height: 1.6;
    padding: 8px 16px 12px;
    box-sizing: border-box;
    min-height: 80px;
  }

  #indexPage .top_news_cnt ul li {
    font-size: 13px;
    padding: 4px 0;
    white-space: normal;
  }

  #indexPage .top_news_cnt ul li span {
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
  }

  /* --- 各セクション共通 --- */
  #indexPage .section_inner {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  #indexPage .top_section {
    padding: 40px 0;
  }

  #indexPage .top_section.top_concept {
    margin-top: 0 !important;
    padding: 40px 16px;
  }

  #indexPage .top_section.top_concept .section_inner > div img {
    max-width: 200px;
    width: 60%;
    height: auto;
  }

  #indexPage .top_section.top_concept p.copy {
    font-size: clamp(22px, 6vw, 32px);
  }

  #indexPage .top_section.top_concept p {
    font-size: clamp(14px, 3.5vw, 20px);
  }

  #indexPage h2.top_h2 {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 24px;
  }

  .btn_bk a {
    width: 100%;
    max-width: 440px;
    padding: 14px;
    font-size: 15px;
    box-sizing: border-box;
  }

  /* --- 経営コラム --- */
  .top_section.top_column dl {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 24px;
  }

  .top_section.top_column dl dt {
    font-size: 17px;
    padding: 12px;
  }

  .top_section.top_column dl dd a {
    font-size: 14px;
    padding: 12px;
  }

  /* --- お役立ち資料 --- */
  .top_section.top_userful ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
  }

  .top_section.top_userful ul li {
    float: none;
    width: calc(50% - 8px);
    margin-right: 0;
    margin-bottom: 0;
    height: auto !important;
  }

  .top_section.top_userful ul li img {
    width: 100%;
    height: auto;
  }

  .top_section.top_userful ul li strong a {
    font-size: 12px;
    line-height: 1.4;
    display: block;
    margin-top: 8px;
  }

  @media screen and (max-width: 480px) {
    #indexPage .topmvLayout__container {
      width: 100%;
      max-width: none;
    }

    #indexPage .topmvLayout__inner {
      left: 4%;
      max-width: 58%;
    }

    #indexPage .topmvLayout__inner--flex {
      max-width: 90%;
      gap: 8px;
    }

    #indexPage .topmvLayout__ttl {
      font-size: clamp(18px, 5.5vw, 22px);
    }

    #indexPage .topmvLayout__ttl span {
      font-size: clamp(16px, 5vw, 20px);
    }

    #indexPage .topmvLayout__img {
      width: clamp(64px, 18vw, 88px);
    }

    #indexPage .top_section.top_userful ul {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-bottom: 20px;
    }
    #indexPage .top_section.top_userful ul li {
      width: 100%;
    }
  }

  .bottom_cotanct {
    padding: 25px 10px;
  }

  .bottom_cotanct h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .bottom_cotanct p {
    font-size: 14px;
  }

  .bottom_cotanct ul {
    margin: 15px auto 0;
    width: 100%;
  }

  .bottom_cotanct ul li {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .bottom_cotanct ul li img {
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .bottom_cotanct ul li span {
    display: block;
    width: 80%;
    margin: 0 auto;
  }

  .bottom_cotanct ul li a {
    font-size: 14px;
  }

  .bottom_cotanct ul li:nth-of-type(1) {
    margin-top: 0;
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .bottom_cotanct ul li:nth-of-type(1) span {
    font-size: 12px;
  }

  .bottom_cotanct ul li a {
    font-size: 14px;
  }

  #inrFooter {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px 30px;
  }

  #inrFooter #assistNav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    float: none;
  }
  #inrFooter #assistNav ul {
    margin-left: 0;
  }
  #inrFooter #assistNav ul:first-child {
    grid-column: 1 / -1;
  }
  #copyright {
    font-size: 10px;
  }
  .footer_contact_in {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }
  .footer_contact_in .footer_contact_left {
    width: 100%;
    float: none;
    box-sizing: border-box;
  }
  .footer_contact_in ul {
    width: 100%;
  }
  .footer_contact_in ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;

  }
  .footer_contact_in ul li {
    width: 100%;
  }
  .footer_contact_in ul li + li {
    margin-left: 0;
  }
  .under_section {
    width: 100%;
  }

  .mainImg {
    height: auto;
    padding: 20px 10px;
    box-sizing: border-box;
    height: auto !important;
  }
  .mainImg_inner {
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 22px;
    height: auto !important;
  }
  .mainImg_inner span {
    font-size: 14px;
  }
  .navigation {
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navigation ul {
    min-width: 100%;
    width: max-content;
    margin: 0;
    padding: 12px 10px;
  }
  .navigation li {
    font-size: 12px;
  }

  .section_inner {
    width: 100%;
  }

  #content {
    width: 100%;
  }
  #main {
    width: 100% !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

  #main img {
    max-width: 100%;
  }

  h2.under_h2 {
    font-size: 20px;
  }

  h3.under_h3 {
    font-size: 18px;
  }

  .mv_mb iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 670 / 315;
  }

  .tbl01 th,
  .tbl01 td {
    width: 100% !important;
    display: block;
    box-sizing: border-box;
  }
  .imgR {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
  }
  .imgR .img {
    float: none;
    margin: 0;
  }
  .imgR.imgright .img {
    padding: 0;
  }
  .img img {
    width: 100%;
  }

  .imgL {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .imgL .img {
    float: none;
    margin: 0;
  }
  .imgL img {
    order: 100;
    float: none;
    margin-right: 0;
  }


  .talentList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .talentList li {
    float: none;
    width: 100%;
    margin: 0;
  }

  .sainokaika_imgBox {
    width: 100%;
  }
  .sainokaika_imgBox img {
    display: none;
  }
  .sainokaika_imgBox span {
    font-size: 16px;
    width: 100%;
    text-align: left;
    padding: 10px;
  }
  .sec06 .voicebox {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 10px;
  }
  .toleader {
    font-size: 14px;
  }

  /* --- 導入事例 --- */
  .relate_column .newBox li {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .relate_column .newBox li dl {
    display: flex;
  }

  .relate_column .newBox li dl dt {
    width: 80px;
    flex-shrink: 0;
  }
  .relate_column .newBox li dl dt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .relate_column .newBox li dl dd {
    width: calc(100% - 80px);
    float: right;
    min-height: 74px;
    font-size: 14px;
    margin-top: 0;
  }
  .relate_column .newBox li dl dd a {
    text-align: left;
  }

  .under_section video {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 338;
  }

  .c-consultants-list-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #detailConsultans .fltL,
  .c-consultants-list-item .fltL {
    float: none !important;
    margin: 0 !important;
    text-align: center;
  }
  #detailConsultans .fltL img,
  .c-consultants-list-item .fltL img {
    max-width: 100%;
  }
  .c-consultants-list-item hr {
    width: 100%;
  }

  #detailConsultans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tbl02,
  .negotiation-table {
    display: block; /* テーブルをブロック要素に変更してスクロール可能にする */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* テキストの自動折り返しを禁止して、テーブルの横幅を確保する */
    white-space: nowrap;
  }
  .negotiation-table th {
    padding: 23.3px 10px;
  }
  .negotiation-table td {
    padding: 10px !important;
  }
  .negotiation-table td.check-box {
    padding: 7px 0 7px 54px !important;
  }
  .column_author {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  .column_author .img {
    float: none;
    margin: 0;
    text-align: center;
  }
  .column_author .img img {
    max-width: 100%;
    width: auto;
  }
  ul.column_banner li {
    float: none;
    display: block;
    width: 100%;
    margin-right: 0;
    height: auto !important;
    box-sizing: border-box;
    padding: 15px;
    min-height: auto;
  }
  li.column_dl form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  li.column_dl .img {
    position: static;
    text-align: center;
  }
  li.column_dl .img img {
    width: auto;
    height: auto;
  }
  li.column_dl .ttl,
  li.column_dl .ttl2,
  li.column_dl .btn {
    padding: 0;
    margin: 0 auto;
  }
  li.column_dl .ttl2 {
    text-align: center;
  }
  li.column_pre .ttl2 {
    padding-left: 105px;
    padding-bottom: 30px;
  }
  .p-quotes_related li.column_dl .img.p-quotes__img img {
    position: static;
    width: auto;
    height: auto;
  }
  .dlicon {
    left: 15px;
  }
  .thisbody ul {
    width: 100%;
  }
  .detailcolumn {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .relate_column li {
    width: 100%;
    margin: 0;
    float: none;
  }
  .relate_column li dl {
    display: flex;
  }
  .relate_column li dl dd {
    w100%;
    float: none;
    margin: 0;
    padding: 10px 20px 10px 10px;
    box-sizing: border-box;
    text-align: left;
    min-height: auto;
    height: auto;
    width: calc(100% - 80px);
  }
  body.column .relate_column li dd {
    text-align: left;
  }

  .service_under_main {
    padding: 0 !important;
  }
  .mainImg_inner img {
    width: 100%;
  }
  .service_local_nav {
    height: auto;
  }
  .service_local_nav ul {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .service_local_nav li {
    width: 100%;
    float: none;
    border: 1px solid #ccc;
  }
  .service_local_nav li a {
    text-align: center;
  }
  .diagnosis .sec06 .voicebox {
    height: auto !important;
  }
  .diagnosis .under_section .imgR .txt div {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .diagnosis .under_section .imgR .txt div p {
    width: 100%;
  }
  .diagnosis .under_section .imgR .txt div img {
    width: auto;
  }
  .under_section .figure {
    margin-top: 15px;
    width: 100%;
  }
  .diagnosis .list dl {
    margin-left: 0;
  }
  .service-voice__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .service-voice__item {
    width: 100%;
  }
  .service_reason_box .txt {
    width: 100%;
    float: none;
    box-sizing: border-box;
  }
  .service_reason_box .img {
    float: none;
    width: 100%;
    margin-top: 10px;
  }
  .negotiation-bnr.manager-bnr .negotiation-bnr__link {
    box-sizing: border-box;
    padding: 15px;
    gap: 15px;
  }
  .negotiation-bnr.manager-bnr .negotiation-bnr__img {
    width: 100%;
    position: static;
  }
  .negotiation-bnr__link {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }
  .negotiation-bnr.manager-bnr .negotiation-bnr__ttl {
    font-size: 20px;
    text-align: center;
  }
  .negotiation-bnr__btn {
    text-align: center;
    display: block;
  }
  .seachBox {
    box-sizing: border-box;
  }
  .seachBox .seachInner {
    display: block;
  }
  .seachBox .seachInner .seachttl,
  .seachBox .seachInner ul {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
  }
  #contactPage form .input2 {
    width: calc(100% - 120px);
  }
  #contactPage form .input5 {
    width: 100%;
    max-width: 100%;
  }
  #contactPage form input {
    font-size: 16px;
  }
  #contactPage form .input1 {
    width: 110px;
  }
  .bx-wrapper {
    margin-bottom: 0 !important;
  }
  .top_section.top_column dl dt,
  .top_section.top_column dl dd a {
    box-sizing: border-box;
  }
  .service-about__concept {
    font-size: 14px;
  }
  .service-about__txt {
    font-size: 16px;
  }
  .sec01-case__item {
    padding-bottom: 20px;
  }
  .sec01-case__item-inner {
    padding: 0 10px 10px;
    flex-direction: column;
  }
  .sec01-case__img {
    max-width: 100%;
    width: auto;
    margin-top: 20px;
  }
  .sec01-case__item-inner h3 {
    font-size: 26px;
  }
  .sec01-case__item-inner h3 .small-text {
    font-size: 20px;
  }
  .sec01-case__item-inner h3 .color-black {
    font-size: 14px;
  }
  .sec01-case__item-inner h3 .previous-data {
    font-size: 18px;
  }
  .sec01-case__item-inner h3 .small-text--more {
    font-size: 20px;
  }
  .sec01-case__item-inner h3 .arrow-triangle::before {
    left: 53px;
  }
  .sec01-case__item-inner h3 .arrow-triangle::after {
    right: 63px;
  }
  .sec01-case__item-inner h3 .arrow-triangle--02::before {
    left: 30px;
  }
  .sec01-case__item-inner h3 .arrow-triangle--02::after {
    left: 40px;
  }
  .sec01-case__item-inner h3 .arrow-triangle--03::before {
    left: 104px
  }
  .sec01-case__item-inner h3 .arrow-triangle--03::after {
    left: 114px
  }
  .sec01-case__item-inner h3 .color-black.pr-80 {
    padding-right: 30px;
  }
  .sec01-case__item-inner h3 .pl-40 {
    padding-left: 36px;
  }

  .negotiation-feature__content {
    display: block; /* テーブルをブロック要素に変更してスクロール可能にする */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* テキストの自動折り返しを禁止して、テーブルの横幅を確保する */
    white-space: nowrap;
  }

  .negotiation-feature__txt {
    padding: 30px 5px;
    font-size: 14px;
  }
  .negotiation-feature__txt--bg-blue.negotiation-feature__txt--fit-height {
    min-height: none;
  }
  .negotiation-feature__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .negotiation-feature__item {
    width: 100%;
  }
  .negotiation-bnr__img {
    width: auto;
    top: 0;
  }
  .negotiation-bnr__link {
    gap: 15px;
    padding: 0 10px 15px;
  }
  .negotiation-bnr__ttl {
    font-size: 22px;
  }
  ul.footer-arcive-column {
    display: grid;
    gap: 20px;
  }
} /* end @media screen and (max-width: 768px) */
