/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* アニメーション基本設定 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

:root {
    --primary-color: #DAA520; /* 黄色系で明度を暗くして視認性向上 */
    --primary-dark: #B8860B;
    --primary-light: #F4D03F;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #fffef8;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    color: #000;
    font-size: 1.8rem;
    font-weight: bold;
}

/* ロゴ画像が見つからない場合のフォールバック */
.logo-image:not([src]), 
.logo-image[src=""], 
.logo-image[src="img/logo.png"]:not([alt]) {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(218, 165, 32, 0.1);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-menu a:hover::after {
    width: 80%;
    left: 10%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* メインコンテンツ */
main {
    margin-top: 80px;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #DA70D6; /* 明るい紫色（オーキッド） */
    text-shadow: 
        2px 2px 4px rgba(255,255,255,0.8), 
        -1px -1px 2px rgba(255,255,255,0.6);
    animation: fadeInUp 1s ease-out;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    text-shadow: 
        0.6px 0.6px 1.2px rgba(0,0,0,0.5), 
        0.6px 0.6px 1.2px rgba(128, 128, 128, 0.8);
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

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

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

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 1);
}

/* セクション共通 */
section {
    padding: 5rem 0;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 会社情報セクション */
.about {
    background: linear-gradient(135deg, var(--bg-light), rgba(218,165,32,0.03));
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23DAA520" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3, .company-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.company-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.company-info dt {
    font-weight: bold;
    color: var(--text-color);
}

.company-info dd {
    color: var(--text-light);
}

/* 製品セクション */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(218,165,32,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.product-image {
    height: 220px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.product-card:hover .product-image::after {
    transform: translateX(100%);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.product-card p {
    padding: 0 1rem;
    color: var(--text-light);
}

.product-card .game-details {
    padding: 0 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.product-card .status-selling {
    padding: 1rem;
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 15px;
    margin: 0 1rem;
    text-align: center;
}

.company-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.company-info a:hover {
    text-decoration: underline;
}

/* オフィス写真 */
.office-photos {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.office-img {
    width: 48%;
    height: auto;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* 関連サービス */
.service-item {
    margin-bottom: 1.5rem;
}

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

.service-item a {
    font-size: 1.1rem;
    font-weight: bold;
}

.service-item p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .office-photos {
        flex-direction: column;
    }
    
    .office-img {
        width: 100%;
    }
    
    .service-img {
        max-width: 100%;
    }
}

/* ニュースセクション */
.news {
    background: var(--bg-light);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.news-item time {
    color: var(--primary-color);
    font-weight: bold;
}

.news-item h3 {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.news-item p {
    color: var(--text-light);
}

/* お問い合わせセクション */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info > p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-item {
    text-align: center;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
        gap: 2rem;
    }
}

/* フッター */
footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .company-info dl {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    .company-info dt {
        margin-top: 1rem;
    }
    
    .company-info dt:first-child {
        margin-top: 0;
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}