@charaset "utf-8";

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    text-align: left; /* 左寄せ */
}

h1, h2 {
    color: #ff8c00; /* オレンジ */
    margin-left: 20px; /* 左側に余白 */
}

h1 {
  font-size: 2.5em;
  margin-top: 20px;
}

h2 {
  font-size: 2.2em;
  margin-top: 15px;
}

p {
    margin-bottom: 20px;
    padding: 0 20px;
}

a {
    color: #ff8c00; /* オレンジ */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%; /* 幅を調整 */
    max-width: 1200px; /* 最大幅を設定 */
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.first-view {
    position: relative;
    width: 100%;
    height: 500px; /* 高さを調整 */
    overflow: hidden;
}

.first-view img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 写真の表示方法 */
}

.service-content {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 文字に影 */
}

.service-content h2 {
    color: #fff;
    margin-left: 0;
}

.contact-link, .blog-link {
    display: inline-block;
    background-color: #ff8c00; /* オレンジ */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 20px; /* 左側に余白を追加 */
    text-decoration: none;
}

.contact-link:hover, .blog-link:hover {
    background-color: #e67300; /* オレンジ（濃い色） */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .first-view {
        height: 300px; /* スマートフォンでは高さを調整 */
    }

    .service-content {
        left: 10px;
    }
}