html {
  scroll-padding-top: 110px;
}

body {
  padding-top: 110px;
}

.l-container {
  max-width: calc(100% - 40px);
  margin-inline: auto;
}

.l-container.top-space {
  padding-top: 60px;
}

.p-top-about .title-box {
  margin-bottom: 0;
}

.p-top-about .content-section {
  padding-left: 40px;
  padding-right: 40px;
}

.p-top-about .title-box h2 {
  font-size: 33px;
  text-align: center;
  line-height: 1.5;
  padding-top: 40px;
  margin-bottom: 0;
}

.content-section {
  padding: 0 0 60px;
  gap: 40px;
  max-width: 1200px;
}

.title-box {
  max-width: 1200px;
  width: 100%;
}

.title-box h2 {
  text-align: center;
}

.content-section .image-box {
  display: flex;
  justify-content: center;
}

.content-section.second {
  padding: 60px 20px 60px;
}

.p-top-service .service-button-box-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.p-top-service .service-button-box {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.p-top-tags#tags {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  margin-top: 60px;
}

.p-top-cases#top-cases {
  max-width: calc(100% - 40px);
  margin-inline: auto;
}

.p-top-cases#top-cases #postArea .lifeList ul {
  width: 100%;
}

#postArea .lifeList .list h3 {
  height: auto;
}

#allpost .lifeList .list {
  border-radius: 8px;
}

.p-top-news#news-posts {
  max-width: calc(100% - 40px);
  margin-inline: auto;
}

.p-top-news#news-posts .news-section {
  width: 100%;
  max-width: 990px;
}

#footer {
  display: flex;
  justify-content: center;
  align-items: center ;
}

#footer #footerInter #f_menu {
  float: none;
  text-align: center;
}

#footer #footerInter #f_menu #copyright {
  float: none;
}

.works-title {
  font-size: 14px;
}

.tags-container {
  font-size: 12px;
}

.news-item {
  display: flex;
  gap: 20px;
}

.news-item .news-content {
  margin: 0;
}

.news-item .news-content .news-title {
  font-size: 16px !important;
}

.news-item .news-content .news-excerpt {
  font-size: 14px;
}

.news-item .news-content .news-tags {
  font-size: 12px;
}

.p-all-news#allpost {
  max-width: calc(100% - 40px);
  margin-inline: auto;
}

.p-all-news#allpost .post-title {
  font-size: 33px;
  margin-bottom: 20px;
}

.post-service-button-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: auto;
  max-width: 1000px;
}

.p-service#allpost .lifeList ul {
  float: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.p-service#allpost .lifeList .list {
  float: none;
  margin: 0;
  width: auto;
  height: auto;
}

.p-service#allpost .lifeList .list h3 {
  height: auto;
}

.tag-title-box .works-category {
  text-align: center;
}

.category-title {
  text-align: center;
  font-size: 33px;
  font-weight: 700;
  padding-bottom: 20px;
}

#single {
  overflow: hidden;
  overflow-wrap: anywhere;
}

.company-heading {
  margin-top: 40px;
  text-align: center;
}

.company-heading p {
  font-size: 20px;
}

.company-heading h1 {
  font-size: 30px;
}

.p-company {
  overflow: hidden;
}

.message-box img {
  width: 400px;
  max-width: 100%;
  height: auto;
}

.company-message {
  margin-right: 0;
}

.policy_box {
  width: auto;
  max-width: calc(100% - 40px);
  margin-inline: auto;
}

.nav-mobile {
  display: none;
}

#topHeader {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background-color: #fff;
}

#topHeader .nav > ul > li > a,
#topHeader .nav > ul > li > button {
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

#topHeader .nav ul li:has(.dropdown) .arrow {
  display: none;
}

#nav-button {
  display: none;
}

#topHeader .nav ul li .dropdown {
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

#postArea .lifeList .list {
  height: auto;
}

.work-client {
  margin-top: 16px;
}

.topSum {
  width: 100%;
}

.news-thumbnail img {
  width: 100%;
}

.top-read-more-button {
  margin-top: 30px;
}

.read-more-btn {
  font-size: 16px;
}

#allpost h2 {
  width: 100%;
}

#top_sns ul {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
}

#top_sns li {
  max-width: 40px;
}

#top_sns li img {
  width: 100%;
}

.wp-pagenavi {
  font-size: 16px;
}

.p-top-news .news-thumbnail {
  aspect-ratio: 190 / 130;
  width: 20%;
  min-width: 190px;
}

.p-top-news .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top-news .news-item {
  align-items: flex-start;
}

a.btn_contact {
  width: 100%;
  max-width: 160px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

a.btn_contact::before {
  margin-top: 1px;
  font-size: 25px;
}

@media only screen and (min-width: 1000px) {
  #postArea {
      max-width: 1200px;
      background-color: #fff;
      color: #000;
      border-radius: 50%;
      text-align: center;
      line-height: 15px;
      font-size: 12px;
      position: relative;
      top: 1px;
      left: -15px;
    }
}

@media only screen and (max-width: 999px) {
  #container.l-container.top-space {
    padding-top: 60px;
  }

  .top-title {
    object-fit: cover;
    aspect-ratio: 2 / 1;
  }

  .p-top-about .content-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .p-top-about .title-box h2 {
    font-size: 33px;
    text-align: center;
    line-height: 1.5;
    padding: 50px 20px 20px;
  }

  .content-section {
    flex-direction: column;
    padding: 0 20px 40px;
  }

  .content-section .image-box {
    width: 80%;
    margin-top: 0;
  }

  .content-section .text-box {
    width: 100%;
    font-size: 16px;
  }

  .content-section .text-box.first {
    width: 100%;
  }

  .p-top-service {
    max-width: calc(100% - 40px);
    margin-inline: auto;
  }

  .p-top-service .service-button-box-container {
    gap: 10px;
    margin-top: 30px;
  }

  .p-top-service .service-button-box {
    gap: 10px;
  }

  .p-top-tags#tags {
    max-width: calc(100% - 40px);
    margin-inline: auto;
    margin-top: 40px;
  }

  .p-service#allpost .lifeList ul {
    width: 100%;
  }

  .post-service-button-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .p-service#allpost .lifeList ul {
    float: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .wp-pagenavi {
    margin-top: 40px;
  }

  .companyinfo-table {
    margin-top: 40px;
  }

  #topHeader #headerInner {
    height: 80px;
  }

  #topHeader .nav {
    width: auto;
    margin-top: 0;
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  }

  #topHeader .nav.nav-category {
    display: none;
  }
}

@media only screen and (max-width: 800px) {
  html {
    scroll-padding-top: 60px;
  }

  body {
    padding-top: 0;
  }

  #container {
    padding-top: 60px;
  }

  #topHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-sizing: border-box;
  }

  #topHeader #headerInner {
    height: 60px;
  }

  #topHeader #h_logo {
    padding-top: 0;
  }

  #nav-button {
    position: relative;
    display: block;
    width: 30px;
    height: 16px;
  }

  #nav-button::before {
    position: absolute;
    content: '';
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 30px;
    height: 30px;
  }

  #nav-button span {
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: center;
  }

  #nav-button span:nth-child(2) {
    top: 7.5px;
  }

  #nav-button span:nth-child(3) {
    top: 15px;
  }

  #nav-button.is-opened span:nth-child(1) {
    transform: rotate(45deg) translateY(6px) translateX(5px);
  }

  #nav-button.is-opened span:nth-child(2) {
    opacity: 0;
  }

  #nav-button.is-opened span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px) translateX(5px);
  }

  .topmessage {
    margin-top: 50px;
  }

  .message-box img {
    width: 280px;
    display: block;
    margin-inline: auto;
  }

  #topHeader .nav {
    position: fixed;
    top: 60px;
    left: 0;
    overflow: auto;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #fff;
    box-sizing: border-box;
    border-top: 1px solid #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  #topHeader .nav.is-opened {
    opacity: 1;
    visibility: visible;
  }

  #topHeader .nav ul {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0;
  }
  
  #topHeader .nav > ul > li {
    width: 100%;
    text-align: left;
    font-size: 18px;
    line-height: 1.5;
    border-bottom: 1px solid #000;
  }

  #topHeader .nav > ul > li > a {
    width: calc(100% - 40px);
    display: block;
    padding: 10px 20px;
    font-size: 18px;
    text-align: left;
  }

  #topHeader .nav > ul > li > button {
    display: block;
    padding: 10px 20px;
    font-size: 18px;
    text-align: left;
    width: 100%;
    color: #000;
  }

  #topHeader .nav > ul > li > .has-child {
    pointer-events: none;
  }

  #topHeader .nav ul li:has(.dropdown) .arrow {
    position: absolute;
    right: 20px;
    top: 17px;
    color: #000;
    transition: transform 0.3s ease-in-out;
    line-height: 1;
    width: 16px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
  }

  #topHeader .nav ul li:has(.dropdown) .arrow svg {
    vertical-align: bottom;
  }

  #topHeader .nav ul li.is-opened:has(.dropdown) .arrow {
    transform: rotate(180deg);
  }

  #topHeader .nav ul li .dropdown {
    position: relative;
    top: auto;
    left: auto;
    box-shadow: none;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    display: none;
    transform: translate(0);
    white-space: normal;
  }

  #topHeader .nav ul li ul li {
    width: 100%;
    box-sizing: border-box;
  }

  #topHeader .nav ul li ul li a {
    font-size: 12px;
    text-align: left;
    padding: 0;
    display: block;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
  }
}

@media only screen and (max-width: 639px) {
  #topHeader {
    padding: 0 4%;
    background-size: cover;
    box-sizing: border-box;
    width: 100%;
  }

  .p-top-about .title-box h2 {
    font-size: 32px;
    padding: 16px 20px;
  }

  .content-section .image-box {
    width: 100%;
  }

  .news-item {
    flex-direction: column;
  }

  #postArea .lifeList .list {
    padding-bottom: 20px;
  }

  .p-top-news .news-thumbnail {
    aspect-ratio: 190 / 130;
    width: 100%;
    min-width: auto;
  }
}

@media only screen and (max-width: 500px) {
  .p-top-service .service-button-box {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== SEO: heading structure & archive description (added 2026-07) ===== */
.seo-h1-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.archive-term-description {
	max-width: 900px;
	margin: 0 auto 40px;
	padding: 0 20px;
	font-size: 14px;
	line-height: 1.9;
	text-align: center;
}
.archive-term-description p {
	margin: 0;
}
@media only screen and (max-width: 639px) {
	.archive-term-description {
		font-size: 13px;
		line-height: 1.8;
		text-align: left;
		padding: 0 16px;
		margin-bottom: 24px;
	}
}
