/* =====================================================
  Base
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #4E0000;
  background: #dddddd;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.section {
  padding: 120px 80px;
}

p{
  margin: 0%;
}
/* =====================================================
  Typography
===================================================== */
h1 {
  font-size: 56px;
  font-weight: 500;
}

h2 {
  font-size: 70px;
  margin-bottom: 64px;
  font-weight: bold;
}

h3 {
  font-size: 24px;
  font-weight: 500;

}

h4 {
  font-size: 18px;
  font-weight: 500;
  margin: 0%;
}

/* =====================================================
  Header
===================================================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
}

.logo img{
  width: 60px;
  height: 60px;
}

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  
}

@media (max-width:600px){
  .logo img{
  width: 40px;
  height: 40px;
  }
}

/* =====================================================
  Top
===================================================== */
.top {
  height: 100vh;
  justify-content: center;
}

#clock-container {
  position: absolute;
  bottom: 10%;
  right: 7%;
  text-align: right;
  color: #333;
  line-height: 1;
}
#date {
  font-size: 14px;
  display: inline-block;
}
#clock {
  font-size: 14px;
  display: inline-block;
  letter-spacing:1.2px;
}

#clock-text {
  font-size: 14px;
}

.back{
  position: absolute;
  top: 63%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 34%;
  height: 45%;
  background-image: url('./img/carava_logo_black.png');
  background-position: center;
background-size: cover;
background-repeat: no-repeat;
}

@media (max-width: 900px){
  .back{
  width: 40%;
  height: 45%;
  }
}

@media (max-width: 750px){
  .back{
    top: 50%;
    height: 39%;
  }
}


@media (max-width: 600px) {


  #date {
      font-size: 10px;
  }
  #clock {
      font-size: 10px;
  }

  #clock-text{
    font-size: 10px;
  }
}


/* =====================================================
  Works
===================================================== */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-item {
  width: 100%;
  background: #eee;
  font-weight: bold;
  overflow: hidden;
  padding-left: 20px;
  font-size: 60px;

  display: flex;
  align-items: center;
}

.work-item{
  width: 100%;
}

.work-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #4e0000;
  transform: translate(-100%, -100%) rotate(0deg);
  transform-origin: left top;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: 0;
}

.work-item:hover::before {
  transform: translate(0, 0) rotate(0deg);
}

.work-item p {
  position: relative;
  z-index: 1;
  color: #4e0000;
  transition: color 0.4s ease;
}

.work-item a{
  width: 100%;
}

.work-item:hover p {
  color: #ffffff;
}


.work-item::after{
  top: 0%;
  left: 0%;
  content: "";
  width: 800%;
  height: 800%;
  transform: scale(0,1);
  transform-origin: left top;
  transition: .3s;
}

.work-item:hover {
  background-color: #4e0000;
  transition: ease-in 1s;
}

.work-item p:hover {
  color: #eee;
  transition: ease-in 1s;
  scale: (1,1);
}


/* =====================================================
  Services
===================================================== */
.services-wrap {
  display: flex;
  gap: 80px;
}

.service-grid h3{
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 24px;
}

.service-grid p{
  font-size: 12px;
}

.service-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.service-grid div {
  padding: 24px;
}

.service-grid h3{
  border-left: 6px solid #4e0000;
  padding-left: 10px;
}

.service-img {
  width: 580px;
  height: 580px;

  position: absolute;
  bottom: -80px;
  right: -40px;

  flex: 1;
  display: flex;
  align-items: flex-end;
  z-index: 1;
  opacity: 0.5;
}

/* =====================================================
  About Us
===================================================== */
.about-content {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 120px;
}

.about-left,
.about-right
{
  width: 50%;
}

.about-text p {
  margin-bottom: 16px;
}

.about-img{
  width: 580px;
  margin-right: 10px;
}

.about-img video{
  width: 100%;
  height: 50%;
}

/* about responsive */

@media(max-width: 600px){
.about-left{
  display: none;
}

.about-right{
  width: auto;
}

#about h4{
  font-size: 16px;
  margin-bottom: 16px;
}

.about-text{
  font-size: 12px;
}

.line {
  margin: 10px 0;
}

.about-content{
  margin-bottom: 60px;
}

.member-text{
  font-size: 12px;
  margin-bottom: 28px;
}
}



.line {
  width: 100%;
  border-top: 1px solid #000;
  margin: 24px 0;
}

/* ----- Value ----- */
.values {
  display: flex;
  justify-content: center;
  margin-bottom: 100px;
}

.value {
  display: flex;
  width: calc(90%/3);
  opacity: 1; /* GSAPでフェードイン */
  background: #8FBC8F;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  text-align: center;
  box-shadow: 0 0 20px #999;
  color: #0A4E00;
  font-size: 0.9rem;
}


.value:before{
  display: block;
  content: "";
  padding-top: 100%;
}

@media (width:600px) {

}



/* ----- Member ----- */
.member {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.member-name {
  display: flex;
  padding: 24px 0px;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
}

.member-name:nth-child(1){
  border-top: 1px solid #ccc;
  }

.member-name p{
width: 50%;
text-align: left;
padding-left: 60px;
}

.member-name img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  z-index: -1;
}

/* =====================================================
  Contact
===================================================== */
.contact-space {
  height: 150px;
}

.contact-direct {
  margin-bottom: 120px;
}

.contact-direct h3 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 24px;

}

.contact-direct p {
  margin-top: 32px;
  max-width: 600px;
  font-size: 14px;
}

.contact-form-title {
  margin-bottom: 16px;
}

.contact-border {
  width: 100%;
  border-top: 1px solid #333;
  margin-bottom: 64px;
}

/* ----- Form ----- */
.contact-form {
  max-width: 800px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.form-group label {
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  background-color: #eee;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.submit-btn {
  background-color: #eee;
  margin-top: 40px;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid #333;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}

.submit-btn:hover {
  background: #4e0000;
  color: #fff;
}

/* =========================
  CONTACT SECTION
========================= */
.contact-section {
  align-items: center;
  overflow: hidden;
  font-weight: bold;
  background-color: #4e0000;
}

.contact-inner {
  display: flex;
  width: 100vh;
  animation: loop-text 24s linear infinite;
}

.contact-eyebrow {
  display: inline-block;
  font-size: 6rem;
  white-space: nowrap;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #fff;
}

.contact-action{
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  max-width: 100%;
}

.contact-text{
  align-items: center;
  color: #fff;
  z-index: 100;
  text-align: center;
}

.contact-eyebrow:nth-child(2),
.contact-eyebrow:nth-child(4),
.contact-eyebrow:nth-child(6),
.contact-eyebrow:nth-child(8),
.contact-eyebrow:nth-child(10){
  color: #fff;
}


@keyframes loop-text {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px){
  .contact-direct p{
    font-size: 10px;
  }
}

/* =====================================================
  Footer
===================================================== */
.footer {
  padding: 40px;
  text-align: center;
  background: #4e0000;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.footer-name {
  display: flex;
  padding: 24px 8px;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
}

.footer-name a{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.footer-name:nth-child(1){
  border-top: 1px solid #ccc;
  }

.footer-name .number{
width: 50%;
text-align: left;
}

.footer-name .footer-content{
  width: 50%;
  text-align: right;
  }

.footer-name:hover{
  background-color: #fff;
  color: #4E0000;
  transition: .5s ease-in;
}

.copyright{
  display: grid;
place-items: center;
place-content: center;
}

@media (max-width: 600px){
  .footer {
    display: block;
  }

  .footer-text{
    margin-bottom: 30px;
  }

  .copyright{
    margin: 30px;
    font-size: 9px;
  }
}


/* =====================================================
  work Page
===================================================== */

.work-top{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 300px;
  margin:  50px 60px 0;
  border-bottom: solid 0.7px #ccc;
}


.work-top h2,
.work-top p{
  text-align: center;
  font-weight: bold;
  margin: 0;
  padding: 0%;
}

.work-top p{
  font-size: 20px;
}

/* Web contents top部分 */

.work-content-list{
 display: flex;
 margin: 0 60px;
 justify-content: space-between;
 align-items: center;
}

.work-content-list h3{
  font-size: 48px;
  font-weight: bold;
}

.work-content-list ul{
  display: flex;

}

.work-content-list ul li{
  list-style: none;
  margin-right: 20px;
  padding: 2px 40px;
  border: solid 1px #4e0000;
  border-radius: 20px;
  box-shadow: #333 ;
}

.list-on{
  background-color: #4E0000;
  color: #fff;
  box-shadow: 2px 2px 4px #000 inset;
  border: none;
}

.work-content-item{
  display: flex;
  flex-wrap: wrap;
}

.work-content-item ul{
  display: flex;
  list-style: none;
}

.work-content-item-box{
  margin: 20px 40px 60px 20px ;
}

.item-img{
  width: 450px;
  height: 350px;
  border: solid 1px #333;
}

.item-img img{
  width: 100%;
  height: 100%;
}

.item-explain ul{
  padding-left: 0;
  margin: 16px 0 10px;
}

.item-explain ul li{
  list-style: none;
  margin-right: 10px;
  padding: 1px 12px;
  border: solid 1px #4e0000;
  border-radius: 20px;
  font-size: 10px;
}

.client{
  font-size: 12px;
  opacity: 0.8;
}

@media (max-width: 768px){
  .work-content-list ul li{
    padding: 1px 20px;
    font-size: 12px;
  }

  .work-content-list h3{
    font-size: 28px;
  }
}

@media (max-width: 600px){
  .work-content-list ul li{
    margin-right: 6px;
    font-size: 10px;
  }

  .work-content-list h3{
    font-size: 20px;
  }

  .item-img{
    width: 350px;
    height: 270px;
  }
}

/* =====================================================
  Responsive
===================================================== */
@media (max-width: 768px) {


  .section {
    padding: 80px 24px;
  }

  h2 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .services-wrap,
  .about-row,
  .member {
    display: block;
  }

  .work-item{
    font-size: 40px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .values {
    flex-direction: column;
    gap: 32px;
  }

  .value {
    width: 100%;
  }

  .contact-space {
    height: 160px;
  }

  .contact-eyebrow{
    font-size: 3rem;
  }

  .contact-text{
    font-size: 12px;
  }

}

/* =====================================================
  Scroll % 表示
===================================================== */
#scrollPercent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: #000;
  z-index: 1000;
  pointer-events: none;
}

svg {
	font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
	position: absolute; 
	width: 100%; height: 100%;
}
svg text {
	text-transform: uppercase;
	animation: stroke 5s infinite alternate;
	stroke-width: 2;
	stroke: #365fa0;
	font-size: 140px;
}
@keyframes stroke {
	0%   {
		fill: rgba(72,138,20,0); stroke: rgba(78,0,0,1);
		stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
	}
	70%  {fill: rgba(72,138,20,0); stroke: rgba(78,0,0,1); }
	80%  {fill: rgba(72,138,20,0); stroke: rgba(78,0,0,1); stroke-width: 3; }
	100% {
		fill: rgba(78,0,0,1); stroke: rgba(78,0,0,1); 
		stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
	}
}

/* =====================================================
  Hamburger Menu（SP）
===================================================== */
.hamburger {
  display: none;
  width: 26px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.4px;
  background: #4e0000;
  transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10.2px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* 開いた状態 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* SPメニュー */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #4e0000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  color: #fff;
  font-size: 24px;
  margin: 40px 0;
  padding: 10px 0 0 0;
  border-bottom: .8px solid ;
}
/* デフォルトは閉じている */
.mobile-menu{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

/* 開いている */
.mobile-menu.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* SP表示 */
@media (max-width: 600px) {
  .pc-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  body.is-fixed {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
}



/* =====================================================
  Mobile Menu Close Button
===================================================== */
.menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 40px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1002;
  line-height: 1;
}

.menu-close:hover {
  opacity: 0.6;
}

/* about img */
@media (max-width: 1000px) {
  .about-img{
    width: 70%;
  }
}

/* member */
@media (max-width: 800px){
  svg{
    height: 60%;
  }


.member-text{
  margin-bottom: 28px;
}

.member-name p {
  padding-left: 10px;
  font-size: 14px;
}
}

@media (max-width: 700px) {
  .back{
    height: 35%;
  }
}

@media (max-width: 600px){
  svg{
    height: 50%;
  }
}