/* General Styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.7; 
    word-break: normal;
    overflow-wrap: break-word;
}

.about-text,
.service-item p {
    word-break: normal;
    overflow-wrap: break-word;
    /* 必要であれば line-height も個別に調整 */
}

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

.section-padding {
    padding: 80px 0;
}

h1, h2, h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #3498db;
    border-radius: 2px;
}

p {
    margin-bottom: 20px;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #2980b9;
}

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

/* Header */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Adjust as needed */
    width: auto;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/img/hero.jpeg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

#hero h1 {
    color: #fff;
    font-size: 4.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* About Section (Service Grid) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.8em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1.1em;
    color: #666;
    text-align: left;
}

.about-text {
    max-width: 900px;
    margin: 50px auto 0;
    font-size: 1.2em;
    line-height: 1.8;
}


/* Company Section */
.under-construction {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    padding: 50px 0;
}

/* Contact Section */
.contact-form {
    max-width: 700px;
    margin: 50px auto 0;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .required {
    color: #e74c3c;
    font-weight: normal;
    margin-left: 5px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px;
    }

    #hero h1 {
        font-size: 3em;
    }

    #hero p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    .section-padding {
        padding: 50px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-item img {
        height: 180px;
    }

    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    #hero h1 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    .service-item p {
        font-size: 1em;
    }
}

/* 会社概要セクションのスタイル */
.company-info {
    max-width: 800px; /* 全体の幅を制限して中央に寄せる */
    margin: 30px auto; /* 上下に余白を取り、左右中央寄せ */
    background-color: #fff; /* 背景色 */
    padding: 30px; /* 内側の余白 */
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 軽い影で立体感を出す */
    line-height: 1.8; /* 行間を調整 */
}

.company-info dt {
    font-weight: 700; /* 項目名を太字に */
    color: #333; /* 項目名の文字色 */
    width: 120px; /* 項目名の幅を固定（お好みで調整） */
    float: left; /* 項目名を左に寄せる */
    clear: both; /* 前の要素のfloatを解除し、新しい行から始める */
    margin-bottom: 10px; /* 項目名の下に少し余白 */
    padding-right: 15px; /* 項目名と内容の間に余白 */
    box-sizing: border-box; /* paddingを含めて幅を計算 */
}

.company-info dd {
    margin-left: 120px; /* 項目名の幅に合わせて内容を右に寄せる */
    margin-bottom: 10px; /* 内容の下に少し余白 */
    color: #555; /* 内容の文字色 */
}

/* 小さい画面での表示調整 (任意) */
@media (max-width: 768px) {
    .company-info dt {
        float: none; /* 項目名のフロートを解除 */
        width: auto; /* 幅の固定を解除 */
        margin-bottom: 5px; /* 余白を調整 */
        padding-right: 0;
    }
    .company-info dd {
        margin-left: 0; /* 内容の左マージンを解除 */
        margin-bottom: 15px; /* 内容の下に少し余白 */
    }
}