.use-toc { margin-block: 0 26px; }
.use-toc h2 { font-family: var(--maru); font-size: 16px; color: var(--brown); margin-bottom: 8px; }
.use-toc ol { display: grid; gap: 8px; }
.use-toc a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 6px 12px 6px 6px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.45; background: #fff; border: 1.5px solid var(--rule); border-radius: 8px; }
.use-toc b { font-family: var(--maru); font-size: 20px; line-height: 40px; text-align: center; color: var(--brown); background: var(--yellow); border-radius: 6px; }
.use-toc small { display: block; font-weight: 500; font-size: 13.5px; color: var(--sub); }
@media (min-width: 700px) {
  .use-toc ol { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) { .use-toc ol { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 699px) {
  .use-toc ol { grid-template-columns: 1fr 1fr; gap: 6px; }
  .use-toc a { grid-template-columns: 30px 1fr; gap: 8px; padding: 6px 8px 6px 6px; font-size: 14.5px; }
  .use-toc b { font-size: 16px; line-height: 30px; }
  .use-toc small { font-size: 12.5px; }
}
/* 「開く」の畳み：手順の一覧（文字）は常に見せ、画面の写しは開いたときに出す */
.fold { margin-top: 4px; }
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 16px; border: 2px solid var(--green); border-radius: 8px; background: #fff; color: var(--green-deep); font-family: var(--maru); font-weight: 700; font-size: 16px; line-height: 1.4; text-align: center; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(45deg) translateY(-2px); flex: none; }
.fold[open] > summary { margin-bottom: 30px; }
.fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

/* Registration and consultation on small screens. */
.guide-dock { display: none }
@media screen and (max-width:680px) {
  :root:has(> .guide-body) { --dock-space: calc(58px + env(safe-area-inset-bottom)); scroll-padding-bottom: var(--dock-space) }
  .guide-body { padding-bottom: var(--dock-space) }
  .guide-dock:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--cream, #fbfaf5); border-top: 1px solid var(--line, #d7d4c6); padding: 6px 5% calc(6px + env(safe-area-inset-bottom)) }
  .guide-dock a { display: grid; place-content: center; min-height: 44px; padding: 7px; border: 1px solid var(--green); border-radius: 4px; font-weight: 700; line-height: 1.4; text-decoration: none; background: #fff; color: var(--green) }
  .guide-dock .register { color: #fff; background: var(--green) }
  .guide-dock .consult { display: block; align-content: center; min-width: 0; padding-block: 0; text-align: center; text-wrap: balance }
  .guide-dock a:hover { text-decoration: underline }
}

/* Company LINE: keep the two phrases intact as the button narrows. */
a:has(.company-line-label) { min-height:44px!important; min-width:0; max-width:100%; box-sizing:border-box; white-space:normal; }
a:has(.company-line-label):where(.font-serif) { display:inline-flex; align-items:center; }
.company-line-label { display:inline-block; min-width:0; max-width:100%; white-space:normal!important; word-break:keep-all; overflow-wrap:normal!important; font-size:max(14px,1em); line-height:1.4; letter-spacing:normal; text-align:center; }
.company-line-label>span { display:inline-block; white-space:nowrap; }

@media screen and (max-width:680px) {
 .guide-dock .consult { font-size:14px; }
}
