/* ========================================
   Front Page - Hero Section
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%; max-width: 800px;
}

.hero-catch {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 400;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextIn 1.2s var(--ease-out-expo) 0.8s forwards;
}

.hero-sub {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3em;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 1.2s var(--ease-out-expo) 1.2s forwards;
}

@keyframes heroTextIn { to { opacity: 1; transform: translateY(0); } }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: heroTextIn 1s ease 2s forwards;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 10px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px; height: 60px;
  background: rgba(255,255,255,0.3);
  position: relative; overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine { 0% { top: -100%; } 50% { top: 0%; } 100% { top: 100%; } }

/* ========================================
   About / Philosophy Section
   ======================================== */
.about {
  padding: 140px 0;
  background: var(--color-bg);
  overflow: hidden;
}

.about-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.about-text-block { position: relative; }

.about-catch {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 400; line-height: 2;
  letter-spacing: 0.15em; color: var(--color-text);
  margin-bottom: 32px;
}

.about-desc {
  font-size: 14px; line-height: 2.2;
  color: var(--color-text-light); letter-spacing: 0.05em;
}

.about-image {
  position: relative; border-radius: 8px; overflow: hidden;
}

.about-image img {
  width: 100%; height: 500px;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.about-image:hover img { transform: scale(1.03); }

.about-image::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 1px solid var(--color-accent);
  border-radius: 8px; z-index: -1; opacity: 0.3;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}

.service-card {
  position: relative; border-radius: 12px;
  overflow: hidden; cursor: pointer; aspect-ratio: 3/4;
  display: block;
}

.service-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.service-card:hover .service-card__image { transform: scale(1.05); }

.service-card__overlay {
  position: absolute; bottom: 0; left: 0;
  width: 100%; padding: 40px 28px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff; transition: padding-bottom 0.4s ease;
}

.service-card:hover .service-card__overlay { padding-bottom: 36px; }

.service-card__en {
  font-family: var(--font-en);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 300; letter-spacing: 0.05em; line-height: 1.2;
}

.service-card__title {
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.15em; margin-top: 8px; opacity: 0.9;
}

.service-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.service-card__tag {
  font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 10px; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 100px; opacity: 0.8;
}

/* ========================================
   Works Grid (Home)
   ======================================== */
.works-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.works-grid-left { position: relative; }

.works-grid-right {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.work-item {
  position: relative; overflow: hidden; border-radius: 8px; cursor: pointer;
}

.work-item a { display: block; width: 100%; height: 100%; }

.works-grid-left .work-item {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.works-grid-right .work-item { aspect-ratio: 1; }

.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

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

.work-item__overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s ease;
}

.work-item:hover .work-item__overlay { background: rgba(0,0,0,0.25); }

.work-item__overlay span {
  color: #fff; font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em;
  opacity: 0; transform: translateY(10px); transition: all 0.4s ease;
}

.work-item:hover .work-item__overlay span { opacity: 1; transform: translateY(0); }

.works-more { text-align: center; margin-top: 60px; }

/* ========================================
   News List (Home)
   ======================================== */
.news-list { border-top: 1px solid var(--color-border); }

.news-item {
  display: flex; align-items: baseline; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease; color: var(--color-text);
}

.news-item:hover {
  background: var(--color-bg-light);
  padding-left: 16px; padding-right: 16px; opacity: 1;
}

.news-date {
  font-family: var(--font-en); font-size: 13px;
  color: var(--color-text-light); letter-spacing: 0.1em;
  flex-shrink: 0; min-width: 100px;
}

.news-category {
  font-size: 10px; letter-spacing: 0.1em;
  padding: 3px 12px; border: 1px solid var(--color-primary);
  color: var(--color-primary); border-radius: 100px; flex-shrink: 0;
}

.news-title { font-size: 14px; letter-spacing: 0.05em; flex: 1; }

/* ========================================
   Company (Home)
   ======================================== */
.company-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.company-image {
  border-radius: 12px; overflow: hidden; position: relative;
}

.company-image img { width: 100%; height: 400px; object-fit: cover; }

.company-table { width: 100%; }

.company-table dl {
  display: flex; border-bottom: 1px solid var(--color-border); padding: 16px 0;
}

.company-table dt {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  min-width: 120px; color: var(--color-text);
}

.company-table dd { font-size: 14px; line-height: 1.8; color: var(--color-text-light); }

/* ========================================
   Recruit Section (Home)
   ======================================== */
.recruit {
  position: relative; min-height: 500px;
  display: flex; align-items: center; overflow: hidden;
}

.recruit-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.4);
}

.recruit-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 80px 40px; color: #fff;
}

.recruit-catch {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400; letter-spacing: 0.15em; line-height: 1.8; margin-bottom: 20px;
}

.recruit-desc {
  font-size: 14px; line-height: 2; opacity: 0.85;
  max-width: 550px; margin-bottom: 40px;
}

.btn-recruit {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 40px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.15em; color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px; transition: all 0.4s ease;
}

.btn-recruit:hover {
  opacity: 1; background: rgba(255,255,255,0.15); border-color: #fff;
}

.btn-recruit svg {
  width: 16px; height: 16px; transition: transform 0.3s ease;
}

.btn-recruit:hover svg { transform: translateX(4px); }

/* ========================================
   Parallax Divider
   ======================================== */
.parallax-divider {
  position: relative; height: 400px; overflow: hidden;
}

.parallax-divider img {
  position: absolute; top: -50px; left: 0;
  width: 100%; height: calc(100% + 300px); object-fit: cover;
}

.parallax-divider::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.1);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 350px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services-grid .service-card:nth-child(3) { grid-column: span 2; aspect-ratio: 16/9; }
  .company-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .about { padding: 80px 0; }
  .about-inner { padding: 0 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:nth-child(3) { grid-column: span 1; }
  .service-card { aspect-ratio: 16/10; }
  .works-grid { flex-direction: column; gap: 8px; }
  .works-grid-left .work-item { position: static; aspect-ratio: 16/10; height: auto; }
  .works-grid-right { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .news-item { flex-wrap: wrap; gap: 8px 16px; }
  .recruit-content { padding: 60px 20px; }
  .parallax-divider { height: 250px; }
}

@media (max-width: 480px) {
  .hero-content { width: 95%; }
  .about-catch { font-size: 20px; }
}
