/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 游ゴシック, YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
}

/* ヘッダー */
.pc.hide_sp.top {
    background-color: white;
    padding: 15px 0;
    font-family: sans-serif;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    max-width: 220px;
    transition: max-width 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: color 0.3s ease; 
    cursor: pointer;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

/* ホバー時の下線アニメーション */
.nav-menu a:hover::after {
    width: 100%; /* 下線を全幅に広げる */
}

.nav-menu a:hover {
    color: #555; /* ホバー時に文字色を少し変更 */
}

.nav-menu a span {
    font-size: 10px;
    color: #666;
    font-weight: normal;
    margin-top: 3px;
}

.nav-menu li a[href="contact.php"] {
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu li a[href="contact.php"] span {
    color: #fff;
}

/* ホバー時のスタイル */
.nav-menu li a[href="contact.php"]:hover {
    background-color: #333;
    color: #fff;
}

/* フレームのスタイル */
.img-frame {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    margin-top: 70px;
}

/* 各画像のスタイル */
.img-01, .img-02, .img-03, .img-04 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 画像の背景を設定 */
.img-01 {
    background-image: url('img/new_14.jpg');
    animation: slide-animation-01 16s infinite;
}

.img-02 {
    background-image: url('img/new_15.jpg');
    animation: slide-animation-02 16s infinite;
}

.img-03 {
    background-image: url('img/new_16.jpg');
    animation: slide-animation-03 16s infinite;
}

.img-04 {
    background-image: url('img/new_9.jpg');
    animation: slide-animation-04 16s infinite;
}

/* アニメーション定義 */
@keyframes slide-animation-01 {
    0% { opacity: 1; transform: scale(1.0); }
    25% { opacity: 1; }
    30% { opacity: 0; transform: scale(1.15); }
    100% { opacity: 0; transform: scale(1.0); }
}

@keyframes slide-animation-02 {
    0% { opacity: 0; transform: scale(1.0); }
    25% { opacity: 0; }
    30% { opacity: 1; transform: scale(1.1); }
    55% { opacity: 1; }
    60% { opacity: 0; transform: scale(1.0); }
    100% { opacity: 0; }
}

@keyframes slide-animation-03 {
    0% { opacity: 0; transform: scale(1.0); }
    55% { opacity: 0; }
    60% { opacity: 1; transform: scale(1.1); }
    85% { opacity: 1; }
    90% { opacity: 0; transform: scale(1.0); }
    100% { opacity: 0; }
}

@keyframes slide-animation-04 {
    0% { opacity: 0; transform: scale(1.0); }
    85% { opacity: 0; }
    90% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1.0); }
}


/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    border-radius: 2px;
}

/* セクションのベーススタイル */
.section-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.section-title {
    font-size: 46px;
    font-weight: bold;
    text-align: center;
    font-style: italic;
}

.section-subtitle {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    font-style: italic;
}

.section-container-access {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0px 20px 20px 20px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.top-mission{
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.section-text {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
    line-height: 2.5;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px 20px 40px 20px;
}

.service-item {
    background-color: #ffffff;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    box-sizing: border-box;
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.section-container-works {
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
}

/* 全体のコンテナ */
.section-container-text {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-bottom: 40px;
}

/* 施工事例ページのコンテナ */
.section-container-text-works {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 80px 20px;
}

/* リンク全体のスタイル */
.project-item-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.project-item {
    width: 400px;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 10px;
    transition: transform 0.3s, box-shadow 0.3s; /* ホバー時の動きを追加 */
}

/* ホバー時のエフェクト */
.project-item-link:hover .project-item {
    transform: translateY(-20px); /* 少し浮き上がるような効果 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* シャドウを強調 */
}

/* 画像部分 */
.project-image {
    position: relative;
    width: 100%;
    height: 250px; /* 高さを固定 */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を保ちつつ、領域いっぱいに拡大 */
}

/* 施工内容部分 */
.project-details {
    padding: 30px;
}

.project-details h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.project-details p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    text-align: left;
}


/* 問い合わせフォーム */
.contact-method {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.contact-method h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.contact-item i {
    margin: 0 10px;
    font-size: 30px; /* アイコンのサイズ */
    color: #000; /* アイコンの色 */
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item p {
    margin: 0;
    font-size: 16px;
}

.sub-info {
    font-size: 12px;
}

.iframe-wrapper {
    position:relative;
    max-width: 1080px;
    height:0;
    padding-top:1080px;
}
    
.iframe-wrapper iframe {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.main-visual-company {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.main-visual-company .main-image {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.text-overlay {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.text-overlay h1 {
    font-size: 48px;
    font-weight: bold;
}

.text-overlay p {
    font-size: 24px;
}

.main-visual-company-works {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.main-visual-company-works .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* 画像の表示位置をトップに設定 */
}

/* 代表メッセージセクション */
.message-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.message-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px; 
    flex-wrap: nowrap;
}

.message-image {
    position: relative;
    width: 50%; /* 画像エリアの幅を指定 */
    max-width: 500px; /* 最大幅を指定 */
    height: auto;
    overflow: hidden;
    border-radius: 10px;
}

.message-image img {
    width: 100%;
    height: auto;
    transform: scale(1.3); /* 画像をズーム */
    object-fit: cover;
}

.message-content {
    width: 55%;
    max-width: 450px;
}

.company-section-title {
    font-size: 42px;
    font-weight: bold;
    color: #000000;
}

.company-section-subtitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.message-heading {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.message-text {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.message-author {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    text-align: right;
}

.message-author-sub {
    font-size: 12px;
}

/* 会社情報セクション */
.outline-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.underline {
    width: 60px;
    height: 3px;
    background-color: #000000;
    border: none;
    margin: 0 auto 40px;
}

.outline-table {
    width: 100%;
    border-collapse: collapse;
    background-color: inherit;
    font-size: 20px;
}

.outline-table th, .outline-table td {
    padding: 15px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: left;
}

.outline-table th {
    white-space: nowrap; /* 改行を防ぐ */
    font-weight: bold;
    color: #333;
}
.outline-table tr:not(:last-child) td, .outline-table tr:not(:last-child) th {
    border-bottom: 1px solid #e0e0e0;
}

.history-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
}

.history-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    background-color: #f9f9f9;
}

.timeline {
    list-style: none;
    padding: 0;
}

.timeline > li {
    margin-bottom: 80px;
}

/* 会社情報ページ */
.access-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.p-company__access {
    display: flex;
    flex-wrap: wrap;
    margin: 26px 0;
}

.p-company__access__body {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.p-company__access__h {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.p-company__access__address {
    font-size: 1rem;
    margin-bottom: 20px;
}

.p-company__access__txt {
    font-size: 0.95rem;
    text-align: left;
}

.p-company__access__map {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.p-company__access__map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.c-btn02 {
    display: flex;
    position: relative;
    align-items: center;
}

.c-btn02.--right {
    justify-content: flex-end;
}

.c-btn02::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    background-color: #00A53D;
    -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
            clip-path: polygon(0 0, 100% 50%, 0 100%);
    margin-right: 3px;
}

.label.c-btn02 {
    margin-top: 10px;
    color: #000000;
    text-decoration: none;
    font-size: 0.8rem;
    text-align: right;
    font-weight: bold;
}


.label.c-btn02:hover {
    border-radius: 5px;
    text-decoration: none;
}

/* 採用情報ページ */
.recruitment-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recruitment-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.recruitment-underline {
    width: 100%;
    height: 2px;
    background-color: #000;
    border: none;
    margin-bottom: 20px;
    font-weight: bold;
}

.recruitment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    color: #333;
}

.recruitment-table th,
.recruitment-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.recruitment-table th {
    width: 25%;
    font-weight: bold;
    color: #333;
    font-size: 18px;
    white-space: nowrap;
}

.recruitment-table ul {
    padding-left: 20px;
    margin: 0;
}

.recruitment-table ul li {
    list-style-type: disc;
    margin-bottom: 8px;
}

.recruitment-table ul li:last-child {
    margin-bottom: 0;
}

.section-subtitle-recruit {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    font-style: italic;
}

.works-container {
    max-width: 1080px;
    margin: 20px auto;
    padding: 100px 20px;
}

.project-summary {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    max-width: 1080px;
    overflow: hidden;
    padding-bottom: 40px;
    border-bottom: 1px solid #ccc;
}

.project-top-image {
    flex: 1 1 100%;
    text-align: center;
}

.project-top-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

.project-top-details {
    flex: 1 1 100%;
    margin-top: 20px;
}

.project-top-details h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.project-top-details h5 {
    margin-bottom: 10px;
}

.project-top-details p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 5px 0;
}

.project-info {
    display: flex;
    flex-wrap: wrap;
}

.info-group {
    flex: 1 1 calc(50% - 20px); /* PC画面で横並びにするための設定 */
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #666;
    padding: 5px 0;
}

.label {
    flex: 0 0 120px; /* ラベルの固定幅 */
    font-weight: bold;
    color: #333;
}

.value {
    flex: 1; /* 内容部分を可変幅に */
    text-align: left;
}

.detailbox {
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
}

.detailbox h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.detailbox p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.elementBox {
    font-size: 1.2rem;
    color: #000;
    margin: 30px 0;
}

.elementBox h4 {
    color: #666;
    margin: 10px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 0; /* 余白をゼロに */
    justify-content: space-between;
}

.col-xs-12 {
    flex: 1 1 100%;
}

.col-sm-6 {
    flex: 1 1 48%;
    text-align: center;
}

.item {
    margin-bottom: 20px;
}

/* 画像のスタイル */
.img-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
    height: 400px; /* 画像の高さを統一 */
    
}

.img-responsive {
    width: 100%; /* 親要素に合わせる */
    height: 100%;
    object-fit: cover; /* アスペクト比を保ちながらサイズを調整 */
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

/* ラベルのスタイル */
.before-label  {
    position: absolute;
    bottom: 10px; /* 画像の右下に配置 */
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* 半透明の背景色 */
    color: #fff; /* 白い文字 */
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.after-label  {
    position: absolute;
    bottom: 10px; /* 画像の右下に配置 */
    right: 10px;
    background-color: #fff; /* 半透明の背景色 */
    color: #000; /* 白い文字 */
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* 画像間の余白 */
.col-sm-6:not(:last-child) {
    margin-right: 1%; /* 画像間のスペースを調整 */
}

.work-button-container {
    display: flex;
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center; /* 垂直方向に中央揃え（必要な場合） */
    margin: 30px 0; /* 上下に余白を追加 */
}

/* ボタン本体 */
.arrow-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative; /* 子要素の位置調整用 */
    padding: 15px 40px; /* ボタン内余白 */
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 50px;
    background-color: #fff;
    transition: all 0.3s ease;
    width: 280px; /* 固定幅を指定 */
}

/* ボタンホバー時 */
.arrow-button:hover {
    background-color: #000;
    color: #fff;
}

/* 矢印部分 */
.arrow-right {
    position: absolute;
    right: 20px; /* ボタンの右端に寄せる */
    font-size: 18px;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.arrow-left {
    position: absolute;
    left: 20px; /* ボタンの左端に寄せる */
    font-size: 18px;
    font-weight: normal;
    transition: transform 0.3s ease;
}

/* ボタン中央のテキスト */
.text {
    margin: 0 auto;
}

/* 矢印ホバー時の動き */
.arrow-button:hover .arrow {
    transform: translateX(-10px); /* 左方向に移動 */
}

.arrow-button:hover .arrow-right {
    transform: translateX(5px); /* 左方向に移動 */
}

/* フッター */
#footer {
    background-color: #E6E8EA;
    color: #333;
    padding: 40px 0;
    font-family: sans-serif;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-img img {
    max-width: 260px;
}

.footer-text-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-left: 60px;
    margin-right: 35px;
    transform: translateX(20px);
    font-weight: bold;
}

.footer-menu {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    position: relative;
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.footer-menu li a:hover::after {
    width: 100%;
}

.footer-menu li a:hover {
    color: #555;
}


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

.footer-company-info {
    font-size: 16px;
    text-align: left;
    margin: 5px 0;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #333;
    margin-top: 20px;
}

.footer-social-icons {
    /* margin: 20px 0; */
    text-align: center;
}

.footer-social-icons a {
    margin: 0 10px;
    font-size: 30px; /* アイコンのサイズ */
    color: #000; /* アイコンの色 */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social-icons a:hover {
    color: #fff; /* ホバー時の色 */
}

.fadein {
    opacity: 0;
    transform: translate(0, 0);
    transition: all 2.5s;
}

.fadein.fadein-bottom {
    transform: translate(0, 30px);
}

.fadein.scrollin {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .img-frame {
        width: 100%;
        height: 200px;
        margin-top: 60px;
    }

    .pc.hide_sp.top {
        padding: 30px 5px;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }

    .cf {
        justify-content: center;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        max-width: 170px;
    }

    /* デフォルトでメニューを非表示にする */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        background-color: #f9f9f9;
        padding-top: 60px;
        gap: 45px;
        text-align: center;
        z-index: 900; /* ロゴとハンバーガーより下 */
    }

    /* ハンバーガーメニューがアクティブなときだけメニューを表示 */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a[href="contact.php"] {
        background-color: #f9f9f9;
        color: #000;
    }
    
    .nav-menu li a[href="contact.php"] span {
        color: #000;
    }

    /* ハンバーガーメニューボタンを表示 */
    .hamburger {
        display: flex;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 1100;
    }

    .mission.fadein {
        opacity: 1 !important; /* 常に表示状態にする */
        transform: translate(0, 0) !important; /* アニメーションを無効化 */
        transition: none !important; /* アニメーションを完全に無効化 */
    }

    .service-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .service-item h3 {
        font-size: 1.0rem;
    }
    .service-item p {
        font-size: 0.8rem;
    }

    .section-container-text-works {
        padding: 10px 20px;
    }

    .contact-title {
        font-size: 28px;
    }
    .contact-subtitle {
        font-size: 18px;
    }
    .contact-method h3 {
        font-size: 16px;
    }
    .contact-item {
        flex-direction: column;
        align-items: center;
    }
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    .project-details h3 {
        font-size: 15px;
    }
    .project-details p {
        font-size: 12px;
    }

    .section-container-access {
        margin: 60px auto 0 auto;
    }

    .section-container {
        flex-direction: column;
        align-items: center;
        padding: 20px 20px;
    }
    .project-item {
        width: 100%;
        max-width: 300px;
        height: 400px;
    }

    .project-image {
        height: 200px;
    }

    .section-title {
        font-size: 28px;
    }
    .section-subtitle {
        font-size: 14px;
    }
    .top-mission {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .section-text {
        font-size: 14px;
    }

    .main-visual-company {
        height: 300px;
    }

    .text-overlay h1 {
        font-size: 32px;
    }

    .text-overlay p {
        font-size: 18px;
    }

    .message-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .message-image {
        width: 100%; /* 画像エリアを全幅に */
    }

    .message-content {
        width: 100%; /* テキストエリアを全幅に */
    }

    .message-title {
        font-size: 28px;
    }

    .message-heading {
        font-size: 20px;
    }

    .message-text {
        font-size: 14px;
        text-align: left;
    }
    .company-section-title {
        font-size: 26px;
        font-weight: bold;
        color: #000000;
    }
    
    .company-section-subtitle {
        font-size: 16px;
        color: #333;
        margin-bottom: 15px;
    }

    .outline-title {
        font-size: 28px;
    }
    .outline-subtitle {
        font-size: 16px;
    }
    .outline-table th, .outline-table td {
        padding: 10px;
        font-size: 14px;
    }

    .timeline-date {
        font-size: 1.2em;
    }
    .timeline-era {
        font-size: 0.8em;
    }

    .timeline-content h3 {
        font-size: 1em;
    }

    .timeline > li {
        margin-bottom: 40px;
    }

    .p-company__access {
        flex-direction: column;
    }

    .p-company__access__body,
    .p-company__access__map {
        padding: 15px;
    }

    .p-company__access__h {
        font-size: 1.2rem;
    }

    .p-company__access__address {
        font-size: 0.9rem;
    }

    .p-company__access__txt {
        font-size: 0.85rem;
    }

    .p-company__access__map iframe {
        height: 250px;
    }

    .label.c-btn02 {
        font-size: 0.6rem;
        padding: 2px 15px;
    }

    .recruitment-section{
        margin: 20px 10px;
    }
    .recruitment-title {
        font-size: 20px;
    }
    .recruitment-table th,
    .recruitment-table td {
        font-size: 14px;
        padding: 10px;
    }
    .section-subtitle-recruit {
        font-size: 18px;
    }

    .info-group {
        flex: 1 1 100%; /* モバイルではグループ全体を縦並び */
    }

    .img-container {
        height: 250px;
    }

    .works-container {
        padding: 60px 20px 10px 20px;
    }
    .project-top-details h3 {
        font-size: 18px;
    }
    .project-top-details h5 {
        font-size: 12px;
    }
    .info-item {
        font-size: 14px;
    }
    .detailbox h3 {
        font-size: 18px;
    }
    .detailbox p {
        font-size: 14px;
    }
    .elementBox h4 {
        font-size: 1rem;
    }
    .arrow-button {
        font-size: 12px;
        width: 200px; /* 固定幅を指定 */
    }
    .arrow-right {
        font-size: 14px;
    }
    .arrow-left {
        font-size: 14px;
    }

    .footer-img img {
        max-width: 180px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .footer-text-content {
        align-items: center;
        margin-left: 0;
        margin-top: 40px;
    }
    .footer-menu {
        justify-content: center;
    }
    .footer-menu li a {
        font-size: 14px;
    }
    .footer-company-info, .footer-menu ul {
        text-align: center;
    }
    .footer-company-info {
        font-size: 14px;
    }
    .footer-copyright {
        font-size: 10px;
    }

}

@media (min-width: 840px) {
    .timeline > li {
        overflow: hidden;
        margin: 0;
        position: relative;
        display: flex;
        align-items: flex-start;
    }
    .timeline-date {
        width: 240px;
        text-align: center;
        margin-top: 20px;
        font-weight: bold;
        font-size: 2.2em;
        font-family: paralucent, sans-serif;
    }
    .timeline-era {
        font-size: 0.8em;
        color: gray;
        display: block;
        margin-top: 5px;
        text-align: center;
        position: absolute;
        top: 70px;
        left: 15%;
        transform: translateX(-50%);
    }
    .timeline-content {
        width: 75%;
        float: left;
        border-left: 3px #e5e5d1 solid;
        padding-left: 40px;
        padding-bottom: 80px;
    }
    .timeline-content h3 {
        margin-top: 20px;
        font-size: 1.2em;
        line-height: 2;
    }
    .timeline-content p {
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1.6;
    }
    .timeline-content:before {
        content: '';
        width: 12px;
        height: 12px;
        background: #6fc173;
        position: absolute;
        left: 218px;
        top: 40px;
        border-radius: 100%;
        border: 2px solid white;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    .timeline-content h3 {
        font-size: 1.1em;
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .service-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .main-visual-company {
        height: 250px;
    }

    .text-overlay h1 {
        font-size: 24px;
    }

    .text-overlay p {
        font-size: 16px;
    }
}

.section-container-services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;  
    margin-bottom: 60px; 
}

.section-container-services h2 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 40px;
    font-style: italic;   
}

.section-subtitle-services {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 60px;
    font-style: italic;
}

.service-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.service-section p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 60px;
    font-style: italic;   
}

.service {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.service:nth-child(even) {
    flex-direction: row-reverse;
}

.service img {
    flex: 1 1 50%;
    max-width: 50%;
    height: auto;
}

.service-content {
    flex: 1 1 50%;
    padding: 50px 30px;
    text-align: left;
}
.service-content h2 {
    font-size: 24px;
    color: #000;
    margin-bottom: 15px;
    border-bottom: 1px solid #555 ;
}

.service-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.achievements {
    max-width: 1200px;
    margin: 0 auto;
}

.achievements h3 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 100px;
    margin-bottom: 40px;
    font-style: italic; 
    text-align: left;
    border-bottom: 1px dashed #555;
}

.row-service {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.graph-heading {
    font-size: 20px;
    font-weight: bold;
    font-style: italic; 
    text-align: left;
    margin-bottom: 20px;
}

.graph-comment {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}


@media screen and (max-width: 768px) {
    .section-container-services { 
        margin-bottom: 30px; 
    }

    .section-subtitle-services {
        font-size: 14px;
        margin-bottom: 40px;
        padding: 0px 10px;
        text-align: left;
    }
    
    .section-container-services h2 {
        font-size: 20px;
        text-align: left;
        padding: 0px 10px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .service-section p {
        font-size: 14px;
        text-align: left;
        margin-bottom: 10px;
    }

    .service {
        flex-direction: column;
    }

    .service:nth-child(even) {
        flex-direction: column;
    }

    .service img, .service-content {
        flex: 1 1 100%;
    }

    .service img {
        max-width: 300px;
        margin: 0 auto;
        height: 200px;
    }

    .service-content {
        padding: 10px 25px 40px 25px;
    }

    .service-content h2 {
        font-size: 18px;
    }

    .service-content p {
        font-size: 14px;
    }

    .achievements {
        padding: 0px 20px;
    }

    .achievements h3 {
        font-size: 22px;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .graph-heading {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .graph-comment {
        font-size: 12px;
        text-align: left;
    }

}
