/* 小机歯科医院 臨床研修サイト（2026-10-13〜）
   芯は「マイクロスコープの視野」。暗い術野の色・丸い視野・目盛りの輪。
   見本：https://claude.ai/artifact/G8QEXHAdbdi3gohbjrwpdw（院長「ヒーロー画像のあたりをもっとスタイリッシュにして」） */
:root {
  --ink: #0f1c2b;
  --paper: #f7f9fa;
  --white: #ffffff;
  --line: #d9e1e7;
  --sub: #51606d;
  --blue: #123a5c;
  --green: #3f9a4a;
  --green-light: #8fd19a;
  --deep: #08131f;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --f-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 28px);
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.45; margin: 0; }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 1000; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(63, 154, 74, .35); }
.btn--line { background: transparent; border: 1.5px solid rgba(255, 255, 255, .75); }
.btn--line:hover { box-shadow: none; background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--blue); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .84rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 上の帯（メニュー） ---------- */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 50; color: #fff; }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.logo { display: grid; line-height: 1.25; text-decoration: none; }
.logo b { font-family: var(--f-head); font-size: 1.06rem; font-weight: 800; }
.logo span { font-size: .68rem; color: #9fb6c8; letter-spacing: .04em; }
.gnav { display: flex; align-items: center; gap: 20px; font-size: .84rem; }
.gnav a { text-decoration: none; color: #c9d7e2; }
.gnav a:hover, .gnav a[aria-current="page"] { color: #fff; }
.menu-btn { display: none; white-space: nowrap; flex-shrink: 0; background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .82rem; cursor: pointer; }
/* 下層ページは白い帯 */
.is-sub .site-head { position: sticky; top: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); color: var(--ink); border-bottom: 1px solid var(--line); }
.is-sub .logo span { color: var(--sub); }
.is-sub .gnav a { color: var(--sub); }
.is-sub .gnav a:hover, .is-sub .gnav a[aria-current="page"] { color: var(--ink); }
.is-sub .menu-btn { color: var(--ink); border-color: var(--line); }

/* ---------- ヒーロー（暗い術野に、視野の円） ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 78% 40%, #1c4466 0, #0f2438 45%, var(--deep) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px; }
.hero__body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding-top: clamp(96px, 12vw, 130px); padding-bottom: 28px; }
.hero__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .22em; color: var(--green-light); }
.hero__title { font-family: var(--f-head); font-weight: 800; margin: 18px 0 20px; line-height: 1.18; letter-spacing: .03em; }
.hero__title .l1 { display: block; font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: #c9d7e2; font-weight: 600; }
.hero__title .l2 { display: block; font-size: clamp(2.3rem, 5.6vw, 3.6rem); }
.hero__title em { font-style: normal; background: linear-gradient(transparent 68%, rgba(63, 154, 74, .8) 68%, rgba(63, 154, 74, .8) 90%, transparent 90%); }
.hero__lead { color: #b9c9d6; font-size: .95rem; line-height: 2; max-width: 31em; margin-bottom: 26px; }
.scope { position: relative; aspect-ratio: 1; width: 118%; max-width: 580px; justify-self: end; margin-right: -14%; }
.scope img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 30px 80px rgba(0, 0, 0, .55); }
.scope__ring { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .85) 0 .5deg, transparent .5deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 63.4%, #000 66%, transparent 66.4%);
          mask: radial-gradient(circle, transparent 63%, #000 63.4%, #000 66%, transparent 66.4%); opacity: .5; }
.scope__ring2 { position: absolute; inset: 4.5%; border-radius: 50%; border: 1px solid rgba(143, 209, 154, .6); }
.scope__cross { position: absolute; inset: 9%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 255, 255, .35) calc(50% - .5px), rgba(255, 255, 255, .35) calc(50% + .5px), transparent calc(50% + .5px)),
              linear-gradient(transparent calc(50% - .5px), rgba(255, 255, 255, .35) calc(50% - .5px), rgba(255, 255, 255, .35) calc(50% + .5px), transparent calc(50% + .5px));
  -webkit-mask: radial-gradient(circle, transparent 8%, #000 8.5%, #000 18%, transparent 18.5%);
          mask: radial-gradient(circle, transparent 8%, #000 8.5%, #000 18%, transparent 18.5%); }
.scope__read { position: absolute; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; color: var(--green-light); }
.scope__read--1 { left: 4%; top: 12%; }
.scope__read--2 { left: 0; bottom: 16%; }
@media (prefers-reduced-motion: no-preference) { .scope__ring { animation: spin 60s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__nums { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .18); padding-bottom: 34px; }
.hero__nums div { padding: 18px 14px 0 0; display: grid; gap: 4px; align-content: start; }
.hero__nums b { font-family: var(--f-head); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero__nums b i { font-style: normal; font-size: .82rem; font-weight: 600; margin-left: 2px; color: #c9d7e2; }
.hero__nums small { font-size: .74rem; color: #9fb6c8; line-height: 1.5; }

/* ---------- 節 ---------- */
.sec { padding-block: clamp(48px, 7vw, 84px); }
.sec--white { background: var(--white); }
.sec__head { display: grid; gap: 6px; margin-bottom: clamp(20px, 3vw, 32px); }
.sec__en { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; color: var(--green); }
.sec__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.45rem, 2.8vw, 1.9rem); }
.sec__lead { color: var(--sub); max-width: 42em; font-size: .95rem; }
.note { font-size: .78rem; color: var(--sub); }

/* 研修の1年 */
.year { display: grid; grid-template-columns: 4fr 4fr 3fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.year > div { padding: 14px 12px; display: grid; gap: 3px; min-width: 0; border-right: 1px solid var(--white); align-content: start; }
.year > div:last-child { border-right: 0; }
.year b { font-size: .92rem; line-height: 1.4; }
.year span { font-size: .74rem; color: var(--sub); line-height: 1.5; }
.year .m { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); }
.y1 { background: #e3eef6; } .y2 { background: #e8f2e6; } .y3 { background: #fdf0dc; } .y4 { background: #eee8f4; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); font-family: var(--f-mono); font-size: .64rem; color: var(--sub); text-align: center; margin-top: 4px; }

/* 写真つきの3列 */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; }
.pcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pcard__b { padding: 16px 18px 20px; display: grid; gap: 6px; }
.pcard h3 { font-size: 1.02rem; }
.pcard p { font-size: .86rem; color: var(--sub); line-height: 1.8; }
.pcard--face img { aspect-ratio: 7 / 8; object-position: center top; }

/* 根管 */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.xray { border-radius: var(--radius); overflow: hidden; background: #000; }
.xray img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.quiz { display: grid; gap: 12px; }
.quiz__q { font-weight: 700; }
.quiz__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__opts button { font: inherit; font-size: .88rem; border: 1.5px solid var(--blue); background: var(--white); color: var(--blue); border-radius: 999px; padding: 7px 18px; cursor: pointer; }
.quiz__opts button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.quiz__ans { font-size: .9rem; background: var(--paper); border-left: 3px solid var(--green); padding: 12px 14px; }

/* 矯正 */
.sec--ortho { background: linear-gradient(135deg, #eef4f8 0, var(--paper) 60%); }
.ortho { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 40px); align-items: center; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 6px; padding: 13px 16px; display: grid; gap: 2px; }
.points b { font-family: var(--f-head); font-size: 1.08rem; color: var(--blue); }
.points span { font-size: .86rem; color: var(--sub); line-height: 1.7; }

/* 指導医・待遇 */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 22px); }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); display: grid; gap: 10px; align-content: start; }
.box h3 { font-family: var(--f-head); font-size: 1.12rem; }
.box p { font-size: .9rem; }
.box .sub { color: var(--sub); font-size: .86rem; }
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: .9rem; margin: 0; }
.dl dt { color: var(--sub); white-space: nowrap; }
.dl dd { margin: 0; }
.more { font-size: .88rem; font-weight: 700; color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--line); justify-self: start; }
.more::after { content: " →"; }

/* 見学・応募 */
.join { background: var(--ink); color: #fff; }
.join__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.join .sec__en { color: var(--green-light); }
.join p { color: #c7d3dc; font-size: .92rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: j; }
.steps li { counter-increment: j; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: .92rem; align-items: start; }
.steps li::before { content: counter(j); font-family: var(--f-mono); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--green-light); color: var(--green-light); display: grid; place-items: center; font-size: .74rem; }
.join__tel { font-size: .82rem; color: #9fb6c8; }

/* お知らせ */
.news { border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; text-decoration: none; }
.news a:hover span { color: var(--blue); text-decoration: underline; }
.news time { font-family: var(--f-mono); font-size: .8rem; color: var(--sub); }

/* 下の帯 */
.site-foot { background: var(--white); border-top: 1px solid var(--line); padding-block: 28px; font-size: .8rem; color: var(--sub); }
.site-foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- 携帯 ---------- */
@media (max-width: 900px) {
  .gnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .gnav a { color: var(--ink) !important; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .gnav .btn { margin-top: 10px; color: #fff !important; border-bottom: 0; }
  .gnav.is-open { display: flex; }
  .menu-btn { display: inline-block; }
  .hero__body { grid-template-columns: 1fr; padding-top: 84px; }
  .scope { order: -1; width: 100%; max-width: 320px; justify-self: center; margin-right: 0; }
  .hero__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__nums div:last-child { grid-column: 1 / -1; }
  .year { grid-template-columns: 1fr; }
  .year > div { border-right: 0; border-bottom: 1px solid var(--white); }
  .months { display: none; }
  .cards3, .split, .ortho, .two, .join__in, .site-foot__in { grid-template-columns: 1fr; }
  .pcard--face { grid-template-columns: 38% minmax(0, 1fr); align-items: center; }
  .news a { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ======================================================================
   下層ページ
   ====================================================================== */
.phero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 85% 0, #1c4466 0, #0f2438 50%, var(--deep) 100%); }
.phero::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px; }
.phero::after { content: ""; position: absolute; right: -80px; top: 50%; width: 320px; height: 320px; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 255, 255, .55) 0 .5deg, transparent .5deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 70%, transparent 70.5%);
          mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 70%, transparent 70.5%); opacity: .5; }
.phero__in { position: relative; padding-block: clamp(36px, 6vw, 64px); display: grid; gap: 10px; }
.phero__en { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; color: var(--green-light); }
.phero h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.phero p { color: #b9c9d6; max-width: 40em; font-size: .95rem; }
.crumbs { font-size: .76rem; color: var(--sub); padding-block: 10px; border-bottom: 1px solid var(--line); background: var(--white); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "／"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }

.prose { max-width: 46em; display: grid; gap: 1em; }
.prose h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-top: .8em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.06rem; margin-top: .6em; color: var(--blue); }
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; display: grid; gap: .3em; }
.prose figure { margin: .4em 0; }
.prose figcaption { font-size: .78rem; color: var(--sub); margin-top: 6px; }
.prose .lead { font-size: 1.02rem; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: .4em 0; }
.figs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.figs figure { margin: 0; }

/* 「研修のポイント」などの、番号つきの段（写真と文） */
.point { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(18px, 4vw, 40px); align-items: start; padding-block: clamp(26px, 4vw, 40px); border-top: 1px solid var(--line); }
.point:first-of-type { border-top: 0; }
.point__no { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .18em; color: var(--green); }
.point h2, .point h3 { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 4px 0 10px; }
.point p + p { margin-top: .8em; }
.point__img img { width: 100%; border-radius: var(--radius); }
.point__img .figs { margin: 0; }
.point--rev .point__img { order: 2; }

/* 施設 */
.fac { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 4vw, 40px); align-items: start; padding-block: clamp(26px, 4vw, 40px); border-top: 1px solid var(--line); }
.fac:first-of-type { border-top: 0; }
.fac img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.fac__kind { display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: .74rem; color: var(--blue); }
.fac__kind b { font-family: var(--f-body); background: var(--blue); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: .74rem; }
.fac h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 6px 0 10px; }
.fac ul { margin: 0; padding-left: 1.2em; display: grid; gap: 2px; font-size: .92rem; }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.tbl th { background: var(--paper); white-space: nowrap; font-weight: 700; width: 9em; }
.tblwrap { overflow-x: auto; }

/* 囲み */
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 6px; padding: 14px 16px; display: grid; gap: 6px; }
.callout--warn { border-left-color: #b4531a; }
.callout b { color: var(--blue); }

/* ページの下の「見学・応募」 */
.cta { background: var(--ink); color: #fff; }
.cta__in { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-block: clamp(30px, 5vw, 46px); }
.cta h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.cta p { color: #c7d3dc; font-size: .9rem; }

@media (max-width: 900px) {
  .point, .fac { grid-template-columns: 1fr; }
  .point--rev .point__img { order: 0; }
  .phero::after { width: 220px; height: 220px; right: -90px; }
}
.point--text { grid-template-columns: minmax(0, 46em); }
.sec__head + .point, .sec__head + .fac { border-top: 0; padding-top: 0; }

/* お知らせの記事 */
.post figure img { border-radius: 6px; max-height: 520px; width: auto; }
.postnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 36px; max-width: 46em; }
.postnav a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: .86rem; background: var(--white); }
.postnav a:hover { border-color: var(--blue); }
.postnav small { font-size: .7rem; color: var(--sub); }
.tag-ended { font-style: normal; font-size: .7rem; margin-left: 8px; padding: 0 8px; border-radius: 999px; border: 1px solid #b4531a; color: #b4531a; white-space: nowrap; }
@media (max-width: 640px) { .postnav { grid-template-columns: 1fr; } }

/* SEO：見出しに地名と「歯科医師臨床研修」を入れる（2026-10-13 院長「SEO対策をして」） */
.hero__title .l0 { display: block; font-family: var(--f-body); font-size: .86rem; font-weight: 700; letter-spacing: .08em; color: var(--green-light); margin-bottom: 14px; }
/* よくある質問 */
.faq { display: grid; gap: 10px; max-width: 52em; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--green); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding-bottom: 16px; color: var(--sub); font-size: .92rem; }
