/* --- style.css - Updated for Mobile, Logo, and Content --- */
:root {
    --bg-color: #050505; /* より深い黒へ */
    --text-color: #e0e0e0;
    --main-accent: #00f2fe; /* 全体のアクアブルー */
    --gourmet-accent: #ff9a9e; /* グルメのピンク */
    --marketing-accent: #a1c4fd; /* マーケティングのブルー */
    --influencer-accent: #d4fc79; /* インフルエンサーのグリーン */
    --card-bg: #111; /* カードの背景色 */
    --border-color: #222; /* 境界線の色 */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 滑らかなアニメーション */
}

/* フェードインアニメーション用のキーフレーム */
@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    word-break: break-all; /* 長い単語での崩れ防止 */
}

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

ul {
    list-style: none;
}

/* --- アニメーション用クラス（JSで制御） --- */
.reveal {
    transform: translateY(30px);
    opacity: 0;
}

.reveal.active {
    animation: fadeInUp 1s forwards; /* より洗練されたアニメーション */
}

/* --- ヘッダー & ナビゲーション --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

/* ★クールに進化したロゴ★ */
.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* 全体の発光 */
}

.logo span {
    background: linear-gradient(135deg, #fff 0%, var(--main-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--main-accent); /* アクアブルーの発光 */
    position: relative;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

/* ホバー時の下線アニメーション */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- メインコンテンツ --- */
main {
    padding-top: 100px; /* ヘッダー分 */
}

section {
    padding: 120px 10%; /* 上下余白を少し広く */
}

h2.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    display: table; /* 中央寄せ用 */
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 3px;
    text-transform: uppercase;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-accent), transparent);
}

h3.sub-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

h3.sub-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 2px;
    background: var(--main-accent);
    margin-right: 15px;
}

p.description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* グリッドレイアウト（共通） */
.grid-container {
    display: grid;
    gap: 40px;
}

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

/* カードデザイン（共通） */
.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--main-accent);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

/* 各事業部のアクセント (Top Page) */
body.top-page .grid-3 .card:nth-child(1):hover { border-color: var(--gourmet-accent); box-shadow: 0 10px 30px rgba(255, 154, 158, 0.15); }
body.top-page .grid-3 .card:nth-child(2):hover { border-color: var(--marketing-accent); box-shadow: 0 10px 30px rgba(161, 196, 253, 0.15); }
body.top-page .grid-3 .card:nth-child(3):hover { border-color: var(--influencer-accent); box-shadow: 0 10px 30px rgba(212, 252, 121, 0.15); }

/* 各事業部ページ専用のタイトル下線設定 */
body.gourmet-page h2.section-title::after { background: linear-gradient(90deg, transparent, var(--gourmet-accent), transparent); }
body.marketing-page h2.section-title::after { background: linear-gradient(90deg, transparent, var(--marketing-accent), transparent); }
body.influencer-page h2.section-title::after { background: linear-gradient(90deg, transparent, var(--influencer-accent), transparent); }

/* --- ヒーローセクション --- */
.hero {
    height: 90vh; /* 少し高さを出す */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%); /* 奥行きを出すグラデーション */
}

.hero h1 {
    font-size: 4rem; /* スマホサイズで調整 */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--main-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    color: #fff;
    font-weight: 500;
}

/* --- コンテンツテキストブロック --- */
.text-block {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
    color: #ccc;
    text-align: left;
}

.text-block p {
    margin-bottom: 25px;
}

.highlight {
    color: var(--main-accent);
    font-weight: 700;
}

/* --- ボタン --- */
.btn {
    display: inline-block;
    margin-top: 50px;
    padding: 18px 45px;
    border: 2px solid var(--main-accent);
    color: var(--main-accent);
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-accent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: #000;
    box-shadow: 0 0 20px var(--main-accent);
}

/* --- フッター --- */
footer {
    text-align: center;
    padding: 60px 5%;
    background: #020202;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------
   ■ レスポンシブ対応（メディアクエリ）
   -------------------------------------------------- */

/* タブレット・スマホ（中）: 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
    section {
        padding: 80px 5%;
    }
    .grid-3, .grid-2 {
        grid-template-columns: 1fr; /* 1列に統一 */
        gap: 30px;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

/* スマホ（大・小）: 画面幅768px以下 */
@media screen and (max-width: 768px) {
    /* ヘッダーを中央寄せ・縦並びに調整 */
    header {
        flex-direction: column;
        padding: 15px 5%;
        gap: 15px;
    }
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.75rem;
    }
    .hero h1 {
        font-size: 2.2rem;
        word-break: normal; /* スマホでの不自然な改行防止 */
    }
    .hero p {
        font-size: 1.1rem;
    }
    h2.section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    h3.sub-title {
        font-size: 1.4rem;
    }
    .text-block, .description {
        font-size: 0.95rem;
    }
}

/* さらに小さいスマホ用: 画面幅480px以下 */
@media screen and (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
}