@charset "utf-8";

/*-------------------------
  共通設定
-------------------------*/
.noto-400,
.noto-700,
.noto-900 {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.noto-700 { font-weight: 700; }
.noto-900 { font-weight: 900; }

.oswald-500 {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}


/*------------------------- 
  ヘッダー 
-------------------------*/
header { 
  display: flex;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  color: #fff;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background: #000;
  z-index: 100;
  transition: background-color 0.5s, box-shadow 0.5s;
}

.scrolled {
  background-color: rgba(0, 0, 0, 0.6); /* 少し透過させる */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------------------------
 ロゴ
-------------------------*/
.logo { 
  font-size: 24px;
  color: #fff;
  letter-spacing: 1.5px;
}

/*--------------------------
 ナビゲーション
----------------------------*/
.g-navi ul { 
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.g-navi a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.g-navi a:hover {
  color: #F0FF42;
}

/*-------------------------
  MV セクション
-------------------------*/
.mv-container {
  position: relative;
  width: 100%;
  height: 100vh; /* 全画面表示 */
  overflow: hidden;
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1; /* 背景 */
}

/*------------ オーバーレイ ---------*/
.mv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/*---------- コンテンツ中央寄せ ----------*/
.mv-content {
  position: relative;
  z-index: 3; /* コンテンツが一番上 */
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

/*------------ タイトル ----------------*/
#animated-text {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

/*------------ サブテキスト --------------*/
#sub-text {
  font-size: 1.2rem;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

/*--------------- ボタン --------------*/
.btn {
  display: inline-block;
  padding: 12px 28px;
  margin-top: 30px;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 1s, transform 1s ease 1s;
}

.btn:hover {
  background-color: #F0FF42;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
  transition: transform 0.3s, box-shadow 0.3s;
}

/*----------- 表示時のフェードイン -------------*/
.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/*---------
  skills section
-----------*/
.skills-container {
  padding: 80px 20px;
  background: #fff;
  color: #111;
  text-align: center;
}

.skills-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skills-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.skill-card {
  flex: 1 1 calc(33.333% - 20px);
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  min-width: 250px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover p {
  transform: translateY(-6px) scale(1.08);
  color: #000; /* 強調 */
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* ふわっと感 */
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
  color: #000;
}

.skill-card h3 {
  font-size: 1.2rem;
  font-family: "Noto Sans JP", sans-serif;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #aaa;
  transition: transform 0.4s ease-in-out, color 0.4s ease, text-shadow 0.4s ease;
}

.figma-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}

/* スマホ用 */
@media (max-width: 768px) {
  .skill-card {
    flex: 1 1 100%;
  }
}

/*---------- Works
-------------------*/
.works-container {
  padding: 80px 20px;
  text-align: center;
  background: #f9f9f9;
}

.works-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.works-swiper {
  width: 100%;
  padding: 40px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s, filter 0.4s;
  transform: scale(0.8);  /* 基本は少し縮小 */
  filter: brightness(0.7); /* 中央以外は少し暗くする */
  z-index: 1;
}

.swiper-slide img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: box-shadow 0.4s;
}

/* 中央スライドを拡大 */
.swiper-slide-active {
  transform: scale(1.5);
  filter: brightness(1);
  z-index: 10;
}

/* 中央の左右スライドを少し大きめに */
.swiper-slide-next,
.swiper-slide-prev {
  transform: scale(0.95);
  filter: brightness(0.85);
  z-index: 5;
}

/*------------
work link page
---------------*/

.work-detail {
  max-width: 900px;
  margin: 60px auto 0;
  padding: 60px 20px;
}

.work-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.work-thumbnail {
  text-align: center;
  margin-bottom: 40px;
}

.work-thumbnail img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.work-description h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.work-description p,
.work-description ul {
  line-height: 1.8;
  margin-bottom: 20px;
}

.work-description ul {
  list-style: disc;
  padding-left: 20px;
}

.works-more {
  text-align: right;
  margin-top: 30px;
}

.works-more a {
  display: inline-block;
  font-size: 1rem;
  color: #111;
  text-transform: uppercase;
  border-bottom: 1px solid #111;
  padding-bottom: 3px;
  transition: all 0.3s ease;
}

.works-more a:hover {
  color: #777;
  border-color: #777;
}

.works-category {
  font-size: 1.5rem;
  margin: 50px 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.works-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.works-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/*-----------
about section
--------------*/
.about-container {
  padding: 80px 20px;
  background: #f9f9f9;
}

.about-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
}

.about-content {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.about-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text {
  max-width: 600px;
  text-align: left;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

/*--------
contact
----------*/
.contact-container {
  padding: 80px 20px;
  text-align: left;
  background: #f9f9f9;
}

.contact-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.contact-container h2,
.contact-content > p {
  text-align: center;
}

/* contact form base */
.contact-form {
  max-width: 600px;
  margin: auto;
  margin-top: 40px; ;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* each item */
.form-item {
  margin-bottom: 24px;
}

.form-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

/* input & textarea */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  outline: none;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* 必須マーク */
.required {
  color: #e63946;
  font-size: 0.9em;
}

/* submit button */
.contact-submit {
  text-align: center;
  margin: auto;
  display: block;
  width: 100px;
  background: #007bff;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

input[type="submit"]:hover {
  background: #0056b3;
}

/*---------
works detail
----------*/
.work-detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #222;
  line-height: 1.9;
  background: #fff;
}

/* --- Heroセクション --- */
.work-hero {
  text-align: center;
  margin-bottom: 80px;
}

.work-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  color: #111;
  font-weight: 500;
}

.work-thumbnail {
  border-radius: 10px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.work-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.work-thumbnail:hover img {
  transform: scale(1.03);
}

/* --- コンテンツ部分 --- */
.work-content {
  background: #fafafa;
  border-radius: 10px;
  padding: 60px 70px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 80px;
  transition: box-shadow 0.3s ease;
}

.work-content:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.work-content h2 {
  font-size: 1.6rem;
  color: #111;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #222;
  padding-left: 12px;
  font-weight: 500;
}

.work-content p {
  margin-bottom: 1.5rem;
  color: #333;
}

.work-content ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1.5rem;
}

/* --- 戻るボタン --- */
.back-to-works {
  text-align: center;
  margin-top: 60px;
}

.back-to-works a {
  display: inline-block;
  padding: 12px 30px;
  background: #f0f0f0;
  color: #111;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.back-to-works a:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

/* --- レスポンシブ調整 --- */
@media (max-width: 768px) {
  .work-hero h1 {
    font-size: 2rem;
  }

  .work-content {
    padding: 40px 25px;
  }
}

/* ===============================
   WORKS一覧（中央フェードイン版）
================================ */
.works-list {
  background: #fff;
  color: #111;
  padding: 120px 5%;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 見出し */
.works-list-container > h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 80px;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
}

/* カテゴリ */
.works-category {
  font-size: 1.3rem;
  text-align: center;
  margin: 80px 0 40px;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.1em;
}

/* グリッド */
.works-grid {
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
  gap: 50px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* カード */
.works-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  background: #eee;
  max-width: calc(100% / 3);
}

.works-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.works-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* 黒帯オーバーレイ（下から上） */
.works-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  transition: bottom 0.5s ease;
  z-index: 1;
}

.works-item:hover::before {
  bottom: 0;
}

/* タイトル中央配置（ふわっと浮かび上がる） */
.works-item h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 20%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0;
  z-index: 2;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.works-item:hover h3 {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .works-list-container > h1 {
    font-size: 2.2rem;
  }
  .works-grid {
    gap: 30px;
  }
  .works-item h3 {
    font-size: 1.1rem;
  }
}

