* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.divider {
  display: flex;
  background-color: #9f9f9f;
}

.divider-top {
  height: 6px;
  flex-shrink: 0;
}

.divider-bottom {
  height: 18px;
  flex-shrink: 0;
}

.divider-inner {
  flex: 1;
  background-color: #e7e6e4;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e4e2e1;
  border-right: 1px solid #e4e2e1;
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  gap: 80px;
  align-items: stretch;
  padding: 60px 50px 0;
  overflow: hidden;
  min-height: 0;
}

#three-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.left-col {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 40px 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.left-col::-webkit-scrollbar {
  display: none;
}

.left-col-content {
  width: 100%;
  padding-bottom: 30px;
}

.right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 60px;
  padding-bottom: 60px;
  overflow-y: auto;
  min-height: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background: rgba(245, 243, 240, 0.45);
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 60px;
  margin-top: -60px;
  scroll-behavior: smooth;
}

.right-col::-webkit-scrollbar {
  display: none;
}

.news-section h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
  display: inline-block;
}

.news-list {
  list-style: none;
}

.news-list li {
  margin-bottom: 18px;
  font-size: 14px;
}

.news-date {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  margin-bottom: 6px;
}

.news-title {
  line-height: 1.5;
}

.project-card {
  background: transparent;
  border: none;
  border-top: 1px solid #ccc;
  border-radius: 0;
  padding-top: 32px;
  padding-bottom: 12px;
  box-shadow: none;
  transition: none;
  flex-shrink: 0;
  width: 100%;
  max-width: 640px;
}

.project-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.project-card h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.project-card p {
  font-size: 15px;
  color: #171717;
  margin: 0 0 12px;
  line-height: 1.6;
}

.project-card a {
  color: #171717;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.project-card a:hover {
  opacity: 0.6;
  text-decoration: none;
}

h1 {
  font-size: 48px;
  font-weight: 400;
  color: #000;
}

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

/* Scroll Indicator */
.scroll-spacer {
  height: 30vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 20px;
  flex-shrink: 0;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  opacity: 0.5;
  animation: bounce 2.5s infinite;
  margin-right: 24px;
  position: relative;
}

.scroll-indicator span {
  left: 24px;
  position: absolute;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.arrow-down {
  position: relative;
  display: inline-block;
  width: 1px;
  height: 60px;
  margin-left: 16.3px;
  border-radius: 9999px;
  background-color: #000000;
}

.arrow-down::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 20px;
  border-radius: 9999px;
  background-color: #000000;
  transform: rotate(-45deg);
  transform-origin: 50% calc(100% - 0.5px);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.tagline {
  display: inline;
  background-color: #e2e052;
  font-size: 18px;
  color: #000;
  padding: 2px 4px;
  line-height: 1.6;
}

footer {
  background-color: #3a3a3a;
  color: #fff;
  flex-shrink: 0;
}

.footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px;
}

footer .footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

footer .copyright {
  font-size: 13px;
  color: #ccc;
}

.kadomaru-image {
  display: block;
  border-radius: 20px;
  margin-bottom: 40px;
}

/* ==========================================
   モバイル対応
========================================== */
@media (max-width: 900px) {
  body {
    height: auto;
    overflow: auto;
  }

  .page-wrapper {
    border: none;
    overflow: visible;
  }

  main {
    flex-direction: column;
    gap: 0;
    padding: 30px 20px 0;
    overflow: visible;
  }

  .left-col {
    flex: none;
    padding: 20px 0;
    gap: 24px;
  }

  .right-col {
    flex: none;
    overflow: visible;
    margin-top: 0;
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
    align-items: stretch;
  }

  .project-card {
    max-width: 100%;
  }

  .scroll-spacer {
    display: none;
  }

  .divider-bottom {
    height: 8px;
  }

  .footer-inner {
    padding: 20px;
  }

  h1 img {
    height: 36px;
    width: auto;
  }
}

@media (max-width: 480px) {
  main {
    padding: 20px 16px 0;
  }

  .right-col {
    padding-left: 16px;
    padding-right: 16px;
    gap: 40px;
  }

  .project-card h3 {
    font-size: 18px;
  }

  .project-card p {
    font-size: 14px;
  }

  .tagline {
    font-size: 15px;
  }
}
