/* Contact Page Styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.contact-page {
  position: relative;
  width: 100%;
  max-width: 1241px;
  margin: 0 auto;
  padding-top: 0;
}

/* Header styles matching index.html */
.contact-page .group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #ff5a28;
  z-index: 1000;
}

@media (max-width: 768px) {
  .contact-page .group {
    height: 80px;
  }
}

.contact-page .group-9 {
  position: absolute;
  top: 40px;
  left: 5%;
  width: 153px;
  height: 21px;
  background-image: url(header_logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  z-index: 1001;
  display: block;
  cursor: pointer;
}

@media (max-width: 768px) {
  .contact-page .group-9 {
    top: 30px;
    width: 120px;
    height: 17px;
  }
}

.contact-page .group-15 {
  position: absolute;
  top: 26px;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1001;
}

.contact-page .group-15 .social-icon {
  display: block;
  width: 48px;
  height: 48px;
}

.contact-page .group-15 .social-icon:nth-child(2) {
  width: 37px;
  height: 42px;
}

.contact-page .group-15 .social-icon:nth-child(3) {
  width: 44px;
  height: 42px;
}

.contact-page .group-15 .social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .contact-page .group-15 {
    top: 20px;
    right: 4%;
    gap: 14px;
  }

  .contact-page .group-15 .social-icon {
    width: 40px;
    height: 40px;
  }

  .contact-page .group-15 .social-icon:nth-child(2) {
    width: 32px;
    height: 36px;
  }

  .contact-page .group-15 .social-icon:nth-child(3) {
    width: 36px;
    height: 35px;
  }
}

.contact-page .navbar {
  position: absolute;
  top: 41px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

@media (max-width: 1024px) {
  .contact-page .navbar {
    left: 50%;
    transform: translateX(-50%);
    gap: clamp(16px, 5vw, 28px);
  }
}

@media (max-width: 768px) {
  .contact-page .navbar {
    display: none;
  }
}

.contact-page .text-wrapper-13,
.contact-page .text-wrapper-14,
.contact-page .text-wrapper-15,
.contact-page .text-wrapper-16,
.contact-page .text-wrapper-17,
.contact-page .text-wrapper-18 {
  width: auto;
  height: auto;
  font-family: "Tilt Warp", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(11px, 2vw, 14px);
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.contact-container {
  margin-top: 0;
  padding-top: 180px;
  min-height: calc(100vh - 200px);
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 60px;
  box-sizing: border-box;
  width: 100%;
}

.contact-title {
  color: white;
  font-size: 56px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 40px 0;
  letter-spacing: 0.05em;
}

.contact-description {
  color: white;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

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

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  color: white;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid white;
  background: transparent;
  color: white;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 200px;
  font-family: inherit;
}

.contact-page .privacy-policy {
  background: #ffffff; /* solid white background only */
  padding: 24px; /* ensure breathing room */
  color: #000000; /* black text */
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 0; /* remove rounded corners per request */
}

/* Scrollbar styling: make thumb the same orange as header (.group) for WebKit browsers */
.contact-page .privacy-policy::-webkit-scrollbar {
  width: 10px;
}
.contact-page .privacy-policy::-webkit-scrollbar-track {
  background: transparent;
}
.contact-page .privacy-policy::-webkit-scrollbar-thumb {
  background: #ff5a28; /* match header orange */
  border-radius: 6px;
}

/* Firefox scrollbar styling */
.contact-page .privacy-policy {
  scrollbar-width: thin;
  scrollbar-color: #ff5a28 transparent;
}

.checkbox-group {
  margin-bottom: 40px;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: white;
}

.checkbox-group input[type="checkbox"]:focus {
  outline: none;
  box-shadow: none;
}

/* removed custom checkmark styles to restore native checkbox appearance */

.submit-button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 18px 40px;
  background: transparent;
  border: 3px solid white;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1em;
}

.submit-button:hover {
  background: white;
  color: #ff6633;
}

.submit-button:active {
  transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    padding-top: 160px;
  }

  .contact-title {
    font-size: 40px;
  }

  .contact-description {
    font-size: 13px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
  }

  .submit-button {
    font-size: 16px;
  }
}

/* About Page Styles */
.about-content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-subtitle {
  color: #ffffff;
  font-family: "Noto Sans", Helvetica;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.about-text-content {
  color: #ffffff;
  font-family: "Noto Sans", Helvetica;
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 40px;
  text-align: center;
}

.about-text-content p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about-subtitle {
    font-size: 22px;
  }

  .about-text-content {
    font-size: 14px;
  }
}

/* Characters Page Styles */
.characters-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.characters-grid-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.character-card {
  background: transparent;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  cursor: default; /* クリック操作は無効にする */
}

.character-card:hover {
  transform: translateY(-10px);
}

/* キャラクター内のクリックを無効化（ホバーは親で効くようにする） */
.character-card a {
  pointer-events: none;
}

.character-card img {
  /* 画像自体はクリックを無効化して、ホバーは親要素で発火する */
  pointer-events: none;
}

/* 画像を同じボックスサイズに揃える */
.character-card img {
  width: auto;
  max-width: 100%;
  height: 260px; /* デスクトップ基準の高さ */
  object-fit: contain; /* アスペクト比を保ちながら中央に収める */
  border-radius: 8px;
  display: block;
}

@media (max-width: 1024px) {
  .character-card img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .character-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .character-card img {
    height: 160px;
  }
}

@media (max-width: 1024px) {
  .characters-grid-page {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .characters-grid-page {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .characters-grid-page {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 個別調整: image 28 を少し大きく表示する */
.character-card img[src="image 28.png"] {
  /* 他の画像よりやや大きめに表示（アスペクト比を保つ） */
  object-fit: contain;
  object-position: center;
  height: 210px; /* デスクトップでやや大きめ（+10px） */
  width: auto;
  max-width: 92%;
  display: block;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .character-card img[src="image 28.png"] {
    height: 190px;
    max-width: 88%;
  }
}

@media (max-width: 768px) {
  .character-card img[src="image 28.png"] {
    height: 170px;
    max-width: 82%;
  }
}

@media (max-width: 480px) {
  .character-card img[src="image 28.png"] {
    height: 150px;
    max-width: 78%;
  }
}
