/* トップ（12 / 4章） */

/* わたしたちについて */
.about-split {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.about-copy {
  flex: 1;
  min-width: 0;
}

.about-photo {
  flex: 0 0 480px;
  width: 480px;
  position: relative;
  z-index: 1;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}

#about {
  background: var(--c-about-bg);
}

.deco.about-shapes {
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--c-bg);
  fill: currentColor;
  opacity: .40;
}

/* 大切にしていること */
#policy {
  padding: 0;
  --tree-h: 760px;
}

.g-up {
  background: var(--c-surface);
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}

.g-down {
  background: var(--c-ground);
  padding: 40px 0 96px;
  position: relative;
  overflow: hidden;
}

.g-up .wrap,
.g-down .wrap {
  position: relative;
  z-index: 1;
}

.tw {
  position: absolute;
  right: 6%;
  width: calc(var(--tree-h) * 0.762);
  pointer-events: none;
}

.g-up .tw {
  bottom: calc(var(--tree-h) * -0.37);
}

.g-down .tw {
  top: calc(var(--tree-h) * -0.63);
}

.tr {
  width: 100%;
  height: var(--tree-h);
}

.g-up .tr {
  color: var(--c-deep);
  opacity: .12;
}

.g-down .tr {
  color: var(--c-bg);
}

/* ヒーロー */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 32px;
  pointer-events: none;
  z-index: 4;
}

.wave path {
  fill: currentColor;
}

.hero .wave {
  color: var(--c-about-bg);
}

#blog .wave {
  color: var(--c-recruit);
}

.recruit .wave {
  color: var(--c-surface);
}

.hero {
  height: min(88vh, 760px);
  min-height: 620px;
  padding: 0;
}

.hero-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 64px;
  pointer-events: none;
}

.hero-frame {
  width: calc(50vw - max(64px, calc((100vw - 1240px) / 2 + 64px)));
  max-width: 100%;
  padding: 32px 28px;
  pointer-events: auto;
}

.hero-copy {
  font-family: var(--font-copy);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--c-bg);
}

.hero-copy-line {
  display: inline-block;
  white-space: nowrap;
  animation: reveal .6s ease-out both;
}

.hero-copy-line:nth-of-type(2) {
  animation-delay: .15s;
}

.hero-copy-line:nth-of-type(3) {
  animation-delay: .3s;
}

.hero-sub {
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--c-bg);
  margin: 16px 0 0;
  animation: reveal .6s ease-out .45s both;
}

.hero-viewport {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* カード・ブログ */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid3>* {
  animation: reveal .6s ease-out both;
}

.grid3>*:nth-child(2) {
  animation-delay: .15s;
}

.grid3>*:nth-child(3) {
  animation-delay: .3s;
}

.card {
  background: var(--c-bg);
  border-radius: var(--r-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}

.card-plain {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.blog-card {
  background: var(--c-surface);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.thumb {
  aspect-ratio: 16/9;
  background: var(--c-bg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--c-key);
  overflow: hidden;
  position: relative;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.thumb svg {
  width: 80%;
  height: 40%;
  opacity: .35;
}

.blog-body {
  padding: 24px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.date {
  font-size: 11px;
  color: var(--c-text-sub);
}

.blog-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
}

.sec-foot {
  margin-top: 40px;
}

/* 採用帯 */
.recruit {
  background: var(--c-recruit);
  color: var(--c-recruit-body);
  padding: 48px 0;
}

.recruit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.recruit-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  min-width: 0;
}

.recruit h2 {
  font-family: var(--font-copy);
  font-size: 32px;
  color: var(--c-recruit-fg);
}

.recruit-photo {
  overflow: hidden;
  background: var(--c-deep);
  position: relative;
  height: 100%;
  min-height: 160px;
  border-radius: var(--r-card);
}

.recruit-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 事業所概要（トップのみ） */
.ft-bar {
  background: var(--c-surface);
  padding: 64px 0;
}

.ft-bar dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 16px;
  font-size: 14px;
}

.ft-bar dt {
  font-weight: 700;
  color: var(--c-key);
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.ft-bar dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}

.ft-bar dt:first-child,
.ft-bar dd:first-of-type {
  border-top: 1px solid var(--c-line);
}

.ft-bar-link {
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.85;
}

.ft-bar-link a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.ft-bar-link a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--c-text);
}

.ft-map {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  margin-top: 32px;
  border-radius: var(--r-sm);
}

@media(max-width:900px) {

  .hero-grid {
    padding: 0 20px;
  }

  .about-split {
    flex-direction: column;
  }

  .about-photo {
    flex: none;
    width: 100%;
  }

  .grid3,
  .ft-bar dl {
    grid-template-columns: 1fr;
  }

  .recruit-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .recruit-photo {
    aspect-ratio: 16/9;
    height: auto;
    min-height: 0;
  }

  .grid3 {
    gap: 16px;
  }

  #policy {
    --tree-h: 620px;
  }

  .tw {
    right: -10%;
  }

  .g-down {
    padding-bottom: 72px;
  }

  #policy .grid3 {
    gap: 32px;
  }

  .hero {
    height: min(78vh, 560px);
    min-height: 0;
  }

  .hero-frame {
    width: auto;
    max-width: 100%;
    display: inline-block;
    padding: 28px 24px;
  }
}

@media(max-width:767px) {
  .hero-copy {
    font-size: 24px;
  }

  .hero-copy .hero-copy-line {
    white-space: normal;
  }

  .card {
    padding: 28px 20px;
  }

  .card-plain {
    padding: 0;
  }
}
