.cshr-glossary-page {
    padding: 60px 20px;
}

.cshr-glossary-container {
    max-width: 1040px;
    margin: 0 auto;
}

.cshr-breadcrumb {
    font-size: 14px;
    margin-bottom: 32px;
    color: #666;
}

.cshr-breadcrumb a {
    text-decoration: none;
}

.cshr-breadcrumb span {
    margin: 0 6px;
}

.cshr-glossary-entry h1,
.cshr-category-header h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cshr-glossary-entry section {
    margin-top: 40px;
}

.cshr-glossary-entry h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.cshr-glossary-entry p {
    line-height: 1.9;
    font-size: 16px;
}

.cshr-term-categories {
    margin: 20px 0 30px;
}

.cshr-term-categories a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
}

.cshr-disclaimer {
    background: #f7f7f7;
    padding: 24px;
    border-radius: 10px;
    margin-top: 60px;
}

.cshr-glossary-search {
    margin: 40px 0;
}

.cshr-glossary-search label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.cshr-glossary-search-row {
    display: flex;
    gap: 10px;
}

.cshr-glossary-search-row input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.cshr-glossary-search-row button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.cshr-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 50px;
}

.cshr-category-card {
    display: block;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.cshr-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 40px;
}

.cshr-az-nav a,
.cshr-az-nav span {
    display: inline-block;
    min-width: 34px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
}

.cshr-az-nav span {
    color: #aaa;
    background: #f5f5f5;
}

.cshr-letter-section {
    margin-top: 34px;
}

.cshr-letter-section h3 {
    font-size: 28px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.cshr-letter-section ul {
    columns: 2;
    list-style: none;
    padding-left: 0;
}

.cshr-letter-section li {
    margin-bottom: 10px;
}

.cshr-term-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.cshr-term-list-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px;
}

.cshr-term-list-item h2 {
    font-size: 22px;
    margin-top: 0;
}

.cshr-term-list-item h2 a {
    text-decoration: none;
}

.cshr-term-list-item p {
    line-height: 1.7;
}

@media (max-width: 768px) {
    .cshr-category-grid,
    .cshr-term-list {
        grid-template-columns: 1fr;
    }

    .cshr-glossary-entry h1,
    .cshr-category-header h1 {
        font-size: 32px;
    }

    .cshr-glossary-search-row {
        flex-direction: column;
    }

    .cshr-letter-section ul {
        columns: 1;
    }
}

.cshr-related-terms a {
    display: inline-block;
    margin: 0 6px 8px 0;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

.cshr-related-terms a:hover {
    text-decoration: underline;
}

.cshr-tooltip-term {
    border-bottom: 1px dotted currentColor !important;
    text-decoration: none !important;
    cursor: help !important;
}

.cshr-search-results {
    margin: 32px 0 48px;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f7f9fb;
}

.cshr-search-results h2 {
    margin-top: 0;
}

.cshr-search-summary {
    margin-bottom: 20px;
    color: #555;
}

.cshr-search-result-list {
    display: grid;
    gap: 16px;
}

.cshr-search-result-item {
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.cshr-search-result-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 20px;
}

.cshr-search-result-item h3 a {
    text-decoration: none;
}

.cshr-search-result-item p {
    margin-bottom: 0;
    line-height: 1.7;
}

.cshr-back-to-glossary {
    margin-top: 48px;
    text-align: center;
}

.cshr-back-to-glossary a {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid #010066;
    border-radius: 999px;
    color: #010066;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
}

.cshr-back-to-glossary a:hover,
.cshr-back-to-glossary a:focus {
    background: #010066;
    color: #fff;
    text-decoration: none;
}

.cshr-clear-search {
    display: inline-block;
    margin-left: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #010066;
    text-decoration: underline;
}

.cshr-clear-search:hover,
.cshr-clear-search:focus {
    color: #000;
    text-decoration: none;
}

.cshr-category-count {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f7f9fb;
    border: 1px solid #d3dce5;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.cshr-same-category-terms {
    margin-top: 48px;
    padding: 24px;
    border: 1px solid #d3dce5;
    border-radius: 12px;
    background: #f7f9fb;
}

.cshr-same-category-terms h2 {
    margin-top: 0;
}

.cshr-same-category-terms ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.cshr-same-category-terms li {
    margin: 0;
}

.cshr-same-category-terms a {
    text-decoration: none;
    font-weight: 700;
    color: #010066;
}

.cshr-same-category-terms a:hover,
.cshr-same-category-terms a:focus {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cshr-same-category-terms ul {
        grid-template-columns: 1fr;
    }
}

.cshr-total-terms {
    display: inline-block;
    margin: 24px 0 12px;
    padding: 10px 16px;
    border: 1px solid #d3dce5;
    border-radius: 999px;
    background: #f7f9fb;
    color: #333;
    font-size: 15px;
    font-weight: 700;
}

.cshr-category-count {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f7f9fb;
    border: 1px solid #d3dce5;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.cshr-search-result-category {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f7f9fb;
    border: 1px solid #d3dce5;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.cshr-back-to-az {
    margin-top: 16px;
    margin-bottom: 28px;
    font-size: 14px;
}

.cshr-back-to-az a {
    color: #010066;
    font-weight: 700;
    text-decoration: none;
}

.cshr-back-to-az a:hover,
.cshr-back-to-az a:focus {
    text-decoration: underline;
}

/* ==============================
   Glossary top page refinement
   ============================== */

.cshr-glossary-index {
    margin-top: 32px;
}

.cshr-total-terms {
    display: inline-block;
    margin: 0 0 18px;
    padding: 8px 14px;
    border: 1px solid #d3dce5;
    border-radius: 999px;
    background: #f7f9fb;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

/* Search area as the primary action */
.cshr-glossary-search {
    margin: 24px 0 40px;
    padding: 28px;
    border: 1px solid #d3dce5;
    border-radius: 16px;
    background: #f7f9fb;
}

.cshr-glossary-search label {
    display: block;
    margin-bottom: 10px;
    color: #111;
    font-size: 20px;
    font-weight: 800;
}

.cshr-glossary-search label::after {
    content: "FLSA、Form I-9、Exempt Employee などを入力してください";
    display: block;
    margin-top: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 400;
}

.cshr-glossary-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cshr-glossary-search-row input {
    flex: 1;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #b8c4d0;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 16px;
}

.cshr-glossary-search-row input:focus {
    outline: none;
    border-color: #010066;
    box-shadow: 0 0 0 3px rgba(1, 0, 102, 0.12);
}

.cshr-glossary-search-row button {
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid #010066;
    border-radius: 8px;
    background: #010066;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cshr-glossary-search-row button:hover,
.cshr-glossary-search-row button:focus {
    background: #00004d;
    border-color: #00004d;
}

/* Section spacing */
.cshr-glossary-categories,
.cshr-glossary-az {
    margin-top: 48px;
}

.cshr-glossary-categories h2,
.cshr-glossary-az h2 {
    margin-bottom: 18px;
    color: #111;
    font-size: 28px;
    line-height: 1.3;
}

/* Category cards */
.cshr-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cshr-category-card {
    display: block;
    min-height: 104px;
    padding: 20px;
    border: 1px solid #d3dce5;
    border-radius: 14px;
    background: #fff;
    color: #111;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cshr-category-card:hover,
.cshr-category-card:focus {
    transform: translateY(-2px);
    border-color: #010066;
    box-shadow: 0 8px 24px rgba(1, 0, 102, 0.08);
    text-decoration: none;
}

.cshr-category-card-name {
    display: block;
    margin-bottom: 10px;
    color: #010066;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.cshr-category-card-count {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #d3dce5;
    border-radius: 999px;
    background: #f7f9fb;
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .cshr-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cshr-glossary-search {
        padding: 22px;
    }

    .cshr-glossary-search-row {
        flex-direction: column;
    }

    .cshr-category-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Search result refinement
   ============================== */

.cshr-search-results {
    margin: 0 0 48px;
    padding: 24px;
    border: 1px solid #d3dce5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.cshr-search-results h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #111;
    font-size: 24px;
}

.cshr-search-summary {
    margin: 0 0 22px;
    color: #444;
    font-size: 15px;
}

.cshr-clear-search {
    display: inline-block;
    margin-left: 14px;
    color: #010066;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
}

.cshr-clear-search:hover,
.cshr-clear-search:focus {
    color: #000;
    text-decoration: none;
}

.cshr-search-result-list {
    display: grid;
    gap: 16px;
}

.cshr-search-result-item {
    padding: 20px;
    border: 1px solid #d3dce5;
    border-radius: 14px;
    background: #f7f9fb;
}

.cshr-search-result-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.4;
}

.cshr-search-result-item h3 a {
    color: #010066;
    text-decoration: none;
}

.cshr-search-result-item h3 a:hover,
.cshr-search-result-item h3 a:focus {
    text-decoration: underline;
}

.cshr-search-result-category {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 10px;
    border: 1px solid #d3dce5;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.cshr-search-result-item p {
    margin-bottom: 0;
    color: #333;
    line-height: 1.8;
}

.cshr-no-results {
    padding: 18px;
    border: 1px solid #d3dce5;
    border-radius: 12px;
    background: #f7f9fb;
    color: #333;
    line-height: 1.8;
}

/* ==============================
   A-Z refinement
   ============================== */

.cshr-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 36px;
}

.cshr-az-nav a,
.cshr-az-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d3dce5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.cshr-az-nav a {
    background: #fff;
    color: #010066;
}

.cshr-az-nav a:hover,
.cshr-az-nav a:focus {
    border-color: #010066;
    background: #010066;
    color: #fff;
    text-decoration: none;
}

.cshr-az-nav span {
    background: #f7f9fb;
    color: #aaa;
}

.cshr-letter-section {
    margin-top: 36px;
    padding-top: 12px;
}

.cshr-letter-section h3 {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d3dce5;
    color: #010066;
    font-size: 28px;
    line-height: 1.3;
}

.cshr-letter-section ul {
    columns: 2;
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.cshr-letter-section li {
    break-inside: avoid;
    margin-bottom: 10px;
}

.cshr-letter-section li a {
    color: #111;
    text-decoration: none;
}

.cshr-letter-section li a:hover,
.cshr-letter-section li a:focus {
    color: #010066;
    text-decoration: underline;
}

.cshr-back-to-az {
    margin-top: 18px;
    margin-bottom: 32px;
    font-size: 14px;
}

.cshr-back-to-az a {
    color: #010066;
    font-weight: 700;
    text-decoration: none;
}

.cshr-back-to-az a:hover,
.cshr-back-to-az a:focus {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cshr-letter-section ul {
        columns: 1;
    }
}

/* Force glossary search button color */
.cshr-glossary-index .cshr-glossary-search .cshr-glossary-search-row button,
.cshr-glossary-index .cshr-glossary-search .cshr-glossary-search-row input[type="submit"],
.cshr-glossary-index .cshr-glossary-search button[type="submit"] {
    background-color: #010066 !important;
    border-color: #010066 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.cshr-glossary-index .cshr-glossary-search .cshr-glossary-search-row button:hover,
.cshr-glossary-index .cshr-glossary-search .cshr-glossary-search-row button:focus,
.cshr-glossary-index .cshr-glossary-search button[type="submit"]:hover,
.cshr-glossary-index .cshr-glossary-search button[type="submit"]:focus {
    background-color: #00004d !important;
    border-color: #00004d !important;
    color: #ffffff !important;
}

/* Glossary search button */
button.cshr-search-submit,
.cshr-search-submit {
    background: #010066 !important;
    background-color: #010066 !important;
    background-image: none !important;
    border: 1px solid #010066 !important;
    color: #ffffff !important;
    min-height: 48px !important;
    padding: 12px 22px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

button.cshr-search-submit:hover,
button.cshr-search-submit:focus,
.cshr-search-submit:hover,
.cshr-search-submit:focus {
    background: #00004d !important;
    background-color: #00004d !important;
    background-image: none !important;
    border-color: #00004d !important;
    color: #ffffff !important;
}

/* ==============================
   Single glossary page refinement
   ============================== */

.cshr-glossary-entry {
    max-width: 880px;
    margin: 0 auto;
}

.cshr-glossary-entry h1 {
    margin-bottom: 18px;
    color: #111;
    letter-spacing: -0.02em;
}

.cshr-glossary-entry section {
    margin-top: 34px;
}

.cshr-glossary-entry section h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #111;
    font-size: 24px;
    line-height: 1.35;
}

.cshr-glossary-entry section p {
    margin-bottom: 0;
    color: #333;
    line-height: 1.9;
}

/* Meaning: primary explanation */
.cshr-meaning-card {
    padding: 26px 28px;
    border-left: 5px solid #010066;
    border-radius: 14px;
    background: #f7f9fb;
    border-top: 1px solid #d3dce5;
    border-right: 1px solid #d3dce5;
    border-bottom: 1px solid #d3dce5;
}

.cshr-meaning-card h2 {
    color: #010066;
}

/* Practical points: neutral card */
.cshr-practical-card {
    padding: 24px 26px;
    border: 1px solid #d3dce5;
    border-radius: 14px;
    background: #fff;
}

/* Japanese-company notes: soft caution card */
.cshr-japanese-notes-card {
    padding: 26px 28px;
    border-left: 5px solid #c28a00;
    border-radius: 14px;
    background: #fff8e6;
    border-top: 1px solid #f1d79a;
    border-right: 1px solid #f1d79a;
    border-bottom: 1px solid #f1d79a;
}

.cshr-japanese-notes-card h2 {
    color: #6f4d00;
}

/* Related terms */
.cshr-related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cshr-related-terms a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #d3dce5;
    border-radius: 999px;
    background: #f7f9fb;
    color: #010066;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cshr-related-terms a:hover,
.cshr-related-terms a:focus {
    border-color: #010066;
    background: #010066;
    color: #fff;
    text-decoration: none;
}

/* Same category terms */
.cshr-same-category-terms {
    margin-top: 48px;
    padding: 26px 28px;
    border: 1px solid #d3dce5;
    border-radius: 16px;
    background: #f7f9fb;
}

.cshr-same-category-terms h2 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #111;
}

.cshr-same-category-terms ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.cshr-same-category-terms li {
    margin: 0;
}

.cshr-same-category-terms a {
    color: #010066;
    font-weight: 700;
    text-decoration: none;
}

.cshr-same-category-terms a:hover,
.cshr-same-category-terms a:focus {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cshr-same-category-terms ul {
        grid-template-columns: 1fr;
    }
}

/* Disclaimer: intentionally subtle */
.cshr-disclaimer {
    margin-top: 56px;
    padding: 20px 22px;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    background: #fafafa;
}

.cshr-disclaimer h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #555;
    font-size: 18px;
}

.cshr-disclaimer p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* Tooltip term appearance */
.cshr-tooltip-term {
    border-bottom: 1px dotted #010066 !important;
    color: inherit !important;
    text-decoration: none !important;
    cursor: help !important;
}

.cshr-tooltip-term:hover,
.cshr-tooltip-term:focus {
    color: #010066 !important;
}