/* DEMO就労支援事業所（見本）
   考え：作業台を上から見た絵（人は描かない）を最初の画面に置き、メモ用紙・荷札・方眼のノート・縫い目の線で
   「手を動かす場所」を見せる。動きはメモ用紙が一度だけ静かに出る所だけ。
   色：主 #2F6A45（深い緑）・面 #F1F5EA・からし #E6B437・木 #CFA36E・クラフト #E2CBA3・文字 #26332B・補足 #55614F
   字体：見出しは教科書体（手書きに近い）、本文は UD ゴシック。どちらも端末の字体（外から読み込まない）。 */

:root {
  --paper: #FFFFFF;
  --leaf: #F1F5EA;
  --grid: #E3EBD9;
  --ink: #26332B;
  --sub: #55614F;
  --main: #2F6A45;
  --main-d: #24533A;
  --mustard: #E6B437;
  --mustard-l: #F7E7B5;
  --wood: #CFA36E;
  --kraft: #E2CBA3;
  --kraft-l: #F3E8D2;
  --stitch: #8FA57F;
  --hand: "UD デジタル 教科書体 NK-R", "UD Digi Kyokasho NK-R", "UD デジタル 教科書体 N-R", "UD Digi Kyokasho N-R", "YuKyokasho Yoko", "YuKyokasho", "Klee", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --sans: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
a { color: var(--main); text-underline-offset: .22em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--paper); color: var(--main); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 8px; }

.demo-band { margin: 0; padding: 6px 16px; background: var(--mustard-l); color: var(--ink); font-size: 13px; line-height: 1.5; text-align: center; border-bottom: 2px dashed var(--wood); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.narrow { max-width: 800px; }

/* ---------------------------------------------------------------- ヘッダーと見出しの耳（インデックスのタブ） */
.hd { background: var(--paper); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 48px; }
.logo-m { width: 46px; height: 46px; flex: none; fill: none; stroke: var(--main); stroke-width: 2.5; }
.logo-m path { fill: var(--mustard); stroke: none; }
.logo-t { font-family: var(--hand); font-size: 20px; line-height: 1.3; font-weight: 700; }
.logo-s { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .04em; }
.hd-tel { display: none; margin: 0; text-align: right; line-height: 1.3; }
.hd-tel-l, .hd-tel-h { display: block; font-size: 13px; color: var(--sub); }
.hd-tel-n { display: block; font-family: var(--hand); font-size: 28px; font-weight: 700; color: var(--main); font-variant-numeric: tabular-nums; }
.hd-call { min-height: 44px; min-width: 64px; padding: 0 14px; border: 2px solid var(--main); background: var(--paper); color: var(--main); border-radius: 22px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
@media (min-width: 900px) { .hd-tel { display: block; } .hd-call { display: none; } .logo-t { font-size: 24px; } .logo-m { width: 54px; height: 54px; } }

.tabs { border-bottom: 4px solid var(--main); }
.tabs ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 8px; }
.tabs a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 4px 6px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.35;
  background: var(--kraft-l);
}
.tabs li:nth-child(3n+2) a { background: #E4EEDA; }
.tabs li:nth-child(3n) a { background: var(--mustard-l); }
.tabs a:hover { text-decoration: underline; }
.tabs li:nth-child(n) a[aria-current="page"] { background: var(--main); color: #FFFFFF; }
@media (min-width: 900px) {
  .tabs { border-bottom-width: 5px; }
  .tabs ul { display: flex; gap: 6px; padding-bottom: 0; align-items: flex-end; }
  .tabs a { min-height: 52px; padding: 6px 22px; font-size: 16px; border-radius: 12px 12px 0 0; }
  .tabs a[aria-current="page"] { min-height: 58px; }
}

/* ---------------------------------------------------------------- ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 10px;
  min-height: 54px; padding: 8px 24px; border-radius: 28px; border: 2px solid var(--main);
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.35; text-decoration: none; cursor: pointer;
}
.btn-main { background: var(--main); color: #FFFFFF; }
.btn-main:hover { background: var(--main-d); border-color: var(--main-d); }
.btn-line { background: var(--paper); color: var(--main); }
.btn-line:hover { background: var(--leaf); }
.btn-s { font-weight: 400; font-size: 15px; font-variant-numeric: tabular-nums; }
.btn-wide { width: 100%; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------------------------------------------------------------- 最初の画面：作業台の絵とメモ用紙 */
.hero { padding-bottom: 48px; background: linear-gradient(var(--paper) 0 50%, var(--leaf) 50% 100%); }
.hero-art { max-width: 1400px; margin: 0 auto; background: #D9B07E; }
.hero-art img { display: block; width: 100%; height: auto; }
.memo {
  position: relative; z-index: 1;
  margin-top: -28px; padding: 32px 20px 24px;
  background: var(--paper); border-radius: 4px;
  box-shadow: 0 2px 0 #D9CBB0, 0 14px 32px rgba(38, 51, 43, .14);
}
.memo::before { content: ""; position: absolute; top: -14px; left: 50%; width: 132px; height: 28px; margin-left: -66px; background: var(--mustard); opacity: .9; transform: rotate(-2deg); }
.memo-kind { margin: 0; font-size: 15px; font-weight: 700; color: var(--main); }
.memo-h { font-family: var(--hand); font-size: 30px; font-weight: 700; line-height: 1.35; margin: 2px 0 12px; }
.memo-lead { margin: 0; }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 700; padding: 4px 12px; border: 1.5px dashed var(--stitch); border-radius: 16px; background: var(--leaf); }
.nb { display: inline-block; white-space: nowrap; }
.sticky { margin: 28px 8px 0; padding: 20px 22px; background: var(--mustard-l); box-shadow: 0 10px 20px rgba(38, 51, 43, .10); transform: rotate(1.2deg); }
.sticky-h { font-family: var(--hand); font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
.sticky p { margin: 0; font-size: 16px; }
@media (min-width: 900px) {
  .hero-row { display: flex; align-items: flex-end; gap: 56px; }
  .hero-row .memo { flex: none; }
  .sticky { width: 320px; margin: 0 0 12px; }
  .hero { padding-bottom: 72px; }
  .hero-art { max-height: 560px; overflow: hidden; }
  .hero-art img { height: 560px; object-fit: cover; object-position: 50% 40%; }
  .memo { width: 600px; margin-top: -220px; padding: 40px 40px 32px; transform: rotate(-.8deg); }
  .memo-h { font-size: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .memo { animation: memo-in .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
  @keyframes memo-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
}

/* ---------------------------------------------------------------- 段 */
.sec { padding: 56px 0; }
.sec-leaf { background: var(--leaf); }
.sec-grid {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.h2 { font-family: var(--hand); font-size: 26px; font-weight: 700; line-height: 1.4; margin: 0 0 24px; display: inline-block; padding-bottom: 4px; border-bottom: 3px dashed var(--stitch); }
.h3 { font-family: var(--hand); font-size: 21px; font-weight: 700; margin: 32px 0 8px; }
.sec-more { margin: 24px 0 0; }
.sec-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.note { margin: 24px 0 0; padding: 16px 20px; background: var(--leaf); border-radius: 8px; }
@media (min-width: 768px) { .sec { padding: 80px 0; } .h2 { font-size: 30px; } }
.two { display: grid; gap: 32px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* 荷札（4つの作業） */
.tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .tags { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tags { grid-template-columns: repeat(4, 1fr); } }
.tag {
  position: relative; padding: 44px 20px 22px; background: var(--kraft-l);
  clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
}
.tag::before { content: ""; position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--wood); }
.tag .ic { width: 56px; height: 56px; fill: none; stroke: var(--main); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: block; }
.tag h3 { font-family: var(--hand); font-size: 22px; font-weight: 700; margin: 10px 0 4px; line-height: 1.4; }
.tag p { margin: 0; font-size: 16px; }
.tag .tag-more { margin-top: 10px; padding-top: 10px; border-top: 2px dashed var(--wood); color: var(--sub); }

/* 一日の流れ（方眼のノートに書いた時刻） */
.day { list-style: none; margin: 0; padding: 0; }
.day li { display: grid; grid-template-columns: 4.6em 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.day li:not(:last-child)::after { content: ""; position: absolute; left: 2.1em; top: 2.4em; bottom: 4px; border-left: 2px dashed var(--stitch); }
.day-t { font-family: var(--hand); font-size: 24px; font-weight: 700; color: var(--main); line-height: 1.5; font-variant-numeric: tabular-nums; background: var(--paper); text-align: center; border-radius: 6px; align-self: start; }
.day h3 { margin: 2px 0 0; font-size: 18px; line-height: 1.6; }
.day p { margin: 0; font-size: 16px; color: var(--sub); background: var(--paper); }
.day div { background: var(--paper); padding: 4px 12px 6px; border-radius: 6px; }

/* 見学から利用まで（はんこの番号） */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.path li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; }
.path-n { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; border: 3px dashed var(--main); color: var(--main); display: grid; place-items: center; font-family: var(--hand); font-size: 24px; font-weight: 700; transform: rotate(-8deg); }
.path h3 { margin: 4px 0 0; font-size: 19px; font-family: var(--hand); line-height: 1.5; }
.path p { margin: 0; font-size: 16px; color: var(--sub); }
@media (min-width: 960px) {
  .path { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .path li { grid-template-columns: 1fr; }
  .path-n { grid-row: auto; margin-bottom: 10px; }
}

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 2px dashed var(--grid); }
.news time { font-weight: 700; font-variant-numeric: tabular-nums; }
.news-k { background: var(--mustard); color: var(--ink); font-size: 13px; font-weight: 700; padding: 0 10px; border-radius: 12px; line-height: 1.8; }
.news li > span:last-child { flex-basis: 100%; }

/* 事実の一覧 */
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 12px 0; border-bottom: 2px dashed var(--grid); }
.facts dt { font-weight: 700; font-size: 15px; color: var(--main); padding-top: 2px; }
.facts dd { margin: 0; }
@media (min-width: 768px) { .facts-wide > div { grid-template-columns: 10em 1fr; } }
.sec-leaf .facts > div { border-bottom-color: #D2DEC5; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 14px; height: 8px; border-left: 3px solid var(--main); border-bottom: 3px solid var(--main); transform: rotate(-45deg); }

.slot { border: 2px dashed var(--wood); border-radius: 8px; padding: 24px; min-height: 180px; display: grid; align-content: center; gap: 8px; background: var(--kraft-l); }
.slot p { margin: 0; }
.slot-s { font-size: 14px; color: var(--sub); }

/* アクセス */
.acc { display: grid; gap: 32px; }
@media (min-width: 900px) { .acc { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; } }
.map { margin: 0 0 16px; }
.map svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.map figcaption { font-size: 14px; color: var(--sub); margin-top: 6px; }
.m-bg { fill: #F3EEE2; }
.m-river { fill: none; stroke: #BFD9E3; stroke-width: 26; stroke-linecap: round; }
.m-road { fill: none; stroke: #FFFFFF; stroke-width: 22; stroke-linecap: round; }
.m-rail { stroke: #55614F; stroke-width: 9; fill: none; }
.m-rail-d { stroke: #FFFFFF; stroke-width: 4; stroke-dasharray: 16 12; fill: none; }
.m-sta { fill: var(--ink); }
.m-school { fill: #E7DCC4; }
.m-tree { fill: #BFD6A8; }
.m-me { fill: var(--main); }
.m-route { fill: none; stroke: #C27C00; stroke-width: 5; stroke-dasharray: 2 10; stroke-linecap: round; }
.m-n { fill: var(--ink); }
.m-t { font-family: var(--sans); font-size: 22px; font-weight: 700; fill: var(--ink); }
.m-t-w { fill: #FFFFFF; }
.m-t-s { font-size: 19px; fill: var(--sub); }
.walk { margin: 0; padding-left: 1.4em; }
.walk li { padding: 4px 0; }

/* よくある質問（開いて読む） */
.qa { border-bottom: 2px dashed var(--grid); }
.qa summary { list-style: none; position: relative; display: flex; align-items: center; min-height: 60px; padding: 12px 48px 12px 0; font-weight: 700; font-size: 18px; line-height: 1.6; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--mustard-l); box-shadow: inset 0 0 0 2px var(--main); }
.qa summary::before { content: "＋"; position: absolute; right: 8px; top: 50%; width: 26px; margin-top: -13px; z-index: 1; text-align: center; line-height: 26px; font-size: 16px; color: var(--main); }
.qa[open] summary::before { content: "－"; }
.qa p { margin: 0 0 20px; padding: 14px 18px; background: var(--leaf); border-radius: 8px; }

/* ページの見出し */
.ph { background: var(--leaf); padding: 12px 0 36px; border-bottom: 2px dashed var(--stitch); }
.crumb { margin: 0 0 8px; font-size: 14px; color: var(--sub); }
.crumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.ph-h { display: inline-block; margin: 0; padding: 4px 18px; font-family: var(--hand); font-size: 28px; font-weight: 700; line-height: 1.5; background: var(--mustard-l); transform: rotate(-1deg); box-shadow: 0 2px 0 #E1C97A; }
.ph-lead { margin: 16px 0 0; }
@media (min-width: 768px) { .ph-h { font-size: 36px; } }

/* お問合せ（選択式） */
.callout { display: grid; gap: 14px; background: var(--kraft-l); border-radius: 10px; padding: 20px; margin-bottom: 40px; }
.callout p { margin: 0; }
.form { display: grid; }
.field { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.field input[type="text"] { width: 100%; min-height: 54px; padding: 0 16px; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid #7D8A76; border-radius: 10px; }
.choices { display: grid; gap: 8px; }
@media (min-width: 600px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 16px; border: 2px dashed #B9C8AC; border-radius: 10px; background: var(--paper); cursor: pointer; line-height: 1.5; }
.choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--main); }
.choice:has(input:checked) { border-style: solid; border-color: var(--main); background: var(--leaf); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

/* フッター（クラフト紙と縫い目） */
.ft { background: var(--kraft); color: var(--ink); padding-top: 44px; position: relative; }
.ft::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 3px dashed #9C7646; }
.ft-in { display: grid; gap: 32px; padding-bottom: 28px; }
@media (min-width: 900px) { .ft-in { grid-template-columns: 2fr 1fr; gap: 64px; } }
.ft-name { font-family: var(--hand); font-size: 24px; font-weight: 700; margin: 0 0 10px; }
.ft-dl { margin: 0; font-size: 15px; }
.ft-dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 4px 0; }
.ft-dl dt { font-weight: 700; }
.ft-dl dd { margin: 0; }
.ft-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ft-nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; }
.ft-small { margin: 0 auto; padding-top: 14px; padding-bottom: 20px; border-top: 2px dashed #B79566; font-size: 13px; }

/* 「見本のため〜」の小窓（メモ用紙） */
.pop { border: 0; border-radius: 4px; padding: 32px 24px 24px; width: min(92vw, 400px); background: var(--paper); color: var(--ink); box-shadow: 0 16px 48px rgba(38, 51, 43, .3); overflow: visible; }
.pop::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 24px; margin-left: -55px; background: var(--mustard); transform: rotate(2deg); }
.pop::backdrop { background: rgba(38, 51, 43, .45); }
.pop-t { font-family: var(--hand); font-size: 22px; font-weight: 700; margin: 0 0 8px; line-height: 1.5; }
.pop-s { margin: 0; font-size: 15px; color: var(--sub); }
.pop-close { margin-top: 18px; width: 100%; min-height: 50px; border: 0; border-radius: 26px; background: var(--main); color: #FFFFFF; font: inherit; font-weight: 700; cursor: pointer; }
