@charset "utf-8";

/* ==========================================================================
   共通設定・レイアウト
   ========================================================================== */
.dx-bg-light {
    background-color: #f7f9fc;
}

.dx-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #40508b; /* 既存の青系テーマに合わせたカラー */
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   メインビジュアル (Hero Section)
   ========================================================================== */
.dx-hero {
    height: 300px;
    background-image: url('../img/main_visual.jpg'); /* 後ほど画像を設定 */
    background-color: #40508b; /* 画像がない場合のフォールバックバックグラウンド */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.dx-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 44, 84, 0.6); /* 青いオーバーレイを重ねて文字を読みやすく */
}

.dx-hero-txt {
    position: absolute;
    bottom: 40px;
    left: 15px;
    z-index: 2;
}

.dx-hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.dx-hero-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* ==========================================================================
   リード文
   ========================================================================== */
.dx-lead-dots {
    text-align: left;
    color: #40508b;
    letter-spacing: 0.1em;
    font-size: 1.5rem;
    font-weight: 600;
}

.dx-lead-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444444;
    text-align: left;
}

/* ==========================================================================
   選ばれる理由 (Reasons Card)
   ========================================================================== */

.dx-reason-card {
    position: relative;
    background: #fff;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 4px 15px rgba(0,0,0,.02);
    overflow: hidden;
    transition: .3s;
}

.dx-reason-card:hover{
    transform: translateY(-5px);
    box-shadow:0 12px 30px rgba(64,80,139,.1);
}

/* 左上リボン */
.dx-reason-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    border-style:solid;
    border-width:30px 30px 0 0;
    border-color:#40508b transparent transparent transparent;
}

.dx-reason-card-title{
    display:flex;
    align-items:flex-start;
    gap:10px;              /* ←数字と文字の間隔 */
    margin-bottom:20px;
}
.dx-reason-heading{
    font-size: 1.25rem;
    font-weight: bold;
    color: #40508b;
}

/* 数字 */
.dx-reason-num{
    flex:none;             /* ←固定幅をやめる */
    width:auto;
    font-family:"Montserrat Alternates","Inter",sans-serif;
    font-size:2.2rem;
    font-weight:700;
    line-height:1;
    color:#40508b;
}
/* ==========================================================================
   サービス内容 (Services Grid)
   ========================================================================== */
.service_w{
        padding: 30px 20px;
}
.dx-service-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    height: 100%;
    border-top: 5px solid #40508b; /* 上部に太いブルーの線を追加 */
}

.dx-service-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e2e8f0; /* 画像がない場合の仮背景 */
}

.dx-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dx-service-card:hover .dx-service-img {
    transform: scale(1.05);
}

.dx-service-body {
    padding: 25px;
}

.dx-service-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #40508b;
    margin-bottom: 15px;
}

.dx-service-card-text {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.7;
}

/* ==========================================================================
   実績セクション (Works)
   ========================================================================== */
.dx-work-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px; /* TOPページと同様に角丸14pxに変更 */
    overflow: hidden;
    
    /* ▽ 追加：カード全体の高さを１行の中で一番高いものに強制的に揃える設定 ▽ */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.dx-work-img-placeholder {
    width: 100%;
    height: 180px;
    background-color: #e2e8f0; /* 画像プレースホルダー */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dx-work-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 前回の修正：アスペクト比を保って綺麗にフィット */
    object-position: center;
}

.dx-work-placeholder-text {
    color: #a0aec0;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* ▽ 調整：テキストエリアの設定 ▽ */
.dx-work-body {
    padding: 15px;
    
    /* ▽ 追加：カードが縦に伸びた際、このテキストエリアが余白を埋めるように自動で伸びる ▽ */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.dx-work-tag {
    display: inline-block;
    background-color: #1a202c;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 25px;
    margin-bottom: 10px;
    
    /* ▽ 追加：タグが勝手に横いっぱいに広がらないように、自身の幅に合わせる ▽ */
    align-self: flex-start; 
}

.dx-work-title {
    font-size: 0.85rem;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    
    /* ▽ 追加：高さの固定や省略（overflow）を解除し、全て表示する ▽ */
    height: auto; 
}

.dx-btn-more {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 10px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.dx-btn-more:hover {
    background: #2b6cb0;
    color: #fff;
    text-decoration: none;
}

.dx-arrow {
    margin-left: 8px;
    font-size: 0.8rem;
}

/* ==========================================================================
   下部リンクナビゲーション (Bottom Links)
   ========================================================================== */
.dx-nav-link-card {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    border-radius: 8px;
}

.dx-nav-link-card:hover {
    background-color: #ebf8ff;
    border-color: #bee3f8;
    box-shadow: 0 4px 12px rgba(64, 80, 139, 0.05);
    text-decoration: none;
}

.dx-nav-link-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.dx-nav-en {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2b6cb0;
}

.dx-nav-jp {
    font-size: 0.85rem;
    color: #718096;
}

.dx-nav-arrow {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url('../../../img/black_arrow_right.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.dx-nav-link-card:hover .dx-nav-arrow {
    transform: translateX(4px);
}

/* Watermark styles */
.dx-nav-link-card::before {
    position: absolute;
    top: 0;
    left: 10px;
    bottom: auto;
    right: auto;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(64, 80, 139, 0.04);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.dx-nav-link-card:hover::before {
    color: rgba(64, 80, 139, 0.08);
    transform: translateY(-2px);
}

.dx-nav-card-ai::before {
    content: "AI Integration";
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 700;
}

.dx-nav-card-consulting::before {
    content: "Consulting";
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 700;
}

.dx-nav-card-ict::before {
    content: "ICT Solution";
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 700;
}

.dx-nav-card-dx::before {
    content: "DX Solution";
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 700;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 1199px) {
    .content-area .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dx-hero {
        height: 200px;
    }
    .dx-hero-title {
        font-size: 1.8rem;
    }
    .dx-service-img-wrap {
        height: 150px;
    }
}
/* ==========================================================================
   業種カラー
   ========================================================================== */


.finance_color {
	background-color:#c5a336;
}

.public_color {
	background-color:#c52d37;
}
.economic_color {
	background-color:#FFA07A;
}
.manufacturing_color {
	background-color:#83bf2b;
}
.telecommunications_color {
	background-color:#d6652a;
}
.tourism_color {
	background-color:#2DB7A3;
}
.construction_color {
	background-color:#7b4144;
}

.title_medical {
	border-left: 4px solid #00467B;
}

.title_service {
	border-left: 4px solid #b55a9f;
}

.title_maker {
	border-left: 4px solid #076e9a;
}

.title_transportation {
	border-left: 4px solid #0a9839;
}



.title_telecommunications {
	border-left: 4px solid #d6652a;
}

.title_manufacturing {
	border-left: 4px solid #83bf2b;
}

.title_estate {
	border-left: 4px solid #ef7ba8;
}

.title_publishing {
	border-left: 4px solid #21bfe8;
}

.title_education {
	border-left: 4px solid #8061ff;
}

.title_wholesale {
	border-left: 4px solid #bc7c18;
}

.title_electricity {
	border-left: 4px solid #c3d128;
}

.title_economic {
	border-left: 4px solid #FFA07A;
}