/*ファーストビュー*/
section.top-fv .flex {
  display: flex;
  gap: 7em;
  padding-top: 4em;
  align-items: center;
}
section.top-fv .flex div {
  flex: 1;
}
section.top-fv h1 {
  display: inline-block;
  font-size: min(3.6vw, 42px);
  padding: 0.5em;
  padding-right: min(0.7vw, 5px);
  padding-top: min(1.5vw, 20px);
  position: relative;
  color: #fff;
  z-index: 1;
  margin: 0;
  margin-top: 6px;
  border-bottom: none;
  line-height: 0.9;
}
section.top-fv h1::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: #08b15b;
  transform: scaleY(1) perspective(0.6em) rotateX(359deg);
  transform-origin: bottom left;
  border-radius: 16px;
}
section.top-fv h1 span {
  font-size: min(4.5vw, 48px);
}
section.top-fv .txt {
  padding-top: 5em;
  position: relative;
  padding-bottom: 10em;
}
section.top-fv p {
  text-shadow: #00000040 1px 0 4px;
  font-size: 18px;
  letter-spacing: 1.5px;
}

section.top-fv .img2 {
  float: right;
  width: 405px;
}
section.top-fv .img3 {
  width: 90px;
  position: absolute;
  bottom: 0;
  left: 5em;
}
.bottom-font {
  border-bottom: 2px solid #222;
  padding-bottom: 1em;
  margin-bottom: -5px;
  margin-top: -4em;
}
section.client {
  padding: 0;
}
section.client .wrap {
  border-left: 2px solid #222;
  border-bottom: 2px solid #222;
  padding: 2em;
  padding-top: 6em;
  position: relative;
}
section.client .client-img {
  position: absolute;
  right: 2em;
  top: 2em;
  width: 110px;
}
section.client .content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  align-items: center;
  width: 85%;
  margin: 4em auto;
}
section.client .content img {
  width: 17%;
}
section.client .content img:nth-child(1) {
  width: 115px;
}
section.client .content img:nth-child(2) {
  width: 110px;
}
section.client .content img:nth-child(3) {
  width: 155px;
}
section.client .content img:nth-child(4) {
  width: 190px;
}
section.client .content img:nth-child(5) {
  width: 68px;
}
section.client .content img:nth-child(6) {
  width: 249px;
}
section.client .content img:nth-child(7) {
  width: 201px;
}
section.client .content img:nth-child(8) {
  width: 197px;
}
section.client .content img:nth-child(9) {
  width: 68px;
}
section.service {
  padding: 0;
}
section.service .wrap {
  border-right: 2px solid #222;
  padding: 2em;
  padding-bottom: 0;
  padding-top: 6em;
}
section.service .content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em 1.5em;
  text-align: center;
  margin-bottom: 2em;
}
section.service .content .box {
  /* Material-like elevation 2 */
  box-shadow:
    0px 2px 1px -1px rgba(0,0,0,0.2),
    0px 1px 1px 0px rgba(0,0,0,0.14),
    0px 1px 3px 0px rgba(0,0,0,0.12);
  padding: 2em;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e3e3;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}

/* Control visible count in the service box list on home
   - Default (desktop 3-col or 1-col mobile): show first 3 items
   - 2-column breakpoint (approx 769px-1000px): show first 4 items */
.main-homes section.service .content .box { display: none; }
.main-homes section.service .content .box:nth-child(-n+3) { display: block; }

/* Home: for WORKS section, show 3 items on desktop, 4 items on tablet (2-column) */
.main-homes section.works .content .box { display: none; }
.main-homes section.works .content .box:nth-child(-n+3) { display: block; }

@media screen and (max-width: 1000px) and (min-width: 769px) {
  /* 2-column on home: allow up to 4 items visible for works */
  .main-homes section.service .content .box { display: none; }
  .main-homes section.service .content .box:nth-child(-n+4) { display: block; }
  .main-homes section.works .content .box { display: none; }
  .main-homes section.works .content .box:nth-child(-n+4) { display: block; }

  /* ホームの2カラム表示で左右の内側余白を確保 */
  section.service .content {
    padding-right: 1rem;
    box-sizing: border-box;
  }
}

/* ホーム画面SERVICEセクション3列表示時のフォントサイズ調整 */
section.service .content .box h3 {
  font-size: 0.9rem; /* タイトルを少し小さく */
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

section.service .content .box .summary,
section.service .content .box p {
  font-size: 0.85rem; /* 概要文を小さく */
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

section.service .content .box .cats .cat-item,
section.service .content .box .tags .tag-item {
  font-size: 0.75rem; /* カテゴリ・タグを小さく */
  padding: 0.25rem 0.5rem;
}

/* Hover elevation for home service boxes: match Works behavior on pointer devices */
@media (hover: hover) and (pointer: fine) {
  section.service .content .box:hover {
    box-shadow:
      0px 8px 10px -5px rgba(0,0,0,0.2),
      0px 16px 24px 2px rgba(0,0,0,0.14),
      0px 6px 30px 5px rgba(0,0,0,0.12);
    transform: translateY(-6px);
    z-index: 3;
    will-change: transform, box-shadow;
  }
}
section.service h3 {
  text-align: justify;
  font-size: 24px;
  font-weight: 500;
  align-items: center;
  display: flex;
  gap: 0.5em;
  margin-top: -1em;
}
section.service h3 span {
  font-size: 60px;
  font-family: "Poppins", sans-serif;
  color: #08b15b;
}
section.service .img1 {
  width: 160px;
  margin-top: 8em;
  margin-left: 8em;
}
section.service .border-right {
  border-bottom: 2px solid #222;
  margin-left: calc(50% - 50vw);
  margin-right: -2em;
}
section.service .btn {
  margin-right: 1em;
}
section.works {
  padding-bottom: 0;
}
section.works h3 {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}
section.works .flex {
  display: flex;
  gap: 3.5em;
}
section.works .flex .content:nth-child(odd) .box p {
  width: 90%;
  margin: auto;
}
section.works .swiper-horizontal {
  margin-right: calc(50% - 50vw);
}
section.works .swiper-wrapper {
  gap: 2em;
  margin-bottom: 2em;
}
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets
  .swiper-pagination-bullet {
  margin: 0 0.8em !important;
}
section.works .swiper-pagination-bullet-active {
  background: #555555;
}
section.works .img1 {
  width: 204px;
  margin-bottom: -5px;
}
section.works .border-right {
  border-bottom: 2px solid #222;
  margin-right: calc(50% - 50vw);
}
section.news {
  padding: 0;
}
section.news .wrap {
  border-left: 2px solid #222;
  padding: 2em 0;
  padding-bottom: 0;
  margin-top: -1px;
  position: relative;
}
section.news .wrap:before {
  position: absolute;
  content: "";
  width: 50%;
  height: 2px;
  background-color: #222;
  left: 0;
  /* left: 50%; ※右側に当てたい場合 */
  bottom: 0;
}
section.news .news {
  padding-bottom: 6em;
}
section.news h2 {
  margin-top: 2em;
}
section.news .img1 {
  width: 82px;
  float: right;
}
section.news ul {
  margin: 2em 4em;
  padding: 0;
}
section.news ul li {
  list-style: none;
  border-bottom: 1px solid #c1c1c1;
  padding: 1em 2em;
}
section.news ul li a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative; /* 矢印の絶対配置用 */
    gap: 1em; /* デスクトップを基準に適度な間隔 */
}
section.news ul li a .deta{
    width: auto; /* 固定幅を解除し内容幅に */
    display: flex;
    gap: 1em;
    font-size: 18px;
    align-items: center;
    min-width: 10ch; /* 日付の幅を安定させる */
    flex: 0 0 auto; /* 予期せぬ伸縮を防ぐ */
}
section.news ul li a .deta .deta-date{
    flex: 0 0 auto;
    white-space: nowrap;
}
section.news ul li a .deta span:not(.deta-date){
    max-width: 100%;
}
section.news .btn {
  margin-top: 3em;
  margin-right: 1em;
}
section.news .img2 {
  text-align: center;
  margin-top: 4em;
  position: relative;
}
section.news .img2 img {
  background: #fff;
  width: 370px;
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  padding: 3em;
  z-index: 99;
}
section.news ul li .title p {
  font-weight: 500;
  margin:0;
}
section.bottom-link {
  padding: 0;
  position: relative;
}
section.bottom-link .wrap {
  padding: 2em 0;
  padding-bottom: 0;
  margin-top: -1px;
  position: relative;
  padding-top: 0;
}
section.bottom-link .wrap:before {
  position: absolute;
  content: "";
  width: 50%;
  height: 2px;
  background-color: #222;
  right: 0;
  top: 0;
}
section.bottom-link .content {
  display: flex;
  align-items: center;
}
section.bottom-link .content > div {
  flex: 1;
}
section.bottom-link .content > div:last-child {
  border-right: 2px solid #222;
  padding-top: 14em;
  margin-top: -9em;
  position: relative;
}
section.bottom-link .content > div:first-child {
  padding-top: 23em;
  position: relative;
}
section.bottom-link .content h2 {
  font-size: 100px;
  color: #fff;
}

section.bottom-link .content h2::after {
  width: 428px;
  height: 5px;
}
section.bottom-link .content h2 span {
  font-size: 117px;
}
section.bottom-link .content p.title {
  font-size: 20px;
  color: #fff;
}
section.bottom-link .content .recruit {
  background: #e4c016;
  position: relative;
  padding: 0 2em;
  text-align: right;
  z-index: 9;
  width: 89%;
}
section.bottom-link .content .recruit img {
  width: 78px;
  position: relative;
  bottom: -4px;
}
section.bottom-link .content .recruit .title-box {
  padding-top: 2em;
  margin-bottom: -4.3em;
  padding-bottom: 2em;
}
section.bottom-link .content .company {
  background: #08b15b;
  position: relative;
  padding: 0 2em;
  z-index: 9;
  width: 89.2%;
  left: 0px;
}
section.bottom-link .content .company img {
  width: 68px;
  position: relative;
  bottom: -4px;
}
section.bottom-link .content .company .title-box {
  padding-top: 2em;
  margin-bottom: -4.3em;
  padding-bottom: 2em;
}
section.bottom-link .img {
  text-align: center;
  border-left: 2px solid #222;
  border-bottom: 2px solid #222;
  padding-top: 6em;
  padding-bottom: 4em;
}
section.bottom-link .img img {
  width: 490px;
}
section.top-footer .wrap {
  border-right: 2px #222 solid;
  margin-top: -2px;
}
.logo-sp {
  display: none;
}

/*============================
mobile style
============================*/
@media screen and (max-width: 1210px) {
  .wrap,
  .wrapper {
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    padding: 0 1em;
  }
  section.client,
  section.service,
  section.news,
  section.bottom-link,
  section.top-footer {
    margin: 0 1.5em;
  }
  section.works .border-right {
    margin-left: 8px;
  }

  section.top-fv .flex {
    gap: 0;
	align-items: flex-start;
  }
  section.top-fv .txt {
	padding-top: 0;
  }
}
@media screen and (max-width: 768px) {
  section.top-fv .flex {
    display: block;
  }
  section.top-fv .img2,
  section.top-fv .img3,
  .bottom-font {
    display: none;
  }
  section.top-fv h1 span {
    font-size: 32px;
  }
  section.top-fv h1 {
    font-size: 28px;
    width: 93%;
    text-align: center;
    padding: 0.2em;
    padding-top: 0.2em;
    margin-top: 0.5em;
    line-height: 1.5;
  }
  section.top-fv p {
    font-size: 16px;
    width: 100%;
    margin: auto;
    margin-top: 1em;
    text-align: left;
    /*white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;*/
  }
  section.top-fv .txt {
    position: relative;
    padding-bottom: 2em;
  }
}
@media screen and (max-width: 1000px) {
/*   .bottom-font-sp {
    border-bottom: 2px solid #222;
  } */
  section.client .content {
    display: none;
  }
  section.bottom-link .content {
    display: flex;
    flex-direction: column-reverse;
  }
  section.bottom-link .content h2 {
    font-size: 52px;
  }
  section.bottom-link .content h2 span {
    font-size: 66px;
  }
  section.bottom-link .content p.title {
    font-size: 14px;
    margin-bottom: 2em;
  }
  section.bottom-link .content .recruit {
    width: auto;
    left: 1.5px;
  }
  section.bottom-link .content .company {
    width: auto;
    left: 0.8px;
  }
  section.bottom-link .content .company p.title {
    margin-bottom: 2em;
  }
  section.bottom-link .content h2::after {
    width: 90%;
    height: 3px;
  }
  section.news .img2 img {
    width: 259px;
    left: 13%;
    padding: 0.5em;
  }
  section.bottom-link .content > div:last-child {
    padding-top: 7em;
    margin-top: 0em;
    width: 100%;
  }
  section.bottom-link .content .recruit .title-box {
    margin-bottom: -1em;
    padding-bottom: 1.5em;
  }
  section.bottom-link .content .recruit img {
    width: 47px;
  }
  section.bottom-link .content .company img {
    width: 40px;
  }
  section.bottom-link .img img {
    width: 75%;
  }
  section.top-footer .wrap {
    border-right: 2px #222 solid;
    margin-top: -2px;
  }
  section.news ul {
    margin: 1em;
    margin-top: 4em;
    padding: 0;
  }
  /* NEWS 矢印の絶対配置（行数に影響しないように） */
  section.news ul li a .yajirusi{
    position:absolute;
    right:1em;
    top:50%;
    transform:translateY(-50%);
  }
  section.news ul li {
    list-style: none;
    border-bottom: 1px solid #c1c1c1;
    padding: 0.5em;
  }
  section.bottom-link .content > div:first-child {
    padding-top: 0;
    width: 100%;
  }
  section.news .img1 {
    width: 57px;
    position: absolute;
    right: 0;
  }
  section.news h2 {
    margin-top: 1em;
  }
  section.works .img1 {
    width: 142px;
    margin-bottom: -4px;
  }
  section.works .flex {
    display: block;
  }

  section.bottom-link .content .company .title-box {
    padding-bottom: 1.5em;
  }

  section.works .border-right {
    margin-left: -3px;
  }
  section.works .flex {
    display: block;
    margin-bottom: 2em;
  }
  section.works h3 {
    font-size: 16px;
  }
  section.works h3 span {
    /* add 20250810: works 番号装飾 */
    font-size: 60px;
    font-family: "Poppins", sans-serif;
    color: #08b15b;
    line-height: 1;
    display: inline-block;
  }
  @media screen and (max-width: 1000px) {
    section.works h3 span {
      font-size: 50px;
    }
  }
  section.works .swiper-wrapper {
    gap: 1em;
  }
  section.service .img1 {
    width: 113px;
    margin-top: 8em;
    margin-left: 1em;
  }
  section.service .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
    margin-top: 3em;
  }

  section.service .content .box {
    /* Material-like elevation 2 (mobile/tablet) */
    box-shadow:
      0px 2px 1px -1px rgba(0,0,0,0.2),
      0px 1px 1px 0px rgba(0,0,0,0.14),
      0px 1px 3px 0px rgba(0,0,0,0.12);
    padding: 2em;
    margin-bottom: 1.5em;
    width: auto;
    border: 1px solid #e4e3e3;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
  }
  section.service .btn {
    margin-right: 2em;
  }
  section.service h3 {
    font-size: 20px;
    display: flex;
  }
  section.service h3 span {
    font-size: 50px;
  }
  section.client .client-img {
    position: absolute;
    right: 2em;
    top: 7em;
    width: 54px;
  }
  .logo-sp {
    display: block;
    margin-top: 5em;
  }
  section.bottom-link .img {
    margin-left: 0.8px;
  }
  section.works .swiper-horizontal {
    margin-top: 5em;
  }
  section.service .wrap {
    padding: 0;
  }
}

/* タブレット用（769px-1000px）: 2列レイアウト */
@media screen and (max-width: 1000px) and (min-width: 769px) {
  section.service .content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* タブレット表示（2列）でフォントサイズを調整 */
  section.service .content .box h3 {
    font-size: 1rem; /* タイトルを通常サイズに */
  }
  
  section.service .content .box .summary,
  section.service .content .box p {
    font-size: 0.9rem; /* 概要文を少し大きく */
  }
  
  section.service .content .box .cats .cat-item,
  section.service .content .box .tags .tag-item {
    font-size: 0.8rem; /* カテゴリ・タグを少し大きく */
  }
}

/* モバイル用（768px以下）: 1列レイアウト */
@media screen and (max-width: 768px) {
  section.service .content {
    display: block;
    margin-top: 3em;
  }

  section.service .content .box {
    margin-bottom: 1.5em;
    margin-right: 1em;
    width: calc(100% - 1em);
    box-sizing: border-box;
    /* keep rounded corners, border and material shadow on small screens */
    box-shadow:
      0px 2px 1px -1px rgba(0,0,0,0.2),
      0px 1px 1px 0px rgba(0,0,0,0.14),
      0px 1px 3px 0px rgba(0,0,0,0.12);
    border: 1px solid #e4e3e3;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
  }
  
  /* モバイル表示（1列）でフォントサイズを調整 */
  section.service .content .box h3 {
    font-size: 1.1rem; /* タイトルを大きく */
    line-height: 1.4;
  }
  
  section.service .content .box .summary,
  section.service .content .box p {
    font-size: 1rem; /* 概要文を通常サイズに */
    line-height: 1.5;
  }
  
  section.service .content .box .cats .cat-item,
  section.service .content .box .tags .tag-item {
    font-size: 0.85rem; /* カテゴリ・タグを読みやすく */
  }
}

/* add 2025 */
section.client .client-img {
  width: 120px;
}
@media screen and (max-width: 1000px) {
  section.client .client-img {
    width: 100px;
  }
}
@media screen and (max-width: 480px) {
  section.client .client-img {
    right: 0;
    width: 74px;
  }
}

section.works .img1 {
  width: 160px;
}
@media screen and (max-width: 1000px) {
  section.works .img1 {
    width: 100px;
  }
}

section.news .img2 img {
  width: 160px;
}
@media screen and (max-width: 1000px) {
  section.news .img2 img {
    width: 100px;
  }
}
section.news .img2 img {
  left: 36%;
}

/* service */
@media screen and (max-width: 1000px) {
  section.service .wrap {
    padding-top: 2rem;
  }
}

/* works */
/* Consolidated works box style: desktop & responsive adjustments */
section.works .box {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 2em;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e3e3;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
/* hover effect for devices that support hovering */
@media (hover: hover) and (pointer: fine) {
  section.works .box:hover {
    box-shadow:
      0px 8px 10px -5px rgba(0,0,0,0.2),
      0px 16px 24px 2px rgba(0,0,0,0.14),
      0px 6px 30px 5px rgba(0,0,0,0.12);
    transform: translateY(-6px);
  }
}
/* mobile/tablet adjustments: maintain spacing but avoid hover transform */
@media screen and (max-width: 1000px) {
  section.works .box {
    margin: 0 auto;
    margin-bottom: 1.5em;
    width: auto;
    max-width: 814px;
    /* keep material shadow on smaller screens */
    box-shadow:
      0px 2px 1px -1px rgba(0,0,0,0.2),
      0px 1px 1px 0px rgba(0,0,0,0.14),
      0px 1px 3px 0px rgba(0,0,0,0.12);
  }
}

/* Center images inside .box on home (works/service) with high specificity */
/* Center images only for home WORKS listing (do not affect service listing) */

section.works h3 {
  margin: 0 0 1em 0;
  font-size: 24px;
}

@media screen and (max-width: 1000px) {
  section.works h3 {
    font-size: 20px;
  }
}

section.works .content {
  gap: 2rem;
  display: flex;
}
@media screen and (max-width: 1000px) {
  section.works .content {
    display: block;
    margin-top: 3em;
  }
}

section.works .btn-wrap {
  margin-top: 2rem;
}

/* Center WORKS header and reuse service-style for home works listing */
.works-header {
  text-align: center;
  margin: 2em 0 1em 0;
}
.works-header h2 {
  display: inline-flex;
  gap: .5em;
  align-items: center;
  /* Match global .wrap h2 size */
  font-size: 60px;
}
.works-header .title {
  margin-top: .5em;
  color: #666;
}

@media screen and (max-width: 1000px) {
  .works-header h2 { font-size: 42px; }
  .works-header h2 span { font-size: 49px; }
}

/* Ensure home works listing uses the same grid/box styles as service posts */
.section-works-posts, section.works .content.category-posts.service-posts {
  display: grid;
  /* Desktop: 3 columns to match service layout */
  grid-template-columns: repeat(3, 1fr);
  gap: 2em 1.5em;
}
section.works .content.category-posts.service-posts .box,
.section-works-posts .box {
  width: 100%;
}

/* ホーム画面3列表示時のフォントサイズ調整 */
.section-works-posts .box h3,
section.works .content.category-posts.service-posts .box h3 {
  font-size: 0.9rem; /* タイトルを少し小さく */
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.section-works-posts .box .summary,
section.works .content.category-posts.service-posts .box .summary,
.section-works-posts .box p,
section.works .content.category-posts.service-posts .box p {
  font-size: 0.85rem; /* 概要文を小さく */
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.section-works-posts .box .cats .cat-item,
.section-works-posts .box .tags .tag-item,
section.works .content.category-posts.service-posts .box .cats .cat-item,
section.works .content.category-posts.service-posts .box .tags .tag-item {
  font-size: 0.75rem; /* カテゴリ・タグを小さく */
  padding: 0.25rem 0.5rem;
}

/* Responsive: tablet -> 2 columns, mobile -> 1 column */
@media screen and (max-width: 1000px) and (min-width: 769px) {
  section.works .content.category-posts.service-posts,
  .section-works-posts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* タブレット表示（2列）でフォントサイズを調整 */
  .section-works-posts .box h3,
  section.works .content.category-posts.service-posts .box h3 {
    font-size: 1rem; /* タイトルを通常サイズに */
  }
  
  .section-works-posts .box .summary,
  section.works .content.category-posts.service-posts .box .summary,
  .section-works-posts .box p,
  section.works .content.category-posts.service-posts .box p {
    font-size: 0.9rem; /* 概要文を少し大きく */
  }
  
  .section-works-posts .box .cats .cat-item,
  .section-works-posts .box .tags .tag-item,
  section.works .content.category-posts.service-posts .box .cats .cat-item,
  section.works .content.category-posts.service-posts .box .tags .tag-item {
    font-size: 0.8rem; /* カテゴリ・タグを少し大きく */
  }
}

@media screen and (max-width: 768px) {
  section.works .content.category-posts.service-posts,
  .section-works-posts {
    grid-template-columns: 1fr;
    display: block; /* stacked blocks on small screens */
  }
  
  /* モバイル表示（1列）でフォントサイズを調整 */
  .section-works-posts .box h3,
  section.works .content.category-posts.service-posts .box h3 {
    font-size: 1.1rem; /* タイトルを大きく */
    line-height: 1.4;
  }
  
  .section-works-posts .box .summary,
  section.works .content.category-posts.service-posts .box .summary,
  .section-works-posts .box p,
  section.works .content.category-posts.service-posts .box p {
    font-size: 1rem; /* 概要文を通常サイズに */
    line-height: 1.5;
  }
  
  .section-works-posts .box .cats .cat-item,
  .section-works-posts .box .tags .tag-item,
  section.works .content.category-posts.service-posts .box .cats .cat-item,
  section.works .content.category-posts.service-posts .box .tags .tag-item {
    font-size: 0.85rem; /* カテゴリ・タグを読みやすく */
  }
}
@media screen and (max-width: 1000px) {
  section.works .btn-wrap {
    margin-bottom: 4rem;
  }
}
section.works .works-more {
  margin-left: 300px;
}
@media screen and (max-width: 1000px) {
  section.works .works-more {
    text-align: right;
    margin-left: 0;
    margin-right: 1rem;
  }
}
section.works .works-more a.btn {
  float: unset;
}

/* main */
.main-homes {
  overflow: hidden;
}

.top-fv__font {
  white-space: nowrap;
  margin: 0;
  font-size: 5.4vw;
  font-weight: 700;
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: center;
  color: #08b15b4d;
  font-family: "Poppins", sans-serif;
  position: relative;
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .top-fv__font {
    text-align: center;
    line-height: 1.1;
    padding-bottom: 0.1em;
    font-size: 10vw;
    text-indent: -0.1em;
    padding-left: 0.1em;
    word-wrap: break-word;
    white-space: normal;
    position: relative;
    z-index: 2;
  }
}

.top-fv {
  padding-bottom: 0em;
}

.top-fv__font-wrap {
  position: relative;
  border-bottom: 2px solid #222;
  padding: 3em 0 1em;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .top-fv__font-wrap {
    height: auto;
    min-height: 20vw;
    padding: 1.5em 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    text-align: center;
    gap: 1em;
  }
}
/* .bottom-font-sp2 {
  position: absolute;
  bottom: 0;
  right: 2em;
  transform: none;
  width: auto;
  height: auto;
  max-width: 90px;
  z-index: 1;
} */

/* デスクトップでは非表示のまま */
@media screen and (min-width: 1001px) {
  .bottom-font-sp2 {
/*     display: none !important; */
  }
}

@media screen and (max-width: 768px) {
  .bottom-font-sp2 {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
	margin-top:-4vw;
    max-width: 85.33vw;
    margin-left: 0;
  }
}

section.top-fv h1 {
  line-height: 1.1;
  padding-right: 24px;
  margin-top: 14px;
}
@media screen and (max-width: 1000px) {
  section.top-fv h1 {
    padding: 0.2em;
    padding-top: 0.2em;
    margin-top: 0.5em;
    line-height: 1.5;
  }
  section.top-fv h1::before {
    transform: scaleY(1) perspective(0.9em) rotateX(359deg);
  }
}
@media screen and (max-width: 768px) {
  section.top-fv h1 {
    font-size: 6vw;
  }
  section.top-fv h1 span {
    font-size: 8vw;
  }
  section.top-fv p {
	font-size: 4vw;
  }
  .top-fv__font-wrap {
	padding-top: 0;
  }
}
/* === FIX 20250810 works 番号装飾をデスクトップでも適用 (service と同様レイアウト) === */
section.works h3 {
  /* 優先度確保のため末尾再定義 */
  text-align: justify;
  font-size: 24px;
  font-weight: 500;
  align-items: center;
  display: flex;
  gap: 0.5em;
  margin: 0 0 1em 0;
}
section.works h3 span {
  /* 番号装飾 */
  font-size: 60px;
  font-family: "Poppins", sans-serif;
  color: #08b15b;
  line-height: 1;
  display: inline-block;
}
@media (max-width: 1000px) {
  section.works h3 {
    font-size: 20px;
  }
  section.works h3 span {
    font-size: 50px;
  }
}
/* === /FIX === */

/* === NEWS responsive: minimal, conflict-free rules === */
/* Smartphone: 2 lines (1st: date+category, 2nd: title) */
@media screen and (max-width: 768px) {
    section.news ul li a { display: flex; flex-direction: column; align-items: flex-start; }
    section.news ul li a .deta { display: flex; align-items: center; white-space: nowrap; width: 100%; gap: .6em; font-size: 12px; margin: .15em 0 .25em; }
    section.news ul li a .deta .deta-date { margin-right: .55em; }
    section.news ul li a .deta .cat-badges { min-width: 0; }
    section.news ul li a .deta .cat-badge { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    section.news ul li .title { width: 100%; }
    section.news ul li .title p { font-size: 15px; white-space: normal; overflow: visible; text-overflow: clip; margin-bottom: .35em; }
}

/* Tablet: single line with ellipsis on title */
@media screen and (min-width: 769px) and (max-width: 1000px) {
    section.news ul li a { display: flex; flex-direction: row; align-items: center; gap: .6em; flex-wrap: nowrap; }
    section.news ul li a .deta { display: flex; align-items: center; white-space: nowrap; gap: .7em; font-size: 13px; margin-top: .2em; }
    section.news ul li a .deta .deta-date { margin-right: .6em; }
    section.news ul li .title { flex: 1 1 auto; min-width: 0; }
    section.news ul li .title p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
}

/* Smartphone 縦積み時の横gap無効化（縦方向余白は margin で確保） */
@media screen and (max-width: 768px) {
    section.news ul li a { gap: 0; }
}

/* add 20250806 fv */
.top-fv__puzzle-img{
	position:absolute;
	width: clamp(94px, 94px + (134 - 94) * (100vw - 768px) / 442, 134px);
    left: -12%;
    top: -2%;
}
@media screen and (max-width: 1210px) {
	.top-fv__puzzle-img{
		left: -15%;
		top: -6%;
}
}
@media screen and (max-width: 768px) {
	.top-fv__puzzle-img{
		display:none;
}
}

.top-fv__puzzle-img img{
	width:100%;
	height:auto;
}

@media screen and (max-width: 768px) {
section.top-fv .flex{
	padding-top: 2em;
}
}

.bottom-font-sp2{
	position:relative;
	max-width: 120px;
	margin-left:auto;
	margin-right:80px;
}
@media screen and (max-width: 1000px) {
.bottom-font-sp2{
	max-width: 100px;
}	
}

section.top-fv .img3{
	left:-28%;
	bottom:3%;
	width: clamp(90px, 90px + (134 - 90) * (100vw - 768px) / 442, 130px);
}
@media screen and (max-width: 1210px) {
	section.top-fv .img3{
	left:-15%;
		bottom:0;
	}
}

@media screen and (max-width: 1000px) {
	section.top-fv .img3{
	left:-25%;
	}
}
.top-fv__font-wrap{
	padding-top:0;
	padding-bottom:0;
}