body {
    font-family: 'Gothic A1', sans-serif;
    background: radial-gradient(circle at top, #fff1f5 0%, #f7fbff 45%, #eaf6ff 100%);
    color: #2f2f2f;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ffd5e5;
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: 0 8px 16px rgba(255, 171, 200, 0.25);
}

.lang-switcher::after {
    content: attr(data-lang);
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #fff0f6;
    color: #ff7aa2;
}

.lang-switcher[data-lang="en"] {
    border-color: #b4e5ff;
}

.lang-switcher[data-lang="ja"] {
    border-color: #ffe1b8;
}

.lang-switcher[data-lang="ko"] {
    border-color: #ffd3e3;
}

.lang-switcher[data-lang="en"]::after {
    background: #eaf7ff;
    color: #1f6aa5;
}

.lang-switcher[data-lang="ja"]::after {
    background: #fff4e0;
    color: #a86b1f;
}

.lang-switcher[data-lang="ko"]::after {
    background: #fff0f6;
    color: #ff7aa2;
}

.lang-switcher label {
    font-size: 0.9rem;
}

.lang-switcher select {
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #ffc0d6;
    background: white;
    font-size: 0.9rem;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 14px 24px rgba(120, 170, 220, 0.18);
    border: 2px solid #eaf3ff;
    position: relative;
    overflow: hidden;
    max-width: 520px;
    width: min(92vw, 520px);
}

.container::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #ffe5f0 0%, rgba(255, 229, 240, 0.2) 70%, transparent 72%);
}

.container::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, #e6f5ff 0%, rgba(230, 245, 255, 0.2) 70%, transparent 72%);
}

h1 {
    color: #ff7aa2;
}

.input-group {
    margin: 1rem 0;
}

.date-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.time-row {
    margin-top: 0.8rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

label {
    margin-right: 0.5rem;
    font-weight: 600;
}

input {
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    border: 2px solid #d1e6ff;
    background: #ffffff;
    box-shadow: inset 0 2px 4px rgba(120, 170, 220, 0.08);
    font-size: 0.98rem;
}

input:focus {
    outline: none;
    border-color: #8fd3ff;
    box-shadow: 0 0 0 3px rgba(143, 211, 255, 0.25);
}

.input-group input[type="time"] {
    min-width: 130px;
}

@media (max-width: 520px) {
    .date-row {
        grid-template-columns: 1fr;
    }
}

input.input-error {
    border-color: #ff9bb8;
    background: #fff6f9;
}

.error-message {
    min-height: 1.2rem;
    margin: 0.2rem 0 0.6rem;
    color: #ff6b9a;
    font-weight: 600;
}

button {
    background: linear-gradient(135deg, #ff8ab0, #ffb6c8);
    color: white;
    padding: 0.8rem 1.7rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 10px 18px rgba(255, 138, 176, 0.35);
}

button:hover {
    background: linear-gradient(135deg, #ff7aa2, #ffa8be);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.detail-button {
    display: inline-block;
    margin-top: 0.8rem;
    background: linear-gradient(135deg, #8fd3ff, #b4e5ff);
    color: #1f4b6b;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(143, 211, 255, 0.35);
}

.detail-button:hover {
    background: linear-gradient(135deg, #7ec8ff, #a6ddff);
}

#result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f3fbff;
    border-radius: 16px;
    border: 2px dashed #cfe7ff;
}

#element {
    margin-top: 0.4rem;
    font-weight: 600;
    color: #ff7aa2;
}

.result-card {
    text-align: left;
    background: #fff7fb;
    border: 2px solid #ffd3e3;
    box-shadow: 0 12px 20px rgba(255, 167, 195, 0.22);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.2rem;
    margin-top: 0.6rem;
}

.result-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    border: 1px solid #ffe1ec;
}

.result-keywords {
    grid-column: 1 / -1;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: #ff7aa2;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.result-value {
    margin: 0.3rem 0 0;
    font-weight: 600;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.reset-button {
    background: #fff;
    border: 2px solid #ffd3e3;
    color: #ff7aa2;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.reset-button:hover {
    background: #fff0f6;
}

@media (max-width: 520px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    padding: 1.5rem 1.2rem;
}

.detail-title {
    margin-top: 0.2rem;
}

.detail-subtitle {
    font-weight: 600;
    color: #ff7aa2;
    margin-bottom: 0.8rem;
}

.detail-section {
    text-align: left;
    background: #f9fdff;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #dff1ff;
    margin-top: 0.9rem;
}

.detail-section h3 {
    margin: 0 0 0.4rem 0;
    color: #ff7aa2;
}

.back-link {
    display: inline-block;
    margin-top: 1.2rem;
    text-decoration: none;
    color: #2f2f2f;
    font-weight: 600;
}

.hidden {
    display: none;
}
