/* お問い合わせ（エデュケア） /educare/contact/
   header.php が is_page('contact') のときだけ読み込む。
   全セレクタを #rnw-cedu 配下にスコープしている（汎用クラス名のため）。
   見た目はファミリーケアのフォーム（contact-vipcare.css）と揃え、
   色変数だけエデュケア（青系）に差し替えている。
   フォームは置かず、電話（開閉）とリンク3つだけのページ（2026-09-24）。 */

#rnw-cedu {
  --edu: #4a6bb0;
  --edu-deep: #38548f;
  --edu-soft: #e7eef9;
  --ink: #33384a;
  --sub: #8a90a2;
  --line: #e3e6ee;
  --bg: #eef1f6;

  margin: 0;
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  padding: 32px 16px;
  -webkit-font-smoothing: antialiased;
}

#rnw-cedu,
#rnw-cedu *,
#rnw-cedu *::before,
#rnw-cedu *::after { box-sizing: border-box; }

/* --- 旧CSS（/educare/css/*.css）の打ち消し ---
   .head .body などは汎用名のため、旧CSS側の指定がこのページにも当たる。
   #rnw-cedu スコープで詳細度は勝つが、こちらが指定していないプロパティは
   漏れるので、ここで初期化しておく。 */
#rnw-cedu h1,
#rnw-cedu p,
#rnw-cedu dl,
#rnw-cedu dt,
#rnw-cedu dd,
#rnw-cedu details,
#rnw-cedu summary { margin: 0; padding: 0; background: none; border: 0; }

#rnw-cedu .head::before, #rnw-cedu .head::after,
#rnw-cedu .body::before, #rnw-cedu .body::after { content: none; }

/* --- 本体 --- */

#rnw-cedu .shell { max-width: 640px; margin: 0 auto; }

#rnw-cedu .head { background: linear-gradient(135deg, var(--edu) 0%, var(--edu-deep) 100%); color: #fff; border-radius: 16px 16px 0 0; padding: 30px 32px 26px; }
#rnw-cedu .head h1 { margin: 0 0 6px; font-size: 20px; letter-spacing: .04em; }
#rnw-cedu .head p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.82); }

#rnw-cedu .body { background: #fff; border-radius: 0 0 16px 16px; padding: 30px 32px 34px; box-shadow: 0 8px 30px rgba(56,84,143,.1); }

#rnw-cedu .lead { text-align: center; font-size: 15px; font-weight: 600; margin: 4px 0 8px; }
#rnw-cedu .psub { text-align: center; font-size: 12.5px; color: var(--sub); margin: 0 0 22px; }

/* お電話でのお問い合わせ（開閉） */
#rnw-cedu .tel { border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 30px; }
#rnw-cedu .tel summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
#rnw-cedu .tel summary::-webkit-details-marker { display: none; }
#rnw-cedu .tel summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--edu); border-bottom: 2px solid var(--edu); transform: rotate(45deg); margin: -4px 4px 0 12px; transition: transform .2s; }
#rnw-cedu .tel[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
#rnw-cedu .tel[open] summary { border-bottom: 1px solid var(--line); }
#rnw-cedu .tel-body { padding: 4px 16px 6px; font-size: 13px; }
#rnw-cedu .tel-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
#rnw-cedu .tel-item:last-child { border-bottom: none; }
#rnw-cedu .tel-name { font-weight: 600; color: var(--edu-deep); margin-bottom: 4px; }
#rnw-cedu .tel-note { font-size: 12px; color: var(--sub); }
#rnw-cedu .tel-item .tel-note { margin-top: 8px; }
#rnw-cedu .tel dl { display: grid; grid-template-columns: 6em 1fr; gap: 6px 10px; }
#rnw-cedu .tel dt { color: var(--sub); }
#rnw-cedu .tel a { color: var(--edu); text-decoration: underline; }
#rnw-cedu .tel .tel-link { display: inline-block; margin-top: 8px; padding: 6px 20px; border: 1.5px solid var(--edu); border-radius: 20px; font-weight: 600; text-decoration: none; }
#rnw-cedu .tel .tel-link:hover { background: var(--edu-soft); }

/* Webからのお問い合わせ（リンク3つ） */
#rnw-cedu .links { display: flex; flex-direction: column; gap: 10px; }
#rnw-cedu .link-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 15px 16px; font-size: 14px; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
#rnw-cedu .link-row:hover { border-color: var(--edu); background: var(--edu-soft); }
#rnw-cedu .link-row .ico { width: 18px; height: 18px; flex: 0 0 auto; color: var(--edu); }

@media (max-width: 480px) {
  #rnw-cedu .head, #rnw-cedu .body { padding-left: 20px; padding-right: 20px; }
  #rnw-cedu .tel dl { grid-template-columns: 1fr; gap: 0; }
  #rnw-cedu .tel dd { margin-bottom: 8px; }
}
