@charset "UTF-8"; /* CSS Document */ //ブレイクポイントを指定------ここから $xl: 1399px; $lg: 1199px; $md: 991px; $sm: 767px; $xs: 575px; @mixin xl { @media screen and (max-width: ($xl)) { @content; } } @mixin lg { @media screen and (max-width: ($lg)) { @content; } } @mixin md { @media screen and (max-width: ($md)) { @content; } } @mixin sm { @media screen and (max-width: ($sm)) { @content; } } @mixin xs { @media screen and (max-width: ($xs)) { @content; } } //ブレイクポイントを指定------ここまで h2 { font-family: 'Cormorant Garamond', serif; color: #fff; font-size: 40px; font-size: 4rem; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 5rem; display: flex; align-items: center; span { font-family: 'NotoSerifJP', serif; font-size: 19px; font-size: 1.9rem; font-weight: 400; letter-spacing: 0.15em; margin-left: 1rem; span { font-size: 16px; font-size: 1.6rem; } } } .inner { width: 87%; margin: 0 auto; @include md { width: 100%; } } //top-img #top-img { background-image: url("../img/works-header.png"); } //ul-works #ul-works { padding: 3rem 0; .inner { .row { &>div { margin-bottom: 8rem; @include sm { margin-bottom: 4rem; } } } a { display: block; .works-img { position: relative; width: 100%; overflow: hidden; img { width: 100%; z-index: 1; transition: 1s; object-fit: cover; object-position: center; } } dl { margin: 2rem 0 1rem; @include sm { margin: 1rem 0 1rem; } dt { font-family: 'Cormorant Garamond', serif; color: #fff; font-size: 50px; font-size: 5rem; font-style: italic; font-weight: 300; margin-bottom: 2rem; @include sm { font-size: 40px; font-size: 4rem; margin-bottom: 1rem; } } dd { font-family: 'NotoSerifJP', serif; font-size: 19px; font-size: 1.9rem; font-weight: 400; color: #fff; letter-spacing: 0.15em; @include sm { font-size: 17px; font-size: 1.7rem; letter-spacing: 0.1em; } } } p { font-family: 'Cormorant Garamond', serif; color: #fff; font-size: 14px; font-size: 1.4rem; color: #b1b1b1; letter-spacing: 0.1em; transition: 0.3s; } &:hover { .works-img { img { transform: scale(1.05); opacity: 0.7; } } p { color: #fff; } } } } }