@font-face {
    font-family: "craftmincho";
    src: url("../font/craftmincho.ttf") format("truetype");
    src: url("../font/craftmincho.woff") format("woff");
}

body {
    padding-top: 20px;
    background-color: #f0fffe;
    font-family: 'craftmincho';
    color: #333;
}
body.fullscreen {
    background-color: black;
}
body.fullscreen #video,
body.fullscreen #overlay {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

body.fullscreen #overlay {
    z-index: 2;
}

.fixed-controls {
    z-index: 3;
}
#video {
    width: 100%;
    height: 0px;
}
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
.canvas-container {
    position: relative;
}

h1 {
    position: relative;
    padding: 1.5rem 1.5rem calc(1.5rem + 10px);
    border: 2px solid #000;
    background-color: #ffffff;
}

h1:before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    content: '';
    border-top: 2px solid #000;
    background-image: -webkit-repeating-linear-gradient(135deg, #000, #000 1px, transparent 2px, transparent 5px);
    background-image: repeating-linear-gradient(-45deg, #000, #000 1px, transparent 2px, transparent 5px);
    background-size: 7px 7px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.button {
    background-color: #e6715c;
    border: none;
    color: white;
    padding: 10px 2px;
    text-align: center;
    font-size: 15px;
    margin: 10px 5px;
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 22px;
}

.button {
    box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
}
.box17 {
    margin: 0em 0 2em 0;
    position: relative;
    padding: 0.5em 1em;
    border-top: solid 2px black;
    border-bottom: solid 2px black;
}
.heading04 {
    margin-top: 22px;
    font-size: 34px;
    text-align: center;
}

.description {
    text-align: center;
    font-size: 20px;
    margin: 6px;
}

.camera_func {
    display: none;
    justify-content: center;
    gap: 10px;
}

.camera_func .button {
    background-color: #5e74f3;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    padding: 0;
    font-size: 1rem;
}
.button_area{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.7);
}
.cam_button {
    background-color: #3488af;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 1.2rem;
    margin: 0px 0;
    width: 100%;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 22px;
}
.fixed-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    z-index: 2;
    display: none;
}

.fixed-controls.show {
    display: flex;
}

.slider-container {
    position: fixed;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    color: white;
    width: 80%;
    text-align: center;
    margin-bottom: 15px;
}

#image-width-slider,
#image-height-slider,
#bubble-position-slider,
#text-position-slider,
#font-size-slider {
    width: 100%;
}

/* 動画撮影中のボタンの色変更とアニメーション */
#capture-video.recording {
    background-color: red; /* 録画中のボタン色 */
    color: white;
    position: relative;
    overflow: hidden;
}

#capture-video.recording::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}


@media (min-width: 1024px) {
    #video, #overlay, .slider-container, #fixed-controls,#overlay {
        
        width: 100% !important;
        height: auto;
        margin: 0 auto;
    }
    #video{
        height: none;
    }

    .slider-container {
        width: 50% !important;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.qr_area {
    font-size: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* テキストを中央に */
  }
  
  .qr_area img {
    margin-top: 20px; /* 画像に余白を追加 */
    margin-bottom: 20px; /* 画像に余白を追加 */
  }
.caputure_area {
    display: none;
    width: 60px;
    position: fixed;
    z-index: 10;
    bottom: 15%;
    right: 20px;
}

.button2 {
    background-color: #5c7ce6;
    border: none;
    color: white;
    padding: 10px 2px;
    text-align: center;
    font-size: 15px;
    margin: 2px 5px;
    width: 60px;
    height: 60px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.container a {
    color: rgb(197, 205, 240);
    /* text-decoration: none; */
}