.head {
    padding: 10px 20px;
    border-bottom: 1px solid gray;
    position: fixed;
    z-index: 15;
    top: 60px;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    height: 60px;
    justify-content: end;
    align-items: center;
    background: #fff;
    select {
        border: 1px solid #000;
        height: 40px;
        padding: 10px;
    }
    button {
        border: 1px solid #000;
        background: #000;
        width: 40px;
        height: 40px;
        font-size: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        img {
            width: 30px;
            height: auto;
            filter: invert(1);
        }
    }
}

/**/
.contentsall {
    margin-top: 120px;
    padding: 10px;
    display: flex;
    position: relative;
    height: auto;
    h3 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
        margin-top: 30px;
        padding: 10px;
        background: #000;
        color: #fff;
        img {
            width: 30px;
            height: 30px;
            filter: invert(1);
        }
    }
    .menumain {
        width: calc(100% - 430px);
        padding: 10px;
    }
    .preview {
        border: 1px solid gray;
        width: 400px;
        height: auto;
        position: fixed;
        top: 140px;
        right: 20px;
        aspect-ratio: 3 / 4;
        margin-left: auto;
        background-size: cover;
    }

    input[type=text],
    textarea {
        padding: 10px;
        width: 100%;
        border: 1px solid #000;
        font-size: 16px;
    }
    textarea {
        height: 100px;
        resize: vertical;
    }
    input[type=radio], textarea {
        &:disabled {
            background: rgb(223, 223, 223);
            opacity: 0.5;
        }
    }
    .radios:has(input[type=radio]:disabled) {
        opacity: 0.5;
    }
}
hr {
    border: none;
    border-top: 1px solid gray;
    margin-top: 10px;
    margin-bottom: 10px;
}
.common-data {
    display: flex;
    gap: 10px;
    input, select {
        border: 1px solid #000;
        width: 100%;
        height: 40px;
        padding: 5px 10px;
        background: #fff;
    }
    div {
        width: 100%;
    }
    p {
        padding: 0;
        margin: 0;
        margin-bottom: 5px;
        font-weight: 900;
        display: flex;
        gap: 5px;
        align-items: center;
        img {
            width: 15px;
            height: auto;
        }
    }
}

.radios {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    img {
        width: 15px;
    }
    * {
        margin: 0;
    }
    label {
        display: flex;
        align-items: center;
        gap: 5px;
    }
}
.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    * {
        margin: 0;
    }
    label {
        display: flex;
        margin: 0;
        padding: 0;
        gap: 10px;
        align-items: center;
        &:last-child {
            margin-bottom: 10px;
        }
    }
}

.font-select {
    .select-options {
        li {
            &:nth-child(1) {
                font-family: 'Noto sans JP';
            }
            &:nth-child(2) {
                font-family: 'M PLUS 1';
            }
            &:nth-child(3) {
                font-family: 'Noto serif JP';
            }
            &:nth-child(4) {
                font-family: 'LINE Seed JP';
            }
        }
    }
}

.fav {
    label {
        display: flex;
        align-items: center;
    }
    .favou {
        margin-bottom: 15px;
        &:last-child {
            margin-bottom: 0;
        }
    }
    .favin {
        display: flex;
        flex-wrap: wrap;
        label {
            width: 100px;
        }
    }
}

.ctc {
    border: 1px solid #000;
    padding: 10px;
    min-height: 120px;
    position: relative;
}

.ctc::before {
    content: attr(data-placeholder);
    position: absolute;
    color: gray;
    pointer-events: none;
}

.ctc:not(:empty)::before {
    content: "";
}


.ininfo {
    font-weight: 700;
    margin: 0;
    margin-bottom: 10px;
    font-size: 18px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 15px;
    &::before {
        content: '';
        width: 10px;
        height: 10px;
        background: #000;
        position: absolute;
        border-radius: 100px;
        left: 0;
    }
}

.inputlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.llcheck {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    * {
        margin: 0;
    }
}

/**/
.activity-radio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: fit-content;
    * {
        margin: 0;
    }
    .activity-type {
        margin-top: 15px;
        margin-bottom: 10px;
        font-weight: 800;
        color: gray;
        text-align: center;
    }
}
.inactivity {
    display: flex;
    align-items: center;
    p {
        font-size: 10px;
        font-weight: 700;
        background: #000;
        color: #fff;
        padding: 5px;
        margin: 0;
        height: 30px !important;
        width: 65px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
.activity-radio-d {
    display: flex;
    padding: 0 10px;
    input[type="radio"] {
        border-radius: 0 !important;
        height: 30px !important;
        width: 30px !important;
    }
    input[type="radio"]:checked::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        background-color: none;
        background: #4285f4;
        border-radius: 0 !important;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease-in-out;
    }
}

@media (max-width: 768px) {
    .contentsall {
        padding: 10px !important;
    }
    .preview {
        display: none;
    }
    .menumain {
        width: 100% !important;
    }
    .common-data {
        display: grid;
    }
    .inactivity {
        justify-content: center;
    }
    .activity-radio {
        display: flex;
        align-items: center;
        width: 100%;
    }
}

.contents-data {
    aspect-ratio: 3 / 4;
    width: 1200px;
    /*プレビューの3倍サイズ*/
    background-size: cover;
    position: fixed;
    z-index: 1;
    left: -1200px;

}

.st {
    h3 span {
        font-size: 16px;
        margin-left: 3px;
    }
}

.special-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    img {
        width: 20px;
        filter: invert(1);
    }
}

/**/
.menudiv {
    display: flex;
    gap: 10px;
    button, a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #000;
        text-decoration: none;
        width: 100%;
        height: 150px;
        border: none;
        color: #fff !important;
        font-weight: 900;
        img {
            width: 50px;
            border: none;
            filter: invert(1);
        }
    }
}
.menudiv2 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    button, a {
        display: flex;
        align-items: center;
        border: none;
        width: 100%;
        background: #000;
        display: flex;
        gap: 10px;
        color: #fff !important;
        padding: 10px 20px;
        font-weight: 800;
        img {
            width: 25px;
            height: auto;
            margin: 0;
            padding: 0;
            border: none;
            filter: invert(1);
        }
    }
}

/**/
#previewmode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: none;
    overflow: hidden;
    touch-action: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#previewmode-overlay.previewmode-show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

#previewmode-container {
    position: absolute;
    width: 600px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    left: 50%;
    top: 50%;
}

#previewmode-overlay.previewmode-show #previewmode-container {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

#previewmode-container:active {
    cursor: grabbing;
}

#previewmode-image {
    width: 600px;
    height: auto;
    display: block;
    pointer-events: none;
}

#previewmode-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(124, 124, 124, 0.7);
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: sans-serif;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

#previewmode-loading-overlay.previewmode-show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.previewmode-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: previewmode-spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes previewmode-spin {
    to { transform: rotate(360deg); }
}

#previewmode-loading-overlay span {
    font-size: 18px;
    letter-spacing: 1px;
}

/**/
.action-section {
    padding: 0px 20px;
    padding-bottom: 20px;
    border-top: 1px solid gray;
    h3 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
        margin-top: 30px;
        padding: 10px;
        background: #000;
        color: #fff;
        img {
            width: 30px;
            height: 30px;
            filter: invert(1);
        }
    }
}
.a-btnlist {
    display: flex;
    gap: 10px;
    justify-content: center;
    button {
        border: 1px solid #000;
        font-size: 20px;
        font-weight: 900;
        background: #fff;
        height: 80px;
        width: 200px;
        gap: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        img {
            width: 25px;
            height: auto;
            margin: 0;
        }
    }
}

@media (max-width: 768px) {
    .a-btnlist {
        display: flex;
        flex-direction: column;
        button {
            width: 100%;
        }
    }
}
.ininfobtn {
    display: flex;
    align-items: center;
    gap: 10px;
    button {
        background: #000;
        color: #fff;
        border: 0;
        padding: 3px 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        img {
            width: 15px;
            height: auto;
            filter: invert(1);
        }
    }
}

.prebtn {
    background: #000;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    img {
        width: 23px;
        height: auto;
        filter: invert(1);
        border: none;
        margin: 0;
    }
}