@charset "UTF-8";

/**
 * スプラッシュ画面
 * html.mg-splash-on のときだけ表示（JS無効時は表示しない）
 */

:root {
    --mg-splash-symbol-size: min(60vw, 280px); /* シンボルの表示幅 */
    --mg-splash-mask-width: 56px;              /* マスク線の太さ（SVG座標。かすれの縁が欠けるなら太く） */
    --mg-splash-bar-color: #004d9f;
    --mg-splash-bar-height: 4px;
}

.mg-splash {
    display: none;
}

html.mg-splash-on {
    overflow: hidden;
}

html.mg-splash-on .mg-splash {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #fff;
}

.mg-splash__stage {
    display: grid;
    place-items: center;
}

.mg-splash__symbol {
    position: relative;
    width: var(--mg-splash-symbol-size);
    aspect-ratio: 1;
}

.mg-splash__stroke {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
}

/* マスク用の線（白い部分だけかすれ画像が見える） */
.mg-splash__mask-lines * {
    fill: none;
    stroke: #fff;
    stroke-width: var(--mg-splash-mask-width);
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ローディングバー */
.mg-splash__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mg-splash-bar-height);
}

.mg-splash__bar-inner {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--mg-splash-bar-color);
    transform: scaleX(0);
    transform-origin: left center;
}
