/* ==========================================================================
   CSS変数定義
   ========================================================================== */
:root {
  --green: #009f92; /* メインカラー: グリーン */
  --yellow: #e5c100; /* アクセントカラー: イエロー */
  --Greige: #e5e0d9; /* 背景カラー: グレージュ */
  --gray: #ebebeb; /* 背景カラー: ライトグレー */
  --DarkGray: #262626; /* テキストカラー: ダークグレー */
  --OffWhite: #f7f6ea; /* 背景カラー: オフホワイト */
}

/* ==========================================================================
   フォント読み込み最適化
   ========================================================================== */
/* フォント読み込み中はコンテンツを非表示（揺らぎ防止） */
/* フォント読み込み中でも即描画（体感速度優先） */
html.wf-loading {
  visibility: visible;
}

html.wf-active,
html.wf-inactive {
  visibility: visible;
}

/* SVG内のテキストフォント指定 */
svg text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo",
    "MS Gothic", sans-serif !important;
}

/* ==========================================================================
   基本スタイル
   ========================================================================== */
* {
  min-height: 0px;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: noto-sans-cjk-jp, sans-serif;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3rem);
}

h4 {
  font-size: 1.5rem;
  margin: 0.5rem auto;
}

p,
li {
  font-size: 1.125rem; /* 18px */
}

a {
  text-decoration: none;
  color: white;
  font-size: 1.25rem;
}

.news-content .news-text,
.news-content .news-text:link,
.news-content .news-text:visited {
  color: #000;
}
.news-content .news-text:hover {
  color: var(--green);
}

.sp-br {
  display: none;
}

@media (max-width: 768px) {
  .sp-br {
    display: block;
  }
}

/* ==========================================================================
   ヘッダー: サイトのメインナビゲーション
   ========================================================================== */
.site-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--yellow);
  padding: 0rem 0 1rem;
  z-index: 1000;
}

body.single .header-nav a,
body.archive .header-nav a,
body.category .header-nav a,
body.page .header-nav a {
  color: #fff;
}

body.single .header-nav a:hover,
body.archive .header-nav a:hover,
body.category .header-nav a:hover,
body.page .header-nav a:hover {
  color: var(--green);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 0 1rem;
  background-color: var(--yellow);
}

.header-logo img {
  height: 60px;
  width: auto;
  max-width: 100%;
}

.header-buttons {
  display: flex;
  gap: 1rem;
}

.header-btn {
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(0.875rem, 1.25rem, 1.25rem);
}

.header-btn-green {
  background-color: var(--green);
  color: white;
  border: 2px solid var(--green);
}

.header-btn-green:hover {
  background-color: white;
  color: var(--green);
}

.header-btn-white {
  background-color: white;
  color: var(--green);
  border: 2px solid var(--green);
}

.header-btn-white:hover {
  background-color: var(--green);
  color: white;
}

/* ナビゲーション */
.header-nav {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 2rem;
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: #000;
}

/* ==========================================================================
   共通スタイル: ボタン、コンテナ
   ========================================================================== */
.container {
  overflow-x: hidden;
}

/* コンテンツ幅制限用の共通クラス */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   フッター: サイトナビゲーション、SNSリンク、法的情報
   ========================================================================== */
footer {
  background-color: #0d0d0d;
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: flex-start;
  border-bottom: 1px solid #444;
}

.footer-logo {
  width: 70%;
  margin-bottom: 1.5rem;
}

.footer-info {
  color: white;
  line-height: 1.8;
}

.footer-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-contact-button {
  display: inline-block;
  background-color: var(--green);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1rem;
  border: 2px solid var(--green);
  transition: all 0.3s;
}

.footer-contact-button:hover {
  background-color: white;
  color: var(--green);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-nav-column a {
  color: white;
  text-decoration: none;
  line-height: 1.6;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-nav-column a:hover {
  color: var(--yellow);
}

.footer-nav-column a span {
  font-weight: normal;
}

.footer-nav-column.footer-social {
  gap: 1.5rem;
}

.social-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--yellow);
}

.social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-copyright {
  color: white;
  margin: 0;
  font-size: 0.9rem;
  text-align: right;
}

/* ==========================================================================
   固定ページ
   ========================================================================== */
.page-section {
  padding: 4rem 0;
  background-color: var(--OffWhite);
  min-height: 80vh;
}

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  border-radius: 1rem;
  padding: 4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--green);
}

.page-title {
  margin: 0;
  font-size: 3rem;
  color: var(--green);
}

.page-body {
  line-height: 1.8;
}

/* WordPressデフォルトスタイルを尊重しつつ、最小限のカスタマイズ */
.page-body > * {
  max-width: 100%;
}

/* 見出しのみカラー調整 */
.page-body h2 {
  color: var(--DarkGray);
  margin-top: 2.5rem;
}

.page-body h3 {
  color: var(--DarkGray);
  margin-top: 2rem;
}

/* ==========================================================================
   404エラーページ
   ========================================================================== */
.error-section {
  padding: 6rem 0;
  background-color: var(--OffWhite);
  min-height: 80vh;
}

.error-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  background-color: white;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-title {
  font-size: 8rem;
  margin: 0;
  color: var(--green);
  font-weight: bold;
  line-height: 1;
}

.error-subtitle {
  font-size: 2.5rem;
  margin: 1rem 0 2rem;
  color: var(--DarkGray);
}

.error-text {
  line-height: 1.8;
  color: #666;
  margin-bottom: 3rem;
}

.error-buttons {
  margin-bottom: 4rem;
}

.error-home-button {
  display: inline-block;
  background-color: var(--green);
  color: white;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: all 0.3s;
}

.error-home-button:hover {
  background-color: white;
  color: var(--green);
}

.error-search {
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--Greige);
}

.error-search h3 {
  margin-bottom: 1.5rem;
  color: var(--DarkGray);
}

.error-search form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.error-search input[type="search"] {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--DarkGray);
  border-radius: 2rem;
  font-size: 1rem;
}

.error-search input[type="submit"],
.error-search button[type="submit"] {
  background-color: var(--DarkGray);
  color: white;
  padding: 0.8rem 2rem;
  border: 2px solid var(--DarkGray);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.error-search input[type="submit"]:hover,
.error-search button[type="submit"]:hover {
  background-color: white;
  color: var(--DarkGray);
}

.error-popular {
  padding-top: 2rem;
  border-top: 2px solid var(--Greige);
}

.error-popular h3 {
  margin-bottom: 1.5rem;
  color: var(--DarkGray);
}

.error-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-links a {
  background-color: var(--OffWhite);
  color: var(--DarkGray);
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--DarkGray);
  transition: all 0.3s;
}

.error-links a:hover {
  background-color: var(--green);
  color: white;
  border-color: var(--green);
}

/* ==========================================================================
   お問い合わせページ
   ========================================================================== */
.contact-section {
  padding: 4rem 0;
  background-color: var(--OffWhite);
  min-height: 80vh;
}

.contact-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  background-color: white;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-title {
  font-size: 3rem;
  margin: 0 0 0.5rem;
  color: var(--green);
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin: 0 0 2rem;
  letter-spacing: 0.1em;
}

.contact-description {
  line-height: 1.8;
  color: #666;
  margin: 0;
}

/* Contact Form 7 スタイル */
.contact-form-wrapper {
  background-color: white;
  padding: 3rem 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wpcf7 {
  max-width: 100%;
}

.wpcf7-form p {
  margin-bottom: 2rem;
}

.wpcf7-form h2,
.wpcf7-form h3 {
  text-align: left;
  margin-bottom: 1.5rem;
  color: var(--DarkGray);
}

.wpcf7-form h2 {
  font-size: 2rem;
  border-bottom: 3px solid var(--green);
  padding-bottom: 0.5rem;
}

.wpcf7-form h3 {
  font-size: 1.5rem;
}

.wpcf7-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--DarkGray);
  text-align: left;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

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

.wpcf7-form p {
  text-align: left;
}

.wpcf7-form input[type="submit"] {
  background-color: var(--green);
  color: white;
  padding: 1rem 3rem;
  border: 2px solid var(--green);
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  margin: 0 auto;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: white;
  color: var(--green);
}

.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

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

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ==========================================================================
   レスポンシブ対応 - タブレット (1024px以下)
   ========================================================================== */
@media (max-width: 1024px) {
  /* ヘッダー */
  .site-header {
    padding: 1.5rem 2rem;
  }
  .header-logo img {
    height: 40px;
  }
  .header-nav {
    gap: 1.5rem;
  }

  /* 固定ページ */
  .page-content {
    padding: 3rem 2rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  /* フッター */
  .footer-content {
    gap: 2rem;
  }

  .footer-nav {
    gap: 2rem;
  }
}

/* ==========================================================================
   レスポンシブ対応 - スマートフォン (768px以下)
   ========================================================================== */
@media (max-width: 768px) {
  /* ヘッダー */
  .site-header {
    padding: 1rem 1.5rem;
  }

  .header-top {
    flex-direction: column;
    gap: 1rem;
  }

  .header-logo {
    text-align: center;
  }

  .header-logo img {
    height: 50px;
  }

  .header-buttons {
    width: 100%;
    justify-content: center;
  }

  .header-btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }

  .header-nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }

  .header-nav a {
    font-size: 1rem;
  }

  /* 固定ページ */
  .page-content {
    padding: 3rem 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-body h2 {
    font-size: 1.8rem;
  }

  /* 404ページ */
  .error-content {
    padding: 3rem 2rem;
  }

  .error-title {
    font-size: 6rem;
  }

  .error-subtitle {
    font-size: 2rem;
  }

  .error-search form {
    flex-direction: column;
  }

  .error-links {
    flex-direction: column;
    align-items: center;
  }

  .error-links a {
    width: 80%;
    max-width: 300px;
  }

  /* お問い合わせページ */
  .contact-title {
    font-size: 2.5rem;
  }

  /* フッター */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    width: 100%;
    max-width: 300px;
  }

  .footer-info {
    text-align: center;
  }

  .footer-info p {
    font-size: 0.85rem;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-nav-column a {
    font-size: 0.95rem;
  }

  .footer-nav-column.footer-social {
    gap: 0.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .social-link {
    font-size: 1rem;
  }

  .footer-copyright {
    text-align: center;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   レスポンシブ対応 - 小型スマートフォン (480px以下)
   ========================================================================== */
@media (max-width: 480px) {
  /* ヘッダー */
  .site-header {
    padding: 0.8rem 1rem;
  }
  .header-logo img {
    height: 40px;
  }
  .header-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }

  /* 固定ページ */
  .page-content {
    padding: 2rem 1rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  /* 404ページ */
  .error-content {
    padding: 2rem 1rem;
  }

  .error-title {
    font-size: 4rem;
  }

  .error-subtitle {
    font-size: 1.5rem;
  }

  /* お問い合わせページ */
  .contact-header {
    padding: 2rem 1rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1rem;
  }

  .wpcf7-form h2 {
    font-size: 1.5rem;
  }

  /* フッター */
  .footer-nav {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }

  .footer-nav-column {
    gap: 0.8rem;
  }

  .footer-nav-column a {
    font-size: 0.85rem;
  }

  .footer-nav-column.footer-social {
    gap: 0.6rem;
  }

  .social-link {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   reCAPTCHA バッジの表示制御
   ========================================================================== */
/* コンタクトページ以外ではreCAPTCHAバッジを非表示 */
body:not(.page-template-page-contact) .grecaptcha-badge {
  display: none !important;
}
