* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

/* ハンバーガーメニュー */
.menu-toggle {
  position: fixed;
  top: 30px;
  right: 20px;
  width: 100px;
  height: 100px;
  cursor: pointer;
  z-index: 1000;
  background: rgba(241, 207, 207, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgb(236, 79, 79);
  transform: scale(1.1);
}

.hamburger {
  width: 30px;
  height: 30px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 5px;
  background: #333;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.menu-toggle.active .hamburger span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.nav-menu.active {
  right: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(50px);
}

.nav-menu.active a {
  opacity: 1;
  transform: translateX(0);
}

.nav-menu a:hover {
  color: #ff6b6b;
  transform: translateX(-10px);
}

header {
  height: 200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
}

.header-title {
  font-size: 2rem;
  font-weight: bold;
  color: brown;
  z-index: 1000;
}

/* セクション共通 - 自動高さ調整対応 */
.section {
  height: fit-content; /* コンテンツに応じた幅 */
  min-height: 100vh; /* 最小100vh */
  height: auto; /* 高さを自動調整 */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: auto; 
  scroll-snap-align: start;
}

#thoughts {
  background-image: url('../img/demo/demo1.jpg');
  background-repeat: no-repeat;
  background-size: cover; 
  background-position: center;
}

.section h2 {
  font-size: 4rem;
  font-weight: 100;
  letter-spacing: 8px;
  color: white;
  background-color: rgba(8, 0, 0, 0.945);
  border-radius: 20px;
  transform: translateY(50px);
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 20px;
}

/* 各セクションの背景色 */

.thoughts .section-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.thoughts .section-content p {
  line-height: 1.8;
  transform: translateY(-100px);
  color: white;
  background-color: rgba(8, 0, 0, 0.945);
  border-radius: 20px;
  font-size: 2rem;
  padding: 20px;
  opacity: 0;
}

#work-subtitle {
  font-size: 2rem;
  font-weight: bold;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  color: white;
  margin-top: 20px;
}

.work-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.work-item {
  padding: 20px;
  background-color: rgba(4, 255, 37, 0.979);
  border-radius: 20px;
}

.img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 15px auto;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#work .section-title {
  position: static; /* absoluteから変更 */
  transform: none; /* transformをリセット */
  text-align: center;
  margin-bottom: 40px;
  flex-shrink: 0; /* タイトルが縮まないように */
}

/* 口コミセクション - スクロール対応 */
#reviews .section-content {
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.reviews .section-title {
  position: static; /* absoluteから変更 */
  transform: none; /* transformをリセット */
  text-align: center;
  margin-bottom: 40px;
  flex-shrink: 0; /* タイトルが縮まないように */
}

.reviews-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
  flex-grow: 1; /* 残りのスペースを使用 */
}

.reviews-item {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: fit-content; /* コンテンツに応じた高さ */
  text-align: center;
}

.reviews-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.reviews-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 15px auto;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reviews-item h3 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.reviews-item p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  margin-top: 15px;
}

#reviews-subtitle {
  font-size: 2rem;
  font-weight: bold;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  color: white;
  margin: 0 auto;
  display: inline-block;
}

/* スキルセクション */

#skills-subtitle {
  font-size: 2rem;
  font-weight: bold;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  color: white;
  margin-top: 20px;
}

.skills .section-title {
  position: static; /* absoluteから変更 */
  transform: none; /* transformをリセット */
  text-align: center;
  margin-bottom: 40px;
  flex-shrink: 0; /* タイトルが縮まないように */
}

.skills ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.skills li {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  font-size: 1.2rem;
  color: #333;
}

/* アバウトセクション */
#about {
  background-image: url('../img/demo/demo4.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  min-height: 100vh; /* 最小高さを追加 */
  height: auto; /* 自動高さ調整 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 40px 20px; /* パディングを追加 */
}

#about .section-title {
  position: static;
  transform: none;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

#about-subtitle {
  font-size: 2rem;
  font-weight: bold;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  color: white;
  margin-top: 20px;
  margin-bottom: 20px;
}

  #about-description-1 {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    line-height: 1.8;
    margin: 20px auto;
    padding: 20px;
  }

  #about-description-2 {
  font-size: 1.5rem;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  line-height: 1.8;
  margin: 20px auto;
  padding: 20px;
}

#about-description-3 {
  font-size: 1.5rem;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  line-height: 1.8;
  margin: 20px auto;
  padding: 20px;
}

/* コンタクトセクション */
#contact {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  width: 100vw;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact .section-title {
  position: static;
  transform: none;
  text-align: center;
  margin-bottom: 40px;
  flex-shrink: 0;
  width: 100%;
  max-width: 800px;
}

.contact .section-title h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

#contact-subtitle {
  font-size: 2rem;
  font-weight: bold;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  color: tomato;
  margin: 20px auto;
  text-align: center;
  max-width: 600px;
}

#contactForm {
  color: black;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3)),url('../img/demo/demo1.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: auto;
  width: 100%;
  max-width: 600px;
  padding: 30px 20px;
  margin: 0 auto;
  border-radius: 20px;
  box-sizing: border-box;
}

/* フォーム要素の調整 */
.contact form input,
.contact form textarea {
  width: 100%; /* widthを追加 */
  max-width: 100%; 
  padding: 15px;
  border: none;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  color: #333;
  box-sizing: border-box;
  margin-bottom: 15px;
  display: block; /* ブロック要素として表示 */
}

.contact form label {
  display: block; /* ラベルもブロック要素に */
  margin-bottom: 5px;
  font-weight: bold;
  text-align: left; /* 左寄せ */
}

.contact form button {
  width: auto; /* ボタンは自動幅 */
  min-width: 120px; /* 最小幅を設定 */
  padding: 15px 30px; /* 左右のパディングを調整 */
  border: none;
  border-radius: 10px;
  background-color: #ff6b6b;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 20px auto 0 auto; /* 中央配置 */
}

.contact form button:hover {
  background-color: #ee5a24;
}

/* セクションの背景色 */
#work {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

#reviews {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

#skills {
  background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

/* セクションタイトル */
.section-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* 装飾要素 */
.decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
}

.decoration.circle-1 {
  top: 10%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.decoration.circle-2 {
  bottom: 10%;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* レスポンシブ - モバイルでスクロール対応 */
@media (max-width: 768px) {
  body {
    scroll-snap-type: none; /* モバイルでスナップ無効化 */
    width: 100vw; /* ビューポート幅100% */
    overflow-x: hidden; /* 横スクロール防止 */
  }
  
  .section {
    scroll-snap-align: none; /* モバイルでスナップ無効化 */
    padding-top: 15px; /* モバイル用パディング調整 */
    padding-left: 0; /* パディングを0に */
    padding-right: 0; /* パディングを0に */
    width: 100vw; /* ビューポート幅100% */
    margin: 0; /* マージンをリセット */
  }
  
  .section h2 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
  }

  .nav-menu {
    width: 100%;
    right: -100%;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }
  
  .work-items {
    flex-direction: column; /* モバイルで縦並び */
  }
  
  .work-item {
    width: 100%;
    margin-bottom: 15px;
  }

  #work {
    height: auto; /* コンテンツに応じた高さ */
  }

  .img {
    width: 100%;
    height: auto;
  }

  #reviews h2 {
    margin-top: 10px;
  }

  .menu-toggle {
    width: 50px;
    height: 50px;
  }

  .hamburger span {
    height: 3px;
  }

  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: auto;
    padding: 20px;
  }

  .header-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .menu-toggle {
    position: relative;
    top: auto;
    right: auto;
    width: 50px;
    height: 50px;
  }

  .hamburger span {
    height: 3px;
  }

  .header-title {
    font-size: 1.5rem;
  }

  /* ABOUTセクション全体 */
  #about {
    padding: 120px 15px 40px 15px;
    min-height: auto;
  }

  #about .section-title {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

  /* ABOUTタイトル */
  #about h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    padding: 15px;
    margin-bottom: 15px;
  }

  /* ABOUTサブタイトル */
  #about-subtitle {
    font-size: 1.4rem;
    padding: 15px;
    margin: 15px 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* ABOUT説明文 */
  #about-description-1 {
    font-size: 1rem;
    padding: 15px;
    margin: 15px 0;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  #about-description-2 {
    font-size: 1rem;
    padding: 15px;
    margin: 15px 0;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  #about-description-3 {
    font-size: 1rem;
    padding: 15px;
    margin: 15px 0;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  
   /* CONTACTセクション - 100%幅表示 */
  #contact {
    width: 100vw; /* ビューポート幅100% */
    height: auto; /* 高さを自動調整 */
    margin: 10px auto;

  }
  
  .contact .section-title {
    width: 100vw; /* 100%幅 */
    padding: 20px 15px; /* 内側にパディング */
    margin: 0;
    box-sizing: border-box;
  }
  
  #contactForm {
    width: 100vw; /* ビューポート幅100% */
    padding: 20px 15px; /* 内側にパディング */
    margin: 0 auto; 
    box-sizing: border-box;
    border-radius: 0; /* 角丸をリセット */
  }
  
  #contact-subtitle {
    font-size: 1.4rem;
    margin: 10px auto;
    width: 100%; /* 100%幅 */
    text-align: center;
  }
  
  /* フォーム要素 - 100%幅表示 */
  .contact form {
    width: 100%; /* フォーム自体も100% */
    padding: 20px;
  }
  
  .contact form label {
    display: block;
    width: 100%; /* ラベル100%幅 */
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
    box-sizing: border-box;
  }
  
  .contact form input,
  .contact form textarea {
    width: 100%; /* 入力欄100%幅 */
    max-width: 100%;
    padding: 12px; /* パディング調整 */
    margin-bottom: 15px;
    font-size: 1rem;
    box-sizing: border-box;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
  }
  
  .contact form button {
    width: 100%; /* ボタンも100%幅 */
    padding: 15px;
    margin: 20px 0 0 0;
    font-size: 1.2rem;
    box-sizing: border-box;
  }
}

/* さらに小さい画面用 */
@media (max-width: 480px) {
  .section {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .section h2 {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .thoughts .section-content p {
    font-size: 1.2rem;
  }
  
  #work-subtitle, #reviews-subtitle {
    font-size: 1.2rem;
  }
}

/* 高さが低い画面用 */
@media (max-height: 600px) {
  .section {
    padding-top: 10px;
    padding-bottom: 20px;
  }
}

/* スクロールインジケーター */
.scroll-indicator {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ! 右側スクロールドット  */
.scroll-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(12, 12, 12);
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-dot.active {
  background: white;
  transform: scale(1.5);
}

footer p {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: fixed; /* relativeからfixedに変更 */
    bottom: 0; /* 画面の一番下に固定 */
    left: 0; /* 左端から配置 */
    width: 100%;
    z-index: 100;
    margin-top: 0;
}