/* ==========================================================================
   Restar Theme - company.css
   会社概要ページ
   ========================================================================== */

/* ---------- 会社概要：会社情報 ---------- */
.overview {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.overview__inner {
  position: relative;
  display: grid;
  /* 上段：タイトル｜画像　下段：会社概要の表 */
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas:
    "head  img"
    "table table";
  column-gap: 60px;
  align-items: stretch;
  /* 他のセクションの .container（common.css）と同じ横幅。.container を変えたらここも合わせる */
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px var(--gutter) 80px;
}

.overview__head {
  grid-area: head;
  align-self: center;
  padding: 40px 0;
}

.overview__table {
  grid-area: table;
  margin: 50px 0 0;
  padding-left: 40px;
  border-left: 1px solid var(--blue-400);
}

.overview__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
}

.overview__row:first-child {
  padding-top: 0;
}

.overview__row:last-child {
  border-bottom: 0;
}

.overview__row dt {
  font-weight: 700;
}

.overview__row dd {
  margin: 0;
  color: var(--text);
}

.overview__img {
  grid-area: img;
  min-height: 340px;
  background-size: cover;
  background-position: center;
}

.deco-lines--left-bottom {
  left: -160px;
  bottom: -200px;
}

/* ---------- 会社概要：沿革 ---------- */
.history {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  overflow: hidden;
}

.history__img {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 50%;
  height: 74%;
  background-size: cover;
  background-position: center bottom;
  /* 上・左・下の端をぼかす */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 30%);
  mask-composite: intersect;
}

.history::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(-58deg, transparent 22%, rgba(26, 109, 255, .5) 22%, rgba(26, 109, 255, .5) 24%, transparent 24%);
}

.history__catch {
  position: absolute;
  right: 5%;
  top: 60px;
  z-index: 2;
  font-family: "Zen Kurenaido", var(--font-hand);
  font-size: 26px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .92);
  transform: rotate(-12deg);
}

.history__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.history__text {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 26px;
}

.timeline {
  position: relative;
  max-width: 560px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(140, 194, 255, .5);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 0 0 22px 26px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(26, 109, 255, .25);
}

.timeline__date {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--sky-300);
  line-height: 1.8;
}

.timeline__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.timeline__text {
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.8;
}

/* ---------- 会社概要：大切にしていること ---------- */
/* 縦線を「01と02の間」「02と03の間」のちょうど真ん中に置く（採用情報ページには影響しません）
   列：[01] [余白＋縦線] [02] [余白＋縦線] [03]（左寄せ） */
@media (min-width: 768px) {
  .values__list {
    /* 120px = 縦線の左右に60pxずつの余白。詰めたい・広げたい場合はこの数字を変更 */
    grid-template-columns: max-content 120px max-content 120px max-content;
    justify-content: start;
  }

  .values__list::before,
  .values__list::after {
    content: "";
    grid-row: 1;
    justify-self: center;
    width: 1px;
    background: var(--line);
  }

  .values__list::before {
    grid-column: 2;
  }

  .values__list::after {
    grid-column: 4;
  }

  .value-item {
    grid-row: 1;
    padding: 0;
    border-left: 0;
  }

  .value-item:nth-child(1) {
    grid-column: 1;
  }

  .value-item:nth-child(2) {
    grid-column: 3;
  }

  .value-item:nth-child(3) {
    grid-column: 5;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .overview__inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    padding-right: var(--gutter);
  }

  .overview__table {
    margin-right: 0;
  }

  .overview__img {
    min-height: 320px;
  }

  .history__inner {
    grid-template-columns: 1fr;
  }

  .history__catch {
    display: none;
  }
}

@media (max-width: 767px) {
  .overview__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "table"
      "img";
    gap: 0;
    padding: 56px var(--gutter) 0;
  }

  .overview__head {
    padding: 0 0 20px;
  }

  .overview__table {
    margin: 0 0 40px;
    padding-left: 0;
    border-left: 0;
  }

  .overview__row {
    grid-template-columns: 84px 1fr;
  }

  .overview__img {
    margin: 0 calc(var(--gutter) * -1);
    min-height: 240px;
  }

  .history__img {
    bottom: 0;
    width: 100%;
    height: 180px;
    opacity: .6;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%), linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%), linear-gradient(90deg, transparent 0%, #000 30%);
  }

  .history__inner {
    padding-top: 60px;
    padding-bottom: 200px;
  }

  .timeline {
    padding-left: 0;
    border-left: 0;
  }

  .timeline::before {
    left: 0;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-left: 24px;
  }
}