/* =====================================================================
   reset.css — Mainavi DOCTOR 訪問診療特集 専用リセット
   ---------------------------------------------------------------------
   対象要素: html, body, main, header, footer, section, nav, article,
             div, span, h1–h3, p, a, img, svg, ul, li, dl, dt, dd,
             button, small, picture, source, br, table, blockquote, q
   ===================================================================== */

/* ----------------------------------------------------------------------------
   0) Box Sizing リセット
   ---------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------------------------------------------
   1) Document・Root
   ---------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%; /* iOS フォント拡大防止 */
  line-height: 1.5;               /* ベースの行高 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  tab-size: 4;
}

body {
  min-height: 100vh; /* フッター下揃え防止 */
}

/* ----------------------------------------------------------------------------
   2) Sectioning・Grouping 要素
   ---------------------------------------------------------------------------- */
main,
header,
footer,
section,
nav,
article {
  display: block; /* IE11 フォールバック */
}

/* ----------------------------------------------------------------------------
   3) Headings
   ---------------------------------------------------------------------------- */
h1, h2, h3 {
  font-size: inherit;
  font-weight: inherit;
}

/* ----------------------------------------------------------------------------
   4) Text・Inline
   ---------------------------------------------------------------------------- */
p {
  margin: 0;
}

small {
  font-size: inherit;
}

/* ----------------------------------------------------------------------------
   5) Links
   ---------------------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

/* ----------------------------------------------------------------------------
   6) Lists
   ---------------------------------------------------------------------------- */
ul, li {
  list-style: none;
}

/* ----------------------------------------------------------------------------
   7) Definition Lists (dl / dt / dd)
   ---------------------------------------------------------------------------- */
dl, dt, dd {
  margin: 0;
}

/* ----------------------------------------------------------------------------
   8) Images・Media
   ---------------------------------------------------------------------------- */
img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border-style: none; /* IE11 リンク画像の枠線防止 */
}

/* ----------------------------------------------------------------------------
   9) Buttons
   ---------------------------------------------------------------------------- */
button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ----------------------------------------------------------------------------
   10) Tables
   ---------------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ----------------------------------------------------------------------------
   11) Quotes
   ---------------------------------------------------------------------------- */
blockquote, q {
  quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}

/* ----------------------------------------------------------------------------
   12) Accessibility
   ---------------------------------------------------------------------------- */

/* キーボードフォーカスのアウトラインをリンク・ボタンのみに限定 */
:focus:not(:focus-visible) {
  outline: none;
}

/* スクリーンリーダー専用の非表示クラス */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
