/* ===================================
   リセット & 基本設定
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --primary-color: #2563EB;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;
    
    --bg-white: #FFFFFF;
    --bg-gray: #F3F4F6;
    --bg-dark: #1F2937;
    
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    
    /* フォント */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-number: 'Roboto', sans-serif;
    
    /* スペーシング */
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* トランジション */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    background-color: var(--bg-white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   ヘッダー
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-image:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

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

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    list-style: none;
    border-radius: 8px;
    margin-top: 0px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--bg-gray);
    color: var(--primary-color);
}

.btn-diagnosis {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
}

.btn-diagnosis:hover {
    background-color: #D97706;
    color: white !important;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-color);
    font-size: 56px;
    font-family: var(--font-number);
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-gray);
}

.hero-description strong {
    color: var(--primary-color);
    font-size: 24px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 16px;
    color: var(--text-dark);
}

.feature-text span {
    font-size: 14px;
    color: var(--text-gray);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===================================
   ボタン
   =================================== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-subtitle {
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* ===================================
   セクション共通
   =================================== */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   問題提起セクション
   =================================== */
.problems {
    background-color: var(--bg-white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.problem-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.problem-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.problems-message {
    text-align: center;
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   解決策の提示
   =================================== */
.solutions-overview {
    background-color: var(--bg-gray);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.solution-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.solution-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.solution-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.solution-card p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.solution-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-number);
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===================================
   コスト削減診断CTA
   =================================== */
.diagnosis-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1D4ED8 100%);
    color: white;
}

.cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: white;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-feature {
    font-size: 18px;
    padding-left: 10px;
}

.cta-box .btn-primary {
    background-color: var(--accent-color);
}

.cta-box .btn-primary:hover {
    background-color: #D97706;
}

.cta-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* ===================================
   サービス一覧
   =================================== */
.services {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--bg-gray);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.service-card.priority-high {
    border-color: var(--primary-color);
    border-width: 3px;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-list {
    list-style: none;
    margin-bottom: 25px;
}

.service-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
    font-size: 15px;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ===================================
   学び・コンテンツページ
   =================================== */
.learning-hero {
    padding-top: 120px;
}

.learning-hero .hero-content {
    display: block;
    max-width: 960px;
    margin: 0 auto;
}

.learning-hero .hero-left {
    max-width: 100%;
    margin: 0;
}

.learning-benefits {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.learning-benefits li {
    margin-bottom: 8px;
    font-size: 16px;
}

.learning-section .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-lead {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-footer {
    margin-top: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.service-footer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.learning-section.final-cta {
    background: #F5F7FA;
    color: var(--text-dark);
    text-align: center;
}

.learning-section.final-cta .section-subtitle {
    color: var(--text-dark);
    margin-bottom: 16px;
}

.learning-section.final-cta .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.learning-section.final-cta .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.final-cta .btn {
    min-width: 220px;
}

.final-cta .section-subtitle {
    margin-bottom: 20px;
}

/* ===================================
   Financial Architect詳細
   =================================== */
.fa-detail {
    background-color: var(--bg-gray);
}

.fa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.fa-intro {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.fa-features {
    margin: 40px 0;
}

.fa-feature {
    margin-bottom: 25px;
}

.fa-feature h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.fa-feature p {
    color: var(--text-gray);
    padding-left: 25px;
}

.fa-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.diagram-placeholder {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.diagram-top,
.diagram-bottom {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 30px;
}

.diagram-bottom {
    background-color: var(--secondary-color);
    margin-bottom: 0;
    margin-top: 30px;
}

.diagram-middle {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.diagram-box {
    background-color: var(--bg-gray);
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid var(--text-gray);
}

/* ===================================
   9つのソリューション
   =================================== */
.solutions {
    background-color: var(--bg-white);
}

.solutions-grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-item {
    background-color: var(--bg-gray);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-white);
    border: 2px solid var(--primary-color);
}

.solution-item.coming-soon {
    opacity: 0.6;
}

.solution-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.solution-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.solution-item p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===================================
   実績・事例
   =================================== */
.cases {
    background-color: var(--bg-gray);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-number);
    display: block;
    margin-bottom: 10px;
}

.stat-item .stat-label {
    font-size: 16px;
    color: var(--text-gray);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.case-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.case-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.case-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.case-result {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.cases-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
}

/* ===================================
   代表・チーム紹介
   =================================== */
.team {
    background-color: var(--bg-white);
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.representative-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-name {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.team-credentials {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.team-bio {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.team-strengths {
    margin-bottom: 30px;
}

.team-strengths h4 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 20px;
    color: var(--text-dark);
}

.team-strengths ul {
    list-style: none;
    padding-left: 0;
}

.team-strengths li {
    padding: 5px 0;
    color: var(--text-gray);
}

.team-message {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.team-note {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===================================
   FP個人向けサービス
   =================================== */
.personal-services {
    background-color: var(--bg-gray);
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.personal-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.personal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.personal-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.personal-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.personal-message {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ===================================
   ブログ
   =================================== */
.blog {
    background-color: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--bg-gray);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.5;
}

.blog-meta {
    font-size: 14px;
    color: var(--text-gray);
}

.blog-cta {
    text-align: center;
}

/* ===================================
   最終CTA
   =================================== */
.final-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: white;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.final-cta .btn-primary {
    background-color: var(--accent-color);
}

.final-cta .btn-primary:hover {
    background-color: #D97706;
}

.final-cta .btn-secondary {
    border-color: white;
    color: white;
}

.final-cta .btn-secondary:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* ===================================
   お問い合わせ
   =================================== */
.contact {
    background-color: var(--bg-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-dark);
}

.required {
    color: var(--danger-color);
    font-size: 12px;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-submit {
    text-align: center;
}

.contact-info {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-gray);
}

.contact-line {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-gray);
}

.qr-code-image {
    width: 150px;
    height: 150px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.contact-line a img {
    width: 150px;
    height: auto;
    display: block;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   レスポンシブ対応
   =================================== */
@media (max-width: 1024px) {
    .hero-content,
    .fa-content,
    .team-content {
        grid-template-columns: 1fr;
    }

    .solutions-grid,
    .services-grid,
    .cases-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 32px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--bg-gray);
        padding: 15px 0;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title .highlight {
        font-size: 42px;
    }

    .section-title {
        font-size: 28px;
    }

    .solutions-grid,
    .services-grid,
    .cases-grid,
    .blog-grid,
    .solutions-grid-9,
    .personal-grid {
        grid-template-columns: 1fr;
    }

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

    .stats {
        flex-direction: column;
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .final-cta-buttons .btn {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-title .highlight {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .solution-card h3 {
        font-size: 20px;
    }

    .stat-item .stat-number {
        font-size: 48px;
    }

    .representative-photo {
        max-width: 100%;
        margin: 0 auto;
    }

    .team-photo {
        margin-bottom: 30px;
    }
}

/* ===================================
   カスタムモーダル
   =================================== */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.custom-modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-message {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.modal-close-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background-color: #1D4ED8;
}

/* ============================================
   シンプルチャットボット UI
   ============================================ */

/* 起動ボタン */
.simple-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    display: none;
  }
  
  .simple-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.6);
  }
  
  .simple-chatbot-toggle.show {
    display: block;
  }
  
  /* ヘッダー */
  .simple-chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    border-radius: 12px 12px 0 0;
  }
  
  .simple-chatbot-title {
    font-size: 16px;
    font-weight: 600;
  }
  
  .simple-chatbot-controls {
    display: flex;
    gap: 10px;
  }
  
  .simple-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
  }
  
  .simple-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
  
  /* メッセージエリア */
  .simple-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .simple-chat-messages::-webkit-scrollbar {
    width: 6px;
  }
  
  .simple-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  
  /* ボットメッセージ */
  .simple-bot-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  
  .simple-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  
  .simple-message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 80%;
  }
  
  .simple-message-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
    color: #334155;
    font-size: 14px;
  }
  
  .simple-message-content p:last-child {
    margin-bottom: 0;
  }
  
  /* ユーザーメッセージ */
  .simple-user-message {
    display: flex;
    justify-content: flex-end;
  }
  
  .simple-user-message .simple-message-content {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    color: white;
    border-radius: 12px 0 12px 12px;
  }
  
  /* 入力エリア */
  .simple-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
  }
  
  .simple-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
  }
  
  .simple-chat-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  .simple-send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
  }
  
  .simple-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  }
  
  .simple-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }
  
  /* タイピングインジケーター */
  .simple-typing-indicator {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  
  .simple-typing-indicator .simple-message-content {
    display: flex;
    gap: 4px;
    padding: 16px;
  }
  
  .simple-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: typing 1.4s infinite;
  }
  
  .simple-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .simple-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes typing {
    0%, 60%, 100% {
      transform: translateY(0);
    }
    30% {
      transform: translateY(-10px);
    }
  }
  
  /* ============================================
     PC表示（768px以上）
     ============================================ */
  @media (min-width: 768px) {
    .simple-chatbot-window {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 380px;
      height: 550px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      animation: slideUp 0.3s ease;
    }
  
    .simple-chatbot-window.minimized {
      display: none;
    }
  
    .simple-chatbot-modal {
      display: none;
    }
  }
  
  /* ============================================
     スマホ表示（767px以下）
     ============================================ */
  @media (max-width: 767px) {
    .simple-chatbot-window {
      display: none;
    }
  
    .simple-chatbot-toggle {
      display: block;
    }
  
    .simple-chatbot-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
      z-index: 2000;
      display: none;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
  
    .simple-chatbot-modal.show {
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 1;
    }
  
    .simple-chatbot-modal-content {
      width: 100%;
      height: 100%;
      background: white;
      display: flex;
      flex-direction: column;
    }
  
    .simple-chatbot-modal .simple-chat-messages {
      flex: 1;
    }
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  /* 準備中のお知らせ */
.preparing-notice {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
  }
  
  .preparing-icon {
    font-size: 64px;
    margin-bottom: 20px;
  }
  
  .preparing-notice h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
  }
  
  .preparing-notice p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
  }
  
  @media (max-width: 768px) {
    .preparing-notice {
      padding: 30px 20px;
    }
  
    .preparing-icon {
      font-size: 48px;
    }
  
    .preparing-notice h3 {
      font-size: 20px;
    }
  
    .preparing-notice p {
      font-size: 14px;
    }
  }
  /* ============================================
   提携ソリューション（縦長カード）
   ============================================ */

.solutions {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  }
  
  .solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .solution-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 280px;
  }
  
  .solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
  }
  
  .solution-card.preparing {
    opacity: 0.75;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  }
  
  .solution-icon {
    font-size: 56px;
    margin-bottom: 8px;
  }
  
  .solution-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
  }
  
  .solution-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
  }
  
  .solution-tag {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: auto;
  }
  
  .solution-tag.success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
  }
  
  .solution-tag.preparing {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
  }
  
  /* レスポンシブ */
  @media (max-width: 768px) {
    .solution-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
  
    .solution-card {
      padding: 24px 16px;
      min-height: 240px;
    }
  
    .solution-icon {
      font-size: 48px;
    }
  
    .solution-card h4 {
      font-size: 16px;
    }
  
    .solution-card p {
      font-size: 13px;
    }
  }
  
  @media (max-width: 480px) {
    .solution-grid {
      grid-template-columns: 1fr;
    }
  }
