@charset "utf-8";

/* =================================================================
   Reset & Base Settings
================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  padding-top: 60px;
}

img, picture, video, canvas, svg {
  filter: none !important;
}

/* =================================================================
   Header
================================================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 60px;
  background-color: #333333;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header .logo {
  font-size: 18px;
  text-decoration: none;
  color: #ffffff;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  padding-left: 24px;
}

header nav ul li a {
  text-decoration: none;
  color: #ffffff;
  padding-left: 16px; 
}

/* =================================================================
   KV Section (FV)
================================================================= */
.kv {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 60px 20px; /* 左右の余白を他のセクションと統一 */
  min-height: 360px;
  background-color: #fff;
  position: relative;
}

.kv-text {
  flex: 1;
  text-align: left;
}

.kv-text h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 120px;
  font-weight: 900;
  line-height: 1.2;
  color: #333333;
  margin: 0;
  position: relative; 
  top: auto;
  left: auto;
  z-index: 2;
}

.kv-images {
  position: relative;
  width: 320px;
  height: 280px;
  flex-shrink: 0;
}

.kv-images .bread {
  position: absolute;
}

.bread1 {
  bottom: 20px;
  right: 150px;
  width: 130px;
  animation: float1 6s ease-in-out infinite;
}

.bread2 {
  bottom: 80px;
  right: 300px;
  width: 120px;
  animation: float2 8s ease-in-out infinite;
  animation-delay: 0.5s;
}

.bread3 {
  bottom: 100px;
  right: 0px;
  width: 120px;
  animation: float3 5s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, -20px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -15px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -25px); }
}

/* =================================================================
   Common Section & Inner Settings (余白の完全統一)
================================================================= */
#about,
#works,
#lab,
#contact {
  padding-left: 20px;
  padding-right: 20px;
}

.about-inner,
.works-inner,
.lab-inner,
.contact-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

/* =================================================================
   About Section
================================================================= */
#about {
  margin-top: -20px;
  background: #FFFB7C;
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
  justify-content: center;
}

#about h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 42px;
  color: #333;
  margin: 0 0 40px 0;
  text-align: left;
}

.about-body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-left {
  flex: 0 0 100px;
}

.about-left img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.about-right {
  flex: 1;
  min-width: 260px;
}

.about-right h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 28px;
  margin-bottom: 0px;
}

.about-right h3 + p {
  margin-top: 30px;
}

.about-right p {
  font-size: 16px;
  margin-bottom: 16px;
}

.tools-wrapper {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tools-box {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  min-width: 300px;
}

.tools-box h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.tool-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 420px;
  margin: 0 auto;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100px;
}

.tool-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tool-item span {
  font-size: 14px;
  text-align: center;
}

/* =================================================================
   Works Section
================================================================= */
#works {
  background-color: #ffffff;
  padding-top: 80px;
  padding-bottom: 80px;
}

#works h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 42px;
  color: #333;
  text-align: left;
  margin: 0 0 32px 0;
}

#works h3 {
  font-size: 24px;
  margin-bottom: 8px;
  text-align: left;
}

#works p {
  font-size: 16px;
  margin-bottom: 32px;
  text-align: left;
}

#works button,
#toggle-works-1,
#toggle-works-2 {
  display: block;
  margin: 16px auto 60px;
  padding: 8px 24px;
  font-size: 14px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Works専用の画像グリッド（PC時は横3列） */
.works-grid,
.works-hidden {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 24px;
}

.works-grid.nc-group {
  margin-bottom: 60px;
}

.works-hidden {
  display: none;
}

.works-grid img,
.works-hidden img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ホバーエフェクト */
.works-grid a img,
.tools-gallery a img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.works-grid a:hover img,
.tools-gallery a:hover img {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* =================================================================
   Lab Section
================================================================= */
#lab {
  background-color: #FFFB7C;
  padding-top: 100px;
  padding-bottom: 100px;
}

#lab .lab-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

#lab h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 42px;
  margin: 0 0 32px;
}

#lab h3 {
  font-size: 24px;
  margin: 0 0 16px;
}

#lab p {
  font-size: 16px;
  margin: 0 0 16px;
}

.tools-gallery img {
  width: 100%;
  display: block;
}

/* =================================================================
   Contact Section
================================================================= */
#contact {
  background-color: #ffffff;
  padding-top: 100px;
  padding-bottom: 100px;
}

#contact h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 42px;
  margin: 0 0 32px;
  text-align: left;
}

#contact h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 30px;
  text-align: left;
  line-height: 1.4;
}

.contact-inner p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.contact-inner a {
  color: #333;
  text-decoration: underline;
}

/* =================================================================
   Media Queries (Mobile / SP)
================================================================= */
@media screen and (max-width: 768px) {
  .kv {
    flex-direction: column;
    align-items: center;
    height: 200px;
    padding: 0 20px;
  }

  .kv-text h1 {
    font-size: 48px;
    top: 32px;
    left: 0;
  }

  .about-body {
    flex-direction: column;
    align-items: center;
  }

  /* SP時は Works の画像を「横2列」にする */
  .works-grid,
  .works-hidden {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; /* スマホで見やすいように隙間を少しコンパクトに */
  }
}