@charset "UTF-8";

@font-face {
    font-family: "M PLUS Rounded 1c";
    font-weight: 400;
    src: url(../screens/assets/fonts/MPLUSRounded1c-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "M PLUS Rounded 1c";
    font-weight: 500;
    src: url(../screens/assets/fonts/MPLUSRounded1c-Medium.ttf) format("truetype");
}

@font-face {
    font-family: "M PLUS Rounded 1c";
    font-weight: 700;
    src: url(../screens/assets/fonts/MPLUSRounded1c-Bold.ttf) format("truetype");
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    /* background-color: #f0f0f0; */
    background-color: #ffffff;
    flex-direction: column;
}

#controls {
    display: flex;
    flex-direction: column;
}

#modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.modal-content {
    max-height: 95vh;
    min-height: 200px;
    position: relative;
    margin: auto;
    background-color: white;
    color: black;
    border-radius: 15px;
    max-width: 60%;
    text-align: center;
    border: solid 3px rgb(192, 192, 192);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.7);
    font-size: 120%;
}

.button-row {
    justify-content: space-between;
    gap: 10px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
}

.modal-content button.close {
    position: absolute;
    /* 親要素の位置を基準に絶対位置に配置 */
    top: -12px;
    /* モーダルの上部から少し外れる位置 */
    right: -12px;
    /* モーダルの右端から少し外れる位置 */
    opacity: 1;
    /* 透明度を初期状態に戻す */
    z-index: 1020;
    /* 他の要素の上に表示されるように */
}

.close {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    /* 初期状態で少し透明に */
    padding: 0;
    background-color: transparent;
    border: 0;
    z-index: 1020;
    /* モーダルよりも上に表示 */
}

/* 説明のモーダル */

/* パーツ説明の大元の要素 */
#parts-guide {
    display: flex;
    justify-content: center;
    /* 横中央 */
    align-items: center;
    /* 縦中央 */
}

.box-a,
.box-b,
.box-c {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 18px;
    line-height: 1.25rem;
}

.box-a {
    width: 100%;
    height: 100%;
    padding-top: 20px;
}

.box-b,
.box-c {
    width: 512px;
    height: 432px;
    padding-top: 20px;
}

.box-flame {
    /* width: 508px;
    height: 428px; */
    /*border:2px solid #CCC;*/
    width: 100%;
}

.box-flame h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.box-flame p img {
    display: flex;
    max-width: 100%;
    /* 画像が親要素をはみ出さない */
    margin: 0 auto;
    /* 画像を中央揃え */
    padding: 10px;
}

.box-image-a {
    text-align: center;
}

.box-text-b {
    text-align: left;
    margin: 10px 40px;
}

/*画像1枚パターン*/

.box-text-a {
    width: 100%;
}

/*画像2枚パターン*/
.box-text-a-2 {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* SPスクロールガイド非表示 */
#sp-scroll-guide {
    display: none;
}
