@charset "UTF-8";

/* 会社概要（依頼書 第3部 第6項） */

/* ===== ③ 大きな写真 ===== */
.company-photo {
  padding-top: 80px;
}

.company-photo__frame {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-panel);
}

.company-photo__frame picture {
  position: absolute;
  inset: 0;
}

.company-photo__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 33%;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.25);
  transform-origin: center center;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .company-photo {
    max-width: 1800px;
    margin: 0 auto;
    padding: calc(var(--px) * 104) 3.0769% 0;
  }

  .company-photo__frame {
    height: calc(var(--px) * 590);
    border-radius: 32px;
  }
}

/* ===== ④ 会社情報 ===== */
.info {
  scroll-margin-top: 30px;
}

/* ===== ⑤ 沿革 ===== */
.history {
  position: relative;
  padding: 72px 0 64px;
  scroll-margin-top: 0;
}

.history__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.history__deco svg {
  display: block;
  width: 100%;
  height: 100%;
}

.history .inner {
  position: relative;
  z-index: 1;
}

.history__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 40px;
  padding-bottom: 20px;
}

.history__list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--color-accent) 0 2px, transparent 2px 5px);
}

.history__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.history__badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 1000px;
  background: var(--color-panel);
}

.history__dot {
  display: block;
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.history__year {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 1.2514rem + 0.381vw, 1.8rem);
  font-weight: 600;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.history__text {
  flex: 1;
  min-width: 0;
  padding-left: 32px;
  font-size: clamp(1.2rem, 1.0886rem + 0.2857vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .history {
    padding: calc(var(--px) * 120) 0 calc(var(--px) * 152);
  }

  .history__deco {
    display: block;
  }

  .history__list {
    gap: calc(var(--px) * 20);
    margin-top: calc(var(--px) * 56);
    padding-bottom: 0;
  }

  .history__list::before {
    content: none;
  }

  .history__item {
    flex-direction: row;
    align-items: center;
    gap: calc(var(--px) * 32);
    padding: calc(var(--px) * 40) calc(var(--px) * 48);
    border-radius: 1000px;
    background: var(--color-panel);
  }

  .history__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: calc(var(--px) * 62.5);
    width: 2px;
    height: calc(var(--px) * 20);
    background: repeating-linear-gradient(to bottom, var(--color-accent) 0 2px, transparent 2px 5px);
  }

  .history__badge {
    align-self: auto;
    gap: calc(var(--px) * 12);
    min-width: calc(var(--px) * 91);
    padding: calc(var(--px) * 12) calc(var(--px) * 16) calc(var(--px) * 12) calc(var(--px) * 12);
    background: #fff;
  }

  .history__dot {
    width: calc(var(--px) * 7);
    height: calc(var(--px) * 7);
  }

  .history__year {
    font-size: clamp(1.376rem, 0.001rem + 1.3428vw, 2.418rem);
  }

  .history__text {
    padding-left: 0;
    font-size: clamp(1.15rem, -0.0007rem + 1.1237vw, 2.022rem);
    line-height: 2;
  }
}
