@charset "utf-8";

/* ----------------------------------------
	company.css
---------------------------------------- */
#company {
  padding-top: 90px;
}

/* 代表挨拶 */
#message {
  margin: 8rem 15%;
}

.message-contents {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.message-text {
  flex: 1.5;
}

.message-text p {
  margin-bottom: 1rem;
}

.message-text p:last-child {
  margin-bottom: 0;
  margin-top: 2rem;
  font-size: 1.1rem;
  text-align: right;
}

.ceo-img {
  flex: 1;
}

/* 画面幅1180px以下 */
@media screen and (max-width: 1180px) {
  #message {
    margin: 8rem 6%;
  }
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  .message-contents {
    flex-direction: column-reverse;
  }

  .massage-text {
   margin-bottom: 4rem;
  }

  .ceo-img {
    width: 60%;
    margin: 0 auto;
  }
}

/* 画面幅767px以下 */
@media screen and (max-width: 767px) {
  #message {
    margin: 4rem 6%;
  }
}

/* 画面幅575px以下 */
@media screen and (max-width: 575px) {
  #message {
    margin: 4rem 1rem;
  }
}

/* MISSION・VISION */
#mission-vision {
  padding: 8rem 15%;
  border-radius: 30px;
  background-color: #3067d1;
}

.mv-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.mission {
  flex-direction: row;
  margin-bottom: 8rem;
}

.vision {
  flex-direction: row-reverse;
}

.mv-img-container {
  flex: 1;
}

.mv-text-container {
  flex: 1;
}

.mv-container p {
  color: #fff;
}

#mission-vision h2 {
  color: #fff;
  border-left: 5px solid #fff;
}

#mission-vision .h2-line {
  margin-bottom: 4rem;
}

 .mv-ttl {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
 }

 .mv-sub-ttl {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
 }

 .mv-text {
  margin-bottom: 2rem;
 }

 .mv-section p:last-of-type {
  margin-bottom: 0;
 }

.mv-image {
  border-radius: 20px;
}

/* 画面幅1180px以下 */
@media screen and (max-width: 1180px) {
  #mission-vision {
    padding: 8rem 6%;
  }

  .mv-ttl {
    font-size: 1.4rem;
  }
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  /* 親の overflow / transform を無効化して sticky を生かす */
  #mission-vision {
    overflow: visible !important;
    transform: none !important;
  }

  .mv-container {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
  }

  .mv-img-container {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .mv-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .mv-text-container {
    position: relative;
    z-index: 2;
    background-color: rgba(48, 103, 209, 0.9);
    padding: 8rem 2rem;

    /* 画像の上へ重ねる。画像高さに合わせて調整可能 */
    margin-top: -10vh;
  }

  .mv-ttl {
    font-size: 1.5rem;
  }
}

/* 画面幅767px以下 */
@media screen and (max-width: 767px) {
  #mission-vision {
    padding: 4rem 6% 0 6%;
  }

  .mv-text-container {
    padding: 4rem 0;
  }
}

/* 画面幅575px以下 */
@media screen and (max-width: 575px) {
  #mission-vision {
    padding: 4rem 1rem 0 1rem;
  }

  .mission {
    margin-bottom: 4rem;
  }

  /* .mv-text-container {
    padding: 4rem 0;
  } */
}

/* 会社概要 */
#profile {
  margin: 8rem 15%;
}

/* table design */
table {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
}

table th,
td {
  padding: 1rem 2rem;
}

table th {
  background: #eaf0fa;
  width: 25%;
  border: 1px solid #2589d0;
}

table td {
  border: 1px solid #bac7cc;
}

/* 画面幅1180px以下 */
@media screen and (max-width: 1180px) {
  #profile {
    margin: 8rem 6%;
  }

  table {
    width: 100%;
  }
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  
}

/* 画面幅767px以下 */
@media screen and (max-width: 767px) {
  table th,td {
		width: auto;
		display: block;
	}

  table th {
    border-bottom: none;
  }

  table td {
    border-top: none;
    border-right: 1px solid #3067d1;
    border-bottom: none;
    border-left: 1px solid #3067d1;
  }

  table tr:last-child td {
    border-bottom: 1px solid #3067d1;
  }
}

/* 画面幅575px以下 */
@media screen and (max-width: 575px) {
  #profile {
    margin: 4rem 1rem;
  }
}

/* 沿革 */
#history {
  padding: 8rem 15%;
  background-color: #eaf0fa;
  border-radius: 30px;
}

#history h2::after {
  color: #fff;
}

.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 10%;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 1px;
  background: #bac7cc;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3067d1;
  border: 4px solid #fff;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  position: relative;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: rgba(11, 153, 239, 0.3);
}

.timeline-date time span {
  font-size: 0.9rem;
}

.timeline-content {
  position: relative;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
  z-index: 3;
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.8em;
}

.timeline-content p {
  margin-bottom: 15px;
}

.timeline-content *:last-child {
  margin-bottom: 0;
}

/* 画面幅1180px以下 */
@media screen and (max-width: 1180px) {
  #history {
    padding: 8rem 6%;
  }
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  
}

/* 画面幅767px以下 */
@media screen and (max-width: 767px) {
  #history {
    padding: 4rem 6%;
  }

  .timeline {
    margin: 0;
  }
}

/* 画面幅575px以下 */
@media screen and (max-width: 575px) {
  #history {
    padding: 4rem 1rem;
  }
}

/* 当社の成長実績 */
#performance {
  margin: 8rem 15%;
}

.bar-chart-sales {
  margin: 0 0 6rem 0;
}

#performance h3 {
  font-weight: 600;
  border-radius: 5px;
  width: fit-content;
  padding: 0.5rem 1rem;
  margin: 0 auto 1rem auto;
}

.bar-chart-sales h3 {
  color: #3067d1;
  background-color: #eaf0fa;
  border: 1px solid #3067d1;
}

.bar-chart-performance {
  margin: 0 10%;
}

.bar-chart-performance h3 {
  color: #f9454e;
  background-color: #feeced;
  border: 1px solid #f9454e;
}

.chart-wrapper {
  overflow-x: hidden;
}

/* 画面幅1180px以下 */
@media screen and (max-width: 1180px) {
  /* 当社の成長実績 */
  #performance {
    margin: 8rem 6%;
  }
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  /* 当社の成長実績 */
  .bar-chart-sales {
    margin: 0 0 4rem 0;
  }
}

/* 画面幅767px以下 */
@media screen and (max-width: 767px) {
  /* 当社の成長実績 */
  #performance {
    margin: 4rem 6%;
  }
}

/* 画面幅575px以下 */
@media screen and (max-width: 575px) {
  /* 当社の成長実績 */
  #performance {
    margin: 4rem 1rem;
  }
}
