: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;
    border-top: none;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, .1);
    margin: var(--tcd-lp-mv-margin-top) auto 120px auto;
  }
  .p-lp-type1.is-no-shadow{ box-shadow:none; border:none; }

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

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

/* 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;
}

.p-lp-header__image {
  width: 100%;
  height: inherit;
  object-fit: cover;
}

.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-sc-faq-list {
  margin-block: 60px !important;
}

.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-success-list-item-font-color: var(--tcd-accent-color);
  --tcd-success-list-item-grid-row: 1fr;
  --tcd-success-list-item-opacity: 1;
  --tcd-success-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-success-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-success-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-success-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-success-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 55px;
  }

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

  .p-faq-list-item-title-toggle {
  inset: 0 20px 0 auto;
}
}

/* 簡易的なタブデザイン例 */
.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;
  }
}
