/**
 * 鉄道省京原事業部 乗換案内スタイル
 */

.search-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.search-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group-sep {
    font-size: 1.5rem;
    padding-bottom: 8px;
}

.mode-selector .radio-group {
    display: flex;
    gap: 15px;
    padding: 8px 0;
}

.btn-search {
    background-color: #002b62;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: #004094;
}

.placeholder-text {
    color: #666;
    text-align: center;
    padding: 40px 0;
    font-style: italic;
}

.options-selector .checkbox-group {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.options-selector label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-selector input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 検索結果のスタイル */
.result-summary {
    display: flex;
    justify-content: space-around;
    background-color: #002b62;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.summary-item {
    font-size: 1.1rem;
}

.fare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.fare-table th, .fare-table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: center;
}

.fare-table th {
    background-color: #f1f3f5;
    font-size: 0.9rem;
    color: #495057;
}

.fare-table td {
    font-size: 1.1rem;
    font-weight: bold;
}

/* 料金表の強調 */
.fare-table td strong {
    color: #d63384;
    font-size: 1.2rem;
}

/* 経路詳細の「特急」ラベルなどの色分け */
.extra-fee {
    color: #d63384;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 5px;
}

.route-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.station-item {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
}

.station-node {
    color: #002b62;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    line-height: 1.4;
}

.station-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.station-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.station-time {
    color: #666;
}

.train-leg {
    display: flex;
    margin-left: 13px;
    border-left: 4px solid #ced4da;
    padding: 15px 0 15px 17px;
}

.train-info-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
}

.train-label {
    font-size: 0.8rem;
    color: #002b62;
    font-weight: bold;
}

.train-name {
    font-size: 1rem;
    font-weight: bold;
}

.transfer-divider {
    text-align: center;
    font-size: 0.85rem;
    color: #d63384;
    font-weight: bold;
    margin: 10px 0;
    position: relative;
}

.transfer-divider::before,
.transfer-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ffc1e3;
}

.transfer-divider::before { left: 0; }
.transfer-divider::after { right: 0; }

.no-result {
    color: #cc0000;
    font-weight: bold;
    text-align: center;
    padding: 30px;
}
