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: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 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;
}

/* =========================
   Main Visual
========================= */

.main-visual {
  padding: 80px 0 20px;
}

.mv-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* テキスト */
.mv-text h2 {
  font-size: clamp(28px, 3vw, 35px);
  line-height: 1.4;
  margin-bottom: 24px;
}

.mv-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* 画像 */
.mv-image {
  flex: 1;
}

.mv-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 旧MainVisual向けCSS？ */
.page-template-page-top .main-visual {
  position: relative;
  width: 100%;
  overflow: visible;
  padding-left: 20px;
  margin-top: 56px;
}

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

/* メイン画像の調整 */
.page-template-page-top .image-container {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -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: 50%;
  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;
}

.mv-cta {
  display: inline-block;
  margin-top: 0;
  background: #9f8530;
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.mv-cta:hover {
  transform: translateY(-2px);
  background: #7f6a26;
  color: #fff;
}

/* そのDXの悩み、まずは話してみませんか？ の調整 */
.page-template-page-top .dx-trouble-inner {
  margin-top: 40px !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;
  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;
  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: 40px 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;
  box-sizing: border-box;
}

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

/* FunDX FlexSupport の調整 */
.page-template-page-top .flexsupport {
  margin-bottom: 80px;
  margin-top: 40px !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;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: #9f8530;
  color: #fff;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #7f6a26;
  transform: translateY(-2px);
  color: #fff;
}

.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;
  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;
}

.tool-card {
  transition: 0.3s;
  cursor: pointer;
}

.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;
  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 .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: 40px;
  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;
}

.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::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 (max-width: 768px) {
  .mv-inner {
    flex-direction: column;
    gap: 40px;
  }

  .mv-text {
    order: 1;
  }

  .mv-image {
    order: 2;
  }
}

/* スマホ向け */
@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: 100%;
    max-width: none;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  .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: 56px 0 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;
    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;
    background-color: transparent !important;
    font-weight: bold;
  }

  .page-template-page-top .overlay-text p + p {
    margin-top: 0 !important;
  }

  .page-template-page-top .overlay-text h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80px;
    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;
    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;
    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;
  }

  .mv-cta {
    margin-top: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 160px;
  }

  /* only-sp の右余白ズレ防止 */
  .page-template-page-top .only-pc {
    display: none !important;
  }

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

  /* 各セクション共通 */
  .page-template-page-top .dx-trouble,
  .page-template-page-top .dsettle-not-just-introduce.only-sp,
  .page-template-page-top .dx-smooth-workplace,
  .page-template-page-top .flexsupport.only-sp,
  .page-template-page-top .content-block.tools,
  .page-template-page-top .news.only-sp,
  .page-template-page-top .content-block.contact {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .page-template-page-top .block-title,
  .page-template-page-top .block-body,
  .page-template-page-top .tools-text,
  .page-template-page-top .news-inner,
  .page-template-page-top .contact .block-title,
  .page-template-page-top .contact .block-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .page-template-page-top .block-title h2,
  .page-template-page-top .tools .block-title h2,
  .page-template-page-top .news.only-sp .block-title h2,
  .page-template-page-top .contact .block-title h2,
  .page-template-page-top .dsettle-not-just-introduce.only-sp h2,
  body.page-template-page-top .dx-smooth-workplace h2,
  .page-template-page-top .dx-trouble .block-title h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  .page-template-page-top .block-body p,
  .page-template-page-top .dsettle-not-just-introduce.only-sp p,
  body.page-template-page-top .dx-smooth-workplace p,
  .page-template-page-top .flexsupport.only-sp .block-body p,
  .page-template-page-top .flexsupport.only-sp .support-block p,
  .page-template-page-top .contact .block-body p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100%;
    line-height: 1.7;
    box-sizing: border-box;
  }

  /* 各セクションを縦並びに変更 */
  .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: -40px !important;
    margin-bottom: 48px !important;
  }

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

  .page-template-page-top .dx-trouble-image {
    order: 1;
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0 auto !important;
    overflow: visible;
    flex: none !important;
  }

  .page-template-page-top .dx-trouble-image img {
    width: 88%;
    max-width: 320px;
    height: auto;
    display: inline-block;
    margin: 0 auto !important;
  }

  .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;
    width: 100%;
  }

  .page-template-page-top .dx-trouble .block-title h2 {
    font-size: 24px;
    display: block;
    box-sizing: border-box;
    text-align: left;
    white-space: normal;
    padding: 0;
    color: #000;
  }

  .page-template-page-top .dx-trouble .block-body p {
    font-size: 16px;
    margin: 0 !important;
    line-height: 1.7;
  }

  /* 必要なのは～ */
  .page-template-page-top .dsettle-not-just-introduce-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0 !important;
    gap: 12px !important;
  }

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

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

  .page-template-page-top .dsettle-not-just-introduce-image img {
    width: 88%;
    max-width: 320px;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto !important;
  }

  .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-top: 0 !important;
    color: #000;
  }

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

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

  /* 人と業務が～ */
  .page-template-page-top .dx-smooth-workplace {
    margin-top: 56px !important;
  }

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

  .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;
    max-width: 100% !important;
    width: 100% !important;
    word-break: break-word;
    overflow-wrap: break-word;
    color: #000;
  }

  .page-template-page-top .dx-smooth-image {
    width: 100%;
    justify-content: center;
  }

  .page-template-page-top .dx-smooth-image img {
    width: 88%;
    max-width: 320px;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto;
  }

  body.page-template-page-top .dx-smooth-workplace p {
    font-size: 16px;
    text-align: left !important;
    margin-top: 0 !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 {
    margin-top: 64px !important;
    margin-bottom: 64px !important;
  }

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

  .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: 28px !important;
    margin-bottom: 12px !important;
  }

  .page-template-page-top .flexsupport.only-sp img {
    width: 88%;
    max-width: 320px;
    display: block;
    margin: 0 auto 20px !important;
  }

  .page-template-page-top .flexsupport.only-sp .block-body p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    word-break: normal;
  }

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

  .page-template-page-top .flexsupport.only-sp .support-block p {
    font-size: 16px;
    line-height: 1.7;
    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: 16px 0;
  }

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

  /* Tools */
  .page-template-page-top .content-block.tools {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 64px !important;
  }

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

  .page-template-page-top .block-body p {
    font-size: 16px;
    margin-top: 8px;
    line-height: 1.7;
    padding-left: 0 !important;
  }

  .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: 12px !important;
    max-width: 100vw;
    width: 100%;
    padding: 0 !important;
    box-sizing: border-box;
    margin: 0 auto;
    align-items: stretch;
  }

  .page-template-page-top .tool-card {
    display: flex;
    align-items: center;
    gap: 12px !important;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #A18941;
    border-radius: 6px;
    padding: 10px 12px !important;
    background: #fff;
    min-height: auto;
    max-width: 100%;
  }

  .page-template-page-top .tool-card img,
  .page-template-page-top .tool-card.tool-card-1 img {
    width: 56px !important;
    max-width: 56px !important;
    max-height: none !important;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
    margin: 0 !important;
  }

  .page-template-page-top .tool-card-text {
    flex: 1;
    text-align: left;
  }

  .page-template-page-top .tool-card-text h3 {
    min-height: auto !important;
    margin: 0 0 4px !important;
    line-height: 1.35;
    font-size: 18px !important;
  }

  .page-template-page-top .tool-card-text p,
  .page-template-page-top .tool-card-1 .tool-card-text p,
  .page-template-page-top .tool-card-3 .tool-card-text p,
  .page-template-page-top .tool-card-4 .tool-card-text p,
  .page-template-page-top .tool-card-5 .tool-card-text p {
    margin: 0 !important;
    line-height: 1.6 !important;
    font-size: 13px !important;
    word-break: break-word;
    color: #000;
  }

  .page-template-page-top .tools-button-wrapper {
    margin-top: 32px !important;
  }

  /* お知らせ */
  .page-template-page-top .news.only-sp .block-title h2 {
    margin-top: 64px !important;
    margin-bottom: 30px !important;
    font-size: 28px !important;
  }

  .page-template-page-top .only-sp .news-list {
    padding: 0;
    margin: 0;
    list-style: none;
    margin-bottom: 0 !important;
  }

  .page-template-page-top .only-sp .news-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px !important;
    border-bottom: 1px solid #000000;
    padding: 12px 0 !important;
    margin-bottom: 20px !important;
  }

  .page-template-page-top .only-sp .news-date {
    font-size: 14px !important;
    color: #000;
    margin: 0 0 4px !important;
    order: 1;
  }

  .page-template-page-top .only-sp .news-title {
    font-size: 18px !important;
    font-weight: bold;
    color: #000;
    margin: 0 !important;
    order: 2;
    line-height: 1.5;
  }

  .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 .only-sp .news-thumb {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    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-text {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  .page-template-page-top .news-button-wrapper {
    margin-top: 24px !important;
  }

  /* 相談・お問い合わせ */
  .page-template-page-top .content-block.contact {
    margin-top: 64px !important;
    margin-bottom: 40px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-template-page-top .contact .btn {
    font-size: 24px !important;
  }

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

  .page-template-page-top .contact .btn::before {
    left: 0 !important;
    right: 0 !important;
  }

  .page-template-page-top .contact .block-title h2 {
    font-size: 28px !important;
    margin-left: 0 !important;
    margin-bottom: 12px !important;
  }

  .page-template-page-top .contact .block-body p {
    font-size: 15px;
    line-height: 1.7;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 6px !important;
  }

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

  .page-template-page-top .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 160px;
  }
}

@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);
    max-width: none;
    min-width: 0;
  }
}

/* =========================
   TOP メインビジュアル SP再調整
   column-reverse + 次セクションかぶり解消
   ========================= */
@media screen and (max-width: 745px) {
  /* メインビジュアル全体 */
  .page-template-page-top .main-visual {
    margin-top: 72px !important;
    padding: 0 0 32px !important;
  }

  .page-template-page-top .mv-inner {
    display: flex;
    flex-direction: column-reverse !important;
    gap: 20px !important;
    padding: 0 !important;
  }

  /* 以前の order 指定を打ち消す */
  .page-template-page-top .mv-text,
  .page-template-page-top .mv-image {
    order: unset !important;
  }

  /* テキスト側 */
  .page-template-page-top .mv-text {
    padding: 0 0 12px !important;
  }

  .page-template-page-top .mv-text h2 {
    font-size: 24px !important;
    line-height: 1.45;
    margin: 0 0 18px !important;
    color: #22354a;
  }

  .page-template-page-top .mv-text p {
    font-size: 14px !important;
    line-height: 1.9;
    margin: 0 0 24px !important;
    color: #5e6f82;
  }

  .page-template-page-top .mv-text h2 span,
  .page-template-page-top .mv-text p span {
    display: inline;
    background: none !important;
    padding: 0 !important;
  }

  .page-template-page-top .mv-text > div {
    margin-top: 0 !important;
  }

  /* ボタン */
  .page-template-page-top .mv-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1;
    border-radius: 999px;
    margin-top: 0 !important;
    box-shadow: none;
  }

  /* 画像 */
  .page-template-page-top .mv-image {
    margin: 0 !important;
  }

  .page-template-page-top .mv-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  /* 次のセクションとかぶらないようにする */
  .page-template-page-top .dx-trouble {
    margin-top: 16px !important;
    margin-bottom: 48px !important;
    padding-top: 0 !important;
  }

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

  .page-template-page-top .dx-trouble .block-title h2 {
    margin-top: 0 !important;
  }
}