/* 基本スタイル */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #00a3ff;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #888;
    --yerrow: #efd31c;
    --padding-sm: 1rem;
    --padding-md: 2rem;
    --padding-lg: 4rem;
    --padding-xl: 6rem;
    --border-radius: 50px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 2.0;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    line-height: 1.2;
}

h1 {
    font-size: 3.8rem;
    font-weight: 200;
    margin-bottom: 1%;
}

h2 {
    font-size: 3.0rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

iframe {
  width: 100%;
  height: 1200px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-sm);
}

/* Button Styles */
.explore-btn, .get-started-btn, .small-btn, .learn-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

.outline-btn {
    margin-top: 2.0em;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.explore-btn, .get-started-btn {
    background-color: #efd31c;
    color: #000000;
    font-size: 0.8em;
}

.explore-btn:hover, .get-started-btn:hover {
    background-color: #333;
    color: #ffffff;
}

.outline-btn {
    border: 1px solid currentColor;
    padding: 0.6rem 1.4rem;
}

/* ボタンのホバー時のスタイル変更 */
.outline-btn:hover {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.learn-more-btn {
    text-decoration: underline;
    font-size: 0.875rem;
}

.sign-in-btn {
    margin-right: 0.75rem;
}

/* ヘッダースタイル */
.header {
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: fixed;
    width: 100%;
    background: transparent;
    transition: background 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin: 0 1rem;
}



.main-nav a:hover {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 4px 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: left;
    overflow: hidden;
    color: var(--secondary-color);
}

.hero-content {
    position: absolute;
    bottom: 10%; /* ビデオの下から10%の余白を設ける */
    left: 0; /* 左揃え */
    transform: none; /* 中央寄せを解除 */
    text-align: left;
    padding-left: 5%; /* 余白を確保 */
    position: relative;
    z-index: 2;
    padding: var(--padding-lg);
    padding-left: 5%;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
    z-index: 1;
}

/* Mission Statement */
.mission-statement {
    text-align: center;
    padding: var(--padding-xl) 0;
}

/* テキストブロックの中央配置と左寄せテキスト */
.mission-statement p {
    text-align: left;
    max-width: 600px; /* 元の設定を維持 */
    margin: 0 auto 2rem; /* 中央配置を維持 */
}



/* Creatives Section */
.creatives-section {
    padding: var(--padding-xl) 0;
    background-color: var(--yerrow);    
    text-align: center;
}

.creatives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--padding-lg);
}

.creative-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-bottom: 4.0rem;
}

.creative-item:hover {
    transform: translateY(-5px);
}

.creative-image {
    height: 240px;
    overflow: hidden;
}

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

.creative-content {
    padding: 1.5rem;
    background-color: var(--secondary-color);
}


/* Footer Banner */
.footer-banner {
    height: 400px;
    overflow: hidden;
}

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

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: var(--padding-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 12fr repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h5 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.copyright {
    font-size: 0.75rem;
    color: var(--dark-gray);
}

.footer-bottom {
    margin-top: var(--padding-lg);
    text-align: center;
}


/* Parallax Effect */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .news-grid,
    .simulation-grid,
    .initiatives-grid,
    .creatives-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .product-announcement .container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .news-grid,
    .simulation-grid,
    .initiatives-grid,
    .creatives-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .auth-buttons {
        display: none;
    }

    .partners-logos {
        justify-content: center;
    }
}


/* スクロール後のナビゲーションのスタイル */
.header.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.9); /* 元のデザインに戻す */
}

.header.scrolled 


/* 罪-GUILTYのタイトルを下げる */
h1 {
    position: relative;
    text-align: left;
    margin-bottom: 3%;
}

/* PLAYボタンをさらに調整 */
.play-btn {
    bottom: 5%; /* タイトルの下から適度な位置に調整 */
}


/* 罪-GUILTYのタイトルとPLAYボタンをビデオエリアの下部に配置 */
.guilty-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}


/* ビデオエリアを基準にする */
.hero-video-container {
    position: relative; /* これで .hero-content の基準点になる */
}

/* 罪-GUILTYのタイトルとPLAYボタンをビデオエリアの下部に配置 */
.hero-content {
    position: absolute;
    bottom: 10%; /* ビデオの下から10%の余白を設ける */
    left: 0; /* 左揃え */
    transform: none; /* 中央寄せを解除 */
    text-align: left;
    padding-left: 5%; /* 余白を確保 */
    position: absolute;
    bottom: 5%; /* ビデオの下から10%の余白を設ける */
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
    width: 100%;
}


/* h1 と h2 に Noto Serif JP を適用 */
h1, h2 {
    font-family: 'Noto Serif JP', serif;
}


/* Webフォントが確実に適用されるようにする */
body {
    font-family: 'Noto Sans JP', sans-serif;
}

h1, h2 {
    font-family: 'Noto Serif JP', serif;
}


/* ヘッダーロゴのスタイルを明示的に指定 */
.header-logo {
    display: block !important;
    max-width: 120px; /* ロゴの適切なサイズ */
    height: auto;
    transition: max-width 0.3s ease;
}

/* スクロール後のロゴサイズ調整（必要なら変更可能） */
.header.scrolled .header-logo {
    max-width: 100px; /* スクロール後は少し小さく */
}


/* スクロール最上部のときヘッダーを透明にする */
.header.top {
    background: transparent !important;
    box-shadow: none !important; /* 影も消す */
    transition: background 0.3s ease;
}

/* スクロールしたら白いバーを適用 */
.header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* スクロール最上部のときヘッダー内のリンクを白に */
.header.top 

/* スクロール後は黒文字にする */
.header.scrolled 


/* スクロール最上部では白文字 */
.header.top .main-nav a {
    color: white !important;
    transition: color 0.3s ease;
}

/* スクロール後は黒文字 */
.header.scrolled .main-nav a {
    color: black !important;
    font-weight: 500;
}


/* ボタン全般の角を丸く半円にする */
button, .btn, .get-started-btn {
    border-radius: 50px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease-in-out;
}

/* ホバー時のアニメーション */
button:hover, .btn:hover, .get-started-btn:hover {
    transform: scale(1.05);
}


/* Our Works の「お客様の守秘義務〜」部分のマージン調整 */
.our-works-note {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    max-width: 800px !important; /* 「雑誌広告〜」と同じ幅に調整 */
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* ボタン全体の角を完全に丸くする */
button, .btn, .get-started-btn {
    border-radius: 999px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease-in-out;
}

/* ホバー時のアニメーション */
button:hover, .btn:hover, .get-started-btn:hover {
    transform: scale(1.05);
}


/* Our Works の「お客様の守秘義務〜」部分のマージン調整 */
.our-works-note {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
    max-width: 800px !important; /* 「雑誌広告〜」と同じ幅に調整 */
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8; /* 読みやすくするための行間調整 */
}


/* スクロール最上部ではナビゲーションの文字色を白に */
.header.top .main-nav a {
    color: white !important;
    transition: color 0.3s ease;
}

/* スクロール後は黒文字にする */
.header.scrolled .main-nav a {
    color: black !important;
    font-weight: 500 !important;
}

/* テキストブロックの中央配置と左寄せテキスト */
.mission-statement p {
    text-align: left;
    max-width: 600px; /* 元の設定を維持 */
    margin: 0 auto 2rem; /* 中央配置を維持 */
}

/* Our Workセクションのテキスト調整 */
.creatives-section p {
    text-align: left;
    max-width: 600px; /* About usと同じ幅に */
    margin: 0 auto 2rem; /* 中央配置 */
}

/* パスワードテキストの中央揃え */
.creatives-section > p {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
}

/* Contactフォームの中央配置 */
form#mail_form {
    margin: 50px auto;
}

form#mail_form dl {
    margin: 0 auto;
}

/* コピーライトの中央揃え */
.copyright, .footer-bottom p, .footer p {
    text-align: center !important;
    width: 100%;
}

/* モバイル対応のさらなる調整 */
@media screen and (max-width: 768px) {
    .mission-statement p,
    .creatives-section p {
        width: 90%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    form#mail_form {
        width: 95%;
    }
}
