.ch-header, .ch-header * {
    box-sizing: border-box;
}
.ch-header {
    position: relative;
    z-index: 1000;
    background: #20538f;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    font-family: inherit;
}
.ch-header a {
    color: inherit;
    text-decoration: none;
}
.ch-header button, .ch-header input {
    font: inherit;
}
.ch-header button, .ch-header summary, .ch-mobile-toggle {
    cursor: pointer;
}
.ch-header a:focus-visible, .ch-header button:focus-visible, .ch-header summary:focus-visible, .ch-header input:focus-visible {
    outline: 3px solid #ffda75;
    outline-offset: 3px;
}
.ch-header a:hover {
    text-decoration: underline;
}
.ch-shell {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
.ch-top {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}
.ch-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: auto;
    min-width: 0;
}
.ch-brand {
    display: inline-flex;
    flex-shrink: 0;
}
.ch-language {
    flex: 0 0 auto;
    font-size: 14px;
    white-space: nowrap;
}
.ch-tagline {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    white-space: nowrap;
}
.ch-brand img {
    width: 180px;
    height: auto;
    max-width: 100%;
}
.ch-utilities, .ch-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ch-utilities {
    gap: 12px;
    font-size: 14px;
}
.ch-search-item {
    min-width: 0;
}
.ch-site-search {
    display: flex;
    width: 200px;
    max-width: 100%;
    margin: 0;
}
.ch-header input {
    min-width: 0;
    width: 100%;
    border: 1px solid #c2d0df;
    border-radius: 4px 0 0 4px;
    background: #fff;
    color: #24364a;
    padding: 8px 10px;
    line-height: 1.5;
}
.ch-header button {
    border: 1px solid #c2d0df;
    border-radius: 0 4px 4px 0;
    background: #eaf1f8;
    color: #163861;
    padding: 8px 12px;
    white-space: nowrap;
    line-height: 1.5;
}
.ch-header button:hover {
    background: #d8e6f4;
}
.ch-nav {
    background: #fff;
    color: #20538f;
    border-top: 1px solid #d7e0eb;
    border-bottom: 1px solid #d7e0eb;
}
.ch-nav .ch-menu>summary:hover, .ch-nav .ch-menu[open]>summary {
    background: #eaf1f8;
}
.ch-nav summary:focus-visible {
    outline-color: #20538f;
}
.ch-list {
    justify-content: space-between;
}
.ch-item {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ch-menu>summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    list-style: none;
    white-space: nowrap;
}
.ch-menu>summary::-webkit-details-marker, .ch-makers>summary::-webkit-details-marker {
    display: none;
}
.ch-menu>summary:after, .ch-makers>summary:after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    flex-shrink: 0;
}
.ch-menu[open]>summary:after, .ch-makers[open]>summary:after {
    transform: rotate(225deg);
}
.ch-menu>summary:hover, .ch-menu[open]>summary {
    background: #163861;
}
.ch-panel {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    color: #24364a;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #5089cc;
    box-shadow: 0 10px 22px #0d2c4e26;
    padding: 24px max(24px,calc((100% - 1160px)/2));
    max-height: 75vh;
    overflow: auto;
    line-height: 1.6;
}
.ch-grid {
    display: grid;
    gap: 24px;
}
.ch-grid-four {
    grid-template-columns: repeat(4,minmax(0,1fr));
}
.ch-grid-three {
    grid-template-columns: repeat(3,minmax(0,1fr));
}
.ch-group h3 {
    font-size: 16px;
    line-height: 1.6;
    color: #20538f;
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #d7e0eb;
    font-weight: 700;
}
.ch-panel a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}
.ch-panel a:hover {
    background: #edf3fa;
    color: #163861;
}
.ch-panel small {
    display: block;
    color: #586b7d;
    font-size: 12px;
    margin-top: 2px;
}
.ch-panel-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #d7e0eb;
    margin-top: 20px;
    padding-top: 12px;
    font-weight: 700;
    color: #20538f;
}
.ch-compact {
    position: relative;
}
.ch-compact .ch-panel {
    left: 0;
    right: auto;
    min-width: 260px;
    padding: 12px;
    font-size: 15px;
}
.ch-utilities .ch-menu>summary {
    font-size: 14px;
    font-weight: 400;
    padding: 8px;
}
.ch-utilities .ch-panel {
    left: auto;
    right: 0;
}
.ch-contact .ch-panel {
    left: auto;
    right: 0;
    min-width: 290px;
}
.ch-contact .ch-menu>summary {
    background: #20538f;
    color: #fff;
    margin: 5px 0 5px 10px;
    padding: 8px 16px;
}
.ch-contact .ch-menu>summary:hover, .ch-contact .ch-menu[open]>summary {
    background: #163861;
}
.ch-cpu-search {
    max-width: 560px;
    margin-top: 20px;
}
.ch-cpu-search label {
    display: block;
    color: #20538f;
    font-weight: 700;
    margin: 0 0 8px;
}
.ch-search-row {
    display: flex;
}
.ch-makers>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #20538f;
    font-weight: 700;
    list-style: none;
    padding: 8px 0;
    border-bottom: 1px solid #d7e0eb;
}
.ch-cpu-grid {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.ch-cpu-grid .ch-group>h3 {
    margin-bottom: 4px;
    padding-bottom: 4px;
}
.ch-cpu-grid .ch-group>a {
    padding: 5px 8px;
    font-size: 14px;
}
.ch-maker-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 12px;
    padding-top: 12px;
}
.ch-maker-list a {
    padding: 5px 8px;
    font-size: 14px;
    line-height: 1.5;
}
.ch-cpu-sidebar {
    display: grid;
    gap: 20px;
    padding-right: 24px;
    border-right: 1px solid #d7e0eb;
}
.ch-cpu-sidebar .ch-cpu-search {
    margin: 0;
}
.ch-cpu-sidebar .ch-search-row input {
    padding: 8px;
    font-size: 14px;
}
.ch-cpu-sidebar .ch-search-row button {
    padding: 8px 10px;
    font-size: 14px;
}
.ch-cpu-sidebar .ch-group>h3 {
    font-size: 15px;
}
@media(min-width:992px) {
    .ch-cpu-sidebar a, .ch-cpu-sidebar label, .ch-cpu-sidebar h3 {
        white-space: nowrap;
        overflow-wrap: normal;
    }
    .ch-cpu-panel {
        left: 50%;
        right: auto;
        width: calc(100% - 48px);
        max-width: 1120px;
        max-height: calc(100vh - 140px);
        padding: 24px;
        border-radius: 0 0 8px 8px;
        transform: translateX(-50%);
    }
}
@media(min-width:992px) and (max-width:1100px) {
    .ch-maker-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media(max-width:991px) {
    .ch-cpu-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .ch-maker-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ch-cpu-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
        border-right: 0;
    }
    .ch-cpu-sidebar .ch-cpu-search {
        grid-column: 1 / -1;
    }
}
@media(max-width:575px) {
    .ch-maker-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
    }
    .ch-maker-list a {
        font-size: 13px;
    }
    .ch-cpu-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}
.ch-mobile-state, .ch-mobile-toggle, .ch-mobile-close {
    display: none;
}
@media(max-width:1100px) and (min-width:768px) {
    .ch-menu>summary {
        font-size: 14px;
        padding: 13px 7px;
        gap: 5px;
    }
    .ch-shell {
        padding: 0 16px;
    }
}
/* タブレットでは文字と余白を調整し、メニューを1行で表示する。 */
@media(min-width:768px) and (max-width:1100px) {
    .ch-top {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .ch-identity {
        gap: 12px;
    }
    .ch-brand img {
        width: 160px;
    }
    .ch-tagline {
        font-size: 12px;
    }
    .ch-utilities {
        flex-wrap: nowrap;
        flex-shrink: 0;
        gap: 8px;
        margin-left: auto;
        font-size: 13px;
        white-space: nowrap;
    }
    .ch-utilities .ch-menu>summary {
        padding: 6px;
        font-size: 13px;
    }
    .ch-site-search {
        width: 180px;
        font-size: 14px;
    }
    .ch-nav .ch-shell {
        padding: 0 12px;
    }
    .ch-list {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0;
    }
    .ch-nav .ch-menu>summary {
        padding: 12px 3px;
        gap: 4px;
        font-size: clamp(13px, 1.45vw, 14px);
    }
    .ch-nav .ch-menu>summary:after {
        width: 6px;
        height: 6px;
        margin-left: 1px;
    }
    .ch-nav .ch-contact .ch-menu>summary {
        margin: 4px 0 4px 4px;
        padding: 8px 8px;
    }
}
@media(min-width:768px) and (max-width:991px) {
    .ch-identity {
        flex-shrink: 0;
        gap: 10px;
    }
    .ch-brand img {
        width: 150px;
    }
    .ch-tagline {
        font-size: 11px;
    }
    .ch-utilities {
        gap: 6px;
    }
    .ch-site-search {
        width: 160px;
    }
    .ch-site-search input {
        padding: 8px;
    }
    .ch-site-search button {
        padding: 8px;
    }
    .ch-grid-four, .ch-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}
/* スマートフォンでは補助メニューも主メニューとまとめて開閉する。 */
@media(width < 768px) {
    .ch-shell {
        padding: 0 16px;
    }
    .ch-top {
        flex-wrap: wrap;
        gap: 12px 6px;
        padding: 12px 0;
    }
    .ch-language {
        display: inline-flex;
        align-items: center;
        order: 1;
        min-height: 44px;
        font-size: 12px;
    }
    .ch-identity {
        flex: 1;
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .ch-brand img {
        width: 150px;
    }
    .ch-tagline {
        font-size: 11px;
    }
    /* 非表示にしても、TabキーとSpaceキーで操作できるチェックボックス。 */
    .ch-header .ch-mobile-state {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    .ch-mobile-toggle {
        display: block;
        order: 2;
        min-height: 44px;
        margin: 0;
        padding: 8px 6px;
        font-size: 14px;
        border: 1px solid #c2d0df;
        border-radius: 4px;
        background: transparent;
        color: #fff;
        line-height: 1.5;
        white-space: nowrap;
    }
    #ch-navigation-toggle:focus-visible ~ .ch-shell .ch-mobile-toggle {
        outline: 3px solid #ffda75;
        outline-offset: 3px;
    }
    #ch-navigation-toggle:checked ~ .ch-shell .ch-mobile-open {
        display: none;
    }
    #ch-navigation-toggle:checked ~ .ch-shell .ch-mobile-close {
        display: inline;
    }
    .ch-utilities {
        display: none;
        order: 3;
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 6px;
        font-size: 12px;
        white-space: nowrap;
    }
    .ch-utilities>li:not(.ch-search-item) {
        flex: 0 0 auto;
    }
    .ch-search-item {
        flex: 1 1 120px;
    }
    .ch-site-search {
        width: 100%;
        max-width: 160px;
        margin-left: auto;
    }
    .ch-site-search input {
        padding: 6px;
    }
    .ch-site-search input::placeholder {
        font-size: 13px;
    }
    .ch-site-search button {
        padding: 6px;
        font-size: 12px;
    }
    .ch-utilities .ch-menu>summary {
        padding: 6px 2px;
        gap: 4px;
        font-size: 12px;
    }
    .ch-utilities .ch-menu>summary:after {
        width: 6px;
        height: 6px;
        margin-left: 1px;
    }
    .ch-nav {
        display: none;
        padding-bottom: 10px;
    }
    #ch-navigation-toggle:checked ~ .ch-nav {
        display: block;
    }
    #ch-navigation-toggle:checked ~ .ch-shell .ch-utilities {
        display: flex;
    }
    .ch-list {
        display: block;
    }
    .ch-item {
        border-bottom: 1px solid #d7e0eb;
    }
    .ch-menu>summary {
        white-space: normal;
        justify-content: space-between;
        padding: 13px 8px;
    }
    .ch-panel, .ch-compact .ch-panel {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: none;
        padding: 16px;
        box-shadow: none;
        border-radius: 4px;
        font-size: 15px;
    }
    .ch-utilities .ch-item {
        border: 0;
    }
    .ch-utilities .ch-panel {
        position: absolute;
        left: auto;
        right: 0;
        min-width: 200px;
        width: max-content;
        max-width: calc(100vw - 32px);
    }
    .ch-grid-four, .ch-grid-three {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px;
    }
    .ch-contact .ch-menu>summary {
        margin: 10px 0;
    }
    .ch-cpu-search {
        max-width: none;
    }
}
@media(max-width:575px) {
    .ch-grid-four, .ch-grid-three {
        grid-template-columns: minmax(0,1fr);
    }
    .ch-utilities {
        font-size: 12px;
    }
    .ch-utilities .ch-menu>summary {
        font-size: 12px;
    }
    .ch-panel-footer {
        display: block;
    }
    .ch-header input {
        font-size: 16px;
    }
}

@media(max-width:359px) {
    .ch-brand img {
        width: 140px;
    }
}
