/* ===== Contact Page ===== */
.contact-page {
  padding: 120px 0 140px;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-heading {
  margin: 0 0 32px;
  text-align: center;
  font-size: 2.6rem;
  font-weight: 500;
  color: #222;
}

.thanks-p {
  text-align: center;
}

.top-button {
  margin: 40px auto 0;
  text-align: center;
}

.top-button a,
.btn-primary {
  display: inline-block;
  font-weight: 400;
  min-width: 220px;
  padding: 14px 28px;
  border: 1px solid #222;
  border-radius: 9999px;
  background: #222;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.top-button a:hover,
.btn-primary:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* フォーム */
.contact-form .field {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
  color: #222;
}

.req {
  color: #d14;
  font-size: 1.2rem;
  vertical-align: top;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  font-size: 1.4rem;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  outline: none;
  background: #fff;
  color: #222;
}

.contact-form textarea {
  height: auto;
  resize: vertical;
  line-height: 1.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.06);
}

.actions {
  margin-top: 28px;
  text-align: center;
}


.screen-reader-response {
  display: none;
}

.wpcf7-not-valid-tip {
  color: #d14;
}

.wpcf7-response-output {
  color: #d14;
  margin-top: 8px;
  text-align: center;
}

/* 注意書き */
.note {
  margin-top: 40px;
  color: #666;
  font-size: 1.3rem;
  line-height: 1.9;
}
.note a {
  color: #666;
  text-decoration: underline;
}
.note a:hover {
  color: #111;
}

/* fieldset のデフォルト枠線を削除 */
.hidden-fields-container {
  display: none;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .contact-page {
    padding: 120px 0 140px;
  }
  .contact-heading {
    font-size: 2.2rem;
    margin-bottom: 24px;
  }
  .contact-form label {
    font-size: 1.3rem;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 1.35rem;
  }
  .btn-primary {
    min-width: 200px;
  }
}

/* =============== News =============== */
.kasou-wrapper {
  width: 85%;
  margin: 0 auto;
  padding: 160px 0 120px;
}

.news-all-section {
  padding: 20px 0 0;
}

/* =============== お知らせ詳細 =============== */
.news-detail-wrapper {
  width: 70%;
  margin: 0 auto;
  padding: 160px 0 120px;
}

.news-detail-wrapper .news-meta {
  margin-bottom: 16px; /* タイトルの上に余白 */
}

.news-detail-heading {
  margin: 24px 0 32px; /* ← タイトル上に余白追加 */
  text-align: left;
  font-size: 2.4rem;
  font-weight: 400;
}

/* アイキャッチ画像を固定サイズで表示（変形防止） */
.news-detail-thumb {
  width: 100%;
  max-width: 100%;
  height: 300px; /* 好みの高さに調整 */
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 8px;
}
.news-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を切り抜きで表示、比率維持 */
  display: block;
}

/* 前後記事ナビを左右に配置 */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin: 48px 0;
}
.post-nav__prev a,
.post-nav__next a {
  display: inline-block;
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
}
.post-nav__prev a:hover,
.post-nav__next a:hover {
  text-decoration: underline;
}

/* 一覧へ戻るリンクを中央寄せ */
.news-back-link {
  text-align: center;
  margin-top: 32px;
}
.news-back-link a {
  display: inline-block;
  padding: 10px 24px;
  background-color: #f5f5f5;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.4rem;
  color: #333;
}
.news-back-link a:hover {
  background-color: #e0e0e0;
}

@media (max-width: 600px) {
  .kasou-wrapper {
    width: 90%;
    margin: 0 auto;
    padding: 120px 0 140px;
  }

  .news-detail-wrapper {
    width: 90%;
    margin: 0 auto;
    padding: 120px 0 80px;
  }

  .news-detail-heading {
    margin: 20px 0 24px; /* モバイルでも少し上余白確保 */
    font-size: 2rem;
  }

  .news-detail-thumb {
    height: 200px; /* モバイルでは縦幅少し小さく */
  }
}

/* === Privacy page === */
.privacy-page .privacy-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.9;
  color: #222;
}
.privacy-page .privacy-content h2 {
  margin: 8px 0 16px;
  font-size: 2rem;
  font-weight: 600;
}
.privacy-page .privacy-content h3 {
  margin: 24px 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
}
.privacy-page .privacy-content ul {
  padding-left: 1.2em;
  margin: 8px 0 16px;
}
.privacy-page .privacy-content address {
  font-style: normal;
  margin-top: 16px;
}
