@charset "UTF-8";

.stock-index {
    padding: 40px 20px 48px;
    border-block: 1px solid #e0e3e3;
    background: #fff;
    text-align: left;
    color: #23394b;
}
.stock-inner { max-width: 960px; margin: 0 auto; }
.stock-index h2 { font-size: 30px; line-height: 1.3; color: #173958; }
.stock-intro { margin: 7px 0 22px; color: #53616d; line-height: 1.65; }
.stock-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stock-group {
    --stock-ink: #174069;
    --stock-accent: #f1d576;
    border: 1px solid #cbd2d6;
    background: #fff;
}
.stock-tools { --stock-ink: #42564a; --stock-accent: #bdd2b5; }
.stock-group h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding-inline: 18px;
    color: white;
    background: var(--stock-ink);
    font-size: 21px;
    letter-spacing: .04em;
}
.stock-group h3::before { content: ""; width: 5px; height: 19px; background: var(--stock-accent); }
.stock-group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 2px 14px 12px;
    column-gap: 14px;
    list-style: none;
}
.stock-group li { display: flex; border-bottom: 1px solid #dce1e3; }
.stock-group a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 6px;
    min-height: 47px;
    padding: 3px 4px;
    color: var(--stock-ink);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.55;
    text-decoration: none;
}
.stock-group a::after { content: "›"; font: 18px/1 Arial,sans-serif; color: var(--stock-ink); }
.stock-group a:hover { text-decoration: underline; text-underline-offset: 3px; background: #f3f5f4; }
@media (min-width: 641px) and (max-width: 760px) {
    .stock-directory { gap: 14px; }
    .stock-group ul { padding-inline: 10px; gap: 0 8px; }
}
.stock-group a:focus-visible, .stock-category summary:focus-visible {
    outline: 3px solid #1265a9;
    outline-offset: 2px;
}
.stock-category { border-bottom: 1px solid #c4d1dd; scroll-margin-top: 12px; }
.stock-category:first-child { border-top: 2px solid #14437b; }
.stock-category summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    background: #edf2f5;
    color: #213f58;
    font-size: 16px;
    font-weight: bold;
    list-style: none;
    cursor: pointer;
}
.stock-category summary::-webkit-details-marker { display: none; }
.stock-category summary::after {
    content: "";
    flex: 0 0 7px;
    height: 7px;
    margin-right: 3px;
    border-right: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(45deg);
}
.stock-category[open] > summary { background: #14437b; color: #fff; }
.stock-category[open] > summary::after { transform: rotate(225deg); }
.stock-category summary:hover { text-decoration: underline; }
.stock-content { padding: 18px 20px 24px; line-height: 1.65; }
.stock-content h3 { color: #14437b; font-size: 15px; margin: 16px 0 6px; }
.stock-content h3:first-child { margin-top: 0; }
.stock-content table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.stock-content th, .stock-content td {
    padding: 7px 12px;
    border-bottom: 1px solid #d7e1e8;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.stock-content th[scope="row"] { font-weight: 500; }
.stock-content thead { color: #344d62; background: #e8eff4; }
.stock-content tbody tr:nth-child(even) { background: #f6f8fa; }
.stock-items { margin: 0; padding: 0; list-style: none; }
.stock-items li { padding: 6px 12px; border-bottom: 1px solid #d7e1e8; }
.stock-items li:nth-child(even) { background: #f6f8fa; }

/* The three inventory pages also use the site's shared fixed-width header and footer. */
@media (max-width: 999px) {
    body, header, nav, footer, #hometop, #images, #home1, #home2,
    #footer-inquiry, #footer-nav, #title, #layout { min-width: 0; }
    img { max-width: 100%; height: auto; }
    #header, #header ul, nav ul, footer ul, #footer-inquiry ul,
    #footer-nav table, #hometop p, .home1, .home2, #title p,
    .layout, h2.title, #product-nav ul { box-sizing: border-box; width: 100%; }
    #header { padding: 5px 15px; }
    #header ul { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    #header li { min-width: 0; }
    #header li:nth-child(2) { display: flex; max-width: 65%; align-items: center; }
    #header li:nth-child(2) a { min-width: 0; padding-left: 4px; }
    nav ul { display: flex; justify-content: center; }
    nav li { min-width: 0; }
    nav li a { display: flex; align-items: center; min-height: 40px; }
    #hometop { height: auto; }
    #hometop p { padding: clamp(36px,9vw,90px) 5%; }
    #hometop img { max-width: 85%; }
    #images::before {
        content: ""; width: 100%; height: auto; padding: 0; aspect-ratio: 960 / 136;
        background: url(../images/images.jpg) center / contain no-repeat;
    }
    .home1, .home2 { flex-wrap: wrap; }
    #information, #news { box-sizing: border-box; width: 50%; padding-inline: 18px; }
    #news li { padding: 7px 0; }
    #news li a, #news .date { float: none; width: auto; }
    .home2 { justify-content: center; }
    #products, #maker, #customer { box-sizing: border-box; max-width: 100%; padding: 0 12px; }
    #title p { padding-inline: 15px; }
    .layout { padding: 16px; overflow: visible; }
    #product-nav { padding: 12px 0; }
    #product-nav ul { display: flex; gap: 8px; }
    #product-nav li { flex: 1; }
    h2.title { padding: 20px 16px 6px; }
    .art { padding: 10px 0 20px; }
    #footer-inquiry { padding: 24px 0; }
    #footer-inquiry ul { padding-inline: 12px; }
    #footer-nav table { padding: 0 12px; }
    #footer-nav td { padding: 0 8px; }
    footer ul { padding: 0 14px; }
}
@media (max-width: 640px) {
    .stock-index { padding: 26px 14px 32px; }
    .stock-index h2 { font-size: 25px; }
    .stock-intro { margin-bottom: 16px; }
    .stock-directory { grid-template-columns: 1fr; gap: 18px; }
    .stock-group h3 { min-height: 45px; padding-inline: 14px; font-size: 19px; }
    .stock-group ul { padding-inline: 10px; column-gap: 10px; }
    .stock-category summary { padding: 14px 12px; }
    .stock-content { padding: 10px 0 16px; }
    .stock-content th, .stock-content td { padding: 6px 8px; }
    #header h1 { font-size: 10px; }
    #header ul { flex-wrap: wrap; justify-content: center; }
    #header li:first-child img { max-height: 36px; }
    #header li:nth-child(2) { max-width: 100%; }
    #header li:nth-child(2) a { display: block; max-width: 50%; }
    nav ul { flex-wrap: wrap; }
    nav li { max-width: 34%; }
    nav li a { padding: 0 4px; }
    #information, #news { width: 100%; }
    .information { overflow-wrap: anywhere; }
    #products, #maker { width: 50%; }
    #products p, #maker p { padding-inline: 0; }
    #customer { width: 100%; padding-top: 14px; }
    #footer-inquiry li, footer li { display: block; text-align: center !important; }
    #footer-inquiry ul, footer ul { display: block; }
    #footer-nav { padding: 24px 0; }
    #footer-nav tr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 5px; }
    #footer-nav td { display: block; width: auto; }
    footer li { padding: 8px 0; }
}
