@charset "utf-8";

/* ==========================================================================
   トップページ専用スタイル定義 (index.css)
   目的: SEO要素を維持しつつ、トップページのみ洗練されたモダンなデザインにアップデートする
========================================================================== */

/* 1. 全体的なタイポグラフィと配色のベース
   ---------------------------------------------------------------------- */
body {
    /* 背景色を白系統に変更しクリーンな印象に */
    background-color: #F8F9FA !important;
    background-image: none !important;

    /* Google Fonts（Noto Sans JP）を優先し、モダンでスマートなフォント指定へ */
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #333 !important;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* 2. メインビジュアル（トップ部）のダイナミック化
   ---------------------------------------------------------------------- */
/* スライダーのラッパーを100%幅にし、ダイナミックに魅せる */
#top_slide {
    padding-top: 80px !important; /* ヘッダーの高さ考慮（PC） */
    background-image: none !important;
    background-color: transparent !important;
}

@media screen and (max-width: 960px) {
    #top_slide {
        padding-top: 50px !important; /* モバイルヘッダーに合わせる */
    }
}

/* スライダー内のキャッチコピー背景をグラスモーフィズム調にし、テキストを際立たせる */
.top_catch {
    background: rgba(0, 30, 67, 0.6) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px 30px !important;
    border-radius: 8px;
    color: #FFF !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: 500;
}

.top_catch span {
    font-weight: 700;
    color: #64B5F6 !important; /* コーポレートカラーに合う明るめのブルー */
}

/* 詳細ボタンのモダナイズ */
.slide_btn a {
    background-color: transparent !important;
    border: 2px solid #FFF !important;
    border-radius: 30px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
}

.slide_btn a:hover {
    background-color: #FFF !important;
    color: #001e43 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* 3. 各コンテンツの余白と見出しの洗練
   ---------------------------------------------------------------------- */
.content h2 {
    border-bottom: none !important;
    text-align: center;
    position: relative;
    padding-bottom: 15px !important;
    margin-bottom: 50px !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
    color: #001e43 !important;
    letter-spacing: 0.1em;
}

/* 見出しの下にシンプルなアクセントラインを追加 */
.content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0085B2;
}

.content h2 span {
    display: block;
    font-size: 14px !important;
    color: #0085B2 !important;
    margin-top: 5px;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* 4. マイクロインタラクション（ホバーエフェクト等）
   ---------------------------------------------------------------------- */
/* Pickup項目（カード）のホバー時に浮き上がるエフェクト */
.pickup ul li {
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px; /* 余白追加 */
}

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

.pickup ul li img {
    transition: transform 0.5s ease;
}

.pickup ul li:hover img {
    transform: scale(1.05);
    opacity: 1 !important; /* デフォルトのopacity変化を上書き */
}

.pickup ul li .pu_title {
    color: #001e43 !important;
    font-weight: 700;
}

/* ニュースリストのシンプル化・余白調整 */
.ul_news {
    background: #FFF;
    border-radius: 12px;
    padding: 30px 40px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.content .ul_news li {
    border-bottom: 1px solid #EAEAEA !important;
    padding: 15px 10px !important;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

/* ニュースの日付部分のスタイル */
.content .ul_news li span.news_date {
    display: inline-block;
    min-width: 100px;
    font-size: 14px;
    color: #888;
    margin-right: 20px;
}

.content .ul_news li a {
    color: #001e43;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.content .ul_news li a:hover {
    color: #0085B2;
}

.content .ul_news li:last-child {
    border-bottom: none !important;
}

.content .ul_news li:hover {
    background-color: #FDFDFD;
}


/* 6. フェードインアニメーションの改良
   ---------------------------------------------------------------------- */
/* 既存のinvieew.jsと連動する.effectクラスに滑らかな浮上りアニメーションを付与 */
.effect {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.effect.start {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   7. 信頼・実績バー（スライダー直下）
   =================================================================== */
.trust-bar {
    background: linear-gradient(135deg, #001e43 0%, #0a3566 100%) !important;
    padding: 14px 20px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.trust-bar-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    color: #FFF !important;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.trust-item strong {
    font-size: 1.05rem;
    color: #64B5F6;
    font-weight: 700;
}

.trust-item i {
    color: #64B5F6;
    font-size: 0.95rem;
}

.trust-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

@media screen and (max-width: 640px) {
    /* Trust bar: 2列グリッドでバランスよく */
    .trust-sep { display: none !important; }
    .trust-bar { padding: 14px 12px !important; }
    .trust-bar-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px 8px !important;
        justify-items: center !important;
    }
    .trust-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2px !important;
        font-size: 0.72rem !important;
    }
    .trust-item strong { font-size: 0.9rem !important; }
    .trust-item i { font-size: 1rem !important; margin-bottom: 2px; }
}

/* ===================================================================
   8. 主要サービス一覧セクション
   =================================================================== */
.services-section {
    background: #FFF !important;
    padding: 80px 24px 90px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.services-inner {
    max-width: 1100px !important;
    margin: 0 auto !important;
}

.services-heading {
    text-align: center;
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: #001e43 !important;
    margin-bottom: 55px !important;
    position: relative;
    padding-bottom: 18px !important;
    border-bottom: none !important;
    background: none !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    letter-spacing: 0.06em;
}

.services-heading::after {
    content: '' !important;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0085B2 !important;
}

.services-heading span {
    display: block;
    font-size: 0.72rem !important;
    letter-spacing: 0.25em !important;
    color: #0085B2 !important;
    font-weight: 600 !important;
    margin-top: 8px;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif !important;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

@media screen and (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 580px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .services-section {
        padding: 40px 14px 50px !important;
    }
    .services-heading {
        font-size: 1.35rem !important;
        margin-bottom: 28px !important;
    }
    .service-card {
        padding: 20px 16px 18px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 14px;
    }
    .service-icon {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    .service-icon i { font-size: 1rem !important; }
    .service-card-body { flex: 1; }
    .service-card-title {
        font-size: 0.93rem !important;
        margin-bottom: 6px !important;
    }
    .service-card p { font-size: 0.79rem !important; }
}

.service-card {
    display: flex !important;
    flex-direction: column !important;
    background: #FAFBFC !important;
    border-radius: 14px !important;
    padding: 30px 24px 28px !important;
    text-decoration: none !important;
    color: #333 !important;
    box-shadow: 0 2px 10px rgba(0, 30, 67, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    border: 1px solid #EAECF0 !important;
    border-top: 3px solid #EAECF0 !important;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 35px rgba(0, 30, 67, 0.11);
    border-top-color: #0085B2;
    color: #333 !important;
    text-decoration: none !important;
}

.service-icon {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #EBF5FB 0%, #D6EAF8 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 18px !important;
    flex-shrink: 0 !important;
}

.service-icon i {
    font-size: 1.35rem;
    color: #0085B2;
}

/* h3のグローバルスタイル（.content h3）の影響を完全に排除 */
.service-card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #001e43 !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    clear: none !important;
}

.service-card-title::after {
    display: none !important;
}

.service-card-body {
    flex: 1;
    min-width: 0;
}

.service-card p {
    font-size: 0.84rem;
    color: #666;
    line-height: 1.75;
    margin: 0;
    flex-grow: 1;
}

/* ===================================================================
   9. ピックアップセクションの微調整
   =================================================================== */
.pickup {
    background: #F0F4F8 !important;
    padding: 24px 16px !important;
}

.pickup ul {
    gap: 16px;
    padding: 0 !important;
}

/* ===================================================================
   10. ニュースセクション（コンテンツエリア）
   =================================================================== */
.content {
    background: #F8F9FA !important;
    padding: 70px 24px 80px !important;
}

.content .cont_wrap {
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* スマホ時のコンテンツパディング削減 */
@media screen and (max-width: 640px) {
    .content {
        padding: 36px 14px 44px !important;
    }
    .ul_news {
        padding: 16px 14px !important;
        border-radius: 10px !important;
    }
    .content .ul_news li {
        flex-wrap: wrap !important;
        padding: 12px 6px !important;
        align-items: flex-start !important;
    }
    .content .ul_news li span.news_date {
        min-width: auto !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 3px !important;
        font-size: 12px !important;
    }
    /* pickup: スマホで2列に */
    .pickup {
        padding: 16px 12px !important;
    }
    .pickup ul li {
        margin-bottom: 12px !important;
    }
    .pickup ul li a img {
        height: 100px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    /* お問い合わせ */
    .box_contact {
        padding-top: 40px !important;
        padding-bottom: 55px !important;
    }
    /* スライダーのキャッチコピー */
    .top_catch {
        padding: 12px 16px !important;
        border-radius: 6px !important;
    }
}

/* ===================================================================
   11. お問い合わせエリアのアクセントライン
   =================================================================== */
.box_contact {
    position: relative;
}

.box_contact .arrow_tbm {
    display: none; /* 矢印画像は非表示にしてクリーンに */
}

/* ===================================================================
   12. モバイル横スクロール防止・全体レイアウト安定化
   =================================================================== */
/* translateX アニメーション等による横はみ出しを防ぐ */
#top_slide,
.trust-bar,
.services-section,
.pickup,
.content,
.box_contact {
    max-width: 100%;
    overflow-x: hidden;
}

/* サービスカードが画面幅を超えないように保証 */
.service-card {
    max-width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 960px) {
    /* ヘッダー直下に余白が余計につかないようにする */
    .slider-pro {
        max-width: 100% !important;
    }
}
