* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

header {
    background: url('office-background.jpg') no-repeat center center/cover;
    height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
}

h1 {
    font-size: 36px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.contact-button {
    background-color: #f6c942;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 48px;
    line-height: 1.5;
}

.topics {
    padding: 40px;
    background-color: #f9f9f9;
    text-align: center;
}

.topics h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.topics ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px; /* セクションの幅を設定して中央寄せ */
    text-align: left;  /* テキストを左揃え */
}

.topics ul li {
    padding: 10px 0;
}


.services {
    padding: 60px;
    background-color: #fff;
    text-align: center;
}

.services h3 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.service-item h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 16px;
}

.service-item:hover {
    transform: translateY(-10px);
}

/* 画像の上に黒のオーバーレイをかける（視認性向上のため） */
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    z-index: 1;
}

.service-item h4,
.service-item p {
    position: relative;
    z-index: 2;
}



.about {
    padding: 60px;
    background-color: #f9f9f9;
    text-align: left;
}

.about h3 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.about-content {
    display: flex;
    justify-content: center; /* 中央揃え */
    align-items: flex-start; /* 要素を上部に揃える */
    gap: 40px;
    width: 100%; /* 幅を100%に設定 */
    max-width: 1200px; /* コンテンツの最大幅を設定 */
    margin: 0 auto; /* コンテンツを中央に揃える */
    padding: 20px;
    box-sizing: border-box; /* パディングが幅に含まれるようにする */
}

.about-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 画像とテキストを上下に配置 */
    height: 100%;
}

.about-image img {
    max-width: 150px; /* 画像サイズを調整 */
    height: auto;
}

.position {
    font-size: 18px;
    color: #333;
    margin-top: auto; /* 画像の下にテキストを固定 */
    text-align: center;
}

.about-text {
    flex: 2;
    font-size: 18px;
    line-height: 1.8;
    color: #333
}


.about-image img {
    width: 150px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

footer {
    padding: 20px;
    background-color: #000;
    color: #fff;
    text-align: center;
}

.social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social a {
    color: #fff;
    text-decoration: none;
}
