/*
Theme Name: Carava Design Theme
Theme URI: https://caravadesign.com
Author: Carava Design
Description: Carava Design 全ページWordPress化テーマ
Version: 2.0
*/
/* =====================================================
  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: 110px 0 0;
  max-width: 1000px;
  margin: 0 auto;
}

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%;
}

.pc_none{
display: none;
}

@media (max-width:600px){

.sp_none{
 display: none;
}
.pc_none{
display: block;
}

}

/* =====================================================
  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/common/carava_logo_black.png');
  background-position: center;
background-size: cover;
background-repeat: no-repeat;
}

.message{
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.message_title{
  font-weight: 700;
  padding: 100px 20px;
  font-size: 32px;
}

.message_text{
  font-size: 18px;
  line-height: 2.8;
  padding-bottom: 80px;

}

.message-content{
  text-align: center;
}

.btn-carava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 300px;
  border: 1px solid #4E0000;
  color: #4E0000;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-carava:hover {
  background: #4E0000;
  color: #fff;
}

.btn-carava:active {
  transform: scale(0.98);
}

.btn-carava:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}


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

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

  .btn-carava{
  padding: 10px 40px;
}
}


@media (max-width: 600px) {


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

  #clock-text{
    font-size: 10px;
  }
  .message_title{
    padding: 60px 0;
  }
  .message_title{
  font-size: 18px;
}
.message_text{
  font-size: 14px;
  line-height: 2.0;
  text-align: center;
}


.work-item p {
  font-size: 24px;
}
.works-list {
  gap: 12px;
}

}




/* =====================================================
  about
===================================================== */

.about_text{
  font-size: 18px;
  line-height: 2.2;
  padding-bottom: 80px;
  text-align: left;
}


/* =====================================================
  Works
===================================================== */
work_rap{
  max-width: 1000px;
  margin: 0 auto;
}


.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 {
  max-width: 580px;
  height: 580px;

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

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

.service-topimg{
  max-width: 580px;
  max-height: 580px;

  position: absolute;
  top: -150px;
  right: -80px;

  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: 80%;
}

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

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

.about-img video{
  width: 100%;
  height: 50%;
}
.about_box{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* about responsive */

@media(max-width: 600px){

.about-right{
  width: auto;
}
.about_text{
  font-size: 16px;
  line-height: 1.8;

}

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

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

.line {
  margin: 10px 0;
}

.about-content{
  margin-bottom: 60px;
  flex-direction: column;
  align-items: center;
}

.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;
  max-width: 1000px;
  margin: 0 auto;
}

.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%;
}

.policy_title{
  font-size: 24px;
  font-weight: 700;
  padding-bottom: 40px;
}



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

.member_rap{
  max-width: 1000px;
  margin: 100px auto 0;
  padding: 0 20px;
}

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

.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 #4e0000;
  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;
  margin-top: 160px;
}

.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: 100px 60px 0;
 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;
  gap: 32px;                 /* カード間の余白 */
  justify-content: flex-start;
  padding: 160px 20px;
  max-width: 1100px;
  margin: 0 auto;

}

.work-content-item ul{
  flex: 0 0 calc((100% - 64px) / 3); /* 32px gapが2本=64px */
  margin: 0;                         /* ulの余白リセット */
  padding: 0;
  list-style: none;
}

.work-content-item-box{
    margin: 0;
}

.nft_text{
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  padding: 160px 0;
}

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

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

.item-explain ul{
   display: flex;
  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;
    padding-bottom: 20px;
  }
.nft_text{
  padding: 0;
}
  
}

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

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

  .item-img{
    width: 350px;
    height: 270px;
  }
  .member_rap{
  margin: 80px auto 0;
  padding: 0 20px;
}
.contact-section{
  margin-top: 80px;
}
.work-top{
      height: 200px;
}

}

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


  .section {
    padding: 80px 20px 0;
  }

  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;
    align-items: center;
    gap: 32px;

  }

  .value {
    width: 65%;
  }

  .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;
  }
  .work-content-item{
  padding: 80px 20px;
}
.work-content-list{
  margin: 40px 20px;
  flex-direction: column;
}
}



/* =====================================================
  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: 70%;
  }
  .back{
    height: 20%;
  }
}

/* =====================================================
  img
===================================================== */

.scroll-gallery {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-track {
  display: flex;
  width: max-content;
  gap: 20px;
  will-change: transform;
  padding-top: 80px;
}

.scroll-item {
  flex: 0 0 auto;
  width: clamp(180px, 28vw, 300px);
}

.scroll-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}




/* ── CSS変数 ────────────────────────────────────────────── */
:root {
  --cv-bg:     #f0ede6;
  --cv-accent: #4e0000;
  --cv-muted:  #4a4a42;
  --cv-mid:    #1c1c18;
}

/* ── スクロールリビール ─────────────────────────────────── */
.cv-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.cv-reveal.is-visible { opacity: 1; transform: translateY(0); }
.cv-reveal-d1 { transition-delay: .1s; }
.cv-reveal-d2 { transition-delay: .2s; }
.cv-reveal-d3 { transition-delay: .3s; }

/* ============================================================
   セクション共通
   main.css の .section(max-width:1000px) / h2 / h3 を上書き
   ============================================================ */
#cv-services,
#cv-works,
#cv-message{
  padding: 80px 20px;
  max-width: none;
  margin: 0;
}

/* h2 グローバル上書き */
#cv-services .cv-section-title,
#cv-works    .cv-section-title,
#cv-message  .cv-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--cv-fg);
  margin-bottom: 60px;
  margin-top: 0;
}

.cv-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cv-accent);
  margin-bottom: 16px;
  margin-top: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */

.cv-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: #4E0000;
}

.cv-service-card {
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  cursor: default;
  background-color: #dddddd;
}

/* ホバーで下からアクセントカラーが塗り上がる */
.cv-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cv-accent);
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-service-card:hover::before { transform: translateY(0); }

/* ホバー時テキスト反転 */
.cv-service-card:hover .cv-service-num,
.cv-service-card:hover .cv-service-name,
.cv-service-card:hover .cv-service-desc,
.cv-service-card:hover .cv-service-tag {
  color: var(--cv-bg) !important;
  border-color: var(--cv-bg) !important;
}

.cv-service-num {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  color: #4E0000;
  letter-spacing: 0.2em;
  margin: 0 0 40px;
  position: relative;
  z-index: 1;
  transition: color .3s;
}

/* h3 グローバル（24px / 500）を上書き */
.cv-service-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
  transition: color .3s;
}

.cv-service-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  margin: 0 0 32px;
  position: relative;
  z-index: 1;
  transition: color .3s;
}

.cv-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.cv-service-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #4E0000;
  border-radius: 20px;
  padding: 4px 10px;
  transition: color .3s, border-color .3s;
}

/* サービス画像カード */
.cv-service-card--img {
  padding: 0;
  overflow: hidden;
  min-height: 260px;
  cursor: default;
}
.cv-service-card--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.cv-service-card--img:hover img { transform: scale(1.04); }
.cv-service-card--img::before { display: none; }

/* ============================================================
   WORKS
   ============================================================ */
.cv-section{
  padding: 160px 20px;
}

.cv-works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}
.cv-works-header .cv-section-title { margin-bottom: 0; }

.cv-works-filters { display: flex; gap: 4px; }

.cv-filter-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cv-muted);
  background: transparent;
  border: 1px solid var(--cv-muted);
  padding: 10px 20px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.cv-filter-btn.is-active,
.cv-filter-btn:hover {
  color: var(--cv-bg);
  background: var(--cv-accent);
  border-color: var(--cv-accent);
}

/* Works グリッド */
.cv-works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}


/* main.css .work-item とは別クラスなので競合なし */
.cv-work-item {
  position: relative;
  overflow: hidden;
  background: var(--cv-mid);
  display: block;
  text-decoration: none;
  color: var(--cv-fg);           /* main.css body color:#4E0000 を上書き */
  transition: opacity .35s ease, transform .35s ease;
}

/* 6枚配置 */
.cv-work-item:nth-child(1) { grid-column: span 8; grid-row: span 2; height: 560px; }
.cv-work-item:nth-child(2) { grid-column: span 4; height: 270px; }
.cv-work-item:nth-child(3) { grid-column: span 4; height: 270px; }
.cv-work-item:nth-child(4) { grid-column: span 4; height: 300px; }
.cv-work-item:nth-child(5) { grid-column: span 4; height: 300px; }
.cv-work-item:nth-child(6) { grid-column: span 4; height: 300px; }

.cv-work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-work-item:hover img { transform: scale(1.06); }
.cv-work-item:hover     { transform: scale(1.01); }

.cv-work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 8, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}
.cv-work-item:hover .cv-work-overlay { opacity: 1; }

.cv-work-tag {
  font-size: 40px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 20px 40px 0;
}

/* h3 グローバル上書き */
.cv-work-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
   margin: 20px 40px 0;
  color: #ffffff;
}


/* VIEW ALL リンク */
.cv-works-more {  
  text-align: right;
  padding: 0 20px 80px;
 }
.cv-works-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cv-fg);
  text-decoration: none;
  border-bottom: 1px solid #4E0000;
  padding-bottom: 8px;
  transition: gap .3s, border-color .3s, color .3s;
}
.cv-works-more-btn:hover {
  gap: 28px;
  border-color: #4E0000;
  color: var(--cv-accent);
}

@media (max-width: 480px) {
  .cv-works-filters { flex-wrap: wrap; }

  .cv-work-item:nth-child(1) { height: 220px; }
  .cv-work-item:nth-child(2),
  .cv-work-item:nth-child(3),
  .cv-work-item:nth-child(4),
  .cv-work-item:nth-child(5),
  .cv-work-item:nth-child(6) { grid-column: span 2; height: 180px; }
}


.insole-slider {
  width: 100%;
  overflow: hidden;
}

.insole-slider-track {
  display: flex;
  width: max-content;
  animation: sliderLoop 30s linear infinite;
}

.insole-slider:hover .insole-slider-track {
  animation-play-state: paused;
}

.slide {
  width: 300px;
  margin-right: 20px;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

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


.service-gris {
  display: flex;
  gap: 20px;

}

.service-large {
  width: 66%;
  height: 500px;
}

.service-right {
  width: 34%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-right .service-item {
  height: 240px;
}

.service-item {
  background: #4e0000;
  position: relative;
  display: block;
  text-decoration: none;
  transition: .3s;
}

.service-item span {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #fff;
  font-size: 28px;
  letter-spacing: .08em;
  font-weight: 500;
}

.service-item:hover {
  opacity: .8;
}


/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .cv-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #cv-works {
    padding: 80px 24px;
  }

  .cv-services-grid {
    grid-template-columns: 1fr;
  }

  .cv-works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .cv-works-header .cv-section-title { margin-bottom: 0; }

  .cv-works-grid { grid-template-columns: 1fr 1fr; }
  .cv-work-item:nth-child(1) { grid-column: span 2; height: 260px; }
  .cv-work-item:nth-child(2),
  .cv-work-item:nth-child(3),
  .cv-work-item:nth-child(4),
  .cv-work-item:nth-child(5),
  .cv-work-item:nth-child(6) { grid-column: span 1; height: 180px; }


.cv-work-tag {
  font-size: 18px;
  margin: 20px 5px 0;
}

/* h3 グローバル上書き */
.cv-work-title {
  font-size: 14px;
  margin: 16px 5px 0;
}
.cv-works-more-btn{
  font-size: 14px;
}

.service-large{
  height: 380px;
}

.service-right .service-item {
    height: 180px;
}

.insole-slider{
  height: 250px;
}

.cv-section{
  padding: 80px 20px;
}

.cv-service-name{
  font-size: 20px;
}
}
