/* ==============================================
   GOODS PAGE STYLES - GFEST.2025
   ============================================== */

/* Hero Section */
.goods-hero {
    padding: 50px 20px 50px;
    text-align: center;
    background: linear-gradient(135deg, #FF7F00 0%, #E66400 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.goods-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 170, 51, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 166, 77, 0.3) 0%, transparent 50%);
    z-index: 0;
}

.goods-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.goods-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

/* Info Section */
.goods-info-section {
    padding: 60px 20px;
    background: white;
}

.goods-info-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.goods-info-title {
    font-size: 2rem;
    font-weight: 900;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.goods-info-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.goods-info-subtitle {
    font-size: 1.3rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.goods-info-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Noto Sans JP', sans-serif;
}

.goods-info-notes {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Goods Items Section */
.goods-items-section {
    padding: 80px 20px 100px;
    background: white;
}

.goods-items-section .container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    animation: fadeIn 0.6s ease-out;
    justify-items: stretch;
    align-items: start;
}

/* Goods Item Card */
.goods-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.goods-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 127, 0, 0.2);
}

.goods-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 正方形 */
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
}

.goods-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.goods-info {
    padding: 20px;
    background: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.goods-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0 0 10px 0;
    font-family: 'Noto Sans JP', sans-serif;
    overflow-wrap: break-word;
    min-height: 2.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #FF7F00;
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
}

.goods-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 8px 0 0 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */

/* Tablet (1024px-) */
@media (max-width: 1024px) {
    .goods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Mobile (768px-) */
@media (max-width: 768px) {
    .goods-hero {
        padding: 40px 20px 40px;
    }

    .goods-hero-title {
        font-size: 2.5rem;
        margin-bottom: 0;
    }

    .goods-info-section {
        padding: 50px 20px;
    }

    .goods-info-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .goods-info-content {
        padding: 30px 20px;
    }

    .goods-info-text {
        font-size: 1rem;
    }

    .goods-items-section {
        padding: 60px 20px 80px;
    }

    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .goods-name {
        font-size: 0.85rem;
        min-height: 2.55rem;
    }

    .goods-info {
        padding: 16px;
    }
}

/* Small Mobile (480px-) */
@media (max-width: 480px) {
    .goods-hero-title {
        font-size: 2rem;
    }

    .goods-info-title {
        font-size: 1.3rem;
    }

    .goods-info-content {
        padding: 25px 15px;
    }

    .goods-info-text {
        font-size: 0.95rem;
    }

    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .goods-info {
        padding: 12px;
    }

    .goods-name {
        font-size: 0.75rem;
        min-height: 2.25rem;
    }
}

/* Accessibility */
.goods-item:focus {
    outline: 3px solid #FF7F00;
    outline-offset: 3px;
}

.goods-item:focus-visible {
    outline: 3px solid #FF7F00;
    outline-offset: 3px;
}

/* Modal Styles */
.goods-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.goods-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.goods-modal-close {
    position: absolute;
    top: 20px;
    right: 60px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    z-index: 10001;
    color: #333;
    transition: all 0.3s ease;
    padding: 10px 0;
    padding-right: 35px;
}

.goods-modal-close::before,
.goods-modal-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #333;
    top: 50%;
    right: 0;
    transition: background-color 0.3s ease;
}

.goods-modal-close::before {
    transform: translateY(-50%) rotate(45deg);
}

.goods-modal-close::after {
    transform: translateY(-50%) rotate(-45deg);
}

.goods-modal-close:hover {
    color: #FF7F00;
}

.goods-modal-close:hover::before,
.goods-modal-close:hover::after {
    background-color: #FF7F00;
}

.goods-modal-body {
    display: flex;
    gap: 50px;
    padding: 60px 50px;
}

.goods-modal-slider-wrapper {
    flex: 1;
    max-width: 450px;
}

.goods-slider {
    width: 100%;
}

.goods-slider img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slick Slider Custom Styles */
.goods-slider .slick-prev,
.goods-slider .slick-next {
    width: 50px;
    height: 50px;
    z-index: 100;
}

.goods-slider .slick-prev {
    left: 15px;
}

.goods-slider .slick-next {
    right: 15px;
}

.goods-slider .slick-prev:before,
.goods-slider .slick-next:before {
    font-size: 40px;
    color: #333;
    opacity: 0.7;
}

.goods-slider .slick-prev:hover:before,
.goods-slider .slick-next:hover:before {
    opacity: 1;
    color: #FF7F00;
}

.goods-slider .slick-dots {
    bottom: 15px;
}

.goods-slider .slick-dots li button:before {
    font-size: 12px;
    color: #FF7F00;
    opacity: 0.5;
}

.goods-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #FF7F00;
}

.goods-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.goods-modal-info h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #333;
    margin: 0 0 30px 0;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    line-height: 1.5;
}

.modal-price-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    padding: 8px 15px;
    background-color: #333;
    color: white;
    display: inline-block;
    width: fit-content;
}

.modal-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #333;
    margin: 15px 0 30px 0;
    font-family: 'Montserrat', sans-serif;
}

.modal-details {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

.modal-details p {
    margin: 12px 0;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .goods-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .goods-modal-body {
        flex-direction: column;
        padding: 50px 20px 30px;
        gap: 25px;
    }

    .goods-modal-slider-wrapper {
        max-width: 100%;
    }

    .goods-modal-info {
        padding-top: 0;
    }

    .goods-modal-info h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .modal-price {
        font-size: 1.8rem;
        margin: 10px 0 20px 0;
    }

    .modal-details {
        font-size: 0.95rem;
    }

    .goods-modal-close {
        font-size: 0.8rem;
        top: 15px;
        right: 50px;
        padding-right: 30px;
    }

    .goods-modal-close::before,
    .goods-modal-close::after {
        width: 18px;
        right: 0;
    }
}

@media (max-width: 480px) {
    .goods-modal-content {
        margin: 5% auto;
    }

    .goods-modal-body {
        padding: 25px 15px;
    }

    .goods-modal-info h2 {
        font-size: 1.2rem;
    }

    .modal-price {
        font-size: 1.4rem;
    }

    .modal-details {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .goods-hero {
        background: white;
        color: #333;
        padding: 40px 20px;
    }

    .goods-item {
        break-inside: avoid;
    }

    .goods-modal {
        display: none;
    }
}