@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: #fff0f7;
    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;
}
.button {
    /* width: 100%; */
    /* background-color: #f38d5e;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 1.2rem;
    margin: 10px 0;
    width: 100%;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; */
}
.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: #e6715c;
    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;
}

.cam_button {
    -webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
    box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
}
.cam_button {
    border: 2px dashed #000;
}
.pic_button {
    background-color: #48a3ee;
    border: none;
    color: white;
    padding: 10px 2px;
    text-align: center;
    font-size: 18px;
    margin: 10px 5px;
    width: 100%;
    /* height: 60px; */
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 22px;
}

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

.button {
    -webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
    box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
}
.button {
    border: 2px dashed #000;
}
.box17{
    margin:0em 0 2em 0;
    position: relative;
    padding: 0.5em 1em;
    border-top: solid 2px black;
    border-bottom: solid 2px black;
}
.box17:before, .box17:after{
    content: '';
    position: absolute;
    top: -10px;
    width: 2px;
    height: -webkit-calc(100% + 20px);
    height: calc(100% + 20px);
    background-color: black;
}
.box17:before {left: 10px;}
.box17:after {right: 10px;}
.box17 p {
    margin: 0; 
    padding: 0;
    font-size: 18px;
    line-height: 24px;
}
.heading04 {
    margin-top: 22px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 34px;
	text-align: center;
}

.heading04::before,
.heading04::after {
	content: '';
	width: 3px;
	height: 40px;
	background-color: #3fc1c9;
}

.heading04::before {
	margin-right: 30px;
	transform: rotate(-35deg)
}
.heading04::after {
	margin-left: 30px;
	transform: rotate(35deg)
}
a.btn-border {
    border: 2px solid #000;
    border-radius: 0;
    background: #fff;
    width: 60%;
    -webkit-transform-style: preserve-3d;
    margin: 22px auto;
    transform-style: preserve-3d;
}

a.btn-border:before {
    position: absolute;
    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    content: '';
    -webkit-transition: all .3s;
    transition: all .3s;

    background: #000;
}

a.btn-border:hover {
    color: #fff;
    background: #000;
}

a.btn-border:hover:before {
    background: #fff;
}


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

.modal-dialog {
    display: flex;
    align-items: flex-end; /* モーダルを下に配置 */
    justify-content: center;
}
.camera_func{
    display: none;
}
.camera_func {
    display: none;
    
    justify-content: center;
    gap: 10px; /* ボタンの間隔を調整 */
}
.active{
    border: 2px dotted #696969;
}
.selectable-image{
    margin: 5px 7px;
}

.camera_func .button {
    background-color: #5e74f3;
    border-radius: 50%; /* ボタンを丸くする */
    width: 100px; /* ボタンのサイズを調整 */
    height: 100px;
    padding: 0;
    font-size: 1rem;
}
/* カメラ起動時に画面全体をカメラ表示にする */
body.fullscreen #video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* カメラ映像を全画面にフィットさせる */
    z-index: 1;
}

/* Fixedコントロールエリアのスタイル */
.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; /* 表示時にはフレックスで表示 */
}

/* メニューボタンのスタイル：右下に丸く配置 */
#toggle-fixed-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 100px;
    border-radius: 50%;
    background-color: #f38d5e;
    color: white;
    border: none;
    font-size: 17px;
    text-align: center;
    /* line-height: 60px; */
    z-index: 3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* transition: all 0.3s ease; */
}

/* 閉じるボタンのスタイル */
.close-button {
    position: absolute;
    top: -40px;
    right: 10px;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    cursor: pointer;
}
.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%;
}
@media (min-width: 1024px) {
    #video, #overlay, .slider-container, #fixed-controls,#overlay {
        display: none;
        width: 100% !important; /* PCでの固定幅を指定 */
        height: auto; /* 高さは自動調整 */
        margin: 0 auto; /* 中央に配置 */
    }
    
    #fixed-controls {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

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

.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; /* 画像に余白を追加 */
  }

/* ポップアップのスタイル */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    z-index: 100; /* 最前面に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4); /* 背景を半透明に */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 80%;
    text-align: center;
    border-radius: 10px;
}
.form-control{
    height: 100px !important;
    font-size: 0.8rem;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.caputure_area{
    display: none;
    width: 60px;
    position: fixed;
    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;
}
.modal-backdrop.show{
    display: none;
}

/* 動画撮影中のボタンの色変更とアニメーション */
#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;
}

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; */
}

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


/* モバイル向けのスタイル */
@media (max-width: 1023px) {
    /* #video {
        width: 100%;
        height: auto;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        z-index: 1;
    } */
}