@charset 'UTF-8';

/* 備考エリアのスタイル */
.note-box {
    background: #fff3e0; /* 薄いオレンジ */
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
}

.note-box .kn-list {
    margin: 0;
}

.note-box .kn-list li {
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}

.note-box .kn-list li:last-child {
    margin-bottom: 0;
}

/* 備考ボックス内の段落スタイル */
.note-box .kn-txt {
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.note-box .kn-txt:last-child {
    margin-bottom: 0;
}

/* リストと段落が混在する場合の調整 */
.note-box .kn-txt + .kn-list {
    margin-top: 8px;
}

.exam-type-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-type-row .exam-type {
    margin-bottom: 0;
}

.exam-type-row .kn-label-list {
    margin: 0;
}

/* 資格表のスタイル */
.qualification-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  table-layout: fixed;
}

.qualification-table th,
.qualification-table td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: center;
  word-wrap: break-word;
}

.qualification-table th {
  background-color: #f8f8f8;
  font-size: 14px;
  font-weight: normal;
}

.qualification-table td {
  background-color: #fff;
  font-size: 14px;
  font-weight: normal;
}

.qualification-table tr.qual-header th:empty,
.qualification-table tr.qual-data td:empty {
  background-color: #fafafa;
  border-color: #f0f0f0;
}

/* ハイライト表示（検索した資格 */
.qualification-table th.highlight,
.qualification-table td.highlight {
  background-color: #fff3cd !important;
  border-color: #ffc107 !important;
  font-weight: normal !important;
}

.qualification-table th.highlight {
  background-color: #ffe69c !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .qualification-table th,
  .qualification-table td {
    padding: 8px 6px;
    font-size: 11px;
  }
  
  .qualification-table th {
    font-size: 11px;
  }
}

.search-box {
    background: whitesmoke;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

label .required {
    color: #e53935;
    font-size: 12px;
    margin-left: 4px;
}

label .optional {
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

select:focus, input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-search {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.results {
    background: white;
    padding: 30px;
    border-radius: 15px;
}

.results-hidden {
    display: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.result-count {
    color: #667eea;
    font-weight: 600;
    font-size: 18px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-tab.active {
    background: #667eea;
    color: white;
}

.result-item {
    border: 2px solid #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

/*
.result-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}
*/

.university-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.university-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.university-type {
    display: inline-block;
    padding: 4px 12px;
    background: #547bdb;
    color: #ffffff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.university-type.private {
    background: #e86875;
    color: #ffffff;
}

.faculty-name {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.exam-type {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}

.qualifications {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
    }
