/* おかちき ホームページ 共通の書式（全ページで読み込む） */
:root {
  --cream: #f7f3e4;
  --cream-light: #fffdf6;
  --brown: #614b38;
  --text: #4a4038;
  --pink: #d85c94;        /* 装飾用（下線バー・ドット等） */
  --pink-text: #b8437a;   /* 文字用（WCAG AA: クリーム地4.5:1以上） */
  --note: #6d5a45;        /* 補足文字用 */
  --pastel-blue: #d9e7e0;
  --pastel-yellow: #f5e6c4;
  --pastel-pink: #f2c7b5;
  --pastel-green: #dde6bf;
  --line: #eadfca;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; color: var(--brown); }
img { max-width: 100%; height: auto; }
a { color: var(--pink-text); }

/* ===== 上部バー ===== */
.topbar {
  background: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__logo img { height: 52px; width: auto; display: block; }

/* ===== ナビ ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
nav ul {
  display: flex;
  list-style: none;
  max-width: 1080px;
  margin: 0 auto;
  white-space: nowrap;
}
nav a {
  display: block;
  padding: 12px 18px;
  color: var(--brown);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}
nav a:hover, nav a.active { border-bottom-color: var(--pink); color: var(--pink-text); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 640px 420px at 12% 18%, rgba(217, 231, 224, 0.55), transparent 70%),
    radial-gradient(ellipse 560px 400px at 88% 12%, rgba(245, 230, 196, 0.6), transparent 70%),
    radial-gradient(ellipse 620px 460px at 85% 88%, rgba(221, 230, 191, 0.5), transparent 70%),
    radial-gradient(ellipse 560px 400px at 10% 85%, rgba(242, 199, 181, 0.4), transparent 70%),
    var(--cream);
}
.hero h1 {
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.hero h1 .kaeru { color: var(--pink); }
.hero .sub {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  color: var(--note);
  letter-spacing: 0.12em;
  margin-bottom: 30px;
}
.hero .lead {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: left;
}
.hero__frog { max-width: 340px; margin: 0 auto; }
.hero__frog img {
  -webkit-mask-image: radial-gradient(ellipse 74% 72% at 50% 50%, #000 45%, transparent 92%);
  mask-image: radial-gradient(ellipse 74% 72% at 50% 50%, #000 45%, transparent 92%);
}

/* ===== 共通セクション ===== */
section { padding: 72px 24px; }
.inner { max-width: 1080px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.sec-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--pink);
  margin: 14px auto 0;
}
.sec-head .en {
  display: block;
  font-size: 13px;
  color: var(--pink-text);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.alt { background: var(--cream-light); }
p + p { margin-top: 1em; }

/* ===== お知らせ ===== */
.news { max-width: 760px; margin: 0 auto; }
.news li {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px 18px;
  padding: 15px 8px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}
.news time { color: var(--pink-text); font-weight: 700; flex-shrink: 0; font-family: "Zen Maru Gothic", sans-serif; }
.news .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
  border-radius: 999px;
  padding: 2px 14px;
  flex-shrink: 0;
  min-width: 4.5em;
  text-align: center;
}
.tag--soukai { background: var(--pastel-pink); }
.tag--benkyo { background: var(--pastel-green); }
.tag--sodan { background: var(--pastel-yellow); }
.tag--info { background: var(--pastel-blue); }
.news li a { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ===== おかちきについて ===== */
/* 3枚構成：3列（広幅）か縦積み（狭幅）のみ。2+1の孤立配置を作らない */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.about-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 5px solid var(--pink);
  line-height: 1.5;
}
.about-card:nth-child(2) h3 { border-left-color: #9db97e; }
.about-card:nth-child(3) h3 { border-left-color: #e8b64c; }

/* ===== 4つの活動 ===== */
/* 4枚構成：4列（広幅）→2×2（中幅）→縦積み（狭幅）。3+1の孤立配置を作らない */
.act-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}
@media (min-width: 620px) {
  .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1150px) {
  .act-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
}
.act-card { border-radius: 24px; padding: 30px 26px; }
.act-card h3 { font-size: 19px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.act-card .yomi {
  display: block;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--note);
  margin: 2px 0 14px;
}
.act-card ul { padding-left: 1.3em; font-size: 15px; }
.act-card li { margin-bottom: 6px; }
.act--blue { background: var(--pastel-blue); }
.act--yellow { background: var(--pastel-yellow); }
.act--pink { background: var(--pastel-pink); }
.act--green { background: var(--pastel-green); }

/* ===== 成年後見制度とは ===== */
.narrow { max-width: 720px; margin: 0 auto; }
.point-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  margin-top: 28px;
}
.point-box h3 { font-size: 17px; color: var(--pink-text); margin-bottom: 10px; }

/* ===== ご相談 / 会員 ===== */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.soft-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.soft-card h3 { font-size: 18px; margin-bottom: 14px; }
.check-list { list-style: none; }
.check-list li { padding-left: 1.7em; position: relative; margin-bottom: 10px; }
.check-list li::before { content: "✿"; position: absolute; left: 0; color: var(--pink); }
.check-list--leaf li::before { content: "☘"; color: #7fa05e; }
.cta { text-align: center; margin-top: 40px; }
.cta > p:not(.note) { margin-bottom: 24px; }
.btn {
  display: inline-block;
  background: var(--pink-text);
  color: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 44px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.06em;
  border: 0;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }
.cta .note { font-size: 13px; color: var(--note); margin-top: 24px; }

/* ===== センター ===== */
/* 上段＝岡山・玉野（本部事務所内）の2枚、下段＝津山・高梁・東備の3枚。各段を中央寄せ */
.center-grid { display: flex; flex-direction: column; gap: 20px; }
.center-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.center-card { flex: 0 1 340px; }
.center-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-text);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 8px;
}
.center-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}
.center-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.center-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex-shrink: 0; margin-top: 0.5em; }
.center-card p { font-size: 15px; }

/* ===== お問い合わせ ===== */
.contact-band { background: var(--pastel-yellow); text-align: center; }
.contact-band .tel-big a {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  color: var(--brown);
  text-decoration: none;
}
.contact-band .tel-big a::before { content: "☎ "; color: var(--pink); }

/* ===== 問い合わせフォーム ===== */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 760px;
  margin: 44px auto 0;
  text-align: left;
}
.form-card h3 { font-size: 20px; margin-bottom: 12px; text-align: center; }
.form-note {
  font-size: 13.5px;
  color: var(--note);
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .form-card { padding: 28px 20px; }
}

/* ===== 法人概要 ===== */
.gaiyo { max-width: 720px; margin: 0 auto; border-collapse: collapse; width: 100%; }
.gaiyo th, .gaiyo td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.gaiyo th { width: 8em; color: var(--brown); font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; white-space: nowrap; }

footer { background: var(--brown); color: #f7f3e4; text-align: center; padding: 30px 16px 22px; font-size: 13px; line-height: 1.8; }
footer p + p { margin-top: 0; }
footer a { color: #f7f3e4; text-decoration: none; }
.footer__name { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
footer .footer__copy { margin-top: 16px; font-size: 12px; opacity: 0.8; }

/* ===== 下層ページの見出し帯 ===== */
.page-head {
  text-align: center;
  padding: 56px 24px 48px;
  background:
    radial-gradient(ellipse 520px 300px at 12% 20%, rgba(217, 231, 224, 0.5), transparent 70%),
    radial-gradient(ellipse 480px 280px at 88% 80%, rgba(245, 230, 196, 0.55), transparent 70%),
    var(--cream);
}
.page-head .en {
  display: block;
  font-size: 13px;
  color: var(--pink-text);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.page-head h1 {
  font-size: clamp(24px, 3.8vw, 34px);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.page-head h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--pink);
  margin: 14px auto 0;
}

/* ===== トップ：立場ごとの入口 ===== */
/* 3枚構成：3列（広幅）か縦積み（狭幅）のみ */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
.entry-card {
  display: block;
  border-radius: 20px;
  padding: 26px 26px 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s;
}
.entry-card:hover { transform: translateY(-2px); }
.entry-card .who { display: block; font-size: 13px; font-weight: 700; color: var(--note); margin-bottom: 4px; }
.entry-card h3 { font-size: 20px; margin-bottom: 8px; }
.entry-card .go { font-size: 14px; font-weight: 700; color: var(--pink-text); }

/* 見出し帯のすぐ下の同じ地色の段は、上の余白を詰める */
.page-head + section:not(.alt):not(.contact-band) { padding-top: 16px; }

/* メニュー：項目が少ないので、広い画面では中央に寄せる */
@media (min-width: 900px) {
  nav ul { justify-content: center; }
}
.topbar__logo { display: block; }

/* ===== お知らせ一覧へのリンク ===== */
.more { text-align: center; margin-top: 24px; }
.more a { font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  .topbar { justify-content: center; text-align: center; }
  section { padding: 56px 18px; }
  .page-head { padding: 44px 18px 36px; }
}
