/* ============================================================
   shj テーマ
   新宮・東牟婁圏域自立支援協議会就労部会のための専用テーマ。

   版面: 幅 1200px の .wrap を基準にする。文章の折り返しは列の幅で決まり、
         文章のブロックだけに幅の上限を付けない。
   色  : 松葉色（--pine）を主に、淡い生成りの地と、ロゴから取った山吹（--sun）を
         小さな印にだけ使う。ライトのみ。
   地紋: 熊野の山から海へ続く土地を思わせる等高線を、帯と足元に薄く敷く。
   動き: マウスを重ねたときの色と矢印の移動だけ。表示時のアニメーションは入れない。
   ============================================================ */

:root {
  --ink: #1d2b26;
  --ink-2: #47564f;
  --ink-3: #5f6e67;
  --line: #e3e5db;
  --line-strong: #cdd2c5;
  --ground: #f7f5ee;
  --ground-2: #efede2;
  --white: #fff;
  --pine: #1f5a49;
  --pine-deep: #163f34;
  --pine-tint: #e6efe9;
  --sun: #e8b13f;
  --sun-tint: #fbf0d3;
  --focus: #b35c00;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-large: 22px;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgb(29 43 38 / .025), 0 8px 20px -14px rgb(29 43 38 / .10);
  --section: clamp(60px, 8vw, 112px);
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

p, li, dd { text-wrap: pretty; }

h1, h2, h3, h4, h5, h6 {
  font-feature-settings: "palt";
  letter-spacing: .03em;
  word-break: auto-phrase;
}

a { color: var(--pine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius-small);
  background: var(--white);
}
.skip-link:focus { top: 8px; }

[hidden] { display: none !important; }
.site-header, .site-footer { flex-shrink: 0; }
.site-main { flex: 1; display: flex; flex-direction: column; }
.site-main > * { flex-shrink: 0; }
.site-main > .page-grid, .site-main > .page-single, .site-main > .office-list-page { flex: 1 0 auto; }
.page-grid { align-items: start; }
.site-main:focus { outline: none; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
  vertical-align: -.2em;
}

/* 矢印はマウスを重ねると少し進む */
a .icon[data-icon="arrow-right"] { transition: transform .18s ease; }
a:hover .icon[data-icon="arrow-right"] { transform: translateX(3px); }

/* ---- ヘッダー ---------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 30;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 56px; height: 56px; flex: none; }
.brand-text { display: grid; gap: 1px; line-height: 1.3; font-feature-settings: "palt"; }
.brand-sub { font-size: 12.5px; font-weight: 500; letter-spacing: .05em; color: var(--ink-2); }
.brand-main { font-size: 23px; font-weight: 700; letter-spacing: .1em; }

.site-tools { display: flex; align-items: center; gap: 16px; }

.header-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-nav a {
  position: relative;
  display: block;
  padding: 10px 13px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--pine); }
.header-nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background-color .15s;
}
.header-nav a:hover::after { background: var(--line-strong); }
.header-nav a[aria-current] { color: var(--pine); }
.header-nav a[aria-current]::after { background: var(--sun); }

.header-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ground);
  box-shadow: inset 0 0 0 1px var(--line);
}
.header-search:focus-within { box-shadow: inset 0 0 0 1px var(--pine); outline: 3px solid var(--focus); outline-offset: 2px; }
.header-search input {
  width: 118px;
  min-width: 0;
  padding: 8px 0 8px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: var(--ink-2); opacity: 1; }
.header-search button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pine);
  font-size: 17px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* ---- ボタン・リンク ----------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid var(--pine);
  border-radius: 999px;
  background: var(--pine);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.button:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--white); }
.button-quiet { background: transparent; color: var(--pine); }
.button-quiet:hover { background: var(--pine-tint); border-color: var(--pine); color: var(--pine-deep); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

.more-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 20px;
  border: 1px solid var(--pine);
  border-radius: 999px;
  background: var(--white);
  color: var(--pine);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.more-button:hover { background: var(--pine); color: var(--white); }

.text-link { font-weight: 500; }

.tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--pine);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .03em;
  font-feature-settings: "palt";
}
.tag-quiet { background: var(--pine-tint); color: var(--pine-deep); }

.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 2px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}
.link-list a .icon { color: var(--pine); }
.link-list a:hover { color: var(--pine); }
.link-list a[aria-current] { color: var(--pine); font-weight: 700; }

/* ---- トップ: 最初の画面 ------------------------------------------- */
/* 写真の下側を、生成りの地から白い地へはみ出させる。flow-root は負のマージンを帯の中で効かせるため */
.hero {
  position: relative;
  display: flow-root;
  padding-top: clamp(40px, 5.6vw, 80px);
  background: var(--ground);
  isolation: isolate;
}
.hero::before, .band::before, .site-footer::before, .home-about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/contour-light.svg") right top / 1500px auto no-repeat;
  -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 78%);
  mask-image: linear-gradient(to left, #000 25%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { display: flow-root; }
.hero-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: end;
  gap: 20px clamp(32px, 5vw, 72px);
}
.hero-title {
  margin: 0;
  font-size: clamp(30px, 3.75vw, 50px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .035em;
}
.hero-mark {
  background: linear-gradient(transparent 72%, var(--sun-tint) 72%, var(--sun-tint) 96%, transparent 96%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lead {
  margin: 0 0 .5em;
  font-size: clamp(16px, 1.3vw, 17.5px);
  color: var(--ink-2);
}
/* 写真は高さをずらして並べ、帯の下へはみ出させる */
.hero-photos {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1.22fr 1fr 1.18fr;
  align-items: start;
  gap: 14px;
  margin: clamp(28px, 3.6vw, 48px) 0 -72px;
  padding: 0;
  list-style: none;
}
.hero-photos li:nth-child(2) { margin-top: 36px; }
.hero-photos li:nth-child(3) { margin-top: 10px; }
.hero-photos li:nth-child(4) { margin-top: 48px; }
.hero-photos li:nth-child(5) { margin-top: 20px; }
.hero-photos a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-large);
  color: var(--white);
  text-decoration: none;
}
.hero-photos img, .hero-photo-placeholder {
  display: block;
  width: 100%;
  height: clamp(230px, 24vw, 330px);
  object-fit: cover;
}
.hero-photo-placeholder { background: var(--pine-tint) url('/assets/contour-light.svg') center / cover; }
.hero-photos noscript img { position: absolute; inset: 0; }
.hero-photo-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 1px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / .94);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .03em;
  font-feature-settings: "palt";
}
.hero-photos a:hover .hero-photo-label { color: var(--pine); }

/* ---- トップ: 用件から探す ----------------------------------------- */
.home-tasks { padding-top: calc(72px + clamp(28px, 3.2vw, 44px)); }
.task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  list-style: none;
}
.task-list li + li { box-shadow: -1px 0 0 var(--line); }
.task-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: clamp(20px, 2vw, 28px);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s;
}
.task-list a:hover { background: var(--ground); color: var(--ink); }
.task-list a > .icon { color: var(--pine); }
.task-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pine-tint);
  color: var(--pine);
  font-size: 22px;
}
.task-text { display: grid; gap: 3px; min-width: 0; }
.task-title { font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .03em; font-feature-settings: "palt"; }
.task-desc { font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* ---- トップ: 区画の共通 ------------------------------------------- */
.home-section { position: relative; padding-block: var(--section); isolation: isolate; }
.section-title {
  margin: 0 0 16px;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.45;
}
.section-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: baseline;
  gap: 8px clamp(32px, 5vw, 72px);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head .section-title { margin: 0; }
.section-lead { margin: 0; color: var(--ink-2); }
.group-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--pine);
}

/* ---- トップ: 事業所を探す ----------------------------------------- */
.home-find { padding-top: clamp(52px, 6vw, 84px); }
.town-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.town-card {
  display: grid;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}
.town-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  border-radius: var(--radius);
  object-fit: cover;
}
.town-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}
.town-name .icon { color: var(--pine); }
.town-card:hover { color: var(--ink); }
.town-card:hover .town-name { color: var(--pine); }
.town-offices { font-size: 14px; line-height: 1.75; color: var(--ink-2); word-break: auto-phrase; }
.type-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(28px, 3vw, 40px);
  padding: 16px 24px;
  border-radius: var(--radius);
  background: var(--ground);
}
.type-links-title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .05em; color: var(--pine); }
.type-links ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.type-links li a {
  display: block;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.type-links li a:hover { background: var(--pine); color: var(--white); box-shadow: none; }
.type-links .office-directory-actions { margin: 0; }
.type-links .more-link { margin-left: auto; }

/* ---- トップ: お知らせと相談 --------------------------------------- */
.home-news { background: var(--ground); }
.news-grid {
  display: grid;
  grid-template-columns: 7.2fr 4.8fr;
  align-items: start;
  gap: 32px clamp(32px, 4.5vw, 64px);
}
.heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.consult-card {
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow);
}
.consult-label {
  display: inline-block;
  margin: 0 0 10px !important;
  padding: 1px 12px;
  border-radius: 999px;
  background: var(--sun-tint);
  color: #6b4d00;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.75 !important;
  letter-spacing: .04em;
}
.consult-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.consult-card p { margin: 0 0 14px; font-size: 16px; line-height: 1.8; }
.consult-card p:last-child { margin-bottom: 0; }
.consult-card .consult-name { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; line-height: 1.6; }
.contact-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pine);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
}
.consult-card .contact-tel { margin-bottom: 2px; font-size: 30px; line-height: 1.4; }
.contact-tel a { color: inherit; text-decoration: none; }
.contact-tel a:hover { text-decoration: underline; }
.consult-card .consult-note { font-size: 14px; color: var(--ink-2); }

/* ---- お知らせの一覧（トップと一覧ページ） --------------------------- */
.news-list { margin: 0; padding: 0; list-style: none; }
.news-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.news-row:last-child { border-bottom: 1px solid var(--line); }
.news-row > .icon { color: var(--pine); transition: transform .18s ease; }
.news-row:hover > .icon { transform: translateX(3px); }
.home-news .news-row, .home-news .news-row:last-child { border-color: var(--line-strong); }
.news-text { flex: 1; min-width: 0; }
.news-text time { display: block; font-size: 14px; line-height: 1.7; color: var(--ink-3); letter-spacing: .02em; }
.news-title { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.65; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a::after { content: ""; position: absolute; inset: 0; }
.news-row:hover .news-title a { color: var(--pine); text-decoration: underline; }
.news-desc { margin: 4px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.news-thumb {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-small);
  object-fit: cover;
}
.news-empty { color: var(--ink-2); }

/* 広い画面では日付と題名を横に並べる */
@media (min-width: 720px) {
  .news-list-compact .news-text {
    display: grid;
    grid-template-columns: 9em 1fr;
    align-items: baseline;
    gap: 16px;
  }
  .news-list-compact .news-text time { font-size: 15px; }
}

/* ---- トップ: 共同受注 --------------------------------------------- */
.jobs-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px clamp(32px, 5vw, 72px);
}
.jobs-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 820px;
  border-radius: var(--radius-large);
  object-fit: cover;
}
.jobs-body > p { margin: 0 0 24px; }
.jobs-body > p:last-child { margin-bottom: 0; }
.job-list { margin: 0 0 28px; padding: 0; list-style: none; }
.job-list li { border-top: 1px solid var(--line); }
.job-list li:last-child { border-bottom: 1px solid var(--line); }
.job-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
  color: var(--ink);
  text-decoration: none;
}
.job-list a > .icon { margin-left: auto; color: var(--pine); }
.job-list img {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-small);
  object-fit: cover;
}
.job-text { display: grid; min-width: 0; }
.job-label { font-weight: 700; line-height: 1.6; letter-spacing: .03em; font-feature-settings: "palt"; }
.job-detail { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.job-list a:hover .job-label { color: var(--pine); text-decoration: underline; }

/* ---- トップ: 就労部会とは ----------------------------------------- */
.home-about { background: var(--ground); overflow: clip; }
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px clamp(32px, 5vw, 72px);
}
.about-body p { margin: 0 0 16px; }
.about-body .group-title { margin-top: 24px; }
.member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.member-list li {
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  line-height: 1.7;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px !important;
  margin-bottom: 0 !important;
}
.about-agenda {
  align-self: start;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow);
}
.agenda-list { margin: 0; padding: 0; list-style: none; }
.agenda-list li {
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.8;
}
.agenda-list li:last-child { padding-bottom: 0; }

/* ---- 下層ページの帯 ----------------------------------------------- */
.band {
  position: relative;
  padding-block: 22px clamp(32px, 3.8vw, 48px);
  background: var(--ground);
  isolation: isolate;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 clamp(14px, 1.8vw, 24px);
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.7;
}
.crumbs li { color: var(--ink-2); }
.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 8px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }
.band-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.band-title {
  margin: 0;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.42;
}
.band-meta { margin: 8px 0 0; font-size: 16px; color: var(--ink-2); }

/* ---- 下層ページの版面（本文＋右の案内） ----------------------------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px clamp(40px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 64px) var(--section);
}
.page-single { padding-block: clamp(36px, 5vw, 64px) var(--section); }
.page-side { display: grid; align-content: start; gap: 32px; }
.side-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.side-subtitle {
  margin: 22px 0 2px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--pine);
}
.side-nav .link-list a { min-height: 44px; padding-block: 8px; font-size: 15px; }
.side-card {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--ground);
}
.side-card .contact-tel { margin: 0 0 14px; font-size: 24px; }
.contact-list { margin: 0; padding-top: 12px; border-top: 1px solid var(--line-strong); font-size: 15px; line-height: 1.7; }
.contact-list:empty { display: none; }
.contact-list > div + div { margin-top: 10px; }
.contact-list dt { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.contact-list dd { margin: 0; }

.entry-updated { margin: 40px 0 0; font-size: 14px; color: var(--ink-3); }
.back-link { margin: 40px 0 0; }
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.entry-body + .chip-list { margin: 32px 0 0; }
.chip {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--pine-tint);
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
}
.chip:hover { text-decoration: underline; }

/* ---- 事業所案内（一覧） ------------------------------------------- */
.office-filters {
  margin-bottom: 36px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-large);
  background: var(--ground);
}
.office-filter-hint { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }
.office-filter-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.office-filter-row + .office-filter-row { margin-top: 16px; }
.office-filter-label { padding-block: 8px; font-weight: 700; }
.office-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.office-filter-button, .office-filter-clear {
  min-height: 44px;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}
.office-filter-button:hover { border-color: var(--pine); color: var(--pine-deep); }
.office-filter-button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--white); }
.office-filter-button[aria-pressed="true"]::before { content: '✓'; margin-right: 6px; }
.office-filter-button:disabled, .office-filter-clear:disabled { opacity: .45; cursor: default; }
.office-filter-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.office-filter-count { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.office-filter-clear { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.office-filter-clear:hover:not(:disabled) { color: var(--pine); }
.office-filter-empty { padding: 24px; border-radius: var(--radius); background: var(--ground); }
[data-office-section] + [data-office-section] { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 600px) {
  .office-filter-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .office-filter-label { padding: 0; }
}
.office-list-page { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.office-section-title {
  margin: clamp(40px, 5vw, 72px) 0 0;
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.45;
}
.office-section-title:first-child { margin-top: 0; }
.office-group { scroll-margin-top: 72px; }
.office-group + .office-group { margin-top: clamp(40px, 5vw, 64px); }
.office-section-title + .office-group { margin-top: 20px; }
.office-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--pine);
}
.office-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.office-cards { display: grid; gap: 20px; }

.office-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.office-card-photo {
  position: relative;
  display: block;
  min-height: 300px;
  background: var(--ground-2);
  overflow: hidden;
}
.office-card-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.office-card-photo:hover img { transform: scale(1.025); }
/* 写真のない事業所は、地模様の面にする */
.office-card-photo.is-empty { background: var(--ground) url("/assets/contour-light.svg") 70% 40% / 1100px auto no-repeat; }
.office-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.8vw, 36px);
}
.office-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.office-card-title {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1.45;
}
.office-card-title a { color: var(--ink); text-decoration: none; }
.office-card-title a:hover { color: var(--pine); text-decoration: underline; text-decoration-thickness: 2px; }
.office-card-company { margin: 2px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.office-card-summary { margin: 10px 0 0; font-size: 15.5px; line-height: 1.8; }
.office-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.7;
}
.office-card-facts > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; }
.office-card-facts > .is-wide { grid-column: 1 / -1; }
.office-card-facts dt { font-weight: 500; color: var(--ink-3); }
.office-card-facts dd { margin: 0; }
.office-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 18px;
}
.office-card-contact { display: grid; gap: 1px; min-width: 0; }
.office-card-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pine);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
  text-decoration: none;
}
.office-card-tel:hover { text-decoration: underline; }
.office-card-map {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
  text-decoration: none;
}
.office-card-map:hover { color: var(--pine); text-decoration: underline; }
.office-card-map .icon { align-self: center; color: var(--pine); }

.office-more { margin-top: clamp(48px, 6vw, 80px); padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius-large); background: var(--ground); }
.office-more-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.office-more ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.office-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
}
.office-more a .icon { color: var(--pine); }
.office-more a:hover { color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }

/* ---- 事業所の詳細 ------------------------------------------------- */
.office-top { display: grid; gap: 14px; }
.office-lead { display: block; overflow: hidden; border-radius: var(--radius-large); background: var(--ground-2); }
.office-lead img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.office-top.is-small { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: stretch; }
.office-top.is-small .office-lead img { height: 100%; aspect-ratio: 4 / 3; }
.office-top.is-small .office-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.office-top.is-small .office-facts > div { display: flex; flex-direction: column; justify-content: center; }
.office-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
}
.office-facts > div { padding: 12px 18px; border-radius: var(--radius-small); background: var(--ground); }
.office-facts dt { font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: var(--pine); }
.office-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; line-height: 1.6; }
.office-block { margin-top: clamp(36px, 4vw, 52px); }
.office-block-title, .entry-body h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.5;
}
.office-block-title::after, .entry-body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--pine);
}
.office-intro p { margin: 0 0 .9em; }
.office-intro ul { margin: 0 0 .9em; padding-left: 1.4em; }
.office-intro > :last-child { margin-bottom: 0; }
.work-list { margin: 0; padding-left: 1.4em; }
.work-list li { margin-bottom: .25em; }
.office-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.office-photos a { display: block; overflow: hidden; border-radius: var(--radius-small); }
.office-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.office-photos a:hover img { transform: scale(1.03); }
.office-photo-caption { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.info-list { margin: 0; font-size: 16px; line-height: 1.75; }
.info-list > div {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 16px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}
.info-list > div:first-child { padding-top: 0; }
.info-list dt { font-size: 14.5px; font-weight: 500; color: var(--ink-3); }
.info-list dd { margin: 0; }
.office-map { margin-top: 20px; overflow: hidden; border-radius: var(--radius); background: var(--ground-2); }
.office-map iframe { display: block; width: 100%; height: 340px; border: 0; }
.office-map-link { margin: 8px 0 0; font-size: 15px; }
@media (min-width: 1061px) {
  .office-page .side-card { position: sticky; top: 20px; }
}

/* ---- 本文 --------------------------------------------------------- */
.entry-body > :first-child { margin-top: 0; }
.entry-body h2 { margin: 2.2em 0 .9em; scroll-margin-top: 16px; }
.entry-body h3 {
  margin: 2em 0 .6em;
  color: var(--pine);
  font-size: clamp(19px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.55;
  scroll-margin-top: 16px;
}
.entry-body h4 {
  margin: 1.8em 0 .5em;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  scroll-margin-top: 16px;
}
.entry-body h5, .entry-body h6 { margin: 1.6em 0 .4em; font-size: 17px; font-weight: 700; line-height: 1.6; }
.entry-body p { margin: 0 0 1.1em; }
.entry-body p:empty, .entry-body > br { display: none; }
.entry-body ul, .entry-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry-body li { margin-bottom: .3em; }
.entry-body li > ul, .entry-body li > ol { margin: .3em 0 0; }
.entry-body blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-radius: var(--radius-small);
  background: var(--ground);
}
.entry-body blockquote > :last-child { margin-bottom: 0; }
.entry-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.entry-body img { border-radius: var(--radius-small); }
.entry-body a img { vertical-align: bottom; }
.entry-body iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: var(--radius-small); }

/* 本文の中の連絡先（共同受注窓口） */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 18px clamp(20px, 3vw, 32px);
  align-items: center;
  margin: 0 0 1.4em;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--ground);
}
.contact-panel p { margin: 0 0 8px; font-size: 16px; line-height: 1.8; }
.contact-panel p:last-child { margin-bottom: 0; }
.contact-panel-photo img { display: block; width: 100%; border-radius: var(--radius-small); }
.entry-body .contact-panel .contact-panel-name { font-size: 17px; font-weight: 700; line-height: 1.6; }
.contact-panel-name a { color: var(--ink); text-decoration: none; }
.contact-panel-name a:hover { color: var(--pine); text-decoration: underline; }
.entry-body .contact-panel .contact-tel { font-size: 28px; line-height: 1.4; }

/* お問い合わせ。停止中のフォームでも理由と代わりの連絡先を読めるようにする。 */
.contact-form { display: grid; gap: 20px; }
.contact-field { display: grid; gap: 8px; }
.contact-field label { font-weight: 500; }
.contact-field input, .contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  font: inherit;
}
.contact-field input:disabled, .contact-field textarea:disabled {
  background: var(--ground);
  color: var(--ink-2);
  opacity: 1;
  -webkit-text-fill-color: var(--ink-2);
  cursor: not-allowed;
}
.contact-field textarea { resize: vertical; }
.contact-form .button:disabled {
  justify-content: center;
  justify-self: start;
  border-color: var(--line-strong);
  background: var(--ground-2);
  color: var(--ink-2);
  cursor: not-allowed;
}
.entry-body .contact-maintenance { margin: 0; color: #a52a2a; font-size: 16px; font-weight: 500; }
.contact-alternative { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.contact-alternative p:last-child { margin-bottom: 0; }

/* 拡大できる写真 */
.zoom { cursor: zoom-in; }
.entry-body a.zoom { display: inline-block; max-width: 100%; }
.entry-body a.zoom:hover img { opacity: .92; }
.page-type-post .post-photo-group { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.page-type-post .post-photo-group > a.zoom { flex: none; }
.page-type-post .entry-body .photo-grid, .page-type-post .entry-body .gallery { gap: 20px; }


/* 元の投稿に残っていた文字サイズの指定を、本文の文字サイズに揃える */
.entry-body span[style*="font-size"] { font-size: inherit !important; }
.entry-body span[style*="8pt"] { font-size: 14px !important; color: var(--ink-2); }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1.2em; }
.entry-body h2, .entry-body h3, .entry-body h4 { clear: both; }

.trim { margin: 32px 0 1.4em; }
.trim img { display: block; width: 100%; max-height: 460px; border-radius: var(--radius); object-fit: cover; }
.typeB { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; align-items: start; }
.typeB > .left, .typeB > .right { min-width: 0; }
.typeB .right img { display: block; width: 100%; border-radius: var(--radius); }

.worklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-left: 0 !important;
  list-style: none;
}
.worklist li {
  margin: 0;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--ground);
  font-size: 16px;
  line-height: 1.6;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 1.4em;
}
.photo-grid p { margin: 0; }
.photo-grid a.zoom { display: block; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 0 0 1.4em;
}
.gallery-item { margin: 0; }
.gallery-icon a { display: block; }
.gallery img { display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius-small); object-fit: cover; }

/* 表 */
.entry-body table {
  width: 100% !important;
  margin: 0 0 1.4em;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.7;
}
.entry-body th, .entry-body td {
  width: auto !important;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.entry-body th { font-weight: 500; }

/* パンフレットのPDF一覧（アイコンと名前の組を2列に並べる） */
.entry-body table:has(img[src*="/pdf.png"]) { display: block; }
.entry-body table:has(img[src*="/pdf.png"]) > tbody {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 6px 12px;
}
.entry-body table:has(img[src*="/pdf.png"]) tr { display: contents; }
.entry-body table:has(img[src*="/pdf.png"]) td { display: block; padding: 6px 0; border: 0; }
.entry-body img[src*="/pdf.png"] { display: block; width: 34px; height: auto; border-radius: 0; }

/* 開発中の記事に残る、事業所の小さな表 */
.entry-body table:has(img.attachment-32x32) { display: block; overflow: visible; }
.entry-body table:has(img.attachment-32x32) > tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.entry-body table:has(img.attachment-32x32) tr {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.entry-body table:has(img.attachment-32x32) th,
.entry-body table:has(img.attachment-32x32) td { display: block; padding: 0; border: 0; }
.entry-body img.attachment-32x32 {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-small);
  object-fit: cover;
}
.entry-body table:has(img.attachment-32x32) td { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

.migration-note {
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--ground);
}

/* ---- 目次・脚注（Markdown の出力） --------------------------------- */
.toc { margin: 0 0 1.8em; padding: 18px 22px; border-radius: var(--radius); background: var(--ground); }
.entry-body .toc h2 { margin: 0 0 .4em; padding: 0; border: 0; font-size: 17px; font-weight: 700; }
.entry-body .toc h2::after { display: none; }
.toc-list { margin: 0; padding: 0; list-style: none; }
.toc-item { margin: .2em 0; }
.toc-item-h3.toc-indent { padding-left: 1.4em; font-size: .94em; }
.footnotes-sep { margin: 2.4em 0 1em; border: 0; border-top: 1px solid var(--line); }
.footnotes { font-size: 15px; color: var(--ink-2); }
.entry-body .footnotes-title { margin: 0 0 .5em; padding: 0; border: 0; font-size: 16px; font-weight: 700; }
.entry-body .footnotes-title::after { display: none; }

/* ---- マーカー・ボタン・補足（Markdown の出力） ----------------------- */
.emphasis { font-weight: 700; }
.underline { text-decoration: underline; text-decoration-color: var(--pine); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.highlight { background: linear-gradient(transparent 60%, var(--sun-tint) 60%); }
.soft-accent { color: var(--pine); font-weight: 500; }
.note { padding: .1em .5em; border-radius: 4px; background: var(--ground); font-size: .9em; color: var(--ink-2); }
.box { display: inline-block; padding: .05em .6em; border: 1px solid var(--line-strong); border-radius: 6px; }
.box-button { margin: 1.8em 0; }
.box-button a {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--pine);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}
.box-button a:hover { background: var(--pine-deep); color: var(--white); }
.notice-block { margin: 1.5em 0; padding: 16px 20px; border-radius: var(--radius-small); background: var(--pine-tint); }
.notice-block > :last-child { margin-bottom: 0; }

code { padding: .1em .35em; border-radius: 4px; background: var(--ground); font-size: .92em; }
pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-small); background: var(--ground); line-height: 1.6; }
pre code { padding: 0; background: none; }

/* ---- ページ送り --------------------------------------------------- */
.pager, .search-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 36px;
}
.pager-link, .search-pager button {
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--pine);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
  cursor: pointer;
}
.pager-link:hover, .search-pager button:hover { border-color: var(--pine); background: var(--pine-tint); }
.pager-info, .search-pager .page-info { font-size: 15px; color: var(--ink-2); }

/* ---- 検索 --------------------------------------------------------- */
.page-search { margin-bottom: 28px; }
.page-search-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.page-search-row { display: flex; gap: 8px; }
.page-search-row input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.page-search-row input:focus { border-color: var(--pine); outline: 2px solid var(--pine); outline-offset: 0; }
.search-hit { padding-block: 18px; border-top: 1px solid var(--line); }
.search-hit-title { margin: 0 0 4px; font-size: 18px; font-weight: 500; line-height: 1.6; }
.search-snippet { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.search-status { color: var(--ink-2); }
mark { padding: 0 .1em; background: var(--sun-tint); color: inherit; }

/* ---- 写真の拡大表示（assets/lightbox.js が生成） --------------------- */
body.has-lightbox { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(14 22 19 / .92);
  cursor: zoom-out;
}
.lightbox-figure { display: grid; justify-items: center; gap: 10px; max-width: 100%; max-height: 100%; margin: 0; }
.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 84px);
  border-radius: 6px;
  background: var(--white);
  cursor: default;
}
.lightbox-caption { color: var(--white); font-size: 15px; line-height: 1.5; text-align: center; }
.lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / .55);
  border-radius: 50%;
  background: rgb(14 22 19 / .7);
  color: var(--white);
  font: 26px/1 var(--font);
  cursor: pointer;
}
.lightbox-close:hover { background: rgb(255 255 255 / .16); }
.lightbox-close:focus-visible { outline-color: var(--white); }
.lightbox.is-loading::after {
  content: "読み込んでいます";
  position: fixed;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  color: rgb(255 255 255 / .8);
  font-size: 14px;
}

/* ---- フッター ----------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--pine-deep);
  color: var(--white);
  font-size: 15px;
  line-height: 1.8;
  isolation: isolate;
}
.site-footer::before { background-image: url("/assets/contour-dark.svg"); }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: #f4d27a; }
.footer-grid {
  display: grid;
  grid-template-columns: 4.5fr 4.5fr 3fr;
  gap: 32px clamp(32px, 4vw, 56px);
  padding-block: clamp(44px, 5.5vw, 72px) 40px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-mark { width: 60px; height: 60px; flex: none; padding: 3px; border-radius: 50%; background: var(--white); }
.footer-name { display: grid; margin: 0; font-feature-settings: "palt"; line-height: 1.45; letter-spacing: .03em; }
.footer-name-main { font-size: 23px; font-weight: 700; letter-spacing: .1em; }
.footer-desc { margin: 0; }
.footer-heading { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #cfe0d8; }
.footer-contact p { margin: 0; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-block; padding-block: 3px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { padding-bottom: 24px; }
.footer-bottom p { margin: 0; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .22); }
.footer-bottom small { font-size: 13px; letter-spacing: .03em; }

/* ---- レスポンシブ ------------------------------------------------- */
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; min-height: 72px; padding-block: 10px; }
  .js .site-tools { display: none; }
  .js .site-tools.is-open { display: block; }
  .site-tools {
    flex-basis: 100%;
    display: block;
    margin-top: 10px;
    padding-block: 8px 12px;
    border-top: 1px solid var(--line);
  }
  .header-nav ul { display: block; }
  .header-nav li + li { border-top: 1px solid var(--line); }
  .header-nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 2px; font-size: 16px; }
  .header-nav a[aria-current] { color: var(--pine); font-weight: 700; }
  .header-nav a::after { display: none; }
  .header-search { margin-top: 10px; }
  .header-search input { flex: 1; width: auto; min-height: 44px; font-size: 16px; }
  .header-search button { height: 44px; }

  .hero-head, .section-head { grid-template-columns: minmax(0, 1fr); }
  .task-list { grid-template-columns: minmax(0, 1fr); }
  .task-list li + li { box-shadow: 0 -1px 0 var(--line); }
  .town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .page-side > :only-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-org { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .office-card { grid-template-columns: minmax(0, 1fr); }
  .office-card-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .office-card-facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-sub { font-size: 11px; }
  .brand-main { font-size: 19px; }

  .hero::before, .band::before { background-size: 900px auto; }
  .hero-photos { grid-template-columns: 1.25fr 1fr; gap: 8px; margin-bottom: -44px; }
  .hero-photos li:nth-child(n) { margin-top: 0; }
  .hero-photos li:nth-child(even) { margin-top: 18px; }
  .hero-photos img, .hero-photo-placeholder { height: 158px; }
  .hero-photos a { border-radius: 14px; }
  .hero-photos li:nth-child(5) { grid-column: 1 / -1; }
  .home-tasks { padding-top: calc(44px + 24px); }
  .task-list a { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .task-list a > .icon { display: none; }
  .task-icon { width: 44px; height: 44px; font-size: 19px; }
  .task-title { font-size: 17px; }

  .jobs-grid { grid-template-columns: minmax(0, 1fr); }
  .jobs-photo { height: auto; aspect-ratio: 4 / 3; object-position: 50% 22%; }
  .news-row { gap: 16px; }
  .more-link { min-height: 44px; }
  .news-thumb { width: 76px; height: 76px; }
  .job-list img { width: 68px; height: 68px; }
  .footer-nav a { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
  .button { width: 100%; }
  .about-links { display: grid; }
  .type-links { padding: 16px; }
  .type-links .more-link { margin-left: 0; }

  .page-side { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .office-top.is-small { grid-template-columns: minmax(0, 1fr); }
  .office-map iframe { height: 280px; }
  .info-list > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .office-card-foot .more-button { width: 100%; justify-content: center; }

  .alignleft, .alignright { float: none; display: block; margin: 0 0 1em; }
  .typeB { grid-template-columns: minmax(0, 1fr); }
  .worklist { grid-template-columns: minmax(0, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* 狭い画面では、幅広の表は表の中だけ横にスクロールする */
  .entry-body table:not(:has(img.attachment-32x32)):not(:has(img[src*="/pdf.png"])) { display: block; overflow-x: auto; }
  .entry-body table:has(img[src*="/pdf.png"]) > tbody { grid-template-columns: 34px minmax(0, 1fr); }
  .entry-body table:has(img.attachment-32x32) > tbody { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  a:hover .icon, .news-row:hover > .icon, .office-card-photo:hover img, .office-photos a:hover img { transform: none !important; }
}

@media (forced-colors: active) {
  .tag, .button, .task-icon { border: 1px solid; }
  .hero::before, .band::before, .site-footer::before, .home-about::before { display: none; }
}

/* 事業所マップは一覧と同じ版面で表示する */
.office-directory-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.office-map-panel { margin: 32px 0 48px; }
.office-map-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.office-map-heading h2 { margin: 0; font-size: clamp(23px, 2.5vw, 30px); }
.office-map-hint { margin: 12px 0; font-size: 15px; color: var(--ink-2); }
.office-map-canvas { height: clamp(360px, 60dvh, 680px); border-radius: var(--radius-large); background: var(--ground); isolation: isolate; z-index: 0; }
.office-map-canvas.leaflet-container { font-family: var(--font); font-size: 15px; }
.office-map-canvas .leaflet-popup-content { width: min(280px, 65vw) !important; margin: 18px; line-height: 1.7; }
.office-map-canvas .leaflet-popup-content p { margin: 8px 0; }
.office-map-canvas .leaflet-popup-content a { color: var(--pine); }
.office-map-canvas .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; color: var(--ink); }
.office-map-canvas .leaflet-control-attribution { font-size: 11px; }
.office-map-popup-item + .office-map-popup-item { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.office-map-status { padding: 16px; border-radius: var(--radius); background: var(--ground); }
.office-map-page .office-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); align-items: stretch; }
.office-map-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.office-map-card p { margin: 0; font-size: 15px; }
.office-map-card-services { color: var(--pine); }
.office-map-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: auto; }
.office-map-card-actions a { font-size: 14px; }

.office-marker span { display: block; width: 30px; height: 30px; border: 3px solid var(--white); border-radius: 50% 50% 50% 0; background: var(--pine); transform: rotate(-45deg); box-shadow: 0 2px 5px rgb(0 0 0 / .3); }

.office-map-filter-details { margin-bottom: 24px; }
.office-map-filter-details > summary { min-height: 48px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ground); font-weight: 700; cursor: pointer; }
.office-map-filter-details[open] > summary { margin-bottom: 16px; }
.office-map-filter-details .office-filters { margin-bottom: 0; }
