header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid black;
    background-color: white;
    padding: 10px 20px;
    margin: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-area img {
    height: 50px;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
    color: black;
    text-decoration: none;
}

.paw {
    font-size: 24px;
    margin-left: 5px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

body {
    font-family: sans-serif;
    margin: 0;
    background: #f5f5f5;
    text-align: center;
}

.top-bar {
    background-color: #19647e;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-btn {
    font-size: 16px;
    font-weight: 600;
    background: white;    
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100px;
    height: 50px;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.usage-box {
    background: white;
    border: 3px solid black;
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    width: 700px;
    text-align: left;
}

.usage-box p{
    font-size: 16px;
    font-weight: 600;
}

.drop-zone-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    width: 700px;
    padding: 15px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.drop-zone {
    background: #ddd;
    border: 3px solid black;
    border-radius: 15px;
    padding: 15px;    
    width: 700px;
    height: 500px;    
    position: relative;
    overflow-y: auto;     
}

#pageListContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.zoom-buttons {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-left: auto;
    margin-top: 5px;
}

.zoom-buttons button {
    font-size: 20px;
    font-weight: 600px;
    margin: 0 2px;
    background-color: white;
    border: solid 2px black;
    border-radius: 5px;
    width: 70px;
    height: 50px;
    cursor: pointer;
}

.zoom-buttons button:hover {
    transform: scale(1.1);
}

#fileNameInput {    
    padding: 8px;
    width: 350px;
    height: 40px;
    margin: 10px;
    font-size: 18px;
}

#createBtn {
    padding: 10px 20px;
    background: white;
    font-size: 20px;
    font-weight: bold;
    color: #19647e;
    border: 2px solid #19647e;
    border-radius: 10px;
    cursor: pointer;
    width: 180px;
    height: 60px;
    transition: background 0.3s, color 0.3s, opacity 0.3s;
}

#createBtn:hover {
    background: #19647e;
    color: white;
}

.download-btn {    
    display: block;    
    padding: 15px 30px;
    margin-left: 10px;
    font-size: 20px;
    font-weight: bold;
    background: white;
    color: #19647e;
    border: 2px solid #19647e;
    border-radius: 10px;
    cursor: pointer;
    width: 180px;
    height: 60px;
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; /* ホバー反応を無効化 */
}

.download-btn {
    transition: background 0.3s, color 0.3s, opacity 0.3s;
}

.download-btn:hover:enabled {
    background: #19647e;
    color: white;
}

.swap-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.swap-container input {
    font-size: 16px;
    text-align: center;
}

#swapBtn {
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 600;
    width: 90px;
    height: 50px;
    margin-left: 15px;
    background-color: white;
    border: 2px solid black;
    border-radius: 5px;
    cursor: pointer;
}

#swapBtn:hover {
    transform: scale(1.1);
}

.page-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: white;
    color: black;
    border: solid 2px black;    
    border-radius: 5px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.page-remove-btn:hover {
    color: white;
    background: #c0392b;    
    transform: scale(1.2);
}

.page-number-label {
    position: absolute;
    bottom: 10px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    width: 12px;    
    display: flex;
    align-items: center;
    justify-content: center;
}


.attention-wrapper {
    display: flex; 
    flex-direction: column; 
    width: 720px;     
    margin-top: 30px;
    margin-left: auto; 
    margin-right: auto;
    padding: 0;
}

.attention-wrapper p{
    font-size: 16px; 
    font-weight: 600; 
    padding: 5px; 
    text-align: left;
    margin: 0;
    padding: 0;
}

.page-rotate-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    background: white;
    color: black;
    border: solid 2px black;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-rotate-btn:hover {
    background: #ddd;
}


.sns-links {
    margin-left: 40px; display: flex; flex-direction: row;
}

.sns-links img {
    width:30px;
    height:30px;
    margin: auto 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.sns-links img:hover {
    transform: scale(1.1);
}