:root {
    --primary-color: #0056b0;
    --accent-color: #ffaa00;
    --text-dark: #1d1d1f;
    --text-light: #86868b;
    --bg-white: #ffffff;
    --bg-soft: #f5f5f7;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* スムーズスクロールを有効化 */
html {
    scroll-behavior: smooth;
}

/* --- ヒーローセクションの開始位置調整 --- */
/* ヘッダーが太くなった分、メインコンテンツが隠れないように調整 */
main {
    margin-top: 100px; /* ヘッダーの高さに合わせて調整 */
}



/* ヘッダー：グラスモフィズム */
.main-header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.45rem;   /* ← 1.6rem → 1.45rem に少しだけ下げる */
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.sub-logo {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

.ulanzi-header-logo {
    height: 35px;          /* ヘッダーに自然に収まるサイズ */
    width: auto;
    margin-right: 14px;    /* タイトルとの余白 */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* --- ここを追加：1枚目の画像をサーバー上の名前と完全に一致させて書く --- */
    background-image: url('MGF2025_1.jpg'); 
    
    /* 画像が読み込まれるまでの背景色（真っ白回避） */
    background-color: #1d1d1f; 
    
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    font-weight: bold;
}

/* 出展者グリッド */
.exhibitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* --- 出展者セクション下の補足文 --- */
.exhibitor-footer {
    text-align: center; /* 外側の枠の中で中央に寄せる */
    margin-top: 40px;    /* グリッドとの間隔を空ける */
}

.exhibitor-footer p {
    display: inline-block; /* 中身の幅に合わせる */
    text-align: left;      /* テキストの開始位置を左に揃える */
    width: auto;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* リンク（公式X）の装飾を少し調整 */
.exhibitor-footer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.maker-card {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
}

.maker-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.maker-card h3 small {
    font-size: 0.5em;
    font-weight: 200;
    letter-spacing: 0.05em;
}


/* --- Ulanzi 特別カード --- */
.maker-featured {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f0f6ff 100%
    );
    border: 1px solid rgba(0, 86, 176, 0.15);
    grid-column: span 2;
    padding: 45px;
}


.maker-featured h3 {
    font-size: 1.7rem;
}

.maker-featured p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .maker-featured {
        grid-column: span 1;
        padding: 32px;
    }
}

/* --- Ulanzi：名前＋説明文を横並び --- */
.maker-featured .maker-head {
    display: flex;
    align-items: center;
    gap:30px;
}

/* 説明文は控えめに */
.maker-featured .maker-desc {
    line-height: 1.6;
    max-width: 360px;
}

.supported-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.exhibitor-grid {
    display: grid;
}

.maker-featured {
    order: -1;   /* 最優先で表示 */
}



.maker-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* スクロールアニメーション用 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: block; }
}

/* --- 1. 共通コンテナの設定 (ここが最重要) --- */
.container {
    max-width: 1000px; /* コンテンツの最大幅を制限 */
    margin: 0 auto;    /* 左右の余白を自動調整して中央揃え */
    padding: 0 20px;   /* スマホ表示時の左右の余白 */
    width: 100%;
}

/* --- 2. 各セクションの余白と見出しの中央揃え --- */
section {
    padding: 80px 0;   /* 上下の余白を広げてゆとりを持たせる */
}

/* --- 見出し全体のレイアウト調整 --- */
.section-title {
    display: flex;               /* Flexboxを有効化 */
    flex-direction: column;      /* 要素を縦に並べる */
    align-items: center;         /* 中央に揃える */
    gap: 8px;                    /* 日本語と英語の間の隙間 */
    
    font-size: 2.5rem;           /* 英語タイトルの大きさ */
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 60px;
    text-align: center;
}

/* --- 上に配置する日本語（ふりがな）部分 --- */
.title-jp {
    font-size: 0.85rem;          /* 文字を小さく */
    color: var(--primary-color); /* アクセントカラーを適用 */
    font-weight: 700;
    letter-spacing: 0.3em;       /* 文字の間隔を広げて高級感を出す */
    text-transform: uppercase;
    display: block;
    line-height: 1;
}

/* 前の回答で入れた「見出しの下の線」を調整（必要に応じて） */
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--text-dark); /* 線はあえて黒（またはグレー）にすると上品です */
    margin-top: 15px;
    opacity: 0.2;
}

.about-grid {
    text-align: center; /* 親要素で中身（about-text）を中央に寄せる */
    padding: 20px 0;
}

.about-text {
    display: inline-block; /* ブロックの幅を中身（文章の長さ）に合わせる */
    text-align: left;      /* ブロック内の文字は左揃えにする */
    max-width: 100%;       /* スマホ等で画面からはみ出さないように */
    line-height: 2;        /* 行間を少し広げて読みやすくする（お好みで） */
}

/* 解説文の装飾 */
.about-gadget-exhibition h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.about-gadget-exhibition p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.entry-grid {
    text-align: center; /* 親要素で中身（about-text）を中央に寄せる */
    padding: 20px 0;
}

.entry-text {
    display: inline-block; /* ブロックの幅を中身（文章の長さ）に合わせる */
    text-align: left;      /* ブロック内の文字は左揃えにする */
    max-width: 100%;       /* スマホ等で画面からはみ出さないように */
    line-height: 2;        /* 行間を少し広げて読みやすくする（お好みで） */
}

.entry h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* 解説文の装飾 */
.entry-gadget-exhibition h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.about-gadget-exhibition p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* キャッチコピー（強調テキスト）だけは中央にしたい場合 */
.highlight-text {
    display: block;
    text-align: center;    /* キャッチコピーだけは中央揃え */
    margin-bottom: 30px !important;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- 4. アクセス情報の調整 --- */
.access-info {
    text-align: center;
    margin-top: 20px;
}

/* --- 5. フッターの調整 --- */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* フッター内の要素を中央揃え */
    text-align: center;
    gap: 20px;
}

.copyright {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

/* --- 6. ヒーローセクションのボタン配置修正 --- */
.hero-btns {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,86,176,0.3);
}

/* --- ヘッダー全体の高さを出し、存在感を強める --- */
.main-header {
    background: var(--glass);
    backdrop-filter: blur(25px); /* ブラーを少し強めて高級感を出す */
    -webkit-backdrop-filter: blur(25px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1); /* 境界線を少しハッキリさせる */
    transition: var(--transition);
}

/* コンテナ内のパディングを増やして「太さ」を出す */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 30px; /* 上下を 15px → 25px に拡大 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- ロゴを大きく、力強く --- */
.logo {
    font-size: 1.6rem; /* 1.25rem → 1.6rem に拡大 */
    font-weight: 800; /* より太く */
    letter-spacing: -0.03em;
    line-height: 1;
}

.sub-logo {
    font-size: 0.85rem; /* 0.75rem → 0.85rem に拡大 */
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* --- ナビゲーションの文字サイズと間隔を調整 --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px; /* 間隔を 30px → 40px に広げてゆとりを出す */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600; /* 500 → 600 で視認性アップ */
    font-size: 1.05rem; /* 0.95rem → 1.05rem に拡大 */
    transition: var(--transition);
    position: relative;
}

/* ホバー時に「細い線」ではなく「少し動く」演出でガジェット感を出す */
.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* SNSボタン（公式X）を強調してアクセントに */
.btn-sns {
    background: var(--text-dark);
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem !important;
}

.btn-sns:hover {
    background: var(--primary-color);
    transform: scale(1.05) !important;
}

/* --- フッター全体の背景と余白 --- */
#contact {
    background-color: var(--bg-soft); /* 背景を少しグレーにしてセクションを区切る */
    padding: 100px 0 60px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- コンテンツの中央配置 --- */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素を中央へ */
    text-align: center;
}

/* --- 文章を左揃えにするための「箱」の設定 --- */
.footer-info-block {
    display: inline-block; /* 中身の幅に合わせる */
    text-align: left;      /* 箱の中身は左揃え */
    max-width: 700px;      /* 広がりすぎないよう制限 */
    margin-bottom: 50px;
}

/* Produced by 部分の装飾 */
.producer-info {
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color); /* 左側にアクセントの縦線 */
    padding-left: 20px;
}

.producer-info .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.org-name {
    font-size: 1.5rem;
    font-weight: 700;
}



/* --- 代表者・メール情報の配置 --- */
.footer-links {
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.footer-links p {
    font-weight: 500;
    margin-bottom: 5px;
}

/* コピーライト */
.copyright {
    margin-top: 60px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* ================================
   モバイルメニュー追加分
   ================================ */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-white);
    padding: 120px 30px;
    transition: var(--transition);
    z-index: 2000;
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-mobile a {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

/* モバイルメニュー：閉じるボタン */
.nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
}

/* ================================
   常に表示されるワイド固定タブ
   ================================ */

#scrollTopButton.fixed-side-tab {
    position: fixed;
    right: 0; /* 画面の右端にピッタリつける */
    bottom: 100px; /* 下からの位置（お好みで調整） */
    
    /* サイズ：豆粒ではなく「しっかりとしたタブ」に */
    width: 60px;
    height: 160px;
    
    /* デザイン */
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px; /* 左側だけ丸める */
    
    cursor: pointer;
    z-index: 2000;
    
    /* 配置：中の文字を縦書きにする */
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 中のコンテンツ（矢印とテキスト） */
.tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tab-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.tab-text {
    /* テキストを縦書きにする */
    writing-mode: vertical-rl;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

/* --- ホバー（マウスを乗せた時）の動き --- */
#scrollTopButton.fixed-side-tab:hover {
    width: 80px; /* 横に少しせり出す */
    background: var(--text-dark); /* 色を変えて反応を示す */
    padding-right: 10px;
}

/* スマホ表示では少し邪魔になる可能性があるので、サイズを調整 */
@media (max-width: 768px) {
    #scrollTopButton.fixed-side-tab {
        width: 50px;
        height: 130px;
        bottom: 80px;
    }
    #scrollTopButton.fixed-side-tab:hover {
        width: 60px;
    }
}

/* --- スクロールボタンの z-index を少し下げてメニューを優先する --- */
#scrollTopButton.fixed-side-tab {
    position: fixed;
    right: 0; 
    bottom: 100px;
    width: 60px;
    height: 160px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    
    /* 修正：メニュー(2000)より背面に設定 */
    z-index: 1500; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    
    /* 常に表示を確定 */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 中のコンテンツなどの記述はそのまま（変更なし） --- */
.tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.tab-arrow { font-size: 1.5rem; font-weight: bold; }
.tab-text { writing-mode: vertical-rl; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.2em; }

#scrollTopButton.fixed-side-tab:hover {
    width: 80px; 
    background: var(--text-dark);
}

@media (max-width: 768px) {
    #scrollTopButton.fixed-side-tab {
        width: 50px;
        height: 130px;
        bottom: 80px; /* スマホでは少し位置を上げる */
    }
}