@charset "UTF-8";

header {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, box-shadow 0.3s ease;
}

.header-visible header {
  opacity: 1;
  pointer-events: auto;
}

/**********************************************/
/**********KV Section*****************/
/**********************************************/
.kv-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  background-color: var(--White); /* 初期値は残してOK */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  /* ★ 背景のtransitionは外す（JSでやるため） */
  /* transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1); */
}

body {
  cursor: auto; /* 通常のカーソルに戻す */
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-cursor {
  position: fixed;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: invert(1);
  opacity: 0; /* デフォルトは非表示 */
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.custom-cursor.in-kv {
  opacity: 1;
}

body.scene-switched .custom-cursor {
  filter: invert(0);
}

.puzzle-slot {
  position: absolute;
  bottom: 220px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 68px;
  cursor: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--Black);
  opacity: 0.5;
  z-index: 100;
}

.puzzle-slot svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.puzzle-slot svg path {
  transition: fill 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.puzzle-slot span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.puzzle-slot.hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.puzzle-slot.filled svg path {
  fill: var(--Black);
  stroke: none;
}

body.scene-switched .kv-section {
  background: var(--Black);
}

body.scene-switched .puzzle-slot {
  color: var(--White);
}

body.scene-switched .puzzle-slot svg path {
  stroke: var(--White);
}

body.scene-switched .puzzle-slot.filled svg path {
  fill: var(--White);
  stroke: none;
}

body.scene-switched .text-container .letter {
  color: var(--White);
}

body.scene-switched .letter:hover::after {
  background: var(--White);
}

.text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  user-select: none;
  position: relative;
  z-index: 10;
  line-height: 1.3;
}

.text-line {
  display: flex;
  gap: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotate(-10deg);
  cursor: none;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: var(--Black);
  position: relative;
}

.letter.appeared {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
              color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.letter.appeared:hover {
  transform: translateY(-25px) rotate(-10deg) scale(1.15) !important;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

body.scene-switched .letter {
  color: var(--White);
}

body.scene-switched .letter:hover {
  color: var(--White);
}

.letter::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: var(--Black);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.letter:hover::after {
  transform: translateX(-50%) scaleX(1);
}

body.scene-switched .letter::after {
  background: var(--White);
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .kv-section {
    height: 100vh;
    min-height: 100vh;
  }
  
  .text-container {
    font-size: 3rem;
    line-height: 1.3;
  }
  
  .puzzle-slot {
    bottom: 150px;
  }
}

/* iOS Safari用のビューポート高さ対応 */
@supports (-webkit-touch-callout: none) {
  .kv-section {
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
  }
}


/**********************************************/
/**********STORY Section*****************/
/**********************************************/
.story_section {
  position: relative;
  overflow: hidden;
  padding: 20vh 0 12vh;
  background-color: transparent; /* ←ここ重要 */
  color: var(--Black);
  /* ★ ここも背景のtransitionは外す */
  /* transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.8s cubic-bezier(0.4, 0, 0.2, 1); */
  transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.story_section.from-light {
  color: var(--Black);
}

.story_section.from-dark {
  color: var(--White);
}

.story_section .wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* 2つのブロックは上下に並ぶ＆スクロールでふわっと表示 */
.story-block {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: none;
}

.story-block:last-child {
  margin-bottom: 0;
}

.story-block.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 各行のスライドイン（既存の .story-line を活かす） */
.story-line {
  opacity: 0;
  transform: translateX(-40px);
  will-change: opacity, transform;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--delay-index, 0) * 0.15s);
}

.story-block.active .story-line {
  opacity: 1;
  transform: translateX(0);
}

/* 元のタイポまわり */
.story_section h2 {
  margin-bottom: 90px;
  font-size: 4rem;
  font-weight: 800;
}

.story_section .p1 {
  font-weight: 800;
  margin-bottom: 40px;
  font-size: 1.4rem;
}

.story_section .imp {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 50px;
  line-height: 1;
  margin-left: -2rem;
}

.story_section .p2 {
  font-size: 1.5rem;
  line-height: 2.5;
  margin-bottom: 40px;
  font-weight: 600;
}

.story_section .more-button-wrapper {
  text-align: center;
}

.story-bottom-trigger {
  height: 0;
  pointer-events: none;
}

.story-gap {
  height: 40vh;
}

.story-lines .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--line-index, 0) * 0.12s);
}

.story-block.active .story-lines .line {
  opacity: 1;
  transform: translateY(0);
}


/* SP 調整 */
@media screen and (max-width: 768px) {
  .story_section {
    padding: 30vh 0 0;
  }

  .story_section h2 {
    font-size: 2.3rem;
    margin-bottom: 32px;
  }

  .story_section .imp {
    font-size: 2rem;
    margin-left: 0;
    line-height: 1.3;
  }

  .story_section .p2 {
    font-size: 1.1rem;
  }

  .story-block {
    margin-bottom: 50px;
  }

  .story-bottom-trigger {
    height: 0;
  }

  .story_section .p1 {
    font-size: 1.3rem;
    line-height: 1.9;
  }

  .story-gap {
    height: 20vh;
  }
}




/**********************************************/
/**********SERVICE Section*********************/
/**********************************************/
.service_section {
  padding-top: 0;
  background-color: var(--White);
}

.service-header {
  text-align: center;
  margin-bottom: 40px;
}

.service-header h2 {
  color: var(--White);
  font-size: 3.5rem;
  font-weight: 800;
  background-color: var(--Black);
}

.service-intro {
  text-align: center;
  margin-bottom: 40px;
}

.service-lead {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.6;
}

.service-desc {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.8;
}

.service_content {
  border-top: solid 2px var(--Black);
  border-bottom: solid 2px var(--Black);
  background-color: var(--Lightgray);
}

.service_section .inner {
  border-right: solid 2px var(--Black);
  border-left: solid 2px var(--Black);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background-color: var(--Brown);
}

.service-item {
  background-color: var(--White);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.service-item a {
  display: block;
  padding: 60px 40px;
  text-decoration: none;
  color: var(--Black);
  position: relative;
  height: 100%;
  min-height: 350px;
}

.service-number {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  color: #999;
  letter-spacing: 0.05em;
}

.service-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-name {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.service-tag {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.service-arrow {
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-arrow img {
  width: 100%;
  height: 100%;
}

.service-item:hover .service-arrow {
  transform: translateX(5px);
}

.service_section .more-button-wrapper {
  text-align: center;              
  border-bottom: 2px solid var(--Black);
  overflow: hidden;
}

.service_section .more-button {
  width: 100%;
  border-bottom: 0;
  padding: 24px 0;
  justify-content: center;
  background-color: transparent;
  color: var(--Black);
  transition: all 0.3s ease;
}

.service_section .more-button:hover {
  background-color: var(--Black);
  color: var(--White);
}

.service_section .more-button:hover img {
  filter: invert(1);
}


@media screen and (max-width: 768px) {
  .service-header {
    margin-bottom: 30px;
  }

  .service-header h2 {
    font-size: 2rem;
    padding: 5px 0;
  }

  .service-lead {
    font-size: 1.5rem;
  }

  .service-desc {
    font-size: 1rem;
  }

  .service-number {
    top: 16px;
    left: 12px;
  }

  .service-number img {
    max-width: 55%;
  }

  .service-item a {
    padding: 85px 16px 70px;
    min-height: 315px;
  }

  .service-name {
    font-size: 1.3rem;
  }

  .service-tag {
    font-size: 0.8rem;
  }

  .service-arrow {
    bottom: 5px;
    right: 8px;
    width: 50px;
    height: 50px;
  }

  .service-icon {
    margin: 0 auto 25px;
  }
}



/**********************************************/
/**********WORKS Section***********************/
/**********************************************/
.works_section {
  padding: 0;
  background-color: var(--White);
}

.works_section .wrapper {
  background-color: var(--Lightgray);
  border-radius: 20px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.works-header {
  text-align: center;
  margin-bottom: 40px;
}

.works-header h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1;
}

.works-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: #666;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.works-card {
  background-color: var(--White);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.works-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.works-card a {
  display: block;
  text-decoration: none;
  color: var(--Black);
  height: 100%;
}

.works-image {
  width: 100%;
  height: 235px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 0px 16px;
}

.works-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.works-card:hover .works-image img {
  transform: scale(1.05);
}

.works-content {
  padding: 10px 16px;
}

.works-date {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 4px;
  font-weight: 500;
}

.works-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.works-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.works-tag {
  font-size: 0.7rem;
  color: #666;
  padding: 4px 12px;
  background-color: #f5f5f5;
  border-radius: 12px;
  font-weight: 500;
}

.works_section .more-button-wrapper {
  text-align: center;
}


@media screen and (max-width: 1024px) {
  .works-grid {
    padding: 0 16px;
  }
}

@media screen and (max-width: 768px) {
  .works_section .wrapper {
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .works-header {
    margin-bottom: 4px;
  }
  .works-header h2 {
    font-size: 2.2rem;
    margin-bottom: 4px;
  }
  .works-subtitle {
    font-size: 1rem;
  }
  .works-grid {
    grid-template-columns: repeat(1, 1fr);
    padding: 16px;
  }
  .works-date {
    font-size: 0.7rem;
  }
  .works-title {
    font-size: 0.85rem;
  }
  .works-content {
    padding: 8px 10px;
  }
  .works-image {
    padding: 8px 10px 0px 10px;
  }
}



/**********************************************/
/**********PROJECT Section*********************/
/**********************************************/
.project_section {
  position: relative;
  overflow: hidden;
  background-color: var(--White);
  padding-top: 120px;
}

.project-catchcopy {
  writing-mode: vertical-rl;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 auto 60px;
}

.project-content {
  display: flex;
  gap: 80px;
  align-items: center;
}

.project-nav {
  flex: 1;
  position: relative;
}

.project-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project-label {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
}

.project-title-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.project-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pieceFloat 2s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes pieceFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-6deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.project-title-main:hover .project-title-icon {
  animation: pieceHover 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pieceHover {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(-6px) rotate(-10deg) scale(1.05);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.project-title-icon img {
  display: block;
  width: 40px;
  height: auto;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
}

.project-auto-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border: 1px solid #ccc;
}

.project-progress {
  flex: 1;
  position: relative;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background-color: #eee;
  overflow: hidden;
}

.project-progress-bar {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background-color: var(--Black);
}

.project-progress-bar.is-animating {
  animation: projectProgress 5s linear forwards;
}

@keyframes projectProgress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.project-index {
  font-size: 0.75rem;
  color: #999;
}

.project-index #projectCurrent {
  font-feature-settings: "tnum";
}

.circle-nav {
  position: relative;
  width: 420px;
  height: 600px;
  margin: 0 auto;
}

.circle-item {
  position: absolute;
  border-radius: 50%;
  background-color: #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s ease;
}

.circle-item.main {
  width: 280px;
  height: 280px;
  top: 50%;
  left: 85%;
  transform: translate(-50%, -50%);
  background-color: #EFF1F2;
  z-index: 2;
}

.circle-item.sub {
  width: 180px;
  height: 180px;
  background-color: #EFF1F2;
  z-index: 1;
}

.circle-2 {
  bottom: 20px;
  left: 90px;
}

.circle-3 {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.circle-4 {
  top: 20px;
  left: 90px;
}

.circle-number {
  font-weight: 700;
  display: block;
  font-size: 0;
  margin-left: -5rem;
}

.circle-number img {
  display: block;
  width: 30px;
  height: 30px;
}

.circle-icon {
  width: 130px;
  height: 115px;
  display: flex;
  justify-content: center;
}

.circle-item.main .circle-icon {
  width: 200px;
  height: 180px;
}

.circle-item.main .circle-number {
  margin-left: -7.5rem;
  margin-bottom: -0.5rem;
}

.circle-item.main .circle-number img {
  width: 55px;
  height: 55px;
}

.circle-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.circle-item:hover {
  background-color: #d0d0d0;
  transform: scale(1.05);
}

.circle-3:hover {
  transform: translateY(-50%) scale(1.05);
}

.circle-item.main:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.project-description {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.project-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.project-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.project-item h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
  line-height: 2.2rem;
}

.quote-mark {
  font-size: 4rem;
  font-weight: 800;
  margin-left: 8px;
  vertical-align: top;
}

.project-item p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 500;
}

.project-item p.project_read {
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 20px;
}

.project-more {
  margin-top: 32px;
  text-align: right;
}

.project-more a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--Black);
  text-decoration: none;
  border-bottom: 2px solid var(--Black);
  padding: 0 20px 8px;
  transition: transform 0.3s ease;
}

.project-more a:hover {
  transform: scale(1.06);
  opacity: 1;
}

.project-more img {
  width: 40px;
  height: 40px;
}



/* レスポンシブ */
@media screen and (max-width: 1024px) {
  .project-content {
    flex-direction: column;
    gap: 60px;
  }

  .project-catchcopy {
    font-size: 1.3rem;
  }

  .circle-nav {
    width: 400px;
    height: 400px;
  }

  .circle-item.main {
    width: 220px;
    height: 220px;
  }

  .circle-item.sub {
    width: 140px;
    height: 140px;
  }
}

@media screen and (max-width: 768px) {
  .project_section {
    padding: 60px 0;
  }

  .project-title h2 {
    font-size: 2.5rem;
  }

  .project-title-main {
    font-size: 2.2rem;
    gap: 8px;
  }

  .project-title-icon img {
    width: 28px;
  }

  .circle-nav {
    width: 340px;
    height: 400px;
  }

  .circle-item.main {
    width: 180px;
    height: 180px;
    left: 70%;
  }

  .circle-item.main .circle-number {
    font-size: 1rem;
  }

  .circle-item.main .circle-icon {
    width: 170px;
    height: 160px;
  }

  .project-content {
    gap: 24px;
  }

  .circle-item.sub {
    width: 120px;
    height: 120px;
  }

  .circle-icon {
    width: 100px;
    height: 100px;
  }

  .circle-2 {
    bottom: 10px;
    left: 30px;
  }

  .circle-4 {
    top: 10px;
    left: 30px;
  }

  .project-description {
    min-height: 0;
  }

  .project-item h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
  }

  .project-item p {
    font-size: 0.9rem;
  }

  .project-item p.project_read {
    font-size: 1rem;
  }

  .quote-mark {
    font-size: 2.5rem;
  }
}


/**********************************************/
/**********INFORMATION Section*****************/
/**********************************************/
.info_section {
  background-color: var(--Lightgray);
}

.info_section .wrapper.title {
  max-width: 1100px;
  border-radius: 24px 24px 0 0;
  background-color: var(--White);
  margin: 0;
  position: relative;
}

.info_section .wrapper.title::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 180px;
  height: 100px;
  background-image: url('../img/intersect.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  pointer-events: none;
}

.info_section .wrapper.title .inner {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: 32px 32px 0 32px;
  margin: 0;
}

.info_section .wrapper.item {
  max-width: none;
  border-radius: 0 20px 20px 20px;
  background-color: var(--White);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info_section .wrapper.item .inner {
  max-width: none;
  padding: 32px;
  margin: 0;
}

.info_section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-bottom: 2px solid #ddd;
}

.info_section h2 {
  font-size: 2.2rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.tab-nav {
  display: flex;
  gap: 32px;
  padding-bottom: 16px;
  padding-right: 16px;
  flex: 1;
  justify-content: flex-end;
}

.tab-button {
  background: none;
  border: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  white-space: nowrap;
}

.tab-button span {
  font-size: 1rem;
  font-weight: 600;
}

.tab-button:hover {
  color: var(--Black);
}

.tab-button.active {
  color: var(--red);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--red);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.info-card {
  background-color: var(--White);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
}

.info-card {
  display: none;
}

.info_section .info-card[data-category="column"] {
  display: block;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.info-card a {
  display: block;
  text-decoration: none;
  color: var(--Black);
  position: relative;
  height: 100%;
}

.info-card:hover a {
  opacity: 1;
}

.card-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.info-card:hover .card-image img {
  transform: scale(1.08);
}

.card-date-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-date {
  font-size: 0.75rem;
  color: #999;
}

.card-category {
  font-size: 0.7rem;
  color: #666;
  background-color: #f0f0f0;
  padding: 4px 12px;
  border-radius: 12px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.card-author {
  font-weight: 500;
}

.card-arrow {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 42px;
  height: 26px;
  background-color: var(--White);
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.info-card:hover .card-arrow {
  background-color: var(--red);
  color: var(--White);
  border-color: var(--red);
  transform: translateX(4px);
}

@media screen and (max-width: 1185px) {
  .info_section .section-header {
    gap: 0px;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .info_section .wrapper.title::after {
    display: none;
  }
  
  .info_section .wrapper.item {
    border-radius: 0 0 20px 20px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .info_section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .info_section .wrapper.title .inner {
    padding: 30px 16px 0 16px;
  }

  .tab-nav {
    gap: unset;
    padding-right: 0;
    justify-content: space-between;
    width: 100%;
  }

  .tab-button {
    font-size: 0.85rem;
    padding: 0 5px;
  }

  .tab-button span {
    font-size: 0.65rem;
  }

  .info_section .wrapper.item .inner {
  padding: 16px;
  }

  .info_section .info-card:nth-child(n+6) {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .card-title {
    font-size: 0.85rem;
  }

  .card-date {
    font-size: 0.7rem;
  }

  .card-date-category {
    margin-bottom: 4px;
  }

  .card-arrow {
    bottom: -5px;
  }
}


/******  後で以降削除 ******/
.project-more {
  display: none;
}