/* ヘッダーエリア */
.page-header {
    /* 下(#666)から上(#ccc)へ薄くなるグラデーション */
    background: linear-gradient(to top, #e0e0e0 26%, #efefef 48%, #d9d9d9 75%, #bcbcbc 100%);
    padding: 50px 0; /* 少し高さを広げてグラデーションを見やすくしました */
    text-align: center;
    border-bottom: none; /* 下の線はグラデーションと馴染ませるため削除 */
}

.page-header h1 {
    color: #fff; /* 白文字 */
    font-size: 24px;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* 文字の影を少し濃くして読みやすく */
}

/* コンテナ */
.container1 {
    max-width: 960px;
    margin: 100px auto;
    padding: 0 20px;
}
.flow-section{
    margin-bottom: 60px;
}

/* セクションタイトル */
.section-title {
    color: #333; /* 画像の濃い青色に合わせる */
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #0056b3;
    padding-bottom: 2px;
    margin-bottom: 40px;
}

/* --- タイムライン構造 --- */

.timeline {
    position: relative;
    padding-left: 0; /* 左余白をリセット */
}

/* 縦線（薄いグレーの細い実線） */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 29px; /* マーカーの中心（60pxの半分-線の太さの半分） */
    width: 1px;
    border-left: 3px solid #ccc; /* 薄いグレーの実線に変更 */
    z-index: 0;
}

/* 各ステップのラッパー */
.step-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* マーカーエリア（ドットと横線を含むエリア） */
.step-marker {
    flex-shrink: 0;
    width: 60px; /* 横線のために幅を確保 */
    position: relative; /* 横線の基準位置 */
    display: flex;
    justify-content: center; /* ドットを中央に */
    padding-top: 10px; /* 数字の高さに合わせる */
}

/* 青いドット */
.dot {
    width: 8px;
    height: 8px;
    background-color: #0056b3; /* 青色 */
    border-radius: 50%;
    position: relative;
    z-index: 2; /* 縦線より手前に表示 */
}

/* 横の点線（ドットから数字への線） */
.step-marker::after {
    content: '';
    position: absolute;
    top: 13px; /* ドットの中心の高さ（padding 10px + dot高さの半分4px - 線幅1px） */
    left: 50%; /* ドットの中心からスタート */
    right: 5px; /* ★ここで数字との間隔を5px空ける */
    height: 1px;
    border-top: 2px dotted #888; /* 点線 */
    z-index: 1;
}

/* ステップのコンテンツエリア */
.step-content {
    flex-grow: 1;
    padding-left: 0; /* ★左の余白を削除（マーカーエリアで調整済みのため） */
}

/* ステップヘッダー（数字とタイトル） */
.step-head {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.step-number {
    background-color: #0056b3;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-head h3 {
    font-size: 16px;
    font-weight: bold;
    color: #0056b3;
    margin: 0;
}

/* 説明文 */
.step-desc {
    font-size: 14px;
    margin: 0 0 15px 0;
}

/* タグエリア（Step 1用） */
.tags-area {
    padding: 5px 0;
}

.tag-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 13px;
}

.tag-label {
    background-color: #d1e3f3; /* 薄い青 */
    color: #333;
    padding: 2px 10px;
    border-radius: 2px;
    margin-right: 15px;
    font-weight: bold;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.tag-label.species {
    background-color: #d1e3f3; /* 同じ色ですがクラス分け可能 */
}

.tag-text {
    align-self: center;
}

/* リンク（詳しくはこちら） */
.step-link {
    text-align: right;
    font-size: 12px;
}

.step-link a {
    color: #666;
    text-decoration: none;
}

.step-link a:hover {
    text-decoration: underline;
}

/* 下部のアクションエリア */
.action-area {
    text-align: right;
    margin-top: 50px;
    margin-bottom: 50px;
}

.btn-primary {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 600px) {
    .step-head {
        align-items: flex-start;
    }
    .tag-row {
        flex-direction: column;
    }
    .tag-label {
        margin-bottom: 5px;
    }
}