/* ==========================================================================
   TMS TOP Renew Styles
   ========================================================================== */
:root {
  --tr-blue: #004386;
  --tr-blue-light: #0a67c2;
  --tr-gray: #3d3d46;
  --tr-bg: #f8f9fb;
  --tr-radius: 32px;
}

.top-renew {
  font-family: "Montserrat", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--tr-gray);
  background-color: #fff;
  overflow: hidden;
}

.top-renew section {
  position: relative;
}

.tr-section {
  padding: clamp(64px, 10vw, 128px) 0;
}

.tr-section__inner {
  width: min(1200px, 90vw);
  margin-inline: auto;
}

.tr-section__header {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.tr-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 67, 134, 0.08);
  color: var(--tr-blue);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.tr-section__header h2 {
  margin-top: 16px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.3;
  font-weight: 700;
}

.tr-section__header h2 span {
  display: block;
  background: linear-gradient(130deg, var(--tr-blue), var(--tr-blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero -------------------------------------------------- */
.tr-hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(0, 67, 134, 0.1), transparent 50%), #fff;
  overflow: hidden;
}

.tr-hero__gradients span {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

.tr-hero__glow--left {
  background: radial-gradient(circle, rgba(0, 67, 134, 0.2) 0%, transparent 60%);
  width: 60vw;
  height: 60vw;
  left: -10vw;
  top: -10vw;
  animation: heroGlow 18s linear infinite;
}

.tr-hero__glow--right {
  background: radial-gradient(circle, rgba(0, 119, 182, 0.2) 0%, transparent 60%);
  width: 70vw;
  height: 70vw;
  right: -20vw;
  bottom: -20vw;
  animation: heroGlow 22s linear infinite reverse;
}

.tr-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tr-hero__particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 67, 134, 0.4), rgba(0, 102, 204, 0.25));
  left: var(--x);
  top: var(--y);
  animation: particleFloat 10s linear infinite;
  animation-delay: var(--delay);
}

.tr-hero__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.tr-hero__lines {
  --hero-line-width: min(110vw);
  width: var(--hero-line-width);
  margin-left: calc((var(--hero-line-width) - 100%) / -2);
  margin-right: calc((var(--hero-line-width) - 100%) / -2);
  height: clamp(320px, 55vw, 560px);
  position: relative;
}

.tr-hero__line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  rotate: -13.68deg;
  transform-origin: center;
  opacity: 0;
  animation: heroLine 0.9s forwards;
  animation-delay: var(--delay);
}

.tr-hero__line:nth-child(1) {
  translate: 0 -30%;
}
.tr-hero__line:nth-child(2) {
  translate: 0 0;
}
.tr-hero__line:nth-child(3) {
  translate: 0 30%;
}

.tr-hero__bar {
  position: relative;
  display: block;
  width: 160vw;
  max-width: none;
  height: clamp(48px, 10vw, 72px);
  border-radius: 999px;
  background: rgba(0, 67, 134, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0, 67, 134, 0.15);
  overflow: hidden;
}

.tr-hero__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 67, 134, 0.15);
  transform-origin: left center;
  transform: scaleX(0);
  animation: heroLineFill 1.4s ease forwards;
  animation-delay: var(--line-delay, 0s);
}

.tr-hero__word {
  position: absolute;
  display: inline-flex;
  justify-content: center;
  gap: clamp(0.2rem, 1vw, 1rem);
  font-size: clamp(3rem, 10vw, 7.2rem);
  font-weight: 300;
/*  text-transform: uppercase;*/
  mix-blend-mode: multiply;
}

.tr-hero__char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-20px);
  color: rgba(0, 0, 0, 0.85);
  font-weight: 700;
  letter-spacing: clamp(0.2rem, 1vw, 1.4rem);
  animation: heroChar 0.6s ease forwards;
  animation-delay: calc(var(--line-delay, 0s) + var(--char-delay, 0s));
}

.tr-hero__char--accent {
  font-weight: 800;
  background: linear-gradient(135deg, var(--tr-blue), var(--tr-blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tr-hero__copy {
  text-align: center;
  max-width: 720px;
}

.tr-eyebrow {
  font-size: 1.3rem;
  letter-spacing: 0.4em;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
}

.tr-hero__copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  margin-bottom: 12px;
}

.tr-hero__copy p {
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.8;
}

/* Mission -------------------------------------------------- */
.tr-mission {
  background: #fff;
}

.tr-mission__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.tr-mission__lead {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--tr-radius);
  background: linear-gradient(135deg, rgba(0, 67, 134, 0.07), rgba(0, 102, 204, 0.07));
  backdrop-filter: blur(6px);
}

.tr-mission__lead p + p {
  margin-top: 1.5em;
}

.tr-mission__detail {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(0, 67, 134, 0.1);
  border-radius: var(--tr-radius);
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
}

.tr-mission__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tr-mission__list li {
  padding-left: 12px;
  border-left: 3px solid rgba(0, 67, 134, 0.4);
}

.tr-mission__list span {
  font-weight: 700;
  color: var(--tr-blue);
  display: block;
}

.tr-mission__closing {
  font-weight: 600;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.8);
}

/* Services -------------------------------------------------- */
.tr-services {
  background: var(--tr-bg);
  overflow: hidden;
}

.tr-services__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 80px);
}

.tr-pillars {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.tr-pillars__center {
  position: absolute;
  inset: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 2.4rem;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  color: var(--tr-blue);
  border: 6px solid rgba(0, 67, 134, 0.12);
  z-index: 3;
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.6s ease, scale 0.6s ease;
  transition-delay: 0s;
}

.tr-pillars__node {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 30px 80px rgba(0, 67, 134, 0.25);
  animation: pulse 6s ease-in-out infinite;
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.8s ease, scale 0.8s ease;
}

.tr-pillars__node--tech {
  left: 50%;
  top: 5%;
  translate: -50% 0%;
  background: linear-gradient(140deg, #004386, #0083d4);
  transition-delay: 0.6s;
}

.tr-pillars__node--mainte {
  left: 10%;
  bottom: 0;
      translate: -10% -25%;
  background: linear-gradient(140deg, #003264, #0065ab);
  animation-delay: 1s;
  transition-delay: 0.4s;
}

.tr-pillars__node--sus {
  right: 10%;
  bottom: 0;
  translate: 10% -25%;
  background: linear-gradient(140deg, #0077b6, #00a8e8);
  animation-delay: 2s;
  transition-delay: 0.2s;
}

.tr-pillars__node span {
  font-size: 1.4rem;
  opacity: 0.9;
}

.tr-pillars.is-visible .tr-pillars__node,
.tr-pillars.is-visible .tr-pillars__center {
  opacity: 0.9;
  scale: 1;
}

.tr-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.tr-card {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(0, 67, 134, 0.05);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tr-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.tr-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tr-card:hover .tr-card__media img {
  transform: scale(1.08);
}

.tr-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.tr-card__body {
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.tr-card__subtitle {
  color: var(--tr-blue);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tr-card__text {
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  flex: 1;
}

.tr-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tr-blue);
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.3s;
}

.tr-card__link span {
  transition: transform 0.3s;
}

.tr-card__link:hover span {
  transform: translateX(6px);
}

/* News -------------------------------------------------- */
.tr-news {
  background: #fff;
}

.tr-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 67, 134, 0.2);
  color: var(--tr-blue);
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.3s, gap 0.3s;
}

.tr-link-pill:hover {
  border-color: var(--tr-blue);
}

.tr-news__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 30px;
  border: 1px solid rgba(0, 67, 134, 0.1);
  overflow: hidden;
}

.tr-news__list li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tr-news__list a {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
  color: var(--tr-gray);
  text-decoration: none;
  align-items: center;
  transition: background 0.3s;
}

.tr-news__list a:hover {
  background: rgba(0, 67, 134, 0.05);
}

.tr-news__list time {
  font-weight: 700;
  color: var(--tr-blue);
}

.tr-news__icon {
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, color 0.3s;
}

.tr-news__list a:hover .tr-news__icon {
  transform: translateX(6px);
  color: var(--tr-blue);
}

.tr-news__empty {
  padding: 32px;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

/* Contact -------------------------------------------------- */
.tr-contact {
  text-align: center;
  background: linear-gradient(120deg, rgba(0, 67, 134, 0.08), rgba(0, 102, 204, 0.08));
}

.tr-contact h2 {
  font-size: clamp(3rem, 5vw, 4.2rem);
  margin: 24px 0 16px;
}

.tr-contact p {
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.7);
}

.tr-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tr-blue), var(--tr-blue-light));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 20px 35px rgba(0, 67, 134, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tr-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 45px rgba(0, 67, 134, 0.35);
}

/* Reveal animation -------------------------------------------------- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

/* Animations -------------------------------------------------- */
@keyframes heroGlow {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(0.9);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translate3d(-20px, -80px, 0) scale(1.4);
    opacity: 0;
  }
}

@keyframes heroLine {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLineFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes heroChar {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive -------------------------------------------------- */
@media (max-width: 768px) {
  .tr-services__intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tr-pillars {
    max-width: 360px;
    width: min(90vw, 360px);
  }

  .tr-pillars__node {
    width: 180px;
    height: 180px;
  }

  .tr-pillars__node--tech {
    translate: -50% 0;
  }

  .tr-pillars__node--mainte {
    left: 12%;
    translate: -25% 18%;
  }

  .tr-pillars__node--sus {
    right: 12%;
    translate: 25% 18%;
  }

	.tr-pillars.js-reveal.is-visible {
    position: relative;
    top: -3em;
}
	.tr-pillars__center {
		width: 110px;
		height: 110px;
  top: 60%;
}
  .tr-card-grid {
    grid-template-columns: 1fr;
  }

  .tr-hero {
    padding-top: 110px;
  }

  .tr-hero__lines {
    height: 320px;
  }

  .tr-hero__word {
    letter-spacing: 0.5rem;
  }

  .tr-news__list a {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .tr-news__list time {
    grid-column: 1 / -1;
  }
	
	.tr-hero__inner {
		gap: clamp(110px, 5vw, 64px);
	}
}

