/* 基本スタイル */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background: #333;
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #0779e4 3px solid;
}

header .logo {
    float: left;
    margin: 0;
    font-size: 24px;
}

header nav {
    float: right;
    margin-top: 10px;
}

header nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header nav ul li a:hover {
    color: #0779e4;
    font-weight: bold;
}

/* ヒーローセクション */
#hero {
    background: url('https://via.placeholder.com/1500x600?text=メインビジュアル') no-repeat center center/cover;
    color: #fff;
    min-height: 400px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    background: #0779e4;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #045aa9;
}

/* コンテンツセクション共通 */
.content-section {
    padding: 60px 0;
    text-align: center;
}

.content-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #0779e4;
    margin: 10px auto 0;
}

.bg-light {
    background-color: #f4f4f4;
}

/* 会社概要 */
#about .about-content {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 30px; /* 画像とテキストの間隔 */
}

#about .about-image {
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#about .about-text {
    max-width: 60%;
}


/* 事業内容 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.service-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.service-item img {
    width: 80px; /* アイコンサイズ調整 */
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%; /* 丸いアイコンにする場合 */
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0779e4;
}

/* お知らせ */
.news-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list .news-date {
    display: inline-block;
    background-color: #0779e4;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 15px;
    min-width: 90px; /* 日付の幅を揃える */
    text-align: center;
}

.news-list a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.news-list a:hover {
    color: #0779e4;
}

/* お問い合わせ */
#contact-form {
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* paddingを含めて幅を100%に */
}

.form-group textarea {
    resize: vertical; /* 縦方向のみリサイズ可 */
}

#contact-form button {
    width: 100%;
}

#form-message {
    text-align: center;
    font-weight: bold;
}

/* フッター */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 0; /* 上のセクションとのマージンをなくす */
}

/* レスポンシブ対応 (簡単な例) */
@media(max-width: 768px) {
    header .logo,
    header nav {
        float: none;
        text-align: center;
        width: 100%;
    }

    header nav ul li {
        display: block;
        padding: 10px 0;
    }

    #hero h2 {
        font-size: 36px;
    }

    #hero p {
        font-size: 18px;
    }

    .container {
        width: 90%;
    }

    #about .about-content {
        flex-direction: column;
    }
    #about .about-image,
    #about .about-text {
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr; /* 1列表示 */
    }
}
