/* Important Notice Section */
.important_notice_container {
    margin: 30px auto 40px;
    max-width: 950px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    padding-top: 15px;
}

/* Special width for water area screen */
#item_water_area .important_notice_container {
    max-width: 900px;
}

.important_notice_header {
    position: absolute;
    top: -5px;
    left: 40px;
    background: #fcebba;
    padding: 0 20px;
    color: #FF0000;
    font-size: 30px;
    font-weight: bold;
    font-family: 'M PLUS 1', Hiragino Sans, Hiragino Kaku Gothic ProN, Arial, Yu Gothic, Meiryo, sans-serif;
    z-index: 1;
}

.important_notice_content {
    border: 2px solid #FF0000;
    border-radius: 8px;
    padding: 25px 40px 20px;
    background: transparent;
}

.notice_date {
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: -1px;
}

.notice_text {
    color: #FF0000;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.4;
}

.notice_highlight {
    color: #FF0000;
}

.notice_link {
    margin-top: 0px;
}

.notice_link a {
    color: #0070c0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 23px;
    font-weight: normal;
}

.notice_link a .link_text {
    text-decoration: underline;
}

.notice_link a::before {
    content: "▶";
    color: #FF7F00;
    font-size: 16px;
    margin-right: 8px;
    text-decoration: none;
}

.notice_link a:hover {
    text-decoration: none;
}

.notice_link a:hover .link_text {
    text-decoration: underline;
}

.external_link_icon::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='23'%20height='23'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23808080'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6'%3E%3C/path%3E%3Cpolyline%20points='15%203%2021%203%2021%209'%3E%3C/polyline%3E%3Cline%20x1='10'%20y1='14'%20x2='21'%20y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* ========================================
   RESPONSIVE STYLES
======================================== */

/* iPad Pro */
@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .important_notice_header {
        padding: 0 20px;
        left: 30px;
    }
    
    .important_notice_content {
        padding: 20px 30px 15px;
    }
    
    .notice_date {
        font-size: 18px;
    }
    
    .notice_text,
    .notice_link a {
        font-size: 20px;
    }
    
    .notice_link a::before {
        font-size: 14px;
    }
    
    .external_link_icon::after {
        width: 20px;
        height: 20px;
    }
}

/* Surface Pro 7 */
@media screen and (min-width: 912px) and (max-width: 1023px) and (orientation: portrait) {
    .important_notice_header {
        padding: 0 20px;
        left: 30px;
    }
    
    .important_notice_content {
        padding: 20px 30px 15px;
    }
    
    .notice_date {
        font-size: 18px;
    }
    
    .notice_text,
    .notice_link a {
        font-size: 20px;
    }
    
    .notice_link a::before {
        font-size: 14px;
    }
    
    .external_link_icon::after {
        width: 20px;
        height: 20px;
    }
}

/* Asus Zenbook Fold */
@media screen and (min-width: 853px) and (max-width: 853px) and (orientation: portrait) {
    .important_notice_header {
        padding: 0 20px;
        left: 30px;
    }
    
    .important_notice_content {
        padding: 20px 30px 15px;
    }
    
    .notice_date {
        font-size: 18px;
    }
    
    .notice_text,
    .notice_link a {
        font-size: 20px;
    }
    
    .notice_link a::before {
        font-size: 14px;
    }
    
    .external_link_icon::after {
        width: 20px;
        height: 20px;
    }
}

/* iPad Air */
@media screen and (min-width: 820px) and (max-width: 1180px) and (orientation: portrait) {
    .important_notice_header {
        padding: 0 20px;
        left: 30px;
    }
    
    .important_notice_content {
        padding: 20px 30px 15px;
    }
    
    .notice_date {
        font-size: 18px;
    }
    
    .notice_text,
    .notice_link a {
        font-size: 20px;
    }
    
    .notice_link a::before {
        font-size: 14px;
    }
    
    .external_link_icon::after {
        width: 20px;
        height: 20px;
    }
}

/* Tablet General (fallback for other tablets) */
@media screen and (min-width: 768px) and (max-width: 819px) {
    .important_notice_header {
        padding: 0 20px;
        left: 30px;
    }
    
    .important_notice_content {
        padding: 20px 30px 15px;
    }
    
    .notice_date {
        font-size: 18px;
    }
    
    .notice_text,
    .notice_link a {
        font-size: 20px;
    }
    
    .notice_link a::before {
        font-size: 14px;
    }
    
    .external_link_icon::after {
        width: 20px;
        height: 20px;
    }
}

/* Start Mobile */
@media screen and (max-width: 767px) {
    .important_notice_container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .important_notice_header {
        font-size: 16px;
        padding: 0 5px;
        left: 20px;
        top: 5px;
    }
    
    .important_notice_content {
        padding: 15px 15px 12px;
    }
    
    .notice_date {
        font-size: 12px;
        margin-top: 0px;
    }
    
    .notice_text,
    .notice_link a {
        font-size: 13px;
    }
    
    .notice_link a::before {
        font-size: 11px;
    }
    
    .external_link_icon::after {
        width: 14px;
        height: 14px;
    }
}
/* End Mobile */
