/* ========================================
   採用マンガ 縦スクロール閲覧サイト
   スタイルシート
   ======================================== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body.loaded {
    animation: fadeIn 0.3s ease-in;
}

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

/* ========================================
   ヘッダー
   ======================================== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 780px;
    margin: 0 auto;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.header-subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 400;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
}

.manga-container {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

/* ========================================
   漫画パネル
   ======================================== */
.manga-panel {
    position: relative;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.manga-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    object-fit: contain;
}

.manga-image.fade-in {
    opacity: 1;
}

/* 画像読み込みエラー時の表示 */
.image-error {
    width: 100%;
    padding: 3rem 1rem;
    text-align: center;
    color: #999;
    background-color: #f9f9f9;
    font-size: 0.9rem;
}

/* ========================================
   スクロールヒント
   ======================================== */
.scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scroll-arrow {
    font-size: 2rem;
    color: #667eea;
    animation: bounce 2s infinite;
    margin-bottom: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-text {
    font-size: 0.85rem;
    color: #667eea;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

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

/* 採用エントリーセクション */
.recruitment-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 1rem;
    text-align: center;
}

.recruitment-content {
    max-width: 780px;
    margin: 0 auto;
}

.recruitment-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.recruitment-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

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

.recruitment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #f8f9fa;
}

/* フッターコンテンツ */
.footer-content {
    padding: 3rem 1rem 1.5rem;
}
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* お問い合わせ情報 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.contact-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* フッターリンク */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

.footer-link::before {
    content: '›';
    margin-right: 0.5rem;
    color: #667eea;
}

/* フッター下部 */
.footer-bottom {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

/* ========================================
   レスポンシブデザイン（タブレット）
   ======================================== */
@media (min-width: 640px) {
    .recruitment-title {
        font-size: 2rem;
    }

    .recruitment-text {
        font-size: 1.2rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ========================================
   レスポンシブデザイン（デスクトップ）
   ======================================== */
@media (min-width: 1024px) {
    .recruitment-cta {
        padding: 4rem 2rem;
    }

    .recruitment-title {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 3rem 2rem;
    }

    .manga-container {
        border-radius: 12px;
    }

    .footer-content {
        padding: 4rem 2rem 2rem;
    }
}

/* ========================================
   スマートフォン最適化
   ======================================== */
@media (max-width: 480px) {
    .recruitment-cta {
        padding: 2rem 1rem;
    }

    .recruitment-title {
        font-size: 1.5rem;
    }

    .recruitment-text {
        font-size: 1rem;
    }

    .recruitment-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .main-content {
        padding: 0.5rem;
    }

    .manga-container {
        border-radius: 0;
        box-shadow: none;
    }

    .footer-content {
        padding: 2rem 1rem 1rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .contact-label {
        min-width: 70px;
        font-size: 0.9rem;
    }

    .contact-item,
    .footer-link {
        font-size: 0.9rem;
    }
}

/* ========================================
   印刷スタイル
   ======================================== */
@media print {
    .footer,
    .scroll-hint,
    .recruitment-cta {
        display: none;
    }

    body {
        background-color: white;
    }

    .manga-container {
        box-shadow: none;
    }

    .manga-image {
        opacity: 1;
        page-break-inside: avoid;
    }

    .manga-panel {
        page-break-after: auto;
    }
}

/* ========================================
   アクセシビリティ
   ======================================== */
/* フォーカス時の視認性向上 */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* アニメーション削減の設定を尊重 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
    }

    .main-content {
        background-color: transparent;
    }

    .manga-container {
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
}
