/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 会社概要ヘッダー */
.company-header {
    background: #fff;
    padding: 51px 0 80px;
    margin-top: 99px;
}

.company-header-container {
    max-width: 1325px;
    margin: 0 auto;
    padding: 0 40px 0 74px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-end;
}

.header-left {
    flex: 1;
}

.company-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 4px;
    white-space: nowrap;
}

.c-blue {
    color: #29a9b8;
}

.c-black {
    color: #333;
}

.company-subtitle {
    font-size: 24px;
    color: #333;
    font-weight: 500;
    letter-spacing: 1px;
}

.header-right {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.header-right img {
    width: 100%;
    height: auto;
    display: block;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .company-header {
        padding: 50px 0;
    }

    .company-header-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 40px;
    }

    .company-title {
        font-size: 48px;
        white-space: normal;
        text-align: center;
    }

    .header-left {
        text-align: center;
    }

    .header-right {
        width: 100%;
    }
}

/* ご挨拶セクション */
.greeting-section {
    background: #f0f0f0;
    padding: 40px 40px 149px;
    position: relative;
}

.greeting-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 5653 / 379;
    background-image: url(../../images/company/message_treat.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    pointer-events: none;
}

.greeting-container {
    max-width: 1200px;
    margin: 0 auto;
}

.greeting-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.greeting-header::before {
    content: "";
    display: block;
    width: 38px;
    height: 40px;
    background-image: url(../../images/company/company-icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.house-icon {
    width: 30px;
    height: 30px;
    color: #29a9b8;
}

.greeting-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.greeting-header h2 span {
    color: #29a9b8;
}

.greeting-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.content-box {
    background: #fff;
    padding: 50px 60px;
    margin-bottom: 0;
}

.content-row {
    display: flex;
    gap: 50px;
}

.text-section {
    flex: 1;
    max-width: 510px;
}

.main-heading {
    font-size: 1.56rem;
    font-weight: 600;
    color: #29a9b8;
    line-height: 1.8;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #b3b3b3 !important;
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-group p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #333;
}

.image-section {
    width: 100%;
    max-width: 490px;
    border-radius: 5px;
    flex-shrink: 0;
    overflow: hidden;
}

.image-section img {
    width: 100%;
    aspect-ratio: 497 / 346;
    object-fit: cover;
    display: block;
}

.bottom-box {
    background: #fff;
    padding: 50px 60px;
}

.ceo-section {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.ceo-photo {
    width: 100%;
    max-width: 500px;
    flex-shrink: 0;
}

.ceo-photo img {
    width: 100%;
    max-width: 267px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.ceo-info {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #333;
    text-align: center;
}

.ceo-message {
    flex: 1;
    max-width: 545px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ceo-message p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #333;
}

/* レスポンシブ - ご挨拶 */
@media (max-width: 1200px) {

    .content-row,
    .bottom-box {
        flex-direction: column-reverse;
        align-items: center;
    }

    .text-section {
        max-width: 1000px;
    }

    .image-section {
        max-width: 1000px;
    }

    .ceo-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .ceo-photo img {
        max-width: 500px;
    }

    .ceo-message {
        max-width: 1000px;
    }

    .greeting-header {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .greeting-section {
        padding: 40px 20px 60px;
    }

    .content-box,
    .bottom-box {
        padding: 30px 25px;
    }

    .bottom-box {
        flex-direction: column;
    }

    .main-heading {
        font-size: 1.15rem;
    }

    .image-section {
        width: 100%;
    }

    .ceo-section {
        flex-direction: column;
        align-items: center;
    }

    .ceo-photo {
        width: 180px;
    }

}

/* 会社情報セクション */
.company-info-section {
    background: #fff;
    padding: 60px 40px;
}

.company-info-container {
    max-width: 1000px;
    margin: 0 auto;
}

.info-header {
    background: #29a9b8;
    padding: 0px 25px;
    margin-bottom: 0;
}

.info-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5.6px;
    margin-top: 11.6px;
    border: none;
}

.info-table th {
    width: 200px;
    padding: 18px 25px;
    background: #f0f0f0;
    font-weight: 500;
    color: #333;
    text-align: center;
    border: 1px solid #ddd;
    border-right: none;
    font-size: 0.95rem;
    vertical-align: middle;
}

.info-table td {
    padding: 18px 25px;
    color: #333;
    border: 1px solid #ddd;
    border-left: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* レスポンシブ - 会社情報 */
@media (max-width: 768px) {
    .company-info-section {
        padding: 40px 20px;
    }

    .info-header {
        padding: 12px 20px;
    }

    .info-header h2 {
        font-size: 1.15rem;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 12px 20px;
        text-align: left;
    }

    .info-table th {
        border-bottom: none;
    }

    .info-table td {
        border-top: none;
    }
}

/* 沿革セクション */
.history-section {
    background: #fff;
    padding: 60px 40px;
    margin-bottom: 102px;
}

.history-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.history-header {
    background: #29a9b8;
    padding: 0px 25px;
    margin-bottom: 40px;
}

.history-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 30px 1fr;
    align-items: center;
    padding: 18px 0;
    background: #fff;
    position: relative;
}

.timeline-item.alt {
    background: #f8f8f8;
}

.timeline-year {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-align: right;
    padding-right: 20px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #29a9b8;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.timeline-item:not(:last-child) .timeline-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: #29a9b8;
    z-index: 1;
}

.timeline-content {
    font-size: 0.95rem;
    color: #333;
    padding-left: 25px;
    line-height: 1.8;
}

.timeline-line {
    height: 10px;
    background: #29a9b8;
    margin-top: 30px;
}

/* レスポンシブ - 沿革 */
@media (max-width: 768px) {
    .history-section {
        padding: 40px 20px;
    }

    .history-header {
        padding: 12px 20px;
    }

    .history-header h2 {
        font-size: 1.15rem;
    }

    .timeline-item {
        grid-template-columns: 100px 25px 1fr;
        padding: 15px 0;
    }

    .timeline-year {
        font-size: 0.85rem;
        padding-right: 10px;
    }

    .timeline-dot {
        width: 10px;
        height: 10px;
    }

    .timeline-content {
        font-size: 0.9rem;
        padding-left: 15px;
    }
}

/* ページタイトルの上下の線を削除 */
.entry-title--post-type--page,
h2:where(:not(.wp-block-post-title)) {
    border-top: none !important;
    border-bottom: none !important;
}

/* h3の装飾（下線）を削除 */
.site-footer-title:after,
.sub-section-title:after,
h3:where(:not(.wp-block-post-title)):after {
    content: none !important;
    display: none !important;
}