/* ==========================================================================
   中国コンサル - メインスタイルシート
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN",
                 "游ゴシック体", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

/* カラーパレット（信頼感のある青・緑系）
   ========================================================================== */
:root {
    --primary-blue: #1e5a8a;      /* 信頼感のある深い青 */
    --primary-green: #2d8659;     /* 成長を表す緑 */
    --accent-blue: #4a90e2;       /* 明るい青 */
    --accent-green: #52c77e;      /* 明るい緑 */
    --gradient-start: #1e5a8a;
    --gradient-end: #2d8659;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.12);
}

/* タイポグラフィ
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

/* コンテナ
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー
   ========================================================================== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo wrapper now displays an image and text side by side */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Gradient text styling for the project name */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Logo image sizing */
.logo-img {
    height: 60px;
    width: auto;
}

.nav-main {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-main a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-main a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transition: width 0.3s ease;
}

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

/* ヒーローセクション
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,96C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ボタン
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    color: white;
}

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

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

/* カード
   ========================================================================== */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* グリッドレイアウト
   ========================================================================== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Bootstrapオーバーライド */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-md-4, .col-md-6, .col-lg-4, .col-lg-8 {
    padding-left: 15px;
    padding-right: 15px;
    flex: 0 0 auto;
}

.col-md-4 {
    width: 33.333333%;
}

.col-md-6 {
    width: 50%;
}

.col-lg-4 {
    width: 33.333333%;
}

.col-lg-8 {
    width: 66.666667%;
}

@media (max-width: 768px) {
    .col-md-4, .col-md-6, .col-lg-4, .col-lg-8 {
        width: 100%;
    }
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-success {
    color: #198754 !important;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

/* セクション
   ========================================================================== */
.section {
    padding: 5rem 0;
}

.section-gray {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
}

/* 価格表
   ========================================================================== */
.pricing-table {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 2rem;
    text-align: center;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-period {
    opacity: 0.8;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:before {
    content: '✓';
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* フッター
   ========================================================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: white;
}

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

/* バッジスタイル
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-danger {
    background-color: #ff4757 !important;
}

.bg-success {
    background-color: var(--accent-green) !important;
}

.bg-info {
    background-color: var(--accent-blue) !important;
}

.bg-warning {
    background-color: #ffd93d !important;
    color: #333 !important;
}

/* レスポンシブデザイン
   ========================================================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .section {
        padding: 3rem 0;
    }

    .pricing-card {
        margin-bottom: 2rem;
    }

    .btn-lg {
        padding: 0.65rem 1.2rem;
        font-size: 1rem;
    }
}

/* モバイルメニューボタン
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

/* モバイル対応 */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-main {
        display: none;
    }

    .nav-main.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-main.mobile-active li {
        margin: 0.5rem 0;
    }
}

/* アニメーション
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* バッジ
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: white;
}

.badge-new {
    background: #ff4757;
}

/* アクセシビリティ
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* 価格カード
   ========================================================================== */
.pricing-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    background: white;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.pricing-card.featured {
    border: 2px solid var(--accent-green);
    transform: scale(1.05);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    color: white;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
}

.bg-gradient-premium {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-price small {
    font-size: 1.2rem;
    font-weight: 400;
}

.pricing-body {
    padding: 2rem;
}

.pricing-body ul {
    list-style: none;
    padding: 0;
}

.pricing-body li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.pricing-body li:last-child {
    border-bottom: none;
}

/* サービスカード
   ========================================================================== */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-text {
    margin-bottom: 1rem;
    flex: 1;
}

.shadow-sm {
    box-shadow: var(--shadow-light) !important;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* CTA ボタン
   ========================================================================== */
.btn-cta {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

/* ヒーローセクション拡張
   ========================================================================== */
   .hero-section {
    /*   background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));*/
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    min-height: 650px; /* 从500px改为650px */
     padding: 3rem 0;   /* 从6rem改为3rem */
}

/* Overlay for hero section to improve text contrast.  Individual pages set
   their own hero background via inline style on the section element, so this
   pseudo-element only adds a semi-transparent dark layer. */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.text-warning {
    color: #ffd93d !important;
    font-weight: 700;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* 背景セクション
   ========================================================================== */
.bg-light-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green)) !important;
}

/* カスタムボタン
   ========================================================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.btn-primary-custom:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(30, 90, 138, 0.3);
    color: white;
}

/* フッター改善
   ========================================================================== */
.main-footer {
    background: linear-gradient(180deg, #2c3e50 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* 会社概要ページ用スタイル
   ========================================================================== */
.timeline-year {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    min-width: 80px;
}

.pricing-table2 {
    padding: 2rem;
}

.table-borderless th {
    width: 30px;
    min-width: 80px;
}
