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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color:#222;
}

a {
    color: #426599;
    transition: color 0.3s ease;
}

a:hover {
    color: #668ABE;
}

button {
    font-family: "Noto sans JP",sans-serif;
}

#news h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    padding: 0;
}

#news h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    padding: 0;
}

#news h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
    padding: 0;
}

#news h4 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 16px;
    padding: 0;
}


nav {
    height: 96px;/* 変更 */
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    border-bottom: 1px solid #bfbfbf;
    z-index: 1000;
}

.container {
    max-width: 1064px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    width: 160px;
    height: 24px;
}

.logo-and-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

.menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    flex-grow: 1
}

.menu-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.first-row a {
    font-size: 12px;
    padding: 16px 8px 10px 8px;
}

.second-row a {
    font-size: 14px;
    font-weight: bold;
    padding: 15px 4px 10px 4px;
}

.menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 48px;
}

.menu ul a{
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 48px;
}

.menu li {
    margin: 0px 8px;
}

.menu li img {
    margin-left: 4px;
    width: 14px;
    height: auto;
}

.menu a {
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
}

.menu a:hover, .menu a:focus {
    text-decoration: underline;
    color: #bfbfbf;
    outline: none;
}

/* 以下追加 */
.header-search-box form{
    align-items: center;
    width: 175px;
    height: 23px;
    display: flex;
    margin: 0.8rem 0;
}

.header-search-box input {
    padding: 0.5rem 1rem;
    margin: 0;
    width: 148px;
    height: 24px;
    margin-top: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border: 1px solid #E9E9E9;
    font-size: 0.7rem;
}

.header-search-box button {
    width: 27px;
    height: 23px;
    background-color: #426599;
    border: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.header-search-box button img{
    width: 11.5px;
    height: 10.4;
    padding: 0;
}

.menu-row .second-row li {
    display: inline-block;
    position: relative;
}

.megaMenu {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.megaMenu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.menu .child_menu {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 2rem 0rem;
    background: #E6EDF5;
    display: grid;
    justify-content: center;
}

.menu .title {
    font-weight: 700;
    font-size: 20px;
}

.menu .search-category-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.menu .second-row a.triangle {
    position: relative;
}

.menu .second-row a.triangle::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 99;
    transition: opacity 0.2s ease;
}

.menu .second-row a.triangle:hover::after {
    opacity: 1;
}

.menu .product-search-first-row {
    display: flex;
    gap: 3rem;
}

.menu .product-search-second-row {
    margin-top: 1rem;
}

.menu .child_menu .search-methods{
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-decoration:underline;
}

.menu .child_menu .search-methods a {
    color: #426599;
    font-weight: 400;
    width: 100%;
    padding: 0 1rem 0.5rem;
    height: auto;
}

.search-box input {
    padding: 0.5rem 1rem;
    margin: 0;
    width: 306px;
    height: 47px;
    margin-top: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border: 1px solid #E9E9E9;
}

.search-box button {
    width: 55.3px;
    height: 47px;
    background-color: #426599;
    border: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.menu .search-box img {
    width: 20px;
}

.menu .search-category a {
    color: #426599;
    margin-right: 3rem;
    font-weight: 400;
    font-size: 14px;
    text-decoration:underline;
    display: inline-block;
}

.menu .catalog-box-wrapper ,
.menu .showroom-box-wrapper ,
.menu .useful-info-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2rem;
}

.menu .useful-info-wrapper {
    grid-template-columns: repeat(4, 1fr);
}

.menu .useful-info-wrapper .bottom-row-wrap {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: auto;
}

.menu .catalog-box-wrapper a ,
.menu .showroom-box-wrapper a ,
.menu .useful-info-wrapper a ,
.menu .bottom-row-wrap a {
    width: 100%;
    height: auto;
    padding: 0 0 0.1rem;
    margin-top: 0;
    font-weight: 400;
    color: #426599;
    background-color: #fff;
    text-align: center;
    text-decoration: underline;
}

.menu .catalog-box-wrapper img ,
.menu .showroom-box-wrapper img ,
.menu .useful-info-wrapper img ,
.menu .bottom-row-wrap img {
    display: block;
    margin: 0;
    width: 211px;
    height: 128px;
}

.custom-button {
    width: 131px;
    height: 30px;
    background-color: #426599;
    color: #fff;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
    padding: 0;
    margin-top: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-button:hover {
    background-color: #668ABE;
}

/* ▼トップへ戻る▼ */
#backToTop {
    position: fixed;
    right: 80px;
    bottom: 80px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

#backToTop img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}
/* ▲トップへ戻る▲ */

main {
    width: 100%;
    margin: 0 auto;
}

/* ぱんくず */
.pankuzu {
    width: 100%;
}

.pankuzu ul {
    display: flex;
    list-style: none;
    margin-bottom: 2rem;
}

.pankuzu li {
    margin-right: 0.5rem;
    font-size: 12px;
}

/* ▼ニュース▼ */
main #news {
    width: 100%;
    max-width: 1064px;
    margin: 8rem auto 0;
    padding: 0px 20px!important;
}

#news-title {
    margin: 0 auto 32px auto;
}

.newslist {
    margin-bottom: 40px;
    max-width: 1024px;
}

.newslist-year {
    font-size: 24px;
    font-weight: bold;
    padding: 0;
    border-bottom: 1px solid #222;
}

.newslist-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 24px;
}

.newslist_item-date {
    display: inline-block;
    font-size: 16px;
    vertical-align: top;
    margin-right: 56px;
    padding: 0;
}

.newslist_item {
    display: inline-block;
    font-size: 16px;
    padding: 0;
}

#news a.button03 {
    font-family: "Noto sans JP",sans-serif;
    background-color: #fff;
    border: 2px solid #222;    
    border-radius: 8px;
    font-size: 16px;
    color: #222;
    width: 176px;
    height: 56px;
    text-decoration: none;
    padding: 0;
    margin: 3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

#news .button03:hover {
    color: #868686;
    border: 2px solid #868686;
}

.button03:focus {
    outline: none;
}

.button-container {
    text-align: center;
}

/* ▲ニュース▲ */
@media screen and (max-width: 1024px) {
    .hamburger {
    display: none;
    }
    .menu {
        display: flex;
    }
}
@media screen and (max-width: 1024px) {
    main {
        margin: 5rem auto 0;
    }

    /* ぱんくずリスト */
    .pankuzu {
        width: 100%;
        display: block;
    }

    .pankuzu ul {
        display: inline;
        white-space: wrap;
        list-style: none;
        margin: auto 0;
    }

    .pankuzu li {
        margin-right: 0.5rem;
        font-size: 12px;
        display: inline;
    }

    /* ▼トップへ戻る▼ */
    #backToTop {
        position: fixed;
        right: 24px;
        bottom: 24px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }
    
    #backToTop img {
        width: 48px;
        height: 48px;
        pointer-events: none;
    }
    /* ▲トップへ戻る▲ */

    /* ▼ニュース▼ */
    main #news {
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }

    main #news h1 {
        width: 100%;
        margin: 22px 0 28px;
        font-size: 16px;
    }

    main #news h2 {
        width: 100%;
        margin: 22px 0 28px;
        font-size: 16px;
        color: #4D4D4D;
    }

    main #news-title {
        width: 100%;
        padding: 0;
    }
    
    #news-title {
        width: 100%;
        padding: 0 24px 32px 24px;
    }
    
    .newslist {
        margin-bottom: 32px;
    }
    
    .newslist-year {
        font-size: 24px;
        font-weight: bold;
        padding: 0;
        border-bottom: 1px solid #222;
    }
    
    .newslist-container {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-bottom: 24px;
    }
    
    .newslist_item-date {
        display: inline-block;
        font-size: 16px;
        vertical-align: top;
        margin-right: 24px;
        padding: 0;
    }
    
    .newslist_item {
        display: inline-block;
        font-size: 16px;
        padding: 0;
    }
    
    .button03 {
        text-align: center;
        width: 176px;
        height: 38px;
        background-color: #fff;
        color: #222;
        font-size: 16px;
        border: 2px solid #222;
        border-radius: 8px;
        cursor: pointer;
        line-height: 38px;
        padding: 0;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .button03:hover {
        color: #868686;
        border: 2px solid #868686;
    }
    
    .button03:focus {
        outline: none;
    }
    
    .button-container {
        text-align: center;
    }
    /* ▲ニュース▲ */

#news .button03 {
    font-family: "Noto sans JP",sans-serif;
    font-size: 16px;
    color: #222;
    line-height: 56px;
    width: 176px;
    text-decoration: none;
    background-color: #fff;
    border: 2px solid #222;    
    border-radius: 8px;
    padding: 0;
    margin: 3rem auto;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

#news .button03:hover {
    color: #868686;
    border: 2px solid #868686;
}

.button03:focus {
    outline: none;
}

.button-container {
    text-align: center;
}
}