:root {
  --white-color: #ffffff;
  --gray-color: #7d7c7d;
  --gray2-color: #cdcccd;
  --black-color: #000000;
  --body-color: #f7f7f7;
  --header-color: rgba(255, 255, 255, 0.8);
  --footer-background-color: #211714;
  --footer-font-color: #ffffff;
  --primary-background-color: #efb818;
  --primary-font-color: #ffffff;
  --primary-color: #efb818;
  --secondary-color: #ead638;
  --cream-color: #fdfae9;
  --medium-font-size: 1.8rem;
  --h2-font-size-pc: 5rem;
  --subscript-size-pc: 3rem;
  --ul-post-list-height-pc: 60px;
  --ul-post-list-height-sp: 90px;
}
@font-face {
    font-family: "Local Noto Sans JP";
    src: local("Noto Sans JP");
}

html, body {
  width: 100%;
  height: 100%;
  font-size: 62.5%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  /* font-family: "Local Noto Sans JP", "Noto Sans JP", sans-serif, '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif; */
  margin: 0px;
}
main {
  overflow: visible;
}
header {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  background: var(--header-color);
  position: fixed;
  z-index: 99;
}

header img {
  position: absolute;
  left: 80px;
  top: 26px;
  width: 250px;
}

header nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}
header ul {
  display: flex;
  flex-direction: row;
  padding-left: 0px;
}
header ul li {
  list-style: none;
}
header ul li,
header ul li a {
  font-size: var(--medium-font-size);
  text-decoration: none;
  color: var(--black-color);
}

header ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 3.0em;
}

header ul li {
  position: relative;
  padding-right: 1.5em;
}

header ul li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  color: var(--black-color);
}
header .header-contact {
  position: absolute;
  right: 0px;
  top: 0px;
  display: flex;
  flex-direction: column;
}
header .header-tel {
  width: 300px;
  height: 60px;
  background: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
}
header .header-tel img {
  position: relative !important;
  margin-left: 0px !important;
  width: 40px;
  margin-right: 15px;
  margin-bottom: -3px;
  left: 0px !important;
  top: 0px !important;
}
header .header-mail {
  width: 300px;
  height: 60px;
  background: var(--primary-background-color);
  display: flex;
  justify-content: center;
  align-items: center;
}
header .header-tel a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 2.4rem;
}
header .header-mail a {
  text-decoration: none;
  color: var(--white-color);
  font-size: var(--medium-font-size);
}

footer {
  font-size: var(--medium-font-size);
  position: relative;
  width: 100%;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--footer-background-color);
  color: var(--footer-font-color);
  overflow-x: hidden;
}
footer small {
  position: absolute;
  bottom: 0px;
  width: 100%;
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: var(--footer-background-color);
  color: var(--primary-font-color);
}

section {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.main-visual img {
  width: 100%;
}

.inner-container {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.inner-container-row {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.inner-container-row .explain {
  width: 50%;
  display: flex;
  flex-direction: column;  
}

.row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.sq {
  width: clamp(40px, 10vmin, 80px);
  aspect-ratio: 5 / 1;
}
.c1 { background: var(--primary-background-color); }
.c2 { background: var(--secondary-color); }

.achv-swiper-wrap img{

max-width:100%;height:auto;display:block;width:auto;

}

.main-visual {
  height: auto;
  width: 100%;
  background: var(--body-color);
}

/* main visual slideshow */
#top .main-visual {
  position: relative;
  width: 100%;
  height: 54vw !important;
  /* height: clamp(500px, 70vw, 750px); */
  overflow: hidden;
  background: var(--body-color);
}
#top .main-visual img {
  height: 50vw !important;
}
.main-visual img {
  height: auto;
  width: 100%;
}

section h2 {
  font-size: 5rem;
}
section:nth-child(2) {
  padding-top: 100px;
}


.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  margin-top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot:hover {
  background: rgba(0,0,0,0.8);
}

.dot.active {
  background: var(--black-color);
}



/* news-archive */
section.latest-news {
  padding-top: 50px;
  padding-bottom: 50px;
  background: var(--body-color);
}

section.latest-news span {
  font-size: 3rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}

section.latest-news .inner-container-row {
  justify-content: center;
  width: 70%;
}

section.latest-news a.to-news {
  font-size: var(--medium-font-size);
  text-decoration: none;
  color: var(--black-color);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
}
section.latest-news a.to-news img {
  width: 40px;
  margin-left: 20px;
}

section.latest-news ul {
  margin-left: 100px;
  width: 70%;
}
section.latest-news ul li {
  list-style: none;
  border-bottom: solid 1px var(--gray-color);
  min-height: var(--ul-post-list-height-pc);
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
section.latest-news ul li a {
  text-decoration: none;
  color: var(--black-color);
  font-size: var(--medium-font-size);
  display: flex;
  margin-top: 15px;
}
section.latest-news ul li a time {
  margin-right: 20px;
  width: 111px;
}
section.latest-news ul li a .news-title {
  font-size: var(--medium-font-size);
  color: var(--black-color);
  width: calc(40vw - 111px);
  margin-bottom: 15px !important;
}
.news-left {
  width: 30%;
  height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-right: solid 2px var(--primary-color);
}
.news-left-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

/* message */
section.message {
  padding-top: 100px;
  padding-bottom: 100px;
  background: var(--cream-color);
}
section.message div.inner-container {
  padding-top: 100px;
  padding-bottom: 100px;
  background: var(--white-color);
}
section.message div.inner-container img {
  width: 350px;
  margin-bottom: 50px;
}
section.message div.inner-container p {
  color: var(--black-color);
  font-size: var(--medium-font-size) !important;
}

/* company */
section.company {
  padding-bottom: 100px;
  background: var(--cream-color);
}
section.company .inner-container-row {
  align-items: flex-start;
}
section.company a {
  font-size: var(--medium-font-size);
  text-decoration: none;
  color: var(--black-color);
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 50px;
}
section.company a img {
  width: 40px;
  margin-left: 20px;
}
section.company .explain-img {
  width: 50%;
}
section.company .explain {
  color: var(--black-color);
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 3vw;
  justify-content: center;
}
section.company .explain span {
  font-size: 3rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}
section.company .explain p {
  margin-top: 50px;
  font-size: var(--medium-font-size);
}
/* business */
section.business {
  padding-bottom: 100px;
  background: var(--cream-color);
}
section.business .inner-container-row {
  align-items: flex-start;
}
section.business a {
  font-size: var(--medium-font-size);
  text-decoration: none;
  color: var(--black-color);
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 50px;
}
section.business a img {
  width: 40px;
  margin-left: 20px;
}
section.business .explain-img {
  width: 50%;
}
section.business .explain {
  color: var(--black-color);
  justify-content: center;
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 3vw;
}
section.business .explain span {
  font-size: 3rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}
section.business .explain p {
  margin-top: 50px;
  font-size: var(--medium-font-size);
}

/* works */
section.works {
  padding-top: 100px;
  padding-bottom: 40px;
  background: var(--body-color);
}
section.works span {
  font-size: 3rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}
section.works .row {
  margin-bottom: 40px;
}
section.works p {
  font-size: var(--medium-font-size);
}
section.works p:last-child {
  padding-bottom: 100px;
}

section.works .card1 {
  position: relative;
  width: 50%;
}
section.works .card2 {
  position: relative;
  width: 100%;
}
section.works .card1 img,
section.works .card2 img {
  width: 100%;
}
section.works a.works-button1 {
  text-decoration: none;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 100px;
  font-size: var(--medium-font-size);
  color: var(--white-color);
  border: solid 5px var(--white-color);
  transform: translate(-50%, -50%);
}
section.works a.works-button2 {
  text-decoration: none;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 100px;
  font-size: var(--medium-font-size);
  color: var(--white-color);
  border: solid 5px var(--white-color);
  transform: translate(-50%, -50%);
}

section.works a.works-button1:hover {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 100px;
  font-size: var(--medium-font-size);
  color: var(--black-color);
  background: var(--white-color);
  border: solid 2px var(--white-color);
}

section.works a.works-button2:hover {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 100px;
  font-size: var(--medium-font-size);
  color: var(--black-color);
  background: var(--white-color);
  border: solid 2px var(--white-color);
}

section.works .to-works-area {
  background: var(--body-color);
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
section.works a.to-works {
  font-size: var(--medium-font-size);
  text-decoration: none;
  color: var(--black-color);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
section.works a.to-works img {
  width: 40px;
  margin-left: 20px;
}


/* contact */
section.contact {
  padding-top: 120px;
  padding-bottom: 200px;
  position: relative;
}
section.contact span {
  font-size: 3rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}
section.contact .contact-message {
  margin-top: 70px;
  font-size: 3rem;
}

section.contact .footer-contact {
  display: flex;
  flex-direction: column;
}
section.contact .footer-tel {
  width: 400px;
  height: 50px;
  background: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
}
section.contact .footer-tel span {
  color: var(--primary-color);
  font-size: 5rem;
  font-weight: 900;
}

section.contact .footer-tel img {
  position: relative !important;
  margin-left: 0px !important;
  width: 50px;
  margin-right: 15px;
  margin-bottom: -5px;
  left: 0px !important;
  top: 0px !important;
}

section.contact .footer-contact .footer-contact-timerange {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
section.contact .footer-contact .footer-contact-timerange p {
  font-size: 2rem;
}
section.contact .footer-mail {
  width: 400px;
  height: 80px;
  background: var(--primary-background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}
section.contact .footer-tel a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 2.4rem;
  margin-top: 60px;
}
section.contact .footer-contact-timerange {
  margin-top: 40px;
}
section.contact .footer-mail a {
  text-decoration: none;
  color: var(--white-color);
  font-size: 3rem;
}

footer a img {
  width: 200px;
  margin-bottom: 30px;
}
footer address {
  font-style: normal;
  margin-bottom: 5px;
}
footer address p {
  font-size: var(--medium-font-size);
}
footer .footer-tel-fax {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
footer .footer-tel-fax a {
  text-decoration: none;
  color: var(--white-color);
  font-size: var(--medium-font-size);
}
footer .footer-tel-fax a:nth-child(1) {
  margin-right: 5px;
}
footer .footer-tel-fax a:nth-child(2) {
  margin-left: 5px;
}


/******************
     news-list
******************/
#news-list .news-list .inner-container span.subtitle {
  margin-bottom: 30px;
}
#news-list .news-list {
  background: var(--body-color);
  padding-bottom: 100px;
}

#news-list .news-list span {
  font-size: var(--subscript-size-pc);
  color: var(--gray-color);
}

#news-list .news-list p {
  font-size: var(--medium-font-size);
}

#news-list .news-list ul {
  margin-top: 70px;
  width: 100%;
}
#news-list .news-list ul li:first-child {
  border-top: solid 1px var(--gray-color);
}
#news-list .news-list ul li {
  list-style: none;
  width: 100%;
  min-height: var(--ul-post-list-height-pc);
  height: auto;
  border-bottom: solid 1px var(--gray-color);
  display: flex;
  align-items: center;
}
#news-list .news-list ul li a {
  text-decoration: none;
  margin-left: 40px;
  margin-right: 40px;
  margin-top: 15px !important;
  margin-bottom: 15px !important;
  display: flex;
}
#news-list .news-list ul li a time {
  color: var(--black-color);
  font-size: var(--medium-font-size);
  margin-right: 50px;
  width: 135px;
}
#news-list .news-list ul li a span.news-title {
  color: var(--black-color);
  font-size: var(--medium-font-size);
  width: calc(58vw - 135px);
}

.nav-links {
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.page-numbers {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  border: 1px solid var(--primary-color) !important;
  background: var(--white-color);
  color: var(--primary-color) !important;
  font-size: var(--medium-font-size) !important;
  margin-left: 10px;
  margin-right: 10px;
}

.page-numbers.current {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: var(--primary-background-color) !important;
  color: var(--white-color) !important;
  font-size: var(--medium-font-size) !important;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 0px !important;
}

.page-numbers.dots {
  transform: none !important;
  margin-top: 0px !important;
}


/******************
     news-detail
******************/
#news-detail .news-detail {
  background: var(--body-color);
  padding-bottom: 100px;
}
#news-detail .news-detail span {
  font-size: var(--subscript-size-pc);
  color: var(--gray-color);
  margin-bottom: 30px;
}

#news-detail .news-detail p {
  font-size: var(--medium-font-size);
}
#news-detail article {
  margin-top: 50px;
  width: 100%;
}
#news-detail article h3 {
  font-size: var(--subscript-size-pc);
  margin-bottom: 30px;
}
#news-detail article time {
  font-size: var(--medium-font-size);
  color: var(--gray-color);
}
#news-detail article .content {
  margin-top: 40px;
  padding-top: 40px;
  border-top: solid 1px var(--gray-color);
  border-bottom: solid 1px var(--gray-color);
  margin-bottom: 40px;
  padding-bottom: 40px;
}

#news-detail a.to-news {
  font-size: var(--medium-font-size);
  text-decoration: none;
  color: var(--black-color);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}
#news-detail a.to-news img {
  width: 40px;
  margin-left: 20px;
}


/***************************
        contact
***************************/
#contact .contact .inner-container span.subtitle {
  margin-bottom: 30px;
}
#contact .contact {
  background: var(--body-color);
  padding-bottom: 100px;
}
#contact dl {
  margin-top: 60px;
  margin-bottom: 45px !important;
  width: 1050px;
}
#contact dd {
  font-size: var(--medium-font-size);
  padding: 0px !important;
}
#contact dd.text {
  margin-bottom: 20px;
}
#contact dd:nth-child(2) {
  margin-bottom: 20px !important;
}
#contact .contact th {
  width: 300px;
  background: var(--cream-color);
  display: flex;
  justify-content: flex-start;
  padding-top: 33px;
  padding-left: 40px;
}
#contact .contact table,
#contact .contact table tr {
  border-collapse: collapse;
}
#contact .contact table tr:first-child {
  border-top: solid 1px var(--gray2-color);
}
#contact .contact table tr {
  border-bottom: solid 1px var(--gray2-color);
}
#contact .contact tr,
#contact .contact th,
#contact .contact td {
  height: 100px;
}
#contact .contact tr:nth-child(6) th {
  height: 250px;
}

#contact th p {
  font-size: var(--medium-font-size);
}
#contact th p span {
  font-size: var(--medium-font-size);
  color: red;
}
#contact textarea {
  width: 700px !important;
  height: 200px !important;
  padding: 10px !important;
  font-size: var(--medium-font-size);
  margin-left: 50px;
  background: var(--white-color);
}
#contact select,
#contact input {
  width: 400px !important;
  height: 50px !important;
  padding: 10px !important;
  padding-left: 20px !important;
  font-size: var(--medium-font-size);
  margin-left: 50px;
  background: var(--white-color);
}
#contact .wpcf7-file {
  background: var(--gray2-color);
  color: var(--black-color);
}

#contact .wpcf7-file::file-selector-button {
  margin-top: -10px;
/*  opacity: 0;
  position: relative;
  width: 400px;
  height: 50px;
  */
}

#contact .wpcf7-file::before{ 
  position: absolute;
  content: "添付ファイル";
  width: 162px;
  height: 50px;
  color: var(--black-color);
  background: var(--gray2-color);
  font-size: var(--medium-font-size);
  text-align: center;
  align-items: center;
  display: grid;
  cursor: pointer;
  margin-top: -10px;
  margin-left: -20px;
}
#contact p.text-center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#contact .wpcf7-submit {
  background: var(--primary-background-color);
  color: var(--white-color);
  width: 200px !important;
  font-size: var(--medium-font-size);
  margin-top: 50px;
}

#contact .contact tr:nth-child(1) td span {
    position: relative;
}

#contact .contact tr:nth-child(1) td span::after {
    content: "";
    position: absolute;
    pointer-events: none;
    top: 50%;
    right: 20px;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 14px solid #555;
    border-bottom: 0;
}
/***************************
        others
***************************/
.to-news-sp {
  display: none;
}
.explain-img-sp {
  display: none;
}
section.contact .contact-message {
  text-align: center;
}
p {
  line-height: 3rem;
}
p.contact-message {
  line-height: 4rem;
}
a:hover {
  opacity: 0.7;
}
.prev,
.next {
  display: none !important;
}


/*******************************
            works-list
*******************************/
#works-list .works-list {
  background: var(--body-color);
}

#works-list .inner-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
}
#works-list span {
  font-size: 3rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}

#works-list p {
  font-size: var(--medium-font-size);
}
#works-list div.row {
  margin-bottom: 50px;
}
#works-list .contents {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#works-list ul li a {
  display: block;
  position: relative;
  background-color: transparent;
  width: 300px !important;
  height: 300px !important;
}
#works-list ul li a img {
  width: 300px !important;
  height: 300px !important;
  object-fit: cover;
}
/* #works-list time,
#works-list img {
  position: absolute;
} */
#works-list span.achievement-title {
  position: absolute;
  font-size: var(--medium-font-size);
  text-decoration: none;
  color: var(--black-color);
  background: var(--white-color);
  box-shadow: 0px 0px 10px var(--black-color);
  padding: 15px;
  padding-bottom: 60px;
  bottom: 0px;
  width: 260px;
  left: 20px;
}
#works-list p.detail-link {
  position: absolute;
  font-size: var(--medium-font-size);
  color: var(--primary-color);
  bottom: 50px;
  right: 40px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--primary-color);
  padding-left: 11px;
}




.category-tabs-container {
  width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.category-tabs {
  display: flex;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
  width: 100%;
}

.category-tabs .tab {
  font-size: var(--medium-font-size);
  padding: 8px 16px;
  cursor: pointer;
  color: var(--black-color);
  border-bottom: 1px solid var(--black-color);
  width: 33%;
  text-align: center;
}

.category-tabs .tab.active {
  font-size: var(--medium-font-size);
  color: var(--primary-color);
  cursor: pointer;
  border-bottom: 5px solid var(--primary-color);
  width: 33%;
  text-align: center;
}
#category-posts {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
#category-posts ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  list-style: none;
  padding: 0;
  width: 100%;
  height: 1000px;
}

#category-posts li {
  width: 100%;
  justify-content: center;
  display: flex;
}

#works-list .pagination {
  display: flex;
  flex-direction: row;
}

/*******************************
            works-detail
*******************************/
#works-detail {
  background: var(--body-color);
}
/* #works-detail .main-visual img {
  position: absolute;
  width: 100%;
  top: 0px;
} */
#works-detail .inner-container {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#works-detail .contents h2 {
  width: 100%;
  font-size: 4rem;
  margin-top: 50px !important;
  margin-bottom: 30px;
}
#works-detail time {
  color: var(--gray-color);
  font-size: var(--medium-font-size);
  width: 100%;
  padding-bottom: 30px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--gray-color);
}
#works-detail span {
  font-size: 3rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}

#works-detail p {
  font-size: var(--medium-font-size);
}
#works-detail div.row {
  margin-bottom: 50px;
}
#works-detail .contents {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#works-detail .gallery button {
  position: absolute;
  top: 57%;
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
#works-detail .gallery button img {
  width: 20px;
}
#works-detail .gallery {
  position: relative !important;
}
#works-detail .prev-garally,
#works-detail .next-garally {
  position: absolute;
  top: 86% !important;
  transform: translateY(-30%) !important;
  transition: background 0.3s !important;
}
#works-detail .prev-scroll-garally, 
#works-detail .next-scroll-garally {
  position: absolute;
  top: 38% !important;
  transform: translateY(-30%) !important;
  transition: background 0.3s !important;
}

#works-detail .prev-garally img,
#works-detail .next-garally img {
  width: 20px !important;
}
#works-detail .prev-scroll-garally img, 
#works-detail .next-scroll-garally img {
  width: 4vw !important;
}

#works-detail .prev-scroll-garally { left: -18px; }
#works-detail .next-scroll-garally { right: -18px; }

#works-detail .prev-garally { left: 5%; }
#works-detail .next-garally { right: 5%; }

#works-detail #mainImage {
  height: 550px !important;
  max-width: 95% !important;
  object-fit: contain !important;
}

#works-detail table {
  margin-top: 50px;
  margin-bottom: 50px;
  border-collapse: collapse;
}
#works-detail table tr {
  border-bottom: 1px solid var(--gray2-color);
  border-collapse: collapse;
}
#works-detail table tr:first-child {
  border-top: 1px solid var(--gray2-color);
  border-collapse: collapse;
}
#works-detail table tr th {
  font-weight: unset;
}

#works-detail table tr th {
  width: 20vw;
  padding: 30px;
  background: var(--cream-color);
}
#works-detail table tr td {
  width: 50vw;
  padding: 30px;
  background: var(--white-color);
}

#works-detail a.to-works {
  font-size: var(--medium-font-size);
  text-decoration: none;
  color: var(--black-color);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 100px;
}
#works-detail a.to-works img {
  width: 40px;
  margin-left: 20px;
}

#works-detail .gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#works-detail .gallery .main-image {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#works-detail .main-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

#works-detail .thumbs {
  display: flex !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  width: 70% !important;
  height: 180px !important;
  text-align: center !important;
  scrollbar-width: auto !important;
  margin-top: 15px;
  padding-top: 8px;
}

#works-detail .thumbs img {
  width: 150px;
  height: 150px;
  margin-left: 10px;
  margin-right: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 0.6;
}

#works-detail .thumbs img:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

#works-detail .thumbs img.active {
  opacity: 1;
  outline: 3px solid var(--primary-color);
  transform: scale(1.05);
}

/*****************************
           company
*****************************/
#company section.company {
  background: var(--body-color) !important;
}
#company .inner-container {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#company span {
  font-size: 2.8rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}

#company p {
  font-size: var(--medium-font-size);
}

#company #philosophy {
  position: relative;
  width: 100vw;
  height: 1130px;
}

#company #philosophy img {
  position: absolute;
  width: 100%;
  height: 1130px;
  object-fit: cover;
}
#company #philosophy h3 {
  position: absolute;
  left: 50%;
  top: 6vw;
  transform: translateX(-50%);
  font-size: var(--h2-font-size-pc);
  color: var(--white-color);
}
#company #philosophy span {
  position: absolute;
  left: 49%;
  top: -5%;
  transform: translateX(-49%);
  font-size: 17.5vw;
  opacity: 0.3;
}
#company h3 {
  font-size: var(--h2-font-size-pc);  
}
#company .header3 {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 50px;
  align-items: center;
}
#company .header3 span {
  margin-bottom: 0px !important;
  margin-left: 15px;
}

#company ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 3.0em;
}

#company ul li {
  position: relative;
  padding-right: 1.5em;
}

#company ul li:not(:last-child)::after {
  content: "|";
  position: absolute;
  top: 47px;
  font-size: 20px;
  right: -9px;
  color: var(--black-color);
}
#company #greeting.greeting {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 100px;
}
#company #greeting.greeting .header3 {
  margin-top: 100px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
/* #company #greeting.greeting .header3 h3 {
  font-size: 4rem !important;
} */
#company #greeting.greeting p {
  margin-top: 50px;
  font-size: var(--medium-font-size);
}
#company #greeting.greeting .sign span {
  font-size: var(--medium-font-size);
}

#company #greeting.greeting .sign {
  width: 100%;
  height: 130px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  display: flex;
  color: var(--black-color);
}
#company #greeting.greeting .sign span {
  margin-bottom: 10px !important;
  color: var(--black-color);
}

#company #philosophy .philosophy-card:nth-child(6) {
  position: absolute;
  width: 70%;
  top: 700px;
  margin-left: 25%;
}
#company #philosophy .philosophy-card:nth-child(7) {
  position: absolute;
  width: 70%;
  top: 800px;
  margin-left: 25%;
}
#company #philosophy .philosophy-card:nth-child(8) {
  position: absolute;
  width: 70%;
  top: 900px;
  margin-left: 25%;
}
#company #philosophy .philosophy-card {
  height: 28px;
  margin-bottom: 30px;
}
#company #philosophy .philosophy-card .header4 {
  height: 47px !important;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
#company #philosophy .philosophy-card .header4 h4 {
  color: var(--white-color);
  font-size: 6rem;
}
#company #philosophy .philosophy-card .header4 span {
  width: 86%;
  color: var(--white-color) !important;
  font-size: 4rem;
  margin-bottom: 0px;
  margin-left: -2vw;
  opacity: 1.0 !important;
  top: 0px;
  left: 53% !important;
}
#company #philosophy .philosophy-card p {
  color: var(--white-color);
  font-size: var(--medium-font-size);
}



#company #company-company.company {
  width: 100%;
  display: flex;
  justify-content: center;
}
#company #company-company.company .header3 {
  width: 100%;
  margin-top: 100px;
  margin-bottom: 50px;
}

#company #company-company.company table,
#company #company-company.company table tr {
  width: 100%;
  border-collapse: collapse;
}

#company #company-company.company table tr:first-child {
  border-top: 1px solid var(--gray-color);
}
#company #company-company.company table tr {
  border-bottom: 1px solid var(--gray-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

#company #company-company.company table tr th {
  width: 300px;
  height: 100px;
  background: var(--cream-color);
  font-size: var(--medium-font-size);
  font-weight: 500;
  display: flex;
  padding-left: 30px;
  justify-content: flex-start;
  align-items: center;
}
#company #company-company.company table tr td {
  width: 100%;
  font-size: var(--medium-font-size);
  display: flex;
  padding-left: 30px;
  justify-content: flex-start;
  align-items: center;
}

#company #company-company.company table tr:nth-child(7) td span {
  font-size: var(--medium-font-size);
  color: var(--black-color);
  margin-bottom: 0px;
}
#company #company-company.company table tr:nth-child(7) td a {
  width: auto !important;
  margin-top: 0px !important;
  color: var(--black-color);
  border-bottom: 1px solid var(--black-color);
}




#company #privacy-policy {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 100px;
}

#company #privacy-policy .privacy-policy {
  height: 250px;
  width: 100%;
  padding: 1em;
  border: 1px solid var(--black-color);
  overflow-y: scroll;
  background: var(--white-color);
  font-size: var(--medium-font-size);
}

#company #privacy-policy .privacy-policy a {
  width: 150px !important;
  display: inline;
}

#company h3 {
  font-size: 2.8rem !important;
}

#company .big-text {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-top: 300px;
  margin-left: 8vw;
}
#company .big-character {
  position: unset !important;
  color: var(--primary-color);
  font-size: 12vw !important;
}
#company .small-character {
  position: unset !important;
  color: var(--white-color);
  font-size: 6vw !important;
  margin-left: -50px;
  margin-right: 50px;
}
#company .small-character:last-child {
  margin-left: 0px !important;
  margin-right: 0px !important;
}

#company #philosophy span.big-character,
#company #philosophy span.small-character {
  /* position: unset !important;
  left: unset !important;
  top: unset !important;
  transform: unset !important;
  font-size: unset !important; */
  opacity: unset !important;
  line-height: 1;
}
#company .philosophy-explain {
    position: absolute;
    z-index: 999;
    color: var(--white-color);
    width: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px !important;
    font-size: 4rem;
    margin-left: 14%;
}




#company #company-company.company table tr:nth-child(6) td {
  display: inline-block !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}
#company #company-company.company table tr:nth-child(6) td p {
  display: inline !important;
}
#company #company-company.company table tr:nth-child(6) td a {
  display: inline !important;
  font-size: var(--medium-font-size) !important;
  text-decoration: none;
  width: auto !important;
  justify-content: flex-start !important;
  color: var(--black-color) !important;
  margin-top: 0px !important;
}

/********************************
            business
********************************/

#business section.business {
  background: var(--body-color) !important;
}

#business ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 3.0em;
}

#business ul li {
  position: relative;
  padding-right: 1.5em;
}

#business ul li:not(:last-child)::after {
  content: "|";
  position: absolute;
  top: 47px;
  font-size: 20px;
  right: -9px;
  color: var(--black-color);
}

#business section div.index {
  background: var(--body-color) !important;
  padding-bottom: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#business section div.index .subtitle {
  font-size: 3rem;
  color: var(--gray-color);
}

#business #contents {
  position: relative;
  width: 100vw;
  height: 980px;
}

#business #contents img {
  position: absolute;
  width: 100%;
  height: 980px;
  object-fit: cover;
}
#business #contents h3 {
  position: absolute;
  left: 50%;
  top: 6vw;
  transform: translateX(-50%);
  font-size: var(--h2-font-size-pc);
  color: var(--white-color);
}
#business #contents .explain {
  position: absolute;
  color: var(--white-color);
  font-size: var(--medium-font-size);
  left: 50%;
  top: 200px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
#business #contents .explain p {
  margin-top: 0px;
}
#business #contents .contents-card {
  position: absolute;
  background: var(--white-color);
  width: 80%;
  height: 250px;
  top: 500px;
  left: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#business #contents .contents-card ul {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 170px;
  width: 22%;
  gap: 0.3rem !important;
  margin-left: 50px;
}
#business #contents .contents-card ul li {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}
#business #contents .contents-card ul li p {
  color: var(--black-color);
  font-size: var(--medium-font-size);
}
#business #contents .contents-card ul li span {
  color: var(--primary-color);
  font-size: var(--medium-font-size);
  margin-top: 2px;
  margin-right: 20px;
}
#business #contents .to-works img {
  width: 40px !important;
  height: 40px !important;
}






#business #contents .contents-card ul:not(:last-child) {
  border-right: 1px solid var(--black-color);
}

#business #contents .contents-card ul li::after {
  content: "";
}
#business #contents a.to-works {
  position: absolute;
  bottom: 100px;
  right: 10%;
  color: var(--white-color);
}
#business #contents a.to-works p {
  margin-right: 50px;
}

#business #flow {
  height: 1500px;
  width: 100%;
  background: var(--cream-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#business #flow .inner-container {
  position: relative;
  margin-top: 0px;
}

#business #flow .inner-container .header3 {
  position: absolute;
  top: -370px;
  left: 10%;
  width: 800px;
  display: flex;
}
#business #flow .inner-container .header3 h3 {
  margin-top: 19px;
}
#business #flow ol.flow-image {
  width: 80%;
  height: 700px;
  left: 0px;
  margin-top: -200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; 
}
#business #flow ol.flow-image::before {
  background: var(--primary-color);
  width: 2px;
  content: "";
  position: absolute;
  left: calc(10% + 48px);
  top: -100;
  bottom: -300;
}

#business #flow h3 {
  font-size: 4rem;
}
#business #flow .subtitle {
  color: var(--gray-color);
  font-size: 3rem;
  background: var(--cream-color);
}
#business #flow span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  background: var(--primary-background-color);
  color: var(--white-color);
  margin-right: 40px;
}
#business #flow h4 {
  font-size: 4rem;
  margin-top: 20px;
  margin-right: 40px;
}
#business #flow p {
  color: var(--gray-color);
  font-size: var(--medium-font-size);
  margin-top: 30px;
}

#business #flow .flow-row {
  display: flex;
  flex-direction: row;
  margin-bottom: 100px;
}

#business #flow .flow-row-text {
  width: 660px;
}







#business #area {
  height: 500px;
  width: 100%;
  background: var(--body-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#business #area h3 {
  font-size: 4rem;
}
#business #area .subtitle {
  color: var(--gray-color);
  font-size: 3rem;
  background: var(--body-color);
  margin-top: 8px;
}

#business #area .inner-container {
  position: relative;
}

#business #area .inner-container .header3 {
  position: absolute;
  top: -150px;
  left: 10%;
  display: flex;
}
#business #area .inner-container .header3 h3 {
  margin-top: 0px;
}
#business #area img {
  width: 700px;
  position: absolute;
  left: -100px;
}
#business #area .area-card p {
  font-size: var(--medium-font-size);
}
#business #area .area-card p:nth-child(1) {
  margin-bottom: 30px;
}
#business #area .area-card {
  position: absolute;
  background: var(--white-color);
  width: 80%;
  height: 250px;
  top: -50px;
  left: 10%;
  padding-left: 70px;
  padding-right: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

div {
  scroll-margin-top: 120px;
}


.wpcf7-not-valid-tip {
  color: red !important;
  font-size: var(--medium-font-size) !important;
  margin-left: 50px !important;
  margin-bottom: 0px !important;
}
.wpcf7-response-output {
  font-size: var(--medium-font-size) !important;
}

/*******************/

@media (min-width: 769px) and (max-width: 1199px) {
  header nav {
    margin-top: 40px !important;
    position: absolute !important;
    left: 80px !important;
    display: block !important;
  }
  header h1 img {
    top: 12px !important;
  }
}
@media (max-width: 768px) {

  #company #philosophy .philosophy-card .header4 {
    height: 106px !important;
  }
  #company .big-text {
    margin-top: 49vw !important;
  }
  #company .big-text span.big-character {
    position: unset !important;
    color: var(--primary-color);
    font-size: 13vw !important;
  }
  #company .big-text span.small-character {
    position: unset !important;
    color: var(--white-color);
    font-size: 8vw !important;
    margin-right: 10px;
    margin-left: -10px;
  }
  #company .small-character:last-child {
    margin-left: 10px !important;
    margin-right: -10px !important;
  }

  #company .philosophy-explain {
    position: absolute;
    z-index: 999;
    color: var(--white-color);
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0px !important;
    margin-left: 5% !important;
    font-size: var(--medium-font-size);
  }

  #top .main-visual {
    height: 59vw !important;
  }

  header {
    height: 80px;
  }
  .header-contact,
  header nav {
    display: none !important;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: #333;
    text-align: right;
    padding: 10px 20px;
  }

  .header-contact.active,
  nav.active {
    display: flex !important;
    position: absolute !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(255,255,255,0.8);
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    z-index: 9;
  }

  nav li {
    margin: 15px 0;
  }

  .burger-btn {
    display: flex;
    width: 40px;
    height: 30px;
  }

  .dots {
    position: absolute;
    margin-top: 55vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .contact span,
  .works span,
  .news-left-title span,
  .explain span {
    font-size: 2.3rem !important;
    margin-bottom: 20px !important;
  }
  .inner-container-row {
    width: 100%;
    display: flex;
    flex-direction: column !important;
  }
  section.latest-news .news-left {
    width: 100% !important;
    height: 150px !important;
  }
  .news-left-title {
    width: 100%;
    align-items: center;
  }
  section.latest-news a.to-news {
    display: none;    
  }
  section.latest-news a.to-news-sp {
    font-size: var(--medium-font-size);
    text-decoration: none;
    color: var(--black-color);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
  }
  section.latest-news a.to-news-sp img {
    width: 40px;
    margin-left: 20px;
  }

  .burger-btn span {
    display: block !important;
  }
  .burger-btn span:nth-child(1) {
    background: var(--black-color);
    height: 4px;
    width: 40px;
    margin: 4px 0;
    transition: all 0.3s;
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 2px;
  }
  .burger-btn span:nth-child(2) {
    background: var(--black-color);
    height: 4px;
    width: 40px;
    margin: 4px 0;
    transition: all 0.3s;
    position: absolute;
    top: 35px;
    right: 20px;
    border-radius: 2px;
  }
  .burger-btn span:nth-child(3) {
    background: var(--black-color);
    height: 4px;
    width: 40px;
    margin: 4px 0;
    transition: all 0.3s;
    position: absolute;
    top: 50px;
    right: 20px;
    border-radius: 2px;
  }

  section.latest-news .inner-container-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  section.latest-news ul {
    margin-left: 0px;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  section.latest-news ul li {
    width: 100% !important;
    min-height: var(--ul-post-list-height-sp) !important;
    height: auto;
  }
  section.latest-news ul li a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  section.latest-news ul li a .news-title {
    width: 100% !important;
  }
  section.message {
    width: 100%;
  }
  section.message div.inner-container {
    width: 90%;
  }
  section.message div.inner-container img {
    width: 50%;
  }
  section.message div.inner-container p {
    width: 80%;
  }

  section.business .explain-img,
  section.company .explain-img {
    width: 100% !important;
  }

  .inner-container-row .explain {
    width: 100% !important;
  }

  .explain-img {
    display: none;
  }
  .explain-img-sp {
    display: block;
    width: 100% !important;
  }

  section.business .explain,
  section.company .explain {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  section.works .card1 {
    width: 100%;
  }
  section.works a.works-button1,
  section.works a.works-button2 {
    width: 60%;
  }
  section.works a.works-button1:hover,
  section.works a.works-button2:hover {
    top: 50%;
    left: 50%;
    width: 60%;
  }
  section.contact .inner-container {
    width: 90%;
  }
  section.contact .footer-tel span {
    font-size: 3.5rem;
  }
  section.contact .footer-mail {
    width: 320px !important;
  }
  section.contact .footer-mail a {
    font-size: 2.4rem;
  }
  section.contact .footer-contact {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }


  section.business .explain,
  section.company .explain {
    padding-left: 0px !important;
    padding-right: 0px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  section.company .explain p,
  section.business .explain p {
    width: 80% !important;
  }
  section.business a,
  section.company a {
    justify-content: center;
    margin-top: 50px;
  }
  section.works .inner-container {
    width: 80% !important;
  }
  h2 {
    font-size: 2.6rem !important;
  }
  header img {
    left: 20px;
    top: 19px !important;
    width: 200px;
  }
  .explain-img-sp {
    margin-top: 30px !important;
  }

  header .header-mail {
    position: absolute;
    top: 80vh;
    justify-content: center;
    align-items: center;
    width: 88%;
  } 
  header .header-tel {
    position: absolute;
    top: 70vh;
    justify-content: center;
    align-items: center;
    width: 90%;
  }
  nav.active ul {
    margin-top: -200px;
  }
  header ul li:not(:last-child)::after {
    content: none !important;
  }
  header ul li {
    padding-right: 0px !important;
  }

  section.contact .footer-tel img {
    margin-bottom: -11px !important;
  }

  section.works a.works-button1,
  section.works a.works-button2 {
    border: solid 3px var(--white-color);
  }


  /**********************
         news-list
  **********************/
  #news-list .news-list ul li {
    min-height: var(--ul-post-list-height-sp);
    height: auto;
  }
  #news-list .news-list ul li a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0px !important;
  }
  #news-list .news-list span.news-title {
    margin-bottom: 0px;
    width: 100% !important;
  }
  #news-list .news-list .subtitle {
    font-size: 2.3rem !important;
    margin-bottom: 20px !important;
  }
  #news-list .news-list .inner-container {
    width: 80% !important;
  }
  #news-list .news-list ul li a {
    margin-left: 0px;
  }
  .nav-links {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .page-numbers {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 1px solid var(--primary-color) !important;
    background: var(--white-color);
    color: var(--primary-color) !important;
    font-size: var(--medium-font-size) !important;
    margin-left: 10px;
    margin-right: 10px;
  }

  .page-numbers.current {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: var(--primary-background-color) !important;
    color: var(--white-color) !important;
    font-size: var(--medium-font-size) !important;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 0px !important;
  }

  .news-detail span {
    font-size: 2.3rem !important;
    margin-bottom: 20px !important;
  }
  /***********************
          contact
  ***********************/
  #contact .wpcf7 {
    width: 100%;
  }
  #contact dl {
    width: 80% !important;
  }
  #contact .contact .inner-container {
    width: 100% !important;
  }
  #contact .contact table tr {
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin-left: 10vw;
  }
  #contact .contact table tr th,
  #contact .contact table tr td {
    width: 100%;
  }
  #contact .contact table tr td textarea,
  #contact .contact table tr td select,
  #contact .contact table tr td input {
    margin-left: 0px !important;
    width: 100% !important;
    padding-left: 2vw !important;
    color: var(--black-color);
  }


  #contact .contact th {
    padding-top: 10px !important;
    padding-left: 2vw !important;
  }

  #contact .contact tr:nth-child(6) th {
    margin-top: 45px;
    padding-bottom: 9px;
  }
  #contact .contact tr:nth-child(7) {
    margin-top: 141px !important;
  }

  #contact .wpcf7-file::file-selector-button {
    margin-top: 0px !important;
    margin-right: 0px !important;
  }
  #contact .wpcf7-file::before{ 
    width: 182px !important;
    margin-left: -9px !important;
    padding-right: 54px;
  }

  #contact .wpcf7-submit {
    margin-top: 50px !important;
  }


  /**********************
       works-list
  **********************/
  #works-list #category-posts ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
    grid-template-rows: repeat(1, 1fr) !important;
    justify-items: center;
    align-items: center;
    list-style: none;
    padding: 0;
    width: 100%;
    height: auto;
  }
  #works-list .works-list span {
    font-size: 2.3rem !important;
    margin-bottom: 20px !important;
  }
  #works-list .category-tabs-container {
    width: 100% !important;
  }
  #works-list .category-tabs {
    flex-direction: column !important;
  }
  #works-list .category-tabs li {
    width: 60% !important;
    margin-left: 20% !important;
  }
  #works-list span.achievement-title {
    font-size: var(--medium-font-size) !important;
  }
  /**********************
       works-detail
  **********************/
  #works-detail .contents h2 {
    margin-top: 0px !important;
  }
  #works-detail .thumbs {
    width: 100% !important;
    height: 130px !important;
  }
  #works-detail .thumbs img {
    width: 90px !important;
    height: 90px !important;
  }

  #works-detail .prev-garally,
  #works-detail .next-garally,
  #works-detail .prev-scroll-garally, 
  #works-detail .next-scroll-garally {
    display: none !important;
  }
  #works-detail #mainImage {
    height: 50vw !important;
  }
  #works-detail table tr {
    display: flex;
    flex-direction: column;
  }
  #works-detail table tr th,
  #works-detail table tr td {
    width: 80vw !important;
  }

  #works-detail .works-detail span {
    font-size: 2.3rem !important;
    margin-bottom: 20px !important;
  }

  /********************
          company
  ********************/
  #company {
    background: var(--body-color) !important;
  }
  #company .company span {
    font-size: var(--medium-font-size) !important;
    margin-bottom: 20px;
  }
  #company .company table tr:nth-child(7) span {
    margin-bottom: 15px !important;
  }
  #company ul {
    margin-top: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
  }
  #company ul a {
    margin-top: 0px !important;
  }
  #company ul li {
    display: flex;
  }
  #company ul li:not(:last-child)::after {
    content: "" !important;
  }
  #company .inner-container {
    width: 80% !important;
  }
  #company #company-company.company table tr {
    flex-direction: column;
  }
  #company #company-company.company table tr:nth-child(7) td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 0px !important;
  }
  #company #company-company.company table tr th {
    width: 100%;
    height: auto !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    width: 100% !important;
  }
  
  #company #company-company.company table tr td {
    padding-top: 15px !important;
    padding-bottom: 15px;
    padding-left: 5px !important;
    padding-right: 5px !important;
    width: 100% !important;
  }
  #company #company-company.company table tr td a {
    font-size: var(--medium-font-size) !important;
    text-decoration: none;
    color: blue;
    width: 56%;
    justify-content: flex-start !important;
    /* color: var(--black-color); */
  }

  #company #company-company.company table tr td span {
    font-size: var(--medium-font-size) !important;
    color: var(--black-color) !important;
  }
  #company #company-company.company table tr td span:nth-child(2) {
    display: none;
  }
  #company .header3 {
    flex-direction: column !important;
    margin-bottom: 20px !important;
  }
  #company #greeting.greeting {
    padding-bottom: 110px !important;
  }
  #company #greeting.greeting .header3 {
    margin-bottom: 0px !important;
  }
  #company #greeting.greeting .header3 h3,
  #company #philosophy.philosophy h3,
  #company #company-company.company .header3 h3,
  #company #privacy-policy .header3 h3 {
    font-size: 2.6rem !important;
  }
  #company #philosophy,
  #company #philosophy img {
    height: 586px;
  }
  #company #philosophy span {
    top: -2% !important
  }
  #company section.company {
    padding-bottom: 40px !important;
  }
  #company #company-company.company .header3 {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
  }
  #company #philosophy h3 {
    top: 27vw !important;
  }
  #company #philosophy .philosophy-card .header4 span {
    top: 40px !important;
    width: 100% !important;
    left: 49% !important;
  }
  #company #philosophy .philosophy-card p {
    position: absolute;
    top: 100px !important;
  }
  #company #philosophy h4 {
    margin-left: -10% !important;
  }
  #company #philosophy .philosophy-card:nth-child(6) {
    top: 80vw !important;
    width: 80% !important;
    margin-left: 15% !important;    
  }
  #company #philosophy .philosophy-card:nth-child(7) {
    top: 92vw !important;    
    width: 80% !important;
    margin-left: 15% !important;    
  }
  #company #philosophy .philosophy-card:nth-child(8) {
    top: 104vw !important;    
    width: 80% !important;
    margin-left: 15% !important;    
  }
  #company #philosophy .philosophy-card .header4 h4 {
    font-size: var(--medium-font-size) !important;
  }
  #company .header3 .subtitle {
    display: inline-block;
    overflow: hidden;
    text-indent: -0.6em;
    margin-left: -10px;
  }
  #company #philosophy.philosophy span.subtitle {
    font-size: 8rem !important;
  }


  /*************************
           business
  *************************/
  #business #contents img,
  #business #contents {
    height: 1500px;
  }
  #business #contents h3 {
    top: 110px !important;
    margin-top: 0px !important;
    font-size: 2.6rem;
  }
  #business section div.index {
    padding-bottom: 110px !important;
  }
  #business .business span {
    font-size: 2.3rem !important;
    margin-bottom: 20px !important;
  }
  #business #contents .contents-card ul li span {
    margin-bottom: 0px !important;
  }
  #business #contents .explain {
    top: 200px;
  }
  #business #contents .contents-card ul {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    height: unset;
  }
  #business #contents .contents-card ul li span {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
  }
  #business #contents .contents-card ul li {
    align-items: center;
  }
  #business #contents .contents-card {
    flex-direction: column;
    top: 640px !important;
    height: 650px;
    width: 90% !important;
    left: 5% !important;
  }
  #business #contents a.to-works {
    width: 200px;
    bottom: 110px;
  }
  #business #contents a.to-works p {
    margin-right: 0px;
  }
  #business #contents a.to-works img {
    position: relative;
  }
  #business #flow {
    align-items: flex-start;
    height: 1370px !important;
  }
  #business #flow .flow-image {
    width: 100% !important;
    margin-top: -240px !important;
    position: absolute;
  }
  
  #business #flow .flow-row {
    width: 100%;
  }
  #business #flow .flow-row-text {
    width: 66%;
  }
  #business #flow .inner-container {
    width: 100%;
    margin-top: 0px !important;
  }
  #business #flow .header3 {
    flex-direction: row;
  }
  #business #flow .header3 h3 {
    font-size: 2.5rem;
    margin-top: 13px !important;
  }
  #business #flow .header3 span {
    font-size: 2.5rem;
    width: 90px;
    margin-left: 0px !important;
  }
  #business #flow span {
    margin-left: 5vw;
    margin-right: 0px;
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
  #business #flow h4 {
    margin-top: 9px;
    margin-left: 15px;
    font-size: 2.5rem;
    width: 80%;
  }
  #business #flow p {
    width: 100%;
    margin-left: 2vw;
  }

  #business #flow .inner-container .header3 {
    position: relative !important;
    top: 110px !important;
    left: unset;
    width: unset;
    display: flex !important;
    margin-top: -1310px !important;
  }
  #business section.business {
    padding-bottom: 20vh !important;
  }
  #business #flow ol.flow-image::before {
    left: calc(5% + 30px);
    top: 40px;
    bottom: -250px;
  }
  #business #area {
    width: 100%;
    aspect-ratio: 1;
  }
  #business #area .inner-container {
    width: 100%;
  }
  #business #area .header3 {
    top: -150px !important;
  }
  #business #area h3 {
    margin-top: 8px !important;
  }
  #business #area h3,
  #business #area .subtitle {
    font-size: 2.5rem;
  }
  #business #area .area-card {
    position: absolute;
    background: var(--white-color);
    width: 90%;
    height: auto;
    top: -50px;
    left: 5%;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #business #area img {
    margin-top: -300px;
    width: 90%;
    left: 5%;
  }
  #business #flow .flow-row {
    margin-bottom: 70px !important;
  }
  #business .index ul {
    display: flex;
    flex-direction: column;
  }
  #business ul li:not(:last-child)::after {
    content: "" !important;
  }
  #business ul li:not(:first-child) a {
    margin-top: 0px !important;
  }

  div {
    scroll-margin-top: 80px;
  }
  .main-visual {
    margin-top: 80px !important;
  }
  .wpcf7-not-valid-tip {
    display: none !important;
  }

}


#contact .contact table tr td input::placeholder {
  color: #dddddd;
}

.burger-btn span:nth-child(1),
.burger-btn span:nth-child(2),
.burger-btn span:nth-child(3) {
  display: none;
}



/* === ハンバーガーの開閉アニメ === */
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(10.5px, 10.5px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(10.5px, -10.5px);
}

section {
  opacity: 0;                /* 最初は透明 */
  transform: translateY(20px); /* 少し下にずらす */
  transition: opacity 1.8s ease, transform 1.8s ease;
}

section.show {
  opacity: 1;               /* 可視化 */
  transform: translateY(0); /* 元の位置に */
}

