/* 全体のスタイル */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

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

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

/* ヘッダーのスタイル */
.headertop {
    font-size: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

header nav ul {
    display: flex;
    justify-content: space-evenly;
    padding: 24px 0;
    list-style: none;
    margin: 0;
}

header nav ul li a {
    transition: background-color 0.3s;
    text-decoration: none;
    color: #333;
}

header nav ul li a:hover {
    text-decoration: underline double #4D4D4D 1px;
}

/* 見出し */
h2 {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    margin: 50px 0;
}

/* 私たち */
.aboutus {
    padding: 50px 0;
}

.subtitle {
    text-align: center;
}

.para {
    text-align: center;
    padding-top: 30px;
    line-height: 1.5;
}

/* サービス */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.grid-item {
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
}

.A {
    font-size: 16px;
}

.B {
    font-size: 20px;
    margin: 10px 0;
    font-weight: bold;
}

.C {
    padding-top: 20px;
    line-height: 1.5;
}

/* 料金プラン */
.table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    margin: 0 auto 50px;
    border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.pricing-table th {
    background-color: #333;
    color: #fff;
}

.pricing-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.pricing-table tr:hover {
    background-color: #ddd;
}

.pricing-table .highlight {
    background-color: #ffcc00;
    font-weight: bold;
}

.note {
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
}


/* 事務所案内 */
.grid-container2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

.grid-item2 {
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    background-color: #fff;
}

.info {
    line-height: 1.5;
    font-size: 18px;
}

.address {
    margin: 20px 0;
}

.trainlast {
    padding-bottom: 30px;
}

.grid-container3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

.callfax {
    padding: 20px;
    text-align: center;
    border-radius: 30px;
    background-color: #4D4D4D;
    color: #f2f2f2;
}

/* 募集要項 */
.application-table {
    width: 100%;
    margin: 0 auto 50px;
    border-collapse: collapse;
}

.application-table th, .application-table td {
    border: 1px solid #4D4D4D;
    padding: 15px;
    text-align: left;
}

.application-table th {
    background-color: #333;
    color: #fff;
}

.application-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.application-table tr:hover {
    background-color: #ddd;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .headertop {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .grid-container,
    .grid-container2,
    .grid-container3 {
        display: flex;
        flex-direction: column;
    }

    .grid-item,
    .grid-item2 {
        width: 100%;
    }

    h2, h3 {
        font-size: 24px;
    }

    .para, .info, .C {
        font-size: 15px;
    }

    .pricing-table th, .pricing-table td,
    .application-table th, .application-table td {
        font-size: 14px;
        padding: 10px;
    }
}
