@charset "utf-8";

/* =Reset default browser CSS.
Based on work by Eric Meyer:http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, td{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;}
:focus{outline:0;}

ol, ul{list-style:none;}
table{border-collapse:separate;border-spacing:0;}
caption, th, td{font-weight:normal;text-align:left;}
blockquote:before, blockquote:after,q:before, q:after{content:"";}
blockquote, q{quotes:"" "";}
a img{border:0;}
figure{margin:0}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, section{display:block;}
/* -------------------------------------------------------------- */

html {overflow-y:scroll;
	font-size:112.5%;      /* PC: 18px 相当 */
}


/* ヘッダー
------------------------------------------------------------
------------------------------------------------------------*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    background-color: #1EAC4B;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.1);
}

  header img {
    height: auto;
    width: clamp(200px, 40vw, 591px); 
  }

nav {
    display: flex;
}

nav a {
   text-decoration: none;
    color: #FFFFFF;
    font-size: 1.0em;
}

/* --------------------------------------------------
   Navigation menu & hamburger
   --------------------------------------------------*/
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 2rem;
}

.nav-item a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.hamburger {
  display: none; /* Hide by default */
  cursor: pointer;
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 1001;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bar {
  display: block;
  width: 24px;  /* unified length fits inside 40px circle */
  height: 3px;
  margin: 3px auto;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}



/* Mobile navigation */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 70%;
    height: 100vh;
    z-index: 1000;
    flex-direction: column;
    background: linear-gradient(135deg, #1EAC4B 0%, #0F846E 100%);
    justify-content: center;
    align-items: center;
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
  }
  .nav-menu.active { right: 0; }
  .nav-item {
    margin: 1.2rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
  .nav-item:last-child{ border-bottom:none; }
  .nav-item a {
      color: #ffffff;
      font-size: 1.3rem;
      letter-spacing: 0.05em;
      font-weight: 600;
      display: block;
      width: 100%;
      padding: 0.8rem 0;
  }
  .hamburger { 
    display: flex; /* Show as flex container on mobile */
  }
  .hamburger .bar { transform-origin: center; }
  .hamburger.active .bar:nth-child(2) { opacity:0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(5px) rotate(45deg) scaleX(0.55);}
  .hamburger.active .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg) scaleX(0.55);}

  /* Scrolled state for hamburger on mobile */
  .hamburger.scrolled {
    background-color: #1EAC4B;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: background .3s, box-shadow .3s;
  }
  /* Active and scrolled state */
  .hamburger.active.scrolled {
    background-color: #1EAC4B;
  }
}

/* --------------------------------------------------
   History box text weight
   --------------------------------------------------*/
.history-box .text, .history-row .text {
  font-weight: 300;
}

/* --------------------------------------------------
   Responsive Gcard container
   --------------------------------------------------*/
.Gcard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  justify-items: center;
}
.Gcard {
  width: 100%;
  max-width: 320px;
}

body {
    margin-top: 100px; 
}

header.scrolled:not(.nav-active) {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);        /* Safari対応 */
    transition: all 0.3s ease;
}

header.scrolled:not(.nav-active) nav a {
    color: #1EAC4B;
}



/* トップページ用のヘッダー */
header.no-js-effect {
  position: absolute; /* 追従しない */
  background: transparent; /* 背景は透明 */
  width: 100%;
  top: 0;
  z-index: 10; /* .main-visualより上になるように */
  box-shadow: none; /* 影などがあれば消す */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* レスポンシブ デスクトップ900以上*/
@media (max-width: 900px) {
	.container{
	  max-width:1200px;
	  margin:0 auto;
	  display:grid;
	  gap:2rem;
	}
    .main-visual {
        height: 400px;
        
    }

    header {
        flex-direction: row;
        text-align: center;
		    height: 100px;
    }

    nav a {
        margin-left: 0;
        display: inline-block;
        padding: 10px 15px;
        font-size: 1.0em;
    }

}


.hamburger .bar {
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 2px;
}

/* レスポンシブ タブレット & 小型PC (～899px)*/
@media screen and (max-width: 900px) {

  html{font-size:106.25%;}       /* タブレット: 17px */

}



/* フッター
------------------------------------------------------------
------------------------------------------------------------*/
footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 50px;
    background-color: #1EAC4B;
    color: #FFFFFF;
}

footer .left-column,
footer .right-column {
    width: 48%;
}


footer .right-column {
    text-align: right;
}

.footer-logo {
    width: 400px;
    height: auto;
    margin-bottom: 8px;
}

.copyright {
    font-size: 0.8em;
    font-weight: 300;
    font-family: Arial, sans-serif;
    margin-top: 0.8em;
}


/* レスポンシブ */
@media (max-width: 900px) {

    footer {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        text-align: center;
    }

    footer .left-column,
    footer .right-column {
        width: 100%; 
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-logo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 10px;
    }
}



/*各ページのふわっと出てくるアニメーション
------------------------------------------------------------
------------------------------------------------------------*/
#animation {
  animation: fade-in 2s;
  animation-fill-mode: forwards;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



/* topページ
------------------------------------------------------------
------------------------------------------------------------*/

/* topメイン画像
------------------------------------------------------------
------------------------------------------------------------*/
.main-visual {
  position: relative;
  background-image: url('../images/top.jpg');
  background-size: cover;
  background-position: center;
  height: 1120px;
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.text-overlay {
  position: absolute;
  top: 30%;
  left: 10%;
  font-family: 'Kozuka Gothic Pr6N', sans-serif;
  color: #000;
  font-size: clamp(1.6rem, 5vw, 3rem); /* PC$301Cモバイルでバランス良く可変 */
  font-weight: 250;
  line-height: 1.5;
  z-index: 2; /* ハンバーガーメニューより下に */
}

@media (max-width: 600px) {
  .text-overlay {
    top: 25%; /* モバイルでは少し上に */
    left: 6%;
  }
}

.history-box {
  position: absolute;
  top: 60%;
  left: 10%;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  max-width: 900px;
  font-family: 'Kozuka Gothic Pr6N', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #000;
  box-sizing: border-box;
  z-index: 9;
  border-radius: 5px;
}

.history-layout {
  /*display: flex;*/
  align-items: center;
}

.history-label {
  width: 100px;
  text-align: left;
  font-weight: bold;
  font-size: 1.2rem;
}

.history-list {
  /*display: flex;*/
  flex-direction: column;
  gap: 10px;
}

.history-row {
  display: flex;
  gap: 1em;
}

.history-row .date {
  width: 75px;
  white-space: nowrap;
}

.history-row .text {
  flex: 1;
}




/*topページ ふわっと表示
------------------------------------------------------------
------------------------------------------------------------*/
/* 初期状態：透明・下にずらす */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 表示されたら透明度1、位置を元に戻す */
.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}



/* 一番上へ戻るボタン
------------------------------------------------------------
------------------------------------------------------------*/
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none; /* 最初は隠す */
  background-color: #1EAC4B;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
  z-index: 10000;
}

#back-to-top.show {
  display: block;
  opacity: 1;
}

#back-to-top.hide {
  opacity: 0;
  transition: opacity 0.3s ease;
}


/*topのお知らせ*/
.main-visual .announcement {
  width: 100%;
  max-width: 100vw;
  border-radius: 0;
  overflow-wrap: break-word;
  box-sizing: border-box;
  padding: 0;

  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(17, 142, 52, 0.5);
  display: flex;
  height: 75px;
  padding: 10px 10%;
  box-sizing: border-box;
  color: white;
  align-items: center;
  gap: 1em;
  font-size: 1em;
}

.main-visual .announcement-label {
  flex: 0 0 auto;
  font-weight: bold;
  text-align: left;
  font-size: 1.2em;
  min-width: 90px;
}

.main-visual .announcement-detail {
  flex: 1;
  font-weight: 300;
  font-size: 1.2em;
  text-align: left;
}


/* topの見出し*/
.midashi-section {
  text-align: center;
  margin: 4em auto;
}

.midashi-title {
  font-family: 'Yu Gothic', '游ゴシック', YuGothic, sans-serif;
  font-weight: bold;
  font-size: 2.5em;
  color: #0F846E;
}

.midashi-subtitle {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 1.8em;
  margin-top: 0.5em;
  color: #18937B;
}

.midashi-description {
  font-family: 'メイリオ', Meiryo, sans-serif;
  font-size: 1.1em;
  max-width: 1000px;
  margin: 2em auto 0 auto;
  line-height: 1.8;
  text-align: center;
}



/* topの事業内容
------------------------------------------------------------*/
.service-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  text-align: center;
}

.service-item {
  max-width: 180px;
  flex: 1 1 160px;
}

.service-item img {
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  height: auto;
}

.service-item p {
  font-family: "メイリオ", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}



/* topのごあいさつ
------------------------------------------------------------*/
.greeting {
  background-image: url("../images/townillust.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  min-height: 1200px;
  text-align: center;
  padding: 60px 0;
}

.greeting-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.greeting-images img {
  width: 200px;
  height: auto;
}

.greeting .midashi-section {
  margin-top: 30vh;
}

.Gcard-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allow wrapping to new rows */
  gap: 20px;
  max-width: 1100px; /* slightly narrower so 4 cards + gaps fit */
  margin: 0 auto;
}

.Gcard {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 260px; /* fits 4 cards in 1100 container inc gaps */
  flex: 0 1 260px;
  transition: transform 0.3s;
}

.Gcard img {
  width: 100%;
  height: auto;
  display: block;
}

.Gcard-content {
  padding: 16px;
  background-color: #6BBFB1;
}

.Gcard-content h3 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 20px;
  color: #FFFFFF;
}


/* 2カラム (～899px)*/
@media (max-width: 900px) {
  .Gcard {
    width: calc(50% - 20px); /* two cards per row accounting for gap */
    flex: 0 1 calc(50% - 20px);
  }
}

/* レスポンシブ スマホ (～599px)*/
@media (max-width: 600px) {
	html{font-size:100%;} 		/* スマホ: 16px */
  .container{
    display:block;                     /* 1カラム縦並び */
    padding:0 1rem;
  }
  nav ul{flex-direction:column;}       /* ナビ縦並び */
  .Gcard-container {
    flex-direction: column;
    align-items: center;
  }

  .Gcard {
    width: 90%;
    max-width: 400px;
  }

  .Gcard-content h3 {
    font-size: 18px;
  }
}



/* topの会社概要
------------------------------------------------------------*/
@media (max-width: 600px) {
  .companyT {
    height: 160px;
    min-height: 120px;
    max-height: 180px;
  }

}

.companyTG {
  width: 100vw;
  min-height:100vh;
  background: url("../images/building.jpg") center top/cover no-repeat;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: none;
  position: relative;
}

.companyTG-content {
  position: absolute;
  top: 12%;
  right: 5%; /* デスクトップでは右寄せ */
  left: auto;
  transform: none;
  z-index: 2;
  max-width: 30vw;
  min-width: 320px;
  text-align: left;
  color: #222;
}

@media (max-width: 600px) {

  .companyTG-content {
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 92vw;
    background: rgba(255, 255, 255, 0.88);
    padding: 1.5em 1em;
    border-radius: 1em;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  }
}

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

.companyTG-text {
  background: rgba(255,255,255,0.9);
  padding: 2em 4vw;
  font-size: 2em;
  color: #222;
  border-radius: 1em;
  max-width: 90vw;
  text-align: center;
  word-break: break-all;
  box-sizing: border-box;
}

.midashi-titleTG {
  color: white;
  font-family: "serif", "Times New Roman", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS 明朝", "MS Mincho";
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
}

.companyT {
  width: 100vw;
  min-height: 80px;
  height: auto;
  background: url("../images/companyT.png") center top/cover no-repeat;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.companyT-container {
  position: relative;
}

.companyT-text {
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: transparent;
  margin: 0;
  padding: 0.7em 2vw;
  line-height: 1.2;
} 



/* topの人材募集
------------------------------------------------------------*/
.mincyo-titleT {
    text-align: left;
    font-family: 'BIZ UD明朝 Medium', 'BIZ UDMincho Medium', '游明朝', 'Yu Mincho', serif;
    color: #0F846E;
    font-size: 2.5em;
    margin-top: 5em;
    margin-left: 8vw;
}

.recruitT-container {
    width: 100%;
    min-height: 450px;
    height: auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(108deg, #fff 55%, #cbf3e0 45%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recruitT-text-content {
    width: 45%;
    padding-left: 5%;
    color: #333;
    z-index: 10;
    text-align: left;
}

.recruitT-text .midashi-title {
    font-family: 'Yu Gothic', '游ゴシック', YuGothic, sans-serif;
    font-weight: bold;
    font-size: 2.5em;
    color: #0F846E;
}

.recruitT-text .midashi-subtitle {
    font-family: 'BIZ UDPGothic', sans-serif;
    font-size: 1.8em;
    margin-top: 0.5em;
    color: #18937B;
}

.recruitT-text .rT3 {
    font-family: "Meiryo", sans-serif;
    font-size: 1.5em;
    margin-top: 1.5em;
}

.recruitT-text .right-container {
    justify-content: flex-start;
    margin-top: 1em;
}

.recruitT-image-wrapper {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.recruitT-image {
    height: 90%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* レスポンシブ: 900px */
@media (max-width: 900px) {
    .recruitT-container {
        min-height: 350px;
        background: linear-gradient(108deg, #fff 50%, #cbf3e0 50%);
    }

    .recruitT-image {
        height: 85%;
    }
}

/* レスポンシブ: 600px */
@media (max-width: 600px) {
    .mincyo-titleT {
        text-align: center;
        margin-left: 0;
        margin-top: 2em;
        font-size: 1.8em;
    }

    .recruitT-container {
        flex-direction: column;
        height: auto;
        background: none;
        gap: 20px;
        padding: 1em 0;
    }

    .recruitT-text-content {
        width: 92vw;
        max-width: 92vw;
        background: rgba(255, 255, 255, 0.88);
        padding: 1.5em 1em;
        border-radius: 1em;
        box-shadow: 0 4px 24px rgba(0,0,0,0.1);
        text-align: left;
        position: static;
        transform: none;
    }

    .recruitT-text .right-container {
        margin-top: 2em;
    }

    .recruitT-image-wrapper {
        position: static;
        width: 92vw;
        height: auto;
                background: linear-gradient(108deg, #fff 30%, #cbf3e0 30%); /* 白30%, 緑70% */
        box-sizing: border-box;
    }

    .recruitT-image {
        position: static;
        width: 100%;
        height: auto;
    }
}

.rT3 {
  font-family: "Meiryo", sans-serif;
    font-size: 1.5em;
    margin-top: 3em;
}



/* ボタンスタイル（詳しくはこちら）
------------------------------------------------------------*/
/* センター配置*/
.center-container {
    display: flex;
    justify-content: center;
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid black;
    background-color: white;
    color: black;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background-color: black;
    color: white;
}



/* ボタンスタイル（詳しくはこちら）
------------------------------------------------------------*/
/*右寄せ*/
.right-container {
    display: flex;
    justify-content: right;
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 6em;
    border: 1px solid black;
    background-color: white;
    color: black;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background-color: black;
    color: white;
}

.service-table {
    margin: 0 auto;
}

.contact-text-link {
    color: #000;
    text-decoration: none;
}

/* イメージ画像と見出し
------------------------------------------------------------*/
.header-visual {
    position: relative;
    top: 100px;
    width: 100%;
    height: auto;
}

.header-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.main-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #0F846E;
    z-index: 2;
    text-align: left;
}

.main-line1 {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
    font-family: "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;
}

.main-line2 {
    font-size: 2.0em; /* 小さくする */
    margin: 0;
}


@media (max-width: 600px) {
  .main-text {
    font-size: 0.7em;
  }


}



/* 明朝体の見出し（大）
------------------------------------------------------------*/
.mincyo-title {
    text-align: center;
    font-family: 'BIZ UD明朝 Medium', 'BIZ UDMincho Medium', '游明朝', 'Yu Mincho', serif;
    color: #0F846E;
    font-size: 2.5em;
    margin-top: 5em;
}

.mincyo-title {
  line-height: 2;
}

@media (max-width: 600px) {
  .mincyo-title {
    font-size: 1.5em;
    margin-top: 6em; 
  }
}



/* 緑の明朝体の見出し（中）
------------------------------------------------------------*/
h3.heading2 {
  font-size: 1.8em;
  font-weight: bold;
  color: #0F846E;
  padding: 20px 1.5em 3px;
  margin-top: 24px;
  font-family: 'Yu Mincho', '游明朝', 'serif';
}




/* 背景の枠（薄い緑）
------------------------------------------------------------*/
.recruit-box {
    background-color: rgba(30, 170, 57, 0.1);
    max-width: 1760px;
    width: 90%;
    margin: 2em auto;
    padding: 2em;
    border-radius: 8px;
    box-sizing: border-box;
    border-radius: 0;
}



/* 背景の枠（薄い白）
------------------------------------------------------------*/
.kwaku {
    background-color: rgba(255, 255, 255, 0.7);
    max-width: 1595px;
    width: 95%;
    margin: 1em auto 2em auto;
    padding: 2em;
    border-radius: 8px;
    box-sizing: border-box;
    border-radius: 0;
}



/* 背景画像（波）
------------------------------------------------------------*/
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    background-image: url("../images/wave.png");
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}



/*全体の要素の下に余白
------------------------------------------------------------*/
#wrapper {
    margin-bottom: 200px;  /* ← 下に80pxの余白を追加 */
}



/*会社概要ページ
------------------------------------------------------------
------------------------------------------------------------*/
body.company_page {
    background-image: url("../images/building_c.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}


/*会社概要ページのテーブル
------------------------------------------------------------*/
.company-info dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 10px;
  column-gap: 20px;
  font-family: "メイリオ", Meiryo, sans-serif;
  margin-top: 1em;
}

.company-info dt {
  font-weight: bold;
}

.company-info dd {
  margin: 0;
}




/*会社概要ページの地図
------------------------------------------------------------*/
.flex-box {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  align-items: flex-start;
  gap: 20px;
}

.table-wrapper {
  flex: 1;
  min-width: 300px;
}

.map-container {
  flex: 1 1 300px; /* Allow the map to grow and shrink */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the map and link */
  gap: 8px;
}

.map-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Add some rounded corners */
}

.map-link {
  font-weight: bold;
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.map-link:hover {
  color: #0056b3;
  text-decoration: underline;
}



/*事業内容のページ
------------------------------------------------------------
------------------------------------------------------------*/
/* 切り替えのタブ */
.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  margin: 20px auto;
  width: 1600px;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-sizing: border-box;
  padding-top: 20px; /* タブと箱の間のスペース */
  position: relative;
}

/* タブのボタン風スタイル */
.tab-label {
  color: white;
  background: lightgray;
  text-shadow: 0 -1px 0 rgba(0,0,0,.2);
  white-space: nowrap;
  text-align: center;
  padding: 15px 1em;
  order: -1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  flex: 1;
  font-size: 1.5rem; 
  border-radius: 12px; /* 角丸に */
  margin-bottom: 20px;  /* 箱との間隔 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* 少し影をつけるとボタン感アップ */
  transition: background-color 0.3s ease;
}

/* 右マージン（最後以外） */
.tab-label:not(:last-of-type) {
  margin-right: 5px;
}

/* アクティブタブ */
.tab-switch:checked + .tab-label {
  background: #1DAC4B;
  box-shadow: 0 4px 8px rgba(29, 172, 75, 0.6);
}

/* コンテンツは変えずにそのまま */
.tab-content {
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.tab-switch:checked + .tab-label + .tab-content {
  height: auto;
  overflow: auto;
  padding: 15px;
  opacity: 1;
  transition: .5s opacity;
  box-shadow: 0 0 3px rgba(0,0,0,.2);
}

/* ラジオボタンは非表示 */
.tab-switch {
  display: none;
}



/* タイトルとテキスト */
.midashiJ-header {
  display: block;
  margin: 4em auto;
  max-width: 1600px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.midashiJ-title {
  font-family: 'BIZ UD明朝 Medium', '游明朝', 'Yu Mincho', serif;
  color: #0F846E;
  font-size: 1.5em;
  margin-bottom: 1em; /* タイトルと本文の間に余白を追加 */
  flex: none; /* 念のためflex設定を無効化 */
}

.midashiJ-text {
  font-size: 1.1em;
  line-height: 1.8;
  font-family: "メイリオ", Meiryo, sans-serif;
  flex: none;
}


/*社会システムのタブ内*/
.shakai-section {
  max-width: 1300px;
  margin: 3em auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.shakai-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  justify-items: center;
}

.shakai-images a {
  display: block;
}

.shakai-images img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.3s ease;
}


/*入札情報のタブ内*/
.nyusatsu-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1300px;
  margin: 3em auto;
}

.nyusatsu-images img {
  max-width: 100%;
  height: auto;
  flex-basis: 150px;
}

.nyusatsu-table {
  max-width: 1300px;
  margin: 3em auto;
  text-align: center;
  border-spacing: 40px 20px;
}

.nyusatsu-table img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.nyusatsu-table td {
  text-align: center;
  vertical-align: top;
  padding-top: 10px;
  font-family: "メイリオ", Meiryo, sans-serif;
}


.nyusatsu-2column {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1300px;
  margin: 3em auto;
  padding: 0 20px;
  box-sizing: border-box;
  align-items: flex-start;
}

.column-left {
  flex: 1 1 40%;
  min-width: 280px;
}

.column-left img {
  width: 100%;
  height: auto;
  display: block;
}

.column-right {
  flex: 1 1 55%;
  font-family: "メイリオ", Meiryo, sans-serif;
  font-size: 1.0em;
  line-height: 1.4;
}

.column-right .btn {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.6em 1.3em;
  background-color: #0F846E;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.column-right .btn:hover {
  background-color: #0d6e5c;
}



/*事業内容2のページ
------------------------------------------------------------
------------------------------------------------------------*/
.section-cardbg {
  background-color: rgba(255, 255, 255, 0.4); /* #F4F4F4 with 40% opacity */
  padding: 60px 20px;
  width: 100%;
}

.section-cardbg2 {
  background-color: rgba(237, 237, 237, 0.4); /* #F4F4F4 with 40% opacity */
  padding: 60px 20px;
  width: 100%;
}

.section-header {
  max-width: 1000px; /* card-container と同じ幅に */
  margin: 0 auto 40px; /* 上下に余白、中央寄せ */
  padding: 0 20px;     /* スマホなどの左右余白 */
  box-sizing: border-box;
}

.section-header h2 {
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;
  color: #0F846E;
  margin-bottom: 12px;
  font-size: 30px;
}

.section-header p {
  margin: 0;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 300px;
  flex-shrink: 0;
  transition: transform 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card p {
  padding: 16px;
  margin: 0;
  font-size: 14px;
}

.card-content {
  padding: 16px;
}

.card-content h3 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 16px;
  color: #333;
}

.card-content h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #333;
}

.card-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.card-content li {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}


/* 下の箇条書き*/
.section-footer {
  max-width: 1000px;
  margin: 20px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
}

.section-footer ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

#toshi,#douro,#kasen,#tool {
  scroll-margin-top: 140px;
}


/*事業案内タブ*/
.fixed-tab-group {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.fixed-tab {
  background-color: #1EAC4B;
  color: white;
  padding: 6px 2px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px 0 0 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 80px;
  width: 30px;
    display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixed-tab:hover {
  background-color: #169a3b;
}


/*レスポンシブ*/
@media (max-width: 600px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 400px;
  }

  .section-header {
    padding: 0 16px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .section-header p {
    font-size: 14px;
  }

  .card-content h3 {
    font-size: 18px;
  }

  .card-content h4 {
    font-size: 15px;
  }

  .card-content p,
  .card-content li {
    font-size: 14px;
  }

  .section-footer {
    width: 90%;
    max-width: 400px;
    margin-top: 20px;
    padding: 0;
  }
}


/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


/*ごあいさつページ
------------------------------------------------------------
------------------------------------------------------------*/
.container {
  position: relative;
  max-width: 1400px; /* 最大幅1400px */
  width: 90%;        /* 画面幅の90%を基本幅に */
  margin: 0 auto;
}

.background-img {
  width: 100%;
  display: block;
}

.overlay-center {
  position: absolute;
  top: 45%;
  left: 60px;
  transform: translateY(-50%);
  width: 60%;          /* 背景の65%まで */
  max-width: 950px;    /* 最大幅は900px */
  color: #000;
  box-sizing: border-box;
}

.message {
  font-family: 'Hiragino Mincho Pro', '游明朝', 'Yu Mincho', 'MS PMincho', serif;
  font-size: 28px;
  line-height: 1.6;

}

.overlay-bottom {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: #000;
  max-width: 600px;
  box-sizing: border-box;
}


.title {
  font-size: 14px;
  margin-bottom: 1em;
}
.sign {
  display: block;
  margin-bottom: 10px;
  width: 150px;
}

.name2{
  font-size: 14px;
  display: block;
  margin-bottom: 15px;
}

.profile {
  font-size: 14px;
  line-height: 1.5;
}

.greeting-text {
  font-family: 'Meiryo', sans-serif;
  max-width: 1400px; /* 最大幅1400px */
  width: 90%;        /* 画面幅の90%を基本幅に */
  margin: 40px auto 0;
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box; /* パディングなども幅内に */
}


.vision-heading {
  font-size: 24px;
  font-weight: bold;
  color: #0d3a25;
  margin-top: 40px;
  border-bottom: 2px solid #ccc;  /* 下線をつけても良い */
  padding-bottom: 5px;
}


.tech-service {
  font-size: 20px;
  font-weight: bold;
  color: #2b2b2b;
  margin-top: 25px;
}




/* レスポンシブ*/
@media screen and (max-width: 600px) {
  .overlay-center {
    width: 90%;       /* 小さい画面では広く使う */
    left: 20px;       /* 左の余白も狭く */
    max-width: none;  /* 最大幅制限解除 */
  }
  .message {
    font-size: 15px;  /* 文字サイズを少し小さく */
  }

  .overlay-bottom {
    position: static;       /* 絶対位置指定解除 */
    margin-top: 20px;       /* 上に余白を追加 */
    max-width: 90%;         /* 横幅を狭めてレスポンシブ対応 */
  }
  .container {
    padding-bottom: 150px;  /* 下部の余白を確保して重なり回避 */
  }
}


@media screen and (max-width: 600px) {
  .message {
    font-size: 12px;
  }
}




/* 求人ページ
------------------------------------------------------------
------------------------------------------------------------*/
.recruit-text {
    max-width: 1200px;
    width: 80%;
    margin: 60px auto 0 auto;
    text-align: left;
    font-family: "メイリオ", Meiryo, sans-serif;
    font-size: 1.2em;
    line-height: 1.8;
    box-sizing: border-box;
}

.recruit-text p {
    line-height: 1.4;
    margin-bottom: 1em;
}


/* 社員の声ボタン*/
.readmore_nyu {
    text-align: right;
    margin-top: 20px;
    max-width: 1760px;
    width: 90%;
}

.readmore_nyu a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1DAC4B;
    color: #FFFFFF;
    font-size: 1.1em;
     text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.readmore_nyu a:hover {
    background-color: #169a3b;
}



/*メールフォームのページ
------------------------------------------------------------
------------------------------------------------------------*/
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    font-family: "メイリオ", Meiryo, sans-serif;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form input[type="submit"] {
    background-color: #1EAC4B;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form input[type="submit"]:hover {
    background-color: #169a3b;
}

.contact-link {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: #f5f5f5;
    border-color: #1EAC4B;
}

.contact-link img {
    margin-right: 15px;
}

@media (min-width: 601px) {
    .contact-container {
        display: flex;
        justify-content: space-around;
    }
    .contact-item {
        width: 45%;
    }
}

.greeting-section {
    background-color: #F8F8F8;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 40px auto;
}

.content-image {
    width: 100%;
    order: 1;
    margin: 0 auto;
    max-width: 500px; /* Prevent image from becoming too large on mobile */
}

.content-text {
    width: 100%;
    order: 2;
    padding-top: 20px;
}

.content-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.content-text .message {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 20px;
}

@media (min-width: 901px) {
    .greeting-section {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .content-text {
        width: 60%;
        order: 1;
        padding-top: 0;
    }

    .content-image {
        width: 40%;
        order: 2;
        position: relative;
        max-width: none; /* Reset max-width for desktop */
    }

    .content-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, #F8F8F8, transparent);
        border-radius: 15px 0 0 15px;
    }
}

@media (max-width: 600px) {
    .content-text .message {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
}

@media (max-width: 600px) {
  .company-info dl {
    grid-template-columns: 1fr;
  }

  .company-info dt {
    margin-bottom: 0.5em;
  }
}

@media (max-width: 600px) {
  .engage-banner {
    width: 100%;
    height: auto;
  }
}

