/*
Theme Name: Clinic Theme
Description: 〇〇ウィメンズクリニック用テーマ
*/

/* =========================================================
   共通設定
   ========================================================= */
/* スムーススクロール */
html {
  scroll-behavior: smooth;
}
body {
  background-color: #fafaf9;
  color: #44403c;
}

/* ヒーロー画像のオーバーレイ */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 100%
    );
  }
}

/* セクションの共通パディング */
.section-padding {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }
}

/* セクションタイトルの装飾 */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 40px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #be185d;
}

/* =========================================================
   ナビゲーションメニュー (WP標準対応)
   ========================================================= */
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu-list li {
  border-bottom: 1px solid #f3f4f6;
}
.mobile-menu-list li a {
  display: block;
  padding: 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #44403c;
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu-list li a:hover {
  color: #609b32; /* プライマリカラーの緑に変更 */
}
/* サブメニューの調整 */
.mobile-menu-list ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
  border-top: 1px dashed #e5e7eb;
}
.mobile-menu-list ul li {
  border-bottom: none;
}
.mobile-menu-list ul li a {
  font-size: 1rem;
  padding: 0.75rem 0;
  color: #78716c;
}
.mobile-menu-list ul li a::before {
  content: "- ";
  color: #d1d5db;
}

/* =========================================================
   固定ページ・投稿の本文エリア (.entry-content)
   ========================================================= */
/* WordPressのブロックエディタ等で入力した内容が綺麗に表示されるよう設定 */
.entry-content h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #be185d;
  border-bottom: 2px solid #fdf2f8;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}
.entry-content h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #44403c;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.entry-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.entry-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.entry-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
.entry-content a {
  color: #609b32; /* リンク色を緑に */
  text-decoration: underline;
}
.entry-content a:hover {
  color: #4a7a25;
}

/* =========================================================
   Contact Form 7 (お問い合わせフォーム) 用デザイン
   ========================================================= */
.wpcf7 {
  max-width: 100%;
}
.wpcf7 p {
  margin-bottom: 1.5rem;
}
/* 項目ラベル */
.wpcf7 label {
  display: block;
  font-weight: 700;
  color: #44403c;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* 入力フィールドの基本スタイル */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1; /* はっきりとしたグレーの枠線 */
  border-radius: 0.5rem; /* 角丸 */
  background-color: #f8fafc; /* 少しだけグレーがかった背景 */
  color: #44403c;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* 入力時のフォーカススタイル（緑色でハイライト） */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: #609b32;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(96, 155, 50, 0.15); /* ふんわり光る影 */
}

/* テキストエリア（メッセージ本文）の高さ調整 */
.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

/* チェックボックス・ラジオボタン */
.wpcf7-list-item {
  margin-right: 1.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.wpcf7-list-item input {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

/* 送信・確認ボタン */
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 350px;
  margin: 2.5rem auto 0;
  padding: 1.2rem 2rem;
  background-color: #be185d; /* 目立つアクセントカラー(ピンク/ボルドー) */
  color: #ffffff;
  border: none;
  border-radius: 9999px; /* 完全な丸み */
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(190, 24, 93, 0.2);
  -webkit-appearance: none;
}

/* ボタンホバー時 */
.wpcf7 input[type="submit"]:hover {
  background-color: #9d174d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(190, 24, 93, 0.3);
}

/* エラーメッセージ・送信完了メッセージ */
.wpcf7 form .wpcf7-response-output {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-align: center;
}
.wpcf7 form.sent .wpcf7-response-output {
  border: 2px solid #609b32;
  background-color: #eef6e8;
  color: #4a7a25;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border: 2px solid #be185d;
  background-color: #fdf2f8;
  color: #9d174d;
}
/* 入力項目下部の個別エラー文 */
.wpcf7-not-valid-tip {
  color: #be185d;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: block;
}
