/* ==========================================================================
   Base
   リセット・タイポグラフィ・基本要素
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    /* ページ内アンカー（section-jump-nav等の#へのリンク）や
       Element.scrollIntoView()呼び出し（clinic-result-pagination.js等）を、
       header.phpの.site-header（position:sticky）に隠れずスムーズにスクロールさせる。
       scroll-padding-topはscroll-behavior:smoothだけでなく、
       scrollIntoView()・アンカーの#ジャンプ双方に効く（window.scrollTo()の
       ような絶対座標指定には効かないため、そちらは呼び出し側でオフセットを計算する）。 */
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

@media (max-width: 900px) {
    html {
        /* .header-innerが900px以下でロゴ・ナビ縦積みになり高さが伸びるため、
           見出しが隠れないよう余裕を持って広げる（style_pc.css .header-inner参照）。 */
        scroll-padding-top: 160px;
    }
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--text);
    letter-spacing: .02em;
    line-height: 1.75;
}

/* 
img {
    max-width: 100%;
    height: auto;
    display: block;
} */

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.5;
    font-weight: bold;
}

p {
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

dl,
dd {
    margin: 0;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
    font-size: 0.8em;
    letter-spacing: 0.08em;
    color: #8E857E;
    margin-bottom: 8px;
}

select,
input[type="checkbox"],
input[type="radio"] {
    font-family: inherit;
    font-size: inherit;
}

select {
    padding: 8px 12px;
    border: 1px solid #EFEAE6;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #5D524B;
}