// ブレイクポイントを指定 $tab: 960px; $sp: 767px; @mixin tab { @media screen and (max-width: ($tab)) { @content; } } @mixin ttab { @media screen and (max-width: ($ttab)) { @content; } } @mixin sp { @media screen and (max-width: ($sp)) { @content; } } .news_wrap { margin-top: 80px; @include sp { margin-top: 60px; } .category_box { .item_list { display: flex; justify-content: center; gap: 64px; @include sp { flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 16px 0; } li { @include sp { width: 115px; flex-shrink: 0; } } a { padding-left: 36px; font-size: 18px; font-weight: 500; position: relative; @include sp { font-size: 16px; } &:before { position: absolute; content: ""; width: 20px; height: 20px; border: 1px solid #1A007C; border-radius: 50px; left: 0; top: 3px; } &.active { &:after { position: absolute; content: ""; width: 12px; height: 12px; background: #1A007C; border-radius: 50px; left: 4.5px; top: 7.5px; } } } } } .news_list { width: 800px; margin: 80px auto 80px; @include tab { width: 100%; } @include sp { margin: 40px auto; } a { padding: 0 24px 16px; border-bottom: 2px solid #000000; display: block; margin-bottom: 16px; @include tab { padding: 0 0 16px; } &:hover { opacity: 0.7; } .news_info { display: flex; gap: 24px; align-items: center; margin-bottom: 16px; } .news_date { font-size: 16px; color: #535353; font-family: "Inter", sans-serif; } .news_category { background: #1A007C; color: #fff; padding: 4px 20px; font-size: 12px; } .font-s { color: #0F0143; @include sp { font-size: 16px; } } } } .link_btn { margin: 0 auto; } } .pagenation { display: flex; justify-content: center; align-items: center; gap: 24px; a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #1A007C; border: 1px solid #1A007C; border-radius: 3px; background: #fff; font-size: 18px; font-weight: bold; font-family: "Inter", sans-serif; &:hover { background: #F9F9F9; } &.on { color: #fff; background: #1A007C; } } }