/*
Theme Name: Lightning Child
Template: lightning
*/

:root {
  --color-border-gray: #EFEFEF;
  --wp--heading1: 26px;
  --wp--heading2: 20px;
  --wp--heading3: 18px;
  --wp--button1: 16px;
}
@media (max-width: 991.98px) {
  :root {
    --wp--heading1: 22px;
    --wp--heading2: 18px;
    --wp--heading3: 16px;
    --wp--button1: 14px;
  }
}

.wp-block-heading.is-style-heading-type1 {
  color: var(--vk-color-primary) !important;
  line-height: calc(40 / 26);
  letter-spacing: 0.05em;
  border-bottom: 3px solid var(--color-border-gray);
  border-top: none !important;
  padding-block: 0 calc(14 / 26 * 1em);
  margin-block-end: calc(40 / 26 * 1em);
}
.wp-block-heading.is-style-heading-type1:not(:first-child) {
  margin-block-start: calc(100 / 26 * 1em);
}
@media (max-width: 991.98px) {
  .wp-block-heading.is-style-heading-type1 {
    margin-block-end: calc(22 / 22 * 1em);
  }
  .wp-block-heading.is-style-heading-type1:not(:first-child) {
    margin-block-start: calc(60 / 22 * 1em);
  }
}

.wp-block-heading.is-style-heading-type2 {
  line-height: calc(29 / 20);
  padding-bottom: 0 !important;
  padding-inline-start: 1em !important;
  margin-block-start: calc(80 / 20 * 1em);
  margin-block-end: calc(40 / 20 * 1em);
  position: relative;
  border: none !important;
}
.wp-block-heading.is-style-heading-type2::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  content: '';
  width: 3px;
  border-radius: 3px;
  background-color: var(--vk-color-primary);
}
.wp-block-heading.is-style-heading-type2::after {
  display: none !important;
}

.wp-block-heading.is-style-heading-type1 + .wp-block-heading.is-style-heading-type2 {
  margin-block-start: calc(60 / 20 * 1em);
}

.wp-block-heading.is-style-heading-type3 {
  background: none !important;
  padding: 0 !important;
  line-height: calc(27 / 18);
  margin-block-end: calc(20 / 18 * 1em);
}
p + .wp-block-heading.is-style-heading-type3 {
  margin-block-start: calc(40 / 18 * 1em);
}

.wp-block-group.is-style-group-type1 {
  background: url('./img/bg.png') repeat center center / 97px auto !important;
  padding: 60px;
  border-radius: 10px;
  position: relative;
  margin-top: 99px;
  margin-bottom: 100px;
}
.wp-block-group.is-style-group-type1::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 19px);
  aspect-ratio: 400/236;
  width: 200px;
  background: url('./img/p-kun1.png') no-repeat center center / 100% 100%;
  margin-inline: auto;
}

@media (max-width: 991.98px) {
  .wp-block-group.is-style-group-type1 {
    padding: 30px 20px;
    margin-bottom: 60px;
  }
}

.wp-block-list.is-style-list-type1 li::marker {
  font-weight: 500;
  color: var(--vk-color-primary) !important;
}

.wp-block-table.is-style-table-type-board table {
  border: none !important;
  width: auto !important;
  font-size: var(--vk-size-text) !important;
  line-height: 1.5 !important;
  display: block;
}
.wp-block-table.is-style-table-type-board table tbody {
  display: grid !important;
  grid-template-columns: auto auto auto minmax(0,1fr);
  gap: 8px 40px;
}
.wp-block-table.is-style-table-type-board table tbody tr {
  display: contents !important;
}
.wp-block-table.is-style-table-type-board table th, 
.wp-block-table.is-style-table-type-board table td{
  border: none !important;
  padding: 0 !important;
}
@media (max-width: 991.98px) {
  .wp-block-table.is-style-table-type-board table {
    font-size: 14px !important;
  }
  .wp-block-table.is-style-table-type-board table tbody {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }
  .wp-block-table.is-style-table-type-board table tbody tr {
    display: flex !important;
    flex-wrap: wrap;
  }
  .wp-block-table.is-style-table-type-board table tbody td:first-child {
    padding-right: 1em !important;
  }
  .wp-block-table.is-style-table-type-board table tbody td:nth-child(2) {
    min-width: calc(100% - 6em);
  }
  .wp-block-table.is-style-table-type-board table tbody td:nth-child(3) {
    padding-right: 0.25em !important;
  }
}

.wp-block-buttons.is-layout-flex:has(.wp-block-button.is-style-button-type1) {
  gap: 40px;
  justify-content: center;
  margin-bottom: 100px;
}
@media (max-width: 991.98px) {
  .wp-block-buttons.is-layout-flex:has(.wp-block-button.is-style-button-type1) {
    gap: 30px;
    margin-bottom: 60px;
  }
}

.wp-block-button.is-style-button-type1 .wp-element-button {
  width: 20em;
  height: 4.5em;
  display: block !important;
  position: relative;
  padding-inline: 3.5em;
}
.wp-block-button.is-style-button-type1 .wp-element-button::after {
  content: '';
  aspect-ratio: 38/22;
  -webkit-mask: url('./img/shape_arrow.webp') no-repeat center center / 100% 100%;
  mask: url('./img/shape_arrow.webp') no-repeat center center / 100% 100%;
  width: 1.1875em;
  position: absolute;
  top: calc(50% - 0.3em);
  right: 1.3125em;
  background-color: currentColor;
}



.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1em;
}

.entry-meta-item-date {
  display: none;
}
.entry-meta-item-author {
  display: none;
}

.entry-footer {
  display: none;
}

.container.site-footer-copyright p:has(a[href="https://wordpress.org/themes/lightning/"]) {
  display: none;
}