/*
 Theme Name:   Lightning Child
 Template:     lightning
*/

/** common **/
/* header */
.site-header, .page-header, .home .site-body {
  background-color: #f5f1dd;
  background-image: linear-gradient(0deg, transparent calc(100% - 1px),
  #eae1b7 calc(100% - 1px)),
  linear-gradient(90deg, transparent calc(100% - 1px),
  #eae1b7 calc(100% - 1px));
  background-position: top;
  background-size: 6rem 6rem;
}
.header_scrolled .site-header {
  background-image: none;
}
.site-header { box-shadow: none; }
.page-header { padding: 2rem; }
.site-header-logo img { margin: 0; }
/* header-title */
.site-header-title,
.page-header-title {
  letter-spacing: .6rem;
  line-height: 4rem;
  margin: 0;
  position: relative;
  text-align: start;
  writing-mode: vertical-rl;
}
.site-header-title { height: 28rem; letter-spacing: 1rem; }
.page-header-title { margin: 2rem 0; }
.site-header-title::before,
.site-header-title::after,
.page-header-title::before,
.page-header-title::after {
  content: '';
  position: absolute;
  height: 3rem;
  width: 2rem;
}
.site-header-title::before,
.page-header-title::before {
  border-right: solid 1px;
  border-top: solid 1px;
  margin: -2rem 0 0 0;
}
.page-header-title::before {
  margin: -1.5rem -1rem 0 0;
}
.site-header-title::after,
.page-header-title::after {
  border-left: solid 1px;
  border-bottom: solid 1px;
  margin: -3rem 2rem 0 0;
}
.page-header-title::after {
  margin-top: -2rem;
}
.page-header-inner {
  text-align: center;
  text-align: -webkit-center;
}
/* top-content */
.top-content {
  display: flex;
  padding: 2rem 0 2rem 1rem;
}
.top-content img {
  max-width: 120%;
  height: auto;
  display: block;
}
.top-content-lft {
  align-self: flex-end;
  width: 50vw;
}
.top-content-rht {
  display: flex;
  justify-content: center;
  width: 50vw;
}
/* sub-content */
.about-content-rht, .intro-content-lft {
  text-align: center;
}
/* custom-content */
.site-body.customize-bg-white,
.site-body.customize-bg-sub {
  background: none;
}
/* more-archive */
.more-archive {
  color: #3fa180;
  display: inline-flex;;
  letter-spacing: .1rem;
  margin-top: 2rem;
  text-decoration: none;
}
.more-archive:hover { color: #eae1b7; }
.more-archive::before {
  border-bottom: solid 1px;
  border-right: solid 1px;
  content: '';
  height: .8rem;
  margin-left: -.2rem;
  margin-right: 1rem;
  margin-top:.39rem;
  transform: skew(45deg);
  width: 10rem;
}

.ex-content a:hover { opacity: .7; }
.contact-button-wrapper {
  text-align: center; 
  margin-top: 4rem;
}
.contact-button {
  align-items: center;
  background-color: #3f9e85;
  border: 1px solid #3f9e85;
  color: #fff;
  display: inline-flex;
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 1.2rem);
  justify-content: center;
  padding: 0.75em 2em;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  width: 50%;
}
.contact-button:hover {
  background-color: #fff;
  color: #3f9e85;
}

.site-body.customize-bg-sub, footer
{ background-color: #f4f9f7; }

.footer-nav {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 1rem;
  text-align: center;
}

.global-nav-list a:hover,
.footer-nav-list li a:hover {
  color: #3fa180;
  text-decoration: underline;
}

.site-header-logo a:hover,
.site-footer-content figure a:hover {
  opacity: .7;
}
.site-footer-content aside {
  margin-bottom: .5rem;
}
.site-footer-content aside p {
  margin-bottom: 0;
}
.site-footer-content h6 {
  color: #3fa180;
  margin-bottom: 0;
}

.vk-mobile-nav { padding: 5rem 1rem; }
.vk-mobile-nav-menu-btn {
  background-color: #eae1b7;
  opacity: .5;
  top: 1rem;
  right: 1rem !important;
}

.breadcrumb-list { padding: 3rem 0; }

body:not(.home) .entry-body section {
  margin-bottom: 3rem;
}
body:not(.home) .entry-body section h2:after {
  border-bottom: 6px solid #3fa180;
  content: '';
  display: block;
  padding-top: 8px;
  width: 5rem;
}
body:not(.home) .entry-body section h3 {
  font-size: 1.3rem;
}
.company-content dt {
  margin-bottom: 1rem;
}
.company-content dd {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 2rem;
}
.company-content table {
  border: #ccc;
}
.company-content th {
  font-weight: bold;
  text-align: left;
  width: 9rem;
}
.company-content th,.company-content td {
  border-left: #fff;
  border-right: #fff;
  padding: 1.2rem 1rem;
}
/* example list */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-item {
  width: calc(25% - 1rem);
  position: relative;
  font-size: 0.9rem;
  transition: transform 0.3s;
}

.project-thumb-wrapper {
  position: relative;
  overflow: hidden;
}

.project-thumb {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.project-no {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: white;
  color: black;
  border-radius: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  writing-mode: horizontal-tb;
  text-orientation: initial;
  z-index: 2;
}

.project-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-button {
  background-color: #3fa180;
  color: white;
  padding: 0.5em 1em;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.project-button:hover {
  background-color: white;
  color: #3fa180;
}

.project-thumb-wrapper:hover .project-hover {
  opacity: 1;
}

.project-thumb-wrapper:hover .project-thumb {
  transform: scale(1.05);
}

.project-title {
  margin-top: 0.5rem;
  text-align: left;
}

.project-title a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.project-title a:hover {
  color: #3fa180;
}

@media (max-width: 768px) {
  .project-item {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .project-item {
    width: 100%;
  }
}
/* example detail */
.vk_post_body.card-body {
    background-color: rgba(0, 0, 0, .6) !important;
}
.vk_post_body.card-body::after {
    align-items: center;
    content: "詳細をみる";
    color: #fff;
    display: flex;
    height: 90%;
    justify-content: center;
    text-decoration: underline;
}

@media (min-width: 768px) {
  .custom-post {
    margin-top: 1rem;
  }
  .custom-body h3 {
	font-size: 2rem;
	margin-bottom: 3rem;
  }
  .custom-body p {
	line-height: 2.3rem;
    font-size: clamp(.8rem, 1vw, 1rem);
  }
  .top-content h2 { margin-left: 3rem; }
  .about-content, .intro-content, .ex-content {
	display: flex;
    justify-content: center;
  }
  .about-content-lft, .intro-content-lft {
	margin-right: calc(100vw*.04);
  }
  .about-content-lft h4, .intro-content-rht h4 { margin: 4rem 0 0; }
  .ex-content a { width: 25%; }
  .inquiry-content { text-align: right; }
  
  body:not(.home) .entry-body section .about-content p {
    font-size: clamp(.8rem, 1vw, 1rem);
  }
  
  .footer-nav-list li:not(:last-child) {
    border-right: 1px solid #333;
  }
  .site-footer-copyright p {
	margin-right: 0;
	text-align: right;
  }
}

@media (max-width: 767px) {
  .intro-content-lft { margin: 2rem 0; }
  .ex-content { text-align: center; }
  .site-footer-content aside > * {
    text-align: center;
  }
}

@media (max-width: 767px) {
  @media (orientation: landscape) {
    .top-content h2 { height: 29rem; }	
  }
}

@media (min-width: 992px) {
  .company-content {
    width: 77%;
	margin: 0 auto;
  }
  .site-footer-content aside > * {
    text-align: right;
  }
}