* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/KVBG.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 14px;
}

.loading-text {
    font-size: 12.6px;
    font-weight: 500;
    letter-spacing: 1px;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: 'Arial', sans-serif;
    background: #fff;
    color: #333;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('../img/KV_wide.jpg') no-repeat center top;
    background-size: cover;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    padding-top: 20px;
}

.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/KV_wide.jpg') no-repeat center top;
    background-size: 100% 100%;
    filter: blur(20px) brightness(0.5);
    z-index: -1;
    opacity: 1;
    background-color: #000;
}


@media (min-width: 1001px) {
    .container {
        background-size: contain;
        background-color: transparent;
    }

    .container::before {
        background-size: cover;
        opacity: 1;
    }

    .logo {
        width:60%;
        height: auto;
    }
}

.logo {
    position: absolute;
    top: 300px;
    left: 20px;
    width: 40%;
    height: auto;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 0.5s;
    z-index: 10;
}

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

.video-section {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto 30px;
    padding: 0 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 2.5s;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.screenshots-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 0 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 3.5s;
}

.screenshots-title {
    text-align: center;
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.screenshots-title::after {
    content: 'Screen Shots';
    display: block;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
    margin-top: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
}

.screenshot {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    cursor: pointer;
}

.screenshot.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* デスクトップ・タブレット用の自動アニメーション */
@media (min-width: 769px) {
	.text-box{
	width: auto;
	}
	
    .screenshot {
        animation: fadeIn 0.8s ease-in-out forwards;
    }

    .screenshot:nth-child(1) { animation-delay: 3.5s; }
    .screenshot:nth-child(2) { animation-delay: 3.7s; }
    .screenshot:nth-child(3) { animation-delay: 3.9s; }
    .screenshot:nth-child(4) { animation-delay: 4.1s; }
    .screenshot:nth-child(5) { animation-delay: 4.3s; }
    .screenshot:nth-child(6) { animation-delay: 4.5s; }
    .screenshot:nth-child(7) { animation-delay: 4.7s; }
    .screenshot:nth-child(8) { animation-delay: 4.9s; }
    .screenshot:nth-child(9) { animation-delay: 5.1s; }
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* モーダル用のスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    display: block;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* モバイルではモーダルを無効化 */
@media (max-width: 768px) {
    .screenshot {
        cursor: default;
    }
    
    .modal {
        display: none !important;
    }
}

.info-section {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: slideUp 1s ease-in-out forwards;
    animation-delay: 3s;
    margin-top: auto;
}

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

.info-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.product-info {
    line-height: 1.4;
}

.product-info h2 {
    color: #d32f2f;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.product-info p {
    margin-bottom: 4px;
    font-size: 0.65em;
}

.links-section {
    text-align: right;
}

.links-section a {
    color: #333;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 8px;
    border: 1px solid #333;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 0.6em;
}

.links-section a:hover {
    background: #333;
    color: #fff;
}

.manufacturer-logo {
    position: absolute;
    top: 0;
    right: 20px;
    width: 200px;
    max-width: 200px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 2s;
}

.manufacturer-logo img {
    width: 100%;
    height: auto;
}

#news {
    position: relative;
    margin-top: 500px;
    padding-top: 5vh;
}

.news-title {
    text-align: center;
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-title::after {
    content: 'News';
    display: block;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
    margin-top: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.news-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-date {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.news-text {
    color: #fff;
    font-size: 0.9em;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 汎用テキストボックス */
.text-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
	max-width: 960px;
    backdrop-filter: blur(10px);
    margin: 20px 0;
}

.text-box h1,
.text-box h2,
.text-box h3,
.text-box h4,
.text-box h5,
.text-box h6 {
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-box h1 {
    font-size: 1.5em;
    font-weight: bold;
}

.text-box h2 {
    font-size: 1.3em;
    font-weight: bold;
}

.text-box h3 {
    font-size: 1.1em;
    font-weight: bold;
}

.text-box p {
    color: #fff;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-box p:last-child {
    margin-bottom: 0;
}

.text-box ul,
.text-box ol {
    color: #fff;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-box li {
    margin-bottom: 8px;
}

.text-box a {
    color: #ffd700;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.text-box a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ショップリンクセクション */
.shop-link-section {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 3.2s;
}

.shop-link-button {
    display: block;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.shop-link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.shop-link-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    color: #ffd700;
}

.shop-link-button:hover::before {
    left: 100%;
}

.shop-link-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
	
		.container {
        background-size: 140%;
        background-position: center top;
        padding-top: 15px;
    }

    .container::before {
        background-size: 140%;
        background-position: center top;
    }

    .logo {
        width: 60%;
        top: 300px;
        left: 15px;
    }

    .video-section {
        padding: 0 15px;
        margin: 50px auto 20px;
    }

    .screenshots-section {
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .screenshot {
        max-width: 100%;
    }

    .info-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .links-section {
        text-align: left;
    }

    .manufacturer-logo {
        width: 120px;
        top: 0;
        right: 15px;
    }

    .info-section {
        padding: 10px;
    }

    .product-info h2 {
        font-size: 0.85em;
    }

    .product-info p {
        font-size: 0.6em;
    }

    .shop-link-section {
        padding: 0 15px;
        margin: 20px auto;
    }

    .shop-link-button {
        padding: 15px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
	
	#news {
		margin-top: 400px;
	}
    .container {
        background-size: 160%;
        background-position: center top;
        padding-top: 10px;
    }

    .container::before {
        background-size: 160%;
        background-position: center top;
    }

    .logo {
        width: 70%;
        top: 150px;
        left: 10px;
    }

    .video-section {
        padding: 0 10px;
        margin: 50px auto 15px;
    }

    .screenshots-section {
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .screenshots-title {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .info-section {
        padding: 8px;
    }

    .manufacturer-logo {
        width: 120px;
        top: 0;
        right: 10px;
    }

    .product-info h2 {
        font-size: 0.8em;
    }

    .product-info p {
        font-size: 0.55em;
    }

    .shop-link-section {
        padding: 0 10px;
        margin: 15px auto;
    }

    .shop-link-button {
        padding: 12px 15px;
        font-size: 0.9em;
    }
}
