@charset "utf-8";

/* new */
html {
  overflow-x: hidden;
  background-color: #3B4043;
  /* footerと同じ背景色 */
}

body {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  vertical-align: middle;
  color: #515151;
}

/* new */
main {
  background-color: #fff;
  /* または適切な背景色 */
  position: relative;
  z-index: 1;
}

/* サンプルボタン */

.sample_btn {
  display: block;
  width: 100%;
  /* ←固定幅を消す */
  max-width: 240px;
  /* ←必要なら上限だけ残す */
  margin: 30px auto;
  text-align: center;
  text-decoration: none;
  line-height: 45px;
  outline: none;
  color: #047649;
  background-color: #fff;
  position: relative;
  border: 1px solid #047649;
  transition: color 0.5s ease;
  box-sizing: border-box;
  /* ←重要 */

}

.sample_btn:hover {
  color: #fff;
}

.sample_btn:hover::before {
  transform: scaleY(1);
}

.sample_btn::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #047649;
  transform: scaleX(0);
  transition: all 0.5s ease;
  transition-property: transform;
}

.text {
  position: relative;
  font-size: 0.9rem;
}

/* 以下はレイアウト調整用 */
html {
  overflow-x: hidden;
  /* 全体で横スクロールを禁止 */
}

header {
  width: 100%;
}


.gnav {
  width: 100%;
  max-width: 1380px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  overflow: visible;
}

.gnav .gnav_flex {
  display: flex;
  align-items: center;
  list-style: none;
  justify-content: center;
  gap: 0;
  /* gapは不要。ボーダーで仕切る */
  margin: 0;
  padding: 0;
  overflow: visible;
}

.gnav_flex li {
  font-size: 14px;
  position: relative;
}

.gnav_flex li a {
  display: inline-flex;
  /* inline-flexに変更して幅を内容に合わせる */
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  /* 左右余白を確保して下線の幅も揃える */
  text-decoration: none;
  color: #333;
  position: relative;
  border-right: 1px solid #ccc;
  /* ボーダーをaに移動 */
}

.gnav_flex li:last-child a {
  border-right: none;
  /* 最後は線なし */
}

.gnav_flex li a:hover {
  color: #047649;
}

.gnav_flex li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  /* ボーダーと下線が詰まらないように少し下げる */
  left: 0;
  width: 100%;
  height: 2px;
  background: #047649;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  /* 横方向に縮小 */
  transform-origin: center bottom;
  /* 中央から伸びる */
}

.gnav_flex li a:hover::after {
  transform: scaleX(1);
  /* hoverで全幅に */
}

/* dropdown-menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 165px;
  z-index: 1000;
  border-top: 2px solid #047649;
}

.dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-right: none;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #047649;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown:hover>a {
  color: #047649;
}

/* 下向き三角の間隔を調整 */
.dropdown>a i {
  margin-left: 6px;
}

/* 上から出てくるヘッダー */
.fixed-header {
  position: fixed;
  top: -80px;
  left: 0;
  z-index: 20;
  transition: all 0.1s ease-in-out;
  visibility: hidden;
}

.fixed-header.is-show {
  top: 0;
  visibility: visible;
}

/* 採用情報ボタン（追従） */
.recruit_fixed_btn {
  position: fixed;
  right: 0;
  top: 60px;
  z-index: 100;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #047649, #0a9d5a);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(4, 118, 73, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

.recruit_icon {
  font-size: 20px;
  margin-bottom: 4px;
  color: #fff;
}

.recruit_icon i {
  color: #fff;
}

.recruit_text {
  font-size: 10px;
  font-weight: bold;
}

.recruit_fixed_btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(4, 118, 73, 0.4);
  color: #fff;
  text-decoration: none;
}

.recruit_fixed_btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 0;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}


/* SP用：下部固定採用情報ボタン */
@media screen and (max-width: 480px) {
  .recruit_fixed_btn {
    display: none !important;
  }

  .recruit_sp_fixed_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 54px;
    background: #047649;
    color: #fff;
    font-size: 1.1rem;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: filter 0.25s;
  }

  .recruit_sp_fixed_btn:active,
  .recruit_sp_fixed_btn:hover {
    filter: brightness(0.93);
  }

  .recruit_sp_fixed_btn .recruit_icon {
    font-size: 1.2em;
    margin-right: 0.7em;
    display: flex;
    align-items: center;
  }

  .recruit_sp_fixed_btn .recruit_text {
    font-size: 1em;
    letter-spacing: 0.04em;
    font-weight: 500;
    display: flex;
    align-items: center;
  }
}

@media screen and (min-width: 481px) {
  .recruit_sp_fixed_btn {
    display: none !important;
  }

  /* .recruit_fixed_btn は今まで通り（デフォルトは表示） */
}

.header_fixed {
  width: 100%;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  overflow: visible;
  background-color: rgba(255, 255, 255, 0.7);
}

#navArea {
  display: none;
}

.header_logo img {
  width: 100%;
  height: 30px;
  padding-left: 20px;
}



/* mvslider */

.mv {
  position: relative;
}

.slider_text {
  z-index: 10;
  position: absolute;
  left: 20%;
  top: 20%;
  width: calc(100% - 10%);
  /* leftと合わせて幅を調整 */
  height: 100%;
  pointer-events: none;
}

.slider_text h1 {
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  font-size: 3.9rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  color: #fff;
  margin-top: 20px;
  font-feature-settings: "palt";
}

.slider_text p {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  margin-top: 10px;
}


.slider_text img {
  max-width: 300px;
  width: 100%;
  height: auto;
}


.slider {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.slider div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  animation-name: slide-fade;
  animation-duration: 15s;
  animation-iteration-count: infinite;
}

.slider div span {
  position: absolute;
  font-size: 8rem;
  font-weight: 600;
  color: #fff;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 30% auto;
  text-align: center;
  line-height: 1.5;
}

@keyframes slide-fade {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    z-index: 0;
  }
}

.slider div:first-of-type {
  background-image: url("../img/09.jpg");
}

.slider div:nth-of-type(2) {
  background-image: url("../img/main_img12.jpg");
  animation-delay: 5s;
}

.slider div:last-of-type {
  background-image: url("../img/343da616ade55b424ad3cd9b407ce5f2-scaled.jpg");
  animation-delay: 10s;
}





.wrapper {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  overflow: visible;
}

/* 公成建設の想い */

.top_philosophy {
  background-color: #fff;
  padding-bottom: 60px;
  background-image: url("../img/kyoto-tower72.jpg");
  background-repeat: no-repeat;
  /* 画像をリピートしない */
  background-size: cover;
  /* セクションいっぱいに表示 */
  background-position: center center;
  /* 中央に配置 */
}


.top_philosophy_text {
  text-align: center;
}

.top_philosophy_text h1 {
  color: #000;
  font-size: 2.2em;
  text-align: center;
  font-weight: 600;
  padding: 100px 0 45px;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  position: relative;
  margin-bottom: 30px;
}

.top_philosophy_text h1::before {
  content: "Message";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 1rem;
  color: #047649;
  white-space: nowrap;
}

.top_philosophy_text h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #515151;
  margin-bottom: 20px;
}

.top_philosophy_text p {
  width: 70%;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  line-height: 2;
  margin: 0 auto 50px;
  color: #515151;
}

/* 広成建設について */

.top_about {
  background-color: #fff;
  padding-bottom: 60px;
  background-image: url("../img/DSC4727-1.png");
  background-repeat: no-repeat;
  /* 画像をリピートしない */
  background-size: cover;
  /* セクションいっぱいに表示 */
  background-position: center center;
  /* 中央に配置 */
}

.top_about h1 {
  color: #fff;
  font-size: 2.2em;
  text-align: center;
  font-weight: 600;
  padding: 100px 0 45px;
  letter-spacing: 0.2rem;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  position: relative;
  margin-bottom: 30px;
}

.top_about h1::before {
  content: "About";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
}

.top_about_flex {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}



.top_about_text {
  width: 48%;
  padding: 40px;
}

.top_about_text h2 {
  font-size: 1.9rem;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 20px;
  font-feature-settings: "palt";
}

.top_about_text p {
  font-size: 1rem;
  letter-spacing: 0.05rem;
  line-height: 2;
  margin: 0 auto 50px;
  text-align: left;
  color: #fff;
}

.top_about_text_list {
  font-size: 1rem;
  letter-spacing: 0.05rem;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
  color: #fff;
  text-decoration: underline;
}

.top_about_img {
  width: 48%;
}

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


/* TOP施工実績 */

.top_works {
  overflow: visible;
}

.top_works h1 {
  color: #000;
  font-size: 2.2em;
  text-align: center;
  font-weight: 600;
  padding: 100px 0 45px;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  position: relative;
  margin-bottom: 30px;
}

.top_works h1::before {
  content: "Works";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 1rem;
  color: #047649;
  white-space: nowrap;
}

/* .top_works h1::before {
  content: "SLOGAN";
  color: #B8D4BA;
  font-size: 6rem;
  font-weight: 300;
  font-style: italic;
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
} */

.top_works_pub {
  background-image: url("../img/doboku.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 0%;
  width: 70%;
  height: 800px;
  position: relative;
  margin-left: 0;
  overflow: visible;
}

.top_works_pub_item {
  position: absolute;
  top: 10%;
  right: -300px;
  width: 690px;
  max-width: calc(50vw - 20px);
  background-color: #fff;
  z-index: 1;
  padding: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top_works_pub_item h2 span,
.top_works_pub_item_reverse h2 span {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #515151;
  padding-right: 10px;
}

.left_btn {
  margin-left: 0;
  margin-right: auto;
}


@media screen and (min-width: 1380px) {
  .top_works_pub_item {
    /* right: calc((100vw + 1380px) / 2 - 70vw); */
    width: 690px;
    max-width: 690px;
  }
}

.top_works_pub_item h2 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #515151;
  border-left: 4px solid #047649;
  padding-left: 20px;
  margin-bottom: 20px;
}

.top_works_pub_item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #515151;
  margin-bottom: 20px;
}

.top_works_pub_item p {
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  line-height: 1.7;
  color: #515151;
  font-weight: 400;
  margin-bottom: 20px;
}

.top_works_pub_item img {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}

.top_works_pub_reverse {
  background-image: url("../img/kenchiku.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 0%;
  width: 70%;
  height: 800px;
  position: relative;
  margin-left: auto;
  margin-right: 0;
  overflow: visible;
}

.top_works_pub_item_reverse {
  position: absolute;
  top: 10%;
  left: -300px;
  width: 690px;
  max-width: calc(50vw - 20px);
  background-color: #fff;
  z-index: 1;
  padding: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 1380px) {
  .top_works_pub_item_reverse {
    width: 690px;
    max-width: 690px;
  }
}

.top_works_pub_item_reverse h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #515151;
  border-left: 4px solid #047649;
  padding-left: 20px;
  margin-bottom: 20px;
}

.top_works_pub_item_reverse h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #515151;
  margin-bottom: 20px;
}

.top_works_pub_item_reverse p {
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  line-height: 1.7;
  color: #515151;
  font-weight: 400;
  margin-bottom: 20px;
}

.top_works_pub_item_reverse img {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}


.top_works_flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  /* ←ここ */
}

.top_works_item1,
.top_works_item2 {
  box-sizing: border-box;
}

.top_works_text h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.2rem;
  line-height: 1.2;
  color: #047649;
  /* 緑色を追加 */
  font-family: "Noto Serif JP", serif;
  /* 明朝体に変更 */
}

.top_works_text p {
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
  line-height: 1.7;
  color: #777;
  font-weight: 400;
}

.top_works_text h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.top_works_item3, .top_works_item7, .top_works_text h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 20px;
  padding-right: 15px;
}

/* top_works_flexカード */
.top_works_item1 {
  position: relative;
  width: 60%;
  height: 600px;
  padding: 80px 20px;
  background-color: #EAEAEA;
}

.top_works_item1::after {
  content: '';
  position: absolute;
  top: 0;
  left: -9999px;
  width: 9999px;
  height: 100%;
  background: #EAEAEA;
  z-index: -1;
}

.top_works_item1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top_works_item2 {
  width: 40%;
  height: 600px;
  padding: 80px 20px;
  position: relative;
}

.top_works_item2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background-color: #EAEAEA;
  z-index: -1;
}

.top_works_item3 {
  position: relative;
  width: 40%;
  height: 600px;
  padding: 80px 20px 80px 0;
  /* 左パディングを0に変更（必要に応じて調整） */

  background-color: #EAEAEA;
}

.top_works_item3::before {
  content: '';
  position: absolute;
  top: 0;
  left: -9999px;
  width: 9999px;
  height: 100%;
  background: #EAEAEA;
  z-index: -1;
}


.top_works_item4 {
  position: relative;
  width: 60%;
  height: 600px;
  padding: 80px 20px;
  background: #EAEAEA;
  /* ここを追加 */
  overflow: visible;
  /* 追加（念のため） */
}

.top_works_item4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 100%;
  background: #EAEAEA;
  z-index: 0;
  /* 画像より下にする */
}

.top_works_item4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  /* 擬似要素より上にする */
}


/* TOP求人情報 */

.top_recruit {
  padding-bottom: 60px;
}

.top_recruit_header {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.top_recruit_header img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.top_recruit h1 {
  color: #000;
  font-size: 2.2em;
  text-align: center;
  font-weight: 600;
  padding: 100px 0 45px;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  position: relative;
  margin-bottom: 30px;
}

.top_recruit h1::before {
  content: "Recruit";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 1rem;
  color: #047649;
  white-space: nowrap;
}

.top_recruit_flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 80px auto;
  gap: 40px;
}

.top_recruit_text {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.top_recruit_text p {
  font-size: 1rem;
  letter-spacing: 0.05rem;
  line-height: 1.7;
  color: #515151;
  font-weight: 400;
}

.top_recruit_text p a {
  color: #047649;
}

.top_recruit_text p a:hover {
  color: #777;
}

.top_recruit_img {
  margin: 40px auto 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
}

.top_recruit_title {
  margin-top: 60px;
}

.top_recruit h2 {
  color: #000;
  font-size: 1.8em;
  text-align: center;
  font-weight: 500;
  padding: 20px 0 45px;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  position: relative;
  margin-bottom: 30px;
}

/* グリッドレイアウト */
.card-grid {
  width: 800px;
  display: grid;
  /* 最小240px、余った幅を等分、PCなら4列目安 */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px auto;
  padding-bottom: 50px;
}

/* カードをラップする<a>タグのスタイル */
.card-grid>a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* カード単体のデザイン */
.card {
  background-color: #eaeeef;
  padding: 50px 20px;
  /* 上下の余白を多めに */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  min-height: 200px;
  /* カードの高さを揃える */
  height: 100%;
  /* 親の<a>タグの高さに合わせる */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* アイコンエリア */

.card-icon {
  width: 40%;
  height: auto;
  padding-bottom: 20px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 項目名 */
.card-title {
  font-size: 1rem;
  color: #515151;
  /* タイトルも同じ色 */
  margin: 0 0 15px 0;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
}

/* 説明文・補足 */
.card-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* レスポンシブ調整（スマホなど） */
@media (max-width: 768px) {
  .section-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .card {
    padding: 40px 15px;
  }
}




/* TOP_チョビット推進室 */

.top_blog {
  margin: 0 auto;
  padding-bottom: 60px;
  background-color: #EAEAEA;
}


.top_blog h1 {
  color: #000;
  font-size: 2.2em;
  text-align: center;
  font-weight: 600;
  padding: 100px 0 45px;
  letter-spacing: 0.3rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  position: relative;
  margin-bottom: 30px;
  font-feature-settings: "palt";
}

.top_blog h1::before {
  content: "Blog";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 1rem;
  color: #047649;
  white-space: nowrap;
}

.top_blog_text {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.top_blog_text p {
  font-size: 1rem;
  letter-spacing: 0.05rem;
  line-height: 1.7;
  color: #515151;
  font-weight: 400;
}


.top_blog_img {
  margin: 20px auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
}


/* おしらせ */
.top_topics {
  margin: 0;
  padding-bottom: 60px;
  background-color: #EAEAEA;
}

.top_topics h1 {
  color: #000;
  font-size: 2.2em;
  text-align: center;
  font-weight: 600;
  padding: 100px 0 45px;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  position: relative;
  margin-bottom: 30px;
}

.top_topics h1::before {
  content: "Topics";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 1rem;
  color: #047649;
  white-space: nowrap;
  pointer-events: none;
}


.top_topics_flex {
  display: flex;
  flex-direction: column;
  /* 縦に積む */
  gap: 20px;
  /* アイテム間の間隔 */
  align-items: center;
  /* 中央寄せにして最大幅を適用 */
}


.top_topics_item {
  display: flex;
  /* day と text を横並び */
  gap: 16px;
  background: #fff;
  padding: 14px;
  border-radius: 6px;
  width: 100%;
  /* 親の幅に合わせる */
  max-width: 1000px;
  /* 最大幅を 800px に制限 */
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.top_topics_item .day {
  flex: 0 0 20%;
  /* dayは固定幅 */
  font-weight: 700;
  color: #047649;
}


.top_topics_item .topics_text {
  flex: 1;
}

.top_topics_item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.top_topics_item .day {
  flex: 0 0 20%;
  font-weight: 700;
  color: #047649;
}

.ttop_opics_item .top_topics_text {
  flex: 1;
}

.top_topics_item .top_topics_text p {
  margin: 0;
  border-left: 4px solid #047649;
  padding-left: 10px;
}

/* リンク色（ホバー） - 全体がリンクになったので不要だが、念のため残す */
.top_topics_item .top_topics_text a {
  text-decoration: none;
  transition: color .2s ease;
}

.top_topics_item .top_topics_text a:hover {
  color: #047649;
}



.cont {
  margin-top: 100px;
  margin-bottom: 0;
  overflow: visible;
  padding-bottom: 100px;
}

.cont_wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.cont h1 {
  color: #047649;
  font-size: 3rem;
  text-align: center;
  font-weight: 600;
  padding: 100px 0 60px;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "Noto Serif JP", serif;
  position: relative;
  margin-bottom: 30px;
}

.cont h1::before {
  content: "Contribution";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 1rem;
  color: #97cb9b;
  white-space: nowrap;
}


.cont_flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #d4d4d4;
  margin: 0 auto;
  text-align: center;
}

/* ←ここで“正味25%”にしたいので box-sizing 必須 */
.cont_item {
  width: 25%;
  padding: 20px 20px 0;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* ←これが重要！ */
}

.cont_item::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: 0;
  width: 1px;
  background-color: #fff;
}

/* 4列目だけは線なし */
.cont_item:nth-child(4n)::after {
  display: none;
}

.cont_item_img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  margin: 20px auto 0;
}

.cont_item_img img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
  object-fit: cover;
}

.cont_item h3 {
  font-size: 1.1rem;
  height: 50px;
  font-weight: 500;
  margin: 20px 0;
  line-height: 1.4;
}

.cont_item p {
  margin-top: 10px;
  /* 上に固定 */
  flex-grow: 1;
  text-align: left;
  line-height: 1.7;
  font-size: 0.9rem;
  font-weight: 400;
  color: #515151;
}

footer {
  background-color: #3B4043;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 80px;
}

.main_footer_content {
  /* margin: 60px 20px; */
  height: 300px;
  text-align: center;
  color: #fff;
}

.logo_text li {
  margin: 10px 20px;
  line-height: 1.5;
}

.logo_text img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.fnav_flex {
  margin: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.fnav_flex li {
  margin: 10px 20px;
  color: #fff;
  text-align: left;
  font-size: 0.9rem;

}

.footer_logo {
  margin: 80px 0;
}

/* SP (480px以下) */
@media screen and (max-width: 480px) {
  footer {
    padding-top: 12px;
    padding-bottom: 35px;
  }

  .main_footer_content {
    margin: 25px 10px;
    height: auto;
    min-height: 200px;
  }

  .logo_text {
    margin-bottom: 20px;
  }

  .logo_text img {
    max-width: 300px;
    width: 100%;
    height: auto;
  }

  .logo_text li {
    margin: 6px 10px;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .fnav_flex {
    margin: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .fnav_flex ul {
    width: 100%;
    max-width: 100%;
  }

  .fnav_flex li {
    margin: 6px 10px;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.5;
  }

  .main_footer_content small {
    display: block;
    margin-top: 25px;
    font-size: 0.7rem;
    line-height: 1.4;
  }
}


/* 画像を左右の画面端まで交互に広げる（top_works） */
.top_works_item1,
.top_works_item5 {
  overflow: visible;
}

.top_works_item1 .block,
.top_works_item5 .block {
  width: calc(100% + (50vw - 50%));
  margin-left: calc(-50vw + 50%);
  height: 100%;
}

.top_works_item4 .block,
.top_works_item8 .block {
  width: calc(100% + (50vw - 50%));
  margin-right: calc(-50vw + 50%);
  height: 100%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .recruit_fixed_btn {
    width: 60px;
    height: 60px;
    right: 0;
    top: 100px;
    font-size: 10px;
  }

  .recruit_icon {
    font-size: 16px;
    margin-bottom: 2px;
    color: #fff;
  }

  .recruit_icon i {
    color: #fff;
  }

  .recruit_text {
    font-size: 8px;
  }

  .recruit_fixed_btn::before {
    width: 45px;
    height: 45px;
  }
}

.top_works_text {
  border-left: 1px solid #777;
  padding-left: 20px;
}

.top_works_text h2 {
  position: relative;
  padding-left: 20px;
  font-family: "Noto Serif JP", serif;
  color: #047649;
}

.top_works_text h2::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 25px;
  height: 1px;
  background-color: #777;
  transform: translateY(-50%);
}

/* top_works_item2のボタンを左寄せ */
.top_works_item2 .top_works_text .sample_btn {
  margin-left: 0;
  margin-right: auto;
}

/* top_works_item3とtop_works_item7の線を右側に */
.top_works_item3 .top_works_text {
  border-left: none;
  border-right: 1px solid #777;
  padding-left: 0;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.top_works_item3 .top_works_text h2 {
  text-align: right;
  padding-right: 20px;
}

.top_works_item3 .top_works_text .sample_btn {
  margin-left: auto;
  margin-right: 15px;
}

.top_works_item3 .top_works_text h2::before {
  left: auto;
  right: -20px;
}

.top_works_item7 .top_works_text {
  border-left: none;
  border-right: 1px solid #777;
  padding-left: 0;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.top_works_item7 .top_works_text h2 {
  text-align: right;
  padding-right: 20px;
}

.top_works_item7 .top_works_text .sample_btn {
  margin-left: auto;
  margin-right: 15px;
}

.top_works_item7 .top_works_text h2::before {
  left: auto;
  right: -20px;
}


/* 公的機関からの認証（横並び4分割：見出し＋認証3つ / スマホ縦並び） */

.certification {
  padding-bottom: 60px;
}

.certification_list {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.certification_list_heading {
  flex: 1 1 calc(32% - 1.5rem);
  min-width: 0;
  color: #000;
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 0.08rem;
  line-height: 1.5;
  font-family: "游明朝体", "Yu Mincho", "YuMincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  margin: 0;
}

.certification_list_heading::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.5em;
  margin-bottom: 0.15em;
  border-right: 2px solid #047649;
  border-bottom: 2px solid #047649;
  transform: rotate(-45deg);
  vertical-align: middle;
}

.certification_list .certification_item {
  flex: 1 1 calc(22% - 1.5rem);
  min-width: 0;
  text-align: center;
}

.certification_list .certification_item a {
  display: block;
}

.certification_list .certification_item img {
  max-width: 80%;
  height: auto;
  vertical-align: top;
}

/* wlb・えるぼしは少し小さく */
.certification_list .certification_item--wlb img,
.certification_list .certification_item--eruboshi img {
  max-width: 65%;
}

/* 1000.png（横画像）は少し大きく */
.certification_list .certification_item--1000 img {
  max-width: 130%;
}

@media screen and (max-width: 480px) {
  .certification_list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .certification_list_heading {
    flex: none;
    width: 100%;
    text-align: center;
    order: -1;
  }

  .certification_list_heading::after {
    display: block;
    transform: rotate(45deg);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.35em;
    vertical-align: middle;
  }

  .certification_list .certification_item {
    flex: 1 1 auto;
    width: 100%;
    max-width: 280px;
  }
}

.grecaptcha-badge { visibility: hidden; }