
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 700px;
    text-align: center;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: clamp(20px, 4vw, 30px);
    margin-bottom: 10px;
}

.coupling-title {
    color: #d94f9b;
}

header p {
    color: #777;
    font-size: 14px;
}

.page-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.page-actions button,
.page-actions a {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.page-actions .page-switch {
    display: block;
    background-color: #fff;
    line-height: 20px;
    text-decoration: none;
}

.page-actions .coupling-link {
    border: 2px solid #d94f9b;
    color: #d94f9b;
}

.page-actions .trainer-link {
    border: 2px solid #299bc5;
    color: #299bc5;
}

.page-actions .page-switch:hover {
    opacity: .8;
}

.trainer-actions {
    margin-top: 40px;
}

.result-area {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.pair-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.pair-card {
    flex: 1;
    min-width: 0;
}

.pair-image-container {
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.pair-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pair-name {
    font-size: 22px;
    overflow-wrap: anywhere;
}

.pair-region {
    margin-top: 5px;
    color: #777;
    font-size: 10px;
}

.pair-symbol {
    flex: 0 0 auto;
    color: #000000;
    font-size: 40px;
    font-weight: bold;
}

#trainer-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.trainer-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.trainer-info #trainer-region {
    color: #777;
    font-size: 15px;
    margin-bottom: 15px;
}

/* 説明文 */
#trainer-description {
    font-size: 15px;
    line-height: 1.9;
    text-align: center;
    white-space: pre-line;
    color: #444;
    margin: 0 auto;
    max-width: 550px;
}

button {
    margin-top: 20px;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    background-color: #e94b4b;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity .2s;
}

button:hover:not(:disabled) {
    opacity: .8;
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.share-button {
    margin-top: 10px;
    background-color: #000;
}

footer {
    margin-top: 25px;
    color: #999;
    font-size: 12px;
}

.hidden {
    display: none !important;
}

#error {
    color: #d33;
    padding: 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 25px 15px;
    }

    .image-container {
        height: 350px;
    }

    .pair-display {
        gap: 8px;
    }

    .pair-image-container {
        height: 240px;
    }

    .pair-image {
        width: 125%;
        max-width: none;
    }

    .pair-name {
        font-size: 18px;
    }

    .pair-symbol {
        font-size: 42px;
    }

    .trainer-info h2 {
        font-size: 24px;
    }

    #trainer-description {
        font-size: 14px;
    }

    button {
        width: 100%;
    }
}
#admin-panel {
    display: none;
    width: 100%;
    max-width: 500px;
    margin: 25px auto;
}

#admin-search {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
}

#admin-search::placeholder {
    color: #888;
}

#admin-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.admin-result-item {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.admin-result-item:hover {
    background-color: #eee;
    color: #222;
}
.disclaimer {
    margin-top: 25px;
    padding: 15px 10px;
    color: #999;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.disclaimer p {
    margin: 3px 0;
}
.coupling-actions {
    margin-top: 40px;
}
