@charset "UTF-8";

a{
    text-decoration: none;
}

h2 {
    font-size: 32px;
    margin-bottom:50px;
}

h2 small {
    display: block;
    font-size: 18px;
    color: #1791c8;
    margin-bottom: 4px;
    border-top: #1791c8 solid 10px;
    padding-top: 30px;
    padding-bottom: 5px;
}

h3 {
    font-size: 24px;
    margin-bottom: 50px;
}

h3 small {
    font-size: 14px;
    color: #1791c8;
    display: block;
    margin-bottom: 4px;
    border-top: #1791c8 solid 10px;
    padding-top: 30px;
}

/* 代表者挨拶スタイル */
.greeting-content {
    display: flex;
    align-items: flex-start;
    margin:80px;
}

.greeting-text {
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
    margin-top: 30px;
    margin-left: 45px;
    max-width: 400px;
}

.greeting-text p {
    margin-bottom: 16px;
    text-align: justify;
}

.greeting-text small {
    font-size: 18px;
    color: #666;
    display: block;
    text-align: right;
}

.greeting-text .signature {
    display: block;
    font-size: 36px;
    color: #333;
    text-align: right;
    font-weight: bold;
    white-space: nowrap;
}

/* 会社概要 */
table {
    width: 700px;
    border-collapse: collapse;
    margin-bottom: 40px;
/*    margin-left: 20px;*/
}

table th, table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #ccc;
}

table th {
    width: 25%;
    font-weight: bold;
    background-color: #f8f8f8;
}

table td {
    width: 75%;
}

/* 沿革スタイル */
.history ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* 一本線を描画 */
.history ul::before {
    content: '';
    position: absolute;
    left: 50px; /* 線の位置調整 */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #1791c8;
    z-index: 0;
}

/* 各年の丸 */
.history ul li {
    position: relative;
    padding-left: 80px; /* テキストの左余白 */
    margin-bottom: 30px;
}

.history ul li::before {
    content: '';
    position: absolute;
    left: 45px; /* 丸を線に合わせる */
    top: 30%; /* 丸を中央に配置 */
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #1791c8;
    border-radius: 50%;
    z-index: 1;
}

/* 年と説明文のスタイル */
.history ul li .year {
    font-size: 36px;
    font-weight: bold;
    color: #1791c8;
    margin-right: 10px;
    display: block;
    padding-bottom: 10px;
}

.history ul li .description {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

/* メディアクエリ */
@media (max-width: 770px) {
    
    .greeting-content {
        flex-direction: column;
        margin:0px;
    }

 /*   .greeting-image {
        margin-bottom: 20px;
        margin-left: 10px;
    } */

    .history ul li {
        padding-left: 60px;
    }

    .history ul li .year {
        font-size: 48px;
    }
    table {
        width: 100%;
        height:auto;
    }
    .greeting-text {
        margin-left:10px;
    }
}