.u-none {
    display: inline !important;
}


/* google translationのcss */
a.switcher-popup.glink.nturl.notranslate {
    z-index: 111111;
    display: block;
    background: #040404;
    color: #ffffff;
    margin: 0 auto 0 0;
    text-align: right;
}

.unaginohi-message {
    background-color: rgb(226, 226, 226);
    padding: 30px;
    text-align: center;
    margin: 30px auto;
    font-size: 18px;
    font-weight: bold;
}

.take_alert {
    width: 98%;
    max-width: 400px;
    margin: 0 auto;
}

.take_alert_content {
    background-color: rgb(255, 205, 68);
    color: rgb(0, 0, 0);
    border: black 3px solid;
    padding: 3px 5px 20px;
    margin: 20px auto 20px auto;
    font-weight: bold;
    font-size: 1.2rem;
}

.take_alert_h3 {
    font-size: 1.6rem;
    color: rgb(255, 82, 82);
    text-align: center;
    margin: 5px 0 5px 0;

}

.take_alert_hr {
    border-color: rgb(255, 82, 82);
    margin-bottom: 10px;
}




/* Centering text and setting display block */
.store_check {
    display: block;
    text-align: center;
    margin: 0 auto;
}


input#order-confirmation {
    display: block;
    margin: 17px auto;
    width: 30px;
    height: 30px;
}

.u-form-group.u-form-checkbox.u-label-top.u-block-5339-74 {
    margin: 0 auto;
    text-align: center;
}

.store-selection-message {
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
}


#store_news {
    background-image: url('https://unagi-nosuke.com/wp-content/uploads/2024/07/pixta_80440807_M.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#store_news::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(239 239 239 / 90%);
    /* 黒い半透明オーバーレイ */
    z-index: 1;
    /* 背景画像の上にオーバーレイを配置 */
}

#store_news>* {
    position: relative;
    z-index: 2;
    /* コンテンツをオーバーレイの上に配置 */
}

.store_news_wrapper {
    max-width: 760px;
    margin: 20px auto;
    padding: 2px 10px 20px 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store_news_h3 {
    font-size: 27px;
    color: #333;
    margin: 10px 0 5px 0;
    text-align: center;
}

.store_news_hr {
    border: none;
    height: 5px;
    background-color: #000000;
    margin: 15px 0;
    width: 57px;
    margin: 13px auto;
}

.store_news_content {
    font-size: 17px;
    line-height: 1.6;
    color: #2d2d2d;
    padding: 15px;
    text-align: center;
}

.campaign_period {
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
    color: #881313;
    text-decoration: underline;
    padding: 15px;
    font-style: italic;
}


.display_none {
    display: none !important;
}

.session-error-message {
    background-color: #fff5f5;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.session-error-message p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.session-error-message p:first-child {
    font-weight: bold;
    color: #ff4757;
    font-size: 18px;
}

.session-error-message a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.session-error-message a:hover {
    background-color: #357abd;
}


.og_icon {
    width: 90px;
    margin: 0 auto;
    display: block;
}




/* ここからimg_up.php用 */

.upload-form-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}

.upload-form-wrapper h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Upload form styles */
.upload-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.upload-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-form label {
    font-weight: bold;
    color: #555;
}

.upload-form input[type="file"] {
    border: 2px dashed #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #f9f9f9;
}

.upload-form button {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.upload-form button:hover {
    background: #45a049;
}

/* Gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 常に4列 */
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item input[type="radio"] {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

.gallery-item label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.gallery-item label::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.gallery-item label::after {
    content: '✓';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    color: white;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item input[type="radio"]:checked+label::before {
    background: #4CAF50;
    border-color: #4CAF50;
}

.gallery-item input[type="radio"]:checked+label::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item input[type="radio"]:checked+label {
    outline: 4px solid #4CAF50;
}

/* Pagination styles */
.pagination {
    text-align: center;
    margin: 30px 0;
}

#loadMore {
    background: #2196F3;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#loadMore:hover {
    background: #1976D2;
}

/* Copy section styles */
.copy-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.copy-section label {
    display: block;
    margin: 10px 0;
    color: #555;
}

.copy-section input[type="radio"] {
    margin-right: 8px;
}

#copyButton {
    background: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 10px 0;
    transition: background-color 0.3s;
}

#copyButton:hover {
    background: #1976D2;
}

#copyResult {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-family: monospace;
}

/* Responsive design */
@media screen and (max-width: 768px) {


    .gallery {
        gap: 10px;
        /* ギャップを小さく */
    }

    .upload-form {
        padding: 15px;
    }

    .upload-form button {
        padding: 10px 15px;
    }

    .copy-section {
        padding: 15px;
    }

    #copyButton {
        width: 100%;
    }

    #copyResult {
        height: 60px;
    }

    .gallery-item label::before,
    .gallery-item label::after {
        width: 18px;
        height: 18px;
        top: 8px;
        left: 8px;
    }

    .gallery-item label::after {
        font-size: 12px;
        line-height: 18px;
    }
}

@media screen and (max-width: 480px) {
    .gallery {
        gap: 8px;
        /* さらにギャップを小さく */
    }

    h1 {
        font-size: 24px;
    }

    .upload-form label,
    .copy-section label {
        font-size: 14px;
    }

    .gallery-item label::before,
    .gallery-item label::after {
        width: 16px;
        height: 16px;
        top: 6px;
        left: 6px;
    }

    .gallery-item label::after {
        font-size: 11px;
        line-height: 16px;
    }
}

/* ここまでimg_up.php用 */
