/*=======================
Company
=========================*/
.company_page [id]:before {
  content: "";
  display: block;
  height: 120px;
  margin-top: -120px;
}

.company_page .page-mv img {
  border-radius: 67px 0 0 0;
  max-width: inherit;
  width: 100%;
}

/* MV Section */
.company_page .page-mv-section {
  margin-bottom: 85px;
}

.company_page .p0-20 {
  padding: 0 20px;
}

/* navi */
.company-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto 85px;
  position: relative;
  width: 80%;
  width: min(100%,1240px);
  z-index: 100;
}

.company-nav li {
  color: #fff;
  text-align: center;
}

.company-nav li:not(:last-child) {
  border-right: 1px solid #fff;
}

.company-nav li a {
  background-color: #005fa8;
  display: block;
  padding: 30px 0;
  position: relative;
}

.company-nav li a:hover {
  background-color: #25aae1;
}

.company-nav li a::after {
  border-right: 1px solid #fff;
  border-top: 1px solid #fff;
  content: "";
  height: .35em;
  position: absolute;
  transform: translate(-50%, -50%) rotate(135deg);
  transition: .3s ease;
  width: .35em;
  bottom: 20px;
  left: calc(50% - .175em);
}

.company-nav li a:hover::after {
  bottom: 0;
}

/* message */
.section-message .page-section-title,
.section-message .section-inner-grid {
  width: min(100%, 1240px);
  margin: 0 auto 85px;
}

.section-message .page-section-title {
  margin-bottom: 50px;
}

.section-message.page-section {
  margin: 0;
  max-width: unset;
}
.section-ceo-image {
  overflow: hidden;
  -webkit-mask-image: -webkit-linear-gradient(to right, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}

.company_page .section-inner-grid {
  column-gap: 3%;
  row-gap: 25px;
}

.company_page .section-inner-grid .message-block:nth-child(odd) {
  padding-left: 12%;
}

.company_page .section-inner-grid .message-block:nth-child(2),
.company_page .section-inner-grid .message-block:nth-child(4) {
  padding-right: 12%;
}

.company_page .section-inner-grid .message-block:nth-child(5) {
  margin-top: 20px;
}

.company_page .message-block-img {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 85px;
  margin-top: -310px;
  width: 100%;
}

.company_page .message-block-img img {
  border-radius: 70px 0 0 0;
  width: 48%;
}

.section-ceo-image img {
  transform: scale(1.7) translateY(12%);

}

.message-ceo-text {
  display: inline-block;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.75;
  margin: 20px 0;
}

.message-ceo-small {
  font-size: .9375rem;
  line-height: 1.75;
}

/* Policy */
.section-policy {
  width: min(100%,1240px);
  margin: 0 auto 85px;
}

.section-policy .display-flex {
  gap: 5%;
}

.company-policy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5%;
  width: 90%;
  margin: 0 auto;
}

.section-policy .pt15{
  padding-top: 15px;
}

/* overview */
.section-overview {
  width: min(100%, 1240px);
  margin: 0 auto 85px;
}

.section-overview .page-section-title {
  padding-left: 0;
  text-align: center;
}

.section-overview dl {
  margin-bottom: 80px;
}

.overview-item {
  border-bottom: 1px solid #dcdddd;
  display: grid;
  grid-template-columns: 6em auto;
  gap: 4.2%;
  padding: 20px 0 20px 25px;
}

.overview-item dd a {
  display: inline-block;
  margin-left: 3em;
  text-decoration: underline;
  position: relative;
}

.overview-item .company-access-link::after {
  position: absolute;
  border-right: 1px solid #000;
  border-top: 1px solid #000;
  content: "";
  height: .4em;
  transform: translate(-50%, -50%) rotate(45deg);
  top: 50%;
  width: .4em;
  right: -12px;
}

.overview-item .company-access-link:hover::after {
  transform: translate(5px, -50%) rotate(45deg);
  transition: .3s ease;
}

.section-overview .listhead-blue {
  align-items: center;
  display: flex;
  padding-left: 1.5em;
  position: relative;
}

.section-overview .listhead-blue:not(:last-child) {
  margin: 0 0 1rem;
}

.section-overview .listhead-blue::before {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* history */
.section-history {
  width: min(100%, 1240px);
  margin: 0 auto 85px;
}

.section-history .page-section-title {
  text-align: center;
}

.section-history-inner {
  align-items: stretch;
  display: grid;
  grid-template-columns: 68% 30%;
  gap: 2%;
}

.history-item {
  align-items: baseline;
  display: grid;
  gap: 4.2%;
  grid-template-columns: 5em auto;
  height: auto;
  padding: 0 0 1em 3em;
  position: relative;
}

.history-year {
  color: #005fa8;
  font-size: 1.25rem;
  font-weight: 300;
}

.history-item::before {
  left: 0;
  top: 17px;
}

.history-item:not(:last-child)::after {
  border-left: 1px dashed #dcdddd;
  display: block;
  content: "";
  height: 100%;
  left: .5em;
  top: -0.5em;
  position: absolute;
  z-index: -1;
}

.history-item:nth-child(22)::after {
  height: 135%;
}

.history-layout {
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1fr;
}

.history-image {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.history-image img {
  display: block;
  height: auto;
  width: 100%;
}

.company-end-visual {
  height: 100vh;
  position: relative;
}

.company-end-visual-inner {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.company-end-visual-inner img {
  border-radius: 50px 0 50px 0;
  height: auto;
  max-width: none;
  transform: scale(1);
  transition: transform .1s linear;
  width: 80%;
}

@media screen and (max-width: 949px) {
  .company-nav {
    gap: 1px;
    grid-template-columns: 1fr 1fr;
  }

  .company-nav li a {
    padding: 20px 0;
  }

  .company-nav li a::after {
    bottom: 13px;
  }
}

@media screen and (max-width: 768px) {
  .header {
    padding: 20px 10px;
  }

  /*====================
  Company
  =====================*/
  /* common */
  .company_page [id]:before {
    height: 220px;
    margin-top: -220px;
  }

  .page-section-title {
    margin-bottom: 20px;
  }

  /* nav */
  .company-nav,
  .company-nav li a {
    font-size: .875rem;
  }

  /* message */
  #message.page-section,
  #overview.page-section,
  #history.page-section {
    padding: 0 20px;
  }

  #history.page-section {
    margin-bottom: 20px;
  }

  .section-message .section-inner-grid {
    grid-template-columns: 1fr;
    margin-bottom: 50px;
    position: relative;
  }

  .section-ceo-image img {
    transform: scale(1.7) translate(-15%, 12%);
  }

  .message-ceo-text {
    line-height: 1.5;
    position: absolute;
    right: 2%;
    top: 8vw
  }

  .message-ceo-text .message-ceo-small {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  }

  .message-ceo-text .message-ceo-name {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .company_page .section-inner-grid .message-block:nth-child(odd),
  .company_page .section-inner-grid .message-block:nth-child(even) {
    padding: 0;
  }

  .company_page .section-inner-grid .message-block .pc-none {
    margin-bottom: 25px;
  }

  .company_page .message-block-img {
    margin: 0 0 85px auto;
  }

  .company_page .message-block-img img {
    width: 100%;
  }

  .company-policy-inner {
    width: 100%;
  }

  .company-policy-inner img {
    display: block;
    margin: 0 auto;
  }

  .history-item::before {
    top: 5px;
  }

  .company-end-visual,
  .company-end-visual-inner {
    height: 45vh;
  }

  /* policy */
  .section-policy {
    padding: 0 20px;
  }

  .section-policy .pt15 {
    padding-top: 0;
  }

  .section-policy .display-flex {
    margin-bottom: 50px;
  }

  .company-policy-inner {
    grid-template-columns: 1fr;
  }

  /* overview */
  .overview-item {
    grid-template-columns: 1fr;
    font-size: .9735rem;
  }

  .overview-item dd a {
    font-size: 1rem;
    margin-left: 0;
  }

  .overview-item .company-access-link {
    font-size: .9735rem;
  }

  /* history */
  .section-history-inner {
    grid-template-columns: 1fr;
  }

  .history-list {
    line-height: 1.5;
  }

  .history-year {
    font-size: 1rem;
  }

  .history-item {
    grid-template-columns: 4em auto;
    padding-left: 1.5em;
  }

  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-image {
    display: none;
  }
}
