/* ===== Plaque Inc. - Main Stylesheet ===== */

/* CSS Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E5E5E5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  /* Typography */
  --font-heading1: 'Space Grotesk', system-ui, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 80px;
  --space-16: 128px;
  --space-20: 160px;

  /* Animation */
  --transition-fast: 150ms ease-out;
  --transition-normal: 300ms ease-out;
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Enhanced Animation Variables */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --glow-color: rgba(255, 255, 255, 0.1);
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 0 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-normal);
}

.header.scrolled {
  background-color: var(--color-white);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  padding: 4px 8px;
  margin: -4px -8px;
  color: var(--color-black);
  text-decoration: none;
  overflow: hidden;
  transition: color 0.4s ease;
  z-index: 101;
}

.header__logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.header__logo:hover {
  color: var(--color-white);
}

.header__logo:hover::before {
  transform: scaleX(1);
}

.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 138px;
  height: 50px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  background-color: #000;
  color: #fff;
}

.header__menu-icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 24px;
}

.header__menu-icon span {
  display: block;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-normal);
}

body:not(.home) .header__logo {
  color: var(--color-white);
}

body:not(.home) .header.scrolled .header__logo {
  color: var(--color-black);
}

body:not(.home) .header.scrolled .header__logo:hover {
  color: var(--color-white);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-black);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-menu__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-white);
}

.mobile-menu__close {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-white);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-gray-800);
  transition: color var(--transition-fast);
  text-transform: uppercase;
}

.mobile-menu__link:hover {
  color: var(--color-gray-400);
}

.mobile-menu__submenu {
  margin-top: 4px;
  margin-bottom: 4px;
  padding-left: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.mobile-menu__sublink {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-500);
  display: block;
  padding: 2px 0;
  transition: color var(--transition-fast);
}

.mobile-menu__sublink:hover {
  color: var(--color-white);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero__label {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.0;
  margin-bottom: 32px;
}

.hero__title-line {
  display: block;
  font-size: clamp(48px, 12vw, 180px);
  letter-spacing: -0.02em;
}

.hero__title-line--italic {
  font-style: italic;
}

.hero__description {
  max-width: 500px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-gray-600);
  margin-bottom: 48px;
}

.hero__location {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-black);
}

.hero__circle {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  opacity: 0.5;
}

.hero__circle--inner {
  width: 300px;
  height: 300px;
  right: calc(10% + 50px);
}

/* ===== Hero Animations ===== */
@keyframes heroTitleFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroLabelFade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes heroCirclePulse {

  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.6;
    border-color: var(--color-gray-400);
  }

  50% {
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    border-color: var(--color-black);
  }
}

@keyframes heroCircleRotate {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes scrollBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(5px);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero {
  height: 100vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
}

.hero__label {
  animation: heroLabelFade 1.5s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.hero__title-line {
  display: block;
  font-size: clamp(40px, 9vw, 130px);
  letter-spacing: -0.02em;
  animation: heroTitleFade 1.5s ease-out forwards;
  opacity: 0;
}

.hero__title-line:nth-child(1) {
  animation-delay: 0.8s;
}

.hero__title-line:nth-child(2) {
  width: 60%;
  max-width: 385px;
  animation-delay: 1.0s;
}

.hero__title-line:nth-child(3) {
  animation-delay: 1.2s;
}

.hero__description {
  animation: heroTitleFade 1.5s ease-out forwards;
  animation-delay: 1.5s;
  opacity: 0;
  max-width: 500px;
  font-size: 15px;
  color: var(--color-gray-600);
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero__circle {
  animation: heroCirclePulse 4s ease-in-out infinite;
  border: 2px solid var(--color-gray-300);
  width: 50vh;
  height: 50vh;
  right: 5%;
  position: absolute;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.hero__circle--inner {
  animation: heroCircleRotate 20s linear infinite;
  border: 1px dashed var(--color-gray-400);
  width: 35vh;
  height: 35vh;
  right: calc(5% + 7.5vh);
}

.hero__scroll {
  animation: scrollBounce 2s infinite;
  bottom: 40px;
  position: absolute;
  left: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-black);
  transition: all 0.3s ease;
}

.hero__scroll:hover {
  opacity: 0.7;
  border: 0;
  outline: 0;
}

.hero__scroll span {
  display: block;
}

.hero__scroll span:first-child {
  width: 0px;
  height: 100px;
  border-left: 1px solid #707070;
}

.hero__scroll span:last-child {
  transform: rotate(90deg);
}

/* Hero Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 80px 24px;
    align-items: flex-start;
  }

  .hero__title-line {
    font-size: clamp(36px, 12vw, 60px);
  }

  .hero__description {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .hero__location {
    display: none;
  }

  .hero__circle {
    width: 280px;
    height: 280px;
    right: -80px;
    opacity: 0.4;
  }

  .hero__circle--inner {
    width: 200px;
    height: 200px;
    right: -40px;
  }

  .hero__scroll {
    bottom: 24px;
    left: calc(50% - 19px);
    width: auto;
    white-space: nowrap;
  }
}

/* ===== About Section ===== */
.about {
  padding: 120px 0;
  background-color: var(--color-white);
}

.about__header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 80px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-black);
}

.about__number {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-black);
  font-weight: 700;
}

.about__label {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-black);
  font-weight: 700;
  flex: 1 0 0;
}

.about__title_en {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.8;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .about__header {
    flex-wrap: wrap;
  }
  .about__title_en {
    width: 100%;
  }
}

/* Main Layout */
.about__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-bottom: 120px;
}

@media (min-width: 1024px) {
  .about__main {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
  }
}

/* Title */
.about__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* .about__title-small removed */

.about__title-large {
  font-family: var(--font-body);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.about__title-large em {
  font-style: normal;
  position: relative;
  display: inline-block;
  padding: 0 10px;
  margin: 0 4px;
  color: transparent;
  /* Wait for animation */
  z-index: 1;
}

.about__title-large em::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
  z-index: -1;
}

/* Trigger animation when parent becomes visible */
.about__left.visible .about__title-large em {
  color: var(--color-white);
  transition: color 0.1s ease 0.3s;
}

.about__left.visible .about__title-large em::before {
  transform: scaleX(1);
}

/* Apply same effect to .highlight class (used in contact page etc) */
.highlight {
  font-style: normal;
  position: relative;
  display: inline-block;
  padding: 0 4px;
  margin: 0 2px;
  color: transparent;
  z-index: 1;
}

.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
  z-index: -1;
}

.visible .highlight {
  color: var(--color-white);
  transition: color 0.1s ease 0.3s;
}

.visible .highlight::before {
  transform: scaleX(1);
}

/* Right Content */
.about__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__lead {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-black);
}

.about__text {
  font-size: 15px;
  line-height: 2;
  color: var(--color-gray-600);
}

.about__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 184px;
  height: 50px;
  background-color: #000000;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-white);
  margin-top: 16px;
  transition: all 0.3s var(--ease-out-expo);
}

.about__link:hover {
  gap: 20px;
}

.about__link-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

.about__link:hover .about__link-arrow {
  transform: translateX(4px);
}

/* Values Grid */
.about__values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background-color: var(--color-gray-200);
  border: 1px solid var(--color-gray-200);
}

.about__value {
  padding: 48px 40px;
  background-color: var(--color-white);
  transition: all 0.4s var(--ease-out-expo);
}

.about__value:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.about__value:hover .about__value-icon {
  color: var(--color-gray-400);
  border-color: var(--color-gray-600);
}

.about__value:hover .about__value-text {
  color: var(--color-gray-300);
}

.about__value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gray-300);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-gray-500);
  margin-bottom: 32px;
  transition: all 0.4s var(--ease-out-expo);
}

.about__value-title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.about__value-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-gray-600);
  transition: color 0.4s var(--ease-out-expo);
}

/* ===== Service Section ===== */
.service {
  padding: 160px 0;
  background-color: var(--color-black);
  color: var(--color-white);
}

.service__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-800);
}

.service__number {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
}

.service__label {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.service__description {
  font-size: 16px;
  color: var(--color-gray-400);
  margin-bottom: 64px;
}

.service__list {
  border-top: 1px solid var(--color-gray-800);
}

.service__item {
  display: flex;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-gray-800);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
}

.service__item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.5s var(--ease-out-expo);
}

.service__item:hover::before {
  width: 100%;
}

.service__item:hover {
  background-color: var(--color-gray-900);
  padding-left: 24px;
  padding-right: 24px;
  margin-left: -24px;
  margin-right: -24px;
}

.service__item-number {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-gray-500);
  width: 60px;
  flex-shrink: 0;
}

.service__item-content {
  flex: 1;
}

.service__item-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.service__item-subtitle {
  font-size: 14px;
  color: var(--color-gray-500);
}

.service__item-arrow {
  background: url('../images/arrow-circle-wh.png') no-repeat center top / cover;
  width: 28px;
  height: 28px;
  transition: transform var(--transition-fast);
}

.service__item:hover .service__item-arrow {
  transform: translateX(8px);
}

/* ===== Works Section ===== */
.works {
  padding: 160px 0;
  background-color: var(--color-white);
}

.works__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-200);
}

.works__number {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
}

.works__label {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.works__intro {
  display: flex;
  flex-direction: column;
  margin-bottom: 64px;
}

.works__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.works__description {
  font-size: 16px;
  line-height: 30px;
  color: var(--color-gray-500);
}

.works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .works__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.works__item {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo);
}

.works__item:hover {
  transform: translateY(-10px);
}

.works__item-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.6s var(--ease-out-expo);
}

.works__item:hover .works__item-image {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.works__item-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-white);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-normal);
}

.works__item:hover .works__item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.works__item-info {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-gray-200);
}

.works__item-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.works__item-category {
  font-size: 12px;
  color: var(--color-gray-500);
  text-transform: uppercase;
}

.works__item-year {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-gray-400);
}

.works__cta {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* ===== News Section ===== */
.news {
  padding: 160px 0;
  background-color: var(--color-white);
}

.news__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-200);
}

.news__number {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
}

.news__label {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.news__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.news__view-all {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.news__view-all span {
  background: url('../images/arrow-circle.png') no-repeat center top / cover;
  width: 28px;
  height: 28px;
}

.news__view-all:hover {
  gap: 12px;
}

.news__list {
  border-top: 1px solid var(--color-gray-200);
}

.news__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-gray-200);
  transition: background-color var(--transition-fast);
}

.news__item:hover {
  background-color: var(--color-gray-100);
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}

.news__item-date {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-gray-400);
  flex-shrink: 0;
  width: 100px;
}

.news__item-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--color-black);
  flex-shrink: 0;
}

.news__item-title {
  flex: 1;
  font-size: 16px;
}

.news__item-arrow {
  background: url('../images/arrow-circle.png') no-repeat center top / cover;
  width: 28px;
  height: 28px;
  transition: transform var(--transition-fast);
}

.news__item:hover .news__item-arrow {
  transform: translateX(4px);
  color: var(--color-black);
}

/* ===== Contact Section ===== */
/* ===== Contact Section ===== */
.contact {
  padding: 120px 0;
  background-color: var(--color-black);
  color: var(--color-white);
  position: relative;
  /* Grid Pattern */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--color-black) 120%);
  pointer-events: none;
}

.contact__header {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
}

.contact__number {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-gray-500);
}

.contact__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  z-index: 1;
}

body:not(.home) .contact {
  background-color: #fff;
  background-image: linear-gradient(#EFEEEE 1px, transparent 1px), linear-gradient(90deg, #EFEEEE 1px, transparent 1px);
  color: var(--color-black);
}
body:not(.home) .contact:before {
  display: none;
}
body:not(.home) .contact__header {
  color: var(--color-black);
}
body:not(.home) .contact .btn {
  background-color: #000;
}

body:not(.home) .contact .btn--outline-white:hover {
      color: var(--color-white);
}

@media (min-width: 768px) {
  .contact__content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.contact__title {
  font-family: var(--font-body);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.contact__text {
  font-size: 16px;
  color: var(--color-gray-400);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact__text br.sp {
  display: none;
}

.contact__btn-wrapper {
  margin-top: 32px;
}

/* ===== Contact Section Responsive ===== */
@media (max-width: 768px) {
  .contact {
    padding: 80px 0;
    text-align: center;
  }

  .contact__title {
    font-size: 48px;
  }

  .contact__text br.sp {
    display: block;
  }
}

/* ===== Footer (Reverted) ===== */
.footer {
  padding: 24px 0;
  background-color: var(--color-black);
  color: var(--color-white);
  border-top: 1px solid var(--color-gray-800);
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* Centered alignment */
  }
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__nav-link {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-white);
  transition: color var(--transition-fast);
  text-decoration: none;
  text-transform: uppercase;
}

.footer__nav-link:hover {
  color: var(--color-white);
}

.footer__back-top {
  font-family: var(--font-heading);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.footer__back-top:hover {
  color: var(--color-white);
}

.footer__bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-900);
  display: flex;
  justify-content: center;
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-gray-600);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  font-size: 12px;
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-white);
}

@media screen and (max-width: 1023px) {
  .footer__nav-link {
    font-size: 14px;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn span {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover span {
  transform: translateX(5px);
}

.btn--primary {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-gray-800);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn--outline {
  background-color: transparent;
  border: 1px solid var(--color-black);
  color: var(--color-black);
}

.btn--outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn--outline-white {
  background-color: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 24px 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.marquee__content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__content {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  padding: 0 32px;
  transition: color 0.3s ease;
}

.marquee:hover .marquee__item {
  color: var(--color-gray-600);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== Enhanced Interactive Styles ===== */

/* Header Logo Animation */
/* Header Logo Animation Override - Moved to main definition */

/* Menu Button Animation */
.header__menu-btn:hover .header__menu-icon span:first-child {
  transform: translateX(4px);
}

.header__menu-btn:hover .header__menu-icon span:last-child {
  transform: translateX(-4px);
}

/* News Item Enhanced Hover */
.news__item {
  position: relative;
}

.news__item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-black);
  transition: width 0.5s var(--ease-out-expo);
}

.news__item:hover::before {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .news__item {
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .news__item-date {
    width: auto;
  }
  .news__item-title {
    flex: 1 0 calc(100% - 48px);
  }
}

/* Contact Section Glow Effect */
.contact__tel {
  transition: all 0.3s var(--ease-out-expo);
}

.contact__tel:hover {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Footer Links Animation */
.footer__nav-link {
  position: relative;
}

.footer__nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width 0.3s var(--ease-out-expo);
}

.footer__nav-link:hover::after {
  width: 100%;
}

/* Section Number Animation */
.about__number,
.service__number,
.works__number,
.news__number,
.contact__number {
  opacity: 0;
  animation: fadeSlideIn 0.8s var(--ease-out-expo) forwards;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth Page Load Animation */
body {
  animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Enhanced Scroll Indicator */
.hero__scroll {
  cursor: pointer;
}

.hero__scroll:hover {
  border-style: solid;
  background-color: rgba(0, 0, 0, 0.02);
}

/* Mobile Menu Animation Enhancement */
.mobile-menu__link {
  opacity: 0;
  transform: translateX(-30px);
}

.mobile-menu.active .mobile-menu__link {
  animation: menuLinkSlide 0.5s var(--ease-out-expo) forwards;
}

.mobile-menu.active .mobile-menu__link:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-menu.active .mobile-menu__link:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-menu.active .mobile-menu__link:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-menu.active .mobile-menu__link:nth-child(4) {
  animation-delay: 0.25s;
}

.mobile-menu.active .mobile-menu__link:nth-child(5) {
  animation-delay: 0.3s;
}

.mobile-menu.active .mobile-menu__link:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes menuLinkSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


.wp-pagenavi {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 50px;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  border: 1px solid var(--color-gray-200);
  color: var(--color-black);
  text-align: center;
  padding: 0 5px;
}

.wp-pagenavi a:hover,
.wp-pagenavi .current {
  background-color: var(--color-black);
  color: var(--color-white);
}