/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* ヘッダー */
header {
    position: relative;
    width: 100%;
    height: 530px;
    background: url('../images/top/main_bg.svg') no-repeat center center/cover;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

header h1 {
    font-size: 48px;
    font-weight: bold;
}

header p {
    font-size: 30px;
    margin-top: 10px;
    margin-left: 12em;
}

/* ナビゲーション */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* 中央配置 */
    padding: 15px 20px 5px;
}

/* ナビゲーションの内側コンテナ */
.nav-container {
    width: 1000px; /* ナビゲーションの幅を 1000px に設定 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.nav-container .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff6600;
    width: 250px;
}

.nav-container .logo img {
    width: 100%;
}

/* メニュー */
.nav-container ul {
    list-style: none;
    display: flex;
    padding-bottom: 10px;
}

.nav-container ul li {
    margin-left: 20px;
}

.nav-container ul li::after {
    content: " ";
    border-right: 2px solid #4d3e41;
    padding-right: 22px;
}

.nav-container ul li a {
    text-decoration: none;
    color: #4d3e41;
    font-weight: bold;
        font-family: 'EB Garamond', "Yu Mincho", "YuMincho", 'Noto Serif JP', serif;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff6600;
    margin-left: 20px;
    width: 250px;
}

nav .logo img {
    width: 100%;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* ハンバーガー共通 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    height: 4px;
    width: 100%;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ハンバーガーが開いてるときのアニメーション */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger.open span {
    background:#333 !important;
}

/* ナビゲーションメニュー */
.nav-menu {
    display: none;
    list-style: none;
}

@media screen and (max-width: 768px) {
    nav {
        justify-content: right;
        background:#fff;
    }

    .hamburger {
        display: flex;
        margin-top: 3%;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: none;
        padding: 40px 0px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        margin: 20px 0;
        font-size: 20px;
    }
}




/* 会社概要 */
#about {
    text-align: center;
    padding: 60px 20px;
    background: url(../images/top/top_bg.svg) no-repeat center center / cover;
}

#about img {
    width: 200px;
    margin-bottom: 20px;
}

#about p {
    font-size: 14px;
    max-width: 800px;
    /* margin: 0 auto 20px; */
    font-family: 'EB Garamond', "Yu Mincho", "YuMincho", 'Noto Serif JP', serif;
}

#about .button {
     letter-spacing: 0.12em;
    display: inline-block;
    padding: 15px 30px;
    background: #47c9e9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container-space {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1000px;
    max-width: 100%;
    /* margin-bottom: 40px; */
    /* background: white; */
    /*flex-direction: row-reverse;*/ /* 画像を左側に */
}

.container-text {
    width: 55%;
    padding: 40px;
    text-align: left;
}

.container-image {
    width: 45%;
    padding: 40px;
    text-align: left;
}

.container-image img {
    width: 100% !important;
}

/* 事業案内全体を画面いっぱいに */
#services {
    width: 100vw;
    max-width: 100%;
    text-align: center;
    padding-top: 60px;
    /* padding-bottom: 60px; */
    /* background: #f4f4f4; */
    overflow: hidden; /* 横スクロールを防ぐ */
}

#services h2, #services h3.ttl {
    font-family: 'EB Garamond', "Yu Mincho", "YuMincho", 'Noto Serif JP', serif;
}

#services h3.ttl {
  position: relative;
  display: inline-block;
  padding: 0 55px;
}

#services h3.ttl:before, #services h3.ttl:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: black;
}

#services h3.ttl:before {
  left:0;
}

#services h3.ttl:after {
  right: 0;
}

/* サービスコンテナ */
.service-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 40px;
}

/* 各サービスのスタイル */
.service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    /* margin-bottom: 40px; */
    background: white;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /*flex-direction: row-reverse;*/ /* 画像を左側に */
}

/* 青背景のサービス */
.service.blue-bg {
    background: #40a9ff;
    color: white;
    width: 100%;
    border-radius: 0;
}

/* 青背景のテキストの色 */
.service.blue-bg .service-text h3, 
.service.blue-bg .service-text a {
    color: white;
    font-family: 'EB Garamond', "Yu Mincho", "YuMincho", 'Noto Serif JP', serif;
}

.service.blue-bg .service-text h4,
.service.blue-bg .service-text p {
    color:#4d3e41;
        font-family: 'EB Garamond', "Yu Mincho", "YuMincho", 'Noto Serif JP', serif;
}

/* テキストエリア */
.service-text {
    width: 50%;
    padding: 40px;
    text-align: left;
}

.service-text a {
    /* color: white; */
    display: block;
    padding-top:20px;
    text-decoration: none;
    color:#8e8a89;
}

.service-text p {
    font-size: 0.8em;
    color:#4d3e41;
}

/* 画像エリア */
.service-image {
    width: 50%;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 偶数番目の要素（2つ目、4つ目）は逆に配置 */
.service:nth-child(even) {
    /* flex-direction: row-reverse; */
}

.service.blue-bg .service-text {
    padding: 40px 2em 40px 16em;
}

/* 青背景のサービスと画像を横幅いっぱいにする */
.service.blue-bg {
/* .service.blue-bg .service-image { */
    background: #47c9e9;
    color: white;
    flex-direction: row; /* 画像を右側に */
}

.service .service-text {
    padding: 40px 16em 40px 2em;
}

.service .service-text h3 {
    color:#8e8a89;
}

.service .service-text h4,
.service .service-image h4 {
    font-size: 20px;
    padding-bottom: 20px;
}

/* お知らせ */
#news {
    text-align: center;
    padding: 60px 20px;
    background:#eee;
}

.news-inner {
    background:#fff;
    width:800px;
    margin:10px auto;
    padding:30px 0px;
}

#news h2 {
    font-size: 28px;
        font-family: 'EB Garamond', "Yu Mincho", "YuMincho", 'Noto Serif JP', serif;
}

#news h3 {
    font-family: 'EB Garamond', "Yu Mincho", "YuMincho", 'Noto Serif JP', serif;
    margin-bottom:20px;
  position: relative;
  display: inline-block;
  padding: 0 55px;
}

#news h3:before, #news h3:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: black;
}

#news h3:before {
  left:0;
}

#news h3:after {
  right: 0;
}



#news ul {
    list-style: none;
}

#news ul li {
    margin: 10px auto;
    padding: 15px 10px 5px;
    max-width: 600px;
    border-radius: 5px;
        border-bottom: 1px dotted;
        text-align: left;
}

/* フッター */
/* フッター全体のスタイル */
/* フッター全体 */
footer {
    background: #fff;
    color: #333;
    text-align: center;
    /* padding: 40px 0px 0px; */
}

/* フッターのSNSエリア（修正箇所） */
.footer-social {
    width: 100%; /* 幅を100%に */
    background: url('../images/top/buildings.svg') no-repeat center center/cover; /* buildings.svg を背景に */
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer-social a img {
    width: 70px; /* アイコンサイズ */
    height: 70px;
}

/* .footer-social a img.first-line {
    width: 110px;
} */

/* フッターメニュー */
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
}

.footer-container .logo {
    padding-top: 40px;
    width: 100%;
    display: flex;
    padding-left: 100px;
}

.footer-container .logo img {
    width: 250px;
}

.footer-row {
    padding-top: 30px;
    padding-left: 120px;
    max-width: 930px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 190px;
    margin-bottom: 20px;
}

.footer-column2 {
    flex: 1;
    min-width: 230px;
    margin-bottom: 20px;
}

.footer-column h3,
.footer-column2 h3 {
    color:#4d3e41;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-column ul,
.footer-column2 ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li,
.footer-column2 ul li {
    margin-bottom: 8px;
}

.footer-column ul li a,
.footer-column2 ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* 青色ボタン */
.footer-button {
    text-align: center;
    margin-top: 20px;
}

.footer-button a {
     letter-spacing: 0.12em;
    display: inline-block;
    background: #47c9e9;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
}

/* 最下部の著作権エリア */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 30px 0px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #666;
    background-color: #ddd;
}

.footer-bottom p, 
.footer-bottom ul, 
.footer-bottom ul li {
    display: inline-block;
    vertical-align: middle;
}

.footer-bottom p img {
    width: 150px;
} 

.footer-bottom ul {
    padding-left: 100px;
}

.footer-bottom ul li a {
    text-decoration: none;
}

.footer-bottom ul li::after {
    content: "/";
    padding: 15px;
}

.line-block {
    display: none;
}

.v-pc {
    display: block;
}

.v-sp {
    display: none;
}
