body {
    font-family: Arial, sans-serif;
    background-color: #f3e5f5; /* 薄い紫色の背景色 */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #6a1b9a; /* 濃い紫色 */
    text-align: center;
}

#loading {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* 他の要素の上に表示 */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #6a1b9a; /* 濃い紫色 */
    color: white;
}

.button {
    background-color: #6a1b9a; /* 濃い紫色 */
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
    text-align: center;
}

.button:hover {
    background-color: #4a0072;
}

.button-image {
    display: block;
    margin: auto;
    margin-bottom: 50px;
    width: 60%; /* 画像の幅 */
    border-radius: 8px; /* ボーダーの角を丸くする */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* 画像に常時表示される影 */
    transition: transform 0.3s, box-shadow 0.3s; /* トランジション効果 */
    cursor: pointer; /* カーソルをポインタに変更 */
}

.button-image:hover {
    transform: translateY(-5px); /* ホバー時に画像を上に少し移動させる */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35); /* ホバー時に影をより強調 */
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px dashed #6a1b9a;
    border-radius: 5px;
    background-color: #f3e5f5; /* 薄い紫色 */
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
}

input[type="file"]::file-selector-button {
    background-color: #6a1b9a; /* 濃い紫色 */
    color: white;
    border: none;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #4a0072;
}

.preview-container {
    display: inline-block;
    min-width: 240px;
    min-height: 100px;
    border: 5px dashed #eee;
    padding: 10px;
}

.image-container {
    text-align: center;
    margin: 20px 0;
}

.image-container img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

/* リンク付き画像のスタイル */
.other_site img {
    width: 200px; /* 画像のサイズを大きく調整 */
    height: auto;
    border-radius: 50%; /* 角丸 */
    transition: transform 0.3s ease;
    margin: 20px 0; /* 上下マージン */
    display: block; /* ブロック要素として配置 */
    margin-left: auto; /* 左マージンを自動 */
    margin-right: auto; /* 右マージンを自動 */
}

.other_site img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

hr {
    border: 0; /* 既存の境界線を削除 */
    height: 2px; /* 線の高さ */
    background-image: linear-gradient(to right, #EAF4FA, #287BD5, #EAF4FA); /* グラデーションで濃い青色を中央に */
    margin: 20px 0; /* 上下のマージン */
}

.adsbygoogle {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.image-container {
    text-align: center;
    margin: 20px 0;
}

.image-container img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

@media (max-width: 800px) {
    .button-image {
        width: 90%; /* モバイル時の画像幅 */
    }

    .container {
        padding: 10px;
    }

    .button {
        padding: 10px;
    }

    input[type="file"] {
        padding: 5px;
    }

    input[type="file"]::file-selector-button {
        padding: 5px;
    }
}
