@charset "UTF-8";

:root{
  --blue:#4d93d8;
  --dark-blue:#214a78;
  --text:#333b47;
  --muted:#687383;
  --line:#e1e7ee;
  --pale:#f4f9ff;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:#fff;
  font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;
  line-height:1.8;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* ヘッダー：トップページと統一 */
.site-header{
  height:88px;
  padding:0 6vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(77,147,216,.16);
  background:rgba(255,255,255,.97);
}
.site-logo{
  display:block;
  width:180px;
  margin-right:auto;
}
.site-logo img{
  width:100%;
  height:auto;
}
.nav{
  display:flex;
  gap:34px;
  font-size:14px;
  font-weight:600;
}
.nav a{
  padding-bottom:5px;
  border-bottom:1px solid transparent;
  color:#4f5d6c;
}
.nav a:hover,
.nav a.current{
  color:var(--blue);
  border-bottom-color:var(--blue);
}
.menu-btn{
  display:none;
  background:none;
  border:1px solid #b8cfe4;
  color:#4f6680;
  padding:8px 12px;
  border-radius:6px;
  font:inherit;
}

/* ページ上部 */
.works-hero{
  padding:70px 20px 55px;
  background:linear-gradient(180deg,#f4f9ff 0%,#fff 100%);
}
.section-heading{
  text-align:center;
  margin-bottom:0;
}
.heading-deco{
  color:#a9cfee;
  letter-spacing:15px;
  font-size:22px;
}
.section-heading h1{
  margin:0;
  color:#263f60;
  font-size:34px;
  letter-spacing:.12em;
  font-weight:600;
}
.section-heading p{
  margin:5px 0 0;
  color:#606b78;
  font-size:13px;
}
.works-intro{
  max-width:680px;
  margin:25px auto 0;
  padding:17px 25px;
  border:1px solid #dcebf8;
  border-radius:14px;
  background:rgba(255,255,255,.82);
  text-align:center;
  color:#667d91;
  font-size:12px;
  line-height:1.8;
}

/* 実績一覧 */
.section{
  width:min(1180px,92%);
  margin:0 auto;
}
.works-section{
  padding:65px 0 80px;
}
.filter-list{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:0 auto 45px;
  flex-wrap:wrap;
}
.filter{
  min-width:78px;
  padding:7px 18px;
  border:1px solid #bcd7ee;
  border-radius:999px;
  color:#5688b5;
  background:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-align:center;
}
.filter.active{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}

.works-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:42px 28px;
  max-width:1000px;
  margin:0 auto;
}
.work-item{
  text-align:center;
  min-width:0;
}
.work-image{
  width:100%;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border-radius:8px;
  background:#f5f7fb;
  border:1px solid #e4eaf0;
}
.work-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.work-image.placeholder{
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#eef6fb,#f9f2fb);
  color:#94b4d0;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1.7;
  font-size:15px;
}
.work-en{
  display:block;
  margin-top:12px;
  color:#4d93d8;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
}
.work-item h2{
  margin:3px 0 3px;
  color:#23466d;
  font-size:15px;
  line-height:1.55;
  font-weight:600;
}
.work-item p{
  margin:0;
  color:#7890a8;
  font-size:11px;
  line-height:1.7;
}

/* 下部メッセージ */
.works-message{
  width:min(700px,92%);
  margin:0 auto 85px;
  padding:25px 28px 28px;
  border:1px solid #dcebf8;
  border-radius:14px;
  background:linear-gradient(135deg,#f5faff,#fbf9ff);
  text-align:center;
}
.works-message .heading-deco{
  display:block;
  margin-bottom:2px;
}
.works-message h2{
  margin:0;
  color:#2d5f91;
  font-size:20px;
  font-weight:600;
}
.works-message p{
  margin:5px 0 18px;
  color:#667d91;
  font-size:12px;
  line-height:1.8;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  border-radius:999px;
  padding:11px 24px;
  font-weight:700;
  font-size:14px;
  transition:.2s;
}
.btn:hover{transform:translateY(-2px)}
.btn-blue{
  background:#438bd3;
  color:#fff;
  box-shadow:0 7px 18px rgba(67,139,211,.2);
}

/* フッター：トップページと統一 */
.footer{
  margin-top:30px;
  padding:35px 6vw 20px;
  background:#edf5fc;
  color:#4b79a4;
  text-align:center;
}
.footer-logo img{
  width:180px;
  height:auto;
  display:block;
  margin:0 auto;
}
.footer nav{
  display:flex;
  justify-content:center;
  gap:30px;
  margin:20px 0;
  font-size:12px;
}
.footer p{
  font-size:10px;
  margin:0;
}

/* タブレット */
@media (max-width:1050px){
  .nav{gap:24px}
  .works-grid{
    grid-template-columns:repeat(3,1fr);
    gap:36px 20px;
  }
}

/* スマホ */
@media (max-width:760px){
  .site-header{
    height:74px;
    padding:0 5vw;
  }
  .site-logo{
    width:135px;
  }
  .nav{display:none}
  .menu-btn{
    display:block;
    font-size:11px;
    letter-spacing:.08em;
  }

  .works-hero{
    padding:55px 18px 42px;
  }
  .section-heading h1{
    font-size:30px;
  }
  .section-heading p{
    font-size:12px;
  }
  .works-intro{
    margin-top:20px;
    padding:15px 16px;
    font-size:11px;
  }

  .works-section{
    padding:48px 0 65px;
  }
  .filter-list{
    margin-bottom:35px;
    gap:7px;
  }
  .filter{
    min-width:64px;
    padding:6px 12px;
    font-size:10px;
  }

  .works-grid{
    grid-template-columns:repeat(2,1fr);
    gap:32px 12px;
  }
  .work-en{
    margin-top:8px;
    font-size:9px;
  }
  .work-item h2{
    font-size:11px;
    line-height:1.5;
  }
  .work-item p{
    font-size:9px;
    line-height:1.5;
  }

  .works-message{
    width:92%;
    margin-bottom:60px;
    padding:22px 18px 25px;
  }
  .works-message h2{
    font-size:18px;
  }
  .works-message p{
    font-size:11px;
  }

  .footer{
    padding:30px 5vw 18px;
  }
  .footer-logo img{
    width:150px;
  }
  .footer nav{
    flex-wrap:wrap;
    gap:12px 20px;
    font-size:11px;
  }
}

@media (max-width:480px){
  .works-grid{
    grid-template-columns:1fr;
    gap:38px;
  }
  .work-image{
    aspect-ratio:4 / 3;
  }
  .work-item h2{
    font-size:13px;
  }
  .work-item p{
    font-size:10px;
  }
}
