@charset "utf-8";

/* ============================= */
/* styles.css */
/* ============================= */
html,
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  font-size: 65px;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

h2 {
  text-align: center;
  font-size: 60px;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

h3 {
  text-align: center;
  font-size: 30px;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

h4 {
  text-align: center;
  font-size: 24px;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

/* ============================= */
/* homeページ*/
/* ============================= */
#slideshow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  /* スライドショーを後ろに移動 */
  width: 100vw;
  /* ビューポート幅全体 */
  height: 100vh;
  /* ビューポート高さ全体 */
  overflow: hidden;
}

#time {
  position: fixed;
  /* ページ内で固定表示 */
  top: 0;
  /* 上端に配置 */
  left: 0;
  /* 左端に配置 */
  margin: 10px;
  /* 不要な余白を削除 */
  padding: 10px;
  /* 少し余白を加えて見やすく */
  border: 1px solid #ccc;
  /* 見やすいように枠線を追加 */
  font-size: 20px;
  /* フォントサイズ調整 */
  color: #fff;
  z-index: 999;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  /* 最前面に配置 */
}

#slideshow img {
  position: absolute;
  object-fit: cover;
  /* 画像を全体に収める */
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#slideshow img.active {
  opacity: 1;
}

header {
  color: #fff;
  display: flex;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-weight: bold;
  flex-direction: column;
  justify-content: center;
  /* 高さ方向の中央揃え */
  align-items: center;
  /* 横方向の中央揃え */
  height: 100vh;
  background-size: cover;
  position: relative;
  /* ヘッダー内の要素をスライドショーの上に配置 */
  z-index: 1;
  /* スライドショーの上に表示する */
}

p,
h1,
nav,
a {
  position: relative;
  /* 必要に応じて適用 */
  color: #fff;
  /* スライドショー背景での視認性向上 */
  text-decoration: none;
}

header h1 {
  text-align: center;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  color: #fff(59, 5, 255);
}

#home .nav a {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  color: #fff;
  text-decoration: none;
  gap: 5px;
  position: relative;
}

#home a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

#home .header-nav a:hover {
  color: rgb(30, 245, 230);
  transition: color 0.4s ease;
}

#home a:hover::after {
  width: 100%;
}

/* ============================= */
/*profileページ*/
/* ============================= */
.bg-img {
  background-image: url('../images/PC2.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.7);
  background-blend-mode: lighten;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding-bottom: 150px;
  min-height: 100vh;
}

/*自己紹介カードデザイン*/
.about-title {
  text-align: center;
  letter-spacing: 0.08em;
  padding-top: 120px;
  color: #6e6e6e;
  margin-bottom: 100px;
}

.about-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: linear-gradient(to right, #ffc5fcc5, #cafffdc9);
  background-size: cover;
  border-radius: 40px;
  box-shadow: 0 6px 32px 0 rgba(60, 60, 80, 0.13), 0 1.5px 6px 0 rgba(60, 60, 80, 0.10);
  padding: 40px 40px;
  margin: 0 auto 150px auto;
  max-width: 950px;
  transition: box-shadow 0.3s;
}

.about-card:hover {
  box-shadow: 0 12px 40px 0 rgba(60, 60, 80, 0.18), 0 2px 8px 0 rgba(60, 60, 80, 0.13);
}

.about-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 24px 0 rgba(60, 60, 80, 0.18);
  transition: transform 0.3s;
  background-color: rgba(255, 255, 255, 0.8);
}

.about-img:hover {
  transform: scale(1.04) rotate(-2deg);
}

.about-profile {
  box-shadow: 0 2px 12px 0 rgba(60, 60, 80, 0.08);
  padding: 32px 32px 32px 32px;
  min-width: 0;
  max-width: 520px;
  background-color: rgba(255, 255, 255, 0.5);
}

.about-name {
  text-align: center;
  font-size: 1.7em;
  font-weight: bold;
  color: #1c3c5c;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

#about .about-desc {
  color: rgb(65, 62, 62);
  font-size: 17px;
}

.skill-wrapper {
  margin-top: 100px;
  margin-bottom: 30px;
}

.skill-title {
  text-align: center;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-weight: bold;
  color: #6e6e6e;
  font-size: 50px;
  margin: 0px auto 0px;
  border-bottom: 3px dashed #737373;
  width: 60%;
}

.skill-content {
  display: flex;
  justify-content: center;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-weight: bold;
  font-size: 30px;
  gap: 50px;
  flex-direction: row;
  min-width: 0;
  white-space: nowrap;
  /* 改行を防ぐ */
  color: #6e6e6e;
  margin-top: 20px;
}

/* 説明文のスタイル */
.number-game-desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgb(81, 81, 81);
  letter-spacing: 1px;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  width: 100%;
}


.main-header {
  display: flex;
  justify-content: center;
  align-items: center;
  /* 縦方向の中央揃え（任意） */
  color: #858585;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.527);
  z-index: 10;
  position: relative;
}


.header-nav {
  justify-content: center;
  align-items: center !important;
  display: flex;
  gap: 30px;
}

#header-underline .header-nav a {
  display: flex;
  text-align: center;
  /* テキストを中央揃え */
  color: rgb(92, 92, 92);
  font-weight: bold;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  text-decoration: none;
  position: relative;
}

#header-underline a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

#header-underline .header-nav a:hover {
  color: rgb(30, 245, 230);
  transition: color 0.4s ease;
}

#header-underline a:hover::after {
  width: 100%;
}


/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 35px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(118, 118, 118, 0.503);
  border-radius: 3px;
  padding: 3px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.4s;
  transform-origin: center;
  /* 回転の基準を中央に */
}

/* ハンバーガー開閉アニメーション */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 20, 20, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0);
  transition: transform 0.5s ease-in-out;
  z-index: 1000;
}

.overlay.active {
  transform: scale(1);
}

/* ナビゲーション */
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.overlay.active .overlay-nav a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

.overlay.active .overlay-nav a:hover {
  color: rgb(30, 245, 230);
  transition: color 0.4s ease;
}

.overlay-nav a::after {
  content: "";
  /* 空の装飾要素を追加 */
  position: absolute;
  /* 絶対位置で配置 */
  left: 50%;
  /* 中央から */
  bottom: 0;
  /* リンクの真下に */
  width: 0%;
  /* 最初は見えない */
  height: 2px;
  /* 線の太さ */
  background-color: currentColor;
  /* 文字色と同じ色 */
  transition: all 0.4s ease;
  /* なめらかに変化 */
  transform: translateX(-50%);
  /* 中央揃え */
}

.overlay.active .overlay-nav a:hover::after {
  width: 100%;
}

.overlay.active .overlay-nav a:nth-child(1) {
  animation-delay: 0.2s;
}

.overlay.active .overlay-nav a:nth-child(2) {
  animation-delay: 0.4s;
}

.overlay.active .overlay-nav a:nth-child(3) {
  animation-delay: 0.6s;
}

.overlay.active .overlay-nav a:nth-child(4) {
  animation-delay: 0.8s;
}

.overlay.active .overlay-nav a:nth-child(5) {
  animation-delay: 1s;
}

.overlay.active .overlay-nav a:nth-child(6) {
  animation-delay: 1.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    /* 透明な状態から */
    transform: translateY(20px);
    /* 少し下から */
  }

  to {
    opacity: 1;
    /* 完全に表示 */
    transform: translateY(0);
    /* 元の位置へ */
  }
}



/* ============================= */
/*appページ*/
/* ============================= */
#app-header .header-nav a {
  display: flex;
  text-align: center;
  /* テキストを中央揃え */
  color: rgb(92, 92, 92);
  font-weight: bold;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

#app-header a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

#app-header .header-nav a:hover {
  color: rgb(30, 245, 230);
  transition: color 0.4s ease;
}

#app-header a:hover::after {
  width: 100%;
}

.app-bg {
  width: 100%;
  height: 100vh;
  background-image: url('../images/ビル.jpg');
  /* 画像のパスを指定 */
  background-size: cover;
  /* 画像を要素いっぱいに表示 */
  background-position: center;
  /* 画像の位置を中央に */
  background-repeat: no-repeat;
  /* 繰り返しなし */
  background-attachment: fixed;
  /* 背景を固定 */
  display: flex;
  flex-direction: column;
  color: white;
  padding-bottom: 600px;
}

#app-header h1 {
  padding-top: 350px;
}

#app-header .title {
  font-weight: normal;
}

#app-header .text-content {
  display: flex;
  padding-top: 250px;
  color: white;
  text-align: center;
  justify-content: center;
  /* 縦方向の中央揃え */
  flex-direction: column;
  /* 縦並びにする */
  font-size: 20px;
  padding-bottom: 150px;
}

.python-apps {
  background: linear-gradient(to top, #f5fff9, #8effd7);
  background-color: rgba(255, 255, 255, 0.7);
  background-blend-mode: lighten;
  color: gray;
  padding-top: 100px;
  padding-bottom: 50px;
}

.app-subtitle {
  color: gray;
  font-weight: normal;
  padding: 0;
  margin: 0;
  padding-bottom: 50px;
}

.subtitle-ja {
  text-align: center;
  color: gray;
}

.display {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.app-image {
  flex-direction: column;
}

.image-container {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 120px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  box-sizing: border-box;
  padding-left: 0;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

.project {
  text-align: center;
}


img,
video {
  max-width: 100%;
  height: auto;
}

.project li {
  list-style-type: none;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  /* 説明文と画像の間隔を調整 */
}

.project img {
  display: block;
  margin: 0 auto;
}


/* カルーセル用スタイル */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
  width: 100%;
}

.carousel-images {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 520px;
  height: 370px;
  overflow: hidden;
}

.carousel-image {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1);
  object-fit: contain;
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.5px 8px rgba(0, 0, 0, 0.10);
  border-radius: 18px;
}

.carousel-image.active {
  display: block;
  opacity: 1;
  z-index: 1;
  animation: carousel-slide-in 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes carousel-slide-in {
  0% {
    transform: translate(-80%, -50%) scale(0.92) rotateY(-30deg);
    opacity: 0.3;
    filter: blur(2px);
  }

  60% {
    transform: translate(-50%, -50%) scale(1.04) rotateY(6deg);
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    opacity: 1;
    filter: blur(0);
  }
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2em;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.bg-white {
  background-color: white;
  z-index: -1;
}

.app-about-bg {
  background-image: url('../images/和紙2.jpg');
  padding-top: 100px;
  background-color: rgba(255, 255, 255, 0.75);
  background-blend-mode: lighten;
}

.app-about-title {
  color: #808080;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: normal;
  padding-top: 0;
  padding-bottom: 100px;
  margin: 0;
}

.explanation1 {
  display: flex;
  color: gray;
  justify-content: center;
  flex-direction: row-reverse;
  padding-bottom: 80px;
  gap: 50px;
}

.explanation1 p {
  color: gray;
}

.explanation2 {
  display: flex;
  color: gray;
  justify-content: center;
  padding-bottom: 80px;
  gap: 50px;
}

.explanation2 p {
  color: gray;
}

.explanation-text {
  font-family: 'Yu Mincho', "Noto Serif JP", serif;
  display: flex;
  flex-direction: column;
}

.app-name {
  margin: 4px 0;
  line-height: 1.1;
}

/* ============================= */
/*websiteページ*/
/* ============================= */
#website .header-nav a {
  display: flex;
  text-align: center;
  /* テキストを中央揃え */
  color: rgb(92, 92, 92);
  font-weight: bold;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  position: relative;
}

#website a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

#website .header-nav a:hover {
  color: rgb(30, 245, 230);
  transition: color 0.4s ease;
}

#website a:hover::after {
  width: 100%;
}

#website .title-bg {
  background-image: url('../images/PC1.jpg');
  background-repeat: no-repeat;
  /* 背景画像を繰り返さない設定 */
  background-size: cover;
  /* 画像をコンテンツに合わせて拡大・縮小 */
  background-position: center;
  /* 中央に配置 */
  background-attachment: fixed;
  object-fit: cover;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-top: 0;
  padding-bottom: 600px;
  height: 100vh;
  gap: 200px;
  color: white;
}

#website .title {
  text-align: center;
  margin-top: 200px;
  color: white;
}

.content-wrapper {
  font-size: 23px;
  display: flex;
  justify-content: center;
  /* 縦方向の中央揃え */
  white-space: nowrap;
  gap: 100px;
  width: 100%;
  margin-bottom: 200px;
}

#website .text-content {
  display: flex;
  color: rgb(255, 255, 255);
  font-size: 20px;
  text-align: center;
  justify-content: center;
  /* 縦方向の中央揃え */
  flex-direction: column;
  /* 縦並びにする */
  gap: 0;
  /* pタグとulの間隔なし*/
  margin: 0;
  padding-bottom: 60px;
}

#website .subtitle {
  font-weight: normal;
}

.website-bg {
  background: linear-gradient(to top, #ffffff, hwb(0 87% 13%));
  margin: 0;
  padding-top: 60px;
  padding-bottom: 100px;
}

#website .subtitle-ja {
  color: white;
}

#website .main-title {
  color: rgb(255, 255, 255);
  font-weight: normal;
  padding-top: 0;
  padding-bottom: 60px;
  margin: 0;
}

.products {
  display: flex;
  margin-bottom: 180px;
}

#products1 .section-title {
  font-weight: normal;
  line-height: 1.6;
  gap: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
}

#products1 p {
  color: gray;
}

#products1 .explanation {
  font-size: 24px;
  font-family:  "Yu Mincho", "Noto Serif JP", serif;
  text-align: center;
}

#products2 .explanation {
  font-size: 24px;
  font-family:  "Yu Mincho", "Noto Serif JP", serif;
  text-align: center;
}

#products2 .section-title {
  font-weight: normal;
  line-height: 1.6;
  gap: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
}

#products2 p {
  color: gray;
}

.products .section-title .ja {
  color: rgb(117, 117, 117);
  font-size: 2rem;
  letter-spacing: 0.1em;
  font-weight: normal;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  display: flex;
  margin: 0;
  padding: 0;
  padding: 20px 0;
}

.products .section-title .en {
  color: rgb(117, 117, 117);
  font-size: 1.2rem;
  font-weight: normal;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  display: flex;
  margin: 0;
  padding: 20px 0;
}

.products .img {
  width: 65%;
  margin-top: 100px;
  display: flex;
  position: relative;
  /*画像の上にテキストを重ねるためのpositionを設定*/
}

/*
「position: absolute;」でテキストを画像の上に配置
左右の配置位置は「#products1」と「#products2」で個別に指定
*/
#products1 .text {
  color: #7a7a7a;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  display: flex;
  width: 46%;
  padding-top: 50px;
  margin: 0px;
  gap: 0px;
}

#products1 .title {
  color: #7a7a7a;
  text-align: center;
  justify-content: center;
  border-left: 1px solid #7a7a7a;
  border-right: 1px solid #7a7a7a;
  padding-left: 30px;
  padding-right: 30px;
}

#products2 .text {
  color: #7a7a7a;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  display: flex;
  width: 46%;
  padding-top: 50px;
  margin: 0px;
  gap: 0px;
}

#products2 .title {
  color: #7a7a7a;
  text-align: center;
  justify-content: center;
  border-left: 1px solid #7a7a7a;
  border-right: 1px solid #7a7a7a;
  padding-left: 30px;
  padding-right: 30px;
}

/*
productsの共通定義以外は、idを指定（#products1、#products2）して個別に設定
*/
#products1 {
  flex-direction: row-reverse;
  /*タイトルと画像の位置を入れ替える*/
}

#products1 .section-title {
  margin-left: 20px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  margin: 0;
  padding: 0;
}


#products2 .section-title {
  margin-right: 20px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.gallery-bg {
  background-image: url('../images/背景.jpg');
  /* 画像のファイル名 */
  background-repeat: no-repeat;
  /* 背景画像を繰り返さない設定 */
  background-size: cover;
  /* 画像をコンテンツに合わせて拡大・縮小 */
  background-position: center;
  /* 中央に配置 */
  background-attachment: fixed;
  background-color: rgba(255, 255, 255, 0.65);
  background-blend-mode: lighten;
  margin: 0;
  padding: 0;
  width: 100%;
  padding-bottom: 20px;
  padding-top: 80px;
}

#works .subtitle-ja {
  color: gray;
}

#works .main-title {
  color: gray;
}

#works .title {
  color: rgb(144, 118, 89);
  font-weight: normal;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto 130px auto;
  padding: 0 4%;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto 130px auto;
  padding: 0 4%;
}

#works ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

#works li {
  width: 31%;
  list-style: none;
  margin-bottom: 25px;
}

.URL {
  color: gray;
}

/* ============================= */
/*designページ*/
/* ============================= */
#design .header-nav a {
  display: flex;
  text-align: center;
  /* テキストを中央揃え */
  color: rgb(92, 92, 92);
  font-weight: bold;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  position: relative;
}

#design a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

#design .header-nav a:hover {
  color: rgb(30, 245, 230);
  transition: color 0.4s ease;
}

#design a:hover::after {
  width: 100%;
}

.design-title-bg {
  width: 100%;
  height: 100vh;
  background-image: url('../images/PC9.jpg');
  /* 画像のパスを指定 */
  background-size: cover;
  /* 画像を要素いっぱいに表示 */
  background-position: center;
  /* 画像の位置を中央に */
  background-repeat: no-repeat;
  /* 繰り返しなし */
  background-attachment: fixed;
  /* 背景を固定 */
  display: flex;
  flex-direction: column;
  color: white;
  padding-bottom: 700px;
}

#design .main-title {
  text-align: center;
  margin-top: 400px;
  color: white;
  font-weight: bold;
  /* 太字にする */
}

#design .text-content {
  display: flex;
  color: rgb(255, 255, 255);
  font-size: 20px;
  text-align: center;
  justify-content: center;
  /* 縦方向の中央揃え */
  flex-direction: column;
  /* 縦並びにする */
  gap: 0;
  /* pタグとulの間隔なし*/
  font-weight: normal;
  margin-top: 300px;
  padding-bottom: 60px;
}

#design .subtitle {
  font-weight: normal;
  color: white;
}

#design .step-bg {
  width: 100%;
  height: 300px;
  background-image: url('../images/PC3.jpg');
  background-size: cover;
  /* 画像を要素いっぱいに表示 */
  background-position: center;
  /* 画像の位置を中央に */
  background-repeat: no-repeat;
  /* 繰り返しなし */
  justify-content: center;
  /* 横方向の中央揃え */
  align-items: center;
  /* 縦方向の中央揃え */
  background-attachment: fixed;
  /* 背景を固定 */
  display: flex;
  color: white;
  font-weight: normal;
}

.design-bg {
  background: linear-gradient(to bottom, #ffeedd, #fccabc);
  margin: 0;
  color: white;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

#design .subtitle-ja {
  color: white;
}

.design-text {
  color: white;
  font-size: 20px;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

.design-bg2 {
  background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  margin: 0;
  color: white;
  width: 100%;
  padding-top: 80px;
}

#design .about-bg {
  width: 100%;
  height: 300px;
  background-image: url('../images/PC.jpg');
  background-size: cover;
  /* 画像を要素いっぱいに表示 */
  background-position: center;
  /* 画像の位置を中央に */
  background-repeat: no-repeat;
  /* 繰り返しなし */
  justify-content: center;
  /* 横方向の中央揃え */
  align-items: center;
  /* 縦方向の中央揃え */
  background-attachment: fixed;
  /* 背景を固定 */
  display: flex;
  color: white;
  font-weight: normal;
}

/* モーダルのスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 10px;
  /* 少し余白を追加してモバイルに優しい設計に */
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  /* 丸みを強調しておしゃれに */
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  /* シャドウ追加で高級感アップ */
}

.close {
  position: absolute;
  top: 20px;
  right: 70px;
  color: white;
  font-size: 150px;
  cursor: pointer;
}

.modal .close {
  cursor: pointer;
  color: red;
  float: right;
}

.thumbnail {
  width: 200px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.thumbnail:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.last-text {
  margin-top: 100px;
  color: rgb(255, 255, 255);
  text-align: right;
  padding-right: 20px;
  padding-bottom: 30px;
}

#design h4 {
  margin-bottom: 0;
}

/* ============================= */
/*contactページ*/
/* ============================= */
#contact-text .header-nav a {
  display: flex;
  text-align: center;
  /* テキストを中央揃え */
  color: rgb(92, 92, 92);
  font-weight: bold;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  position: relative;
}

#contact-text a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

#contact-text .header-nav a:hover {
  color: rgb(30, 245, 230);
  transition: color 0.4s ease;
}

#contact-text a:hover::after {
  width: 100%;
}

.contact-bg {
  background-image: url('../images/contact背景.jpg');
  background-repeat: no-repeat;
  /* 背景画像を繰り返さない設定 */
  background-size: cover;
  /* 画像をコンテンツに合わせて拡大・縮小 */
  background-position: center;
  /* 中央に配置 */
  background-attachment: fixed;
  overflow-wrap: break-word;
  /* 文字を必要に応じて改行 */
  padding-bottom: 400px;
}

#contact-text .main-title {
  padding-top: 300px;
}

#contact-text p {
  color: black;
}

.contact-bg p {
  font-size: 30px;
  text-align: center;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

/* --- お問い合わせフォームをさらにオシャレに --- */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-bottom: 80px;
  z-index: 1;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
}

#contact h2 {
  font-size: 2.2em;
  color: #00264b;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}

#contact-form {
  background: linear-gradient(to bottom, #ffffff, #f0f0f0);
  backdrop-filter: blur(12px);
  /* 背景ぼかし */
  -webkit-backdrop-filter: blur(12px);
  /* Safari対応 */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  /* 輪郭を柔らかく */
  box-shadow: 0 8px 32px rgba(50, 50, 59, 0.4);
  padding: 32px 24px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: box-shadow 0.3s;
  z-index: 1;
}

#contact-form:hover {
  box-shadow: 0 20px 40px 0 rgba(51, 51, 62, 0.28), 0 4px 10px 0 rgba(60, 60, 80, 0.23);
}

#contact-form label {
  align-self: flex-start;
  margin-bottom: 2px;
  font-size: 1.08em;
  color: #092f56;
  font-weight: bold;
  letter-spacing: 0.03em;
}

#contact-form input {
  width: 100%;
  max-width: 340px;
  padding: 10px 14px;
  border: 1.5px solid #bfc9d9;
  border-radius: 10px;
  font-size: 1.05em;
  box-sizing: border-box;
  margin-bottom: 8px;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: inherit;
  outline: none;
  min-height: 30px;
  resize: vertical;
}

#contact-form .gender {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#contact-form .input-style {
  display: flex;
  align-items: center;
  justify-items: center;
  outline: none;
}


#contact-form textarea {
  width: 100%;
  max-width: 340px;
  padding: 10px 14px;
  border: 1.5px solid #bfc9d9;
  border-radius: 10px;
  font-size: 1.05em;
  box-sizing: border-box;
  margin-bottom: 8px;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: inherit;
  outline: none;
  min-height: 90px;
  resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border: 1.5px solid #092949;
  box-shadow: 0 0 0 2px #e3e9f7;
}

#contact-form button {
  width: 100%;
  max-width: 340px;
  padding: 12px 0;
  background: linear-gradient(90deg, #30475e 60%, #222f3e 100%);
  color: #fff;
  border: none;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  border-radius: 10px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px 0 rgba(60, 60, 80, 0.10);
  transition: 0.2s, box-shadow 0.2s;
}

#contact-form button:hover {
  background: linear-gradient(90deg, #222f3e 60%, #30475e 100%);
  box-shadow: 0 4px 16px 0 rgba(60, 60, 80, 0.13);
}

.carousel-video {
  width: 500px;
  height: 350px;
  display: block;
  vertical-align: middle;
}

.contact-content {
  position: relative;
  z-index: 1;
}


/* ============================= */
/*フッター*/
/* ============================= */
.footer {
  color: #808080;
  background: #fcfbfb;
  padding: 30px;
}

.footer a {
  color: #808080;
  text-decoration: none;
}

.footer .wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer .wrap h3 {
  margin: 0 0 10px 0;
  padding: 0;
  border-bottom: 1px #c4c4c4 solid;
}

.footer .wrap p {
  margin: 0;
  padding: 0 0 20px 0;
}

.footer .wrap .box {
  width: 30%;
}

.footer .wrap .box ul {
  margin: 0;
  padding: 0 0 20px 0;
  list-style: none;
}

.footer .wrap {
  width: 100%;
  padding: 20px 0 0 0;
}

.reserved {
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  text-align: center;
  color: gray;
}

.box a {
  position: relative;
}

.box a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.box a:hover {
  color: rgb(30, 245, 230);
  transition: color 0.4s ease;
  text-decoration: none;
}

.box a:hover::after {
  width: 100%;
}

/* ============================= */
/*レスポンシブ対応*/
/* ============================= */
@media (max-width: 1300px) {
  .explanation1 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .explanation2 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 1200px) {
  .display {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .content-wrapper {
    flex-direction: column;
    align-items: center;
    display: flex;
    gap: 30px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    justify-content: center;
    /* 水平方向に中央揃え */
    margin-bottom: 20px;
    white-space: nowrap;
    /* 改行を防ぐ */
    padding: 0px;
  }

  .image-container {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  #app .study-reason-desc {
    font-size: 22px;
    text-align: center;
  }
}

@media (max-width: 1100px) {
  .about-card {
    flex-direction: column;
    gap: 24px;
    padding: 24px 8px;
    margin-left: 5%;
    margin-right: 5%;
  }
}

@media (max-width: 1000px) {
  .card-list {
    margin-left: 5%;
    margin-right: 5%;
  }

  /*website*/
  #products1,
  #products2 {
    flex-direction: column;
    align-items: center;
  }

  #products1 .section-title {
    align-self: flex-end;
    margin-right: 5%;
  }

  #products2 .section-title {
    align-self: flex-start;
    margin-left: 5%;
  }

  .products {
    margin-bottom: 100px;
  }

  .products .img {
    width: 90%;
    margin-top: 70px;
  }

  .products .text {
    width: 64%;
    font-size: 0.875rem;
    padding: 30px 0;
  }

  #design .text-content h2 {
    font-size: 40px;
  }

  #learning-menu .border-list {
    max-width: 90%;
  }

  #learning-about .border-list-second {
    max-width: 90%;
  }

  .contact-bg p {
    font-size: 25px;
  }
}


@media (max-width: 800px) {
  .hamburger {
    /*800px以下でハンバーガーメニュー表示*/
    display: flex;

  }

  .header-nav {
    display: none;
    /*800px以下で通常のナビゲーションを非表示*/
  }

  .about-img {
    width: 160px;
    height: 160px;
  }

  .about-profile {
    padding: 18px 8px 14px 8px;
    max-width: 100%;
  }

  .about-desc {
    font-size: 0.95em;
    padding-left: 16px;
    padding-right: 16px;
  }

  .study-reason-block {
    padding-left: 24px;
    padding-right: 24px;
  }

  /*profile*/
  .skill-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .skill-title {
    text-align: center;
    font-family: "Yu Mincho", "Noto Serif JP", serif;
    font-weight: bold;
    color: #565454;
    font-size: 50px;
    margin-top: 0px;
    margin-bottom: 0;
  }

  .skill-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 中身は左揃え */
    font-family: "Yu Mincho", "Noto Serif JP", serif;
    font-weight: bold;
    font-size: 26px;
    min-width: 0;
    white-space: nowrap;
    /* 改行を防ぐ */
    color: #565454;
    gap: 0;
    margin-top: 20px;
  }

  .skill-content ul {
    margin: 0;
    padding: 0;
  }

  /*app*/
  #app h2 {
    font-size: 45px;
  }

  .image-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 0;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    font-family: "Yu Mincho", "Noto Serif JP", serif;
  }

  #app .study-reason-desc {
    font-size: 20px;
  }

  .carousel-images {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 450px;
    height: 300px;
    overflow: hidden;
  }

  .carousel-video {
    width: 450px;
    height: 300px;
  }

  .ending-message {
    font-size: 0.98em;
    padding: 10px 8px;
  }

  .image-container {
    flex-direction: column;
    align-items: center;
  }

  .explanation1,
  .explanation2 {
    flex-direction: column;
    align-items: center;
  }

  .products .section-title .ja {
    font-size: 1.5rem;
  }

  .products .section-title .en {
    font-size: 0.9rem;
  }

  #products1 .text {
    width: 100%;
  }

  #products2 .text {
    width: 100%;
  }

  #works ul {
    padding-left: 0;
    flex-direction: column;
  }

  #works li {
    width: 100%;
  }

  #website .URL {
    font-size: 25px;
  }

  .contact-bg p {
    font-size: 20px;
  }

  /*フッター*/
  .footer .wrap {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .footer .wrap h3 {
    border: none;
  }

  .footer .wrap .box {
    width: 100%;
  }

  .footer .wrap .box ul {
    border-top: 1px #c4c4c4 solid;
  }

  .footer .wrap .box ul li a {
    display: block;
    padding: 5px 15px;
    border-bottom: 1px #c4c4c4 solid;
  }
}

@media (max-width: 700px) {

  /*appページ*/
  .explanation1 img {
    width: 90%;
  }

  .explanation2 img {
    width: 90%;
  }

  #website .subtitle {
    font-size: 40px;
  }

  #website .text-content p {
    font-size: 15px;
  }

  #design .text-content h2 {
    font-size: 35px;
  }
}

@media (max-width: 650px) {
  .contact-bg p {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  #app .study-reason-desc {
    font-size: 15px;
  }

  .carousel-images {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
  }

  .carousel-video {
    width: 300px;
    height: 200px;
    display: block;
    vertical-align: middle;
  }

  .image-content {
    width: 100%;
  }

  #app .text-content {
    font-size: 15px;
  }

  .explanation-text {
    max-width: 90%;
  }

  #website .main-title {
    font-size: 45px;
  }

  #design .text-content h2 {
    font-size: 30px;
  }

  #design .design-end-bg h4 {
    font-size: 20px;
  }

  #learning-menu li {
    font-size: 16px;
  }

  #learning-about li {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  #app-header h1 {
    font-size: 50px;
  }

  #app-header h2 {
    font-size: 30px;
  }

  #app-header .text-content {
    font-size: 14px;
  }

  .explanation-title {
    font-size: 25px;
  }

  #website .subtitle {
    font-size: 30px;
  }

  .products .img {
    width: 100%;
    margin-top: 100px;
  }

  #products1 .section-title {
    align-self: flex-end;
    margin-right: 0;
  }

  #products2 .section-title {
    align-self: flex-start;
    margin-left: 0;
  }

  #website .text-content {
    font-size: 15px;
  }

  #design .text-content h2 {
    font-size: 25px;
  }

  #design .text-content p {
    font-size: 15px;
  }

  #design .title {
    font-size: 40px;
  }

  #design .design-end-bg h4 {
    font-size: 15px;
  }

  #design .last-text {
    font-size: 17px;
  }

  .learning-bg-title h3 {
    font-size: 23px;
  }

  .learning-bg-title2 h3 {
    font-size: 23px;
  }

  #learning-menu li {
    font-size: 15px;
  }

  #learning-about li {
    font-size: 15px;
  }

  #contact-form {
    width: 340px;
    margin-left: 5%;
    margin-right: 5%;
  }
}

@media (max-width: 400px) {

  /*home*/
  #home h1 {
    font-size: 45px;
  }

  .about-title {
    font-size: 55px;
  }

  .about-card {
    flex-direction: column;
    gap: 24px;
    padding: 20px 6px;
    margin-left: 5%;
    margin-right: 5%;
  }

  #about .about-desc {
    font-size: 15px;
  }

  .skill-content {
    font-size: 23px;
  }

  #app-header h1 {
    font-size: 40px;
  }

  #app-header .text-content {
    font-size: 11px;
  }

  .app-subtitle {
    font-size: 35px;
  }

  .carousel-images {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 220px;
    height: 180px;
    overflow: hidden;
  }

  .carousel-video {
    width: 220px;
    height: 180px;
  }

  .app-about-title {
    font-size: 35px;
  }

  .explanation-title {
    font-size: 23px;
  }

  #website h1 {
    font-size: 55px;
  }

  .products .section-title .ja {
    font-size: 1.2rem;
  }

  .products .section-title .en {
    font-size: 0.7rem;
  }

  #website .text-content p {
    font-size: 11px;
  }

  #website .main-title {
    font-size: 35px;
  }
  
  #products1 .explanation {
  font-size: 20px;
  }

  #products2 .explanation {
  font-size: 20px;
  }

  #website .URL {
    font-size: 22px;
  }

  #design h1 {
    font-size: 55px;
  }

  #design .text-content h2 {
    font-size: 18px;
  }

  #design .text-content p {
    font-size: 12px;
  }

  #design .title {
    font-size: 35px;
  }

  #design .design-text {
    font-size: 15px;
  }

  #design .last-text {
    font-size: 15px;
  }

  #learning-menu h1 {
    font-size: 53px;
  }

  #learning-menu .subtitle {
    font-size: 50px;
  }

  #learning-adout .subtitle {
    font-size: 50px;
  }

  #learning-end .subtitle {
    font-size: 50px;
  }

  .learning-bg-title h3 {
    font-size: 19px;
  }

  .learning-bg-title2 h3 {
    font-size: 19px;
  }

  #learning-menu .title h4 {
    font-size: 20px;
  }

  #learning-about .card-section-title {
    font-size: 20px;
  }

  .contact-bg h2 {
    font-size: 55px;
  }

  #contact-form {
    width: 270px;
    margin-left: 5%;
    margin-right: 5%;
  }
}