.flex,
.m_flex,
.t_flex {
  display: flex;
}
.pc {
  display: block;
}
.mob {
  display: none;
}

.enclosure {
  padding: 10%;
}

/* 画面全体の暗幕 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* モーダルの枠 */
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  max-height: 90vh;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
#bnr {
  display: none;
}

.new-badge {
  color: #fff;
  background: #f9b070;
  font-size: 80%;
  width: 4em;
  display: inline-block;
  text-align: center;
  border-radius: 1em;
  line-height: 140%;
  margin-left: 0.5em;
  letter-spacing: 0.05em;
}

.fs_ttl {
  font-size: 160%;
  font-weight: bold;
  margin: 0 0 0.5em 0.5em;
}

.field_area {
  flex-wrap: wrap;
  overflow-y: scroll;
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

.field_area::-webkit-scrollbar {
  background: #333333;
  width: 5px;
  height: 5px;
}

.field_area::-webkit-scrollbar-thumb {
  background-color: #ccc;
  /*border: 2px solid red;*/
}

.field_area::-webkit-scrollbar-thumb:hover {
  background-color: #f2f2f2;
}

.field_service {
  position: relative;
  width: 100%;
  height: auto;
  /*border: 1px solid #555;*/
  padding: 0.5em;
  margin: 0 1% 1% 0;
  background: linear-gradient(45deg, transparent 0px, #fff 0px),
    linear-gradient(135deg, transparent 30px, #fff 30px),
    linear-gradient(225deg, transparent 0px, #fff 0px),
    linear-gradient(315deg, transparent 30px, #fff 30px);
  background-position: bottom left, top left, top right, bottom right;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  max-height: 30vh;
}

.button_area {
  position: absolute;
  right: 1em;
  top: 1.5em;
  height: 2em;
  width: 50%;
  justify-content: flex-end;
}

.button_area a {
  width: 33%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #097fe3;
  border-radius: 1em;
  padding: 0 0.5em;
  margin-left: 0.5em;
  background: #fff;
  filter: drop-shadow(2px 2px 3px #bbb);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.button_area a:hover {
  color: #fff;
  transform: scale(0.95);
  background: #097fe3;
  filter: drop-shadow(1px 1px 2px #aaa);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.fs_post {
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
}

.fs_post .left {
  width: 30%;
}

.fs_post .right {
  width: 68%;
}

.field_service li {
  width: 50%;
}

.fs_post h4 {
  color: #097fe3;
  font-weight: bold;
  font-size: 120%;
}

.fs_post .left h4 {
  width: 40%;
}

.fs_post .left p {
  width: 60%;
  padding-left: 1em;
  border-left: 1px solid #ccc;
  margin-left: 1em;

  text-align: left;
}

.fs_post .right h4 {
  width: 15%;
}

.fs_post .right p {
  width: 85%;
  padding-left: 1em;
  border-left: 1px solid #ccc;
  margin-left: 1em;
  line-height: 180%;
  text-align: left;
}

.fs_post div {
  margin-bottom: 1em;
}

.set_title {
  font-size: 1.8vw;
  /*4.7vw 7em;*/
  color: #097fe3;
  font-family: "UD Shin Go Conde90 L";
  margin-bottom: 5%;
  position: absolute;
  z-index: 1;
  top: 20%;
  left: 2%;
}

.set_title span {
  font-size: 25% !important;
  color: #000;
  display: block;
  position: absolute;
  top: 75%;
  letter-spacing: 0.1em;
}

.set_h1 {
  position: absolute;
  color: #fff;
  top: 35%;
  left: 7%;
  font-size: 1.7vw !important;
  /*260%*/
  font-weight: 400;
  letter-spacing: 0.05em;
  filter: drop-shadow(2px 4px 6px black);
}

.detail {
  color: #000 !important;
  font-size: 100% !important;
  letter-spacing: 0.05em;
  line-height: 180%;
  width: 38%;
  margin: 8em 0 0 0;
  height: 125%;
  position: absolute;
  z-index: 10;
  background: hwb(0deg 100% 0% / 80%);
  width: 65%;
  padding: 3em 2em;
  margin: 0 0 0 5em;
  top: 43%;
  height: auto;
}

.title_bk {
  position: absolute;
  z-index: 0;
  height: 100vh;
}

.title_bk img {
  height: 100% !important;
}

/* タブ全体を囲むコンテナの設定 */
.tab-switch {
  display: flex;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  position: relative;
}

.tab-buttons {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background-color: #f8fafc;
  width: 25%;
  padding-top: 20%;
}

/* 各タブボタンの設定 */
.tab-buttons > label {
  flex-grow: 1;
  position: relative;
  padding: 1rem 1.5rem;
  background-color: #f2f3f4;
  color: #4b5563;
  text-align: left;
  cursor: pointer;
  transition: 0.3s all ease;
  font-weight: 600;
  border-radius: 0;
  border-right: 2px solid transparent;
  font-size: 120%;
  display: flex;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .tab-buttons>label:nth-child(3) {
        background: #f9b070;
        color: #fff;
      }*/

/* タブボタンのホバーおよび選択状態のスタイル */
.tab-buttons > label:hover {
  background-color: #e5e7eb;
}

.tab-buttons label.active {
  background-color: #097fe3;
  color: #fff;
  border-right-color: #757f96;
}

/* ラジオボタン自体は非表示 */
.tab-buttons input {
  display: none;
}

/* タブコンテンツのコンテナ */
.tab-content-container {
  flex-grow: 1;
  width: 70%;
  position: relative;
  height: 100vh;
}

/* タブコンテンツのスタイル */
.tab-content {
  display: none;
  /* JavaScriptで表示を制御 */
  width: 100%;
  height: 96%;
  padding: 2% 7% 2% 5%;
}

.unset {
  padding: 0%;
}

.B_ttl {
  line-height: 140%;
  margin: 1em 0;
}

.field_support_visual {
  width: 100%;
  height: 100vh;
  position: relative;
  background-size: cover;
  position: relative;
}

.fs_bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 70%;
  height: 100vh;
  background: #fff;
  overflow: hidden;
}

.enclosure {
  justify-content: space-between;
  flex-wrap: wrap;
}

.enclosure h2 {
  font-weight: bold;
  font-style: italic;
}

.enclosure div {
  width: 47%;
  margin: 2.5% auto;
  background: linear-gradient(45deg, transparent 0px, #fff 0px),
    linear-gradient(135deg, transparent 30px, #fff 30px),
    linear-gradient(225deg, transparent 0px, #fff 0px),
    linear-gradient(315deg, transparent 30px, #fff 30px);
  background-position: bottom left, top left, top right, bottom right;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  padding: 5% 5%;
}

.enclosure dt {
  color: #097fe3;
  font-weight: bold;
}

.enclosure dd {
  margin-bottom: 2%;
  border-bottom: 1px dotted #ccc;
}

.budget html {
  overflow: hidden;
}

.budget iframe {
  width: 100%;
  height: 450px;
}

.record,
.contact {
  width: 82%;
  /*60 */
  margin: 0 auto;
}

.budget {
  width: 100%;
  margin: 0 auto;
}

.budget a {
  text-align: center;
  width: 90%;
  line-height: 140%;
  font-size: 140%;
  margin: 5em auto 0 auto;
  background: #002665;
  color: #fff;
  padding: 3%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.budget a:hover {
  background: #fff;
  filter: drop-shadow(2px 2px 5px #002665);
  color: #002665;
  border: 1px solid #002665;
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.field_box {
  width: 15%;
  margin: 5% auto;
  height: 5em;
}

.field_bk {
  text-align: center;
  font-size: 90%;
  line-height: 140%;
  background: #002665;
  color: #fff !important;
  height: 3em;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  filter: drop-shadow(2px 2px 3px #002665);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
  min-width: 11em;
}

.field_bk:hover {
  border: 1px solid #002665;
  background: #fff;
  color: #002665 !important;
  filter: drop-shadow(2px 2px 5px #002665);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.budget_button {
  background: red;
  color: #fff;
  position: fixed;
  bottom: 140px;
  right: 80px;
  padding: 0.5%;
  font-size: 140%;
  font-weight: bold;
  width: 300px;
  text-align: center;
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.budget_button:hover {
  background: #fff;
  border: 1px solid red;
  color: red;
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
.step3 {
  border: 1px solid #097fe3;
  background: #fff;
  height: 3em;
  width: 14em; /*20%*/
  margin: 5em auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5em;
  filter: drop-shadow(2px 2px 3px #999);
  color: #097fe3 !important;
  font-size: 120%;
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.step3:hover {
  background: #097fe3;
  color: #fff !important;
  transform: scale(0.95);
  filter: drop-shadow(1px 1px 2px #555);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
#field_pan {
  margin: 1.4em 0 0 18vw;
}

.field_area {
  flex-wrap: wrap;
  overflow-y: unset;
  width: 80%;
  height: 100%;
  justify-content: space-between;
  margin: 0 auto 10em auto;
}
/***********************************************************************/
/* スマートフォン向けレスポンシブデザイン */
@media (max-width: 768px) {
  .flex {
    display: block;
  }
  .t_flex {
    display: flex;
  }
  .tab-switch {
    flex-direction: column;
  }

  .tab-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tab-buttons > label {
    text-align: center;
    border-right: none;
    border-bottom: 2px solid transparent;
  }

  .tab-buttons label.active {
    border-bottom-color: #757f96;
    border-right-color: transparent;
  }
  .fs_post .left,
  .fs_post .right {
    width: 100%;
  }
  .button_area {
    width: 100%;
    top: 6em;
    left: 0;
    right: 0;
    margin: auto;
  }
  .fs_post {
    margin-top: 7em;
  }
  .field_area {
    height: 80vh;
    position: relative;
  }
  .step3 {
    position: absolute;
    bottom: 5em;
    right: 0;
    left: 0;
    margin: auto;
  }
  .fs_post .left h4 {
    width: 20%;
  }
  .fs_post .left p {
    width: 70%;
  }
  .fs_post h4 {
    font-size: 140%;
  }
  .fs_post .right h4 {
    width: 100%;
    text-align: left;
  }
  .fs_post .right p {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
  }
}
/***********************************************************************/
/* --- レスポンシブ切替 Mobile--- */
@media screen and (max-width: 480px) {
  .flex,
  .t_flex {
    display: block;
  }
  .m_flex {
    display: flex;
  }
  .pc {
    display: none;
  }
  .mob {
    display: block;
  }
  .fs_post .left,
  .fs_post .right,
  .button_area {
    width: 100%;
  }
  #field_pan {
    margin: 4.5em 5% 0;
  }
  .button_area {
    top: unset;
    right: unset;
    bottom: 7.5em;
  }
  .button_area a {
    width: 75%;
    margin: 0 10% 1em 10%;
  }
  .field_area {
    margin: 0em auto 5em;
    width: 100%;
  }
  .fs_ttl {
    margin: 0 0 0.5em 0;
  }
  .field_service {
    max-height: unset;
    width: 90%;
    margin: auto;
    padding-bottom: 11em;
  }
  .fs_post {
    margin: 0;
  }
  .fs_post h4 {
    font-size: 120%;
  }
  .fs_post .left h4 {
    width: 35%;
  }
  .fs_post .right h4 {
    width: 100%;
    text-align: left;
    margin-top: 2em;
  }
  .fs_post .right p {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
  }
  .step3 {
    width: 80%;
    margin: 2em auto;
    position: static;
  }

  /*modal*/
  .modal-content {
    height: 100vh;
    max-height: 90vh;
    padding: 0.5em 1em;
  }
  .modal-content .B_ttl {
    font-size: 140%;
  }
  .budget {
    height: 75vh;
  }
  .budget html {
    overflow: hidden;
  }
  .form-preview-dl {
    padding: 10px 0 15px;
  }
  .form-preview-wrap .show-page-btn .btn {
    padding: 0.5em;
  }
  .form-preview-wrap .show-page-btn .btn {
    margin: 0.5em 0 0 0;
  }
  .show-page-btn {
    margin: 0px auto 0;
  }
}
