body {
    font-family: "Noto Serif SC", "Noto Serif JP", "Noto Serif", serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 32px;
    height: 32px;
}

.site-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.domain {
    font-size: 0.6em;
    color: #666;
    margin-left: 5px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1.1em;
    background-color: white;
    color: #333;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    border-color: #666;
}

input[type="text"]::placeholder {
    color: #CCCCCC;
}

#submitButton {
    background-color: #333;
    color: white;
    padding: 12px 30px;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    transition: all 0.3s ease;
    opacity: 0;
    display: block;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
}

#submitButton:hover {
    background-color: #444;
    color: white;
}

.button-hint {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
    margin-bottom: 20px;
}

.button-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
    color: #333;
}

.cards-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 20px 0;
    gap: 20px;
}

.canvas-container {
    width: 100%;
    height: 0;
    padding-bottom: 45%;
    position: relative;
    margin: 0 auto 20px;
}

#cardCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.selectors-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.card-group {
    flex: 1;
    text-align: center;
    position: relative;
}

.card-group::after {
    pointer-events: none;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1.1em;
    background-color: white;
    color: #333;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
}

select::-ms-expand {
    display: none;
}

#result {
    display: none;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.button-container {
    position: relative;
    margin-top: 20px;
    padding-top: 30px;
}

.loading-text {
    font-size: 1.5em;
    color: #333;
    position: relative;
    display: inline-block;
}

.loading-text::after {
    content: '...';
    position: absolute;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

.site-navigation {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.site-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.site-navigation li {
    margin: 0;
}

.site-navigation a {
    color: #B8860B;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.site-navigation a:hover {
    color: #DAA520;
}

.footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links h3 {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 15px;
    font-weight: normal;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #B8860B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #DAA520;
}

.copyright {
    color: #666;
    font-size: 0.9em;
}

.copyright p {
    margin: 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    max-width: 95%;
    max-height: 95vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-radius: 8px;
}

.modal-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transform: scale(2);
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.modal-image:hover {
    transform: scale(2.1);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 98%;
    }
    .modal-close {
        top: -40px;
        right: 0;
        font-size: 30px;
        padding: 10px;
        width: 30px;
        height: 30px;
    }
    .modal-image {
        transform: scale(1.5);
    }
    .modal-image:hover {
        transform: scale(1.6);
    }
}

.language-selector {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1000;
}

.language-selector select {
    min-width: 100px;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
    background-position: right 8px center;
    background-size: 14px;
}

.language-selector select:hover {
    border-color: #999;
}

.language-selector select:focus {
    border-color: #666;
} 
