/* --- 共通リセット＆ベース設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.7;
    color: #2b303a;
    background-color: #f4f6f9;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 固定ヘッダーナビゲーション --- */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(10, 25, 47, 0.95); /* 深い紺（半透明） */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); /* 背景を少しぼかすモダンな効果 */
    z-index: 1000; /* 最前面に固定 */
}
.nav-container {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    flex-direction: column; /* 強制的に縦並びにする */
    justify-content: center;
}
.nav-logo a {
    display: block; /* ブロック要素にして縦に落とす */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.3;
}
/* 1行目（IPF Japan 2026） */
.nav-logo a:nth-child(1) {
    font-size: 1.1rem; 
}
/* 2行目（中村科学工業出展のご案内） */
.nav-logo a:nth-child(2) {
    font-size: 0.85rem;
    color: #adc6ff;
    margin-top: 2px;
}
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
/* 公式サイトに戻る特別ボタン */
.nav-links .nav-btn-corporate {
    background-color: #d4af37;
    color: #0a192f !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(214, 175, 55, 0.2);
}
.nav-links .nav-btn-corporate:hover {
    background-color: #f3cf65;
}

/* ヘッダー固定に伴い、一番上のメインビジュアルの余白を調整 */
.hero-section {
    padding-top: 170px; /* 70px分下にずらす */
}

/* スマホ用三本線ボタン（PCでは隠す） */
.menu-trigger {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-trigger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { top: 11px; }
.menu-trigger span:nth-child(3) { top: 22px; }

/* 三本線がバツ（×）に変化するアニメーションクラス */
.menu-trigger.active span:nth-child(1) { transform: translateY(11px) rotate(-45deg); }
.menu-trigger.active span:nth-child(2) { opacity: 0; }
.menu-trigger.active span:nth-child(3) { transform: translateY(-11px) rotate(45deg); }


/* ==========================================
   スマートフォン表示（既存の @media (max-width: 768px) の中に追加）
   ========================================== */
@media (max-width: 768px) {
    .menu-trigger {
        display: block; /* スマホのみ三本線を表示 */
        z-index: 1002;
    }
    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の右外側に隠す */
        width: 80%;
        height: 100vh;
        background-color: #0a192f;
        padding-top: 100px;
        transition: right 0.4s ease;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    /* メニューが開いたとき（JSでクラス付与） */
    .nav-links-wrapper.active {
        right: 0;
    }
    .nav-links {
        flex-direction: column; /* 縦並びにする */
        align-items: flex-start;
        padding-left: 40px;
        gap: 30px;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .nav-links .nav-btn-corporate {
        width: calc(100% - 40px);
        text-align: center;
        padding: 12px 0;
    }
}

.section {
    padding: 90px 0;
}

/* --- ボタン共通 --- */
.btn-primary {
    display: inline-block;
    background-color: #8cc63f; /*#d4af37;*/ /* 高級感のあるゴールド */
    color: #0a192f; /* 深い紺 */
    padding: 16px 45px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.btn-primary:hover {
    background-color: #f3cf65;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #0a192f;
    border: 2px solid #0a192f;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: #0a192f;
    color: #fff;
}

/* --- テキスト装飾 --- */
.section-title {
    text-align: center;
    font-size: 2.0rem;
    color: #0a192f;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #8cc63f; /*#d4af37;*/
}
.highlight-text {
    color: #8cc63f; /*#d4af37;*/
    font-weight: bold;
    font-size: 1.4rem;
    background-color: #0a192f;
    padding: 2px 8px;
    border-radius: 3px;
}
.small-text {
    font-size: 0.85rem;
    color: #666;
}

/* --- ヘッダー / メインビジュアル --- */
.hero-section {
    background: linear-gradient(135deg, #050c1a 0%, #0a192f 50%, #172a45 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    border-bottom: 4px solid #8cc63f; /*#d4af37;*/
}
.company-name {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
}
.event-tag {
    display: inline-block;
    background-color: rgba(214, 175, 55, 0.15);
    color: #8cc63f;
    border: 1px solid #8cc63f;
    font-weight: bold;
    padding: 4px 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.hero-section h1 {
    font-size: 2.0rem;
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 700;
}
.hero-lead {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.15rem;
    color: #adc6ff;
}
.note-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #ffb3b3;
}

/* --- 開催概要 --- */
.info-section {
    background-color: #fff;
}
.grid-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.info-item {
    background-color: #f8fafc;
    padding: 40px 30px;
    border-radius: 6px;
    border-top: 4px solid #0a192f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    text-align: center;
}
.info-item h3 {
    margin-bottom: 15px;
    color: #0a192f;
    font-size: 1.25rem;
}

/* --- 主要出展製品 --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.product-card {
    background: #fff;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.03);
    border-left: 5px solid #0a192f;
}
.product-card h4 {
    font-size: 1.2rem;
    color: #0a192f;
    margin-bottom: 15px;
}
.product-card p {
    font-size: 0.95rem;
    color: #4a5568;
}
.product-sub-list {
    line-height: 1.8;
    font-weight: 500;
}
.badge {
    background-color: #e53e3e;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 5px;
}

/* --- セミナー情報 --- */
.seminar-section {
    background-color: #fff;
}
.seminar-lead {
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: #4a5568;
}
.seminar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
}
.seminar-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.booth-seminar {
    border: 2px dashed #d4af37;
    background: #fffdf6;
}
.seminar-place {
    display: inline-block;
    font-weight: bold;
    color: #fff;
    background: #0a192f;
    padding: 4px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 20px;
}
.booth-seminar .seminar-place {
    background: #d4af37;
    color: #0a192f;
}
.seminar-item {
    margin-bottom: 25px;
}
.seminar-item:last-child {
    margin-bottom: 0;
}
.date-badge {
    font-size: 0.85rem;
    font-weight: bold;
    color: #007bff;
    background: #e6f2ff;
    padding: 2px 6px;
    border-radius: 3px;
}
.date-badge.accent {
    color: #c53030;
    background: #fff5f5;
}
.seminar-item h5 {
    font-size: 1.05rem;
    color: #0a192f;
    margin-top: 8px;
    font-weight: 700;
}

/* --- お問い合わせ先 --- */
.contact-box {
    background: #0a192f;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}
.contact-box h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #d4af37;
}
.tel-fax, .email {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.tel-fax span, .email span {
    font-weight: bold;
    letter-spacing: 0.5px;
}
.web-links {
    margin-top: 25px;
}
.web-links .btn-secondary {
    border-color: #d4af37;
    color: #d4af37;
}
.web-links .btn-secondary:hover {
    background-color: #d4af37;
    color: #0a192f;
}

/* --- フッター --- */
footer {
    background-color: #050c1a;
    color: #7a889b;
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- スマホ表示用レスポンシブ (768px以下) --- */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-lead { font-size: 1rem; }
    .sp-only { display: block; }
    .grid-info, .product-grid, .seminar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-box { padding: 25px 15px; }
    .tel-fax, .email { font-size: 0.95rem; }
}
/* --- 会場MAPセクション --- */
.map-section {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}
.map-container {
    display: flex;
    flex-direction: column; /* 左右ではなく、最初から上下に並べる */
    gap: 30px;
    max-width: 900px; /* パソコンで広がりすぎないように制限 */
    margin: 0 auto;
}

.map-image-area {
    width: 100%;        /* 領域の幅を100%に広げる */
    max-width: 100%;    /* 親要素からはみ出さないように制限 */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* overflow: hidden; は右側を強制的に切り取ってしまうため完全に削除しました */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 10px;      /* 画像の周りに少し余白を持たせることで、枠線と画像の衝突を防ぎます */
    box-sizing: border-box; /* パディングを含めたサイズ計算にする */
}
/* 地図画像下の不要なテキストを非表示にする */
.map-image-area {
    color: transparent;
    font-size: 0;
}

.map-image {
    width: 100%;        /* 白枠の横幅（内寸）に対して100%ピッタリに縮小させる */
    max-width: 100%;    /* 絶対に白枠の外へ飛び出させない */
    height: auto;       /* 横幅の縮小に合わせて、縦幅も自動で正しく縮小させる */
    display: block;
}

/* 下側のテキストエリア（左右2並びにしてスッキリさせる） */
.map-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCではテキストを左右に並べる */
    gap: 20px;
    width: 100%;
}

.booth-info-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 6px;
    border-left: 5px solid #0a192f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.booth-info-box.seminar-loc {
    border-left-color: #d4af37;
}
.location-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background: #0a192f;
    padding: 2px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.location-tag.seminar {
    background: #d4af37;
    color: #0a192f;
}
.booth-info-box h4 {
    font-size: 1.25rem;
    color: #0a192f;
    margin-bottom: 5px;
}
.booth-number {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.booth-number span {
    font-weight: bold;
    color: #c53030;
    background: #fff5f5;
    padding: 2px 6px;
    border-radius: 3px;
}
.map-desc {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

/* --- スマートフォン用レイアウト調整 --- */
@media (max-width: 768px) {
    .map-details {
        grid-template-columns: 1fr; /* スマホではテキストも縦1列にする */
        gap: 15px;
    }
    .booth-info-box {
        padding: 20px;
    }
}

/* --- レスポンシブ（既存の @media (max-width: 768px) 内に自動適用されますが、一応追記） --- */
@media (max-width: 768px) {
    .map-container {
        grid-template-columns: 1fr; /* スマホ時は縦に並べる */
        gap: 25px;
    }
    .booth-info-box {
        padding: 20px;
    }
}
/* その他製品のリストの改行を整える */
.product-sub-list {
    text-align: left; /* 左寄せにする */
    display: inline-block; /* 枠内で自然な幅にする */
    margin: 0 auto;
}
/* --- ご挨拶・詳細本文セクション --- */
.greeting-section {
    background-color: #fff;
}
.greeting-box {
    max-width: 850px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.greeting-text-visible {
    font-size: 1.05rem;
    color: #2b303a;
    margin-bottom: 0;
}
.greeting-box p {
    margin-bottom: 20px;
    text-indent: 1em; /* 行頭を1文字空ける日本語の綺麗目のスタイル */
    text-align: justify; /* 両端を綺麗に揃える */
}
.greeting-box p:last-child {
    margin-bottom: 0;
}

/* 隠し文章の初期状態（高さを0にして隠す） */
.greeting-text-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out; /* 開くときのアニメーション */
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-out;
}

/* JavaScriptでこのクラスがつくと展開する */
.greeting-text-hidden.is-open {
    max-height: 1500px; /* 十分な高さを確保（文章量に応じて自動でフィットします） */
    opacity: 1;
    margin-top: 20px;
}

/* 展開ボタンのデザイン */
.expand-btn-wrapper {
    text-align: center;
    margin-top: 30px;
}
.btn-expand {
    background-color: #0a192f;
    color: #8cc63f;
    border: 2px solid #8cc63f;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-expand:hover {
    background-color: #8cc63f;
    color: #0a192f;
}

/* スマホ表示用の微調整 */
@media (max-width: 768px) {
    .greeting-box {
        padding: 25px 20px;
    }
    .greeting-text-visible, .greeting-text-hidden p {
        font-size: 0.95rem;
    }
}
/* --- ギャラリー（ブース・出展機画像）セクション --- */
.gallery-section {
    background-color: #f4f6f9;
}
.gallery-lead {
    text-align: center;
    margin-bottom: 40px;
    color: #4a5568;
    font-size: 1.05rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCでは2カラムのグリッド */
    gap: 30px;
}
/* ブースのイメージ図（最初の要素）を横いっぱいに広げて大きく見せる設定 */
.gallery-item.large-item {
    grid-column: 1 / span 2; 
}
.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-3px);
}
.gallery-image-wrapper {
    width: 100%;
    height: 250px; /* 縦幅の上限サイズ（この高さの中に収めます） */
    background-color: #f8fafc; /* 画像の左右や上下にできる隙間の背景色（白に近いグレー） */
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
    
    /* 縦長・横長の画像を枠の「真ん中」に綺麗に配置する設定 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item.large-item .gallery-image-wrapper {
    height: 400px; 
}
/* 先ほどと同様に画像が枠をはみ出さないようにコントロール */
.gallery-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
    
    /* ★超重要：切り抜かず、比率を保ったまま枠内にすべて収める */
    object-fit: contain; 
}
/* 画像の下につくテキスト説明エリア */
.gallery-caption {
    padding: 20px 25px;
    border-top: 3px solid #0a192f; /* 紺色のアクセントライン */
}
.gallery-caption h4 {
    font-size: 1.15rem;
    color: #0a192f;
    margin-bottom: 8px;
    font-weight: 700;
}
.gallery-caption p {
    font-size: 0.9rem;
    color: #5c6b73;
    line-height: 1.6;
    margin: 0;
}

/* --- スマートフォン用レスポンシブ (既存の@media内、または末尾に追記) --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* スマホではすべて縦1列にする */
        gap: 20px;
    }
    .gallery-item.large-item {
        grid-column: auto; /* スマホでは横幅いっぱいの特殊設定を解除 */
    }
    .gallery-caption {
        padding: 15px 20px;
    }
}
/* PC表示時にギャラリーカードの高さを綺麗に統一する（style.cssの末尾へ追記） */
@media (min-width: 769px) {
    .gallery-grid {
        align-items: stretch;
    }
    .gallery-item {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .gallery-caption {
        flex-grow: 1; /* 解説文の長さに合わせてカードの高さを自動で揃える */
    }
}

/* ページ内スクロールの止まる位置をヘッダーの高さ分ずらす */
html {
    scroll-padding-top: 90px; /* ヘッダーの高さ(70px) + ゆとりの余白(20px) */
}
/* ==========================================
   ★ 追加：開催概要（info-section）の余白調整
   ========================================== */
.info-section {
    padding: 40px 0 !important; /* 上下の余白を90pxから40pxへ大幅に縮小 */
}

/* タイトル下の余白も少し詰めてコンパクトに */
.info-section .section-title {
    margin-bottom: 30px !important;
}
/* PC表示時に3つの項目を横に並べてスペースを有効活用する */
@media (min-width: 769px) {
    .info-section .grid-info {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3等分に横並び */
        gap: 20px !important;
        align-items: stretch;
    }
    .info-section .info-item {
        margin-bottom: 0 !important;
        height: 100%; /* 高さを綺麗に揃える */
    }
}
/* ==========================================
   ★ 追加：事前来場登録ボタンをIPFロゴの黄緑色に変更
   ========================================== */

/* メインビジュアル（ヘッダー）内およびページ内の事前登録ボタン */
.hero-section .btn-primary,
.cta-wrapper .btn-primary {
    /* IPFロゴのイメージカラーである鮮やかな黄緑色を設定 */
    background-color: #8cc63f !important; 
    
    /* 文字色は深い紺色にして可読性（読みやすさ）を確保 */
    color: #0a192f !important; 
    
    border: none !important;
    font-weight: bold !important;
    
    /* 黄緑色に合わせた柔らかい光彩の影をつける */
    box-shadow: 0 4px 20px rgba(140, 198, 63, 0.4) !important;
    transition: all 0.3s ease !important;
}

/* ボタンにマウスを乗せたとき（ホバー時）の動き */
.hero-section .btn-primary:hover,
.cta-wrapper .btn-primary:hover {
    /* 少し明るい黄緑色に変化 */
    background-color: #a2dc53 !important; 
    
    /* ボタンをわずかに上に浮かせて立体感を出す */
    transform: translateY(-2px) !important;
    
    /* 影を少し強くして浮遊感を強調 */
    box-shadow: 0 6px 25px rgba(140, 198, 63, 0.6) !important;
}
/* ==========================================
   ★ 追加：見出し（section-title）の下線を黄緑色に変更
   ========================================== */
.section-title::after {
    /* ゴールドからIPFロゴカラーの黄緑色に一括変換 */
    background-color: #8cc63f !important;
    
    /* 線の太さや長さを少しスッキリさせて洗練された印象に調整 */
    height: 3px !important;
    width: 60px !important;
}
/* ギャラリーカードの上部の細い線を黄緑色にする */
.gallery-item {
    border-top: 3px solid #8cc63f !important;
}
.gallery-caption {
    border-top: none !important; /* 二重線を防ぐ */
}

/* セミナーカード（ブース内）の破線やバッジも黄緑色系にして馴染ませる */
.booth-seminar {
    border: 2px dashed #8cc63f !important;
}
.booth-seminar .seminar-place {
    background: #8cc63f !important;
    color: #0a192f !important;
}
/* ==========================================
   ★ 追加：スマホ表示時のみタイトルの文字サイズを最適化
   ========================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        /* スマホ時の文字サイズを現在の大きさから少し小さく調整 */
        font-size: 1.2rem !important; 
        
        /* 文字同士の左右の詰まり具合をわずかに調整して1行に入りやすくする */
        letter-spacing: 0.5px !important; 
        
        /* 1つの単語（省エネなど）の途中で変な改行が起きるのを防ぐ現代のCSS指定 */
        word-break: keep-all !important;
        overflow-wrap: anywhere !important;
        
        line-height: 1.5 !important;
        padding: 0 10px; /* 左右に少しだけ余白を作って画面端への衝突を防ぐ */
    }
}
/* パソコン画面ではスマホ用の改行を完全に無視する */
.sp-br {
    display: none !important;
}

/* スマホ画面（768px以下）の時だけ改行を有効化する */
@media (max-width: 768px) {
    .sp-br {
        display: block !important;
    }
    .hero-section h1 {
        font-size: 1.4rem !important; /* 改行されるため、サイズは少し大きめでも綺麗に収まります */
        line-height: 1.6 !important;
    }
}

/* --- 事前登録セクション（CTA）の中央寄せ修正・完全版 --- */
.contact-section {
    text-align: center !important; /* セクション全体で強制的に中央寄せにする */
}

.cta-wrapper {
    max-width: 800px;
    margin: 0 auto !important; /* 左右の中央配置を確実にする */
    background: #fff;
    padding: 45px 40px;
    border-radius: 8px;
    text-align: center !important; /* 中身のテキストやボタンを中央寄せ */
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.04);
    position: relative;
    border-top: 4px solid #8cc63f; 
    box-sizing: border-box;
}

/* ボタン自体も確実に中央に配置されるようにする */
.cta-wrapper .btn-primary {
    display: inline-block;
    margin: 0 auto;
}

/* 注意書きのテキストも中央に綺麗に収める */
.cta-wrapper .note-text {
    margin: 15px auto 0 auto !important;
    font-size: 0.85rem;
    color: #c53030;
    background: #fff5f5;
    display: inline-block; 
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
}

/* --- スマホ表示用レスポンシブ --- */
@media (max-width: 768px) {
    .cta-wrapper {
        padding: 30px 20px;
    }
    .cta-title {
        font-size: 1.2rem;
    }
    .cta-wrapper .btn-primary {
        width: 100%; /* スマホでは押しやすいように横幅いっぱいにする */
        padding: 14px 20px;
        font-size: 1.05rem;
    }
    .cta-wrapper .note-text {
        font-size: 0.8rem;
        display: block; /* スマホではブロック要素にして自然に折り返す */
        text-align: center;
    }
}