body {

  color: #333;
  background-color: #fff;
  margin: 0;

}
/* ↓会社概要 */
.about-container {
  max-width: 700px;
  padding: 0 30px; /* スマホでも余白を確保 */
  margin-top:70px;
}

@media screen and (max-width: 600px) {
  .about-container {
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
  }
}

.building-right {
  width: 400px;
  flex-shrink: 1;
  margin-top:40px;
}

.building-right img {
  width: 100%;
  height: 700px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
@media screen and (max-width: 1050px) {
  .building-right {
  width:0px;
  height:0px;
  }
}

.container2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  flex-direction: row-reverse;
}


.about-title {
  font-size: 2rem;
  border-bottom: 2px solid #1E3A8A;
  font-family:'Noto Serif JP';
  padding-bottom: 5px;
  margin-bottom: 30px;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  font-family:'Noto Sans JP';
  font-size:1.1rem;
  vertical-align: top;
  padding: 8px 12px;
  border-bottom: 1px solid rgb(255, 255, 255);
  position: relative;
    line-height: 1.8;
}

.about-table th {
  width: 25%;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 768px) {
.about-table th,
.about-table td  {
    font-size:1rem;
  }
}

.about-table td a {
  color: #4169e1;
  text-decoration: none;
}

.about-table td a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
  }

  .about-table th {
    margin-top: 20px;
  }
}


.about-table td, .about-table th {
  position: relative;
}

/* 縦線（棒線）のスタイルを追加 */
/* 青い縦棒線 */
.about-table th::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 100%;
  background-color: #3B82F6;
}


/* === スマホ対応：横並びと縦線維持 === */
@media screen and (max-width: 600px) {
  .about-table {
    display: block;
    width: 100%;
  }

  .about-table tr {
    display: flex;
    border-bottom: 1px solid #999;
  }

  .about-table th,
  .about-table td {
    flex: 1;
    display: block;
    padding: 10px;
  }

  /* border で縦線再現（擬似要素の代わり） */
  .about-table th {
    border-right: 2px solid #3B82F6;
  }

  .about-table th::after {
    display: none;
  }
}




/* ↓会社沿革 */



.history-container {
  max-width: 800px;
  margin: 0 auto; /* 常に中央寄せに変更 */
  padding: 0 20px; /* スマホでも余白を確保 */
    margin-top:70px;
    margin-bottom:70px;
}

.history-title {
  font-family:'Noto Serif JP';
  font-size: 2rem;
  border-bottom: 2px solid #1E3A8A;
  padding-bottom: 5px;
  margin-bottom: 30px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

/* 奇数行と偶数行で背景色を切り替える */
.history-table tr:nth-child(odd) {
  background-color: #d1daee;  /* 薄い青 */
}

.history-table tr:nth-child(even) {
  background-color: #ffffff;  /* 白（または別の色でもOK） */
}

.history-table th,
.history-table td {
  font-family:'Noto Sans JP';
  font-size:1.1rem;
  vertical-align: top;
  padding: 8px 12px;
  border-bottom: 1px solid #ffffff;
  position: relative;
    line-height: 1.8;
}
@media (max-width: 768px) {
.history-table th,
.history-table td {
    font-size:1rem;
  }
}

/* 縦の棒線（青） */
.history-table th::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 100%;
  background-color: #3B82F6;
}


/* スマホ対応：縦線を残し、読みやすいレイアウト */
@media screen and (max-width: 600px) {
  .history-container {
    margin-left: 10px;
    margin-right: 10px;
  }

  .history-table {
    display: block;
    width: 100%;
  }

  .history-table tr {
    display: flex;
    border-bottom: 1px solid #999;
  }

  .history-table th,
  .history-table td {
    flex: 1;
    display: block;
    padding: 10px;
  }

  /* 縦棒線を再現 */
  .history-table th {
    border-right: 2px solid #3B82F6;
  }


}