body {
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  background-color: #fff;
  color: #333;
  padding-top: 120px; /* ヘッダーの高さ分の余白 */
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  padding: 20px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  text-decoration: none;
}
.logo {
  display: flex;
  align-items: center;
  color: #2ab5b5;
}
.logo span {
  font-family: 'Kiwi Maru', serif;
  font-weight: bold;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.sub-logo {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.5;
}
.sub-logo small {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 20px;
}
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
  font-size: 1.2em;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #3eb8b2;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #3eb8b2;
}

nav a:hover::after {
  width: 100%;
}
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 20px 20px; /* 100px top padding for spacing from header */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* heroセクション自体を中央揃え */
}
.hero img {
  height: auto;
  display: block; /* 画像がインライン要素のため、中央揃えのためにブロック要素にする */
  margin: 0 auto; /* 中央揃え */
}
#gallery {
  scroll-margin-top: 170px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 100px; /* ボタン間のスペースを調整 */
  margin: 150px auto 30px auto; /* 150px top margin for spacing from hero image */
}
.filters button {
  width: 120px; /* 固定幅 */
  height: 40px; /* 固定高さ */
  display: flex;
  justify-content: center;
  align-items: center; /* テキストを中央に配置 */
  border-radius: 20px;
  border: 2px solid #2ab5b5;
  background: #fff;
  color: #2ab5b5;
  cursor: pointer;
  font-size: 1em; /* フォントサイズを明示的に指定 */
  transition: background-color 0.3s ease, color 0.3s ease; /* ホバーエフェクトのためのtransitionを追加 */
}
.filters button:hover {
  background: #2ab5b5;
  color: white;
}
.filters .active {
  background: #2ab5b5;
  color: white;
  cursor: default;
}
.filters .active:hover {
  background: #2ab5b5; /* activeなボタンはホバーしても色が変わらないように */
  color: white;
}
.section {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.section h2 {
  border-bottom: 2px solid #2ab5b5;
  padding-bottom: 5px;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 中央揃えから左揃えに変更 */
  gap: 20px; /* Spacing between image and text */
  margin-bottom: 50px; /* Spacing between gallery items */
}

.gallery-image-wrapper {
  width: 800px; /* Fixed width */
  height: 450px; /* Fixed height */
  flex-shrink: 0; /* Prevent shrinking */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-text {
  width: 100%;
  max-width: 800px; /* Match image width */
  text-align: center;
}

.gallery-text h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2ab5b5;
}

.gallery-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.product-site-link {
  text-decoration: underline; /* Always underline */
  color: #333;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: normal;
  transition: color 0.3s ease;
}

.product-site-link:hover {
  color: #3eb8b2;
}

/* Slick Carousel specific styles */
.game-carousel {
  width: 100%;
  max-width: 800px; /* Set a max-width */
  margin: 0 auto;
}

.slick-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#about {
  scroll-margin-top: 145px;
}

.about-section {
  padding: 40px 20px;
  margin-top: 200px;
}

.contact-section {
  margin-top: 200px;
}
.about-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
}
.about-illust {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}
.about-illust img {
  max-width: 100%;
  height: auto;
}
.about-profile {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}
.about-profile h3 {
  margin-top: 0;
  font-size: 1.2em;
}

.about-profile p,
#game p {
  font-size: 1em;
}
.about-profile h4 {
  margin-top: 30px;
  border-left: 4px solid #333;
  padding-left: 10px;
  font-size: 1.2em;
}
footer {
  text-align: center;
  padding: 40px;
  color: #aaa;
}

.contact-section {
  padding: 40px 20px;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: #111;
}

.contact-section h2 {
  border-bottom: 2px solid #2ab5b5;
  padding-bottom: 5px;
}

.contact-section p {
  font-weight: normal;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: normal;
  margin-bottom: 5px;
}

.contact-form .required {
  color: #fff;
  background-color: #000;
  font-size: 0.8em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #2ab5b5;
  padding: 10px;
  font-size: 1em;
  border-radius: 4px;
  background-color: #fff;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.submit-btn {
  background: #fff;
  color: #2ab5b5;
  border: 2px solid #2ab5b5;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: #2ab5b5;
  color: white;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  header {
    padding: 10px;
  }

  .logo {
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }

  .sub-logo {
    margin-left: 0;
    text-align: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  nav a {
    margin: 5px 10px;
  }

  .filters {
    gap: 5px; /* 小さい画面でのボタン間のスペースを調整 */
    flex-wrap: wrap; /* ボタンを折り返す */
  }

  .filters button {
    width: 80px; /* ボタン幅を80pxに設定 */
    padding: 0 10px; /* 左右のパディングを調整 */
  }

  .hero img {
    width: 100%;
    height: auto;
  }

  .contact-form {
    width: 100%;
  }
}

#photo .gallery img {
  border: 1px solid #a0dedb;
}

/* Styles for mail.html (Confirmation Page) */
.mail-confirmation-page {
  background-color: #fff;
  color: #2ab5b5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding-top: 0; /* Reset padding from main style */
  text-align: center;
}

.mail-confirmation-page h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  border-bottom: none; /* Remove default h2 border */
}

.mail-confirmation-page p {
  font-size: 1.2em;
  margin-bottom: 40px;
  font-weight: normal; /* Reset font-weight */
}

.mail-confirmation-page .button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2ab5b5;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s;
  border: none;
}

.mail-confirmation-page .button:hover {
  background-color: #219292;
}
