:root {
    --primary-color: #d4af37; /* Gold matching logo */
    --primary-hover: #b5952f;
    --navy-color: #2c3e50; /* Navy matching logo text */
    --bg-main: #ffffff; /* Clean white */
    --bg-alt: #fcfbf9; /* Warm off-white */
    --text-main: #333333;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(44, 62, 80, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.3;
    color: var(--navy-color);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    padding: 0.5rem 0; /* 上下余白を最小限に */
    height: 70px; /* 高さを固定して安定させる */
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ロゴの改行対応とフォントサイズ調整 */
.navbar .logo {
    font-size: 1.1rem; /* 少し小さくして2段でも収まりよく */
    line-height: 1.2;
    font-weight: 900;
    color: var(--navy-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ロゴのサイズ調整 */
.navbar .logo img {
    display: block;
    max-height: 45px; /* ヘッダーを圧迫しない高さ */
}

/* メニュー項目が増えたため、間隔を調整 */
.nav-links {
    display: flex;
    gap: 1rem; /* 1.5remから少し詰めて横幅を確保 */
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem; /* 項目数に合わせて微調整 */
    font-weight: 700;
    text-decoration: none;
    color: var(--navy-color);
    transition: color 0.3s;
}

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

/* お問合せボタン（ナビゲーション内） */
.nav-cta {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Specificity fix for valid primary button in nav */
.nav-links a.btn-primary-small {
    color: #ffffff;
}
.nav-links a.btn-primary-small:hover {
    color: #ffffff;
    background: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-primary-small {
    display: inline-block;
    background: var(--navy-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-primary-small { padding: 0.5rem 1.5rem; margin-left: 2rem !important; }

.btn-primary:hover, .btn-primary-small:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--navy-color);
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 4px;
    border: 2px solid var(--navy-color);
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--navy-color);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Hero Section 修正版 --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-alt);
    color: var(--navy-color);
    padding-top: 100px; /* ナビゲーションとのバランスを調整 */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 【ポイント】作成した「横長・右寄せ画像」を指定。
       背景に薄いグラデーションを重ねて文字を浮き立たせます */
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 50%, transparent 100%),
                url('hero_bg_ultra_wide.png') no-repeat right center / cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px; /* 少し広げて読みやすく */
    margin-left: 5%;
    text-align: left;
    padding: 0 2rem;
}

/* キャッチコピーにわずかな影をつけて可読性をアップ */
.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

/* スマホ対応の強化 */
@media (max-width: 768px) {
    .hero-bg {
        /* スマホでは画像の中央（太陽）をメインに見せる */
        background-position: 70% center;
    }
    .hero-content {
        background: rgba(255, 255, 255, 0.85); /* 白い膜を少し濃く */
        backdrop-filter: blur(5px);
        padding: 2.5rem 1.5rem;
        border-radius: 12px;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        max-width: 100%;
    }
    .hero h1, .hero h1 span {
        font-size: 1.8rem !important; /* スマホで読みやすいサイズに */
        white-space: normal !important; /* 折り返しを許可 */
    }
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sections */
.section { padding: 6rem 0; }
.dark-section { background: var(--bg-alt); }
.light-section { background: var(--bg-main); }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Vision Section: 「光を繋ぐ」透過風景デザイン --- */
#vision {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--bg-main);
}

.vision-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* ヒーロー画像を使用。上部(0%)はゴールドの光を濃くし、下へ向かって白く消えていく設定 */
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0.9) 100%),
                url('hero_bg_ultra_wide.png') no-repeat center center / cover;
    opacity: 0.4; /* 背景風景の透け具合を上げて風景を強調 */
    z-index: 1;
}

.vision-card {
    /* 【修正ポイント1】背景色を「不透明な白」から「半透明の白」に変更 */
    background: rgba(255, 255, 255, 0.2); /* さらに透け感を増すために0.2に調整 */
    
    /* 【修正ポイント2】背後をぼかす効果（これによって文字が読みやすくなります） */
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    
    /* その他のスタイルは維持 */
    padding: 4.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 縁を少し光らせるとより綺麗です */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.vision-text h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--navy-color);
}

.vision-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: var(--text-main);
}

/* 強調箇所のデザイン */
.vision-text strong {
    color: var(--navy-color);
    background: linear-gradient(transparent 70%, rgba(212, 175, 55, 0.3) 0%);
    padding: 0 2px;
}

@media (max-width: 768px) {
    .vision-card {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
    }
}

/* Concept Diagram (Custom CSS) */
.method-diagram {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    position: relative;
}
.cycle-node {
    background: #ffffff;
    border: 2px solid var(--navy-color);
    border-radius: 12px;
    padding: 2.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    color: var(--navy-color);
    position: relative;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.cycle-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.08);
}
.cycle-node.highlight {
    border-color: var(--primary-color);
    background: #fffdf5; /* subtle gold */
}
.node-num {
    background: var(--navy-color);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    position: absolute;
    top: -18px;
}
.cycle-node.highlight .node-num {
    background: var(--primary-color);
}

/* Diagram layout & arrows */
.node-1 { grid-column: 1; grid-row: 1; }
.node-2 { grid-column: 2; grid-row: 1; }
.node-3 { grid-column: 3; grid-row: 1; }
.node-4 { grid-column: 3; grid-row: 2; }
.node-5 { grid-column: 2; grid-row: 2; }
.node-6 { grid-column: 1; grid-row: 2; }

@media (min-width: 769px) {
    .cycle-node::before {
        content: '➔';
        position: absolute;
        font-size: 2rem;
        color: #cbd5e1;
        font-family: Arial, sans-serif;
    }
    .node-1::before { right: -1.75rem; top: 50%; transform: translateY(-50%); }
    .node-2::before { right: -1.75rem; top: 50%; transform: translateY(-50%); }
    .node-3::before { bottom: -2rem; left: 50%; transform: translateX(-50%) rotate(90deg); }
    .node-4::before { left: -2.3rem; top: 50%; transform: translateY(-50%) rotate(180deg); }
    .node-5::before { left: -2.3rem; top: 50%; transform: translateY(-50%) rotate(180deg); }
    .node-6::before { top: -2rem; left: 50%; transform: translateX(-50%) rotate(-90deg); }
}
@media (max-width: 768px) {
    .method-diagram { grid-template-columns: 1fr; gap: 3rem; }
    .node-1, .node-2, .node-3, .node-4, .node-5, .node-6 { grid-column: 1; grid-row: auto; }
    .cycle-node::before {
        content: '➔';
        position: absolute;
        bottom: -2.3rem;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
        font-size: 2rem;
        color: #cbd5e1;
    }
    .node-6::before { display: none; }
}

/* --- MODEL Section: アナログ×デジタルの融合デザイン --- */
#model {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-alt); /* VISIONと交互に背景色を変えて区切りを明確に */
}

.section-header-left {
    margin-bottom: 2rem;
}

.section-header-left h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-top: 1rem;
    color: var(--text-main);
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.model-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.model-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.1);
}

/* 3枚目の「融合」カードを少しだけ強調 */
.model-card.highlighting {
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.03);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.1);
    font-family: 'Inter', sans-serif;
}

.model-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--navy-color);
}

.model-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .section-header-left h3 { font-size: 2rem; }
    .model-card { padding: 2.5rem 1.5rem; }
}

/* --- Solution Section: 余白を詰め、読みやすさを追求 --- */

.solution-cases {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 事例間の距離を詰める */
    margin-top: 2rem;
}

.solution-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2rem;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 1rem;
}

.case-num {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.9rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.case-header h4 {
    font-size: 1.4rem;
    color: var(--navy-color);
    margin: 0;
}

.case-body {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右2カラムで情報を凝縮 */
    gap: 2rem;
}

.pain-point h5, .action-result h5 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.pain-point h5::before { content: "●"; margin-right: 0.5rem; font-size: 0.8rem; }
.action-result h5::before { content: "✔"; margin-right: 0.5rem; }

.pain-point p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.action-result ul {
    list-style: none;
    padding: 0;
}

.action-result li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.action-result li::before {
    content: "・";
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .case-body {
        grid-template-columns: 1fr; /* スマホでは縦並び */
        gap: 1.5rem;
    }
}

/* --- SERVICE Section: 統一レイアウト --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--navy-color);
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    min-height: 140px; /* 文章量が増えたため、高さを少し確保 */
}

/* SNS採用診断ボタンの強調デザイン */
.service-cta-box {
    margin-top: 1.5rem;
    padding: 1.5rem 1rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 12px;
    border: 1px dashed var(--primary-color);
    text-align: center;
    display: flex;
    flex-direction: column; /* 縦並びにする */
    align-items: center;
    gap: 0.8rem; /* ボタンとテキストの間隔 */
}

.btn-small {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    width: 100%;
    max-width: 240px; /* ボタンが広がりすぎないように */
}

.cta-note {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--navy-color);
    font-weight: 500;
    margin: 0;
}

.service-checklist {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(44, 62, 80, 0.15);
    padding-top: 1.5rem;
}

.service-checklist li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.service-checklist li i {
    color: var(--primary-color);
    margin-right: 0.6rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

/* --- BLOG & NEWS: 余白詰めとデザイン統一 --- */

#insights .section-header-left {
    margin-bottom: 1.5rem; /* タイトル下の余白を大幅にカット */
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem; /* 記事同士の間隔を詰める */
}

.insight-card {
    background: rgba(255, 255, 255, 0.4); /* 他セクションと同じ透過感 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    position: relative;
}

.card-label {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 12px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* 下部リンクのボタンデザイン */
.insights-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.note-all-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.note-all-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer / CTA */
.footer {
    background: var(--navy-color);
    padding: 6rem 0 2rem;
    color: #ffffff;
}

.cta-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 6rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: var(--navy-color);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-form input {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text-main);
    border-radius: 4px;
    flex: 1;
    min-width: 250px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom .logo {
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-secondary { margin-left: 0; margin-top: 1rem; border-color: var(--navy-color); color: var(--navy-color); }
    .service-item { flex-direction: column; }
    .service-number { width: 100%; padding: 1rem; }
    .service-number::after { width: 100%; height: 4px; bottom: 0; right: auto; top: auto; }
}

/* Web Diagnosis Module (V2 - Light Premium Theme) */
.diag-body {
    background: var(--bg-alt); /* Warm off-white */
    color: var(--text-main);
}
.diag-app-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 50%),
                radial-gradient(circle at bottom left, rgba(44, 62, 80, 0.02), transparent 40%);
}
.diag-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.diag-header {
    text-align: center;
    margin-bottom: 2rem;
}
.diag-header h2 {
    color: var(--navy-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.diag-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}
.diag-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(44, 62, 80, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.diag-progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease;
}
.diag-progress-text {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}
.diag-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.05);
}
.diag-step {
    display: none;
    animation: fadeInSlide 0.5s ease forwards;
}
.diag-step.active {
    display: block;
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.diag-step h3 {
    color: var(--navy-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}
.diag-step-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.diag-label-dark {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
}
.diag-label-dark:hover {
    background: #fbf9f1;
    border-color: var(--primary-color);
    transform: translateX(5px);
}
.diag-label-dark input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: var(--primary-color);
}
.diag-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}
.btn-diag-next, .btn-diag-prev {
    background: transparent;
    color: var(--navy-color);
    border: 1px solid #cbd5e1;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-diag-next {
    background: var(--navy-color);
    border-color: var(--navy-color);
    color: #ffffff;
    margin-left: auto;
}
.btn-diag-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-diag-prev:hover {
    background: #f1f5f9;
}

/* Form inputs for Lead */
.lead-capture-box-dark {
    text-align: center;
}
.lead-capture-box-dark h3 {
    font-size: 1.8rem;
    color: var(--navy-color);
}
.lead-form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}
.lead-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}
.lead-form-group input {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    border-radius: 6px;
    font-size: 1rem;
}
.lead-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.diag-submit-btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 1.2rem;
    margin-top: 1rem;
    border-radius: 50px;
    background: var(--navy-color);
    color: #ffffff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.diag-submit-btn:hover { 
    background: var(--primary-color); 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Loading */
.diag-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(44, 62, 80, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Results */
.diag-result-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInSlide 0.8s ease;
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.08);
}
.result-header {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-alt);
    border-bottom: 1px solid #e2e8f0;
}
.result-header h2 {
    color: var(--navy-color);
    margin-bottom: 1rem;
}
.rank-badge {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    background: #e67e22; /* Keep rank orange for pop */
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}
.result-body {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem;
}
.chart-wrapper {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.analysis-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.analysis-item {
    background: #ffffff;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.analysis-item.worst-item {
    border: 2px solid #b03060; /* Enji Red */
    border-left: 6px solid #b03060;
    background: rgba(176, 48, 96, 0.06); /* Stronger pink background */
    box-shadow: 0 0 15px rgba(176, 48, 96, 0.1);
}
.analysis-item h4 {
    color: var(--navy-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.score-pill {
    background: #f1f5f9;
    color: var(--navy-color);
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.worst-badge {
    background: #b03060;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    animation: pulseRisk 2s infinite;
}
@keyframes pulseRisk {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.analysis-desc {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.8;
}
.analysis-desc b {
    color: var(--primary-color);
}
.diag-cta-box {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-alt);
    border-top: 1px solid #e2e8f0;
}
.cta-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: left;
}
.cta-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: #fff;
    position: relative;
}
.cta-avatar::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}
.cta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.cta-message h3 {
    color: var(--navy-color);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}
.cta-message p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
}
.cta-pulse {
    animation: pulse 2s infinite;
}
.cta-mobile-full {
    display: inline-block;
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@media (max-width: 768px) {
    .result-body { grid-template-columns: 1fr; }
    .diag-card { padding: 1.5rem; }
    .diag-nav-buttons { flex-direction: column-reverse; gap: 1rem; }
    .btn-diag-next, .btn-diag-prev { width: 100%; text-align: center; margin-left: 0; }
    .cta-profile { flex-direction: column; text-align: center; }
}

/* --- 全体的な余白の引き締め --- */

/* 1. セクション間の余白を詰める (100px → 60px) */
.section {
    padding: 60px 0 !important;
}

/* 2. タイトル（ヘッダー）下の余白を大幅に詰める */
.section-header-left {
    margin-bottom: 1.5rem !important; /* 4remや2remからさらに短縮 */
}

.section-lead {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* 3. 各グリッド（MODEL, SERVICE, BLOG）の上部余白と間隔を調整 */
.model-grid, .service-grid, .insights-grid {
    margin-top: 1.5rem !important; /* タイトルからコンテンツへの距離を縮小 */
    gap: 1.25rem !important; /* カード同士の間隔を少し詰める */
}

/* 4. カード内部の余白を最適化 (パディングを少し削る) */
.model-card, .service-card, .insight-card {
    padding: 2.5rem 2rem !important; /* 上下の余白を詰めて密度をアップ */
}

/* 5. カード内の要素間の隙間を詰める */
.model-card h4, .service-card h4 {
    margin-bottom: 0.75rem !important;
}

.card-description, .model-card p, .service-card p {
    margin-bottom: 1rem !important;
    min-height: auto !important; /* 高さを固定せず、内容に合わせることで隙間を排除 */
}

/* 6. SNS採用診断ボックスの調整 */
.service-cta-box {
    margin-top: 1rem !important;
    padding: 1rem !important;
    gap: 0.5rem !important;
}

/* 7. note埋め込み周りの微調整 */
iframe.note-embed {
    margin-bottom: 0 !important; /* iframe自体の下の隙間を削除 */
}

.insights-grid {
    margin-bottom: 0 !important; /* グリッド下の余白をゼロに */
}

.insights-footer {
    margin-top: 1rem !important; /* ボタン上のスペースを最小限（約16px）に設定 */
}

/* 8. レスポンシブ時の調整（スマホでも間伸びしないように） */
@media (max-width: 768px) {
    .section {
        padding: 40px 0 !important;
    }
    .model-card, .service-card {
        padding: 1.5rem !important;
    }
}

/* --- プロフィール・お問い合わせ等のスタイル調整 --- */
.profile-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.profile-image img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(20%);
}

.contact-form-container {
    max-width: 800px;
}

.form-group {
    margin-bottom: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.partner-card {
    background: rgba(44, 62, 80, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px dashed var(--primary-color);
}

/* プロフィール・肩書きのスタイル */
.profile-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* noteボタン（配置変更に伴う調整） */
.note-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.note-all-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* フッターのロゴサイズ調整 */
.footer-logo img {
    /* もし背景が暗いフッターでロゴが見えにくい場合は、以下の1行を有効にしてください */
    /* filter: brightness(0) invert(1); */
}

/* レスポンシブ対応: 項目が多いので早めにハンバーガーメニューにするか検討が必要ですが、一旦調整 */
@media (max-width: 1100px) {
    .nav-links {
        gap: 0.5rem;
    }
    .nav-links a {
        font-size: 0.75rem;
    }
}

/* 代表者名のフォントサイズアップ */
.profile-name {
    font-size: 2.2rem !important; /* 以前より大きく強調 */
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--navy-color);
}

.profile-name .en-name {
    font-size: 1.1rem;
    font-weight: 400;
    color: #888;
    margin-left: 10px;
}

/* 解決事例カード内のリスト調整 */
.solution-card ul {
    margin-top: 1rem;
}

.solution-card li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* SNSとQRエリア */
.profile-sns-area {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.profile-sns-links {
    display: flex;
    gap: 1.5rem;
}

.profile-sns-links a {
    font-size: 1.8rem;
    color: var(--navy-color);
    transition: color 0.3s, transform 0.3s;
}

.profile-sns-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.note-qr-box {
    text-align: center;
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
}

.note-qr-box img {
    width: 80px;
    height: 80px;
    display: block;
    margin-bottom: 5px;
}

.note-qr-box span {
    font-size: 0.7rem;
    font-weight: bold;
    color: #666;
}

/* 記事が4つ並ぶように調整 */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* 2列並びを優先 */
    gap: 2rem;
}

/* 解決事例の横並び調整 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3カラム */
    gap: 1.5rem;
    margin-top: 2rem;
}

.solution-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* 高さを揃える */
    padding: 1.5rem !important; /* 横並びなので少しパディングを詰める */
}

.case-pain {
    font-weight: 700;
    color: var(--navy-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.case-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1; /* テキスト量に関わらず下のリストの位置を揃える */
}

/* noteの2記事連結スタイル */
.insights-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.insight-dual-card {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0; /* 記事間の隙間をなくす */
}

/* スマホ対応 */
@media (max-width: 992px) {
    .solution-grid, .insights-dual-grid {
        grid-template-columns: 1fr; /* スマホでは1列に戻す */
    }
}

/* フッターのスタイル修正 */
.footer {
    background-color: #1a2533 !important; /* ヒーローセクションの影の色に近いネイビー */
    color: #ffffff;
    padding: 50px 0;
}

.footer-logo img {
    filter: none !important; /* ロゴの色をそのまま見せる */
    height: 80px !important;
}

/* ==========================================
   スマホ・タブレット用のレスポンシブ調整
   ========================================== */
@media (max-width: 768px) {
    /* 1. ヘッダーをスッキリさせ、ロゴを中央寄りに */
    .nav-container {
        flex-direction: column;
        padding: 10px;
    }
    
    /* PC用メニューはスマホでは一度隠し、スクロールで対応するか検討（暫定的に小さく横並び） */
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 0.75rem; /* 文字を小さく */
        margin-top: 5px;
    }

    .nav-links a {
        padding: 4px 6px;
    }

    .nav-cta {
        display: none; /* お問合せボタンはヒーローの下などにあるため一旦非表示でスッキリさせる */
    }

    /* 2. ヒーローセクション：画像の配置と文字背景の調整 */
    .hero {
        padding: 40px 15px;
        min-height: auto;
        display: block;
    }

    .hero-content {
        background: rgba(255, 255, 255, 0.85); /* 透明度を上げ、下の画像を見えやすく */
        padding: 20px;
        border-radius: 12px;
        width: 100%;
        margin: 0 auto;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-position: center !important; /* 画像を中央に寄せる */
        opacity: 0.5; /* 文字を読みやすくするため画像を少し薄く */
    }

    /* 3. ボタンを縦に並べて押しやすくする */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn-primary, 
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
