@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root{
  --ink:#173042;--muted:#607281;--line:#dfe8ee;--paper:#fff;--wash:#f5f9fb;
  --teal:#5aaac7;--teal-dark:#317f9c;--owner:#e4000f;--owner-dark:#a9000b;
  --hyg:#0b74d1;--hyg-dark:#07599f;--asst:#0f8a6a;--asst-dark:#0a6650;--shadow:0 18px 48px rgba(25,60,80,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{margin:0;background:var(--wash);color:var(--ink);font-family:"Zen Maru Gothic",sans-serif;line-height:1.8;-webkit-font-smoothing:antialiased}
a{color:inherit}
button,input{font:inherit}
.skip-link{position:fixed;top:-60px;left:1rem;z-index:999;background:#fff;padding:.6rem 1rem;border-radius:10px;box-shadow:var(--shadow)}
.skip-link:focus{top:1rem}
.manual-nav{position:sticky;top:0;z-index:50;height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 max(1.2rem,calc((100vw - 1180px)/2));background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.brand{display:flex;align-items:center;gap:.9rem;text-decoration:none;font-weight:700}
.brand img{width:148px;display:block}
.brand-tag{padding-left:.9rem;border-left:1px solid var(--line);font-size:13px;color:var(--muted)}
.nav-actions{display:flex;align-items:center;gap:.6rem}
.nav-actions a{padding:.5rem .85rem;border-radius:999px;text-decoration:none;font-size:16px;font-weight:700;color:var(--muted)}
.nav-actions a:hover,.nav-actions a:focus-visible{background:var(--wash);color:var(--ink)}
.nav-actions .home-link{border:1px solid var(--line)}
.menu-button{display:none;border:0;background:transparent;padding:.5rem;cursor:pointer}
.menu-button span{display:block;width:23px;height:2px;margin:5px;background:var(--ink)}

.manual-hero{position:relative;overflow:hidden;padding:5.5rem 1.5rem 4.5rem;color:#fff}
.manual-hero::before,.manual-hero::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.09)}
.manual-hero::before{width:420px;height:420px;right:-80px;top:-180px}
.manual-hero::after{width:260px;height:260px;left:-80px;bottom:-160px}
.manual-hero.owner{background:linear-gradient(135deg,#a8000b,#e4000f 62%,#f54d58)}
.manual-hero.hyg{background:linear-gradient(135deg,#07599f,#0b74d1 62%,#39a3ef)}
.manual-hero.home{background:linear-gradient(135deg,#286f89,#5aaac7 58%,#cc6f99)}
.hero-inner{position:relative;z-index:1;max-width:1120px;margin:auto}
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);padding:.35rem .8rem;border-radius:999px}
.manual-hero h1{font-size:clamp(2.2rem,5vw,4rem);line-height:1.28;margin:1rem 0 .8rem;letter-spacing:.02em}
.manual-hero p{max-width:680px;margin:0;color:rgba(255,255,255,.88);font-size:1.03rem}
.hero-meta{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.8rem}
.hero-meta span{padding:.35rem .7rem;background:rgba(255,255,255,.14);border-radius:8px;font-size:13px}

.role-pick{max-width:1120px;margin:-2rem auto 4rem;padding:0 1.5rem;position:relative;z-index:3}
.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.role-card{min-height:280px;display:flex;flex-direction:column;padding:2.2rem;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);text-decoration:none;transition:.25s}
.role-card:hover{transform:translateY(-5px);box-shadow:0 24px 58px rgba(25,60,80,.15)}
.role-icon{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;color:#fff;font-size:1.45rem;font-weight:700}
.role-card.owner .role-icon{background:var(--owner)}.role-card.hyg .role-icon{background:var(--hyg)}
.role-label{font-size:13px;font-weight:700;letter-spacing:.1em;margin-top:1.25rem;color:var(--muted)}
.role-card h2{font-size:1.5rem;margin:.2rem 0 .5rem}
.role-card p{margin:0;color:var(--muted);font-size:16px}
.role-cta{margin-top:auto;padding-top:1.2rem;font-weight:700}
.role-card.owner .role-cta{color:var(--owner)}.role-card.hyg .role-cta{color:var(--hyg)}
.home-sections{max-width:1120px;margin:0 auto 5rem;padding:0 1.5rem}
.home-sections h2{font-size:1.6rem;margin-bottom:1rem}
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.quick-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.3rem}
.quick-card strong{display:block;margin-bottom:.35rem}.quick-card p{font-size:16px;color:var(--muted);margin:0}

.manual-shell{max-width:1180px;margin:0 auto;padding:3rem 1.5rem 6rem;display:grid;grid-template-columns:250px minmax(0,1fr);gap:3.5rem;align-items:start}
.toc{position:sticky;top:94px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:1rem;box-shadow:0 8px 24px rgba(25,60,80,.05)}
.toc-title{font-size:13px;letter-spacing:.12em;color:var(--muted);font-weight:700;padding:.3rem .65rem .7rem;border-bottom:1px solid var(--line);margin-bottom:.45rem}
.toc a{display:block;text-decoration:none;font-size:16px;color:var(--muted);padding:.48rem .65rem;border-radius:9px;line-height:1.45}
.toc a:hover,.toc a:focus-visible{background:var(--wash);color:var(--ink)}
.owner-page .toc a.active{background:#fff0f1;color:var(--owner-dark);font-weight:700}
.hyg-page .toc a.active{background:#eaf5ff;color:var(--hyg-dark);font-weight:700}
.toc-switch{display:block!important;margin-top:.7rem!important;border-top:1px solid var(--line);padding-top:.85rem!important;font-weight:700;color:var(--ink)!important}

.content{min-width:0}
.intro-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:1.6rem 1.8rem;margin-bottom:2.5rem;box-shadow:0 8px 24px rgba(25,60,80,.05)}
.intro-card strong{display:block;font-size:1.05rem;margin-bottom:.35rem}.intro-card p{margin:0;color:var(--muted);font-size:16px}
.guide-section{padding:0 0 3.6rem;margin-bottom:3.6rem;border-bottom:1px solid var(--line)}
.guide-section:last-child{border:0;margin-bottom:0}
.section-kicker{font-size:13px;font-weight:700;letter-spacing:.12em;margin-bottom:.35rem}
.owner-page .section-kicker{color:var(--owner)}.hyg-page .section-kicker{color:var(--hyg)}
.guide-section h2{font-size:clamp(1.5rem,3vw,2rem);line-height:1.45;margin:0 0 1rem}
.guide-section h3{font-size:1.08rem;margin:1.8rem 0 .7rem}
.guide-section p{color:#405664;margin:.65rem 0}
.lead{font-size:1rem!important;color:var(--muted)!important;max-width:720px}
.steps{counter-reset:step;display:grid;gap:.85rem;margin:1.5rem 0}
.step{counter-increment:step;display:grid;grid-template-columns:42px 1fr;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.15rem}
.step::before{content:counter(step);width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:#fff;font-weight:700}
.owner-page .step::before{background:var(--owner)}.hyg-page .step::before{background:var(--hyg)}
.step strong{display:block;margin-bottom:.2rem}.step p{margin:0;font-size:16px}.step ul{margin:.45rem 0 0;padding-left:1.3rem;color:#405664;font-size:16px}
.callout{margin:1.3rem 0;padding:1rem 1.2rem;border-radius:14px;border-left:4px solid;background:#fff}
.callout strong{display:block;margin-bottom:.2rem}.callout p{margin:0;font-size:16px}
.callout.warn{border-color:#e7a300;background:#fffaea}.callout.security{border-color:#6c7b86;background:#f1f5f7}.callout.good{border-color:#2d9c73;background:#ecfbf5}
.owner-page .callout.role{border-color:var(--owner);background:#fff1f2}.hyg-page .callout.role{border-color:var(--hyg);background:#edf7ff}
.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin:1.2rem 0}
.info-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:1.15rem}
.info-card h3{margin:0 0 .35rem;font-size:1rem}.info-card p{margin:0;font-size:16px}.info-card .path{margin-top:.65rem}
.path{display:inline-block;background:#edf2f5;color:#425968;border-radius:7px;padding:.18rem .5rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;word-break:break-all}
.badge-list{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.badge-list span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:.32rem .7rem;font-size:16px}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:15px;background:#fff;margin:1.2rem 0}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{text-align:left;padding:.85rem 1rem;border-bottom:1px solid var(--line);font-size:16px;vertical-align:top}
th{background:#f2f6f8;color:#405664;font-weight:700}tr:last-child td{border-bottom:0}
.checklist{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.5rem}
.checklist li{position:relative;padding-left:1.8rem;color:#405664;font-size:16px}.checklist li::before{content:"✓";position:absolute;left:0;top:.05rem;width:1.2rem;height:1.2rem;display:grid;place-items:center;border-radius:50%;background:#e6f7f1;color:#237b5b;font-size:13px;font-weight:700}
.faq{display:grid;gap:.7rem;margin-top:1.2rem}
.faq details{background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 1rem}
.faq summary{cursor:pointer;font-weight:700;padding:1rem 2rem 1rem 0;position:relative;list-style:none;font-size:16px}
.faq summary::after{content:"＋";position:absolute;right:0;color:var(--muted)}.faq details[open] summary::after{content:"−"}.faq details p{padding:0 0 1rem;margin:0;font-size:16px}
.next-guide{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1.4rem;background:#fff;border:1px solid var(--line);border-radius:17px;margin-top:2rem}
.next-guide p{margin:0;font-size:16px;color:var(--muted)}.next-guide a{text-decoration:none;font-weight:700;white-space:nowrap}
.owner-page .next-guide a{color:var(--owner)}.hyg-page .next-guide a{color:var(--hyg)}
.manual-footer{padding:2.5rem 1.5rem;background:#173042;color:rgba(255,255,255,.68);text-align:center;font-size:13px}
.manual-footer a{color:#fff;text-decoration:none}.manual-footer p{margin:.4rem}

/* 歯科助手向け */
.manual-hero.asst{background:linear-gradient(135deg,#0a6650,#0f8a6a 62%,#3fbf9a)}
.role-card.asst .role-icon{background:var(--asst)}.role-card.asst .role-cta{color:var(--asst)}
.asst-page .toc a.active{background:#e8f7f2;color:var(--asst-dark);font-weight:700}
.asst-page .section-kicker{color:var(--asst)}
.asst-page .step::before{background:var(--asst)}
.asst-page .callout.role{border-color:var(--asst);background:#eefaf6}
.asst-page .next-guide a{color:var(--asst)}
@media(max-width:1000px){.role-grid{grid-template-columns:1fr}}

@media(max-width:860px){
  .nav-actions{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:1rem 1.2rem;box-shadow:var(--shadow);flex-direction:column;align-items:stretch}.nav-actions.open{display:flex}.menu-button{display:block}.brand-tag{display:none}
  .manual-shell{grid-template-columns:1fr;padding-top:1.5rem;gap:1rem}.toc{position:relative;top:auto;display:flex;overflow:auto;border-radius:13px;padding:.55rem}.toc-title,.toc-switch{display:none!important}.toc a{white-space:nowrap;flex:0 0 auto}
  .quick-grid{grid-template-columns:1fr}.role-grid{grid-template-columns:1fr}.role-card{min-height:240px}
}
@media(max-width:600px){
  .manual-nav{height:64px;padding:0 1rem}.brand img{width:132px}.nav-actions{top:64px}
  .manual-hero{padding:4rem 1.1rem 3.3rem}.manual-hero h1{font-size:2.15rem}.manual-hero p{font-size:16px}
  .manual-shell{padding-left:1rem;padding-right:1rem}.guide-section{padding-bottom:2.7rem;margin-bottom:2.7rem}.card-grid{grid-template-columns:1fr}.step{grid-template-columns:35px 1fr;padding:1rem;gap:.75rem}.step::before{width:32px;height:32px}.intro-card{padding:1.3rem}.next-guide{align-items:flex-start;flex-direction:column}.role-pick,.home-sections{padding-left:1rem;padding-right:1rem}
}
@media print{.manual-nav,.toc,.manual-footer,.next-guide{display:none!important}.manual-hero{padding:2rem;background:#fff!important;color:#000;border-bottom:2px solid #000}.manual-hero p{color:#333}.manual-shell{display:block;max-width:none;padding:2rem}.guide-section{break-inside:avoid}.step,.info-card,.callout{break-inside:avoid;box-shadow:none}}
