
#company {
    padding: 13em 0 8em;
    background: #eee;
}
.company-hero-content {
    display: grid;
    grid-template-columns: 3fr 2.5fr;
    gap: 30px;
    align-items: center;
    padding: 70px 0 0;
}
.company-hero-title {
    font-weight: 600;
    margin-bottom: 40px;
}
.company-hero-description {
    text-align: center;
    margin-top: 50px;
}
.company-hero-description h2 {
    margin: 50px 0;
    line-height: 35px;
}


.business-category {
    font-weight: 700;
    font-size: 24px;
    margin: 30px 0 10px;
}
.business-line {
    width: 50px;
    height: 5px;
    background-color: #004EA2;
    margin-bottom: 30px;
    border-radius: 3px;
}



/* 社長メッセージ */
.about-message {
    background: #f5f5f5;
    padding: 90px 0 70px;
}
.about-message h3 {
    font-size: 20px;
    margin: 40px 0;
    line-height: 30px;
}
.message-grid {
    display: grid;
    /* grid-template-columns: 469px 1fr; */
    gap: 40px;
    align-items: start;
    margin: 50px 0 40px;
}
.message-photo img {
    width: 100%;
    max-width: 100%;
}
.message-body {
    line-height: 40px;
    font-size: 18px;
    text-align: justify;
}
.message-body p {
    line-height: 40px;
}
.message-sign {
    margin-top: 60px;
    text-align: right;
}
.message-role {
    color: #707070;
    font-size: 14px;
}
.message-name {
    font-size: 24px;
}
.message-name span {
	display: inline-block;
	margin: 0px 20px;
	font-size: 15px;
}


/* 会社情報 */
#companyinfo {
    padding: 7em 0 1em;
}
.about-companyinfo {
    padding: 80px 0;
}
.company-table {
	max-width: 1050px;
	margin: 80px auto 0;
    padding: 70px 0;
}
.company-table .row {
	display: grid;
	grid-template-columns: 300px 1fr;
	padding: 14px 0;
	border-bottom: 1px solid #ccc;
}
.company-table dt {
	font-weight: 500;
	color: #707070;
	font-size: 18px;
    margin-left: 30px;
}
.company-table dd {
	font-size: 16px;
	color: #333;
    line-height: 32px;
}
.company-table .block dd {
	padding-top: 6px;
}

.access-map {
	border-bottom: 1px solid #333;
	text-decoration: none;
	color: #333;
    padding-top: 10px;
    display: inline-block;
}



/* 沿革 */
#history {
    padding: 140px 0 0;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
}
.history-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}
.history-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 50px;
}
.history-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
}
.history-header span {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 1px;
}
.tl-container {
    position: relative;
    padding: 70px 0 5px;
    margin: 50px 0 130px;
}
.tl-v-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 110px;
    width: 1px;
    background-color: #94938F;
}
.tl-v-line::before, 
.tl-v-line::after {
    content: '';
    position: absolute;
    left: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #999;
}
.tl-v-line::before { top: 0; }
.tl-v-line::after { bottom: 0; }
.tl-item {
    display: flex;
    position: relative;
    margin-bottom: 50px;
}
.tl-year {
    width: 90px;
    flex-shrink: 0;
    text-align: right;
    color: #004EA2;
    font-weight: bold;
}
.item-major .tl-year {
    font-family: "Roboto", sans-serif;
    font-size: 40px;
    line-height: 1;
    margin-top: -2px;
}
.item-minor .tl-year {
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    line-height: 1.6;
}
.item-major::after {
    content: '';
    position: absolute;
    left: 104px;
    top: 12px;
    width: 9px;
    height: 9px;
    border: 2px solid #004EA2;
    border-radius: 50%;
    background-color: #f6f5f4;
    z-index: 2;
}
.tl-line {
    position: absolute;
    left: 110px;
    top: 18px;
    width: 110px;
    height: 1px;
    background-color: #94938F;
    z-index: 1;
}
.item-no-year .tl-line {
    left: 110px;
    width: 0;
}
.tl-content {
    display: flex;
    flex: 1;
    padding-left: 160px;
}
.tl-month {
    font-family: "Roboto", sans-serif;
    width: 40px;
    flex-shrink: 0;
    color: #bbb;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
}
.tl-text {
    flex: 1;
    line-height: 1.6;
    color: #444;
}
.tl-text p {
    margin: 0;
}
.tl-image {
    width: 290px;
    flex-shrink: 0;
    margin-left: 30px;
}
.tl-image img {
    width: 28%;
    height: auto;
    display: block;
    position: absolute;
}
.history-2 {
    top: 0px;
}
.tl-image .history-3 {
    width: 19%;
    right: 48px;
    top: -50px;
}


/* レスポンシブ */
@media (max-width: 768px) {
.tl-v-line {
    left: 20px;
}
.tl-item {
    flex-direction: column;
    padding-left: 45px;
    margin-bottom: 35px;
}
.tl-year {
    width: auto;
    text-align: left;
    padding-right: 0;
    margin-bottom: 5px;
}
.tl-image img {
    position:relative;
    width: 90%;
}
.item-major .tl-year {
    margin-top: 0;
}
.item-major::after {
    left: 14px;
    top: 14px;
}
.tl-image .history-3 {
    width: 50%;
    right: 0;
    top: 0px;
}
    
/* スマホでは横ラインは非表示 */
.tl-line {
    display: none;
}
.tl-content {
    padding-left: 0;
    flex-direction: column;
}
.tl-month {
    margin-bottom: 2px;
    /* color: #1a5699; */
    font-weight: bold;
    width: auto;
}
.tl-image {
    width: 100%;
    max-width: 320px;
    margin-left: 0;
    margin-top: 15px;
}
.tl-text p {
    line-height: 24px;
}
.item-no-year {
    display: flex;
}
/* 年号がない項目はスマホでは間延びを防ぐ */
.item-no-year .tl-year {
    display: none;
}
}





/* レスポンシヴ */
@media (max-width: 1200px) {
    .ci-triad {
        grid-template-columns: 1fr 1fr;
    }
    .group-cards {
        grid-template-columns:
        repeat(2, minmax(0,1fr));
    }
    .group-cards .card {
        width: 100%;
        height: auto;
    }
    .company-table {
        width: 95%;
    }
}

@media (max-width: 768px) {
    #company {
        padding: 9em 0 8em;
    }
    .about-kv {
        padding: 120px 0 100px;
    }
    .ci-triad {
        grid-template-columns: 1fr;
    }
    .message-body {
        line-height: 35px;
        font-size: 16px;
        padding: 40px 0 10px;
    }
    .message-photo img {
        width: 100%; height: auto;
    }
    .company-table .row {
        grid-template-columns: 200px 1fr;
    }
    .op-company::after {
        right: 49%;
    }
    .node {
        width: 227px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    .wrapper {
        padding: 0;
    }
    .hero-title {
        font-size: 32px;
    }
    .section-title {
        font-size: 28px;
    }
    .about-title {
        font-size: 28px;
    }
    .about-intro {
        text-align: left;
        font-size: 16px;
        line-height: 35px;
    }
    .message-text,
    .about-text {
        font-size: 16px;
        line-height: 1.8;
    }
    .about-message {
        padding: 50px 0;
    }
    .message-body {
        padding: 20px 0 10px;
        height: inherit;
    }
    .message-grid {
        grid-template-columns: none;
    }
    .identity {
        width: 100%;
        font-size: 18px;
        padding-bottom: 10px;
    }
    .company-hero-description p{
        text-align: justify;
    }
    .company-table {
        margin: 40px auto 0;
        padding: 0 0 70px;
    }
    .company-table .row {
        grid-template-columns: none;
    }
    .company-table dt {
        font-size: 16px;
        line-height: 28px;
        margin-left: 5px;
    }
    .company-table dd {
        line-height: 25px;
        margin: 0 10px 0;
        font-size: 15px;
    }
    .about-company {
        padding: 50px 0 20px;
    }
    .recruit-title {
        font-size: 28px;
    }
    .recruit-text {
        font-size: 18px;
        line-height: 1.8;
    }
    .contact-title {
        font-size: 36px;
    }
    .group-cards {
        gap: 30px 20px;
    }
    #history {
        padding: 10px 0 0;
    }




    .left-line {
        margin-right: 20px;
        margin-bottom: 76px;
    }
    .op-company::after {
        right: 47%;
    }
}



