/* ホームページ（公開側）。今の Wix のサイトと同じ見た目に寄せる:
   左に丸いロゴ・右に法人名（Cinzel 体・字間広め・紺）＋虹の絵＋ブランド名、その下に黄色の施設ボタン
   （右下にずらした影）、お知らせ、紺のタブのメニュー（白→薄灰のグラデーション・今のページは紺地に白字）、
   ページごとの背景の写真（tile は模様を敷きつめる・cover は画面いっぱい）。
   Wix のような位置の決め打ちはせず、PC（中身の幅 980px）でもスマホ（390px）でも崩れない作り。
   色は SITE_SETTING から :root の変数に入る（下は入っていないときの既定）。 */
:root {
  --hp-primary: #002e5d;
  --hp-accent: #ffde5f;
  --hp-accent-shadow: #dbba3b 5.66px 5.66px 0 0;
  --hp-text: #0e3c53;
  --hp-org: #0e3c53;
  --hp-fac-link: #0e3c53;
  --hp-nav-bg: linear-gradient(180deg, #ffffff, #ffffff, #d7d7d7);
  --hp-nav-text: #002e5d;
  --hp-nav-sel-bg: linear-gradient(180deg, #00274e, #002e5d, #2f557b);
  --hp-nav-sel-text: #ffffff;
  --hp-muted: #5d6b73;
  --hp-bg: #ffffff;
  --hp-soft: #f6f4ee;
  --hp-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --hp-font-head: "Cinzel", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --hp-max: 980px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--hp-bg); }
body { margin: 0; background: transparent; color: var(--hp-text); font-family: var(--hp-font); font-weight: 300;
       font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
b, strong { font-weight: 700; }
a { color: var(--hp-primary); }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
.hp-wrap { max-width: var(--hp-max); margin: 0 auto; padding: 0 16px; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ページの背景（設定したページだけ）。画面に固定して敷く（iPhone でも動くよう疑似要素で） */
/* tile: 小さな模様をページ全体に敷きつめる（ページと一緒に動く） */
body.hp-bg-tile { background-repeat: repeat; background-position: center top; min-height: 100vh; }
/* cover: 写真を画面いっぱいに（スクロールしても動かない。Wix と同じ） */
body.hp-bg-cover::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
                           background-position: center center; background-repeat: no-repeat; background-size: cover; }

/* プレビューの帯 */
.hp-preview-bar { background: #b00020; color: #fff; text-align: center; font-size: 14px; padding: 6px 12px; position: sticky; top: 0; z-index: 50; }

/* ---------- 上（全部のページ共通）---------- */
.hp-head { max-width: var(--hp-max); margin: 0 auto; padding: 10px 16px 0; display: grid; column-gap: 32px;
           grid-template-columns: 183px minmax(0, 1fr); grid-template-areas: "logo title" "logo fac" "sns notice"; }
.hp-head-left, .hp-head-main { display: contents; }
.hp-logo { grid-area: logo; display: block; padding-top: 16px; text-decoration: none; }
.hp-logo img { width: 183px; height: auto; }
.hp-logo-text { font-family: var(--hp-font-head); color: var(--hp-org); font-size: 22px; }
.hp-sns { grid-area: sns; align-self: center; justify-self: center; list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.hp-sns a { display: inline-flex; width: 39px; height: 39px; align-items: center; justify-content: center; border-radius: 3px;
            background: var(--hp-primary); color: #fff; text-decoration: none; font-size: 11px; }
.hp-sns a.hp-sns-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 95%); }
.hp-sns a.hp-sns-facebook { background: #3b5998; }
.hp-sns a.hp-sns-facebook svg { width: 28px; height: 28px; margin-top: 6px; }
.hp-sns svg { width: 24px; height: 24px; }
.hp-title-row { grid-area: title; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 30px; min-height: 48px; }
.hp-org { font-family: var(--hp-font-head); font-weight: 400; font-size: 18px; letter-spacing: .1em; color: var(--hp-org);
          text-decoration: none; line-height: 1.3; white-space: nowrap; }
.hp-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--hp-font-head); font-size: 20px;
            letter-spacing: .28em; color: var(--hp-org); text-decoration: none; line-height: 1.2; white-space: nowrap; }
.hp-brand-pic img { width: 47px; height: 47px; object-fit: contain; }

/* 黄色の施設ボタン（左に施設名・真ん中に電話・右に小さく住所） */
.hp-fac { grid-area: fac; list-style: none; margin: 4px 0 0; padding: 0 6px 0 0; display: grid; gap: 10px; max-width: 721px; }
.hp-fac-btn { display: grid; grid-template-columns: 262px 188px minmax(0, 1fr); align-items: center; column-gap: 0;
              min-height: 45px; padding: 4px 10px 4px 12px; background: var(--hp-accent); box-shadow: var(--hp-accent-shadow);
              color: var(--hp-fac-link); line-height: 1.35; }
.hp-fac-name { color: var(--hp-fac-link); font-size: 17px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.hp-fac-tel { color: var(--hp-fac-link); font-size: 16px; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.hp-fac-addr { font-size: 10px; color: var(--hp-fac-link); font-weight: 400; }
a.hp-fac-name:hover, a.hp-fac-tel:hover { color: var(--hp-primary); }

/* お知らせ（働きやすい職場づくり）と PDF */
.hp-notice { grid-area: notice; display: flex; align-items: center; gap: 12px; margin: 34px 0 18px; padding-right: 26px; }
.hp-notice-text { flex: 1; font-size: 11.5px; line-height: 1.45; color: var(--hp-text); font-weight: 400; }
.hp-notice-text p { margin: 0; }
.hp-notice-pdf { flex: none; text-decoration: none; }

/* 書類の絵（PDF・Excel・Word） */
.hp-doc-ic { display: inline-flex; align-items: flex-start; justify-content: center; flex: none; width: 26px; height: 33px;
             background: #fff; border: 1px solid #c9c9c9; border-radius: 2px; position: relative; isolation: isolate;
             font: 700 7px/10px Arial, sans-serif; letter-spacing: .02em; color: #fff; overflow: hidden; }
.hp-doc-ic b { position: relative; z-index: 1; font-weight: 700; }
.hp-doc-ic::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: #e5432d; }
.hp-doc-ic::after { content: ""; position: absolute; left: 7px; top: 15px; width: 11px; height: 11px; border: 2px solid #e5432d;
                    border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.hp-doc-xlsx::before { background: #1f7a45; } .hp-doc-xlsx::after { border-color: #1f7a45; border-radius: 1px; transform: none; }
.hp-doc-docx::before { background: #2b5797; } .hp-doc-docx::after { border-color: #2b5797; border-radius: 1px; transform: none; }
.hp-doc-pptx::before { background: #c43e1c; }
.hp-doc-big { width: 37px; height: 48px; font-size: 9px; line-height: 14px; }
.hp-doc-big::before { height: 14px; }
.hp-doc-big::after { left: 10px; top: 22px; width: 15px; height: 15px; }

/* 紺のタブのメニュー（6つ同じ幅） */
.hp-nav-t, .hp-nav-open, .hp-nav-close { display: none; }
.hp-nav { max-width: 930px; margin: 0 auto 0; padding: 0; }
.hp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; box-shadow: 0 3px 5px rgba(0, 0, 0, .28); }
.hp-nav li { flex: 1 1 0; min-width: 0; }
.hp-nav li + li a { border-left: 1px solid rgba(0, 0, 0, .1); }
.hp-nav li a { display: flex; align-items: center; justify-content: center; height: 42px; padding: 0 6px; background: var(--hp-nav-bg);
               color: var(--hp-nav-text); text-decoration: none; font-family: "Helvetica Neue", Helvetica, var(--hp-font);
               font-size: 16px; font-weight: 300; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-nav li a:hover { filter: brightness(.96); }
.hp-nav li a[aria-current="page"] { background: var(--hp-nav-sel-bg); color: var(--hp-nav-sel-text); }

/* ---------- 中身 ---------- */
.hp-main { min-height: 50vh; padding: 40px 0 56px; overflow-x: clip; }
.hp-blocks > * + * { margin-top: 18px; }
.hp-h { font-family: var(--hp-font-head); font-weight: 400; color: var(--hp-org); line-height: 1.4; margin: 28px 0 8px; letter-spacing: .02em; }
.hp-h a { color: inherit; }
.hp-h-plain { font-family: var(--hp-font); letter-spacing: 0; }
.hp-h-plain a { text-decoration: none; }
.hp-h1 { font-size: 32px; }
.hp-h2 { font-size: 28px; }
.hp-h3 { font-size: 22px; }
.hp-sized { font-size: var(--fs); }
.hp-text p { margin: 0 0 .2em; }
.hp-text p:empty, .hp-text p:has(> br:only-child) { min-height: 1em; }
.hp-text blockquote { margin: 0; padding: 8px 16px; border-left: 4px solid var(--hp-accent); background: var(--hp-soft); }
.hp-image { margin: 0 auto; }
.hp-image img { margin: 0 auto; width: 100%; }
.hp-cropbox { display: block; position: relative; overflow: hidden; width: 100%; }
.hp-cropbox img { position: absolute; max-width: none; margin: 0; }
.hp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hp-gal-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hp-collage { display: block; columns: 2; column-gap: 0; }
.hp-collage .hp-gal-item { display: block; break-inside: avoid; }
.hp-collage .hp-gal-item img { aspect-ratio: auto; }
.hp-video, .hp-map { position: relative; aspect-ratio: 16 / 9; }
.hp-video iframe, .hp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hp-map { aspect-ratio: auto; height: 400px; }
.hp-map-card { margin: 0; }
.hp-map-card + .hp-map-card { margin-top: 36px; }
.hp-map-card figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-bottom: 8px; }
.hp-map-card figcaption strong { font-family: var(--hp-font-head); font-weight: 400; font-size: 22px; color: var(--hp-org); }
.hp-map-card figcaption span { font-size: 14px; }
.hp-video-file { position: relative; margin: 0 auto; }
.hp-video-file video { display: block; width: 100%; height: auto; object-fit: cover; background: #000; }
.hp-mute { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
           background: rgba(0, 0, 0, .45) no-repeat center / 20px; }
.hp-mute[hidden] { display: none; }
.hp-mute span { display: block; width: 100%; height: 100%; background: no-repeat center / 20px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 9l5 6M21 9l-5 6' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.hp-mute[aria-pressed="true"] span { background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='%23fff'/%3E%3Cpath d='M16 8a5 5 0 010 8M18.5 5.5a9 9 0 010 13'/%3E%3C/svg%3E"); }
.hp-insta iframe { width: 100%; max-width: 540px; height: 640px; border: 0; display: block; margin: 0 auto; }
.hp-btn-wrap { text-align: center; margin: 18px 0; }
.hp-btn { display: inline-block; min-width: 160px; padding: 10px 26px; border-radius: 999px; font-weight: 400; text-decoration: none; text-align: center; }
.hp-btn-yellow { background: var(--hp-accent); color: var(--hp-text); box-shadow: var(--hp-accent-shadow); border-radius: 0; }
.hp-btn-navy { background: var(--hp-primary); color: #fff; }
.hp-btn:hover { filter: brightness(1.06); }
.hp-cols { display: grid; gap: 28px; align-items: start; grid-template-columns: var(--cols, repeat(var(--n, 2), minmax(0, 1fr))); }
.hp-cols-pics { gap: 4px; }
.hp-blocks > .hp-cols.hp-cols-pics + .hp-cols.hp-cols-pics { margin-top: 4px; }
.hp-cols-pics .hp-image { max-width: none !important; }
.hp-cols-1 { --n: 1; } .hp-cols-2 { --n: 2; } .hp-cols-3 { --n: 3; } .hp-cols-4 { --n: 4; }
.hp-blocks > .hp-cols + .hp-cols { margin-top: 64px; }
.hp-fac-long { font-size: 13px; }
.hp-col > * + * { margin-top: 14px; }
.hp-col > .hp-h:first-child { margin-top: 0; }
.hp-spacer { height: 32px; }

/* PDF・書類（続けて並んだものは紺の地の一覧に） */
.hp-pdf { margin: 0; }
.hp-pdf a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; }
.hp-pdf a > span:not(.hp-doc-ic) { text-decoration: underline; text-underline-offset: 3px; }
.hp-doc-kind { font-size: 12px; text-decoration: none !important; opacity: .8; }
.hp-docs { background: var(--hp-primary); padding: 40px 12% 44px; margin-left: -16px; margin-right: -16px; }
.hp-docs .hp-pdf + .hp-pdf { margin-top: 9px; }
.hp-docs .hp-pdf a { color: #f7d35e; font-size: 16px; font-weight: 400; letter-spacing: .04em; }
.hp-docs .hp-pdf a:visited { color: #fff; }
.hp-docs .hp-pdf a > span:not(.hp-doc-ic) { text-decoration: none; }
.hp-docs .hp-pdf a:hover > span:not(.hp-doc-ic) { text-decoration: underline; }

/* 表（時間の表など） */
.hp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hp-table { border-collapse: collapse; width: auto; max-width: 100%; color: var(--hp-text); }
.hp-table tbody th { min-width: 250px; }
.hp-table th, .hp-table td { padding: 16px 10px; text-align: left; vertical-align: top; font-weight: 400; }
.hp-table thead th { font-size: 17px; letter-spacing: .08em; padding-bottom: 4px; white-space: nowrap; }
.hp-table tbody th { font-family: var(--hp-font-head); font-size: 26px; line-height: 1.35; color: var(--hp-org); white-space: nowrap; }
.hp-table td { font-size: 17px; white-space: nowrap; }
.hp-table td:nth-child(2) { font-family: var(--hp-font-head); font-size: 15px; }
.hp-table tbody tr + tr { border-top: 1px solid rgba(14, 60, 83, .12); }

/* 外へのリンクのカード（Facebook などの埋め込みの代わり） */
.hp-linkcard { margin: 18px 0; }
.hp-linkcard a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 18px; border: 1px solid #d5dbe0;
                 border-radius: 6px; background: rgba(255, 255, 255, .92); text-decoration: none; color: var(--hp-text); }
.hp-linkcard a:hover { border-color: var(--hp-primary); }
.hp-lc-tag { font-size: 12px; background: var(--hp-primary); color: #fff; padding: 1px 8px; border-radius: 3px; }
.hp-lc-label { font-weight: 400; text-decoration: underline; }
.hp-lc-host { font-size: 12px; color: var(--hp-muted); }

/* ブログ（横長のカード: 左に写真・右に日付・題名・抜き書き） */
.hp-blog { max-width: 980px; }
.hp-blog-tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0 0 22px; font-size: 14px; }
.hp-blog-tabs a { color: var(--hp-text); text-decoration: none; padding: 4px 0; }
.hp-blog-tabs a.on { color: var(--hp-primary); border-bottom: 2px solid var(--hp-primary); }
.hp-blog-intro { margin-bottom: 24px; }
.hp-cards { display: grid; gap: 34px; max-width: 940px; margin: 0 auto; }
.hp-card { display: grid; grid-template-columns: 454fr 486fr; min-height: 338px; text-decoration: none; color: inherit;
           border: 1px solid #e3e3e3; background: #fff; }
.hp-card:hover .hp-card-title { color: var(--hp-primary); }
.hp-card-img { background: var(--hp-soft); overflow: hidden; min-height: 200px; }
.hp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-card-body { padding: 26px 34px 24px; display: flex; flex-direction: column; }
.hp-card-date { font-size: 12px; color: var(--hp-muted); line-height: 1.5; }
.hp-card-title { font-family: var(--hp-font-head); font-size: 24px; line-height: 1.4; margin-top: 18px; color: #2b2b2b; }
.hp-card-ex { font-size: 15px; line-height: 1.6; margin: 12px 0 0; color: #3a3a3a; display: -webkit-box; -webkit-line-clamp: 3;
              -webkit-box-orient: vertical; overflow: hidden; }
.hp-chip { display: inline-block; font-size: 12px; padding: 1px 10px; border-radius: 999px; background: var(--hp-soft);
           color: var(--hp-primary); text-decoration: none; border: 1px solid #e3dfd2; line-height: 1.7; }
.hp-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.hp-pager a, .hp-pager span { padding: 4px 12px; border: 1px solid #ddd; text-decoration: none; background: #fff; }
.hp-pager .on { background: var(--hp-primary); color: #fff; border-color: var(--hp-primary); }
.hp-post { max-width: 760px; background: rgba(255, 255, 255, .94); padding: 36px 52px 32px; border: 1px solid #e3e3e3; }
.hp-post .hp-gallery { gap: 10px; }
.hp-crumb { font-size: 13px; color: var(--hp-muted); margin: 0; }
.hp-post-title { font-family: var(--hp-font-head); font-weight: 400; font-size: 32px; color: #2b2b2b; line-height: 1.45; margin: 10px 0 6px; }
.hp-post-meta { color: var(--hp-muted); font-size: 13px; display: flex; gap: 10px; align-items: center; margin: 0 0 22px; }
.hp-post .hp-text { font-size: 16px; color: #2b2b2b; }
.hp-cover { margin-bottom: 18px; }
.hp-post-wide { background: none; border-color: transparent; }
.hp-prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; border-top: 1px solid #eee; padding-top: 14px; }
.hp-prevnext a { text-decoration: none; font-size: 13px; max-width: 48%; }
.hp-prevnext a span { color: var(--hp-text); font-size: 14px; }
.hp-next { text-align: right; margin-left: auto; }
.hp-back { text-align: center; margin-top: 24px; }

/* 下（今のサイトは空。小さく法人名だけ） */
.hp-footer { padding: 18px 0 22px; font-size: 12px; color: var(--hp-muted); text-align: center; }
.hp-footer a { color: inherit; }
.hp-foot-text p { margin: 0 0 .4em; }
.hp-copy { opacity: .85; margin-top: 4px; }

/* ---------- 自由に動かせる区切り（canvas。homepage/canvas.py）----------
   PC（768px 以上）: 幅 1200 を基準にした設計の位置（--x・--y・--w・--h は %）。区切りの幅は画面に合わせて
   （1200 まで）、高さは縦横の比で決まる。字の大きさ（--fs は 1200 の幅のときの px）も幅に合わせて縮める。
   スマホ（767px まで）: 位置を外して、サーバーが並べた順（上から・段の中は左の列から）に縦に並べる。 */
.hp-canvas { position: relative; container-type: inline-size; width: min(1200px, 100vw);
             margin-left: calc(50% - min(600px, 50vw)); margin-right: 0; background-size: cover; background-position: center; }
.hp-canvas.hp-cv-tile { background-size: auto; background-repeat: repeat; }
.hp-blocks > .hp-canvas { margin-top: 0; }
.hp-blocks > .hp-canvas + :not(.hp-canvas) { margin-top: 18px; }
.hp-cv { position: relative; width: 100%; aspect-ratio: 1200 / var(--cvh); }
.hp-ci { --u: calc(100cqw / 1200); position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
         transform: rotate(var(--rot, 0deg)); box-sizing: border-box; overflow-wrap: anywhere; }
.hp-ci-text, .hp-ci-heading, .hp-ci-button { font-size: calc(var(--fs) * 1px); font-size: calc(var(--fs) * var(--u)); }
.hp-ct { line-height: var(--lh, 1.75); }
.hp-ct p { margin: 0 0 .2em; }
.hp-ct p:empty, .hp-ct p:has(> br:only-child) { min-height: 1em; }
.hp-ct ul, .hp-ct ol { margin: 0 0 .2em; padding-left: 1.4em; }
.hp-ct blockquote { margin: 0; padding: 8px 16px; border-left: 4px solid var(--hp-accent); background: var(--hp-soft); }
.hp-ci-heading { color: var(--hp-org); }
.hp-ch { font-family: var(--hp-font-head); font-weight: inherit; font-size: inherit; color: inherit; line-height: var(--lh, 1.4);
         margin: 0; letter-spacing: inherit; }
.hp-ci-heading { letter-spacing: .02em; }
.hp-ci-heading { font-weight: 400; }
.hp-ch a { color: inherit; }
.hp-cfill { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hp-ci-image, .hp-ci-video, .hp-ci-embed { overflow: hidden; }
.hp-ci-image img { width: 100%; height: 100%; max-width: none; }
.hp-ci-image img.hp-cfit-cover { object-fit: cover; }
.hp-ci-image img.hp-cfit-contain { object-fit: contain; }
.hp-ccrop { position: absolute; inset: 0; overflow: hidden; display: block; }
.hp-ccrop img { position: absolute; max-width: none; margin: 0; }
.hp-ci-video .hp-video-file { margin: 0; max-width: none !important; }
.hp-ci-video video { width: 100%; height: 100% !important; object-fit: cover; aspect-ratio: auto !important; }
.hp-cbtn { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; padding: 0 .8em;
           font-size: inherit; line-height: 1.2; text-align: center; }
.hp-shape-ellipse { border-radius: 50% !important; }
.hp-ci-shape { background-color: #d9d9d9; }
.hp-shape-line { background-color: #c8c8c8; }
/* 施設のボタン（名前・電話・住所を横に。今の .hp-fac-btn と同じ寸法を 1200 の幅の割合で） */
.hp-cbtn.hp-cfac { display: grid; grid-template-columns: calc(262 * var(--u)) calc(188 * var(--u)) minmax(0, 1fr);
                   align-items: center; justify-content: stretch; text-align: left; line-height: 1.35;
                   padding: calc(4 * var(--u)) calc(10 * var(--u)) calc(4 * var(--u)) calc(12 * var(--u)); color: var(--hp-fac-link); }
.hp-cfac-name { color: var(--hp-fac-link); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; min-width: 0;
                white-space: nowrap; overflow: hidden; text-overflow: clip; }   /* 名前は折り返さず 1 行（長いときは字を小さくする） */
.hp-cfac-long { font-size: .765em; }
.hp-cfac-xlong { font-size: .62em; }                     /* 14 字をこえる名前（例: 就労継続支援・生活介護・五社駅徒歩1分） */
.hp-cfac-tel { color: var(--hp-fac-link); font-size: .94em; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.hp-cfac-addr { font-size: .59em; font-weight: 400; min-width: 0; }
a.hp-cfac-name:hover, a.hp-cfac-tel:hover { color: var(--hp-primary); }
/* 欄の数が 3 つでない施設ボタン（fields。3 つは上の今の列のまま）: 名前の列を広く・ほかは分け合う。はみ出さず・重ならない */
.hp-cfac-n1 { grid-template-columns: minmax(0, 1fr) !important; }
.hp-cfac-n2 { grid-template-columns: calc(262 * var(--u)) minmax(0, 1fr) !important; }
.hp-cfac-nx { grid-template-columns: calc(262 * var(--u)) calc(188 * var(--u)) repeat(var(--more), minmax(0, 1fr)) !important; column-gap: calc(8 * var(--u)); }
.hp-cfac-n1 .hp-cfac-addr, .hp-cfac-n2 .hp-cfac-addr, .hp-cfac-nx .hp-cfac-addr { overflow: hidden; overflow-wrap: anywhere; }
.hp-cfac-nx .hp-cfac-tel { overflow: hidden; text-overflow: clip; }
.hp-cfac-brk { overflow-wrap: anywhere; word-break: break-all; }       /* 長いメール・アドレスは、枠の中で折り返す */
.hp-cfac-lab { font-size: .85em; opacity: .75; margin-right: .4em; }
.hp-cfac-sz { font-size: calc(var(--ffs) * 1px); font-size: calc(var(--ffs) * var(--u)); }
a.hp-cfac-addr { color: var(--hp-fac-link); text-decoration: underline; text-underline-offset: 2px; }
a.hp-cfac-addr:hover { color: var(--hp-primary); }
/* 上の部分（全ページ共通。homepage/header.py）の SNS・書類の絵とメニュー */
.hp-cicon { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 3px;
            color: #fff; text-decoration: none; background: var(--hp-primary); }
.hp-cicon svg { width: 62%; height: 62%; display: block; }
.hp-cicon-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 95%); }
.hp-cicon-facebook { background: #3b5998; }
.hp-cicon-facebook svg { width: 72%; height: 72%; margin-top: 15%; }
.hp-cicon-youtube { background: #e62117; }
.hp-cicon-x { background: #111; }
.hp-cicon-line { background: #06c755; }
.hp-cicon-pdf { background: none; border-radius: 0; }
.hp-cicon-pdf svg { width: 100%; height: 100%; }
.hp-ci-nav { font-size: calc(var(--fs) * 1px); font-size: calc(var(--fs) * var(--u)); }
.hp-ci-nav .hp-cnav { max-width: none; margin: 0; height: 100%; }
.hp-ci-nav .hp-cnav ul { height: 100%; }
.hp-ci-nav .hp-cnav li a { height: 100%; font-size: inherit; }
.hp-cnav-word { display: none; }
.hp-header-cv { position: relative; }
.hp-hcv .hp-ch a { text-decoration: none; }
.hp-hcv .hp-ct p { margin: 0; }
.hp-cbtn.hp-cfac { font-weight: 300; }
.hp-cfac-name { font-weight: 400; }
.hp-cbtn.hp-cfac .hp-cfac-b { font-weight: 700; }
/* 部品を出す画面（canvas.py の show）: パソコンだけ／スマホだけ */
@media (min-width: 768px) { .hp-only-sp { display: none !important; } }
@media (max-width: 767.98px) { .hp-only-pc { display: none !important; } }
@media (max-width: 767.98px) {
  .hp-canvas { width: auto; margin-left: -16px; margin-right: -16px; padding: 18px 16px; }
  /* 上の部分: 部品を上から並べ、小さな絵（SNS・PDF・虹の絵）は横に並べる。メニューはいちばん上の「メニュー」ボタン */
  .hp-canvas.hp-hcv { margin: 0; padding: 8px 12px 10px; container-type: normal; }
  .hp-hcv .hp-cv { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
  .hp-hcv .hp-ci-image { width: min(140px, calc(var(--pw) * 1px)); }
  .hp-hcv .hp-ci-icon { width: calc(min(var(--pw), 40) * 1px); height: auto; aspect-ratio: var(--ar); }
  .hp-hcv .hp-ci-heading { width: auto; max-width: 100%; text-align: center; font-size: clamp(14px, calc(var(--fs) * .8px), 22px); }
  .hp-hcv .hp-ci-text { font-size: clamp(10px, calc(var(--fs) * .85px), 16px); }
  .hp-hcv .hp-ci-nav { order: -1; height: auto; }
  .hp-hcv .hp-ci-button { width: 100%; }
  .hp-cbtn.hp-cfac { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "name tel" "name addr"; column-gap: 10px;
                     padding: 6px 10px; box-shadow: none; }
  .hp-cfac-name { grid-area: name; font-size: 13px; white-space: normal; }
  .hp-cfac-tel { grid-area: tel; font-size: 14px; }
  .hp-cfac-addr { grid-area: addr; font-size: 10px; }
  .hp-cfac-n1 { grid-template-columns: minmax(0, 1fr) !important; }
  .hp-cfac-n2, .hp-cfac-nx { grid-template-columns: 104px minmax(0, 1fr) !important; grid-template-areas: none; }
  .hp-cfac-n1 .hp-cfac-name { grid-area: auto; }
  .hp-cfac-n2 .hp-cfac-name, .hp-cfac-nx .hp-cfac-name { grid-area: auto; grid-column: 1; grid-row: 1 / span var(--rest); }
  .hp-cfac-n2 .hp-cfac-tel, .hp-cfac-n2 .hp-cfac-addr, .hp-cfac-nx .hp-cfac-tel, .hp-cfac-nx .hp-cfac-addr { grid-area: auto; grid-column: 2; }
  .hp-cfac-sz { font-size: clamp(10px, calc(var(--ffs) * .8px), 16px); }
  .hp-post .hp-canvas { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .hp-cv { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; }
  .hp-ci { position: relative; left: auto; top: auto; width: 100%; height: auto; transform: none; z-index: auto !important; }
  .hp-m-drop { display: none; }
  .hp-m-bg { background: var(--mbg) !important; padding: 12px 14px; border-radius: 6px; }
  .hp-ci-text { font-size: clamp(14px, calc(var(--fs) * .85px), 26px); }
  .hp-ci-heading { font-size: clamp(19px, calc(var(--fs) * .62px), 34px); }
  .hp-ci-button { font-size: 15px; width: min(100%, max(160px, calc(var(--pw) * 1px))); height: auto; min-height: 46px;
                  display: flex; margin: 0 auto; }
  .hp-ci-button .hp-cbtn { position: static; padding: 10px 18px; }
  .hp-ci-image { width: min(100%, calc(var(--pw) * 1px)); aspect-ratio: var(--ar); margin: 0 auto; }
  .hp-ci-video { aspect-ratio: var(--ar); }
  .hp-ci-embed { height: min(320px, calc(var(--ph) * 1px)); }
  .hp-ci-shape { width: min(100%, calc(var(--pw) * 1px)); aspect-ratio: var(--ar); max-height: 240px; margin: 0 auto; }
  .hp-shape-line { width: 100%; aspect-ratio: auto; height: max(1px, min(12px, calc(var(--ph) * 1px))); }
}

/* ---------- 少し狭い画面（タブレット）---------- */
@media (max-width: 1000px) {
  .hp-head { grid-template-columns: 140px minmax(0, 1fr); column-gap: 20px; }
  .hp-logo img { width: 140px; }
  .hp-fac-btn { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr); }
  .hp-nav { margin: 0 16px; }
}

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .hp-head { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 10px; padding: 8px 12px 0;
             grid-template-areas: "burger title sns" "fac fac fac" "notice notice notice"; }
  .hp-logo { display: none; }
  .hp-nav-open { grid-area: burger; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
                 background: #0d3d56; border-radius: 3px; cursor: pointer; align-self: center; }
  .hp-burger, .hp-burger::before, .hp-burger::after { display: block; width: 24px; height: 3px; background: #fff; border-radius: 2px; position: relative; }
  .hp-burger::before, .hp-burger::after { content: ""; position: absolute; left: 0; }
  .hp-burger::before { top: -8px; } .hp-burger::after { top: 8px; }
  .hp-title-row { flex-direction: column; align-items: flex-start; gap: 0; min-height: 0; }
  .hp-org { font-size: 10px; letter-spacing: .12em; }
  .hp-brand { font-size: 15px; gap: 6px; letter-spacing: .25em; }
  .hp-brand-pic img { width: 26px; height: 26px; }
  .hp-sns { gap: 6px; }
  .hp-sns a { width: 34px; height: 34px; }
  .hp-sns svg { width: 20px; height: 20px; }
  .hp-fac { max-width: none; gap: 6px; margin-top: 12px; padding: 0 4px; }
  .hp-fac-btn { background: none; box-shadow: none; padding: 0; min-height: 0; column-gap: 10px;
                grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "name tel" "name addr"; }
  .hp-fac-name { grid-area: name; font-size: 12px; align-self: center; }
  .hp-fac-tel { grid-area: tel; font-size: 14px; }
  .hp-fac-addr { grid-area: addr; font-size: 9px; }
  .hp-notice { margin: 14px 0 6px; padding-right: 0; }
  .hp-notice-text { font-size: 9.5px; }
  /* メニューは左から出す */
  .hp-nav { display: none; position: fixed; inset: 0 auto 0 0; width: min(82vw, 320px); z-index: 60; margin: 0;
            background: #0d3d56; padding: 56px 0 20px; overflow-y: auto; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .hp-nav-t:checked ~ .hp-nav { display: block; }
  .hp-nav-close { display: flex; position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; align-items: center;
                  justify-content: center; color: #fff; font-size: 28px; cursor: pointer; }
  .hp-nav ul { display: block; box-shadow: none; }
  .hp-nav li + li a { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
  .hp-nav li a { background: none; color: #fff; justify-content: flex-start; padding: 0 24px; height: 50px; font-size: 16px; }
  .hp-nav li a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }
  .hp-main { padding-top: 22px; }
  .hp-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hp-cols-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .hp-blocks > .hp-cols + .hp-cols { margin-top: 30px; }
  .hp-h1 { font-size: 24px; } .hp-h2 { font-size: 22px; } .hp-h3 { font-size: 19px; }
  .hp-h.hp-sized { font-size: max(19px, calc(var(--fs) * .62)); }
  .hp-text.hp-sized { font-size: max(14px, calc(var(--fs) * .8)); }
  .hp-btn { min-width: 0; }
  .hp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .hp-collage { columns: 2; }
  .hp-map { height: 300px; }
  .hp-docs { padding: 26px 18px; }
  .hp-docs .hp-pdf a { font-size: 13px; }
  /* 表はスマホでは行ごとのまとまりにする（施設の名前は値の上に小さく） */
  .hp-table, .hp-table tbody, .hp-table tr { display: block; width: 100%; }
  .hp-table thead { display: none; }
  .hp-table tbody tr { padding: 10px 0 12px; }
  .hp-table tbody th { display: block; min-width: 0; font-size: 19px; white-space: normal; padding: 0 0 6px; }
  .hp-table td { display: inline-block; vertical-align: top; padding: 0 14px 4px 0; font-size: 14px; }
  .hp-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--hp-muted); }
  .hp-table td:nth-child(2) { display: block; font-size: 13px; white-space: normal; }
  .hp-card { grid-template-columns: 1fr; min-height: 0; }
  .hp-card-img { aspect-ratio: 4 / 3; }
  .hp-card-body { padding: 16px 18px 18px; }
  .hp-card-title { font-size: 20px; margin-top: 8px; }
  .hp-post-title { font-size: 24px; }
  .hp-post { padding: 18px 16px 24px; border-width: 1px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-video-file video { animation: none; }
}

/* 上の部分のメニュー（スマホ）: 今と同じ、押すと左から出るたたむメニュー */
@media (max-width: 760px) {
  .hp-hcv .hp-ci-nav .hp-nav-open { display: flex; gap: 10px; align-items: center; justify-content: center; width: auto; height: 44px;
                                     padding: 0 16px; background: #0d3d56; color: #fff; border-radius: 3px; cursor: pointer; font-size: 15px; }
  .hp-hcv .hp-ci-nav .hp-cnav-word { display: inline; }
  .hp-hcv .hp-ci-nav .hp-cnav { height: auto; }
  .hp-hcv .hp-ci-nav .hp-cnav ul { height: auto; }
  .hp-hcv .hp-ci-nav .hp-cnav li a { height: 50px; font-size: 16px; }
}
