/* 共通 */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
p,li {
    font-size: 1.6rem;
    margin: 0;
}
.header_button_menu > a::after, .header_button_menu > a::before {
  height: 11px;
}
@media screen and (max-width: 767px) {
  .header_button_menu > a::after, .header_button_menu > a::before {
    height: 6px;
  }
}

/* タイトル */
.head {
    margin-bottom: 48px;
}
@media screen and (max-width: 767px) {
    .head {
        margin-bottom: 40px;
    }
}
.head_title {
    font-size: 6rem;
    margin-bottom: 32px;
}
@media screen and (max-width: 767px) {
    .head_title {
        font-size: 5rem;
        text-align: center;
        margin-bottom: 24px;
    }
}
.head_txt {
    font-weight: bold;
    margin-bottom: 16px;
}

/* 記事一覧 */
.contents {
    background-color: #EEEEEE;
    padding: 40px 32px 120px;
}
.contents_wrap {
    max-width: 1128px;
    margin: 0 auto;
}
@media screen and (max-width: 767px) {
    .contents {
        padding: 32px 16px 72px;
    }
}
/* 検索フォーム */
select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    width: 100%;
    height: 100%;
    padding: 0 10px;
}
.search {
    margin-bottom: 16px;
}
.search_form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
@media screen and (max-width: 767px) {
    .search_form {
        margin-bottom: 24px;
        flex-direction: column;
    }
}
.search_wrap {
    display: flex;
    flex-direction: column;
    max-width: 360px;
    width: 50%;
}
@media screen and (max-width: 767px) {
    .search_wrap {
        min-width: auto;
        max-width: 360px;
        width: 100%;
    }
}
.search label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}
.search_select {
    position: relative;
}
.search_select::after {
    position: absolute;
    content: '';
    width: 16px;
    height: 16px;
    right: 16px;
    top: 43%;
    transform: translateY(-50%) rotate(45deg);
    border-bottom: 2px solid #222222;
    border-right: 2px solid #222222;
}
.search_select select {
    padding: 16px 24px;
    border: 1px solid #222222;
    font-size: 16px;
    font-weight: bold;
    background: #fff;
    cursor: pointer;
}
.search_button {
    padding: 11px 0;
    background-color: #000000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    transition: background-color 0.3s;
    max-width: 736px;
    width: 100%;
    margin: 0 auto;
    display: block;
}
@media screen and (max-width: 767px) {
    .search_button {
        max-width: 360px;
    }
}

/* 件数表示 */
.count {
    text-align: center;
    margin-bottom: 20px; 
    margin-bottom: 56px;
}
.count_txt {
    font-weight: bold;
}

/* 卒業生一覧グリッド */
.list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 32px;
}
@media screen and (max-width: 767px) {
    .list {
        grid-template-columns: repeat(2, 1fr); 
        justify-content: space-between;
        gap: 16px;
    }
}
.item {
    display: block;
    background-color: #fff;
    text-align: left;
    text-decoration: none;
}
.item:hover {
    text-decoration: none;
}
.item_img {
    display: block;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}
.item_img img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #eee;
    transform: scale(1, 1);
    transition: transform 0.2s ease-out;
}
.item:hover .item_img img {
    transform: scale(1.1, 1.1);
    transition-duration: 0.2s;
}
.item_txtarea {
    padding-top: 8px;
    background-color: #EEEEEE;
}
.item_name {
    font-weight: bold;
    margin-bottom: 4px;
}
.item_txt {
    font-size: 1.2em;
    margin: 0;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 88px;
    gap: 10px;
}
.pagination button {
    padding: 10px 15px;
    border: 1px solid #000000;
    background-color: transparent;
    cursor: pointer;
    width: 40px;
    height: 51px;
    font-size: 1.3rem;
    font-weight: bold;
}
.pagination button.active {
    background-color: #F9A80D;
    border-color: #F9A80D;
}
button.pagination-back,
button.pagination-next {
    width: 84px;
    position: relative;
    font-size: 1.6rem;
}
@media screen and (max-width: 767px) {
    button.pagination-back,
    button.pagination-next {
        width: 40px;
    }
}
.pagination-back {
    margin-right: 6px;
    text-align: right;
}
.pagination-next {
    margin-left: 6px;
    text-align: left;
}
.pagination-back::before,
.pagination-next::after {
    position: absolute;
    content: '';
    width: 12px;
    height: 12px;
    top: 50%;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
}
.pagination-back::before {
    left: 10px;
    transform: translateY(-50%) rotate(135deg);
}
.pagination-next::after {
    right: 10px;
    transform: translateY(-50%) rotate(-45deg);
}
@media screen and (max-width: 767px) {
    .pagination-back::before {
        left: 58%;
        transform: translate(-50%,-50%) rotate(135deg);
    }
    .pagination-next::after {
        right: 54%;
        transform: translate(50%,-50%) rotate(-45deg);
    }
}