body { margin: 0; padding: 0; } h1 { background: linear-gradient(45deg, #833ab4, #fc9d45, #fc4545, #edfc45, #66fc45); -webkit-background-clip: text; color: transparent; } h3{ text-shadow: 1px 1px 2px #ff69b4 ; } @media screen and (max-width: 768px) { p { background-color: black; color: green; } } @media screen and (max-width: 480px) { p { background-color: black; color: red; } } @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { } .bg-transparent { position: relative; padding: 100px 0; height: 100vh; /* 画面の高さいっぱいに広げる */ background-size: cover; } .bg-transparent::after { content: ""; position: absolute; top: 0; left: 0; opacity: 0.7; width: 100%; height: 100%; background-image: url('test.jpg'); background-repeat: no-repeat; background-size: cover; background-position: right; z-index: -1; /* テキストが上に来るようにするために追加 */ } .class0 { color: #ff0000 ; } .class1 { color: #9400d3 ; } .class2 { color: #f08080 ; } .class3 { color: #32cd32 ; } .class4 { color: #0000cd ; } .class5 { color: #d2691e ; } html { height: 100%; } body { background-color: #192B33; } .loader { position: absolute; top: calc(50% - 32px); left: calc(50% - 32px); width: 64px; height: 64px; } .loader div { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; box-sizing: border-box; opacity: .8; } .one { border-top: 1px solid #8FB259; animation: rotate-left 1s linear infinite; } .two { border-right: 1px solid #CCCC52; animation: rotate-right 1s linear infinite; } .three { border-bottom: 1px solid #FFD933; animation: rotate-right 1s linear infinite; } .four { border-left: 1px solid #FF7F00; animation: rotate-right 1s linear infinite; } @keyframes rotate-left { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } } @keyframes rotate-right { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }