/* ==========================================
   株式会社SCK - Style System
   ========================================== */

:root {
  /* CMYK 3 Primary Colors */
  --color-pink: #E6007E;    /* Process Magenta */
  --color-yellow: #FFD400;  /* Process Yellow */
  --color-yellow-pure: #FFF100;
  --color-blue: #00A0E9;    /* Process Cyan */
  
  --color-text-main: #2b2b2b;
  --color-text-sub: #555555;
  --color-text-light: #888888;
  --color-bg-light: #f9fafb;
  --color-border: #e8e8e8;
  
  /* Fonts */
  --font-serif: 'Noto Serif JP', "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  --container-width: 1000px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #ffffff;
  line-height: 1.8;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ==========================================
   Loading Overlay Animation (Scaled & Extended)
   ========================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  width: 220px;
  max-width: 80vw;
  height: auto;
  display: block;
}

.loader-bar {
  width: 160px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-yellow), var(--color-blue));
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ffffff;
  animation: loaderProgress 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes loaderProgress {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Color Utilities */
.pink { color: var(--color-pink) !important; }
.yellow { color: var(--color-yellow) !important; }
.blue { color: var(--color-blue) !important; }

/* 3-Color Accent Line (Magenta, Yellow, Cyan) */
.bar-accent {
  display: flex;
  width: 60px;
  height: 3px;
  margin: 24px 0;
  background: linear-gradient(to right, 
    var(--color-pink) 0%, var(--color-pink) 33.3%, 
    var(--color-yellow) 33.3%, var(--color-yellow) 66.6%, 
    var(--color-blue) 66.6%, var(--color-blue) 100%
  );
}

.bar-accent.sm {
  width: 40px;
  height: 3px;
  margin: 8px 0 16px;
}

/* Header & Logo */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 48px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-list .separator {
  color: #d0d0d0;
  font-size: 0.8rem;
}

/* Hero Section (FV) */
.hero {
  position: relative;
  min-height: 85vh;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #ffffff;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111111;
  margin-bottom: 24px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--color-text-sub);
  line-height: 1.9;
  font-weight: 400;
}

.hero-keywords {
  display: flex;
  gap: 32px;
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-sub);
  margin-top: 10px;
}

.hero-keywords .keyword strong {
  font-weight: 700;
  font-size: 1.55rem;
  margin-right: 2px;
}

/* Section Common */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  margin-bottom: 12px;
}

.section-label span {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-main);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: #111111;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-sub);
  line-height: 1.9;
}

/* Message Section */
.message-section {
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.sck-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 60px;
}

.sck-item {
  position: relative;
  padding-right: 20px;
}

.sck-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background-color: #e5e5e5;
}

.sck-item h3 {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  color: var(--color-text-main);
}

.sck-initial {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  margin-right: 2px;
}

.sck-word {
  font-size: 1.15rem;
  font-weight: 500;
  margin-right: 8px;
}

.sck-item h3 .ja {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.sck-item p {
  font-size: 0.92rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

/* Service Section */
.service-section {
  background: url('images/bg-service.png') no-repeat center top / cover;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.service-card {
  background-color: #ffffff;
  padding: 40px 28px;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.card-icon img {
  max-width: 65px;
  max-height: 65px;
  object-fit: contain;
}

.card-icon img.img-diamond {
  max-width: 100px !important;
  max-height: 100px !important;
  width: 92px !important;
  height: 92px !important;
  transform: scale(1.45);
}

.card-title {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-bar {
  margin: 16px auto 20px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  text-align: left;
  line-height: 1.85;
}

/* Staff Section */
.staff-section {
  background-color: #ffffff;
  position: relative;
}

.staff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.staff-image img {
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  width: 100%;
  object-fit: cover;
}

/* ENTRY Button with Magenta to Yellow Gradient Hover (Matching attached image) */
.btn-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 11px 34px;
  border: 1.5px solid #111111;
  color: #111111;
  border-radius: 4px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #E6007E 0%, #FF5E00 45%, #FFD400 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-entry:hover {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 0, 126, 0.3);
}

.btn-entry:hover::before {
  opacity: 1;
}

.btn-entry .arrow {
  font-size: 1rem;
}

/* Company & Contact Combined Wrapper */
.company-contact-bg-wrapper {
  background: url('images/bg-company-contact.png') no-repeat center top / cover;
}

.company-section {
  background: transparent;
}

.company-table-wrapper {
  margin-top: 40px;
  max-width: 720px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.company-table tr {
  border-bottom: 1px solid var(--color-border);
}

.company-table tr:first-child {
  border-top: 1px solid var(--color-border);
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
}

.company-table th {
  width: 160px;
  font-weight: 600;
  color: var(--color-text-main);
  background-color: rgba(250, 250, 250, 0.95);
}

.company-table td {
  color: var(--color-text-sub);
}

/* Contact Section */
.contact-section {
  background: transparent;
}

.contact-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--color-text-sub);
  margin-top: 20px;
  line-height: 1.8;
}

.contact-form-wrapper {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.badge-req {
  font-size: 0.75rem;
  color: var(--color-pink);
  margin-left: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background-color: #fafafa;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-pink);
  background-color: #ffffff;
}

.form-submit {
  margin-top: 32px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(90deg, #E6007E 0%, #FF5E00 45%, #FFD400 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(230, 0, 126, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(230, 0, 126, 0.35);
}

.btn-submit .arrow {
  font-family: var(--font-en);
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 30px 0;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ==========================================
   Advanced Rich Scroll Reveal System
   ========================================== */
.scroll-anim {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-anim.fade-up {
  transform: translateY(36px);
}

.scroll-anim.fade-left {
  transform: translateX(45px);
}

.scroll-anim.fade-right {
  transform: translateX(-45px);
}

.scroll-anim.scale-x {
  transform: scaleX(0);
  transform-origin: left center;
}

/* Active State */
.scroll-anim.in-view {
  opacity: 1;
  transform: translateY(0) translateX(0) scaleX(1);
}

/* Delay Utilites */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive Styles */
@media (max-width: 900px) {
  .hero-bg-wrapper {
    width: 100%;
    opacity: 0.35;
  }

  .sck-details,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .sck-item {
    padding-right: 0;
  }

  .sck-item:not(:last-child)::after {
    display: none;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .staff-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .nav-list {
    gap: 8px;
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-keywords {
    font-size: 1rem;
    gap: 16px;
  }

  .company-table th {
    width: 110px;
    padding: 14px 16px;
  }

  .company-table td {
    padding: 14px 16px;
  }
}
