/* 嘉祥園 公開サイト — 緑・ベージュ基調 */
:root {
  --green: #3f6b4f;
  --green-dark: #2f5540;
  --beige: #f5efe3;
  --beige-dark: #eae0c9;
  --ink: #33302a;
  --accent: #b3812f;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
html.font-large { font-size: 20px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  padding-bottom: 0;
}
.head-icon {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  vertical-align: -15px; margin-right: 10px;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(47, 85, 64, 0.18);
}
h2 .head-icon { width: 46px; height: 46px; vertical-align: -13px; }

h1, h2, h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDPMincho", "Noto Serif JP", serif;
  color: var(--green-dark);
  line-height: 1.4;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }

/* ヘッダー */
.site-header { background: #fff; border-bottom: 3px solid var(--green); }
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-text { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.logo-text small { display: block; font-size: 0.72rem; color: #77705f; font-family: sans-serif; font-weight: 400; }
.font-size-toggle { display: flex; gap: 4px; }
.font-size-toggle button {
  border: 1.5px solid var(--green); background: #fff; color: var(--green-dark);
  border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 0.9rem;
}
.font-size-toggle button.active { background: var(--green); color: #fff; }
.global-nav {
  max-width: 1080px; margin: 0 auto; padding: 6px 16px 12px;
  display: flex; flex-wrap: wrap; gap: 4px 18px;
}
.global-nav a { text-decoration: none; font-weight: 600; padding: 2px 0; }
.global-nav a:hover { text-decoration: underline; }

/* ヒーロー */
.hero { position: relative; }
.hero-img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.hero-panel {
  position: absolute; left: 4%; bottom: 6%; max-width: 620px;
  background: rgba(255,255,255,0.95); border-radius: 12px; padding: 22px 26px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.hero-panel h1 { margin: 4px 0 8px; font-size: 1.75rem; text-wrap: balance; }
.hero-panel .badge {
  display: inline-block; background: var(--green); color: #fff; border-radius: 999px;
  padding: 2px 12px; font-size: 0.8rem; margin: 0;
}
.hero-tel { font-size: 1.1rem; font-weight: 700; }
@media (max-width: 640px) {
  .hero-panel { position: static; max-width: none; border-radius: 0; box-shadow: none; padding: 20px 16px 26px; }
  .hero-panel h1 { font-size: 1.55rem; }
}

/* 曲線の帯 */
.wave-band { background: var(--green); margin: 34px 0; }
.wave { display: block; width: 100%; height: 46px; }
.wave-band .wave path { fill: #ffffff; }
.wave-top { transform: translateY(-1px); }
.wave-bottom { transform: translateY(1px); }
.wave-inner { max-width: 1080px; margin: 0 auto; padding: 4px 16px; text-align: center; }
.band-illust { width: 280px; max-width: 70vw; }
.band-illust g { stroke: #eaf2e6; }
.band-title { color: #fff; margin: 6px 0 14px; }

/* 円形カード */
.circle-cards { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; padding-bottom: 10px; }
.circle-card {
  width: 190px; height: 190px; border-radius: 50%;
  background: #fff; color: var(--ink); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.circle-card:hover { outline: 3px solid var(--beige-dark); }
.circle-icon svg { width: 46px; height: 46px; }
.circle-title { font-weight: 700; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; margin-top: 2px; }
.circle-text { font-size: 0.78rem; color: #6d675a; line-height: 1.5; }

/* セクション */
.section { padding: 30px 0; }
.section.alt { background: var(--beige); }
.section-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section-inner.narrow { max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.philosophy-text { font-size: 1.12rem; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.reason-list { font-size: 1.05rem; }
.reason-list li { margin: 6px 0; }
.button {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 8px 22px; font-weight: 600;
}
.button:hover { background: var(--green-dark); }

/* お知らせ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.news-card { border: 1px solid var(--beige-dark); border-radius: 10px; overflow: hidden; background: #fff; }
.news-card a { text-decoration: none; color: var(--ink); display: block; }
.news-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.news-card h3 { margin: 4px 12px 12px; font-size: 1.02rem; }
.news-meta { display: block; padding: 8px 12px 0; color: #77705f; font-size: 0.85rem; }
.tag { display: inline-block; border-radius: 4px; padding: 0 8px; font-size: 0.78rem; color: #fff; background: var(--accent); margin-right: 6px; }
.tag-行事 { background: var(--green); }
.tag-採用 { background: #7a5ea8; }
.news-detail-img { border-radius: 10px; margin: 10px 0; }
.news-body { font-size: 1.05rem; }

/* 文字の装飾（管理画面の簡易記法 [red] [blue] の変換先。白・ベージュ背景でも読める濃さにする） */
.text-red { color: #bf2a30; }
.text-blue { color: #1e50a2; }

/* 採用バナー */
.recruit-banner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; }
.recruit-banner a { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.recruit-banner img { width: 100%; height: 210px; object-fit: cover; display: block; }
.recruit-banner span {
  position: absolute; left: 18px; bottom: 14px; background: rgba(255,255,255,0.93);
  padding: 6px 18px; border-radius: 999px; font-weight: 700; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.job { border-top: 2px solid var(--beige-dark); padding: 8px 0 2px; }
.page-img { border-radius: 10px; margin-bottom: 14px; }

/* 料金表 */
.fees-table { width: 100%; border-collapse: collapse; margin: 12px 0; background: #fff; }
.fees-table th, .fees-table td { border: 1px solid #cfc4a6; padding: 8px 10px; text-align: right; }
.fees-table th { background: var(--beige); text-align: left; }
.fees-table thead th { text-align: center; background: var(--green); color: #fff; }
.fees-table.extras td { text-align: left; }
.fees-note { color: #77705f; font-size: 0.9rem; }
.fees-updated { color: #77705f; }
.preparing { font-size: 1.05rem; color: #77705f; }

/* フォーム */
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 4px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-size: 1rem; padding: 9px 10px; border: 1.5px solid #b9ad8f; border-radius: 8px; font-weight: 400;
}
.contact-form button {
  background: var(--green); color: #fff; border: none; border-radius: 999px;
  padding: 12px 30px; font-size: 1.05rem; font-weight: 700; cursor: pointer; justify-self: start;
}

/* 入所申込フォーム */
.apply-form fieldset {
  border: 1.5px solid #cfc4a6; border-radius: 10px; margin: 0;
  padding: 12px 16px 16px; display: grid; gap: 12px;
}
.apply-form legend { font-weight: 700; padding: 0 6px; }
.apply-form .field { display: grid; gap: 4px; font-weight: 600; }
.req { color: #b03a2e; font-size: 0.8rem; font-weight: 700; }
.radio-group { display: flex; gap: 20px; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.form-note {
  background: var(--beige); border-radius: 8px; padding: 10px 14px; font-size: 0.95rem;
}
.form-errors {
  background: #fdf0ee; border: 1.5px solid #d98880; border-radius: 8px; padding: 10px 16px;
}
.form-errors p { margin: 4px 0; font-weight: 700; }
.form-errors ul { margin: 4px 0; }
.form-errors li { color: #922b21; }
.confirm-table { width: 100%; border-collapse: collapse; margin: 12px 0; background: #fff; }
.confirm-table th, .confirm-table td {
  border: 1px solid #cfc4a6; padding: 8px 10px; text-align: left; vertical-align: top;
}
.confirm-table th { background: var(--beige); width: 36%; }
.form-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.form-buttons button {
  background: var(--green); color: #fff; border: none; border-radius: 999px;
  padding: 12px 30px; font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.form-buttons button.button-back {
  background: #fff; color: var(--green-dark); border: 1.5px solid var(--green);
}

/* フッター */
.site-footer { background: var(--green-dark); color: #f3efe4; margin-top: 30px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 26px 16px 90px; }
.footer-name { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 1.15rem; font-weight: 700; }
.site-footer a { color: #ffe9b0; }

/* スマホ下部固定ボタン */
.mobile-fixed-buttons { display: none; }
@media (max-width: 720px) {
  .mobile-fixed-buttons {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; background: var(--green-dark); z-index: 50;
  }
  .mobile-fixed-buttons a {
    color: #fff; text-align: center; text-decoration: none; font-weight: 700;
    padding: 8px 2px calc(8px + env(safe-area-inset-bottom)); background: var(--green);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 0.82rem; line-height: 1.3;
  }
  .mobile-fixed-buttons svg { flex: none; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer-inner { padding-bottom: 30px; }
}
