/* ================================================
   Hero Section (Based on Astrim Design)
   ================================================ */

/* Hero Container */
.hero {
  --hero-vh: calc(100vh - 80px);
  --hero-min: 680px;
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    height: calc(var(--hero-vh));
    min-height: calc(var(--hero-min));
  }
}

@media (max-width: 767px) {
  .hero {
    --hero-vh: calc(100vh - 4rem);
  }
}

.hero_wrap {
  position: absolute;
  top: 0;
  width: 100%;
}

@media (max-width: 767px) {
  .hero_wrap {
    position: relative;
  }
}

/* Hero Content (First View) */
.hero_content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem;
  height: var(--hero-vh);
  min-height: var(--hero-min);
  color: #ffffff;
  z-index: 10;
  overflow: hidden;
}

/* Hero Background Video */
.hero_video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.hero_content::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.15);
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.3) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 0, 0, 0.2) 0.5px, transparent 0.5px);
  background-size: 4px 4px, 2px 2px;
  background-position: 0 0, 1px 1px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  z-index: -1;
}

@media (max-width: 767px) {
  .hero_content {
    min-height: auto;
    padding: 5rem 1.5rem;
  }
}

.hero--ttl {
  display: flex;
  flex-direction: column;
  font-size: 2.3rem;
  text-shadow: 0px 0px 14px rgba(0, 0, 0, 0.35);
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  margin: 0;
  text-align: center;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .hero--ttl {
    font-size: 2.125rem;
  }
}

.hero--txt {
  text-shadow: 0px 4px 23px rgba(0, 0, 0, 0.65);
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 767px) {
  .hero--txt {
    font-size: 0.75rem;
  }
}

/* Animation */
.hero_content .row {
  display: inline-block;
}

.hero_content .row-jp {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

.hero_content .row-en {
  font-size: 1.4rem;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .hero_content .row-jp {
    font-size: 1.125rem;
  }

  .hero_content .row-en {
    font-size: 0.8rem;
  }
}

.hero_content .row > span {
  display: inline-block;
  opacity: 0;
  translate: -1px 0;
  transition: all 0.6s cubic-bezier(0.6, 0, 0.62, 1);
}

body.loaded .hero_content .row > span {
  opacity: 1;
  translate: 0 0;
}

/* Philosophy Section (standalone in main-content) */
.philosophy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  background-color: transparent;
  padding: 4rem 1.5rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .philosophy {
    padding: 6rem 2rem;
  }
}

@media (max-width: 767px) {
  .philosophy {
    padding: 3rem 1.5rem;
  }
}

.philosophy .inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Title Styles */
.home_ttl-01 {
  margin-bottom: 2rem;
}

.home_ttl-01 .en {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: #185246;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.home_ttl-01 .txt {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  font-family: "Noto Serif JP", serif;
}

.home_ttl-01 .txt .bold {
  color: #185246;
  font-weight: 700;
}

@media (max-width: 767px) {
  .home_ttl-01 .txt {
    font-size: 1.5rem;
  }
}

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

.hero_about_subttl {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  line-height: 1.6;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
}

@media (max-width: 767px) {
  .hero_about_subttl {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.hero_about_subttl .bold {
  color: #185246;
  font-weight: 700;
}

.home_about--txt {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.home_about--txt p {
  margin-bottom: 1rem;
}

.home_about--txt .bold {
  color: #185246;
  font-weight: 600;
}

.txt-ctr-pc {
  text-align: center;
}

@media (max-width: 767px) {
  .txt-ctr-pc {
    text-align: left;
  }
}

.fz18 {
  font-size: 1.125rem;
}

@media (max-width: 767px) {
  .fz18 {
    font-size: 1rem;
  }
}

.mgn-btm24 {
  margin-bottom: 1.5rem;
}

/* Hero Copy (Side Text) */
.hero_copy {
  position: sticky;
  top: 80px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: var(--hero-vh);
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero_copy {
    display: none;
  }
}

.hero_copy--box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  background-color: #ffffff;
}

.hero_copy--txt {
  color: #9ca3af;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin: 0;
}

/* Brand Mark (Square rotating border - standalone in main-content) */
.brand_mark {
  position: relative;
  width: clamp(100px, 11.875vw, 190px);
  aspect-ratio: 1;
  border: 2px solid #eef3ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4rem auto;
}

@media (max-width: 767px) {
  .brand_mark {
    width: 6.25rem;
    margin: 3rem auto;
  }
}

@media screen and (min-width: 768px) and (max-height: 880px) {
  .brand_mark {
    max-width: 13vh;
  }
}

.brand_mark--square {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-border {
  border: 2px solid #185246;
  animation: rotateBorder 20s linear infinite;
}

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.brand_mark--text {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  animation: rotateText 20s linear infinite;
}

@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.brand_mark--text span {
  color: #185246;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  transform-origin: center;
}

.brand_mark--text span:nth-child(1) {
  position: absolute;
  top: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
}

.brand_mark--text span:nth-child(2) {
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.brand_mark--text span:nth-child(3) {
  position: absolute;
  left: 0.3rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.brand_mark--text span:nth-child(4) {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}

.brand_mark .logo {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  color: #185246;
  z-index: 1;
  font-family: "Noto Serif JP", serif;
}

/* Brand Mark Overlay (on wide image) */
.brand_mark--overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.brand_mark--overlay .logo {
  font-size: 1rem;
  white-space: nowrap;
}

/* Utility Classes */
.pc-none {
  display: none;
}

@media (max-width: 767px) {
  .pc-none {
    display: inline;
  }
}

.sp-none {
  display: inline;
}

@media (max-width: 767px) {
  .sp-none {
    display: none;
  }
}

/* Scroll Trigger Animation */
.sc-trigger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sc-trigger.active {
  opacity: 1;
  transform: translateY(0);
}

/* Page Load Class */
body {
  &.loaded {
    /* Ready for animations */
  }
}
