/* ============================================
   社会福祉法人昴 - 提案用デモサイト共通スタイル
   ============================================ */

:root {
  --brand-teal: #3f7f92;
  --brand-teal-dark: #2d5f6e;
  --brand-brown: #a4906d;
  --brand-brown-light: #c9b899;
  --brand-brown-band: #a4906d;
  --brand-orange: #f2811d;
  --brand-orange-dark: #e06d0a;
  --brand-mint: #a9c9b8;
  --bg-light: #f7f5f1;
  --bg-white: #ffffff;
  --text-main: #333333;
  --text-sub: #767676;
  --border-soft: #e3ddd1;
  --propose-color: #d8722a;
  --exist-color: #4c8c5c;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- demo notice bar ---------- */
.demo-notice {
  background: #2b2b2b;
  color: #f0e9d8;
  font-size: 12.5px;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: .02em;
}
.demo-notice strong { color: #ffd08a; }

/* ---------- editable legend ---------- */
.edit-legend {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  max-width: 240px;
}
.edit-legend .lg-title { font-weight: 700; margin-bottom: 6px; font-size: 12.5px; }
.edit-legend .lg-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.edit-legend .lg-swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.edit-legend .sw-exist { background: var(--exist-color); }
.edit-legend .sw-propose { background: var(--propose-color); }
.edit-legend .lg-close { position: absolute; top: 6px; right: 8px; cursor: pointer; color: var(--text-sub); font-size: 14px; background: none; border: none; }

.editable {
  position: relative;
  outline: 2px dashed transparent;
  outline-offset: 4px;
  border-radius: 4px;
  transition: outline-color .15s;
}
.editable::before {
  content: attr(data-edit-label);
  position: absolute;
  top: -11px;
  left: 8px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
  color: #fff;
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
  pointer-events: none;
}
.editable.e-exist { }
.editable.e-exist::before { background: var(--exist-color); }
.editable.e-propose::before { background: var(--propose-color); }
.editable.e-exist:hover,
.editable.e-propose:hover { outline-color: currentColor; }
.editable.e-exist:hover { outline-color: var(--exist-color); }
.editable.e-propose:hover { outline-color: var(--propose-color); }
.editable:hover::before { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-teal-dark);
  letter-spacing: .04em;
}
.logo span { font-size: 11px; display: block; font-weight: 400; color: var(--text-sub); letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--text-main);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--brand-teal); color: var(--brand-teal-dark); }
.nav-cta {
  border: 1px solid var(--brand-teal-dark);
  color: var(--brand-teal-dark) !important;
  padding: 10px 20px !important;
  border-radius: 3px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--brand-teal-dark); color: #fff !important; }

@media (max-width: 860px) {
  .main-nav { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(60,90,80,.15) 0%, rgba(40,60,55,.45) 100%);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 60px;
  text-align: center; color: #fff; z-index: 2;
}
.hero-copy .jp { font-size: 24px; font-weight: 700; letter-spacing: .06em; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.3);}
.hero-copy .en { font-size: 14px; letter-spacing: .12em; }
.hero-badge {
  position: absolute; left: 26px; bottom: 26px; z-index: 3;
  background: var(--brand-orange);
  color: #fff; padding: 12px 20px; border-radius: 4px;
  font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.hero-badge small { display: block; font-weight: 400; font-size: 11.5px; margin-top: 2px; }

/* ---------- section band header ---------- */
.band {
  background: var(--brand-brown-band);
  color: #fff;
  text-align: center;
  padding: 34px 20px 30px;
}
.band h2 { font-size: 22px; letter-spacing: .1em; margin-bottom: 6px; }
.band .en { font-size: 12px; letter-spacing: .2em; opacity: .85; }

.page-lead {
  background: var(--bg-light);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-sub);
}
.page-lead .wrap { padding: 6px 24px; }

/* ---------- section generic ---------- */
section.block { padding: 56px 0; }
.section-title-inline { text-align: center; margin-bottom: 34px; }
.section-title-inline h3 { font-size: 21px; color: var(--brand-teal-dark); letter-spacing: .04em; }
.section-title-inline p { font-size: 12px; color: var(--text-sub); letter-spacing: .16em; margin-top: 4px; }

/* ---------- facility grid (top page) ---------- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .facility-grid { grid-template-columns: repeat(2, 1fr); } }
.facility-card { text-align: center; }
.facility-card .thumb { height: 120px; overflow: hidden; border-radius: 4px; }
.facility-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.facility-card:hover .thumb img { transform: scale(1.06); }
.facility-card .name {
  margin-top: 10px; font-size: 13px; background: #f2efe8;
  padding: 8px 6px; border: 1px solid var(--border-soft);
}

.area-filter { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-sub); }
.area-filter b { color: var(--brand-teal-dark); }

/* ---------- news ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--border-soft);
}
.news-item .thumb { width: 130px; height: 88px; flex: none; overflow: hidden; border-radius: 3px; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .date { font-size: 12.5px; color: var(--brand-teal); margin-bottom: 4px; letter-spacing: .05em; }
.news-item .title { font-size: 15px; }
.news-more { text-align: center; margin-top: 20px; }
.news-more a {
  display: inline-block; border: 1px solid var(--border-soft); padding: 10px 44px;
  font-size: 13px; color: var(--brand-teal-dark);
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft); font-size: 13px; border-radius: 3px;
}
.pagination .current { background: var(--brand-teal-dark); color: #fff; border-color: var(--brand-teal-dark); }

/* ---------- banner row ---------- */
.banner-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0; }
.banner-row a {
  display: block; background: var(--bg-light); border: 1px solid var(--border-soft);
  padding: 18px 20px; font-size: 14px; font-weight: 700; text-align: center; border-radius: 4px; color: var(--brand-teal-dark);
}
@media (max-width: 700px) { .banner-row { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.service-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.service-tabs button {
  border: 1px solid var(--border-soft); background: #fff; padding: 9px 16px;
  font-size: 12.5px; border-radius: 20px; cursor: pointer; color: var(--text-sub);
}
.service-tabs button.active, .service-tabs button:hover { background: var(--brand-teal-dark); color: #fff; border-color: var(--brand-teal-dark); }

.service-block {
  display: grid; grid-template-columns: 320px 1fr; gap: 30px;
  padding: 30px 0; border-bottom: 1px solid var(--border-soft); align-items: center;
}
.service-block .photo { border-radius: 6px; overflow: hidden; height: 200px; }
.service-block .photo img { width: 100%; height: 100%; object-fit: cover; }
.service-block h4 { font-size: 19px; color: var(--brand-teal-dark); margin-bottom: 10px; }
.service-block p.desc { font-size: 13.5px; color: var(--text-main); margin-bottom: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-size: 11px; color: #fff; padding: 4px 10px; border-radius: 12px;
}
@media (max-width: 760px) { .service-block { grid-template-columns: 1fr; } }

.detail-btn {
  display: inline-block; border: 1px solid var(--brand-teal-dark); color: var(--brand-teal-dark);
  font-size: 12.5px; padding: 8px 24px; border-radius: 3px;
}
.detail-btn:hover { background: var(--brand-teal-dark); color: #fff; }

/* ---------- facilities page cards ---------- */
.fac-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border-soft); margin-bottom: 24px; border-radius: 6px; overflow: hidden;
}
.fac-card .photo { height: 100%; min-height: 200px; }
.fac-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.fac-card .info { padding: 22px 24px; }
.fac-card .info h4 { color: var(--brand-teal-dark); font-size: 18px; margin-bottom: 8px; }
.fac-card .info .desc { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.fac-table { width: 100%; font-size: 13px; border-top: 1px solid var(--border-soft); }
.fac-table tr { border-bottom: 1px solid var(--border-soft); }
.fac-table th { text-align: left; width: 90px; padding: 8px 4px; color: var(--text-sub); font-weight: 500; vertical-align: top; }
.fac-table td { padding: 8px 4px; }
@media (max-width: 760px) { .fac-card { grid-template-columns: 1fr; } .fac-card .photo { min-height: 160px; } }

/* ---------- about page ---------- */
.philosophy-img { border-radius: 6px; overflow: hidden; margin: 26px 0; height: 320px; }
.philosophy-img img { width: 100%; height: 100%; object-fit: cover; }
.philosophy-copy { text-align: center; }
.philosophy-copy h4 { font-size: 22px; margin-bottom: 4px; }
.philosophy-copy .sub { color: var(--brand-teal); font-size: 13px; letter-spacing: .06em; margin-bottom: 18px; }
.philosophy-copy p { font-size: 13.5px; color: var(--text-sub); max-width: 640px; margin: 0 auto; }

.value-circles { display: flex; justify-content: center; gap: 30px; margin: 40px 0; flex-wrap: wrap; }
.value-circles .circle {
  width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; font-weight: 700; font-size: 13.5px; color: #fff; padding: 10px;
}
.value-circles .c1 { background: #d94f8c; }
.value-circles .c2 { background: #6fb648; }
.value-circles .c3 { background: #2f9fd6; }

.info-table { width: 100%; border-top: 1px solid var(--border-soft); font-size: 13.5px; margin: 26px 0; }
.info-table tr { border-bottom: 1px solid var(--border-soft); }
.info-table th { width: 140px; text-align: left; padding: 14px 10px; background: var(--bg-light); color: var(--text-sub); font-weight: 500; vertical-align: top; }
.info-table td { padding: 14px 10px; vertical-align: top; }

.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; }
.mag-card { border: 1px solid var(--border-soft); padding: 16px; text-align: center; border-radius: 6px; }
.mag-card .cover { height: 150px; margin-bottom: 10px; border-radius: 3px; overflow: hidden; }
.mag-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-card .btns { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.mag-card .btns a { font-size: 11.5px; border: 1px solid var(--border-soft); padding: 6px 10px; border-radius: 3px; }
@media (max-width: 760px) { .mag-grid { grid-template-columns: 1fr; } }

.disclosure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; font-size: 13px; }
.disclosure-grid a { color: var(--brand-teal-dark); display: block; margin-bottom: 6px; }
@media (max-width: 760px) { .disclosure-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.tel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 40px; }
.tel-card { border: 1px solid var(--border-soft); padding: 16px 18px; border-radius: 6px; }
.tel-card .fname { color: var(--brand-teal-dark); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tel-card .num { font-size: 20px; font-weight: 700; }
.tel-card .hours { font-size: 12px; color: var(--text-sub); }
@media (max-width: 760px) { .tel-grid { grid-template-columns: 1fr; } }

.form-table { width: 100%; border-top: 1px solid var(--border-soft); }
.form-table tr { border-bottom: 1px solid var(--border-soft); }
.form-table th { width: 160px; text-align: left; padding: 16px 10px; font-size: 13.5px; vertical-align: top; }
.form-table th .req { background: var(--brand-orange); color: #fff; font-size: 10.5px; padding: 2px 8px; border-radius: 3px; margin-left: 8px; }
.form-table td { padding: 12px 10px; }
.form-table input[type=text], .form-table input[type=email], .form-table textarea {
  width: 100%; border: 1px solid var(--border-soft); padding: 10px 12px; font-size: 13.5px; border-radius: 3px; font-family: inherit;
}
.form-table textarea { min-height: 130px; resize: vertical; }
.form-submit { text-align: center; margin-top: 26px; }
.form-submit button {
  background: var(--brand-teal-dark); color: #fff; border: none; padding: 14px 60px;
  font-size: 14px; border-radius: 3px; cursor: pointer;
}
.form-submit button:hover { background: var(--brand-teal); }

.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 36px; }
.step-row.four { grid-template-columns: repeat(4, 1fr); }
.step-row.five { grid-template-columns: repeat(5, 1fr); }
.step-box { border: 1px solid var(--border-soft); padding: 16px; text-align: center; font-size: 12.5px; border-radius: 6px; position: relative; }
.step-box .n { color: var(--brand-teal-dark); font-weight: 700; font-size: 11px; letter-spacing: .1em; margin-bottom: 6px; }
@media (max-width: 760px) { .step-row, .step-row.four, .step-row.five { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-brown-band); color: #fff; padding: 46px 0 20px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-logo { font-size: 17px; font-weight: 700; }
.footer-logo small { display: block; font-size: 10.5px; font-weight: 400; opacity: .8; letter-spacing: .1em; }
.footer-cta { display: inline-block; border: 1px solid #fff; padding: 10px 26px; font-size: 12.5px; margin-top: 14px; border-radius: 3px; }
.footer-cols { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-cols h5 { font-size: 13px; margin-bottom: 12px; opacity: .85; }
.footer-cols li { font-size: 12.5px; margin-bottom: 8px; opacity: .92; }
.footer-bottom {
  display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.25);
  margin-top: 34px; padding-top: 16px; font-size: 11px; opacity: .75; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 760px) { .footer-top, .footer-bottom { flex-direction: column; } }

/* ---------- faq ---------- */
.faq-cta { text-align: center; margin-top: 40px; }
.faq-cta a { display: inline-block; border: 1px solid var(--border-soft); padding: 12px 40px; font-size: 13px; border-radius: 3px; color: var(--brand-teal-dark); }
