/*
Theme Name: naruse_theme
Author: Shotaro
Version: 1.0

*/
html { scroll-behavior: smooth;}
/* font */
h1, h2, h3, h4, h5, h6, a, p, ul, hr {
  font-family: var(--font-inter);
  margin: 0;
}
h1 {
  font-size: var(--font-size-7xl);
  line-height: 150%;
}
h2 {
  font-size: var(--font-size-3xl);
  line-height: 150%;
}
h4 {
  font-size: var(--font-size-m);
}
a {
  font-size: var(--font-size-s);
  line-height: 20px;
  text-decoration: none;
  color: var(--color-black);
}
p {
  font-size: var(--font-size-m);
  line-height: 180%;
}
/* color */

/* parts */
.flex { display: flex; }
.wrapper { flex-wrap: wrap; }
.flex-column { display: flex; flex-flow: column; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-40 { gap: 40px; }
.gap-80 { gap: 80px; }
.padding-top-40 { padding-top: 40px; }
hr {
  height: 1px;
  background: var(--color-gray);
}
/* background */
.bg-purple { background: var(--color-purple); }
.bg-white { background: var(--color-white); }

/* header */
header { height: 88px; }
.header-bar {
  height: 100%;
  padding: 0 40px;
  justify-content: space-between;
  align-items: center;
}
.header-logo img {
  width: 200px;
}
.header-nav ul li {
  list-style: none;
}
.header-nav ul li a {
  color: var(--color-black);
  text-decoration: none;
  font-weight: var(--font-bold);
  font-size: var(--font-size-s);
  padding: 8px 16px;
  border-radius: 8px;
}
.header-nav ul li a:hover {
  background: var(--color-purple);
}
.hamburger-menu {
  display: none;
}

/*
 * front-page
 */
/* fv */
/* pattern1 */
.animation-one-row-wrapper {
  overflow: hidden;
}
.animation-one-row img { width: 100%; }
@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes infinity-scroll-right {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
.animation-flow-left { animation: infinity-scroll-right 40s infinite linear 1.0s both; }
.animation-flow-right { animation: infinity-scroll-left 40s infinite linear 1.0s both; }
.front-firstview {
  position: relative;
  height: 680px;
}
.animation-one-row img {
  width: 100px;
  height: 100px;
}
/* pattern2 */
.fv-tile-row {
  justify-content: center;
}
.fv-tile {
  width: 7.5vw;
  padding: 40px;
  text-align: center;
}
.fv-tile img {
  width: 100px;
  height: 100px;
}
.text-area {
  position: absolute;
  top: 240px;
  left: 80px;
}
.text-area h1 {
  font-size: 96px;
  font-family: var(--font-poppins);
  font-weight: var(--font-semibold);
  line-height: 120%;
}
/* content */
.front-one-block {
  max-width: 800px;
  padding: 80px 0;
  margin: 0 auto;
}
p.en-title {
  color: var(--color-navy);
  font-family: var(--font-poppins);
}
.block-bottom {
  align-items: center;
}
.block-bottom p {
  font-weight: var(--font-bold);
  color: var(--color-dark-navy);
}
.block-bottom i {
  width: 48px;
  height: 48px;
  background: var(--color-dark-navy);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
}
/* news */
.front-news-card {
  padding: 16px;
  border-radius: 8px;
}
.front-news-date {
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--color-white);
}
p.front-news-date {
  width: fit-content;
  font-size: var(--font-size-s);
  line-height: 150%;
}
p.front-news-content {
    padding: 0 16px;
}
/* business */
a.front-business-card div {
  width: 240px;
  height: 120px;
}
a.front-business-card div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a.front-business-card p {
  line-height: 150%;
  font-weight: var(--font-bold);
}
.front-business-container {
  flex-wrap: wrap;
}
.sp-front-business-container { display: none; }
/* example */
a.front-example-card {
  width: 380px;
  padding: 16px;
  border-radius: 8px;
  box-sizing: border-box;
}
a.front-example-card img {
  width: 348px;
  height: 200px;
  object-fit: cover;
}
/*
 * 子ページ共通
 */
 .child-page-fv {
   position: relative;
 }
 .bg-img-flow-wrapper {
   overflow: hidden;
   padding: 40px 0;
 }
 .child-header-title {
   position: absolute;
   top: 65px;
   left: 24%;
 }
 .bg-img-flow img { width: 100%; }
 @keyframes infinity-scroll-left {
   from {
     transform: translateX(0);
   }
   to {
     transform: translateX(-100%);
   }
 }
 .bg-img-flow { animation: infinity-scroll-left 40s infinite linear 1.0s both; }
 /*
  * company
  */
 p.company-info {
   font-size: var(--font-size-s);
   line-height: 100%;
   width: 120px;
   height: fit-content;
   padding: 8px 0;
   border-radius: 100px;
   text-align: center;
 }
 .enkaku-parts {
   width: 380px;
   gap: 16px;
   padding-bottom: 16px;
   border-bottom: 1px solid var(--color-gray);
 }
 .enkaku-parts p {
   max-width: 244px;
   width: fit-content;
   font-size: var(--font-size-s);
 }
 p.year-part { width: 120px; }
/*
 * service
 */
 .service-nav {
   flex-wrap: wrap;
   padding: 24px;
   border-radius: 16px;
   row-gap: 24px;
   column-gap: 40px;
 }
 .service-nav a {
   align-items: center;
 }
 .service-nav a p {
   font-size: var(--font-size-s);
 }
 .list-mark {
   width: 8px;
   height: 8px;
   border-radius: 100px;
   background: var(--color-dark-navy);
 }
 .service-title {
   padding: 8px 24px;
   border-radius: 8px;
 }
 .service-content-img img {
   width: 240px;
   height: 240px;
   object-fit: cover;
   overflow: hidden;
 }
/*
 * example
 */
 .example-card-container {
   flex-wrap: wrap;
 }
 .example-card {
   padding: 24px;
   border-radius: 16px;
 }
 .example-card img {
   width: 332px;
   height: 268px;
   object-fit: cover;
   overflow: hidden;
 }
 .example-card:hover {
   cursor: pointer;
 }
 .hidden {
   display: none;
   transition-duration: .4s;
 }
 .modal-container {
   position: fixed;
   width: 100vw;
   height: 100vh;
   top: 0;
   left: 0;
   background: var(--color-purple);
   padding: 24px;
   box-sizing: border-box;
 }
 .modal-wrapper {
   position: relative;
   width: 100%;
   height: 100%;
   overflow-y: scroll;
 }
 .modal-content {
   max-width: 640px;
   margin: 0 auto;
 }
 .modal-wrapper::-webkit-scrollbar{
  display: none;
 }
 .close-mark {
   display: block;
   position: fixed;
   width: 48px;
   height: 48px;
   border-radius: 8px;
   background: var(--color-dark-navy);
   top: 24px;
   right: 24px;
   cursor: pointer;
 }
 .close-mark::before,
 .close-mark::after  {
   content: "";
   position: absolute;
   top: 50%;
   left: 50%;
   width: 2px;
   height: 22.5px;
   border-radius: 100px;
   background: var(--color-white);
   z-index: 1;
 }
 .close-mark:hover { background: var(--color-black); }
 .close-mark::before {
   transform: translate(-50%, -50%) rotate(45deg);
 }
 .close-mark::after {
   transform: translate(-50%, -50%) rotate(-45deg);
 }
/*
 * contact
 */
 .contact-dial {
   padding: 24px;
   border-radius: 16px;
 }
 .contact-dial a {
   font-size: var(--font-size-xl);
   font-weight: var(--font-bold);
   line-height: 180%;
 }
 .form-container {
   padding: 24px;
   border-radius: 16px;
 }
 .form-content {
   padding: 24px;
   border-radius: 8px;
 }
/*
 *
 */
 form {
   display: flex;
   flex-flow: column;
   gap: 32px;
 }
 label {
   font-size: var(--font-size-m);
   font-weight: var(--font-bold);
   color: var(--color-gray-800);
 }
 .required {
   color: var(--color-red);
 }
 input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required,
 textarea.wpcf7-form-control.wpcf7-textarea.wpcf7-validates-as-required {
   width: 100%;
   height: 48px;
   border: 1px solid var(--color-light-gray);
   border-radius: 6px;
   padding: 10px 16px;
   font-size: 18px;
   box-sizing: border-box;
 }
 input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required::placeholder,
 textarea.wpcf7-form-control.wpcf7-textarea.wpcf7-validates-as-required::placeholder {
   color: var(--color-light-gray);
 }
 textarea.wpcf7-form-control.wpcf7-textarea.wpcf7-validates-as-required {
   height: 160px;
   resize: vertical;
 }
 input[type="checkbox" i] {
   border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-light-gray);
  border-radius: 2px;
 }
 input[type="checkbox" i]:checked:before {
   position: absolute;
   top: -2px;
   left: 5px;
   width: 7px;
   height: 12px;
   content: "";
   border-bottom: 3px solid var(--color-gray-800);
   border-right: 3px solid var(--color-gray-800);
   border-radius: 2px;
   transform: rotate(45deg);
 }
 .form-acceptance a,
 .form-acceptance p,
 .form-acceptance span {
   font-size: var(--font-size-s);
   font-weight: 400;
 }
 .form-acceptance a { text-decoration: underline; }
 .form-acceptance label {
   display: flex;
   gap: 8px;
   align-self: center;
 }
 input[type="submit" i] {
   width: 270px;
   height: 48px;
   background: var(--color-gray-800);
   border: none;
   border-radius: 100px;
   box-sizing: border-box;
   padding: 0 24px;
   font-size: 18px;
   color: var(--color-white);
 }
 input[type="submit" i]:disabled {
   background: var(--color-gray);
 }
 .form-center-align { align-self: center; }
/*
 * footer
 */
 footer {
   padding: 80px 0;
 }
.footer-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.footer-add p {
  font-size: var(--font-size-s);
}
.copyright {
  font-size: 12px;
}
.footer-nav {
  width: 288px;
  display: flex;
  flex-flow: column;
  gap: 24px;
  padding: 0;
}
.footer-nav li {
  list-style: none;
}
.footer-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-bold);
}
/* tablet: 410px~799px */
@media screen and (max-width: 1119px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: var(--font-size-xl); }
  .sp-flex-column { display: flex; flex-flow: column; }
  .sp-gap-gone { gap: 0 !important; }
  .sp-gap-16 { gap: 16px !important; }
  .sp-scroll-overflow { overflow-x: scroll; }
  header { height: 64px; }
  .header-bar { padding: 0 12px; height: 100%; }
  .header-logo img {
    width: 120px;
  }
  .header-nav {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }
  .hamburger-open-button {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  .hamburger-open-button span{
    content: "";
    width: 20px;
    height: 2px;
    background: var(--color-black);
    border-radius: 1px;
    position: absolute;
    left: 14px;
    transition-duration: .4s;
  }
  .hamburger-open-button span.bands-1 {
    top: 22px;
  }
  .hamburger-open-button span.bands-2 {
    top: 26px;
  }
  .hamburger-open-button.active span.bands-1,
  .hamburger-open-button.active span.bands-2 {
    background: var(--color-white);
  }
  .hamburger-open-button.active span.bands-1 {
    -webkit-transform: translateY(20px) rotate(-45deg);
    transform: translateY(20px) rotate(-45deg);
    top: 2px;
    transition-duration: .4s;
  }
  .hamburger-open-button.active span.bands-2 {
    -webkit-transform: translateY(-20px) rotate(45deg);
    transform: translateY(-20px) rotate(45deg);
    top: 42px;
    transition-duration: .4s;
  }
  .hamburger-open-button:hover {
    background: var(--color-purple);
  }
  .active {
    background: var(--color-dark-navy) !important;
    transition-duration: .4s;
  }
  .sp-header {
    transition-duration: .4s;
  }
  .hamburger-nav {
    position: relative;
    width: 100vw;
    padding: 24px;
    box-sizing: border-box;
    background: var(--color-white);
    border-top: 1px solid var(--color-light-gray);
    border-bottom: 1px solid var(--color-light-gray);
    z-index: 2;
  }
  .hamburger-nav ul { padding: 0; }
  .hamburger-nav ul li { list-style: none; }
  .hamburger-nav ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-m);
    font-weight: var(--font-bold);
  }

  .front-page-sp {
    display: flex;
    flex-flow: column;
  }
  .front-firstview {
    height: 1089px;
    position: relative;
    top: 0;
    overflow: hidden;
  }
  .fv-tile {
    width: 25vw;
    box-sizing: border-box;
  }
  .sp-gradient-bg {
    width: 100vw;
    height: 1130px;
    position: absolute;
    background: linear-gradient(rgba(0, 0, 0, 0) 30%, var(--color-white) 60%);
    top: 0;
  }
  .body-container { margin-top: -610px; }
  .animation-area {
    position: absolute;
  }
  .text-area h1 { font-size: 68px; }
  .fv-tile img {
    width: 80px;
    height: 80px;
  }
  .front-one-block {
    width: 80%;
    position: relative;
    z-index: 1;
  }
  .front-business-container { display: none; }
  .sp-front-business-container {
    display: flex;
    flex-flow: column;
    flex-wrap: unset;
    gap: 24px !important;
  }
  .sp-front-business-container div {
    gap: 24px !important;
  }
  .front-example-container {
    justify-content: space-around;
  }
  a.front-example-card { width: 342px; }
  a.front-example-card img { width: 310px; }
  p.company-info {
    width: 100%;
    text-align: left;
    padding-left: 12px;
  }
  .enkaku-parts { width: 100%; }
  .enkaku-parts p { width: 80%; max-width: none; }
  p.year-part { width: 120px; }
  .service-content-img img { width: 100%; }
  .example-card-container {
    flex-wrap: nowrap;
    overflow-x: scroll;
  }
  .example-card img { width: 252px; }
  footer { padding: 80px 0 24px 0; }
  .footer-container {
    width: 80%;
    flex-flow: column-reverse;
    gap: 40px;
  }
  .footer-nav {
    width: 100%;
  }
}

/* sp:~767px */
@media screen and (max-width: 767px) {
  .fv-tile { padding: 40px 0; }
  .text-area {
    text-align: center;
    width: 100%;
    left: 0;
  }
  .text-area h1 { font-size: 40px; }
  p.en-title { font-size: var(--font-size-s); }
  .sp-jp-title { font-size: var(--font-size-xl); }
  a.front-example-card {
      width: 100%;
  }
  a.front-example-card img {
    width: 100%;
  }
  .child-header-title { left: 8%; }
  .bg-img-flow-wrapper {
    height: 257px;
    box-sizing: border-box;
    padding: 29px 0;
  }
  .bg-img-flow img {
    width: unset;
    height: 100%;
  }

  .enkaku-parts { width: 100%; }
  .service-nav {
    width: 100vw;
    box-sizing: border-box;
    align-self: center;
  }
  .service-content-img img { width: 100%; }
  .example-card img {
    width: 252px;
    height: 252px;
  }

  .form-container {
    width: 100vw;
    align-self: center;
    box-sizing: border-box;
  }
}
