@charset "utf-8";
body {
    font-family: 'Yu Gothic', sans-serif;
    margin: 0;
    background: #f9f9f9;
    color: #333;
}

header {
    padding: 0;
    text-align: center;
    position: relative;
}

.header-info {
    background: #e0f0ea;
    max-width: 1200px; /* ヒーロー画像と同じ幅に設定 */
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-info-left {
    font-size: 0.95rem;
}

.header-info-left strong {
    display: block;
    font-size: 1.6rem;
    color: #2c665d;
}

.header-info-left span {
    font-size: 0.8rem;
    color: #555;
}

.header-info-right {
    text-align: right;
}

.header-info-right p {
    margin: 0;
    font-weight: bold;
}

.header-info-right small {
    font-size: 0.85rem;
    color: #444;
}

header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.section {
    padding: 20px 20px;
    max-width: 960px;
    margin: auto;
}

.section h2 {
    font-size: 1.8rem;
    color: #2c665d;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.subtitle {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.subtitle h2 {
   font-size: clamp(1.7rem, 3vw, 0.9rem);
   margin-bottom: 5px;
}

.subtitle p {
    font-size: 1.2rem;
    text-align: left;
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.service {
    background: #fff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service img {
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.service h3 {
    margin: 20px 0 10px;
    font-weight: bold;
    border-bottom: 3px solid #2c665d;
}

.service p {
    padding: 0 10px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.profile img {
    width: 160px;
    height: auto;
    object-fit: cover;
    border: 1px solid #ccc;
}

.profile p{
    text-align: left;
}



.profile div {
    flex: 1;
}


.company-info {
    max-width: 960px;
    margin: auto auto 1em;
}

.company-info table {
    width: 100%;
    table-layout: fixed; /* これがキモ。幅を100%に固定で使う */
    border-collapse: collapse;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.company-info th, .company-info td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.company-info th {
    background: #e0f0ea;
    width: 30%; /* 左側のラベル幅を固定（調整可能） */
}


footer {
    background: #2c665d;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
    }

    .profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile img {
        margin-bottom: 10px;
    }

    .header-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}