.main_container{
  width:max(700px,80%) ;
  margin: 0 auto;
}
.hero{
  position: relative;
  width: auto-fit;
  margin:0 auto;
}
.hero img{
  width: 100%;
  height: auto;
}

.title{
  position: absolute;
  z-index: 1;  
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  height: auto;
  font-size:28px;
  color: var(--clr-wh);
  text-align: center;
  text-shadow: 1px 1px 2px var(--clr-fontbl);
}

/* 私たちについて */
.about-section {
  width: max(700px, 80%);
  margin: 0 auto;
  margin: 2vw auto 0 auto;
}

.about-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 90%;
  margin: 0 auto;
  padding-bottom:150px ;
}

.about-message {
  flex: 2;
  font-size: 18px;
  line-height: 2.1;
}

.about-image {
  flex: 1;
  text-align: center;
}
.about-image img {
  width: 290px;
  height: 355px;
  object-fit: cover;
}

.about-president {
  font-size: 24px;
  text-align: center;
}

.about-section h3{
  text-align: center;
  font-weight: 300;
}

.milestone-list {
  width: 100%;
  margin: 2.2rem auto 0 auto;
}

.milestone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 0 0;
}

.milestone-line {
  flex: 1 1 0;
  border-top: 1px solid var(--clr-fontbl);
  margin: 0;
}

.milestone-main {
  font-size: 20px;
  width: 400px;
  white-space: nowrap;
  text-align: center;
}
/*
.milestone-message {
  width: 100%;
  margin: 2.0rem auto 0 auto;
  font-size: 20px;
  text-align: center;
}
*/
.table-bg {
  width: 80vw;
  margin: 0 auto;
  padding-top:50px;
}
.table-row {
  display: flex;
  gap: 2vw;
  justify-content: center;
  margin: 2vw auto 0 auto;
  padding: 60px 0;
}

.custom-table {
  background: var(--clr-wh);
  padding: 0;
  margin: 0 auto;
  min-width: 330px;
  max-width: 750px;
  width: 40vw;
  height: 100%;
  border: 0.5px solid var(--clr-fontbl);
}

.table-title {
  background: var(--clr-green);
  color: var(--clr-wh);
  font-size: 20px;
  text-align: center;
  padding: 0.5rem 0;
  border: 0.5px solid var(--clr-fontbl);
}

.custom-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.custom-table td {
  border: 1px solid var(--clr-fontbl);
  font-size: 16px;
  padding: 10px 0;
}

.custom-table td:nth-child(1) {
  text-align: center;
}

.custom-table td:nth-child(2) {
  text-align: left;
  padding-left: 1.5em;
}

.table-orgs {
  max-width: 600px;
  min-width: 600px;
}

.table-board {
  max-width: 360px;
  min-width: 300px;
}
.activity {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  padding: 50px 0;
  
}

.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18vw;
  min-width: 200px;
  max-width: 300px;
  margin-bottom: 1.2rem;
}

.activity-card img {
  width: 18vw;
  min-width: 200px;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.activity-label {
  background: var(--clr-green);
  color: var(--clr-wh);
  font-size: 16px;
  text-align: center;
  padding: 15px 0;
  width: 18vw;
  min-width: 200px;
  max-width: 300px;
  border-radius: 6px;
  margin-top: 15px;
}
/* info */
.info h3{
  text-align: center;
  font-size: 28px;
  font-weight: 200;
  padding:50px 0;
}

.info_container{
  width:max(700px,80%);
  margin: 0 auto;
  padding-top:100px ;
}
.info_box {
  position: relative;
  border: 2px solid var(--clr-green);
  margin: 0 auto;
  width:100%;
}
.info_label {
  position: absolute;
  top: -33px;
  left: -2px;
  width:150px ;
  padding:5px 0 ;
  font-size: 14px;
  text-align: center;
  background: var(--clr-green);
  color: var(--clr-wh);
}
.info_content {
  text-align: center;
  padding:10px 0;
}
.info_text {
  display: inline-block;
  font-size: 18px;
}
.info_link {
  color:var(--clr-green);
  margin: 0 2px;
}
.news-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  align-items: flex-start;
  margin: 2rem 0;
  max-width: 1300px;
}
.news-thumb img {
  width: 340px;
  height: 240px;
  object-fit: cover;
  display: block;
}
.news-content {
  display: flex;
    flex-direction: column;
    justify-content: flex-end;
  flex: 1;
  min-width: 0;
}
.news-category {
  font-size: 14px;
  border-bottom: 1px solid var(--clr-green);
  display: inline-block;
  padding-bottom: 0.2em;
  width: 100%;
}
.news-title {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  letter-spacing: 0.04em;
  margin: 0.5rem 0;
  padding-bottom: 0.2em;
}
.news-title a{
  color: var(--clr-fontgreen);
}
.news-title-main {
  font-size: 24px;
}

.news-date {
  font-size: 16px;
  color:var(--clr-fontgreen) ;
  font-weight: normal;
}

.news-summary {
  font-size: 16px;
}

.news-btn {
  align-self: flex-end;
  display: inline-block;
  background: #2477f7;
  color:var(--clr-wh);
  font-size: 14px;
  padding: 0.6em 2.2em;
  border-radius: 3px;
}

.company-info-card {
  display: flex;
  justify-content: center;
  align-items: stretch;
  border-radius: 0;
  margin-top: 75px;
  padding: 50px 100px;
  gap:50px;
}

.company-info-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 35vw;
  max-width: 500px;
  min-width: 300px;
  text-align: center;
}

.company-logo {
  display: block;
  width: 100%;
}

.company-address {
  width: 100%;
  font-size: 20px;
}

.company-contact-btn {
  display: block;
  width: 100%;
  margin: 0 auto;
  background: var(--clr-green);
  color:var(--clr-wh);
  font-size: 18px;
  padding: 15px 0;
  border-radius: 6px;
}


/* --- PC用スタイル --- */
@media (min-width: 768px) {
.news-btn:hover {
    background: #3296ff;
  }
.activity-label:hover  {
    background: var(--clr-lightgreen);
  }
.company-contact-btn:hover {
  background: var(--clr-lightgreen);
}
}
/* --- PC用中サイズスタイル --- */
@media (max-width: 1300px) {
  .table-row {
    flex-direction: column;
    gap: 4vw;
  }

  .table-board {
    max-width: 600px;
    min-width: 600px;
  }
  }
/* --- モバイル用スタイル --- */
@media (max-width: 767px) {
.main_container {
    width:95vw;
  }
.hero img {
    height: 40vh;
    object-fit:cover ;
    object-position: 50% 50%;
}
  .title h2{
    width:90vw ;
    font-size:20px ;
    margin: 0 auto;
  }
  .about-section {
    width: 95vw;
  }
  .about-main {
    flex-direction: column;
    width: 90%;
  }
  .about-message {
    font-size: 16px;
    line-height: 1.8;
  }
  .about-image {
    text-align: center;
    margin: 0 auto;
    padding-top: 50px;
  }  
  .about-image img {
    width: 290px;
    height: 355px;
    object-fit: cover;
  }
.milestone-list {
  width: 100%;
  margin: 2.2rem auto 0 auto;
}

.milestone {
  margin: 1rem 0 0 0;
}

.milestone-line {
  flex: 1 1 0;
  border-top: 1px solid #222;
  margin: 0 1vw;
}

.milestone-main {
  font-size: 16px;
  width: 320px;
}
/*
.milestone-message {
  width: 100%;
  margin: 2.0rem auto 0 auto;
  font-size: 16px;
  text-align: left;
}
*/
.table-bg {
  width: 100%;
}

.custom-table {
  min-width: 100%;
  max-width: 100%;
  width: 80vw;
}

.table-title {
  font-size: 20px;
  padding: 0.5rem 0;
}

.custom-table td {
  font-size: 14px;
  padding: 6px 0;
  margin: 0 auto;
  text-align: center;
}

.custom-table td span {
  display: block;
  width: 100%;
  text-align: center;
}

.table-orgs {
  min-width: 100%;
  max-width: 100%;
}

.table-board {
  min-width: 100%;
  max-width: 100%;
}

.custom-table td:nth-child(2) {
  text-align: left;
  padding-left: 1em;
}

  .info_container {
    width: 95vw;
  }
  .info_text {
    font-size: 16px;
  }
  .news-card {
    flex-direction: column;
    gap: 0.5rem;
    width: 95vw;
  }
  .news-thumb img {
    width: 95vw;
    height: auto;
  }
  .news-content {
    flex-direction: column;
  }
  .news-category {
    font-size: 14px;
    display: inline-block;
    padding-bottom: 0.2em;
    width: 95vw;
  }
  .news-title {
    gap: 0.1rem;
  }
  .news-title-main {
    font-size: 20px;
  }
  .news-date {
    font-size: 12px;
    font-weight:400;
  }
  .news-summary {
    font-size: 16px;
  }
  .news-btn {
    font-size: 12px;
    padding: 0.6em 2.2em;
    border-radius: 4px;
  }
  .activity {
    flex-direction:column ;
    justify-content:center ;
    align-items: flex-start;
    width:95vw;
    margin:0;
    padding: 0;
    box-sizing: border-box;
  }
  .activity-card {
    flex-direction: column;
    width:95vw;
    margin:0 auto 1.2rem auto;
    box-sizing: border-box;
  }

  .activity-card img {
    width: 95vw;
    max-width: none;
    min-width: auto;

  }

  .activity-label {
    font-size: 18px;
    padding: 15px 0;
    border-radius: 6px;
    width:95vw;
    margin: 15px 0 0 0;
    padding:15px 0;
    max-width: none;
    min-width: auto;
  }

  .company-info-card {
    flex-direction: column;
    margin-top: 50px;
    padding: 30px 0;
    gap: 50px;
  }

  .company-info-right {
    flex-direction: column;
    width: 80vw;
    min-width: 350px;
    margin: 0 auto;
    gap:10px;
  }
  .company-logo {
    width: 80%;
  }
  .company-address {
    font-size: 16px;
  }
  .company-contact-btn {
    font-size: 15px;
    padding: 15px 0;
    border-radius: 6px;
  }
}