@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.05rem;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav a:hover {
  color: #FFB2A4;
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f8f9fa;
  padding: 0 5%;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero span {
  color: #FFB2A4;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background: #FFB2A4;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 20px;
  transition: 0.3s;
}

.btn:hover {
  color: #FFB2A4;
  background: #f9f9f9;
}

.section {
  padding: 100px 5%;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
}

.section p{
  text-align: center;
}

/* アイコン群 */
.bubble-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.bubble-icons img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  padding: 8px;
  opacity: 0;
  transform: scale(0.6);
}

.bubble-box.active .bubble-icons img:nth-child(1) {
  animation: pop 0.3s 0.0s forwards;
}
.bubble-box.active .bubble-icons img:nth-child(2) {
  animation: pop 0.3s 0.05s forwards;
}
.bubble-box.active .bubble-icons img:nth-child(3) {
  animation: pop 0.3s 0.1s forwards;
}
.bubble-box.active .bubble-icons img:nth-child(4) {
  animation: pop 0.3s 0.15s forwards;
}

@keyframes pop {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}


.bubble-box {
  display: none;
  width: 300px;
  margin: 0 auto 30px;
  position: relative;
  background: #fff;
}
.bubble-box.active {
  display: block;
}




.works a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.works a:hover {
  color: #FFB2A4;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
}
.works-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 10px 20px;
  border: 1px solid #FFB2A4;
  background: #fff;
  color: #FF7F6B;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active {
  background: #FFB2A4;
  color: #fff;
}

.works-group {
  display: none;
}

.works-group.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.work-item img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

#web > .work-item img {
  aspect-ratio: auto;
}

.work-item h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 10px;
  margin: 0;
  color: #111;
  letter-spacing: 0.03em;
}

.section.works {
  background-color: #fff;
  padding: 80px 5%;
  text-align: center;
  color: #333;
}

.work-item {
  border: 1px solid #ddd;
  padding: 20px;
  background-color: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  cursor: pointer;
}

.work-item:hover {
  transform: translate(-5px, -5px);
  box-shadow: 5px 5px;
  transition: 0.1s;
}

.iframe-card {
  padding: 0;      
}

/* .iframe-wrap {
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  pointer-events: none;  
  transform: scale(1);  
} */
.iframe-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 5px 5px ;
}

.work-item:hover,
.iframe-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 5px 5px #555;
}




.footer {
  text-align: center;
  padding: 40px 0;
  background: #f0f0f0;
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav {
    margin-top: 10px;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 60px 5%;
  }

  .bubble-box {
    width: 90%;
    padding: 0;
  }
  
  /* スマホで横スクロールにする*/
  .works-group {
    /* display: flex !important; */
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
  }

  /* 横に並べるための幅指定 */
  .work-item {
    flex: 0 0 75%;
    max-width: none;
  }

  /* スクロールバー非表示 */
  .works-group::-webkit-scrollbar {
    display: none;
  }

  

  /* 表示されたグループだけを横スクロール */
  .works-group.active {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
  }

  /* 非アクティブは非表示のまま */
  .works-group {
    display: none;
  }

  /* カード幅（1枚ずつ） */
  .work-item {
    flex: 0 0 80%;
    max-width: none !important;
  }

  /* スクロールバー非表示 */
  .works-group.active::-webkit-scrollbar {
    display: none;
  }


}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}
