/* =============================================
  for TOP
  ============================================= */


/* =============================================
  MAIN VIS
  ============================================= */
#main-vis {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.main-vis-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.main-vis-media img {
  position: absolute;
  width: 120%;
  height: 120%;
  top: 0;
  left: 10%;
  object-fit: cover;
  will-change: transform;
  backface-visibility: hidden;
  transform: scale(1.3);
  animation: mainVis 140s linear infinite;
  transform:
    translateZ(0)
    scale(1.3);
}
/* アニメーション */
@keyframes mainVis {
  0% {
    transform:
      translateX(0)
      scale(1.3);
  }
  100% {
    transform:
      translateX(-15%) /* 速度調整: -20%程度までがモアレ的に限界 */
      scale(1.3);
  }
}

/* オーバーレイ（高層ビル写真のモアレ軽減） */
.main-vis-overlay {
  position: absolute;
  inset: 0;
  background: rgba(127,221,255,0.18);
  z-index: 1;
}

.main-vis-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 60px;
  z-index: 2;
}

.main-vis-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.4;
  color: var(--color-text);
  letter-spacing: 4px;
  margin: 0 0 144px;
}

.main-vis-desc {
  position: absolute;
  bottom: 64px;
  right: 0;
  font-size: 16px;
  padding: 10px 32px 10px 5em;
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.5) 7%, #ffffff 20%);
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  transform: translateY(50%);
  z-index: 1;
  display: flex;
  justify-content: center;
  color: rgba(255,255,255,1);
  /* background: var(--color-primary-1); */
  background: rgba(77,44,108,0.9);
  width: 100%;
  line-height: 32px;
}
.scroll-text {
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 2px;
  margin: 0 10px;
}
.scroll-arrow {
  font-family: var(--font-serif);
  font-size: 10px;
  margin-top: -3px;
  animation: bounceDown 2s infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* main-vis entrance animations 削除するか否か？ */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 2s ease forwards;
}


/* =============================================
  PHILOSOPHY
   ============================================= */
.philosophy-body {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.philosophy-text p {
  line-height: 1.5;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.ceo-sig {
  padding: 3em 0;
  text-align: right;
}

.philosophy-image img {
  width: 100%;
  /* aspect-ratio: 4/3; */
  object-fit: contain;
  border-radius: 3px;
}




/* =============================================
  COMPANY
  ============================================= */
#company.section {
  padding: 0;
  background: url(../img/company_bg.jpg) center bottom 10% no-repeat;
  background-size: 100% auto;
}

.company-overlay {
  padding: 160px 0;
  background: linear-gradient(to bottom, #ffffff 25%, rgba(255, 255, 255, 0.3));
}

.company-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 2em 2em 3em 2em;
  background: var(--color-white);
  border-radius: 3px;
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  font-size: 16px;
}

.company-table th {
  width: 130px;
  color: var(--color-text-light);
  text-align: right;
  white-space: nowrap;
  /* background: var(--color-bg-light); */
}

.company-table tr:last-of-type th,
.company-table tr:last-of-type td {
  border: none;
}


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

.works-card {
  border: 1px #eee solid;
  border-radius: 3px;
  overflow: hidden;
}

.works-image {
  position: relative;
}

.works-image .works-num {
  position: absolute;
  bottom: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-white);
  display: block;
  width: 100%;
  padding-left: 24px;
  background: linear-gradient(90deg, rgba(77,44,108,0.5) 0%, transparent 50%);
}

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

.works-body {
  padding: 16px;
}

.works-body h3 {
  font-size: clamp(16px, 1vw, 24px);
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.5;
}

.works-sub {
  font-size: 12px;
  letter-spacing: 2px;
  margin: 3px 0 16px;
}

.works-body p:not(.works-sub) {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--color-text-light);
}




/* =============================================
  ACCESS
   ============================================= */
.access-map iframe {
  width: 100%;
  height: 480px;
  display: block;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.access-info {
  width: 85%;
  margin: 64px auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.access-store-img {
  width: 100%;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.access-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access-details p {
  font-size: 14px;
  line-height: 1.5;
}

.access-details h3 {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}


/* =============================================
  RESPONSIVE - TABLET / MOBILE
  ============================================= */
@media (max-width: 1024px) {

}

@media (max-width: 820px) {
  .main-vis-desc { bottom: 72px; }
  .scroll-indicator { line-height: 40px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .access-info { grid-template-columns: 1fr; margin: 40px auto; }
  .access-info img { order: 2; }
}

@media (max-width: 480px) {
  .main-vis-content { padding: 0 24px; }
  .main-vis-title { font-size: 30px; letter-spacing: 2px; }
  .main-vis-sub {font-size: 12px; }
  .main-vis-desc { bottom: 88px; font-size: 12px; padding: 5px 10px 5px 6em; }
  .scroll-indicator { height: 72px; }
  .philosophy-text p, .news-title { font-size: 14px; }

  #company.section {background: none; }
  .company-overlay { padding: 72px 0 0; background: none; }
  .company-layout {
    padding-top: 0;
    background: linear-gradient(0deg, var(--color-bg-light) 15%, #ffffff);
  }
  .company-table th { width: 7em; font-size: 12px; padding: 16px 8px; }
  .company-table td { font-size: 12px; padding: 16px 8px; }

  .works-grid { grid-template-columns: 1fr; }
  .btn-submit { padding: 16px 48px; }
  .access-map iframe { height: 300px; }
  .access-info { width: 100%; margin: 32px 0; }
}