@charset "UTF-8";
/* 医療関係者確認モーダル：共通CSS */
html:not(.medical-check-confirmed),
html:not(.medical-check-confirmed) body {
    overflow: hidden !important;
}
/* JS初期化前・無効時はサイト側を操作できない状態にする。 */
html:not(.medical-check-confirmed):not(.medical-check-ready) body > :not(#medical-check-gate) {
    display: none !important;
}
#medical-check-gate {
    --medical-check-accent: #0099d6;
    --medical-check-secondary: #666;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    width: calc(100% - 40px);
    max-width: 940px;
    height: fit-content;
    max-height: calc(100% - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 40px 45px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #666;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.8;
    z-index: 2147483647;
}
#medical-check-gate.medical-check--fibroscan { --medical-check-accent: #d9492b; }
#medical-check-gate::backdrop { background: rgba(0, 0, 0, .65); }
html:not(.medical-check-ready) #medical-check-gate[open] { box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .65); }
#medical-check-gate:not([open]), html.medical-check-confirmed #medical-check-gate { display: none !important; }
#medical-check-gate *, #medical-check-gate *::before, #medical-check-gate *::after { box-sizing: border-box; }
#medical-check-gate .medical-check__brand { margin: 0 auto 24px; }
#medical-check-gate .medical-check__brand img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
#medical-check-gate .medical-check__subtitle { width: 315px; margin-bottom: 14px !important; }
#medical-check-gate .medical-check__logo { width: 360px; }
#medical-check-gate .medical-check__notice { margin: 0 0 24px; padding: 0; font-size: 15px; line-height: 1.9; color: inherit; }
#medical-check-gate .medical-check__title { margin: 0 0 20px; padding: 0; border: 0; background: none; color: inherit; font-size: 20px; font-weight: 700; line-height: 1.5; }
#medical-check-gate .medical-check__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 24px; }
#medical-check-gate .medical-check__action { display: flex; flex-direction: column; min-width: 0; }
#medical-check-gate .medical-check__label { margin: 0 0 10px; padding: 0; font-size: 16px; font-weight: 700; color: inherit; }
#medical-check-gate .medical-check__button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 90px; margin: 0; padding: 12px; border: 0; border-radius: 6px; background: var(--medical-check-secondary); color: #fff; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; transition: opacity .2s; }
#medical-check-gate .medical-check__button--yes { background: var(--medical-check-accent); }
#medical-check-gate .medical-check__button:hover { opacity: .85; }
#medical-check-gate .medical-check__button:focus-visible { outline: 3px solid #222; outline-offset: 3px; }
#medical-check-gate .medical-check__narrow { display: none; }
#medical-check-gate .medical-check__error { margin: 16px 0 0; padding: 0; color: #b32718; font-size: 14px; }
#medical-check-gate [hidden] { display: none !important; }
@media (max-width: 767px) {
    #medical-check-gate { width: calc(100% - 24px); max-height: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 26px 20px; }
    #medical-check-gate .medical-check__brand { margin-bottom: 18px; }
    #medical-check-gate .medical-check__subtitle { width: 265px; }
    #medical-check-gate .medical-check__logo { width: 171px; /* 従来の60% */ }
    #medical-check-gate .medical-check__notice { font-size: 13px; text-align: left; margin-bottom: 20px; }
    #medical-check-gate .medical-check__title { font-size: 17px; margin-bottom: 16px; }
    #medical-check-gate .medical-check__actions { grid-template-columns: minmax(0, 340px); gap: 18px; }
    #medical-check-gate .medical-check__label { font-size: 14px; margin-bottom: 6px; }
    #medical-check-gate .medical-check__button { min-height: 70px; font-size: 14px; }
    #medical-check-gate .medical-check__error { font-size: 13px; }
    #medical-check-gate .medical-check__wide { display: none; }
    #medical-check-gate .medical-check__narrow { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
    #medical-check-gate .medical-check__button { transition: none; }
}

/* 初期フォーカス時の見出しの枠線のみ非表示（ボタンのフォーカス表示は維持） */
#medical-check-gate #medical-check-title:focus {
    outline: none;
}
