body { font-family: Menlo, sans-serif; background:#2d2d2d; } .form-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(#212121, #000000) padding-box, linear-gradient(145deg, transparent 35%,#e81cff, #40c9ff) border-box; border: 2px solid transparent; padding: 32px 24px; font-family: inherit; color: white; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; border-radius: 16px; } /* スマートフォン用のスタイル */ @media (max-width: 767px) { .form-container { width: 100%; /* 幅を100%に設定して画面幅いっぱいに広げる */ font-size: 12px; /* フォントサイズを調整 */ /* その他のスタイル変更 */ } } /* タブレット用のスタイル */ @media (min-width: 768px) and (max-width: 1023px) { .form-container { width: 80%; /* 画面幅の80%に設定 */ font-size: 14px; /* フォントサイズを調整 */ /* その他のスタイル変更 */ } } /* デスクトップ用のスタイル */ @media (min-width: 1024px) { .form-container { width: 400px; /* 元の幅に戻す */ font-size: 16px; /* フォントサイズを調整 */ /* その他のスタイル変更 */ } } .form-container button:active { scale: 0.95; } .form-container .form { display: flex; flex-direction: column; gap: 20px; } .form-container .form-group { display: flex; flex-direction: column; gap: 2px; } .form-container .form-group label { display: block; margin-bottom: 5px; color: #717171; font-weight: 600; font-size: 12px; } .form-container .form-group input { width: 100%; padding: 12px 16px; border-radius: 8px; color: #fff; font-family: inherit; background-color: transparent; border: 1px solid #414141; } .form-container .form-group textarea { width: 100%; padding: 12px 16px; border-radius: 8px; resize: none; color: #fff; height: 96px; border: 1px solid #414141; background-color: transparent; font-family: inherit; } .form-container .form-group input::placeholder { opacity: 0.5; } .form-container .form-group input:focus { outline: none; border-color: #e81cff; } .form-container .form-group textarea:focus { outline: none; border-color: #e81cff; } .form-container .form-submit-btn { display: flex; align-items: flex-start; justify-content: center; align-self: flex-start; font-family: inherit; color: #717171; font-weight: 600; width: 40%; background: #313131; border: 1px solid #414141; padding: 12px 16px; font-size: inherit; gap: 8px; margin-top: 8px; cursor: pointer; border-radius: 6px; } .form-container .form-submit-btn:hover { background-color: white; border-color: #fff; } .ui-abstergo { --primary: #fff; --secondary: rgba(255, 255, 255, 0.3); --shadow-blur: 3px; --text-shadow-blur: 3px; --animation-duration: 2s; --size: 1; } .abstergo-loader * { -webkit-box-sizing: content-box; box-sizing: content-box; } .ui-abstergo { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; row-gap: 30px; scale: var(--size); } .ui-abstergo .ui-text { color: var(--primary); text-shadow: 0 0 var(--text-shadow-blur) var(--secondary); font-family: Menlo, sans-serif; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; -webkit-column-gap: 3px; -moz-column-gap: 3px; column-gap: 3px; } .ui-abstergo .ui-dot { content: ""; display: block; width: 3px; height: 3px; -webkit-animation: dots var(--animation-duration) infinite linear; animation: dots var(--animation-duration) infinite linear; -webkit-animation-delay: .4s; animation-delay: .4s; background-color: var(--primary); } .ui-abstergo .ui-dot:nth-child(2) { -webkit-animation-delay: .8s; animation-delay: .8s; } .ui-abstergo .ui-dot:nth-child(3) { -webkit-animation-delay: 1.2s; animation-delay: 1.2s; } .ui-abstergo .ui-dot+.ui-dot { margin-left: 3px; } .abstergo-loader { width: 103px; height: 90px; position: relative; } .abstergo-loader div { width: 50px; border-right: 12px solid transparent; border-left: 12px solid transparent; border-top: 21px solid var(--primary); position: absolute; -webkit-filter: drop-shadow(0 0 var(--shadow-blur) var(--secondary)); filter: drop-shadow(0 0 var(--shadow-blur) var(--secondary)); } .abstergo-loader div:nth-child(1) { top: 27px; left: 7px; rotate: -60deg; -webkit-animation: line1 var(--animation-duration) linear infinite alternate; animation: line1 var(--animation-duration) linear infinite alternate; } .abstergo-loader div:nth-child(2) { bottom: 2px; left: 0; rotate: 180deg; -webkit-animation: line2 var(--animation-duration) linear infinite alternate; animation: line2 var(--animation-duration) linear infinite alternate; } .abstergo-loader div:nth-child(3) { bottom: 16px; right: -9px; rotate: 60deg; -webkit-animation: line3 var(--animation-duration) linear infinite alternate; animation: line3 var(--animation-duration) linear infinite alternate; } .abstergo-loader:hover div:nth-child(1) { top: 21px; left: 14px; rotate: 60deg; } .abstergo-loader:hover div:nth-child(2) { bottom: 5px; left: -8px; rotate: 300deg; } .abstergo-loader:hover div:nth-child(3) { bottom: 7px; right: -11px; rotate: 180deg; } @-webkit-keyframes line1 { 0%, 40% { top: 27px; left: 7px; rotate: -60deg; } 60%, 100% { top: 22px; left: 14px; rotate: 60deg; } } @keyframes line1 { 0%, 40% { top: 27px; left: 7px; rotate: -60deg; } 60%, 100% { top: 22px; left: 14px; rotate: 60deg; } } @-webkit-keyframes line2 { 0%, 40% { bottom: 2px; left: 0; rotate: 180deg; } 60%, 100% { bottom: 5px; left: -8px; rotate: 300deg; } } @keyframes line2 { 0%, 40% { bottom: 2px; left: 0; rotate: 180deg; } 60%, 100% { bottom: 5px; left: -8px; rotate: 300deg; } } @-webkit-keyframes line3 { 0%, 40% { bottom: 16px; right: -9px; rotate: 60deg; } 60%, 100% { bottom: 7px; right: -11px; rotate: 180deg; } } @keyframes line3 { 0%, 40% { bottom: 16px; right: -9px; rotate: 60deg; } 60%, 100% { bottom: 7px; right: -11px; rotate: 180deg; } } @-webkit-keyframes dots { 0% { background-color: var(--secondary); } 30% { background-color: var(--primary); } 70%, 100% { background-color: var(--secondary); } } @keyframes dots { 0% { background-color: var(--secondary); } 30% { background-color: var(--primary); } 70%, 100% { background-color: var(--secondary); } }