@charset "utf-8";
/* CSS Document */

@media screen and (max-width: 768px) {
  /* 768pxまでの幅の場合に適応される */

  /* top */

  .slider {
    justify-content: center;
    /* 真ん中に寄せる */
  }

  .slider-frame[data-index="0"],
  .slider-frame[data-index="2"] {
    display: none;
  }

  .slider-frame[data-index="1"] {
    width: 510px;
    max-width: 90vw;
    transform: none;
    /* ずらし解除 */
  }

  /* --- ハンバーガーメニュー内 --- */
  #fullMenu .menu-list span.title {
    font-size: 32px;
  }

  #fullMenu .menu-list li {
    font-size: 18px;
    gap: 15px;
  }

  .company-name8 {
    font-size: 20px;
    margin-right: auto;
  }

  .company-name9 {
    font-size: 24px;
  }

  .close-btn {
    font-size: 40px;
    padding: 20px;
  }

  .get-in-touch {
    font-size: 48px;
  }

  .phone {
    font-size: 24px;
  }

  /* --- メインコンテンツ --- */

  .hero-text-box {
    position: static;
    transform: none;
    text-align: left;
    white-space: normal;
  }

  .hero-title,
  .hero-title3 {
    font-size: 30px;
  }

  .heikousihenkei01 {
    transform: none;
    /* 平行四辺形を解除して四角形に */
  }

  .content_services,
  .portfolio_container_text {
    padding: 30px 15px;
  }

  .section-title {
    font-size: 40px;
  }

  .section-description {
    font-size: 14px;
  }

  .portfolio_container {
    flex-direction: column;
  }

  .column.shifted {
    margin-top: 0;
  }

  .portfolio-image {
    margin-bottom: 10px;
  }

  .title_botan {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .news-list {
    padding: 0 10px;
  }

  .news-item .news-link {
    /* flex-direction: column; */
  }

  .news-content_gazou {
    width: 100%;
    margin-bottom: 15px;
  }

  .news-content {
    width: 100%;
  }

  /* services */

  .services_main_text {
    font-size: 18px;
    line-height: 35px;
    padding: 10px;
  }

  #services {
    margin-top: 50px;
  }

  #tab1 p {
    font-size: 18px;
    margin-left: 0px;
    padding: 10px;
  }

  .gazou_meisyou {
    white-space: normal;
    line-height: 28px;
    border-radius: 10px;
    height: 130px;
    padding: 10px;
    margin: 0px;
    margin-bottom: 70px;
  }

  .tab-content_gazou01 {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .tab-content_gazou02 {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .tab-content_gazou03 {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 0;
  }

  .image-box {
    width: 44%;
  }

  #tab2 p {
    font-size: 18px;
    margin-left: 0px;
    padding: 10px;
  }

  #tab3 p {
    font-size: 18px;
    margin-left: 0px;
    padding: 10px;
  }

  /* services */

  /*recruit */

  /* テーブル全体の幅を調整 */
  .detail_table01 {
    width: 100%;
    margin: 30px auto 50px;
  }

  /* テーブルの行とセルをブロック要素に変更して縦並びにする */
  .detail_table01 tbody,
  .detail_table01 tr,
  .detail_table01_td01,
  .detail_table01_td02 {
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* paddingとborderを幅に含める */
  }

  /* 項目名（左側のセル）のスタイル調整 */
  .detail_table01_td01 {
    text-align: left;
    background-color: #f2f2f2;
    /* 背景色をつけて見やすくする */
    font-weight: bold;
    border-bottom: none;
    /* 下線を削除 */
    padding: 12px 15px;
  }

  /* 内容（右側のセル）のスタイル調整 */
  .detail_table01_td02 {
    text-align: left;
    border-top: none;
    /* 上線を削除 */
    padding: 12px 15px 12px 20px;
    border-bottom: #000 2px solid;
    /* 各項目の区切り線を設定 */
  }

  /* 最初の行の上線をリセットまたは調整 */
  .detail_table01 tr:first-child .detail_table01_td01 {
    border-top: #000 2px solid;
  }

  /* その他のボーダーをリセット */
  .detail_table01 tr:first-child .detail_table01_td02 {
    border-top: none;
  }

  /* 最後のセルの下のボーダーが二重にならないように調整 */
  .detail_table01 tr:last-child .detail_table01_td02 {
    border-bottom: #000 2px solid;
  }

  .tab-item.active {
    width: 202px;
  }

  .tab-item {
    width: 202px;
  }

  .services_container_recruit {
    margin: 80px 0px 80px;
  }

  .recruit_main_image {
    margin-bottom: 90px;
  }

  .tabs-container_recruit {
    margin: 0;
  }

  /*recruit */

  /* company */

  .sidebar ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .animation-wrapper {
    display: none;
  }

  .logo-wrapper {
    display: block;
  }

  .mark-image_logo {
    width: 100%;
    max-width: 346px;
    min-width: 240px;
    height: auto;
    object-fit: contain;
  }

  .logo_concept {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .info-row {
    flex-direction: column;
    align-items: center;
  }

  .info-label {
    flex: 0 0 0px;
  }

  .info-value {
    text-align: center;
  }

  /* company */

  /* portfolio */

  .tabs-nav_port {
    flex-direction: column;
    align-items: center;
  }

  .tab-item_port.active {
    width: 300px;
  }

  .tab-item_port {
    width: 300px;
  }

  .portfolio-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-col {
    white-space: normal;
    word-break: break-word;
  }

  /* portfolio */

  /* privacypolicy */

  .top_main_image {
    width: 100%;
    margin: 0 auto;
  }

  .kojinjyouhou,
  .jyouhou {
    padding: 0 16px;
  }

  .kojinjyouhou_text,
  .jyouhou_text {
    line-height: 1.8;
  }

  /* privacypolicy */

  /* getintouch */

  .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group label {
    width: 100%;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
  }

  .contact-container {
    padding: 1em;
  }

  .form-group label {
    flex: 0 0 50px;
  }

  /* getintouch */

  /* footer */

  html {
    /* overflow-x: hidden; */
  }

  .footer-info-button {
    width: 100%;
    border-radius: 0px 0px 0px 0px;
  }

  /* footer */

  .category-title {
    font-weight: bold;
    font-size: 24px;
    margin-right: 80px;
    color: #12913c;
    white-space: nowrap;
  }

  .news-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #a4a4a4;
    padding: 25px 10px;
    /* flex-direction: column; */
    align-content: flex-start;
  }

  .news-container {
    max-width: 1540px;
    margin: 123px auto 80px;
    padding: 0px;
  }

  .news-category-nav {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0px;
    padding-left: 0px;
  }

  .news_container_category {
    display: flex;
    align-items: baseline;
    padding: 15px;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .news-item-meta {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
  }

  .article-title {
    margin: 0 0 44px 0px;
  }

  .article-meta {
    margin-left: 0px;
  }

  .article-body p {
    margin-left: 0px;
  }

  .hero-area {
    padding-left: 20px;
  }

  .form-privacy-policy {
    width: 100%;
    margin: 40px auto;
    text-align: left;
  }

  .form-submit {
    width: calc(100% - 0px);
    margin: 40px auto 0;
  }

  .another_getintouch {
    max-width: calc(100% - 30px);
  }

  .another_news {
    max-width: calc(100% - 50px) !important;
  }

  .news-item {
    gap: 0px;
  }

  .news-item-content {
    margin: 30px 0 auto 20px;
  }

}