/* 会社概要ページ専用スタイル */

/* 代表挨拶セクション */
.ceo-message {
    padding: 80px 0 0;
    background-color: white;
}

.ceo-content {
    display: flex;
    gap: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

.ceo-image {
    flex-shrink: 0;
    width: 376px;
    aspect-ratio: 376/621;
    display: flex;
}

.ceo-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-text {
    flex: 1;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.ceo-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 900;
    color: #232323;
    margin: 0 0 110px 0;
    line-height: 1.2;
}

.ceo-info {
    margin-bottom: 102px;
}

.ceo-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 900;
    color: #232323;
    margin: 0 0 27px 0;
    line-height: 1.2;
}

.ceo-name {
    font-family: 'Yu Kyokasho', serif;
    font-size: 40px;
    font-weight: bold;
    color: #232323;
    margin: 0;
    line-height: 1.2;
}

.ceo-message-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    line-height: 1.8;
    color: black;
}

.ceo-message-text p {
    margin: 0 0 20px 0;
}

.ceo-message-text p:last-child {
    margin-bottom: 0;
}

.ceo-signature {
    width: 200px;
    text-align: right;
    margin: 30px 0 0 auto;
}

p.post {
    text-align: left;
}

.ceo-signature img.ceo-signature-image {
    width: 100%;
    object-fit: contain;
}

/* freeセクション */
.free h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 900;
    color: #232323;
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: left;
}

/* 会社概要セクション */
.company-overview {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 900;
    color: #232323;
    text-align: center;
    margin: 0 0 86px 0;
    line-height: 1.2;
}

.company-table-wrapper {
    margin: 0 auto;
    padding: 20px;
    background-color: #3d3d3d;
}

.company-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #3d3d3d;
    overflow: hidden;
}

.company-table th {
    width: 246px;
    padding: 30px 23px;
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 400;
    color: white;
    text-align: left;
    vertical-align: top;
    background-color: #3d3d3d;
    border-top: 1px solid #ccc;
}

.company-table td {
    padding: 30px 23px;
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 400;
    color: white;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid #ccc;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: 1px solid #ccc;
}

/* 複数行のセル調整 */
.company-table .double-row td {
    min-width: 180px;
    padding: 15px 20px;
}

/* .company-table .triple-row th,
.company-table .triple-row td {
    padding: 45px 23px 35px 23px;
}

.company-table .quad-row th,
.company-table .quad-row td {
    padding: 45px 23px 34px 23px;
} */

.company-table td p {
    margin: 0;
    line-height: 1.5;
}

.company-table td p+p {
    margin-top: 5px;
}

/* 会社沿革セクション */
.company-history {
    padding: 80px 0;
    background-color: #eee;
}

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 0;
}

.timeline-line {
    position: absolute;
    left: 122px;
    top: -50px;
    width: 1px;
    height: calc(100% + 100px);
    background-color: #ddd;
    z-index: 1;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/timeline-line.svg');
    background-repeat: repeat-y;
    background-size: 1px 100%;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 100px;
    padding-right: 100px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-circle {
    position: absolute;
    left: 100px;
    width: 44px;
    height: 44px;
    background-image: url('../images/timeline-circle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
}

.timeline-head {
    display: flex;
    justify-content: space-around;
    padding-left: 420px;
    padding-right: 100px;
}

.timeline-content {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 80px;
    margin-left: 78px;
    position: relative;
}

.timeline-year {
    display: inline-flex;
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 600;
    color: black;
    white-space: nowrap;
    width: 160px;
    align-items: center;
    flex-shrink: 0;
}

.timeline-event {
    position: relative;
    padding: 30px 0;
}

/* 2つ目のtimeline-eventと3つ目のtimeline-eventの間に縦のボーダーを設置 */
.timeline-event:nth-of-type(2):not(:last-of-type)::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background-color: #aaa;
}

.company,
.timeline-event {
    flex: 1;
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 400;
    color: black;
    line-height: 1.4;
    min-width: 0;
}

.company {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .ceo-content {
        max-width: 900px;
        gap: 60px;
    }

    .ceo-image {
        width: 300px;
        aspect-ratio: 376/621;
    }

    .timeline-content {
        gap: 100px;
    }
}

@media (max-width: 968px) {
    .ceo-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .ceo-image {
        width: 300px;
        aspect-ratio: 376/621;
        margin: 0 auto;
    }

    .ceo-text {
        padding-top: 0;
    }

    .ceo-section-title {
        margin-bottom: 40px;
    }

    .ceo-info {
        margin-bottom: 40px;
    }

    .ceo-message-text {
        text-align: left;
    }

    .company-table-wrapper {
        margin: 20px;
    }

    .company-table th {
        width: 200px;
        padding: 20px 15px;
        font-size: 14px;
    }

    .company-table td {
        padding: 20px 15px;
        font-size: 14px;
    }

    .timeline {
        padding: 0;
    }

    .timeline-line {
        left: 44px;
    }

    .timeline-item {
        padding-left: 28px;
        padding-right: 0px;
    }

    .timeline-circle {
        left: 28px;
        width: 32px;
        height: 32px;
    }

    .timeline-content {
        flex-direction: column;
        gap: 10px;
        margin: 30px 0 30px 50px;
        align-items: flex-start;
    }

    .timeline-year {
        font-size: 15px;
        min-width: auto;
    }

    .company {
        font-size: 15px;
    }

    .timeline-event {
        font-size: 15px;
        padding: unset;
    }

    /* モバイルではボーダーを非表示 */
    .timeline-event:nth-of-type(2):not(:last-of-type)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .ceo-message {
        padding: 60px 0 0;
    }

    .ceo-section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .ceo-title {
        font-size: 18px;
    }

    .ceo-name {
        font-size: 32px;
    }

    .ceo-message-text {
        font-size: 14px;
    }

    .free h2 {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .ceo-signature {
        width: 150px;
    }

    .company-table {
        display: block;
    }

    .company-table thead {
        display: none;
    }

    .company-table tr {
        display: block;
        border-bottom: 1px solid #555;
    }

    .company-table tr:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

    .company-table th,
    .company-table td,
    .company-table .double-row td,
    .company-table .triple-row td,
    .company-table .quad-row td {
        display: block;
        width: 100%;
        padding: 10px;
        font-size: 12px;
        border-top: none;
    }

    .company-table tr:last-child th,
    .company-table tr:last-child td {
        border-bottom: none;
    }

    .timeline-year {
        font-size: 16px;
    }

    .timeline-event {
        font-size: 16px;
    }
}