@charset "UTF-8";

/* --------------------------------
  strengths
--------------------------------*/
#about .strengths__large-txt {
  background-color: var(--c-white);
  width: fit-content;
  line-height: 1.2;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  color: #00269a;
}
#about .strengths__text {
  line-height: 2.1;
}
@media screen and (max-width: 600px) {
  #about .strengths__large-txt {
    line-height: 1.5;
  }
}

/* --------------------------------
  strengths cards
--------------------------------*/
#strengths .strengths__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  padding-top: calc(68.5px + 40px);
}
#strengths .strengths__item {
  position: relative;
  border-radius: 2px;
  padding: calc(20px + 68.5px) 32px 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--c-white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#strengths .strengths__item:nth-child(1) {
  background-image: url(../../img/page/about/strength-bg-01.webp);
}
#strengths .strengths__item:nth-child(2) {
  background-image: url(../../img/page/about/strength-bg-02.webp);
}
#strengths .strengths__item:nth-child(3) {
  background-image: url(../../img/page/about/strength-bg-03.webp);
}
#strengths .strengths__num {
  position: absolute;
  top: 0;
  left: 24px;
  transform: translate(0, -50%);
}
#strengths .strengths__num img {
  display: block;
  width: 137px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
#strengths .strengths__title {
  font-size: var(--fs-23);
  line-height: 1.8;
  padding-bottom: 24px;
  font-weight: var(--fw-semibold);
}
#strengths .strengths-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  z-index: -1;
}
#strengths .strengths-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
#strengths .strengths-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media screen and (max-width: 1024px) {
  #strengths .strengths__list {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: calc(40px + 16px);
  }
  #strengths .strengths__item {
    padding: 60px 40px 40px;
  }
  #strengths .strengths__num {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  #strengths .strengths__num img {
    width: 80px;
  }
  #strengths .strengths__title {
    text-align: center;
    padding-bottom: 16px;
  }
}

@media screen and (max-width: 768px) {
  #strengths .strengths__list {
    gap: 44px;
  }
  #strengths .strengths__item {
    padding: 40px 24px 24px;
  }
  #strengths .strengths__num img {
    width: 56px;
  }
  #strengths .strengths__title {
    font-size: var(--fs-20);
    padding-bottom: 12px;
  }

  #strengths .strengths-bg {
    height: 40%;
  }
  #strengths .strengths-bg img {
    object-position: right center;
  }
}

@media screen and (max-width: 600px) {
  #strengths .strengths__list {
    gap: 40px;
  }
  #strengths .strengths__item {
    padding: 40px 16px 24px;
  }
  #strengths .strengths__title {
    font-size: var(--fs-18);
  }
}

/* --------------------------------
  overview
--------------------------------*/
#overview .ud-sec-ttl {
  position: relative;
}
#overview .ud-sec-ttl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -50vw;
  width: 80vw;
  height: 1.4px;
  background-color: var(--c-blue-04);
  border-radius: 50%;
}
#overview .overview-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 56px;
  padding: 24px;
  border-bottom: 0.25px solid #00269a;
}
#overview .overview-row dt {
  font-family: var(--font-shippori);
  font-size: var(--fs-19);
  font-weight: var(--fw-semibold);
  color: var(--c-blue-04);
  text-align-last: justify;
}
#overview .overview-row dd {
  margin: 0;
  line-height: 2;
}
#overview .overview-office {
  margin-bottom: 16px;
}
#overview .overview-office:first-child {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 0.25px solid #00269a;
}
#overview .ovw-space-sp {
  display: none;
}
#overview .ovw-space-pc {
  margin-left: -.5em;
}
@media screen and (max-width: 768px) {
  #overview .overview-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  #overview .overview-row dt {
    text-align-last: left;
    font-size: var(--fs-18);
    font-weight: var(--fw-bold);
  }
  #overview .overview-office:first-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}
@media screen and (max-width: 600px) {
  #overview .overview-row {
    gap: 4px;
    padding: 12px 0;
  }
  #overview .overview-row dt {
    font-size: var(--fs-17);
    letter-spacing: 0.3em;
    font-weight: var(--fw-black);
  }
  #overview .overview-row dd {
    padding-left: 0.5em;
  }
  #overview .ovw-space-sp {
    display: inline-block;
    margin-left: -.5em;
  }
}

/* --------------------------------
  history
--------------------------------*/
#history .ud-sec-ttl {
  position: relative;
}

#history .ud-sec-ttl::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: -50vw;
  width: 80vw;
  height: 1.4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--c-blue-04) 0%,
    var(--c-blue-04) 70%,
    transparent 100%
  );
}

#history .history-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
#history .history-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 64px;
  --history-col-gap: 64px;
  position: relative;
  min-width: min-content;
}
#history .history-item {
  position: relative;
  flex: 0 0 auto;
  max-width: 180px;
}

/* 年号 */
#history .history-year {
  font-family: var(--font-josefin);
  font-size: 48px;
  font-weight: var(--fw-light);
  font-style: italic;
  background-image: linear-gradient(140deg, #001479, #01002e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  letter-spacing: 0.14em;
}
#history .history-year__unit {
  font-size: var(--fs-20);
  color: #010342;
  font-weight: var(--fw-regular);
}

/* 和暦 */
#history .history-era {
  color: var(--c-blue-05);
  white-space: nowrap;
}

/* ドット＋ライン */
#history .history-dot {
  position: relative;
  width: 100%;
  height: 24px;
  margin: 18px 0 16px;
}

#history .history-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-color: var(--c-blue-04);
  border-radius: 50%;
  z-index: 2;
}

#history .history-row .history-dot::before {
  content: "";
  position: absolute;
  left: 0;
  width: calc(100% + 64px);
  height: 11px;
  background-color: var(--c-blue-04);
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);
}
#history .history-desc {
  color: var(--c-blue-05);
}

#history .history-img {
  margin-top: 16px;
}
#history .history-img img {
  display: block;
  width: 100%;
  aspect-ratio: 176 / 120;
  height: auto;
  object-fit: cover;
}
#history .scrollbar__wrapper {
  display: block;
  position: sticky;
  left: 0;
  bottom: 0;
  height: 12px;
  width: 100%;
  pointer-events: none;
}
#history .scrollbar__txt {
  position: absolute;
  right: calc(108px + 16px);
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 10px;
}
#history .scrollbar__txt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#history .scrollbar {
  --bar-h: 0.5px;
  --bar-w: 108px;
  position: absolute;
  right: 10px;
  top: 50%;
  width: var(--bar-w);
  height: var(--bar-h);
  overflow: visible;
  transform: translateY(50%);
}
#history .scrollbar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--c-blue-01);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  animation: history-scrollbar-line 2.4s ease-in-out infinite;
}
/* 線の先端の矢印 */
#history .scrollbar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, 50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--c-blue-01);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  pointer-events: none;
  opacity: 0;
  animation: history-scrollbar-arrow 2.4s ease-in-out infinite;
}
@media screen and (max-width: 1500px) {
  #history .history-year {
    font-size: var(--fs-40);
  }
}

@keyframes history-scrollbar-line {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  66% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes history-scrollbar-arrow {
  0% {
    transform: translate(0, -50%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  66% {
    transform: translate(var(--bar-w), -50%);
    opacity: 1;
  }
  100% {
    transform: translate(var(--bar-w), -50%);
    opacity: 0;
  }
}
@media screen and (max-width: 1300px) {
  #history .history-row {
    gap: 40px;
  }
  #history .history-row .history-dot::before {
    width: calc(100% + 40px);
  }
  #history .history-year {
    font-size: var(--fs-36);
  }
  #history .history-year__unit {
    font-size: var(--fs-18);
  }
  #history .history-era {
    font-size: var(--fs-16);
  }
  #history .history-desc {
    font-size: var(--fs-14);
  }
}

@media screen and (max-width: 960px) {
  #history .history-table {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  #history .history-row {
    min-width: min-content;
    gap: 24px;
  }
  #history .history-item {
    flex: 0 0 auto;
  }
  #history .history-dot {
    height: 16px;
    margin: 8px 0 16px;
  }
  #history .history-row .history-item .history-dot::before {
    width: calc(100% + 24px);
    left: 0;
    height: 6px;
  }
  #history .history-dot::after {
    width: 16px;
    height: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
  #history .history-year {
    font-size: var(--fs-30);
  }
  #history .history-era {
    font-size: var(--fs-14);
  }
}
@media screen and (max-width: 600px) {
  #history .history-desc {
    letter-spacing: 0.075em;
  }
}
