body {
    background: #f4f6f8;
    font-family: 'Zen Maru Gothic', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
}

h1 {
    font-size: 1.3rem;
    color: #1976d2;
    margin-top: 0;
    margin-bottom: 5px;
}

p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    height: 140px;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    resize: vertical;
    margin-bottom: 15px;
}

textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.pick-btn {
    width: 100%;
    padding: 14px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.3);
    transition: 0.1s;
}

.pick-btn:active {
    transform: scale(0.98);
}

/* 結果表示エリア（最初は非表示、またはすっきり見せる） */
#result-container {
    margin-top: 25px;
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    border-radius: 12px;
    padding: 15px;
    transition: 0.1s;
}

.result-hidden {
    display: none; /* 最初は隠す */
}

.result-label {
    font-size: 0.85rem;
    color: #1565c0;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

#result-output {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0d47a1;
    word-break: break-all;
}

.back-btn {
    align-self: flex-start;
    margin-left: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.seo-text-box {
    width: 100%;
    max-width: 450px;
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: left;
    box-sizing: border-box;
}

.seo-text-box h1 {
    font-size: 0.95rem;
    color: #1976d2;
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 4px;
}

.seo-text-box p {
    font-size: 0.85rem;
    margin: 0;
    color: #555;
    text-align: left;
}