/*
Theme Name: TMS Studio
Theme URI: https://example.com/tms-studio
Author: TMS inc
Version: 1.0.0
Description: Corporate site theme converted from Figma Make export.
Text Domain: tms-studio
*/

:root {
  --color-dark: #0f172a;
  --color-muted: #475569;
  --color-light: #f8fafc;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-accent: #1d4ed8;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 30px 60px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.7;
  color: var(--color-dark);
  background: #fff;
}

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

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

.container {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 2rem);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-dark), var(--color-accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 1.25rem;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #94a3b8;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.primary-nav a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover {
  background: var(--color-light);
  color: var(--color-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #1f2937;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: #fff;
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.btn-outline:hover {
  background: var(--color-light);
}

.btn-small {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .primary-nav {
    position: fixed;
    inset: 70px 1.5rem auto;
    flex-direction: column;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  body.menu-open {
    overflow: hidden;
  }
}

.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.hero-bg {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
}

.hero-bg-right {
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.7), rgba(59, 130, 246, 0));
}

.hero-bg-left {
  bottom: -60px;
  left: -80px;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.4), rgba(217, 70, 239, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-block {
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-dark), #4b5563);
  -webkit-background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  height: 600px;
	overflow-y: hidden;
}

.hero-gallery {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 1rem;
}

.gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
	height: 200rem
}

.gallery-card {
  height: 300px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transform: perspective(1000px) rotateY(5deg);
}

.gallery-column:nth-child(1) .gallery-card {
  transform: perspective(1000px) rotateY(-5deg);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

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

.gallery-up {
  animation: scroll-up 20s linear infinite;
}

.gallery-down {
  animation: scroll-down 20s linear infinite;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
}

.hero-fade-top {
  top: 0;
  background: linear-gradient(to bottom, #f3f7fe, transparent);
}

.hero-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, #f0f4fe, transparent);
}

@keyframes scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes scroll-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

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

  .hero-visual {
    height: 480px;
    margin-top: -2rem;
  }
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--color-light);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--color-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list li {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.works-grid .work-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
}

.work-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
	object-position: top;
}

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

.work-content {
  padding: 1.75rem;
}

.work-category {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-content p {
  color: var(--color-muted);
}

.about-content p + p {
  margin-top: 1rem;
}

.about-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  min-height: 320px;
}

.stats-grid-small .stat-block {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.feature-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.feature-card h3 {
  margin: 0.5rem 0;
}

.feature-card p {
  color: var(--color-muted);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-dark);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
}

.notice {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-weight: 600;
}

.notice-success {
  background: #ecfdf5;
  color: #047857;
}

.notice-error {
  background: #fef2f2;
  color: #b91c1c;
}

.site-footer {
  background: var(--color-dark);
  color: #cbd5f5;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo .logo-mark {
  background: #fff;
  color: var(--color-dark);
}

.footer-logo .logo-title {
  color: #fff;
}

.footer-logo .logo-tagline {
  color: #94a3b8;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer a {
  color: inherit;
}

.footer-desc {
  color: #cbd5f5;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.observe-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

