@charset "utf-8";

/* =========================================================================================
LAYOUT
=========================================================================================*/
.entry-content {
    position: relative;
}
.entry-content section:nth-of-type(1) /*ページの一番最初のsection*/ {
    padding-top:clamp(1.563rem, calc(-0.515rem + 7.102vw), 3.125rem);/* vp:468-820px 25-50px */
}
.entry-content section:nth-last-of-type(1) /*ページの一番最最後のsection*/ {
    padding-bottom:clamp(4.688rem, calc(-1.545rem + 21.307vw), 9.375rem);/* vp:468-820px 75-150px */
}

@media only screen and (max-width: 820px) {
}
@media only screen and (max-width: 468px) {
}

/* =========================================================================================
PAGE HEADER
=========================================================================================*/
.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-block:2em 1.5em;
    position: relative;
    z-index: 1;

    & h1 { width:min(526.5px, 52.65vw);/* vp:1000px 526.5px */}
    & .abs {
        position:absolute;
        inset:0 0 auto auto;
        width:min(338.5px, 33.85vw);/* vp:1000px 338.5px */
    }
}
@media only screen and (max-width: 820px) {
    .page-header {

        & h1 { width:max(200px, 45vw);}
        & .abs { width:max(175px, 48.7804vw);}
    }
}
@media only screen and (max-width: 468px) {
}

/* =========================================================================================
COMPANY
=========================================================================================*/
/* -----------
greeting
------------*/
body.company .greeting .flex-box {
    display: flex;
    flex-wrap: nowrap;
    gap: 50px;
}
body.company .greeting .flex-box .photo {
    text-align: center;
    max-width: 300px;
    min-width: 200px;
}
body.company .greeting .flex-box .message {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
body.company .greeting .flex-box .message .signature {
    margin-top: 1em;
}
body.company .greeting .flex-box .message .post {
    text-align: right;
}
body.company .greeting .flex-box .message .name {
    text-align: right;
    font-size: 1.5em;
}

@media only screen and (max-width: 820px) {
    body.company .greeting .flex-box {
        flex-wrap: wrap;
        justify-content: center;
    }
    body.company .greeting .flex-box .item {
        width: 100% !important;
    }
}
@media only screen and (max-width: 468px) {
}

/* -----------
overview
------------*/
body.company .overview table {
    width: 100%;
    max-width: 900px;
    margin: auto;
    border-spacing: 0;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}
body.company .overview th,
body.company .overview td {
    text-align: left;
    padding: 1em;
    border-bottom: 1px solid #ccc;
}
body.company .overview th {
    background: #ddd;
    width: 200px;
}
body.company .overview .file-list li + li {
    margin-top: 0.5em;
}
body.company .overview .file-list li a[target="_blank"] {
    padding-right: 1.5em;
    background: url(../images/common/icon_file.svg) no-repeat right;
    background-size: 1em;
}
@media only screen and (max-width: 820px) {
    body.company .overview th,
    body.company .overview td {
        display: block;
    }
    body.company .overview th {
        width: 100%;
    }
}
@media only screen and (max-width: 468px) {
}

/* -----------
access
------------*/
body.company .access .flex-box {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: space-around;
}
body.company .access .flex-box + .flex-box {
    margin-top: 100px;
}
body.company .access .flex-box .map {
    width: calc(100% - 400px);
}
body.company .access .flex-box .map iframe {
    width: 100% !important;
    max-height: 400px !important;
}

@media only screen and (max-width: 820px) {
    body.company .access .flex-box {
        flex-direction: column-reverse;
        gap: 10px;
    }
    body.company .access .flex-box .item {
        width: 100% !important;
    }
    body.company .access .flex-box .map iframe {
        max-height: 300px !important;
    }
}
@media only screen and (max-width: 468px) {
}

/* -----------
history
------------*/
body.company .history .history-block {
    padding-left: 75px;
    width: 100%;
    max-width: 900px;
    margin: auto;
    position: relative;
}
body.company .history .history-block::before {
    content: "";
    width: 3px;
    height: 100%;
    background: #ccc;
    position: absolute;
    top: 20px;
    left: 24px;
}
body.company .history .history-block dl {
    display: flex;
    justify-content: left;
    gap: 30px;
    align-items: start;
}
body.company .history .history-block dl + dl {
    margin-top: 50px;
}
body.company .history .history-block dt {
    font-size: clamp(1.625rem, calc(1.098rem + 2.247vw), 2.25rem); /* min: 26px, max: 36px */
    font-weight: var(--weight-black);
    line-height: 1;
    white-space: nowrap;
    position: relative;
}
body.company .history .history-block dt::before {
    content: "";
    width: 18px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #ccc;
    position: absolute;
    top: 0.375em;
    left: -58px;
}

@media only screen and (max-width: 820px) {
    body.company .history .history-block {
        padding-left: 60px;
    }
    body.company .history .history-block dl {
        flex-direction: column;
        gap: 15px;
    }
    body.company .history .history-block dt::before {
        top: 0.3em;
        left: -43px;
    }
}
@media only screen and (max-width: 468px) {
    body.company .history .history-block {
        padding-left: 26px;
    }
    body.company .history .history-block::before {
        left: 5px;
    }
    body.company .history .history-block dt::before {
        top: 0.25em;
        left: -28px;
    }
}

/* =========================================================================================
CONTACT
=========================================================================================*/
body.contact #main .inner {
    max-width: var(--contents-width-small);
}
@media only screen and (max-width: 820px) {
}
@media only screen and (max-width: 468px) {
}



/* =========================================================================================
Search
=========================================================================================*/
/* -----------
search-area
------------*/
body.search .search-area {
    padding-bottom: 0;
    margin-block: 0;
}
body.search .search-area .inner {
    padding-block: 2em;
    background: var(--color-gray);
}
body.search .search-area form {
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 30px;
    align-items: center;
    width: 90%;
    margin: auto;
}
body.search .search-area input[type="text"] {
    background-color: #fff;
    transition: 0.5s;
}
body.search .search-area input[type="submit"] {
    color: #fff;
    text-indent: -9999px;
    width: 60px;
    min-width: auto;
    aspect-ratio: 1 / 1;
    background: var(--color-main) url(../images/common/icon_search.svg) no-repeat center;
    background-size: 40%;
    border-radius: 50%;
    padding: 0;
    margin: 0;
}
body.search .search-area input[type="submit"]:hover {
    opacity: 0.8;
    transition: 0.3s;
}
@media only screen and (max-width: 820px) {
}
@media only screen and (max-width: 468px) {
}

/* -----------
result-area
------------*/
body.search .result-area .search-count {
    color: var(--color-base-font);
    font-size: 1.5rem;
    text-align: center;
    display: block;
    margin-bottom: 1em;
}
body.search .result-area .post-list {
    margin-bottom: 50px;
}
@media only screen and (max-width: 820px) {
}
@media only screen and (max-width: 468px) {
}

/* =========================================================================================
404
=========================================================================================*/
body.error404 .entry-header {
    text-align: center;
    padding: 40px 20px;
    margin: 0;
}
body.error404 .error-message {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}
body.error404 .error-message p img {
    max-width:min(300px, 60vw);
    margin: 0 auto 50px;
}
@media only screen and (max-width: 820px) {
}
@media only screen and (max-width: 468px) {
}

/* =========================================================================================
********
=========================================================================================*/
@media only screen and (max-width: 820px) {
}
@media only screen and (max-width: 468px) {
}


/* =========================================================================================
Other
=========================================================================================*/
/* ===== .vendorForm ===== */
body:not(.home) {

    & .vendorForm {
        display:grid;
        grid-template:
            "count btn" auto
            "form form" auto
            "head head" 1fr / 1fr auto;
    }
    & .vendorForm_head { display:contents;}
    & .vendorForm_totalCount { grid-area:count;}
    & .vendorForm_toggelButton { grid-area:btn;}
    & .vendorForm_heading { grid-area:head;}
    & .vendorForm_wrap { grid-area:form;}

    & .vendorForm_totalCount {
        align-self:center;
        color:var(--color-main);
        font-size:clamp(1.125rem, calc(0.959rem + 0.568vw), 1.25rem);/* vp:468-820px 18-20px */
        font-weight:var(--weight-bold);
        
        & strong { font-size:1.4em;}
    }
    & .vendorForm_heading { margin-top:40px;}
    & .vendorForm:has(.vendorForm_toggleButton.active) .vendorForm_wrap > div {
        border-top:solid 1px var(--color-main);
    }
}
