/* 日本語フォント設定 */
body {
  font-family: "Shippori Mincho", serif;
}

/* 英語フォントは維持 */
h2.display-4[style*="Montserrat"],
.btn {
  font-family: "Montserrat", sans-serif !important;
}

.hover-underline {
  position: relative;
}
.hover-underline::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #000;
  transition: 0.3s;
}
.hover-underline:hover::after {
  width: 100%;
}

.hover-underline-white::after {
  background: #fff;
}

.card {
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-5px);
}

.category-label {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
}
.category-label.event {
  background-color: #fef3c7;
  color: #92400e;
}
.category-label.news {
  background-color: #e0e7ff;
  color: #3730a3;
}
.category-label.other {
  background-color: #f3f4f6;
  color: #374151;
}
.category-nav {
  margin-bottom: 2rem;
}
.category-nav .btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
}
.category-nav .btn:hover {
  transform: translateY(-2px);
}

/* ページネーションのスタイル */
.navigation {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: #fff;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.nav-links .page-numbers:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

.nav-links .page-numbers.current {
  background-color: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.nav-links .prev,
.nav-links .next {
  padding: 0.5rem 1rem;
}

/* screen-reader-text は非表示にしつつアクセシビリティを保持 */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact Form 7のスタイル */
.wpcf7 {
  max-width: 800px;
  margin: 0 auto;
}

.wpcf7 label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.2s;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

.wpcf7-form textarea {
  min-height: 150px;
}

.wpcf7-submit {
  background-color: #1a1a1a;
  color: #fff;
  padding: 0.75rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 auto;
  display: block;
}

.wpcf7-submit:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.wpcf7-spinner {
  margin: 0 0 0 1rem;
}

.wpcf7-response-output {
  margin: 2rem 0 0;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

/* スマートフォン対応 */
@media (max-width: 767px) {
  .wpcf7 {
    padding: 0 1rem;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form select,
  .wpcf7-form textarea {
    font-size: 16px; /* iOSでズームを防ぐ */
  }
}

.header-image-container {
  position: relative;
  overflow: hidden;
}

.title-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.page-title {
  display: block;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 15px;
  margin: 0;
  font-weight: bold;
  width: 100%;
  letter-spacing: 0.05em;
}

.page-title span {
  display: block;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1em;
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-bg] {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
