@charset "UTF-8";

/* ====================================
   基本設定 (Base)
   ==================================== */
body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
a:hover {
    opacity: 0.7;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* 共通クラス */
.center { text-align: center; }
.bg-gray { background: #f5f7fa; }

/* ====================================
   ヘッダー (Header)
   ==================================== */
header {
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* height: 70px; ←高さを固定せずに自動調整に変更 */
    min-height: auto;
    padding: 5px 20px; /* 上下に少し余白を追加 */
}
.logo a {
    display: flex;
    flex-direction: column; /* 画像と文字を縦に並べる */
    align-items: flex-start; /* 左揃え（中央が良い場合は center） */
    text-decoration: none;
    line-height: 1.2;
}
.logo-text {
    font-size: 0.75rem; /* 文字サイズ（お好みで調整） */
    color: #333;
    font-weight: bold;
    margin-top: 3px;
    white-space: nowrap; /* 折り返し防止 */
    /* 数値を変えると移動距離が変わります */
    margin-left: 0px;
}

/* ナビゲーション */
.nav ul {
    display: flex;
    gap: 20px;
}
.nav a {
    font-weight: 500;
    color: #333;
}
.btn-contact {
    background: #003366;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
}

/* ====================================
   下層ページ共通ヘッダー
   ==================================== */
.page-header {
    background: #f5f7fa;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0px;
}
.page-header h1 {
    font-size: 2rem;
    color: #003366;
    margin: 0;
}
.page-header span {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
    font-weight: normal;
}

/* ====================================
   トップページ専用 (Index)
   ==================================== */
.hero {
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('images/main.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}
.hero h2 { font-size: 2.5rem; margin-bottom: 20px; }
.section { padding: 40px 0; }
.title {
    text-align: center;
    font-size: 2rem;
    color: #003366;
    margin-bottom: 40px;
    font-weight: bold;
}
.grid { display: flex; gap: 30px; }
.card {
    flex: 1;
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-top: 3px solid #003366;
}
.card h3 { color: #003366; margin-top: 0; border-bottom: 1px solid #ddd; padding-bottom: 10px; }

/* ====================================
   サービスページ専用 (Service)
   ==================================== */
.main-section {
    padding: 30px 0 40px;
}

/* セクションタイトル */
.section-title {
    font-size: 2rem;
    color: #003366;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 3px solid #003366;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
}
.section-desc {
    text-align: center;
    margin-bottom: 60px;
    color: #666;
}

/* サービスカード（3列） */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}
.service-card {
    flex: 1;
    min-width: 300px; /* PCで3列、狭くなると折り返し */
    background: #fff;
    border: 1px solid #ddd;
    border-top: 5px solid #003366;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-card h3 {
    background: #eef2f6;
    margin: 0;
    padding: 20px;
    font-size: 1.2rem;
    color: #003366;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.card-body { padding: 25px; }
.simple-list {
    padding-left: 20px;
    margin-top: 20px;
    font-size: 0.95rem;
}
.simple-list li {
    margin-bottom: 8px;
    list-style-type: disc; /* 黒丸 */
}

/* 補足図エリア（アスペクト比を守る設定） */
.diagram-area {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    
    /* ★ここが重要！画像を縦に引き伸ばさない設定 */
    align-items: flex-start; 
}

.diagram-area img {
    /* 幅を48%にして2枚並べる */
    flex: 0 0 48%;
    max-width: 48%;
    
    box-sizing: border-box;
    border: 1px solid #eee;
    
    /* 高さはなりゆき（自動）にして比率を守る */
    height: auto; 
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .diagram-area img {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 事例エリア背景 */
.bg-light {
    background-color: #f9f9f9;
    padding: 20px 20px;
    border-radius: 10px;
}

/* --- サービス事例（3枚画像対応版） --- */

.case-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 60px; /* 事例ごとの間隔 */
}

.case-block {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.case-header h3 {
    font-size: 1.5rem;
    color: #003366;
    margin-top: 0;
    border-bottom: 2px solid #003366;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: inline-block;
}

.case-header p {
    margin-bottom: 30px;
}

/* 3枚画像の横並びエリア */
.case-images-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 両端揃え */
    gap: 2%; /* 画像間の隙間 */
    align-items: flex-start; /* ★重要：画像を縦に引き伸ばさない */
}

.case-images-row img {
    width: 32%; /* 3枚並べるので約33%以下に設定 */
    height: auto; /* アスペクト比を維持 */
    border: 1px solid #eee;
    box-sizing: border-box;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .case-block {
        padding: 20px;
    }
    .case-images-row {
        flex-direction: column; /* スマホでは縦並びにする */
        gap: 15px;
    }
    .case-images-row img {
        width: 100%; /* スマホでは横幅いっぱい */
        margin-bottom: 10px;
    }
}

/* ====================================
   会社概要・規約ページ (About / Policy)
   ==================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 40px;
}
.table th, .table td {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: left;
}
.table th {
    width: 30%;
    background: #eef2f6;
    color: #003366;
    font-weight: bold;
}
.policy-content p {
    margin-bottom: 20px;
    text-align: justify;
}
.policy-content h3 {
    margin-top: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* ====================================
   フッター (Footer)
   ==================================== */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    font-size: 0.8rem;
    margin-top: auto;
}

/* ====================================
   スマホ対応 (Responsive)
   ==================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .header-inner { flex-direction: column; height: auto; padding: 15px; }
    .nav ul { margin-top: 15px; flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    /* トップ */
    .hero h2 { font-size: 1.8rem; }
    .grid { flex-direction: column; }
    
    /* サービス */
    .service-grid { flex-direction: column; }
    .case-row, .case-row.reverse { flex-direction: column; }
    .case-img, .case-text { width: 100%; }
    .case-img { height: 200px; }
    .case-text { padding: 25px; }
    
    /* 会社概要 */
    .table th, .table td { display: block; width: auto; }
    .table th { background: #eef2f6; }
}