.header {
  height: 15vh;
  background-color: var(--color-nav);
}
@media (max-width: 768px) {
.header {
  height: 18vh;
}
}

main {
  margin: 0 auto;
}
/* 会社概要ページのスタイル */

/* 共通スタイル */
.about-section {
    margin: 0 auto;
    padding: 60px 20px 96px 20px;
}
  
.about-section h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-black);
    font-weight: bold;
}

.about-section .tagline{
  text-align: center;
  margin-bottom: 2rem;
}
  
.about-section p {
  font-family: var(--font-gothic);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-black);
  text-align: center;
  font-feature-settings: "palt";
}
  
.tagline::before {
  content: ' ';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--color-black);
  margin-right: 11px;
  line-height: 1;
}

.philosophy-container img{
  width: 80%;
  max-width: 1280px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.underline {
  position: relative;
  font-weight: bold;
}
 
.underline::before {
  content:"";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent 40%, #f5ff00 60%);
  animation: underlineAnim 5s ease-in;
  z-index: -1;
}
 
@keyframes underlineAnim {
  0% {
    right: 100%;
  }
  100% {
    right: 0;
  }
}

  /* 代表挨拶のスタイル */
.ceo-message {
  text-align: center;
  line-height: 1.8;
  background-color: var(--color-ceo);
}

.message p {
  margin-bottom: 2em;
  font-weight: 500;
}

.message .emphasize {
  font-size: 1.08rem;
}
  
.ceo-message .ceo-name {
  font-family: var(--font-mincho);
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 10px;
}
  
.ceo-message img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 会社概要テーブル */
li{
  list-style:none;
}

.company-info {
  width: 60%;
}

.table {
  border-top: 1px solid #c5c5c5;
  border-bottom: 1px solid #c5c5c5;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table>tbody>tr:first-child {
  border: none;
}

.table>tbody>tr {
  border-top: 1px solid #c5c5c5;
}

.table>tbody>tr>td:first-child {
  width: 30%;
  font-size: 1.1rem;
  line-height: 1.875em;
  font-family: var(--font-mincho);
  padding: 1.25em 1.1875em 0.9375em;
}

.table>tbody>tr>td:last-child {
  font-size: 1rem;
  line-height: 2em;
  font-family: var(--font-gothic);
  padding: 1.33333em 2em 1em;
  width: 80%;
  position: relative;
}

.table>tbody>tr>td {
  font-weight: 400;
}

.table>tbody>tr>td:last-child:after {
  content: '';
  display: block;
  position: absolute;
  top: 1.33333em;
  left: 0;
  bottom: 0;
  height: calc(100% - 2.33333em);
  border-right: 1px solid #c5c5c5;
}

.table p {
  font-size: 15px;
  line-height: 2em;
  font-family: var(--font-gothic);
  width: 80.43956%;
  position: relative;
  text-align: justify;
}

/* 沿革のスタイル */
.history{
  background-color: var(--color-base2);
  margin-bottom: 4rem;
}

.history-container {
  width: 80%;
  margin-left: 10%;
}

.history-container .table>tbody>tr>td:first-child {
  width: 42%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .about-section {
    width: 90%;
    padding: 40px 15px;
  }
  
  .about-section h1 {
    font-size: 1.6rem;
  }
  
  .about-section p {
    font-size: 90%;
  }

  .message .emphasize {
    font-size: 90%;
  }

  .ceo-message .ceo-name {
    font-size: 1.3rem;
  }

  .history-container{
    width: 100%;
    margin-left: 0;
  }

  .history-container, .table>tbody>tr>td:first-child, .table>tbody>tr>td:last-child {
    padding: 0.66666em 1em 0.5em;
    font-size: 70%;
  }
}