// ブレイクポイントを指定 $tab: 960px; $sp: 767px; @mixin tab { @media screen and (max-width: ($tab)) { @content; } } @mixin sp { @media screen and (max-width: ($sp)) { @content; } } .archive.news { > .c-text { width: 800px; margin: 120px auto 80px; } .l-main--news { .p-content-block--news { padding: 24px 0 40px; max-width: 975px; width: 90%; margin: 0 auto; @include sp { width: 100%; } a { width: 100%; display: block; padding: 13px 20px 13px; border-bottom: 1px solid; position: relative; background: #fff; &:before { position: absolute; content: ""; width: 100px; height: 3px; background: #060048; bottom: -1px; left: 0; } .news_info { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; .news_date { font-size: 16px; font-family: "Inter", sans serif; } .category { background: #6736A8; display: block; padding: 2px 7px; font-size: 14px; color: #fff; border-radius: 5px; } } } li:nth-child(2n){ a{ background: #F9F9F9; } } } } } .pagenation { display: flex; align-items: center; justify-content: center; gap: 20px; a { font-size: 24px; font-family: "Inter", sans serif; &.on { font-weight: bold; } } } .n-title { font-family: "Klee One", cursive; font-size: 40px; font-weight: 600; margin: 115px auto 40px; @include sp { font-size: 24px; margin-top: 90px; } } .p-content-block--category { width: 800px; margin: 0 auto; display: flex; gap: 18px; @include tab { width: 100%; flex-wrap: wrap; gap: 8px 16px; } a { display: block; padding: 10px 45px; border: 1px solid; border-radius: 5px; font-size: 14px; &.active { background: #110B51; color: #fff; } @include sp { font-size: 12px; padding: 7px 40px; } } }