:root {
  --color-primary: #727171;
  --color-yellow: #FFE954;
  --color-gradation-yellow: linear-gradient(to top, #fff, #FFE954 100%);
  --font-en: futura-pt, "Jost", sans-serif;
  --font-jp: dnp-shuei-gothic-kin-std, "Noto Sans JP", sans-serif;

  --font-h1: clamp(80px, 4vw, 126px);
  /*126px*/
  --font-h2-en: clamp(38px, 4vw, 38px);
  /*38px*/
  --font-h2: clamp(40px, 4vw, 56px);
  /*56px*/
  --font-h3: clamp(32px, 4vw, 32px);
  /*32px*/
  --font-h4: clamp(16px, 4vw, 24px);
  /*24px*/
  --font-h5: clamp(14px, 4vw, 18px);
  --font-p: clamp(10px, 4vw, 16px);
  --font-small: clamp(8px, 4vw, 12px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
}

body {
  overflow-x: hidden;
}

h1 {
  font-size: var(--font-h1);
}

.sub-title {
  font-size: var(--font-h2-en);
}

h2 {
  font-size: var(--font-h2);
}

h3 {
  font-size: var(--font-h3);
}

h4 {
  font-size: var(--font-h4);
}

.en {
  font-family: var(--font-en);
  font-weight: 400;
}

.jp {
  font-family: var(--font-jp);
}

a,
p {
  font-size: var(--font-p);
  font-weight: 400;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

.more-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.more-link a p.jp {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-primary);
}

.more-link a img {
  width: 68px;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .br-sp768 {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .br-sp768-none {
    display: none;
  }
}

@media screen and (min-width: 400px) {
  .br-sp400 {
    display: none;
  }
}


/*========================================================*/
/*header*/
/*========================================================*/
header {
  width: 100%;
  height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  color: var(--color-primary);
  position: relative;
}

header .header-left {
  width: 18.7%;
}


header .header-bg1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 138px;
  object-fit: cover;
  z-index: 0;
}

header .header-left a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1000;
  padding: 4px 16px;
  margin-left: 6.5%;
}

header .header-logo {
  width: 100%;
  height: 100%;
  max-width: 200.99px;
  min-width: 150px;
}

header ul {
  display: flex;
  gap: 14px;
}

header ul li {
  list-style: none;
}

header ul li a {
  display: block;
  padding: 5px 24px 4px 24px;
  color: var(--color-primary);
}

header ul li a p.en {
  font-weight: 400;
  font-size: 24px;
}

header ul li a.bg-yellow {
  background-color: var(--color-yellow);
}

/*=============header(sp)=============*/

/* ハンバーガーの見た目 */
.hamburger {
  display: none;
  /* PCでは非表示 */
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  gap: 6px;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* モバイルナビ */
.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: 80%;
  background: #fff;
  text-align: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 2100;
}

.mobile-nav.active {
  max-height: 500px;
  overflow-y: auto;
}

.mobile-nav ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  border-bottom: 1px solid #eee;
}

.mobile-nav ul li:last-child {
  background-color: var(--color-yellow);
  border-bottom: none;
}

.mobile-nav li a {
  display: block;
  padding: 15px 0;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.mobile-nav li:last-child a {
  color: #fff;
}

.mobile-nav li a:hover {
  background: var(--color-yellow);
  color: #fff;
}

/* スマホ表示 */
@media screen and (max-width: 900px) {


  .header-right {
    display: none;
    /* PC用メニュー非表示 */
  }

  .hamburger {
    display: flex;
  }
}

/*========================================================*/
/*top-page(index.php)*/
/*========================================================*/
.top-main-visual {
  width: 100%;
  height: 704px;
  /*background-color: #fff;*/
  position: relative;
}

.top-main-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-main-visual .top-main-text {
  overflow: hidden;
}

.top-main-text h1 {
  width: 100%;
  position: absolute;
  top: 61%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  text-align: center;
  z-index: 10;
}

.top-main-text p.en {
  font-size: 24px;
  font-weight: 400;
}

.top-main-text p.top-t-en1 {
  position: absolute;
  top: 36%;
  left: 11%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  text-align: center;
  z-index: 10;

}

.top-main-text p.top-t-en2 {
  position: absolute;
  top: 23%;
  left: 55%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  text-align: center;
  z-index: 10;

}

.top-main-text p.top-t-en3 {
  position: absolute;
  top: 78%;
  right: 10%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  text-align: center;
  z-index: 10;

}


@media screen and (max-width: 768px) {
  .top-main-text {
    width: 100%;
    /* ←固定幅ではなく */
    max-width: 568px;
    margin: 0 auto;
  }

  .top-main-text h1 {
    text-align: left;
    top: 24%;
    left: 0;
    transform: translate(0, 0);
    line-height: 1.7;
  }

  .top-main-text p {
    display: none;
  }
}

/*=============top-main-1(work list)=============*/
.top-main-1 {
  width: 100%;
  text-align: center;
  padding-bottom: 141px;
}

.top-main-1 p {
  color: var(--color-primary);
  font-weight: 400;
}

/*プロジェクト一覧*/
.projects {
  width: 90%;
  max-width: 1620px;
  margin: 0 auto;
}

.projects-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 60px;
  justify-content: center;
  /* 横幅に余白がある場合に中央寄せ */
  margin: 52px auto 50px auto;
}

.project-item {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.project-item .project-thumb img {
  width: 360px;
  height: 100%;
  object-fit: contain;
}

.project-item .project-title {
  font-size: 18px;
  font-weight: 400;
  margin-top: 8px;
}

.project-item a {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
}

.projects-more {
  width: 100%;
  text-align: center;
}


/*=============top-main-2 (service)=============*/
.top-main-2 {
  width: 100%;
  text-align: center;
  background: var(--color-yellow);
  color: var(--color-primary);
  padding: 82px 0 127px 0;
}

.top-main-2-text {
  position: relative;
  width: 63%;
  max-width: 1620px;
  margin: 0 auto;
  padding-bottom: 80px;
  text-align: center;
}

.top-main-2-text h2.sub-title {
  margin-bottom: 50px;
}

.top-main-2-text h2.jp {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}

.top-main-2-content {
  width: 63%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  justify-content: center;
  align-items: start;
}

.top-main-2-content-item {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.top-main-2-content-item h3 {
  margin-bottom: 31px;
}

.top-main-2-content-item p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}

.service-more {
  width: 100%;
  text-align: center;
  margin-top: 80px;
}

@media screen and (min-width: 1760px) {
  .top-main-2-text h2.jp {
    left: 0;
    transform: translateX(0);
    display: block;
  }
}

@media screen and (max-width: 1080px) {
  .top-main-2-content {
    grid-template-columns: 1fr;
    /* ←カラム落ち */
    gap: 40px;
    /* スマホ時に間隔を少し狭めてもOK */
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  .top-main-2-text {
    width: 83%;
    padding-top: 84px;
    ;
    padding-bottom: 78px;
  }

  .top-main-2-text h2.jp {
    text-align: left;
    left: 0;
    transform: translateX(0);
    line-height: 1.75;
    padding-top: 46px;
  }

  .top-main-2-content {
    width: 92%;
  }
}

/*=============top-main-3 (about)=============*/
.top-main-3 {
  width: 100%;
  text-align: center;
  color: var(--color-primary);
  padding-top: 82px;
  padding-bottom: 267px;
}

.client-slider {
  width: 100%;
  padding-bottom: 158px;
}

.client-slider-item {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.client-slider-item a {
  display: block;
  width: 240px;
  margin: 0 auto;
  text-decoration: none;
}

.client-slider-item img {
  width: 240px;
  object-fit: cover;
  font-display: inline-block;
}

.top-main-3-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.top-main-3-left {
  width: 44%;
  text-align: left;
  align-self: start;
}

.top-main-3-right {
  width: 56%;
}

.top-main-3-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.top-main-3-left h2.jp {
  margin-bottom: 43px;
}

.top-main-3-left p {
  line-height: 1.94;
}

.about-more {
  margin-top: 43px;
  text-align: left;
}

.about-more a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-left: 10px;
}

@media screen and (max-width: 1200px) {
  .top-main-3-content {
    width: 80%;
    flex-direction: column;
  }

  .top-main-3-left {
    width: 100%;
  }

  .top-main-3-right {
    width: 100%;
  }

  .top-main-3-right img {
    max-width: 100%;
  }
}

/*=============top-main-4 (voice)=============*/
.top-main-4 {
  width: 100%;
  text-align: center;
  color: var(--color-primary);
  background-color: var(--color-yellow);
  padding-top: 57px;
  padding-bottom: 92px;
}

.top-main-4 .top-voice-list {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 51px 0;
}

.top-main-4 .voice-list-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 15px;
  justify-content: center;
  align-items: start;
}

.top-main-4 .voice-card {
  text-align: center;
  margin: 0 auto;
}

.top-main-4 .voice-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.top-main-4 .voice-thumb {
  width: 360px;
  height: 240px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.top-main-4 .voice-card:hover .voice-thumb {
  transform: scale(1.03);
}

.top-main-4 .voice-title {
  width: 360px;
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-primary);
}

.top-main-4 .voice-more {
  text-align: right;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 10px;
}

.top-main-4 .voice-more a p.jp {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-primary);
  padding: 0 54px;
}

.top-main-4 .voice-more a img {
  width: 97px;
  height: 100%;
  padding-right: 42px;
}

@media (max-width: 1150px) {
  .top-main-4 .voice-list-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-main-4 .voice-list-inner {
    grid-template-columns: 1fr;
  }

  .top-main-4 .voice-thumb {
    aspect-ratio: 360/240;
    object-fit: cover;
  }

  .top-main-4 .voice-title {
    text-align: center;
  }
}

/*=============top-main-5 (news)=============*/
.top-main-5 {
  width: 100%;
  text-align: center;
  color: #fff;
  background-color: #646464;
  padding-top: 57px;
  padding-bottom: 92px;
  border-top: 1px solid #707070;
  border-bottom: 1px solid #707070;
}

.top-main-5 .top-news-list {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 51px 0;
}

.top-main-5 .news-list-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 15px;
  justify-content: center;
  align-items: start;
}

.top-main-5 .news-card {
  text-align: center;
  margin: 0 auto;
}

.top-main-5 .news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.top-main-5 .news-thumb {
  width: 360px;
  height: 240px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.top-main-5 .news-card:hover .news-thumb {
  transform: scale(1.03);
}

.top-main-5 .news-title {
  width: 360px;
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  color: #fff;
}

.top-main-5 .news-more {
  text-align: right;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 10px;
}

.top-main-5 .news-more a p.jp {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  padding: 0 54px;
}

.top-main-5 .news-more a img {
  width: 97px;
  height: 100%;
  padding-right: 42px;
}

@media (max-width: 1150px) {
  .top-main-5 .news-list-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-main-5 .news-list-inner {
    grid-template-columns: 1fr;
  }

  .top-main-5 .news-thumb {
    aspect-ratio: 360/240;
    object-fit: cover;
  }

  .top-main-5 .news-title {
    text-align: center;
  }
}

/*========================================================*/
/*footer*/
/*========================================================*/
footer {
  width: 100%;
  text-align: center;
}

.footer-inner {
  background-color: var(--color-primary);
}

.footer-nav-list {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 42px 52.5px 42px;
  border-bottom: 1px solid #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer-nav-item {
  list-style: none;
}

.footer-nav-link {
  text-decoration: none;
  font-size: 20px;
  color: #fff;
}

.footer-nav-list .footer-privacy-policy a {
  font-size: 14px;
  color: #B1B1B1;
  font-weight: 300;
}

.footer-nav-list .footer-contact a {
  font-size: 20px;
  color: #727171;
  font-weight: 400;
  padding: 10px 62px;
  background-color: var(--color-yellow);
}

.footer-logo {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 0 45px 0;
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  color: #fff;
}

.footer-logo img {
  width: 234.52px;
  height: 100%;
  margin-bottom: 21.2px;
}

.footer-logo p.jp {
  font-size: 20px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 15px;
}

.footer-logo .access {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #fff;
}

.footer-logo .access p {
  font-weight: 300;
  font-size: 14px;
  margin-bottom: 0;
}

.footer-logo .access a {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
}

.footer-copyright {
  width: 100%;
  height: 54px;
  font-size: 14px;
  color: #fff;
  background-color: #5C5C5C;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .footer-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
  }
  .archive-bottom-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
}

/*========================================================*/
/*archive-projects.php・taxonomy-tag_project.php(workのアーカイブページとタグ一覧)*/
/*========================================================*/
.projects-archive {
  width: 84%;
  max-width: 1620px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
  padding-top: 146px;
  padding-bottom: 267px;
}

.projects-filter {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 96px;
  margin-bottom: 101px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid #707070;
}

.projects-archive .bottom {
  /*フィルター下部(上部の設定を修正して作成)*/
  padding-top: 0;
  margin-top: 164px;
  margin-bottom: 0;
  border-top: 1px solid #707070;
  border-bottom: none;
}

.projects-filter a {
  display: inline-block;
  padding: 23px 8px;
  margin: 0 8px;
  text-decoration: none;
  font-size: clamp(16px, 3vw, 24px);
  color: var(--color-primary);
}

/* ホバー時の色変化 */
.projects-filter a.filter-link:hover {
  color: var(--color-yellow);
}

/* active クラスの下線 */
.projects-filter a.filter-link.active {
  border-bottom: 5px solid var(--color-yellow);
}

.projects-filter.bottom a.filter-link.active {
  /*フィルター下部(上部の設定を修正して作成)*/
  border-top: 5px solid var(--color-yellow);
  border-bottom: none;
}

/*projects-grid設定はTOPページと同じ*/
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 15px;
  justify-content: center;
  align-items: start;
}

@media (max-width: 1150px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .projects-filter {
    gap: 8px;
  }
}

@media (max-width: 1000px) {
  .projects-filter {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid .project-thumb {
    aspect-ratio: 360/240;
    object-fit: cover;
  }
}

/*========================================================*/
/*archive-voice.php(voiceのアーカイブページ)*/
/*========================================================*/
.voice-archive {
  width: 84%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
  padding-top: 146px;
  padding-bottom: 267px;
}

.voice-filter {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 96px;
  margin-bottom: 101px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid #707070;
}

.voice-archive .bottom {
  /*フィルター下部(上部の設定を修正して作成)*/
  padding-top: 0;
  margin-top: 164px;
  margin-bottom: 0;
  border-top: 1px solid #707070;
  border-bottom: none;
}

.voice-filter a {
  display: inline-block;
  padding: 23px 8px;
  margin: 0 8px;
  text-decoration: none;
  font-size: clamp(16px, 3vw, 24px);
  color: var(--color-primary);
}

/* ホバー時の色変化 */
.voice-filter a.filter-link:hover {
  color: var(--color-yellow);
}

/* active クラスの下線 */
.voice-filter a.filter-link.active {
  border-bottom: 5px solid var(--color-yellow);
}

.voice-filter.bottom a.filter-link.active {
  /*フィルター下部(上部の設定を修正して作成)*/
  border-top: 5px solid var(--color-yellow);
  border-bottom: none;
}

.voice-archive .voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 15px;
  justify-content: center;
  align-items: start;
}

.voice-archive .voice-grid .voice-item {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.voice-archive .voice-grid .voice-item a {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
}

.voice-archive .voice-grid .voice-thumb img {
  width: 360px;
  height: 100%;
  object-fit: contain;
}

.voice-archive .voice-grid .voice-title {
  font-size: 18px;
  font-weight: 400;
  margin-top: 8px;
}

.voice-archive .voice-grid .voice-item a {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
}

@media (max-width: 1150px) {
  .voice-archive .voice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .voice-filter {
    gap: 8px;
  }
}

@media (max-width: 1000px) {
  .voice-filter {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .voice-archive .voice-grid {
    grid-template-columns: 1fr;
  }

  .voice-archive .voice-grid .voice-thumb {
    aspect-ratio: 360/240;
    object-fit: cover;
  }
}

/*========================================================*/
/*pagination(archive-projects.php・taxonomy-tag_project.php・archive-voice.php・page-archive.php)　　　共通　　　*/
/*========================================================*/
.pagination-wrap {
  text-align: center;
  margin: 60px 0;
}

.pagination-wrap ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 10px;
}

.pagination-wrap li {
  display: inline-block;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ccc;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}

.pagination-wrap a:hover {
  background-color: var(--color-yellow);
  color: var(--color-primary);
  border-color: var(--color-yellow);
}

.pagination-wrap .current {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-primary);
  font-weight: 600;
}

.archive-bottom {
  width: 100%;
  height: 259px;
  background-color: #646464;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-bottom .archive-bottom-inner {
  width: 84%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.archive-bottom .archive-bottom-inner p.jp {
  font-size: 18px;
  font-weight: 300;
}

.archive-bottom .more-link a p.jp {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  padding: 0 54px;
}
/* dots（…）だけボーダーを消す */
.nav-links span.dots{ /* :contains は CSS では使えないので必要に応じJS対応 */
  border: none;
  background: none;
}

@media screen and (max-width: 768px) {
  .voice-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .voice-filter a {
    padding: 8px 16px;
    margin: 8px;
  }

  .projects-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .projects-filter a {
    padding: 8px 16px;
    margin: 8px;
  }
}

/*========================================================*/
/*single-projects.php(workの詳細ページ)*/
/*========================================================*/
.project-single {
  width: 84%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
}

.project-single .project-tags {
  padding-top: 80px;
}

.project-single .project-tags a {
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 400;
  text-decoration: none;
  padding: 10px 20px;
}

.project-single h1.project-title {
  font-size: clamp(14px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 40px;
}

.project-single .project-thumb img {
  width: 100%;
  height: 100%;
  margin-bottom: 100px;
  object-fit: contain;
}

/*work投稿下部関連作品*/
.project-related {
  width: 84%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
  padding-top: 146px;
  padding-bottom: 267px;
}

.project-related h2.sub-title {
  font-weight: 400;
  margin-bottom: 80px;
}

.project-related .project-related-list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.project-related .project-related-list ul li {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  list-style: none;
}

.project-related .project-related-list ul li a {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
}

.project-related .project-related-list ul li a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .project-related {
    padding-top: 0;
  }
  .project-related .project-related-list ul {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*========================================================*/
/*single-voice.php(voiceの詳細ページ)*/
/*========================================================*/
.voice-single {
  width: 84%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
}

.voice-single h1.voice-title {
  font-size: var(--font-h2);
  font-weight: 400;
  color: var(--color-primary);
  margin-top: 80px;
  margin-bottom: 40px;
}

.voice-single .voice-thumb img {
  width: 100%;
  height: 100%;
  margin-bottom: 100px;
  object-fit: contain;
}

/*========================================================*/
/*single.php(投稿の詳細ページ)*/
/*========================================================*/
.post-single {
  width: 84%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
}

.post-single h1.post-title {
  font-size: var(--font-h2);
  font-weight: 400;
  color: var(--color-primary);
  margin-top: 80px;
}

.post-single .post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.post-single .post-thumb img {
  width: 100%;
  height: 100%;
  margin-bottom: 100px;
  object-fit: contain;
}

/*========================================================*/
/*投稿の共通設定(single-projects.php・single-voice.php・single.php)*/
/*========================================================*/
.post-content {
  width: 100%;
  margin-bottom: 140px;
  text-align: left;
}

.post-content h1 {
  font-weight: 600;
  font-size: 36px;
  line-height: 1.4;
}

.post-content h2 {
  font-weight: 600;
  font-size: 30px;
  line-height: 1.5;
}

.post-content h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
}

.post-content h4 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
}

.post-content h5 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
}

.post-content h6 {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.post-content p {
  line-height: 1.75;
}

.post-content p a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 400;
}

.post-content p a:hover {
  color: var(--color-yellow);
}

.post-content .wp-block-button .wp-block-button__link {
  background-color: var(--color-yellow);
  color: var(--color-primary);
  margin: 10px 0;
}

.post-content .wp-block-button .wp-block-button__link:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.post-content .wp-block-list {
  list-style: disc;
  padding-left: 20px;
}

.post-content .wp-block-list li {
  margin-bottom: 10px;
}

/*========================================================*/
/*contact-page.php(お問い合わせページ)*/
/*========================================================*/
.contact-page {
  width: 84%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
  font-family: var(--font-jp);
  padding: 146px 0;
}

.contact-page .contact-page-title {
  font-weight: 600;
  font-size: 36px;
  line-height: 1.4;
  padding-bottom: 140px;
}

.contact-page .contact-page-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.contact-page table {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 16px;
}

.contact-page .contact-page-form th {
  width: 30%;
  text-align: left;
  padding-right: 8px;
  padding-bottom: 16px;
}

.contact-page .contact-page-form td {
  width: 70%;
  padding-bottom: 16px;
}

.contact-page .contact-page-form td span.wpcf7-form-control-wrap input {
  line-height: 1.75;
}

.contact-page .contact-page-form .project-checkbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
  padding: 16px 0;
}

.contact-page .contact-page-form .wpcf7-text,
.contact-page .contact-page-form .wpcf7-textarea {
  width: 100%;
  max-width: 400px;
  padding: 8px 16px;
  font-size: 16px;
}

.contact-page .contact-page-form tr th span.haveto {
  padding: 2px 8px;
  background-color: var(--color-yellow);
  color: var(--color-primary);
  font-weight: 400;
  text-align: left;
  font-size: 14px;
  margin-right: 10px;
}

.contact-page .contact-page-form tr th span.any {
  padding: 2px 8px;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 400;
  text-align: left;
  font-size: 14px;
  margin-right: 10px;
}

.contact-page .contact-page-form form input[type="submit"] {
  width: 100%;
  max-width: 266px;
  margin: 16px auto;
  background-color: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border: none;
}

.contact-page .contact-page-form form input[type="submit"]:hover {
  background-color: var(--color-yellow);
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .contact-page .contact-page-form {
    width: 90%;
  }

  .contact-page .contact-page-form tr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-page .contact-page-form th {
    width: 100%;
    padding-bottom: 0;
    padding-right: 0;
  }

  .contact-page .contact-page-form td {
    width: 100%;
    padding-bottom: 24px;
  }

  .contact-page .contact-page-form .project-checkbox {
    width: 100%;
  }

  .contact-page .contact-page-form form input[type="submit"] {
    text-align: center;
  }
}

/*========================================================*/
/*page-archive.php(ブログのアーカイブページ)*/
/*========================================================*/
.archive-page {
  width: 84%;
  max-width: 1620px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
  padding-top: 146px;
  padding-bottom: 267px;
}

.archive-page .post-filter {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 96px;
  margin-bottom: 101px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid #707070;
}

.archive-page .bottom {
  /*フィルター下部(上部の設定を修正して作成)*/
  padding-top: 0;
  margin-top: 164px;
  margin-bottom: 0;
  border-top: 1px solid #707070;
  border-bottom: none;
}

.archive-page .post-filter a {
  display: inline-block;
  padding: 23px 8px;
  margin: 0 8px;
  text-decoration: none;
  font-size: clamp(16px, 3vw, 24px);
  color: var(--color-primary);
}

/* ホバー時の色変化 */
.archive-page .post-filter a.filter-link:hover {
  color: var(--color-yellow);
}

/* active クラスの下線 */
.archive-page .post-filter a.filter-link.active {
  border-bottom: 5px solid var(--color-yellow);
}

.archive-page .post-filter.bottom a.filter-link.active {
  /*フィルター下部(上部の設定を修正して作成)*/
  border-top: 5px solid var(--color-yellow);
  border-bottom: none;
}

/*projects-grid設定はTOPページと同じ*/
.archive-page .post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 15px;
  justify-content: center;
  align-items: start;
}

.archive-page .post-grid .post-thumb img {
  width: 360px;
  height: 100%;
  object-fit: contain;
}

.archive-page .post-grid .post-title {
  font-size: 18px;
  font-weight: 400;
  margin-top: 8px;
}

.archive-page .post-grid .post-item a {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
}

@media (max-width: 1150px) {
  .archive-page .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .archive-page .post-grid {
    grid-template-columns: 1fr;
  }

  .archive-page .post-grid .post-thumb {
    aspect-ratio: 360/240;
    object-fit: cover;
  }

  .archive-page .post-filter {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .archive-page .post-filter a {
    padding: 8px 16px;
    margin: 8px;
  }
}