html, body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-template-page-top {
  background-color: #ffffff;
}

[data-header*="type-1"] .ct-header [data-row*="top"] {
  margin-bottom: 10px;
}

.page-template-page-top .shadow-line {
  display: none !important;
}

.page-template-page-top .page-title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0;  /* 余裕あれば高さも0に */
  overflow: hidden;
}

.page-template-page-top .page-title h1 {
  display: none;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-template-page-top #main-content {
  padding: 0;
  background: #ffffff;
  
}

.page-template-page-top .container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 0 !important;
  position: relative; /* これがいることもある */
  overflow: visible;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-template-page-top .content-block {
  margin-top: 0;
  margin-bottom: 0;
}

.page-template-page-top .main-visual {
  position: relative;
  width: 100%;
  overflow: visible; /* はみ出し許可 */
  padding-left: 20px;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}



/* メイン画像の調整 */
.page-template-page-top .image-container {
  position: relative;
  width: calc(100% + 40px); /* 右に40pxはみ出す */
  margin-left: -20px;       /* 左側を20px縮めて中央寄せ */
  height: 400px;
  overflow: visible;
  
}

.page-template-page-top .image-container img {
  position: absolute;
  top: 0px;
  right: -150px;
  height: 100%;            /* ここは変えない */
  object-fit: cover;
  width: auto;
  max-width: none;
  transform: scale(1.4);
  transform-origin: top right;
}

.page-template-page-top .main-visual .block-title h2 {
  font-size: 28px;
  font-weight: bold;
  color: #000;
}

/*メインビジュアルに重なるテキストの設定*/
.page-template-page-top .overlay-text {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2; /* 文字を前面に */
  padding: 0 10px; /* 右の余白確保 */
  box-sizing: border-box;
  color: #000;
}

.page-template-page-top .overlay-text h2 span,
.page-template-page-top .overlay-text p span {
  line-height: 1.1;
  background-color: rgba(255,255,255,1);
  padding: 0.2em 0.3em;
  display: inline;         /* ここで文字サイズ調整できる（例） */
}




/* メインビジュアルの h2 p のフォントサイズ設定*/
.page-template-page-top .overlay-text h2 {
  font-size: 36px;
  max-width: 60vw;  
  margin-top: 100px;
  color: #000;
}

 /* そのDXの悩み、まずは話してみませんか？　の調整*/
.page-template-page-top .dx-trouble-inner {
  margin-top: 250px !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: flex-start;
}

.page-template-page-top .dx-trouble-text {
  flex: 3 1 0; /* テキストの幅を増やす */
  max-width: none;
}

.page-template-page-top .dx-trouble-text .block-title h2 {
  font-size: 25px;
  margin: 30px 0 30px 0; /* 上 30px、右 0、下 30px、左 0 */
  text-align: left;
  color: #000;
}

.page-template-page-top .dx-trouble-text .block-body p {
font-size: 16px;
line-height: 1.7;
color: #000;
}

.page-template-page-top .dx-trouble-image {
  flex: 1 1 auto; /* 画像も伸び縮みできる */
  margin-left: 30px; /* auto外して固定の余白に */
  max-width: 40%; /* 適度に幅制限 */
  text-align: left;
  padding-left: 0;
  overflow: visible;
}

.page-template-page-top .dx-trouble-image img {
  width: 120%; /* 親に合わせて */
  height: auto;
  max-width: none;
  display: block;
  margin-left: -60px; /* 画像左の余白幅 */
  padding-left: 0;
}


 /* 必要なのは、”導入”ではなく、”定着”　の調整*/
.page-template-page-top .only-pc {
  display: block;
}

.page-template-page-top .only-sp {
  display: none;
}

.page-template-page-top .dsettle-not-just-introduce-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.page-template-page-top .dsettle-left {
  flex: 1;
}

.page-template-page-top .dsettle-not-just-introduce-image {
  flex: 1;
  text-align: center;
}

.page-template-page-top .dsettle-not-just-introduce-image img {
  max-width: 100%;
  height: auto;
  margin-left: -80px;
}

.page-template-page-top .dsettle-not-just-introduce-text {
  flex: 1;
  width: 50%;
  max-width: none;        /* ← これで固定解除 */
  margin-left: -80px;      /* ← こっちで画像からの距離調整 */
  padding-left: 0;        
  text-align: left;
  min-width: 280px;
  color: #000;
}

html body.page-template-page-top .dsettle-not-just-introduce-text h2#fix-target {
  font-size: 25px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  font-weight: bold;
  margin-bottom: 20px;
  white-space: nowrap;
  color: #000;
}


.page-template-page-top .dsettle-left p {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}



/* 人と業務がスムーズにつながる、活気ある職場へ。 の調整 */
.page-template-page-top .dx-smooth-inner.only-pc {
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.page-template-page-top .dx-smooth-inner .only-sp {
  display: none;
}

.page-template-page-top .dx-smooth-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

  .page-template-page-top .dx-smooth-workplace {
    margin-top: 100px; 
  box-sizing: border-box;
  }

.page-template-page-top .dx-smooth-text {
  flex: 1 1 50%; /* テキスト幅を狭めて */
  min-width: 280px;
  box-sizing: border-box;
}

.page-template-page-top .dx-smooth-text .block-title {
  display: flex;
  justify-content: flex-start;
}

.page-template-page-top .dx-smooth-text .block-title h2 {
 font-size: 25px;
  font-weight: bold;
  margin-bottom: 20px;
  white-space: normal;
  color: #000;
}

.page-template-page-top .dx-smooth-text .dx-smooth-body p {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

.page-template-page-top .dx-smooth-image {
  flex: 1 1 50%; /* 画像に十分な幅をあげる */
  display: flex;
  justify-content: flex-end; /* 中身（img）を右寄せ */
  box-sizing: border-box;
}

.page-template-page-top .dx-smooth-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  object-fit: contain;
}


/* FunDX FlexSupport の調整 */
/* 親のflexsupport全体 */
.page-template-page-top .flexsupport {
  margin-bottom: 80px;
  margin-top: 50px !important;
}

/* 親直下のタイトルと本文 */
.page-template-page-top .flexsupport > .block-title {
  margin-bottom: 10px;
  width: 600px;
}

.page-template-page-top .flexsupport > .block-title h2 {
  font-size: 37px;
  font-weight: bold;
  margin-bottom: 0px;
  margin-right: -40px;
  color: #000;
}

.page-template-page-top .flexsupport > .block-body {
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.8;
}

.page-template-page-top .flexsupport > .block-body p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;       /* 文字幅 */
  margin-left: 0px;
  margin-bottom: 20px;
  margin-top: 20px;
  color: #000;
}

/* 内部のflexレイアウト */
.page-template-page-top .flexsupport-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start; /* 左右カラム横並び */
}

/* 左右のカラム */
.page-template-page-top .flexsupport-left {
  flex: 1 1 45%;
   margin-left: -45px;
   margin-top: 40px;
   width: auto !important;
}

.page-template-page-top .flexsupport-image {
  position: relative;
  top: -45px;
  width: 110% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-template-page-top .flexsupport-image img {
  width: 100% !important; /* 画像の大きさ */
  height: auto;
  border-radius: 8px;
}

.page-template-page-top .flexsupport-right {
  flex: 1 1 50%;
  margin-top: 10px;
  margin-left: 15px;
}

/* 右カラムのサポートブロック */
.page-template-page-top .flexsupport .support-block {
  margin-bottom: 20px;
}
.page-template-page-top .flexsupport .support-block h3 {
  font-size: 23px;
  font-weight: bold;
  color: #9f8530;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.page-template-page-top .flexsupport .support-block h3 span {
  font-weight: bold;
  font-size: 20px;
  margin-right: 6px;
  color: #9f8530;
}
.page-template-page-top .flexsupport .support-block p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 100%;
  color: #000;
}

/* hrとボタン */
.page-template-page-top .flexsupport-right hr {
  border: none;
  border-top: 1px solid #000000;
  margin: 20px 0;
}

.page-template-page-top .flexsupport-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 0px;
}

.page-template-page-top .flexsupport .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 67px;
  background-color: #9f8530;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 40px;
  font-size: 16px;
  line-height: 1; /* ← これで中央になる可能性大 */
  transition: background-color 0.3s;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-template-page-top .only-pc {
  display: block;
}

.page-template-page-top .only-sp {
  display: none;
}








/* FunDX Toolsの調整 */
.page-template-page-top .content-block.tools {
  width: 100%;    /* 画面いっぱいに広げる */
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.page-template-page-top .tools-inner {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.page-template-page-top .tools-text > .block-title {
  margin-bottom: 10px;
}
.page-template-page-top .tools-text > .block-title h2 {
  font-size: 37px;
  font-weight: bold;
  margin-bottom: 10px;
  max-width: 1000px;
  color: #000;
}

.page-template-page-top .tools-text > .block-body {
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.7;
}
.page-template-page-top .tools-text > .block-body p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #000;
}

.page-template-page-top .tools-cards {
  display: flex;        /* これ絶対必要 */
  flex-wrap: nowrap;    /* nowrapで横並びキープ */
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  gap: 40px; /* カード間の幅 */
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  min-height: 220px;  /* カードの縦の長さ */
}


.page-template-page-top .tool-card {
  flex: 1 1 calc((100% - 20px * 4) / 5.5);
  max-width: calc((100% - 20px * 4) / 5.5);
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  border: 2px solid #A18941; 
  box-sizing: border-box;
  margin-right: 0; 
}


.page-template-page-top .tool-card img {
  width: 80%;
  height: auto;
  max-height: 60px; 
  object-fit: contain;
  margin-bottom: 6px;
  margin-top: 10px;
}

.page-template-page-top .tool-card:first-child img {
  max-height: 80px;  /* 通常60px→80pxに */
  margin-top: -5px;
}

.page-template-page-top .tool-card:first-of-type h3 {
margin-top: 0px;
}

.page-template-page-top .tool-card h3 {
  font-size: 17px;
  margin-bottom: 7px;
  color: #A18941;
  margin-top: 5px;
}

.page-template-page-top .tool-card p {
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  color: #000;
}

.page-template-page-top .tools-button-wrapper {
  text-align: center;
  margin-top: 70px;
}

.page-template-page-top .tools-button-wrapper .btn {
  display: inline-block;
  padding: 17px 67px;
  background-color: #9f8530;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  transition: background-color 0.3s;
}

/* お知らせ調整 */
.page-template-page-top .only-pc {
  display: block;
}
.page-template-page-top .only-sp {
  display: none;
}

.news .block-title h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  margin-top: 50px;
  color: #000;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 15px; /* サムネとテキストの間隔 */
  margin-bottom: 20px;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
}

.news-thumb img {
  width: 220px; /* サムネの大きさ調整 */
  height: 120px;  /* サムネの横幅調整 */
  height: auto;
  object-fit: cover;
  height: 120px; 
  margin-top: 0px;
  margin-bottom: 10px;
}

.news-text {
  display: flex;
  flex-direction: column-reverse;
  color: #000;
}

.news-date {
  font-size: 12px;
  color: #000000;
  margin: 0 0 5px 0; 
  margin-top: 5px;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  margin: 0;
}

.news-title a {
  color: #000000;
  text-decoration: none;
}

.page-template-page-top .news-button-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-template-page-top .btn {
  display: inline-block;
  padding: 17px 67px;
  background-color: #9f8530;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.news-list .news-item:last-child {
  border-bottom: none;
}

/* 相談・お問合せの調節　*/
.page-template-page-top .content-block.contact {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  margin-top: 100px;
  margin-bottom: 80px;
}

.page-template-page-top .contact .btn {
  position: relative;
  display: block;  /* ブロックに変えて横幅いっぱい */
  padding: 17px 67px 17px 0;
  background-color: transparent;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 16px;
  font-size: 50px !important;
  transition: color 0.3s;
  overflow: visible;
  padding-bottom: 10px;
  width: 100%;      /* 親幅いっぱい */
  max-width: none;  /* 制限なし */
  box-sizing: border-box;
  
}


.page-template-page-top .contact .btn::after {
  content: '\2192';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 80px;
  color: #000;
  z-index: 10; /* 矢印は上に表示 */
  background: transparent;
}

.page-template-page-top .contact .block-title h2 {
  font-size: 35px; 
  font-weight: bold;
  color: #000 !important;
  margin-bottom: 12px;
}

.page-template-page-top .contact .block-body p {
  font-size: 15px; 
  line-height: 1.6;
  font-weight: normal;
  margin-bottom: 9px;
}

.page-template-page-top .content-block.contact .block-title,
.page-template-page-top .content-block.contact .block-body {
  max-width: none;        /* 幅制限外す */
  padding-left: -60px;     /* ボタンの左パディングと合わせる */
  margin-left: 0;
  text-align: left;
}

.page-template-page-top .content-block.contact .btn::before { /* 下線 */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #000;
  border-radius: 0;
  z-index: 1;
}





/* スマホ向け */
@media screen and (max-width: 745px) {
[data-header*="type-1"] .ct-header [data-row*="top"] {
  margin-bottom: 10px;
}

.page-template-page-top #main-content {
  padding-bottom: 20px; 
}

.page-template-page-top .content-block:last-child {
  margin-bottom: 50px; 
}


  /* 全体の余白調整 */
  .page-template-page-top .container {
    width: 95%;
    padding: 0 10px;
  }

  .page-template-page-top .content-block.main-visual {
  width: 100vw; /* ビューポートいっぱいに広げる */
  margin-left: calc(-50vw + 50%); /* 画面左端に合わせるために、左右の余白分だけ左にずらす */
  padding: 0;
}

  /* メインビジュアルの画像・テキスト */
  .page-template-page-top .main-visual {
   width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}


.page-template-page-top .main-visual .container {
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

  .page-template-page-top .image-container {
  position: relative;
  width: 100vw;
  height: 110vh ;
  overflow: hidden ;
  margin: 0 ;
  padding: 0 ;
  }

  .page-template-page-top .image-container img {
   position: absolute !important;
  top: 40% !important;
  left: 50% !important;
  transform: translate(calc(-50% + 0px), -50%) !important; /* ← 左に20pxずらす */
  height: 80% !important;
  width: auto !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  }

   .page-template-page-top .overlay-text {
    top: 55% !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 15px !important;
    background-color: transparent !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left !important;
    z-index: 2 !important;
    margin-top: -30px;
    padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  }

.page-template-page-top .overlay-text h2 {
  font-size: 23px;
  margin: 0 !important;
  padding: 0 10px !important; /* 左右均等の余白に */
  position: relative;
  top: -30px; /* 必要なら */
  text-align: left !important;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  font-weight: bold;
}

.page-template-page-top .overlay-text p {
  font-size: 16px;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: 30px;
  text-align: left !important;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.6; /* ← 統一された行間 */
  display: inline-block; /* ← spanと揃えて挙動を安定化 */
  background-color: transparent !important;
  font-weight: bold;
}

.page-template-page-top .overlay-text p + p {
  margin-top: 0 !important; /* ← 次のpとの間をゼロに */
}

  .page-template-page-top .overlay-text h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80px;       /* 背景は左へ40px広げる */
  width: 100vw;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  z-index: -1;
  display: none;
}

.page-template-page-top .overlay-text h2 span {
  line-height: 1 !important;
  background-color: rgba(255,255,255,1);
  display: inline-block;
  padding: 0.5em 1em; /* 左のパディング大きめ */
  margin-left: -20px; /* ここは0か調整なし */
  position: static; 
}

.page-template-page-top .overlay-text p span {
  line-height: 1 !important;
  background-color: rgba(255,255,255,1) !important;
  display: inline-block;
  padding: 5px 8px; /* 上下5px、左右8pxで均等寄せ */
  margin-left: 0;
  position: static;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  text-align: left;
}

.page-template-page-top .overlay-text p::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;      
  width: calc(100vw - 200px);
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  z-index: -1;
  display: block;
}

  /* 各セクションを縦並びに変更 */
  .page-template-page-top .dx-trouble-inner,
  .page-template-page-top .dsettle-not-just-introduce-inner,
  .page-template-page-top .dx-smooth-inner,
  .page-template-page-top .flexsupport-inner {
    flex-direction: column;
    gap: 20px;
  }

  /* そのDXの～ */

  .page-template-page-top .dx-trouble {
    padding-top: 0 !important;
    margin-top: -100px ;
    margin-right: 10px;
  }

 .page-template-page-top .dx-trouble-inner {
    flex-direction: column;
    gap: 20px !important;
    margin-top: 0!important;
  }

  .page-template-page-top .dx-trouble-image {
    order: 1;
    margin: 0 auto !important;
    text-align: center; /* 親ブロックを中央寄せ */
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;  /* 親の幅いっぱいに */
    overflow: visible;
    flex: none !important;
  }

  .page-template-page-top .dx-trouble-image img {
    width: 100%;   /* 親にフィットさせる */
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto;   
    margin-top: -30px;
  }

  .page-template-page-top .dx-trouble-text .block-body {
    order: 2;
  }

   .page-template-page-top .dx-trouble-text {
    display: contents;
    flex: none !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: left !important;
    margin-left: 0 !important;
  }

  .page-template-page-top .dx-trouble-text .block-title {
  order: 0;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
  width: 100%;
  }
  
  .page-template-page-top .dx-trouble .block-title h2 {
  font-size: 24px;
  display: block;
  width: 105%;
  box-sizing: border-box;
  text-align: left;
  white-space: normal; /* ←nowrap外す！ */
  padding: 0;
  }

  .page-template-page-top .dx-trouble .block-body p {
    font-size: 16px;
    margin: -5px 0;
    line-height: 1.4;
    margin-top: -30px;
  }

  .page-template-page-top .dx-trouble {
  margin-bottom: 10px; 
}

  /* 必要なのは～ */ 
   .page-template-page-top .only-pc {
    display: none;
  }

  .page-template-page-top .only-sp {
    display: block;
    padding-right: 13px;  
  }

  .page-template-page-top .dsettle-not-just-introduce-inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 50px;
  }

  .page-template-page-top .dsettle-not-just-introduce.only-sp h2 {
  font-size: 24px;
  display: inline-block;
  text-align: left !important;
  margin-left: 0 !important;
  width: 100%;
  color: #000;
  }

  .page-template-page-top .dsettle-not-just-introduce-image {
  margin-bottom: 20px;
  }

  .page-template-page-top .dsettle-not-just-introduce-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: -20px;
  margin-left: 0px;
}

.page-template-page-top .dx-smooth-text-inner {
    flex-direction: column;
  }

  .page-template-page-top .dsettle-not-just-introduce-text {
  width: 100%;
  text-align: left !important;
    margin-left: 0 !important;
  }

  .page-template-page-top .dsettle-not-just-introduce.only-sp p {
   font-size: 16px;
   text-align: left !important;
    margin-left: 0 !important;
    margin-top: -20px;
    color: #000;
  }

  .page-template-page-top .dx-smooth-text-text,
  .page-template-page-top .dx-smooth-text-image {
    flex: 1 1 100%;
  }
 


  /* 人と業務が～ */
  .page-template-page-top .only-pc {
    display: none;
  }

  .page-template-page-top .only-sp {
    display: block;
    padding-right: 13px;
  }

  .page-template-page-top .dx-smooth-inner {
    flex-direction: column;
    align-items: flex-start !important; 
  text-align: left !important;  
  margin-top: -70px;
  }

  .page-template-page-top .dx-smooth-text {
    text-align: left !important;
    margin-left: 0 !important;
  }

 body.page-template-page-top .dx-smooth-workplace h2 {
  font-size: 24px !important;
  text-align: left !important;
  margin-left: 0 !important;
  max-width: 100% !important; /* 120% → 100%に */
  width: 100% !important;     /* 115% → 100%に */
  word-break: break-word;     /* 折り返しを促進 */
  overflow-wrap: break-word;  /* こっちも念のため */
  color: #000;
}

  .page-template-page-top .dx-smooth-text-image {
    margin-bottom: 20px;
  }

  .page-template-page-top .dx-smooth-text-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

body.page-template-page-top .dx-smooth-workplace p {
   font-size: 16px;
   text-align: left !important;
   margin-left: 0 !important;
   margin-top: 0px !important;
   max-width: 100%; 
   width: 100%; 
   white-space: normal;
   word-break: break-word;
   color: #000;
  }

.page-template-page-top .dx-smooth-text-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

  /* FlexSupport */
  .page-template-page-top .flexsupport .only-pc {
    display: none;
  }

  .page-template-page-top .flexsupport .only-sp {
    display: block;
    padding-left: 15px !important;
  padding-right: 15px !important;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  }

  .page-template-page-top .flexsupport {
  margin-top: 80px;
  }
  
  .page-template-page-top .flexsupport.only-sp .block-body {
    padding-left: 0 !important;
  padding-right: 0 !important;
  }

  .page-template-page-top .flexsupport.only-sp .support-block {
  padding-left: 0 !important;
  padding-right: 0 !important;
  }

  .page-template-page-top .flexsupport.only-sp .block-title h2 {
   font-size: 33px;
  }

   .page-template-page-top .flexsupport.only-sp  img {
    margin: -20px 0;
    margin-left: -15px;
    margin-top: 30px;
  }

  .page-template-page-top .flexsupport.only-sp .block-body p {
    font-size: 16px;
  line-height: 1.4;
  max-width: 100%;
  margin: 0;           /* ←ここ！ */
  padding: 0;          /* 念のため追加 */
  text-align: left;
  word-break: normal; 
}

  .page-template-page-top .flexsupport.only-sp .support-block h3 {
  font-size: 22px; 
  line-height: 1.6;
  padding: 0 10px;  
  margin-bottom: 12px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  }

  .page-template-page-top .flexsupport.only-sp .support-block p {
  font-size: 16px; 
  line-height: 1.4; 
  padding: 0 10px;   
  padding-left: 0 !important;
  padding-right: 0 !important;
  }

  .page-template-page-top .flexsupport.only-sp hr {
  border: none;
    border-top: 1px solid #000000;
    background-color: transparent; /* ←これで余計な塗りつぶし消す */
    height: 0; /* ←万が一高さが残ってたらリセット */
    box-shadow: none; /* 念のため影もリセット */
    width: 100%;
    margin: 20px auto;      
}

.page-template-page-top .flexsupport-button-wrapper .btn {
margin-top: 10px;
}

  /* Tools */
.page-template-page-top .content-block.tools {
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 80px;
}


.page-template-page-top .tool-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.page-template-page-top .tools-cards {
  display: flex;
  flex-direction: column; /* カード縦積み */
  gap: 15px;
  max-width: 100vw;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  margin: 0 auto;
  align-items: stretch;
}

.page-template-page-top .tool-card {
  display: flex;          /* 横並び */
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #A18941;
  border-radius: 6px;
  padding: 8px 13px;
  background: #fff;
  min-height: auto;
  max-width: 100%;
}

.page-template-page-top .tool-card img {
  width: 80px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.page-template-page-top .tool-card-text {
  flex: 1;                /* 残り幅全部使う */
  text-align: left;
}

.page-template-page-top .tool-card-text h3 {
  min-height: 30px; /* 必要なら調整 */
  margin: 0 0 4px;
  line-height: 1.3;
  font-size: 21px;
}

.page-template-page-top .tool-card-text p {
  margin: 0;
  line-height: 1.4;
  font-size: 14px;
  word-break: break-word;
  margin-top: 10px;
  color: #000;
}

.page-template-page-top .tools .block-title h2 {
  font-size: 35px;  
  color: #000;
  margin-bottom: 0;
  padding-left: 10px;
}


.page-template-page-top .block-body p {
  font-size: 16px;  
  margin-top: 8px;
  line-height: 1.4;
  padding-left: 10px;
}

.page-template-page-top .tool-card-1 .tool-card-text p {
  margin-top: 0;
}

.page-template-page-top .tool-card.tool-card-1 img {
  margin-top: 0px !important;
}

.page-template-page-top .tool-card-3 .tool-card-text p {
  margin-top: 3px;
}

.page-template-page-top .tool-card-4 .tool-card-text p {
  margin-top: 3px;
}

.page-template-page-top .tool-card-5 .tool-card-text p {
  margin-top: 3px;
}

  .page-template-page-top .tools-button-wrapper {
  margin-top: 50px; 
  }


/* お知らせ */
 .page-template-page-top .only-pc {
    display: none !important;
  }

  .page-template-page-top .only-sp {
    display: block !important;
    padding-right: 13px; /* お好みで増やす */
  margin-right: 0; /* 変にマージン入ってたらリセット */
  box-sizing: border-box;
  }

.page-template-page-top .news.only-sp .block-title h2 {
  margin-top: 80px;
  margin-bottom: 30px !important;
  font-size: 32px;
}
  
  .page-template-page-top .only-sp .news-list {
    padding: 0;
    margin: 0;
    list-style: none;
    margin-bottom: -45px;
  }

  .page-template-page-top .only-sp .news-item {
    display: flex;
    flex-direction: column;
    gap: 0px;
    border-bottom: 1px solid #000000;
    padding: 15px 0;
    margin-bottom: 30px;
  }

  .page-template-page-top .only-sp .news-date {
    font-size: 17px;
    color: #000;
    margin: -10px -10px;
    margin-bottom: 10px;
    order: 1;
  }

  .page-template-page-top .only-sp .news-title {
    font-size: 23px;
    font-weight: bold;
    color: #000;
    margin-top: -10px;
    margin-bottom: 10px;
    order: 2;
  }

  .page-template-page-top .only-sp .news-list .news-item:last-child {
    border-bottom: none;
  }

  
  .page-template-page-top .news.only-sp .news-title a {
    color: #000;
    text-decoration: none;
  }

  .page-template-page-top .news.only-sp .news-title a:hover {
    text-decoration: underline;
  }

  /* お知らせサムネ調整（必要に応じて） */
.page-template-page-top .content-block.contact {
  padding-left: 15px;
  padding-right: 15px;
}

.page-template-page-top .only-sp .news-thumb {
  width: 100%;
  max-width: 100%;
  margin-top: -10px;
  margin-bottom: 10px;
}

  .page-template-page-top .only-sp .news-thumb img {
    width: 100%;      /* 横幅いっぱい */
  height: 180px;     /* 縦の高さ */
  object-fit: cover;
  border-radius: 0;
  }
  
  .page-template-page-top .only-sp .news-item {
    display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px; /* お好みで余白調整 */
}

  .page-template-page-top .only-sp .news-text {
    width: 100%;
    text-align: left;
    display: flex;
  flex-direction: column;
  }


  /* 相談・お問い合わせ */  
  .page-template-page-top .contact .btn {
    font-size: 24px !important;
  }

  .page-template-page-top .contact .btn::after {
    content: "\2192";
    position: absolute;
    right: 13px;
    font-size: 45px;
    top: 56%;
  }

  .page-template-page-top .contact .btn::before {
    left: 20px;
    right: 20px;
  }

  .page-template-page-top .contact .block-title h2 {
    font-size: 26px;
    margin-left: -6px;
    margin-bottom: 19px;
  }

  .page-template-page-top .contact .block-body p {
    font-size: 15px;
    line-height: 1.6;
    margin-left: -16px;
    margin-right: 3px;
    margin-bottom: 6px;
  }

  
.page-template-page-top .content-block.contact .btn::before {
     left: -6px;
     right: 13px;
  }


  .page-template-page-top .content-block:last-child {
    margin-bottom: 60px;
  }
}

@media screen and (max-width: 1280px) and (min-width: 768px) {
  .main-visual .image-container {
    height: 500px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 65%);
  }

  .main-visual .image-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top;
    display: block;
  }

  .main-visual .overlay-text h1 {
    font-size: 2rem; /* デフォルトより小さめに */
  }

  .main-visual .overlay-text p {
    font-size: 1rem; /* 小さめに */
  }

  .main-visual .overlay-text {
    top: 50%; /* テキスト位置も中央より上にするなど調整 */
    left: -10px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
  .site-logo-container img {
    max-height: 42px; /* 必要に応じて調整 */
    width: auto;
  }

  .page-template-page-top #main-content {
    padding: 0;
    background: #ffffff;
}

  .page-template-page-top .dx-trouble-inner {
    margin-top: 50px !important;
}
}

@media screen and (max-width: 420px) {
.page-template-page-top .overlay-text p span {
  max-width: calc(100% - 20px);
  display: inline-block;
  box-sizing: border-box;
}
  .page-template-page-top .overlay-text p span:last-child {
    margin-right: 0 !important; /* もし最後だけ余白いらんかったら */
  }
}

@media screen and (min-width: 746px) and (max-width: 1024px) {
  .page-template-page-top .tools-cards {
  flex-wrap: wrap;  /* 折り返す */
  gap: 20px;
}

.page-template-page-top .tool-card {
  flex: 1 1 calc(20% - 16px); /* 5枚並べて隙間考慮 */
  max-width: none;
  min-width: 0;
}
}

