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

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 8px;
}

/* Hero Section with Search */
.hero {
    background: white;
    padding: 60px 20px;
    margin-top: -30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.search-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #667eea;
}

.search-description {
    color: #666;
    margin-bottom: 30px;
}

#searchForm {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#artistName {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

#artistName:focus {
    outline: none;
    border-color: #667eea;
}

button[type="submit"] {
    padding: 15px 40px;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#searchResults {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: left;
}

#searchResults.hidden {
    display: none;
}

.result-item {
    padding: 15px;
    background: white;
    border-left: 4px solid #667eea;
    margin-bottom: 10px;
    border-radius: 3px;
}

.result-item h4 {
    color: #667eea;
    margin-bottom: 5px;
}

.no-results {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Info Section */
.info-section {
    padding: 80px 20px;
    background: white;
    margin-top: 40px;
}

.info-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #667eea;
}

.info-card p {
    color: #666;
    line-height: 1.8;
}

/* How It Works */
.how-it-works {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.timeline-number {
    min-width: 60px;
    height: 60px;
    background: white;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    opacity: 0.95;
    line-height: 1.8;
}

/* Educational Section */
.educational-section {
    padding: 80px 20px;
    background: white;
}

.educational-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #333;
}

.faq {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #f9f9f9;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.faq-item p {
    color: #666;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

.footer-line a,
.footer-line a:visited {
    color: #a9b6ff;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Privacy notice -- lives in the dark footer, so it overrides the centred
   footer text and uses a lighter link colour for contrast on #333. */
.privacy {
    max-width: 760px;
    margin: 25px auto 0;
    text-align: left;
    font-size: 0.85rem;
}

.privacy > summary {
    cursor: pointer;
    text-align: center;
    opacity: 0.8;
    padding: 6px 0;
}

.privacy > summary:hover {
    opacity: 1;
}

.privacy-body {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.75;
    line-height: 1.8;
}

.privacy-body h3 {
    font-size: 0.9rem;
    margin: 18px 0 6px;
}

.privacy-body h3:first-child {
    margin-top: 0;
}

.privacy-body ul {
    padding-left: 1.2em;
    margin-bottom: 6px;
}

.privacy-body p {
    margin-bottom: 6px;
}

.privacy-body a,
.privacy-body a:visited {
    color: #a9b6ff;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    #searchForm {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* Waitlist Modal */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.privacy-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

.privacy-note a {
    color: #667eea;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message.hidden {
    display: none;
}

.success-message h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
    font-size: 1.1rem;
}
/* Hero link to the business section. Deliberately quiet -- it sits under the
   search bar and must not compete with it. */
.business-link {
    margin-top: 12px;
    font-size: 0.85rem;
    text-align: right;
}

.business-link a {
    color: #667eea;
}

/* Label / publisher / management section, above the FAQ. Light background so
   it reads as distinct from the white FAQ section that follows. */
.business-section {
    padding: 60px 20px;
    background: #eef0fb;
    text-align: center;
}

.business-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.business-section p {
    color: #666;
    margin-bottom: 25px;
}

/* Links to the manager and publisher/label guides, under the button. */
.business-section .business-guides {
    margin: 20px 0 0;
    font-size: 0.9rem;
}

.business-button {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: bold;
    color: #667eea;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.business-button:hover {
    background: #667eea;
    color: white;
}

/* Business-section buttons, centred and wrapping on narrow screens. */
.business-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* The inquiry form has five fields plus consent, which overflows a short
   viewport; let the modal scroll rather than clip the submit button. */
#inquiryModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Marketing-consent checkbox. The generic .form-group input rule gives inputs
   width: 100% and padding, which would stretch a checkbox across the form, so
   it is reset here. */
.form-group.consent .consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: normal;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.form-group.consent input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-top: 4px;
    flex-shrink: 0;
}

/* No-result sign-up, inside the centred .no-results block. Left-aligned and
   width-capped so it reads as a form, not a line of centred text. */
.no-match-form {
    max-width: 420px;
    margin: 25px auto 0;
    text-align: left;
}

/* Forms swap for their success message by toggling .hidden. There is no
   global .hidden rule in this stylesheet -- each component declares its own --
   and the waitlist form never had one, so its success state used to show the
   still-filled form above the thank-you. */
#waitlistForm.hidden,
#inquiryForm.hidden,
.no-match-form.hidden {
    display: none;
}

/* Songwriter lookup prompt (Songlinks), under search results and on the
   no-result screen. Separated by a rule rather than a coloured box so it
   reads as a next step, not as another result. */
.songlinks-prompt {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: left;
}

.songlinks-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.songlinks-text,
.songlinks-note {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

.songlinks-form {
    display: flex;
    gap: 10px;
    margin: 12px 0 8px;
}

.songlinks-form input {
    flex: 1;
    padding: 10px 14px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.songlinks-form input:focus {
    outline: none;
    border-color: #667eea;
}

/* Smaller than the main search button: this is the secondary action. */
.songlinks-form button[type="submit"] {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.songlinks-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.songlinks-error.hidden {
    display: none;
}

@media (max-width: 768px) {
    .songlinks-form {
        flex-direction: column;
    }
}

/* Share row under a visitor's own search results. */
.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.share-label {
    color: #666;
    font-size: 0.9rem;
}

.share-button {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
}

/* Each network's own brand colour, so the buttons are recognisable at a
   glance without loading either network's logo. */
.share-x {
    background: #000;
}

.share-line {
    background: #06c755;
}

.share-button:hover {
    opacity: 0.85;
}

/* Disabled search button while a request is in flight. */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Japanese headings otherwise break mid-word on phones (e.g. "検 / 索").
   auto-phrase breaks at phrase boundaries (Chrome/Edge; others ignore it). */
h1, h2, h3 {
    word-break: auto-phrase;
}

#waitlistModal .modal-description {
    margin-bottom: 18px;
}

/* Taller than a phone screen now; scroll inside rather than clip. */
#waitlistModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* ---------------------------------------------------------------------------
   Guide pages (/guide/...) and the home page's guide section.
   --------------------------------------------------------------------------- */

.guide-section {
    padding: 70px 20px;
    background: #f5f5f5;
}

.guide-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.guide-section-all {
    text-align: center;
    margin-top: 25px;
}

.guide-section-all a {
    color: #667eea;
    font-weight: bold;
}

.guide-cards {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 0;
}

.guide-card {
    display: block;
    height: 100%;
    padding: 18px 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e3e5f5;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.guide-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.guide-card-title {
    display: block;
    font-weight: bold;
    color: #4a55c4;
    margin-bottom: 6px;
    line-height: 1.5;
}

.guide-card-desc {
    display: block;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
}

/* Slim top bar on guide pages (the home page keeps its big header). */
.site-bar {
    padding: 14px 20px;
    text-align: left;
}

.site-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-name {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
}

.site-nav a {
    color: white;
    text-decoration: none;
    margin-left: 18px;
    opacity: 0.9;
}

.site-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.guide-main {
    max-width: 820px;
    padding-top: 24px;
    padding-bottom: 60px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #667eea;
}

.guide-article {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    line-height: 1.95;
}

.guide-article h1 {
    font-size: 1.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
}

.guide-updated {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 24px;
}

.guide-article .lead {
    font-size: 1.05rem;
    color: #444;
    padding: 16px 20px;
    background: #f3f4fd;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    margin-bottom: 28px;
}

.guide-article h2 {
    font-size: 1.4rem;
    margin: 40px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3e5f5;
    color: #333;
}

.guide-article h3 {
    font-size: 1.12rem;
    margin: 26px 0 10px;
    color: #4a55c4;
}

.guide-article p,
.guide-article ul,
.guide-article ol,
.guide-article table,
.guide-article blockquote {
    margin-bottom: 16px;
}

.guide-article ul,
.guide-article ol {
    padding-left: 1.5em;
}

.guide-article li {
    margin-bottom: 6px;
}

.guide-article a {
    color: #4a55c4;
}

.guide-article .note {
    background: #fff8e6;
    border-left: 4px solid #f0b429;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.guide-article blockquote {
    border-left: 4px solid #ddd;
    padding: 4px 16px;
    color: #555;
}

/* Tables scroll sideways inside the article on phones instead of widening
   the page. */
.guide-article table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.6;
}

.guide-article th,
.guide-article td {
    border: 1px solid #e3e5f5;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.guide-article th {
    background: #f3f4fd;
    white-space: nowrap;
}

.guide-index h2 {
    font-size: 1.25rem;
}

.guide-cta {
    margin-top: 30px;
    padding: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.guide-cta-title {
    word-break: auto-phrase;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.guide-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.guide-cta .guide-cta-search {
    padding: 12px 32px;
    font-size: 1rem;
}

.guide-related {
    margin-top: 40px;
}

.guide-related h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.guide-back {
    margin-top: 30px;
}

.guide-back a,
.footer-links a,
.footer-links a:visited {
    color: #a9b6ff;
}

.guide-back a {
    color: #667eea;
}

@media (max-width: 768px) {
    .guide-article {
        padding: 24px 18px;
    }

    .guide-article h1 {
        font-size: 1.5rem;
    }

    .guide-article h2 {
        font-size: 1.2rem;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }

    .site-nav a {
        margin-left: 12px;
    }
}

/* Songlinks box under the guide call-to-action. */
.guide-songlinks {
    margin-top: 16px;
    padding: 20px 24px;
    background: white;
    border: 1px solid #e3e5f5;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.8;
}

.guide-songlinks-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.guide-songlinks-link {
    display: inline-block;
    margin-top: 8px;
    color: #4a55c4;
    font-weight: bold;
}

/* Artist pages (/artist/<name>) and links to them from search results. */
.artist-kicker {
    font-size: 0.85rem;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.artist-table td.isrc {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

.artist-table td.num {
    text-align: right;
}

.result-item h4 .artist-link {
    color: inherit;
    text-decoration: none;
}

.result-item h4 .artist-link:hover {
    text-decoration: underline;
}

.artist-more {
    margin-top: 6px;
    font-size: 0.9rem;
}

.artist-more a {
    color: #667eea;
    font-weight: bold;
}

/* Songwriter section on artist pages (artists.songlinks_block). */
.artist-writer {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #e3e5f5;
    border-radius: 8px;
    background: #fafbff;
}

.artist-writer-found {
    border-color: #667eea;
    background: #f3f4fd;
}

.artist-writer-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px !important;
}

.artist-writer-link {
    display: inline-block;
    margin-top: 4px;
    font-weight: bold;
}

/* JASRAC / NexTone links on artist pages. */
.artist-japan-links a {
    font-weight: bold;
    line-height: 2.2;
}

.artist-japan-note {
    font-size: 0.88rem;
    color: #666;
}

/* "関係者の方へ" contact box on artist pages. */
.artist-contact {
    margin: 24px 0 8px;
    padding: 22px;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: #f5f6fe;
}

.artist-contact-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 6px !important;
}

.artist-contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 10px 0 4px;
}

.artist-contact-form input[type="email"],
.artist-contact-form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
}

.artist-contact-form .consent-label {
    display: flex;
    gap: 8px;
    font-weight: normal;
    align-items: flex-start;
}

.artist-contact-form .submit-btn {
    margin-top: 12px;
}

.artist-contact .hidden {
    display: none;
}

/* Japan catalogue: writer and release pages, artist catalogue section. */
.badge-unmatched {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #fff1e6;
    color: #c25700;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

.guide-article .muted,
.artist-table .muted {
    color: #999;
}

.artist-table .role {
    color: #888;
    font-size: 0.8rem;
}

.release-meta {
    margin-bottom: 20px;
}

.release-meta th {
    width: 7em;
}

.writer-list {
    columns: 2;
    column-gap: 24px;
    list-style: none;
    padding-left: 0 !important;
}

@media (max-width: 768px) {
    .writer-list {
        columns: 1;
    }
}

/* 別表記 (spelling variants) box on artist pages. */
.variant-list {
    list-style: none;
    padding-left: 0 !important;
}

.variant-list li {
    padding: 4px 0;
}

.variant-list a {
    font-weight: bold;
}

.variant-count {
    margin-left: 10px;
    color: #888;
    font-size: 0.85rem;
}

/* Copy-link button next to the X / LINE share links (artist pages). */
.share-copy {
    border: none;
    cursor: pointer;
    background: #eceef8;
    color: #4a55c4;
    font-family: inherit;
}

.artist-share {
    margin: 16px 0 8px;
}

/* Search box inside a guide/landing page; submits to /?q=, which script.js
   runs on load. */
.landing-search {
    margin: 0 0 28px;
    padding: 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.landing-search label {
    display: block;
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.landing-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-search-row input {
    flex: 1 1 220px;
    padding: 12px 16px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
}

.landing-search-row button {
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: bold;
    color: #4a55c4;
    background: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.landing-search .landing-search-note {
    margin: 10px 0 0 !important;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Tufte-style inline SVG charts (charts.py). */
.tufte-figure {
    margin: 24px 0 28px;
}

.tufte-title {
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 6px !important;
}

.tufte-chart {
    display: block;
    width: 100%;
    height: auto;
    max-width: 640px;
}

.tufte-figure figcaption {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    margin-top: 4px;
}

.tufte-data summary {
    font-size: 0.8rem;
    color: #4a55c4;
    cursor: pointer;
    margin-top: 6px;
}

.tufte-data table {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Link to the note how-to article under the results. */
.note-howto {
    margin-top: 16px;
    color: #666;
    font-size: 0.9rem;
}
.note-howto a {
    color: #667eea;
}

.nowrap {
    white-space: nowrap;
}
