 @import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&family=Noto+Sans+JP:wght@100..900&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

 ::-webkit-scrollbar {
     display: none;
 }

 ::selection {
     background-color: #3abfc153 !important;
 }

 body {
     font-family: "Noto Sans JP", sans-serif;
     color: #333;
     background-color: #f5f5f5;
     margin: 0;
 }

 header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     background-color: #333;
     padding: 10px 20px;
     color: #fff;
 }

 header a {
     margin: 0 15px;
     color: #fff !important;
     text-decoration: none;
 }

 h1 {
     margin-bottom: 20px;
 }

 a,
 a:visited {
     color: #0066ff;
     text-decoration: none;
 }

 .logo {
     font-family: "Google Sans Flex";
     font-size: 24px;
     font-weight: 600;
 }

 .contents {
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
     background-color: white;
     margin: 5%;
     min-height: 70vh;
     border-radius: 20px;
     box-shadow: 0px 0px 30px#ccc;
 }

 .instruction {
     font-family: "Google Sans Flex";
     font-size: 2em;
     font-weight: 500;
     margin-bottom: 0
 }

 .instruction-sub {
     font-size: small;
     margin-bottom: 10px;
 }

 #preview {
     display: block;
     max-width: 90%;
     border: 1px solid #ddd;
     border-radius: 8px;
     margin-top: 20px;
 }

 .preview {
     display: none;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     width: 100%;
     margin-top: 20px;
 }

 .preview img {
     max-width: 100%;
     height: auto;
     display: block;
     border-radius: 8px;
 }

 input[type="file"] {
     display: block;
     font-size: 16px;
     margin: 15px 0;
     padding: 8px;
     border-radius: 4px;
     border: 1px solid #ccc;
     background-color: #fff;
     width: 100%;
     max-width: 300px;
 }

 .file-upload-label {
     display: inline-block;
 }

 .file-upload-label span {
     font-size: 3em;
     color: inherit;
     transition: color 0.3s ease;
 }

 .file-upload-label:hover span {
     color: #45a049;
 }

 .button {
     display: block;
     cursor: pointer;
     color: #fff;
     font-size: 16px;
     margin-top: 15px;
     padding: 10px 20px;
     border: none;
     border-radius: 4px;
     background-color: #555;
     transition: background-color 0.3s;
 }

 .button:hover {
     background-color: #45a049;
 }

 #copyButton {
     display: none;
 }

 #generatedUrl {
     margin-top: 20px;
     font-size: 16px;
     width: 90%;
     text-align: center;
     word-break: break-all;
 }

 /* 画面幅が768px以下の場合 */
 @media (max-width: 600px) {
     p.instruction {
         font-size: 1.1em;
     }
 }

 @media (min-width: 768px) {
     .content {
         width: 50%;
     }

     .preview {
         width: 50%;
     }
 }