/*
Theme Name: AIDER TCD115 Child
Template: aider_tcd115
Version: 1.0.0
*/

/* Sidebar付きLP / Tab Page 共通レイアウト */
.p-sidebar-template-layout {
  inline-size: min(calc(100% - 40px), var(--tcd-base-container-size));
  margin-inline: auto;
}
.p-sidebar-template-layout:not(.is-sidebar-none) {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.p-sidebar-template-layout:not(.is-sidebar-none) .p-sidebar-template-main {
  flex: 1 1 auto;
  min-inline-size: 0;
  inline-size: auto;
  margin-inline: 0;
}
.p-sidebar-template-layout--lp:not(.is-sidebar-none) .p-lp-body {
  inline-size: auto;
}
.p-sidebar-template-layout--tab:not(.is-sidebar-none) .p-tab_body {
  inline-size: auto;
}
.p-sidebar-template-layout.is-sidebar-none {
  inline-size: 100%;
}
.p-sidebar-template-layout.is-sidebar-none .p-lp-body {
  inline-size: min(var(--tcd-lp-content-min-size), var(--tcd-lp-content-max-size));
  margin-inline: auto;
}
.p-sidebar-template-layout.is-sidebar-none .p-tab_body {
  inline-size: min(calc(100% - 40px), 1100px);
  margin-inline: auto;
}

@media not all and (max-width: 1024px) {
  /* Compact LPでもSidebar使用時は、デフォルト固定ページと同じ最大1100px内に本文+Sidebarを収める */
  .p-lp-type1:has(.p-sidebar-template-layout:not(.is-sidebar-none)) {
    inline-size: min(calc(100% - 40px), var(--tcd-base-container-size));
  }
  .p-lp-type1:has(.p-sidebar-template-layout:not(.is-sidebar-none)) .p-sidebar-template-layout {
    inline-size: 100%;
  }
}
/* page__tab.php が付ける tab_page クラス相当を Sidebar版でも維持 */
.p-sidebar-template-layout--tab .p-sc_image_height_type2 .p-sc-layout_2_image_content,
.p-sidebar-template-layout--tab .p-sc_image_height_type2 .p-sc-layout_2_text_content {
  height: calc(1100px / 2);
}
.p-sidebar-template-layout--tab .p-sc_image_height_type2 .p-sc-layout_2_text_inner {
  max-height: calc((1100px / 2) - 140px);
}

@media (max-width: 991px) {
  .p-sidebar-template-layout:not(.is-sidebar-none) {
    flex-direction: column;
  }
  .p-sidebar-template-layout:not(.is-sidebar-none) .p-sidebar-template-main,
  .p-sidebar-template-layout:not(.is-sidebar-none) .l-sidebar {
    inline-size: 100%;
  }
  .p-sidebar-template-layout--tab .p-sc_image_height_type2 .p-sc-layout_2_text_inner {
    max-height: 330px;
  }
}
@media (max-width: 767px) {
  .p-sidebar-template-layout {
    inline-size: min(calc(100% - 40px), 100%);
  }
}
@media (max-width: 360px) {
  .p-sidebar-template-layout--tab .p-sc_image_height_type2 .p-sc-layout_2_text_inner {
    max-height: 300px;
  }
}

/* ----------------------------------------------------------------------
  Project - voice
---------------------------------------------------------------------- */
.p-archive--voice {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 13px;
}
.voice-archive-content {
  display: grid;
  gap: 70px;
}
.p-archive--voice .c-thumbnail-image {
  height: 100% !important;
}
.p-voice-cards-item {
  display: grid;
}
.p-voice-cards-item.no_info_contents {
  border-bottom: 1px solid #ddd;
}
.p-voice-cards-item__image {
  height: 210px;
  width: 100%;
}
.voice_archive_animation {
  opacity: 0 !important;
  transform: translateX(-10px);
  transition: opacity 0.6s, transform 0.6s;
}
.voice_archive_animation.animate {
  opacity: 1 !important;
  transform: translateX(0);
}
.p-voice-cards-item__title {
  font-size: 20px;
  --tcd-line-clamp: 3;
  font-weight: 600;
  line-height: 1.6;
  height: auto;
  padding: 40px;
  border: 1px solid #ddd;
  border-top: none;
  border-bottom: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.p-service_voice_list .p-voice-cards-item__title {
  font-size: 20px !important;
  text-align: left;
  --tcd-line-clamp: 3 !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  height: auto !important;
  padding: 40px !important;
  border: 1px solid #ddd !important;
  border-top: none !important;
  border-bottom: none !important;
  cursor: pointer !important;
  margin-bottom: 0 !important;
}
.p-service_voice_list .p-voice-cards-item__title a {
  color: #000 !important;
  transition: color 0.3s;
}
.p-service_voice_list .p-voice-cards-item__title:hover a {
  color: var(--tcd-accent-color) !important;
}
.p-service_voice_list .p-voice-caption_item {
  color: #000 !important;
}
.p-service_voice_list a:hover {
  text-decoration: none !important;
}
.p-service_voice_list .c-category_voice a {
  color: var(--tcd-accent-color) !important;
} 
.p-service_voice_list .p-voice-caption_item  span {
  line-height: 1 !important;
}

@media(max-width:767px){
  .p-service_voice_list .p-voice-cards-item__title {
    font-size: 16px !important;
    --tcd-line-clamp:2 !important;
    padding: 30px !important;
  }
}

.p-voice-cards-item__title.voice_no_img {
  border-top: 1px solid #ddd !important;
}
.p-voice-cards-item__title:hover a {
  color: var(--tcd-accent-color);
}
.p-voice-cards-item__title a {
  transition: color 0.3s;
}
.p-voice-caption_item {
  display: grid;
  gap: 20px;
  font-size: 14px;
  justify-content: start;
  text-align: left;
  padding: 20px;
  border: 1px solid #ddd;
}
.p-voice-caption_item  span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  margin-block: var(--tcd-half-read);
}
.p-voice-caption_item_one {
  align-items: center;
  height: 90px;
}
.c-category_voice {
  font-size: 16px;
  color: var(--tcd-accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  border: 1px solid #ddd;
  border-top: none;
  font-weight: 600;
  position: relative;
}
.p-voice_service_arrow {
  position: absolute;
  width: 2em;
  height: 2em;
  top: 50%;
  transform: translateY(-50%);
  right: 15px;
}
.p-voice_service_arrow::before {
  content: "";
  position: absolute;
  opacity: 0;
  width: 2em;
  height: 2em;
  background-image: var(--tcd-icon--arrow-right);
  background-repeat: no-repeat;
  background-size: contain;
  animation-fill-mode: both;
  animation-duration: 1.5s;
  animation-timing-function: ease;
  animation-name: none;
  animation-iteration-count: infinite;
  transition: opacity 0.3s;
}
.p-voice_service_list {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 40px;
}
.c-category_voice.voice_no_caption {
  border-top: 1px solid #ddd;
}
.c-category_voice a {
  transition: opacity 0.3s;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
 }

 @media (any-hover: hover) {
  c-category_voice a:hover {
    opacity: 0.6;
  }
  c-category_voice:hover .p-voice_service_arrow::before {
    animation-name: arrowFloatLeft;
    animation-fill-mode: both;
    animation-duration: 1.5s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    opacity: 1;
  }
}

@media (max-width:991px) {
  .p-archive--voice {
    grid-template-columns: 1fr;
  }
  .voice-archive-content {
    gap: 40px;
  }
}

@media (max-width:767px) {
  .p-archive--voice {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .c-category_voice {
    height: 50px;
  }
  .p-voice-cards-item__image {
    height: auto;
    aspect-ratio: 320 / 190;
  }
  .p-voice-cards-item__title {
    font-size: 16px;
    line-height: 2;
    padding: 30px;
    --tcd-line-clamp: 2;
    white-space: normal;
    word-break: break-word;
  }
  .p-voice-caption_item {
    padding: 15px;
    gap: 15px;
  }
}

/* voice single */
.p-single--voice {
  padding-top: 70px;
  position: relative;
  row-gap: 70px;
}
.p-single-voice-header {
  inline-size: min(calc(100% - 40px), 900px);
  margin-inline: auto;
  position: relative;
  z-index: 2;  /* 背景より手前 */

}
.p-single-voice-header_title_content {
  display: grid;
  gap: 20px;
  margin-bottom: 70px;
}
.c-category_voice_single {
  font-size: 16px;
  color: var(--tcd-accent-color);
  font-weight: 600;
  transition: opacity 0.3s;
}
.c-category_voice_single a {
  transition: opacity 0.3s;
  line-height: 1.6;
}

@media (any-hover: hover) {
  .c-category_voice_single a:hover {
    opacity: 0.6;
  }
  .p-voice-cards-item a:hover .p-voice-cards-item__title  {
    opacity: 0.6;
  }
}

.p-single-header__image_content {
  display: grid;
  position: relative;
}
.p-single-header__image_voice {
  width: 100%;
}
.p-single-header__image_voice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-single-header__caption {
  background-color: var(--tcd-accent-color);
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}
.p-single-header__caption_item {
  display: grid;
  gap: 30px;
}
.p-single-voice-industry {
  font-size: 16px;
  line-height: 1.6;
  margin-block: var(--tcd-half-read);
}
.p-single-voice-company {
  font-size:18px;
  font-weight: 600;
  line-height: 1.6;
  margin-block: var(--tcd-half-read);
}
.p-single-voice-url {
  transition: opacity 0.3s;
}
.p-single-voice_bg {
  position: absolute;
  z-index: -1;           /* ヘッダより後ろ */
  top: 150px;
  height: calc( 100% - 150px );
  width: 1100px;
  margin-inline: auto;
  background-color: #f6f6f6;
  left: 50%;            /* 親要素の中央に合わせる */
  transform: translateX(-50%);
}

/*キャプションが1つか2つの時*/
.p-single-voice_bg.has-two-metas{
  top: 70px;
  height: calc(100% - 70px);
}
.p-single__content_voice {
  inline-size: min(calc(100% - 40px), 900px);
  margin-inline: auto;
  position: relative;
  justify-content: center;
  padding-bottom: 100px;
}
.p-single__content_voice.no-caption {
  padding-bottom: 70px;
}
.p-single-voice_content_bg {
  position: absolute;
  z-index: -1;
  height: calc( 100% + 70px );
  top: -70px;
  width: 1100px;
  margin-inline: auto;
  background-color: #f6f6f6;
  left: 50%;
  transform: translateX(-50%);
}
.voice_single_bottom_service {
  display: grid;
  gap: 70px;
  cursor: pointer;
}
.voice_single_bottom_service_headline {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  color: #000;
  margin-block: var(--tcd-half-read);
}
.voice_single_bottom_service_content {
  display: flex;
  border: 1px solid #ddd;
  height: 270px;
}
.voice_single_bottom_service_left {
  display: flex;
  column-gap: 50px;
  width: 80%;
  padding: 30px 40px 30px 30px;
  border-right: 1px solid #ddd;
}
.voice_single_bottom_service_img {
  flex: 0 0 350px;
}
.voice_single_bottom_service_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-single-voice-list.is-few-items {
  justify-content: center;
}
.voice_single_bottom_service_desc {
  font-size: 16px;
  line-height: 2.4;
  display: flex;
  justify-content: center;
  align-items: center;
}
.voice_single_bottom_service_desc span {
  --tcd-line-clamp: 3;
}
.voice_single_bottom_service_right {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding-left: 15px;
}
.voice_single_bottom_service_title {
  font-size: 16px;
  transition: opacity 0.3s;
  margin-top: 3px;
  max-width: 150px;
  line-height: 1.6;
}
.voice_single_bottom_service_arrow {
  width: 2em;
  height: 2em;
  overflow: hidden;
}
.voice_single_bottom_service_arrow::before {
  content: "";
  position: absolute;
  width: 2em;
  height: 2em;
  background-image: var(--tcd-icon--arrow-right);
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateX(0);
  animation-fill-mode: both;
  animation-duration: 1.5s;
  animation-timing-function: ease;
  animation-name: none;
  animation-iteration-count: infinite;
}

@keyframes arrowFloatLeft_voice {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }
  50% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(10px);
    opacity: 0;
  }
}

@media (any-hover: hover) {

  .voice_single_bottom_service_content:hover .voice_single_bottom_service_arrow::before {
    animation-name: arrowFloatLeft_voice;
  }
  .voice_single_bottom_service_content:hover  .voice_single_bottom_service_title {
    opacity: 0.6;
  }
  :where(.voice_single_bottom_service_content):hover .c-thumbnail-image {
    transform: unset;
    filter: unset;
  }
  .p-single-voice-url:hover {
    opacity: 0.6;
  }
}

.p-single-voice-bottom {
  display: grid;
  gap: 70px;
  padding-top: 100px;
  padding-bottom: 100px;
  border-image:linear-gradient(#f6f6f6 0 0) fill 0 / 1 / 0 100vi; ;
}
.p-single-voice-bottom-title {
  text-align: center;
  font-size: 28px;
}
.p-single-voice-bottom .splide__pagination {
  display: flex;
  justify-content: center;
  gap: 17px;
  padding-top: 50px;
}
.p-single-voice-bottom .splide__pagination__page {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--tcd-accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.p-single-voice-bottom .splide__pagination__page.is-active {
  background-color: var(--tcd-accent-color);
}
.p-single-voice-bottom .p-voice-cards-item {
  background-color: #fff;
}

@media(max-width:991px) {
  .voice_single_bottom_service_content {
    display: grid;
    height: auto;
  }
  .voice_single_bottom_service_title {
    max-width: unset;
  }
  .voice_single_bottom_service_left {
    display: grid;
    width: 100%;
    padding: 40px;
    border-right: none;
    gap: 40px;
    border-bottom: 1px solid #ddd;
  }
  .voice_single_bottom_service_desc {
    font-size: 14px;
    line-height: 2.4;
  }
  .voice_single_bottom_service_desc span {
    --tcd-line-clamp: 4;
  }
  .voice_single_bottom_service_right {
    width: 100%;
    padding-left: 0;
    padding: 20px;
    gap: 0;
  }
  .p-single-voice-bottom {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

@media (max-width:767px) {
  .voice_single_bottom_service_left {
    display: grid;
    width: 100%;
    padding: 20px;
    border-right: none;
    gap: 20px;
    border-bottom: 1px solid #ddd;
  }
  .voice_single_bottom_service_right { 
    height: 60px;
  }
  .p-single-voice_bg {
    display: none;
  }
  .p-single--voice {
    padding-top: 30px;
  }
  .p-single-voice-header {
    inline-size: 100%;
  }
  .c-category_voice_single {
    font-size: 14px;
  }
  .p-single-voice-header_title_content {
    gap: 15px;
    margin-bottom: 30px;
  }
  .p-single-header__caption_item {
    gap: 15px;
  }
  .p-single--voice {
    gap: 40px;
  }
  .p-single-header__image_voice {
    margin: 0 -20px;
    width: unset;
  }
  .p-single-header__caption {
    margin:  0 -20px;
    padding: 20px;
  }
  .p-single-voice-industry {
    font-size: 14px;
  }
  .p-single-voice-company {
    font-size: 16px;
  }
  .p-single-voice-url {
    font-size: 14px;
  }
  .p-single__content_voice {
    padding-bottom: 40px !important;
    inline-size: 100%;
  }
  .p-single-voice_content_bg {
    top: -40px;
    height: calc( 100% + 40px);
  }
  .voice_single_bottom_service {
    gap: 30px;
  }
  .voice_single_bottom_service_headline {
    font-size: 20px;
    line-height: 1.5;
  }
  .p-single-voice-bottom-title {
    font-size: 20px;
  }
  .p-single-voice-bottom {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 40px;
  }
  .p-single-voice-bottom_contents {
    inline-size: 100%;
    justify-content: flex-start;
    width: unset;
    margin-right: -20px;
    margin-left: -20px;
  }
  .p-single-voice-list {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    gap: 10px;
    padding-right: 20px !important;
    padding-left: 20px !important;   
  }
  .p-single-voice-bottom .p-voice-cards-item {
    width: 270px;
  }
  .p-single-voice-bottom .p-voice-cards-item__title {
    font-size: 14px;
    white-space: normal; 
    word-break: break-word;  
  }
}

/* 会社案内関連ページ：Page Sidebarは「会社概要」メニューだけ表示 */
body:is(.page-id-115, .page-id-210, .page-id-212, .page-id-214, .page-id-1498) .l-sidebar .p-widget {
    display: none;
}
body:is(.page-id-115, .page-id-210, .page-id-212, .page-id-214, .page-id-1498) .l-sidebar #nav_menu-4 {
    display: block;
}
/* 会社案内関連ページ以外：「会社概要」メニューを非表示 */
body:not(.page-id-115):not(.page-id-210):not(.page-id-212):not(.page-id-214):not(.page-id-1498) .l-sidebar #nav_menu-4 {
    display: none;
}
.group_img {
    width: 100%;
    max-width: 760px;
    height: auto;
}

/* single-service：Sidebar追加時は通常の.l-contentsと同じ横幅に戻す */
.l-contents:has(.p-single--service) {
    inline-size: min(calc(100% - 40px), var(--tcd-base-container-size));
}

/* お客様の声：横長リストデザイン */
.p-archive--voice {
  grid-template-columns: 1fr;
  gap: 20px;
}
.p-voice-cards-item--custom {
  display: block;
  padding: 34px 44px 20px;
  border: 1px solid #ddd;
  background: #fff;
}
.p-voice-cards-item--custom > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
/* 今回のデザインではサムネイルを非表示 */
.p-voice-cards-item--custom .p-voice-cards-item__image {
  display: none;
}
.p-voice-cards-item--custom .p-voice-cards-item__content {
  display: grid;
  gap: 14px;
}
/* タイトル */
.p-voice-cards-item--custom .p-voice-cards-item__title {
  position: relative;
  height: auto !important;
  margin: 0 !important;
  padding: 0 0 0 20px !important;
  border: 0 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  text-align: left !important;
}
.p-voice-cards-item--custom .p-voice-cards-item__title::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 4px;
  background: var(--tcd-accent-color);
}
.p-voice-cards-item--custom .p-voice-cards-item__title .c-line-clamp {
  display: block;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
  word-break: normal;
  overflow-wrap: anywhere;
}
/* 業種・会社名 */
.p-voice-cards-item--custom .p-voice-caption_item {
  display: grid;
  justify-content: start;
  gap: 8px;
  height: auto;
  padding: 0;
  border: 0;
  font-size: 14px;
  text-align: left;
}
.p-voice-cards-item--custom .p-voice-caption_item span,
.p-service_voice_list .p-voice-cards-item--custom .p-voice-caption_item span {
  margin: 0;
  line-height: 1.6 !important;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.p-voice-cards-item--custom .p-voice-caption_item_one {
  height: auto;
}
/* 「中途採用」などの関連サービス */
.p-voice-cards-item--custom .c-category_voice {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  min-width: 120px;
  height: auto;
  margin-top: 16px;
  border: 1px solid var(--tcd-accent-color);
  border-radius: 999px;
  color: var(--tcd-accent-color);
  font-size: 16px;
  font-weight: 600;
}
.p-voice-cards-item--custom .p-voice_service_list {
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 2px 28px;
  justify-content: center;
  line-height: 1.4;
}
.p-voice-cards-item--custom .c-category_voice a {
  color: var(--tcd-accent-color);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
/* 元デザインの矢印は使用しない */
.p-voice-cards-item--custom .p-voice_service_arrow {
  display: none;
}
@media (max-width: 767px) {
  .p-voice-cards-item--custom {
    padding: 24px 20px 20px;
  }
  .p-voice-cards-item--custom .p-voice-cards-item__title {
    padding-left: 14px !important;
    font-size: 16px !important;
  }
  .p-voice-cards-item--custom .p-voice-cards-item__title::before {
    width: 3px;
  }
  .p-voice-cards-item--custom .p-voice-caption_item {
    gap: 6px;
    font-size: 13px;
  }
  .p-voice-cards-item--custom .c-category_voice {
    min-width: 110px;
    margin-top: 14px;
    font-size: 14px;
  }
  .p-voice-cards-item--custom .p-voice_service_list {
    padding: 3px 20px;
  }
}

.p-single__content_voice {
    margin-inline: auto;
    padding: 0 40px 100px 40px;
}
.p-single-voice_bg {
    width: 100%;
}
.p-single-header__caption {
    width: 90%;
    margin-inline: auto;
}
.p-single-voice_content_bg {
    width: 100%;
}

/* =====================================
   PCヘッダー：右端にドロワーボタンを表示
===================================== */
@media (min-width: 992px) {
    .p-header-top {
        justify-content: flex-start;
    }

    .header_right_contents {
        margin-left: auto;
    }

    .p-header-nav-sp {
        position: relative;
        display: grid;
        place-items: center;
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
        font-size: 24px;
        color: #ffffff;
        background-color: #0085b2;
        font-size: 24px;
        cursor: pointer;
        transition: background-color 0.3s ease-in-out;
    }
    .p-header-nav-sp:hover {
        opacity: 1;
        background-color: #1a91ba;
    }
}
/* ドロワーのp-header-cta__telを非表示 */
.p-drawer-bottom .p-header-cta__tel {
    display: none;
}