/*
Theme Name: Genome Factory Theme
Author: Genome Factory
Description: SNS運用代行・イベント事業用テーマ
Version: 1.2
*/

@charset "utf-8";

/* ==================================================
   基本設定 (Base)
================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    overflow: hidden; /* 全体スクロール禁止 */
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s, color 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==================================================
   背景スプラッシュ (Background)
================================================== */
.bg-fixed-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.splash-img {
    position: absolute;
    opacity: 1;
    transform-origin: center center;
    pointer-events: none;
    animation-name: stompIn;
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.25, 1.5, 0.5, 1);
    animation-fill-mode: both;
    will-change: transform, opacity;
}


/* ==================================================
   ヘッダー (Header)
================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: -1;
    pointer-events: none;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ修正：横並び */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

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

.site-title-text {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.header-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav a {
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.8;
}

.header-nav a:hover {
    opacity: 1;
    color: #00ffff;
}

.nav-btn {
    padding: 8px 20px;
    border: 1px solid #fff;
    border-radius: 20px;
}

.nav-btn:hover {
    background: #fff;
    color: #000 !important;
}

.menu-trigger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}
.menu-trigger span:nth-of-type(1) { top: 0; }
.menu-trigger span:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
.menu-trigger span:nth-of-type(3) { bottom: 0; }


/* ==================================================
   コンテンツコンテナ (Main Scroll Area)
================================================== */
.content-container {
    position: relative;
    width: 100vw; /* 画面幅いっぱい（スクロールバーの下へ潜り込ませる） */
    
    /* ★修正: スマホのアドレスバー対策で 100dvh を指定 */
    height: 100vh; /* フォールバック */
    height: 100dvh; 
    
    overflow-y: overlay; /* 対応ブラウザ用 */
    overflow-y: scroll;  /* 非対応用（autoだとガタつくためscroll推奨） */
    overflow-x: hidden;
    z-index: 20;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}


/* ==================================================
   トップページ FV
================================================== */
.logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.main-logo {
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(3);
}

.main-logo.stomp-visible {
    animation-name: logoStompIn;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-fill-mode: forwards;
}


/* ==================================================
   スクロールコンテンツ
================================================== */
.scroll-content {
    position: relative;
    margin-top: 100vh;
    width: 100%;
    z-index: 30;
}

.scroll-indicator {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.8;
}

.scroll-indicator p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #000;
}

.scroll-indicator .arrow {
    width: 2px;
    height: 60px;
    background: #fff;
    margin: 0 auto;
    animation: scrollDown 1.5s infinite;
    box-shadow: 0 0 10px #fff;
}

.main-wrapper {
    background: rgba(17, 17, 17, 0.95);
    padding-bottom: 80px;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}


/* ==================================================
   各セクション
================================================== */
.philosophy-box { text-align: center; }
.philosophy-box h3 { font-size: 3.5rem; line-height: 1.4; margin-bottom: 40px; font-weight: bold; }
.highlight-text { color: #ff00ff; text-shadow: 0 0 20px rgba(255, 0, 255, 0.5); }
.philosophy-text { font-size: 1.1rem; line-height: 2.2; opacity: 0.9; }

/* 事業内容 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0 30px 0;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); }

.card-icon { width: 100%; margin-bottom: 20px; line-height: 0; }
.card-icon img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; margin: 0; filter: none; }

.service-card h3, .service-card .ja-title, .service-card .desc { padding: 0 20px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 5px; font-family: 'Arial Black', sans-serif; margin-top: 10px; }
.ja-title { font-size: 1rem; opacity: 0.7; margin-bottom: 20px; display: block; }
.desc { font-size: 0.95rem; line-height: 1.6; text-align: left; }

.card-sns:hover { border-color: #ff00ff; box-shadow: 0 0 20px rgba(255, 0, 255, 0.3); }
.card-movie:hover { border-color: #00ffff; box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
.card-event:hover { border-color: #ff6600; box-shadow: 0 0 20px rgba(255, 102, 0, 0.3); }


/* ==================================================
   お知らせ (News)
================================================== */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.news-list .date {
    font-family: monospace;
    opacity: 0.7;
    font-size: 0.9rem;
}

.category {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    line-height: 1.2;
    background: #555;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.cat-info { background: #333; border: 1px solid #fff; }
.cat-event { background: #ff6600; color: #fff; border: none; }
.cat-sns { background: #ff00ff; color: #fff; border: none; }

.news-list .title {
    display: block;
    width: 100%;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.news-list .title:hover { color: #00ffff; text-decoration: underline; }


/* ==================================================
   フッター (Footer)
================================================== */
.footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.company-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.company-table th, .company-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    vertical-align: top;
}

.company-table th {
    width: 100px;
    color: #00ffff;
    font-weight: normal;
    white-space: nowrap;
}

.company-table td {
    color: #fff;
    line-height: 1.6;
    opacity: 0.9;
}

.company-table tr:last-child th, .company-table tr:last-child td {
    border-bottom: none;
}

.footer-links { margin-top: 20px; display: flex; gap: 20px; }
.footer-links a { font-size: 0.9rem; opacity: 0.7; }
.footer-links a:hover { opacity: 1; }

.footer-parent { text-align: right; }
.parent-label { font-size: 0.8rem; opacity: 0.5; margin-bottom: 10px; display: block; }

.parent-logo {
    max-width: 200px;
    height: auto;
    transition: opacity 0.3s;
}
.parent-logo:hover { opacity: 0.8; }

.copyright { text-align: center; font-size: 0.8rem; opacity: 0.4; border-top: 1px solid #222; padding-top: 20px; }


/* ==================================================
   WordPress用追加スタイル
================================================== */
.page-header { text-align: center; margin-bottom: 60px; padding-top: 40px; }
.page-title { font-size: 2.5rem; font-weight: 900; color: #fff; text-shadow: 0 0 10px #ff00ff; margin-bottom: 10px; }

.entry-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.entry-content h2 {
    font-size: 1.5rem;
    border-left: 5px solid #ff00ff;
    padding-left: 15px;
    margin: 40px 0 20px;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.entry-content h3 { font-size: 1.3rem; margin: 30px 0 15px; color: #ff00ff; }
.entry-content p { margin-bottom: 20px; }

.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 10px 15px; margin: 0 5px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 5px; }
.pagination .current { background: #ff00ff; border-color: #ff00ff; font-weight: bold; }

.archive-list { display: flex; flex-direction: column; gap: 20px; }
.news-item-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 10px; transition: 0.3s; display: block; }
.news-item-card:hover { background: rgba(255, 255, 255, 0.1); border-color: #00ffff; }
.news-meta { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.news-title-archive { font-weight: bold; color: #fff; }


/* ==================================================
   アニメーション
================================================== */
@keyframes stompIn {
    0% { opacity: 0; transform: scale(3) rotate(var(--rotate-deg)); }
    60% { opacity: 1; transform: scale(0.9) rotate(var(--rotate-deg)); }
    100% { opacity: 1; transform: scale(1) rotate(var(--rotate-deg)); }
}
@keyframes logoStompIn {
    0% { opacity: 0; transform: scale(3); }
    60% { opacity: 1; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ==================================================
   スクロールバー
================================================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; border-left: none; }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 255, 0.5); border-radius: 10px; border: 2px solid rgba(0, 0, 0, 0); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #ff00ff; }


/* ==================================================
   レスポンシブ・スマホ対応
================================================== */
@media (max-width: 768px) {
    /* メニュー制御 */
    .menu-trigger { display: block; }
    .header-nav { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 900; opacity: 0; visibility: hidden; transition: all 0.4s ease-in-out; display: flex; justify-content: center; align-items: center; }
    .site-header.mobile-menu-open .header-nav { opacity: 1; visibility: visible; }
    .header-nav ul { flex-direction: column; gap: 40px; text-align: center; }
    .header-nav a { font-size: 1.5rem; }
    .site-header.mobile-menu-open .menu-trigger span:nth-of-type(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .site-header.mobile-menu-open .menu-trigger span:nth-of-type(2) { opacity: 0; }
    .site-header.mobile-menu-open .menu-trigger span:nth-of-type(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
    
    /* ヘッダーロゴ微調整 */
    .site-logo-icon { height: 30px; }
    .site-title-text { font-size: 1rem; }

    /* 全体レイアウト */
    .container { padding: 0 15px; }
    .logo-wrapper { width: 85%; }

    /* タイトル・テキスト調整 */
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    .philosophy-box h3 { font-size: 1.8rem; line-height: 1.5; }
    /* ★修正: Philosophyを中央揃えに */
    .philosophy-text { font-size: 0.9rem; line-height: 2; text-align: center; }

    /* ★修正: ニュースタイトルの文字サイズ縮小 */
    .news-list .title { font-size: 0.9rem; }
    
    /* 事業内容 */
    .service-card { padding: 0 0 20px 0; }
    .service-card h3 { font-size: 1.3rem; }

    /* ★修正: フッターの余白を増やしてスクロール詰まり防止 & 中央揃え */
    .footer { padding-bottom: 120px; } /* 余白多め */
    .footer-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-parent { text-align: center; margin-top: 30px; width: 100%; }
    
    /* フッター情報の詳細 */
    .footer-info { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .footer-links { justify-content: center; }

    /* フッター表: スマホ用レイアウト（中央寄せ＆縦積み） */
    .company-table { width: 100%; font-size: 0.9rem; margin: 0 auto; }
    .company-table tbody, .company-table tr, .company-table th, .company-table td {
        display: block;
        width: 100%;
        text-align: center; /* テキスト中央揃え */
    }
    .company-table th {
        padding-bottom: 2px;
        border-bottom: none;
        color: #00ffff;
        font-size: 0.85rem;
        margin-top: 15px;
    }
    .company-table td {
        padding-top: 2px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .company-table tr:first-child th { margin-top: 0; }

    /* 詳細ページ */
    .entry-content { padding: 20px; }
    .page-title { font-size: 1.8rem; }
	/* --- style.css の @media (max-width: 768px) の中に追記 --- */

	/* お知らせ一覧のタイトル（スマホ用） */
	.news-list .title {
		font-size: 0.85rem; /* 1.1remから縮小 */
		margin-top: 3px;
	}

	/* 詳細ページ・固定ページのメインタイトル（スマホ用） */
	.page-title {
		font-size: 1.5rem; /* 2.5remから大幅に縮小 */
		margin-bottom: 30px;
		line-height: 1.3;
	}

	/* 記事本文の見出し（h2）もバランスを見て少し小さく */
	.entry-content h2 {
		font-size: 1.2rem;
		margin: 30px 0 15px;
	}
}