* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        "Yu Gothic",
        "Meiryo",
        sans-serif;

    background: #f4f6f8;

    text-align: center;
}

#aiyou-app {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* =========================
   AI You表示エリア
   ========================= */

#stage {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #ffffff;
}

/* 背景 */

#backgroundImage {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}

/* Three.js */

#three-canvas {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    z-index: 2;
}

/* Three.js Canvas */

#three-canvas canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;
}

/* 名前 */

#profile {
    position: absolute;

    left: 20px;
    top: 20px;

    z-index: 3;

    text-align: left;

    color: #ffffff;

    background:
        rgba(0, 0, 0, 0.55);

    padding: 10px 18px;

    border-radius: 10px;
}

#aiName {
    font-size: 24px;
    font-weight: bold;
}

#aiRole {
    margin-top: 4px;
    font-size: 15px;
}

/* =========================
   操作部分
   ========================= */

.controls {
    padding-top: 12px;
}

button {
    font-size: 18px;

    padding: 10px 24px;

    margin: 5px;

    cursor: pointer;

    border-radius: 8px;

    border: 1px solid #999;
}

#result {
    margin: 10px;

    min-height: 28px;

    font-weight: bold;
}

#response {
    width: 94%;
    max-width: 850px;

    padding: 10px;

    font-size: 16px;
}

.back {
    margin: 15px 0 30px 0;
}

/* =========================
   スマートフォン
   ========================= */

@media (max-width: 600px) {

    #stage {
        aspect-ratio: 4 / 5;
    }

    #profile {
        left: 10px;
        top: 10px;

        padding: 7px 12px;
    }

    #aiName {
        font-size: 18px;
    }

    #aiRole {
        font-size: 12px;
    }

    button {
        font-size: 16px;
        padding: 9px 15px;
    }
}