:root {
  /* base layout */
  --tcd-lp-content-min-size: calc(100% - 100px);
  --tcd-lp-content-max-size: 900px;
  /* header */
  --tcd-lp-header-size: auto;
  --tcd-lp-header-height-auto: auto;
  --tcd-lp-header-height-full: calc(100svh - var(--tcd-header-bar-height, 0px) - var(--tcd-header-message-height, 0px) - var(--wp-admin--admin-bar--height, 0px));
  --tcd-lp-header-height-custom: var(--tcd-lp-header-height-custom-pc, 600px);
  --tcd-lp-header-text-align: center;

  /* catch 1 */
  --tcd-lp-header-text1-font-type: var(--tcd-font-sans-serif);
  --tcd-lp-header-text1-font-size-pc: 40px;
  --tcd-lp-header-text1-font-size-sp: 24px;
  --tcd-lp-header-text1-font-color: #ffffff;
  --tcd-lp-header-text1-line-height:1.6;
  --tcd-lp-header-text1-line-height-sp:1.6;
  /* catch 2 */
  --tcd-lp-header-text2-font-type: var(--tcd-font-sans-serif);
  --tcd-lp-header-text2-font-size-pc: 16px;
  --tcd-lp-header-text2-font-size-sp: 14px;
  --tcd-lp-header-text2-font-color: #ffffff;
  --tcd-lp-header-text2-line-height:1.6;
  --tcd-lp-header-text2-line-height-2:1.6;
  /* button */
  --tcd-lp-header-button-color: #000000;
  --tcd-lp-header-overlay-color: #000000;
}

@media (max-width:1024px) {
  :root {
    --tcd-lp-content-min-size: calc(100% - 40px);
    --tcd-lp-header-height-custom: var(--tcd-lp-header-height-custom-sp, 500px);
  }
}

/* LP compact style */
@media not all and (max-width:1024px) {
  .p-lp-type1 {
    width: min(var(--tcd-lp-content-min-size), var(--tcd-lp-content-max-size));
    border: 1px solid #dddddd;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, .1);
    margin: 120px auto;
  }

  .p-lp-type1 .p-lp-body {
    padding-block: 100px;
  }

  body:not(:has(.p-header-message, .l-header)) .p-lp-type1 {
    margin-top: 0;
  }
}

/* header */
.p-lp-header {
  display: grid;
  height: var(--tcd-lp-header-size);
}

.p-lp-header>* {
  grid-area: 1/-1;
}

.p-lp-header__picture {
  height: inherit;
}

.lp_header_overlay {
  position: relative;
  z-index: 1;
  transform: scale(1.01);
}

.p-lp-header__image {
  width: 100%;
  height: inherit;
  object-fit: cover;
  transform: scale(1.01);
}

.p-lp-type1 .p-lp-header__image {
  transform: scale(1.0);
  }

.p-lp-type1 .lp_header_overlay {
  transform: scale(1.0);
}


.p-lp-header__contents {
  display: grid;
  align-content: center;
  justify-self: center;
  width: min(var(--tcd-lp-content-min-size), var(--tcd-lp-content-max-size));
  color: #fff;
  text-align: var(--tcd-lp-header-text-align);
  position: relative;
  z-index: 1;
}

.p-lp-header__title {
  display: grid;
  align-content: start;
}

.p-lp-header__title-text {
  margin-block: var(--tcd-half-read);
}

.p-lp-header__title-text1 {
  font-family: var(--tcd-lp-header-text1-font-type);
  font-size: var(--tcd-lp-header-text1-font-size-pc);
  color: var(--tcd-lp-header-text1-font-color);
  margin-bottom: calc(var(--tcd-lp-header-text1-margin-bottom, 0px) + var(--tcd-half-read));
  line-height: var(--tcd-lp-header-text1-line-height);
}

.p-lp-header__title-text1:has(+*),
.p-lp-header__title:has(+.p-lp-header__button) {
  --tcd-lp-header-text1-margin-bottom: var(--tcd-lp-header-text1-margin-bottom-pc);
}

.p-lp-header__title-text2 {
  font-family: var(--tcd-lp-header-text2-font-type);
  font-size: var(--tcd-lp-header-text2-font-size-pc);
  color: var(--tcd-lp-header-text2-font-color);
  margin-bottom: calc(var(--tcd-lp-header-text2-margin-bottom, 0px) + var(--tcd-half-read));
  line-height: var(--tcd-lp-header-text2-line-height);
}

.p-lp-header__title:has(+.p-lp-header__button) {
  --tcd-lp-header-text2-margin-bottom: var(--tcd-lp-header-text2-margin-bottom-pc);
}

.p-lp-header__button-link {
  display: inline-grid;
  place-items: center;
  min-width: 280px;
  width: fit-content;
  height: 70px;
  padding: 0 1.5em;
  font-size: 16px;
  overflow: hidden;
  color: #ffffff;
  background: var(--tcd-lp-header-button-color);
  border-radius: calc(infinity * 1px);
}


@media (any-hover: hover) {
  .p-lp-header__button-link:hover {
    background-color: color-mix(in srgb, var(--tcd-lp-header-button-color) 90%, #ffffff);
  }
}

@media (max-width:767px) {

  .p-lp-header__title-text {
    line-height: 1.6;
  }

  .p-lp-header__contents {
    text-align: center;
  }


  .p-lp-header__title-text1 {
    font-size: var(--tcd-lp-header-text1-font-size-sp);
    line-height: var(--tcd-lp-header-text1-line-height-sp);
  }

  .p-lp-header__title-text1:has(+*),
  .p-lp-header__title:has(+.p-lp-header__button) {
    --tcd-lp-header-text1-margin-bottom: var(--tcd-lp-header-text1-margin-bottom-sp);
  }

  .p-lp-header__title:has(+.p-lp-header__button) {
    --tcd-lp-header-text2-margin-bottom: var(--tcd-lp-header-text2-margin-bottom-sp);
  }

  .p-lp-header__title-text2 {
    font-size: var(--tcd-lp-header-text2-font-size-sp);
    line-height: var(--tcd-lp-header-text2-line-height-sp);
  }

  .p-lp-header__button-link {
    min-width: 240px;
    height: 60px;
    font-size: 14px;
  }
  .lp_header_type2_title h1 {
    font-size: var(--tcd-lp-header-type2-headline-font-size-sp) !important;
  }
}

/* body */
.p-lp-body {
  width: min(var(--tcd-lp-content-min-size), var(--tcd-lp-content-max-size));
  margin-inline: auto;
  padding-block: 100px 150px;
}

@media (max-width:767px) {
  .p-lp-body {
    padding-block: 40px;
  }
}

/* faq list */
.p-faq-list-item {
  background: #f6f6f6;
  border: 1px solid #dddddd;
}

*+.p-faq-list-item {
  margin-top: -1px;
  position: relative;
}

.p-faq-list-item.is-active {
  --tcd-voice-list-item-font-color: var(--tcd-accent-color);
  --tcd-voice-list-item-grid-row: 1fr;
  --tcd-voice-list-item-opacity: 1;
  --tcd-voice-list-item-toggle-height: 0px;
}

.p-faq-list-item-title {
  cursor: pointer;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  padding-block: calc(25px + var(--tcd-half-read));
  padding-inline: 30px 60px;
  color: var(--tcd-voice-list-item-font-color, inherit);
  transition: color 0.2s ease;
  background: #ffffff;
}

.p-faq-list-item-title-toggle {
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  font-size: 14px;
  position: absolute;
  inset: 0 30px 0 auto;
  margin-block: auto;
  color: #000;
}

.p-faq-list-item-title-toggle:before {
  content: '';
  grid-area: 1 / -1;
  width: 1px;
  height: var(--tcd-voice-list-item-toggle-height, inherit);
  background: currentColor;
}

.p-faq-list-item-title-toggle:after {
  content: '';
  grid-area: 1 / -1;
  width: inherit;
  height: 1px;
  background: currentColor;
}

.p-faq-list-item-title-content {
  display: grid;
  grid-template-rows: var(--tcd-voice-list-item-grid-row, 0fr);
  /* transition: grid-template-rows 0.3s cubic-bezier(0.17, 0.84, 0.44, 1); */
  transition: grid-template-rows 0.3s ease;
}

.p-faq-list-item-title-content-inner {
  overflow: hidden;
}

.p-faq-list-item-title-content-text {
  padding: 30px;
  border-top: 1px solid #ddd;
}

@media (any-hover: hover) {
  .p-faq-list-item-title:hover {
    --tcd-voice-list-item-font-color: var(--tcd-accent-color);
  }
}

@media(max-width:767px) {
  .p-faq-list-item-title {
    font-size: 14px;
    padding-block: calc(23px + var(--tcd-half-read));
    padding-inline: 20px 50px;
  }

  .p-faq-list-item-title-content-text p {
    font-size: 14px;
  }
}

/* ショートコード スタッフコンテンツ */
.p-sc-staff-item-content {
  padding: 50px;
  display: flex;
  background-color: #f6f6f6;
  gap: 50px;
}

.p-sc-staff-item_image {
  flex: 0 0 375px;
  height: 375px;
}

.p-sc-staff_image {
  height: 100% !important;
}

.p-sc-staff-item_profile {
  display: grid;
  overflow: hidden;
  gap: 40px;
  height: fit-content;
  max-height: 375px;
  position: relative;

  /* スクロールバー非表示 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: none;
  -webkit-mask-image: none;
  transition: mask-image 0.3s ease, -webkit-mask-image 0.3s ease;
}


.p-sc-staff-item_profile.fade-mask {
  overflow-y: auto;
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.p-sc-staff-item_profile.no-fade {
  mask-image: none;
  -webkit-mask-image: none;
}

.p-sc-staff-item_profile::-webkit-scrollbar {
  display: none;
}

.p-sc-staff-item_profile_main {
  display: grid;
  gap: 20px;
}

.p-sc-staff-item_profile_main span {
  margin-block: var(--tcd-half-read);
}

.p-sc-staff_profile_name {
  font-size: 20px;
  font-weight: 600;
}

.p-sc-staff_profile_postion {
  font-size: 14px;
}

.p-sc-staff-item_profile_desc {
  margin-block: var(--tcd-half-read);
  font-size: 16px;
  --tcd-line-clamp: 8;
}

@media(max-width:767px) {
  .p-sc-staff-item-content {
    padding: 30px;
    display: grid;
    gap: 30px;
  }

  .p-sc-staff-item_image {
    height: 260px;
  }

  .p-sc-staff-item_profile_main {
    gap: 15px;
  }

  .p-sc-staff-item_profile {
    height: auto;
    overflow: unset;
    gap: 30px;
  }

  .p-sc-staff_profile_name {
    font-size: 18px;
  }

  .p-sc-staff-item_profile_desc {
    font-size: 14px;
    line-height: 2;
  }

  .p-sc-staff-item_profile_desc .c-line-clamp {
    display: unset;
  }
}

/* ショートコード デザイン1 */
.p-sc-design1 {
  background-color: var(--tcd-lp-sc-layout-background-color);
}

.p-sc-design1-item {
  display: flex;
}

*+.p-sc-design1-item {
  position: relative;
  margin-top: -1px;
}

.p-sc-design1-item-image {
  flex: 0 0 270px;
  position: relative;
  height: auto;
  margin-right: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
}

.p-sc-design1-item-image_cover {
  width: 45%;
  height: 100%;
  aspect-ratio: 390 / 200;
  position: relative;
  height: auto;
  margin-right: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-sc-design1-item-image_cover .p-sc-layout-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: unset !important;
  max-height: unset !important;
}


.p-sc-design1 .p-sc-design1-item:last-child .p-sc-design1-item-image {
  border-bottom: 1px solid #ddd;
}

.p-sc-layout-cover {
  max-width: 110px !important;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.p-sc-design1-item-content {
  flex: 1;
  display: grid;
  align-content: center;
  row-gap: 40px;
  padding: 50px;
  border: 1px solid #ddd;
}

.p-sc-design1-item-content-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--tcd-accent-color);
  margin-block: var(--tcd-half-read);
}

.p-sc-design1-item-content-desc {
  font-size: 16px;
  line-height: 2.4;
  margin-block: var(--tcd-half-read);
}

@media(max-width:991px) {
  .p-sc-design1-item-content {
    padding: 30px;
    gap: 30px;
  }

  .p-sc-design1-item-content-title {
    font-size: 18px;
  }

  .p-sc-design1-item-content-desc {
    font-size: 14px;
    line-height: 2.2;
  }
}

@media(max-width:767px) {
  .p-sc-design1-item {
    display: grid;
  }

  .p-sc-design1-item-image {
    height: 120px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-right: 1px solid #ddd;
    margin-right: 0;
  }

  .p-sc-design1-item-image_cover {
    height: 200px;
    width: 100%;
  }

  .p-sc-design1-item-image_cover .p-sc-layout-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: unset !important;
    max-height: unset;
  }

  .p-sc-layout-cover {
    max-width: 80px !important;
    max-height: 80px;
  }

  .p-sc-design1 .p-sc-design1-item:last-child .p-sc-design1-item-image {
    border-bottom: none;
  }

}

/* ショートコード　レイアウト2*/
.p-sc-layout_2_content {
  display: flex;
}

.p-sc-layout_2_content.layout_middle .p-sc-layout_2_text_content {
  height: 550px;
}

.p-sc-layout_2_content.layout_middle .p-sc-layout_2_image_content {
  height: 550px;
}

.p-sc_image_height_type2.layout_middle .p-sc-layout_2_text_content {
  height: calc(var(--tcd-lp-content-max-size) / 2);
}

.p-sc_image_height_type2.layout_middle .p-sc-layout_2_image_content {
  height: calc(var(--tcd-lp-content-max-size) / 2);
}

.p-sc_image_height_type1 .p-sc-layout_2_image_content {
  height: 700px;
}

.p-sc_image_height_type1 .p-sc-layout_2_text_content {
  height: 700px;
}

.p-sc_image_height_type2 .p-sc-layout_2_image_content {
  height: calc(var(--tcd-lp-content-max-size) / 2);
}

.p-sc_image_height_type2 .p-sc-layout_2_text_content {
  height: calc(var(--tcd-lp-content-max-size) / 2);
}

.p-sc_image_height_type2.tab_page .p-sc-layout_2_image_content {
  height: calc( 1100px / 2);
}

.p-sc_image_height_type2.tab_page .p-sc-layout_2_text_content {
  height: calc(1100px / 2);
}

.p-sc-layout_2_text_content {
  width: 50%;
  padding-left: 70px;
  padding-right: 70px;
  background-color: var(--tcd-accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.p-sc-layout_2_text_inner {
  display: grid;
  gap: 40px;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: hidden; /* 初期は非表示 */
  mask-image: none;
  -webkit-mask-image: none;
  transition: mask-image 0.3s ease, -webkit-mask-image 0.3s ease;
}

.p-sc-layout_2_text_inner.fade-mask {
  overflow-y: auto;
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.p-sc-layout_2_text_inner.no-fade {
  mask-image: none;
  -webkit-mask-image: none;
}

.p-sc-layout_2_text_inner::-webkit-scrollbar {
  display: none;
}

.p-sc_image_height_type1 .p-sc-layout_2_text_inner {
  max-height: 560px;
}

.p-sc_image_height_type1.layout_middle .p-sc-layout_2_text_inner {
  max-height: 410px;
}

.p-sc_image_height_type2 .p-sc-layout_2_text_inner {
  max-height: calc((var(--tcd-lp-content-max-size) / 2 ) - 140px );
}

.p-sc_image_height_type2.tab_page .p-sc-layout_2_text_inner {
  max-height: calc((1100px / 2 ) - 140px );
}

@media(max-width:991px){
  .p-sc_image_height_type1 .p-sc-layout_2_text_inner {
    max-height: 470px;
  }

  .p-sc-layout_2_text_content {
    padding-right: 40px;
    padding-left: 40px;
  }
  
  .p-sc_image_height_type2 .p-sc-layout_2_text_inner {
    max-height: 330px;
  }

  .p-sc_image_height_type2.tab_page .p-sc-layout_2_text_inner {
    max-height: 330px;
  }
}

@media(max-width:767px){
  .p-sc_image_height_type1 .p-sc-layout_2_text_inner {
    max-height: 370px;
  }

  .p-sc_image_height_type1.layout_middle .p-sc-layout_2_text_inner {
    max-height: 370px;
  }
  
  .p-sc_image_height_type2 .p-sc-layout_2_text_inner {
    max-height: 330px;
  }

  .p-sc_image_height_type2.tab_page .p-sc-layout_2_text_inner {
    max-height: 330px;
  }
}

@media(max-width:360px){
  .p-sc_image_height_type1 .p-sc-layout_2_text_inner {
    max-height: 320px;
  }

  .p-sc_image_height_type1.layout_middle .p-sc-layout_2_text_inner {
    max-height: 320px;
  }
  
  .p-sc_image_height_type2 .p-sc-layout_2_text_inner {
    max-height: 300px;
  }

  .p-sc_image_height_type2.tab_page .p-sc-layout_2_text_inner {
    max-height: 300px;
  }
}

.p-sc-layout_2_catch {
  font-size: 34px;
  line-height: 1.6;
  font-weight: 600;
  margin-block: var(--tcd-half-read);
}

.p-sc-layout_2_subcatch {
  font-size: 16px;
  line-height: 2.6;
  margin-block: var(--tcd-half-read);
}

.p-sc-layout_2_image_content {
  width: 50%;
  height: 700px;
}

.page_sc_layout_2_image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

@media(max-width:991px) {
  .p-sc_image_height_type1 .p-sc-layout_2_image_content {
    height: 550px;
  }

  .p-sc_image_height_type1 .p-sc-layout_2_text_content {
    height: 550px;
  }

  .p-sc_image_height_type2 .p-sc-layout_2_image_content {
    height: 100% !important;
    aspect-ratio: 1 / 1;
  }
  
  .p-sc_image_height_type2 .p-sc-layout_2_text_content {
    height: 100% !important;
    aspect-ratio: 1 / 1;
  }

  .p-sc-layout_2_catch {
    font-size: 22px;
  }

  .p-sc-layout_2_subcatch {
    line-height: 2.2;
  }

  .p-sc-layout_2_text_inner {
    gap: 30px;
  }
}

@media(max-width:767px){
  .p-sc-layout_2_content {
    display: grid;
  }

  .p-sc_image_height_type1 .p-sc-layout_2_image_content {
    width: unset;
    height: 400px !important;
    margin: 0 -20px;
    order: 1;
  }

  .p-sc_image_height_type1 .p-sc-layout_2_text_content {
    width: unset;
    height: 400px !important;
    margin: 0 -20px 0;
    order: 2;
  }

  .p-sc_image_height_type2 .p-sc-layout_2_image_content {
    inline-size: 100vw;
    aspect-ratio: 1 / 1;
    height: unset !important;
    margin: 0px calc(50% - 50vw);
    order: 1;
  }
  
  .p-sc_image_height_type2 .p-sc-layout_2_text_content {
    inline-size: 100vw;
    aspect-ratio: 1 / 1;
    height: unset !important;
    margin: 0px calc(50% - 50vw);
    order: 2;
  }

  .p-sc-layout_2_text_content {
    padding-right: 40px;
    padding-left: 40px;
  }

  .p-sc-layout_2_catch {
    font-size: 22px;
    line-height: 1.6;
  }

  .p-sc-layout_2_subcatch {
    line-height: 2.2;
  }

  .p-sc-text-layout_right_slippage_left {
    margin-top: 0 !important;
  }

  .p-sc-img-layout_right_slippage_right {
    margin-top: 0 !important;
  }

  .p-sc-text-layout_left_slippage_right {
    margin-top: 0 !important;
  }
}

/* 簡易的なタブデザイン例 */
.my-tab-nav_inner {
  border-bottom: 1px solid #ddd;
  width: 100%;
  padding: 0 auto;
  display: flex;
}
.my-tab-nav {
  display: flex;
  inline-size: 1100px;
  margin-inline: auto;
  list-style: none;
}

.my-tab-nav-item {
  display: flex;
  cursor: pointer;
  flex: 1;
  place-items: center;
  background: #ffffff;
  margin: -1px 0 0 -1px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-bottom: none;
  border-top: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  height: 70px;
  transition: color 0.3s;
}

.my-tab-nav-item  a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  width: 100%;
  transition: opacity 0.3s;
  cursor: pointer;
}

@media (any-hover: hover) {
.my-tab-nav-item:hover a {
  opacity: 0.6;
}
}

.my-tab-nav-item.active {
  color: var(--tcd-accent-color);
}
.p-tab_body {
  padding-bottom: 150px;
  inline-size: min(calc(100% - 40px), 1100px);
  margin-inline: auto;
}

@media(max-width:991px) {
  .c-archive-header:has(.c-archive-header__no_img_contents) .my-tab-nav {
    inline-size: 100%;
    padding-inline: 20px;
  }

  .c-archive-header:has(.c-archive-header__no_img_contents) .my-tab-nav_inner {
    margin-top: 0px !important;
  }

  .lp_header_type2 {
    row-gap: 0 !important;
  }
}

@media (max-width: 767px) {
  .my-tab-nav_inner {
    inline-size: 100%;
    position: relative;
    z-index: 1;
  }

  .c-archive-header:has(.c-archive-header__no_img_contents) .my-tab-nav_inner {
    margin-top: 40px !important;
  }

.c-archive-header:has(.c-archive-header__no_img_contents) .my-tab-nav .my-tab-nav-item:first-child {
  border-left: 1px solid #ddd;
}

.c-archive-header:has(.c-archive-header__no_img_contents) .my-tab-nav .my-tab-nav-item:last-child {
  border-right: 1px solid #ddd;
}

  .my-tab-nav .my-tab-nav-item:first-child {
    border-left: none;
  }

  .my-tab-nav .my-tab-nav-item:last-child {
    border-right: none;
  }

  .c-archive-header:has(.c-archive-header__no_img_contents) .my-tab-nav_inner .my-tab-nav-item {
    border-top: 1px solid #ddd;
  }

  .c-archive-header:has(.c-archive-header__no_img_contents) .my-tab-nav_inner .my-tab-nav-item {
    margin: 0 0 0 -1px;
  }

  .my-tab-nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-inline: 1px;
  }


  .p-tab_body {
    padding-bottom: 40px;
  }

  .c-archive-header.lp_header_type2 {
    row-gap: 0;
  }

  .my-tab-nav-item a {
    height: 50px;
  }

  .my-tab-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .my-tab-nav-item {
    height: 50px;
    padding-inline: 30px;
    min-width: max-content;
    border-right: 1px solid #ddd;
  }

  .my-tab-nav-item a {
    font-size: 14px;
    text-align: center;
  }
}
