
/* ========== Base ========== */
:root{
  --container: 1200px;
  --brand: #005BAC;
  --brand-2: #1a5c37;
  --acc: #21dd72;
  --acc-2: #35fd49;
  --text: #222;
  --muted: #8e8585;
  --bg: #fff;
  --bg-alt: #f9f9f9;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
li { list-style: none; }

body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Noto Serif JP', serif;
  line-height: 1.7;
}


.container{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header ========== */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header .container{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
}

.logo img{ width: 260px; max-width: 50vw; height: auto; }

.nav{ justify-self: end; }
.nav ul{
  display: grid;
  grid-auto-flow: column;
  gap: 2rem;
  padding: 0; margin: 0;
}
.nav a{
  position: relative;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  transition: color .3s;
}
.nav a::after{
  content:"";
  position:absolute; left:0; bottom:-4px;
  height:2px; width:0%;
  background: var(--acc);
  transition: width .3s ease;
}
.nav a:hover::after{ width:100%; }

/* Hamburger */
.hamburger{
  display: none;
  width: 32px; height: 24px; cursor: pointer;
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
}
.hamburger span{
  display:block; height:3px; width:100%;
  background:#333; margin:4px 0; border-radius:2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1),
.hamburger.active span:nth-child(3){ position:absolute; top:10px; }
.hamburger.active span:nth-child(1){ transform: rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: rotate(-45deg); }

/* ========== Hero #1 ========== */
.hero{
  position: relative;
  display: grid;
  min-height: min(100svh, 1000px);
  overflow: hidden;
}
.hero-image img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-text{
  z-index: 1;
  align-self: end;
  justify-self: start;
  margin: clamp(16px, 4vw, 40px);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  max-width: min(80ch, 90vw);
}
.grunge-text{
  font-size: clamp(6.4rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: .02em;
  position: relative;
  margin: 0;
}
.grunge-text::after{
  content:"";
  position:absolute; inset:0;
  background:url("grunge-texture.png") repeat;
  mix-blend-mode:multiply; pointer-events:none;
}

/* ========== Hero #2（塗り床って？） ========== */
.hero-section{
  position: relative;
  overflow: hidden;
  background: #fff;
}
.hero-section::before,
.hero-section::after{
  content:"";
  position:absolute; left:-20%;
  width:140%; height:16rem;
  background: #a0f0a7; opacity:.3; z-index:0;
  transform: rotate(0deg);
}
.hero-section::after{ bottom: -4rem; transform: rotate(5deg); }
.hero-section::before{ top: -4rem; transform: rotate(-2deg); }

.hero-section > .container{
  position: relative; z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(3rem, 6vw, 6rem) 0;
  text-align: center;
}
.hero-title{
  margin: 0 auto;
  font-size: clamp(4rem, 6vw, 6.5rem);
  font-weight: 700;
  letter-spacing: .02em;
}
.hero-content p{
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(1rem, 2.2vw, 2rem);
}

/* 悩みカード */
.solution-title{
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--brand);
  display: grid; grid-auto-flow: column; justify-content: center; align-items: center;
  gap: .6rem; margin: .5rem 0 1rem;
}
.card-boxes{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1300px; margin: 0 auto;
}
.card-box{
  position: relative;
  aspect-ratio: 15/10;
  border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  transition: transform .3s ease;
}
.card-box:hover{ transform: translateY(-4px); }
.card-box::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.4);
}
.card-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.card-content{
  position: relative; z-index: 1;
  display: grid; place-items: center; gap: .75rem;
  padding: 1rem; text-align: center; color: #fff;
}
.card-content p{
  margin: 0; font-size: clamp(1rem, 2.4vw, 1.3rem); font-weight: 700; color:#121010;
}
.circle-btn{
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--brand);
  text-decoration: none; font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.circle-btn:hover{ transform: scale(1.12) translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }

.solution-text{ text-align: center; }
.solution-text p{ font-size: clamp(0.95rem, 2vw, 1.1rem); margin: .5rem 0 0; }

/* ========== Services ========== */
.services-cards {
  background: #f4f4f4;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1rem;
}
.service-cards li {
  margin-right: 20px;
  margin-left: 20px;
}

.card{
  position: relative; height: 380px;
  background-size: cover; background-position: center;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.overlay{
  position:absolute; inset:0; color:#fff;
  background: rgba(0,0,0,.45);
  display:grid; place-content:center; gap: .8rem;
  text-align:center; padding: 1.2rem;
}
.overlay h3{ margin:0; font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 800; }
.overlay .ja{ font-size: .95rem; }
.divider{ width: 100px; height: 3px; background: var(--acc-2); margin: .4rem auto 1rem; }

 .detail-btn {
  display: inline-block;
  width: 160px;         
  text-align: center;  
  padding: .55rem 0;    
  background: var(--muted);
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  font-weight: 700;
  font-size: .92rem;
  transition: background .25s ease, transform .25s ease;
}

.detail-btn span{ margin-left: .5rem; }
.detail-btn:hover{ background:#3bba65; transform: translateY(-1px); }

/* ========== Works Title ========== */
.works-title{
  padding: clamp(2rem, 5vw, 3rem) 0 0;
  max-width: 900px; margin: 0 auto;
}
.section-subtitle{ font-weight: 700; color:#222; margin: 0 0 .4rem; }
.section-main-title{
  margin: 0; line-height: 1;
  font-size: clamp(2.2rem, 10vw, 6rem); font-weight: 900;
  overflow: hidden;
}
.gradient-text{
  display:inline-block;
  background: linear-gradient(90deg, #b2b5b6, #4ae17f);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  transform: translateY(100%); opacity: 0;
  animation: slideIn 1s ease-out forwards;
}
@keyframes slideIn{ to{ transform: translateY(0); opacity: 1; } }

/* ========== Works (Swiper) ========== */
.works-gallery{ padding: clamp(2.5rem, 6vw, 4rem) 0; background: var(--bg-alt); }
.works-swiper {
  padding-bottom: 2rem;
  max-width: 1300px;  
  margin: 0 auto;    
}

.work-item{ position: relative; border-radius: 10px; overflow: hidden; transition: transform .25s ease; }
.work-item:hover{ transform: scale(1.02); }
.work-item img{ width:100%; height: clamp(320px, 50vw, 500px); object-fit: cover; display:block; }
.caption-overlay{
  position:absolute; left:0; right:0; bottom:0;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent 70%);
  color:#fff; text-align:center; padding:.85rem;
  font-weight: 800; letter-spacing: .15em; font-size: clamp(.85rem, 1.8vw, 1rem);
}

/* ========== Recruit ========== */

.recruit-banner{
  position: relative;
  background: url('img/logo2.jpg') center/cover no-repeat;
  min-height: 300px;
}
.recruit-overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.5);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding: 1rem; gap: 1rem;
}
.recruit-content{ color:#fff; }
.recruit-title{ margin:0; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
.recruit-text{ margin:0; font-size: clamp(.95rem, 2.2vw, 1rem); }

.more-button {
  display: inline-block;
  min-width: 240px;               
  padding: 1.2rem 2.8rem;         
  font-size: clamp(1.2rem, 3vw, 1.6rem); 
  font-weight: 800;
  letter-spacing: 0.05em;        
  text-align: center;

  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #00c853, #1a5c37);
  border-radius: 60px;           
  border: 2px solid #fff;    
  box-shadow: 0 10px 25px rgba(0,0,0,.3); 
  transition: all .3s ease;
}

.more-button:hover {
  transform: translateY(-4px) scale(1.05); 
  background: linear-gradient(135deg, #1a5c37, #00c853);
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
}


/* ========== Footer ========== */
.footer{
  background:#000; color:#fff;
  padding: 3rem 0 1rem; font-size: .95rem;
}


.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; 
  align-items: start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-right {
  text-align: right;      
  padding-right: 2rem;   
}

.footer-right .footer-nav {
  display: inline-block;  
  text-align: left;       
}



.footer-nav {
  display: grid;
  grid-template-columns: repeat(1, auto); 
  gap: 0.75rem 2rem; 
  list-style: none;
  padding: 0;
  margin-left: auto;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: #50e33f;
}


.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}


.footer-logo{ height: 90px; margin-bottom: 1rem; }
.footer address{ font-style: normal; line-height: 1.8; font-size: 1.05rem; }
.footer-social{ display:flex; gap:1rem; align-items:center; margin: 2rem 0 2rem 0; }
.footer-social a{ font-size: 1.9rem; color:#fff; transition: color .25s, transform .25s; }
.footer-social a:hover{ color:#58dc44; transform: translateY(-2px); }
.footer-right .footer-nav{ margin:0; padding:0; }
.footer-right .footer-nav a{
  color:#fff; text-decoration:none; font-size: 1.1rem; display:inline-block; padding:.25rem 0;
  transition: color .25s;
}
.footer-right .footer-nav a:hover{ color:#50e33f; }
.footer-bottom{
  text-align:center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #444; color:#ccc;
}

/* ========== Utilities ========== */
.fade-in{ opacity: 0; transform: translateY(30px); transition: all 1s ease-out; }
.fade-in.visible{ opacity: 1; transform: translateY(0); }


@media (max-width: 1080px){

  /* 安全余白（ノッチ対策） */
  body{
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  /* ヘッダー */
  .header .container{
    grid-template-columns: 1fr;
    min-height: 64px;
    padding-top: max(8px, env(safe-area-inset-top, 0));
  }
  .logo img{
    width: clamp(160px, 38vw, 220px);
  }

  .hamburger{
    display: block;
    right: 16px;
  }

  /* ナビ */
  .nav{
    position: fixed;
    inset: 0;
    top: calc(64px + env(safe-area-inset-top, 0));
    height: calc(100svh - 64px - env(safe-area-inset-top, 0));
    background: #fff;
    display: none;
    border-top: 1px solid #eee;
    z-index: 1000;
    overflow: auto;
  }
  .nav.active{ display: block; }
  .nav ul{
    display: grid;
    grid-auto-flow: row;
    gap: 0.25rem;
    padding: 1rem 1rem 2rem;
    justify-items: stretch;
  }
  .nav li a{
    display: block;
    padding: 1rem 0.75rem;
    font-size: 1.05rem;
  }
  .nav a::after{ bottom: -2px; }

  .hero-image {
    width: 100%;
  
    overflow: hidden;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      
    object-position: right;  
    display: block;
  }

  /* Hero #1 */
  .hero{
    min-height: 70svh; 
  }
  .hero-text{
    margin: 12vw 5vw;
    max-width: 90vw;
    align-self: end; 
  }
  .grunge-text{
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    line-height: 1.1;
  }
  
  .hero::after{
    content:"";
    position:absolute; inset:auto 0 0 0; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
    pointer-events:none;
  }

  /* Hero #2（塗り床） */
  .hero-section > .container{
    gap: 1.25rem;
    padding: 2.25rem 0 2.75rem;
  }
  .hero-title{
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .hero-content p{
    font-size: clamp(0.95rem, 4.2vw, 1.05rem);
    padding: 0 1rem;
  }
  .solution-title{
    font-size: clamp(1.1rem, 5.2vw, 1.4rem);
    gap: .4rem;
  }

  /* 悩みカード */
  .card-boxes{
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  .card-box{
    aspect-ratio: 16/10;
  }
  .card-content p{
    font-size: clamp(1rem, 4.2vw, 1.15rem);
  }
  .circle-btn{
    width: 48px; height: 48px; font-size: 1.3rem;
  }

  /* Services */
  .services-cards{
    padding: 2rem 0;
  }
  .service-cards{
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  .card{ height: clamp(220px, 48vw, 280px); }
  .overlay h3{ font-size: clamp(1rem, 4.5vw, 1.15rem); }

  /* Works タイトル */
  .works-title{
    padding: 1.5rem 1rem 0;
  }
  .section-main-title{
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  /* Swiper（WORKS） */
  .works-gallery{
    padding: 1.25rem 0 2rem;
  }
  .works-swiper{ padding: 0 1rem 1.25rem; }
  .work-item img{
    height: clamp(500px, 55vw, 360px);
  }
  .caption-overlay{
    padding: .6rem .75rem;
    font-size: clamp(.8rem, 3.8vw, .95rem);
    letter-spacing: .08em;
  }

  /* Recruit */
  .recruit-banner{
    min-height: 260px;
  }
  .recruit-title{ font-size: clamp(1.25rem, 6vw, 1.6rem); }
  .more-button{
    padding: .9rem 1.6rem;
    font-size: clamp(.95rem, 4.5vw, 1.05rem);
  }

  /* Footer */
  .footer{
    padding: 2rem 0 1rem;
  }
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
    padding: 0 1rem;
  }
  .footer-social a {
    text-align: center;
  }
  
  .footer-logo{ height: 72px; }
  .footer address{
    font-size: .95rem;
  }
  
   .footer-right {
    grid-column: auto;  
    text-align: center; 
    margin-top: 1.5rem;
  }

  .footer-right .footer-nav {
    display: inline-block; 
    text-align: left;     
  }
}

/* =========================================
   Very small phones (<= 480px)
========================================= */
@media (max-width: 480px){
  .nav li a{ padding: 1.1rem .75rem; font-size: 1.02rem; }

  .grunge-text{ font-size: clamp(1.6rem, 10vw, 2.2rem); }

  .card-box{ aspect-ratio: 3/2; }
  .overlay{ padding: 1rem; gap: .6rem; }

  .footer-right .footer-nav a{ padding: .6rem 0; }
}
