/* ========================================
   リセット & ベーススタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   コンテナ
   ======================================== */
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    padding: 0;
    min-height: 60vh;
}

/* ========================================
   マンガコンテナ
   ======================================== */
.manga-container {
    max-width: 780px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.manga-page {
    width: 100%;
    background-color: #ffffff;
    position: relative;
}

.manga-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

/* 遅延読み込み用のスタイル */
.manga-image.lazy {
    opacity: 0;
    min-height: 400px;
    background: linear-gradient(
        135deg,
        #f5f5f5 0%,
        #e0e0e0 25%,
        #f5f5f5 50%,
        #e0e0e0 75%,
        #f5f5f5 100%
    );
    background-size: 400% 400%;
    animation: loading 1.5s ease-in-out infinite;
}

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

.manga-image.loaded {
    opacity: 1;
    animation: none;
    background: none;
}

/* スマートフォン向けマンガ調整 */
@media (max-width: 780px) {
    .manga-container {
        border-radius: 0;
        box-shadow: none;
    }
}

/* ========================================
   採用情報セクション
   ======================================== */
.recruit-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.recruit-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.recruit-description {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.recruit-button {
    display: inline-block;
    background-color: #ffffff;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.recruit-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* スマートフォン向け採用セクション調整 */
@media (max-width: 480px) {
    .recruit-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .recruit-title {
        font-size: 1.5rem;
    }
    
    .recruit-description {
        font-size: 1rem;
    }
    
    .recruit-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-info {
    margin-top: 1rem;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-label {
    font-weight: 600;
    color: #667eea;
    display: inline-block;
    min-width: 80px;
}

.contact-value {
    color: #ecf0f1;
}

.footer-bottom {
    border-top: 1px solid rgba(236, 240, 241, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: #95a5a6;
}

/* スマートフォン向けフッター調整 */
@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .contact-item {
        font-size: 0.95rem;
    }
    
    .contact-label {
        display: block;
        margin-bottom: 0.2rem;
        min-width: auto;
    }
}

/* ========================================
   アクセシビリティ
   ======================================== */
/* フォーカス時のアウトライン強化 */
a:focus,
button:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* 視覚的なフィードバック */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ========================================
   印刷用スタイル
   ======================================== */
@media print {
    .footer,
    .recruit-section {
        background: none;
        color: #000;
        box-shadow: none;
    }
    
    .manga-container {
        box-shadow: none;
    }
    
    body {
        background-color: #ffffff;
    }
}

/* ========================================
   パフォーマンス最適化
   ======================================== */
/* GPUアクセラレーションの有効化 */
.manga-image {
    transform: translateZ(0);
    will-change: opacity;
}

/* スクロールパフォーマンスの向上 */
body {
    -webkit-overflow-scrolling: touch;
}
