@charset "UTF-8";

:root {
  --c-primary: #47b1e6;     /* 東京都の見出し・ボタン */
  --c-secondary: #759ed3;   /* 神奈川県の見出し */
  --c-title: #0095d2;       /* 「ショートステイ」 */
  --c-area-open: #d6f0f7;   /* 開いている区の背景 */
  --c-border: #dcdcdc;
  --c-text: #000;
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--c-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.3;
}

p { margin: 0; }
button { font: inherit; color: inherit; }

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ---------- 背景の円 ---------- */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco-group { position: absolute; display: block; }
.deco-group i { position: absolute; display: block; border-radius: 50%; }
.c-big   { background: var(--c-area-open); }
.c-small { background: rgba(150, 200, 200, .35); }

/* PC：1440px幅のデザインを中央基準で配置 */
.deco-group { width: 0; height: 0; left: 50%; }
.deco-group i.c-big   { width: 276px; height: 276px; }
.deco-group i.c-small { width: 129px; height: 129px; }

.deco-group--tl { top: 0; margin-left: -720px; }
.deco-group--tl .c-big   { left: 150px;  top: -26px; }
.deco-group--tl .c-small { left: 102px;  top: 144px; }

.deco-group--tr { top: 0; margin-left: -720px; }
.deco-group--tr .c-big   { left: 1097px; top: 218px; }
.deco-group--tr .c-small { left: 1075px; top: 170px; }

.deco-group--bl { bottom: 0; top: auto; margin-left: -720px; }
.deco-group--bl .c-big   { left: -12px;  bottom: 170px; }
.deco-group--bl .c-small { left: 183px;  bottom: 340px; }

.deco-group--br { bottom: 0; top: auto; margin-left: -720px; }
.deco-group--br .c-big   { left: 1003px; bottom: -110px; }
.deco-group--br .c-small { left: 955px;  bottom: -110px; }

/* ---------- 本体 ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 666px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.intro { text-align: center; padding-top: 25px; }

.logo { display: block; width: 368px; max-width: 100%; margin: 0 auto; aspect-ratio: 368 / 175; line-height: 0; }
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.title {
  margin-top: -11px;
  font-size: 28px;
  font-weight: 700;
}
.title span { display: block; }
.title-sub { color: var(--c-title); }

.lead {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
}

.accordion { margin-top: 19px; }

/* ---------- 都道府県 ---------- */
.pref + .pref { margin-top: 10px; }

.pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 17px 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-radius .2s, filter .2s;
}
.pref--secondary .pref-head { background: var(--c-secondary); }
.pref.is-open > .pref-head { border-radius: var(--radius) var(--radius) 0 0; }
.pref-head:hover { filter: brightness(1.05); }

/* 白丸＋三角アイコン（都道府県） */
.acc-icon {
  position: relative;
  flex: none;
  border-radius: 50%;
  transition: transform .25s;
}
.pref-head .acc-icon { width: 26px; height: 26px; background: #fff; }
.acc-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-style: solid;
  transform: translate(-50%, -35%);
}
.pref-head .acc-icon::before {
  border-width: 8px 5.5px 0 5.5px;
  border-color: var(--c-primary) transparent transparent transparent;
}
.pref--secondary .pref-head .acc-icon::before { border-top-color: var(--c-secondary); }
[aria-expanded="true"] > .acc-icon { transform: rotate(180deg); }

/* ---------- 開閉パネル（高さアニメーション） ---------- */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.is-open > .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; min-height: 0; }

.pref-panel .acc-panel-inner { background: #fff; }
.pref.is-open > .pref-panel > .acc-panel-inner {
  border: 1px solid var(--c-border);
  border-top: 0;
}

/* ---------- 区市町村 ---------- */
.area + .area { border-top: 1px solid var(--c-border); }

.area-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 39px;
  padding: 10px 20px 10px 21px;
  border: 0;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.area-head:hover { background: #f3fafd; }
.area.is-open > .area-head {
  background: var(--c-area-open);
  border-bottom: 1px solid var(--c-border);
}

/* 水色丸＋白三角アイコン（区） */
.area-head .acc-icon { width: 18px; height: 18px; background: var(--c-primary); }
.area-head .acc-icon::before {
  border-width: 6px 4px 0 4px;
  border-color: #fff transparent transparent transparent;
}

/* ---------- 事業所 ---------- */
.facility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px 24px 12px 21px;
}
.facility + .facility { border-top: 1px solid var(--c-border); }

.facility-name {
  word-break: auto-phrase; /* 対応ブラウザでは文節単位で改行 */
  text-wrap: pretty;
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 700;
}
.facility-address {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
}

.facility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  width: 204px;
  height: 38px;
  padding: 0 17px 0 20px;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .2s, transform .2s;
}
.facility-btn:hover { filter: brightness(1.08); }
.facility-btn:active { transform: translateY(1px); }

.facility-btn-arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}

/* フォーカス表示 */
.pref-head:focus-visible,
.area-head:focus-visible,
.facility-btn:focus-visible {
  outline: 3px solid #0095d2;
  outline-offset: 2px;
}

.noscript { margin-top: 20px; text-align: center; font-size: 14px; }

/* =========================================================
   SP（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  .page { padding-bottom: 50px; }

  .container { width: auto; max-width: none; margin: 0 20px; }

  .intro { padding-top: 19px; }
  .logo { width: 316px; }

  .title { margin-top: -12px; font-size: 24px; }
  .lead { margin-top: 9px; font-size: 14px; }

  .accordion { margin-top: 26px; }

  .pref-head { padding: 0 14px 0 12px; }

  .area-head { padding: 10px 18px 10px 12px; }

  .facility {
    display: block;
    min-height: 0;
    padding: 13px 12px 16px;
  }
  .facility-name { font-size: 14px; }
  .facility-btn {
    width: 184px;
    height: 34px;
    margin-top: 6px;
    padding: 0 14px 0 12px;
    font-size: 14px;
  }
  .facility-btn-arrow { border-width: 4.5px 0 4.5px 7px; }

  /* SPの背景装飾：小さめのグループ2つ */
  .deco-group { left: 0; margin-left: 0; }
  .deco-group--bl, .deco-group--br { display: none; }
  .deco-group i.c-big   { width: 92px; height: 92px; }
  .deco-group i.c-small { width: 43px; height: 43px; }

  .deco-group--tl { top: 160px; left: -20px; }
  .deco-group--tl .c-big   { left: 0;  top: 0; }
  .deco-group--tl .c-small { left: -16px; top: 57px; }

  .deco-group--tr { top: -36px; left: auto; right: 0; }
  .deco-group--tr .c-big   { right: -88px; left: auto; top: 0; }
  .deco-group--tr .c-small { right: 41px; left: auto; top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
