* {
  color: #323c44;
  font-weight: normal;
  margin: 0;
  padding: 0;
  text-decoration: none;
  /* list-style: none; */
  box-sizing: border-box;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
}

a {
  color: #323c44;
}
p {
  letter-spacing: 0.05em;
}
.title {
  text-align: center;
}

.title1 {
  display: inline-block;
  text-align: center;
  margin: 0 auto;

  width: 500px;
  height: 350px;

  padding-top: 150px;
}

.title1 p {
  margin-top: 30px;
  font-size: 16px;
}

h3 {
  font-size: 20px;
  font-weight: normal;
}

.bg {
  width: 160px;
  height: 230px;
  background-color: #bbe2f1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.jal .bg {
  background-image: url(../images/company/jal.jpeg);
}
.boeing .bg {
  background-image: url(../images/company/-.JPG);
}
.airbus .bg {
  background-image: url(../images/company/airbus.JPG);
}
.mhi .bg {
  background-image: url(../images/company/mhi.jpg);
}
.ist .bg {
  background-image: url(../images/company/ist.jpeg);
}
.jaxaplane .bg {
  background-image: url(../images/company/plane.jpg);
}
.jaxahayabusa .bg {
  background-image: url(../images/company/hayabusa.jpeg);
}
.ana .bg {
  background-image: url(../images/company/B737_ANA.jpg);
}
.jaxarocket .bg {
  background-image: url(../images/company/rocket.jpg);
}
.astroscale .bg {
  background-image: url(../images/company/astroscale.jpg);
}
.ihi .bg {
  background-image: url(../images/company/ihi.jpeg);
}
.subaru .bg {
  background-image: url(../images/company/subaru.jpg);
}

/* Company child page card layout */
.naiyou {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  border: 2px solid #88b2d1;
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  display: block;
}

/* Company list page - override card styles */
.naiyou.company-list {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.naiyou img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 10px;
  display: block;
}

.naiyou p {
  font-size: 18px;
  line-height: 30px;
  margin: 15px 0;
  text-indent: 1em;
}

/* Company cards list layout */
.company_cards {
  width: min(100%, 1000px);
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px;
}

.company-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 2px solid #88b2d1;
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.company-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.company-card h3 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: #323c44;
  margin: 0;
  line-height: 1.4;
}

/* 上段 */
.content_grid {
  width: 1050px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
  margin: 0 auto;
}

.content_grid_center {
  justify-content: center;
  column-gap: 70px;
}

.company_eight {
  width: 210px;
  height: 290px;
  position: relative;
}

.company_eight h3 {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  line-height: 1.25;
}

.arrow {
  color: #4a69a4;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 130px;
  font-size: 20px;
  width: 50px;
  height: 50px;
  border: solid 1px #4a69a4;
  border-radius: 50%;

  position: absolute;

  left: 140px;
  bottom: 0;

  transition: 0.4s;
}
.arrow:hover {
  color: #fff;
  background-color: #4a69a4;
  transition: 0.4s;
}

/* footer styles are defined in common.css */
.logos {
  margin-left: 80px;
}
.logo {
  display: inline-block;
  background-image: url(../images/soraichi.jpg);
  height: 140px;

  width: 150px;
  background-size: cover;
  background-position: center;
}
.texts {
  display: flex;
}
.kikaku {
  width: 180px;
}

.sns {
  display: flex;
  justify-content: space-around;
  margin-top: 50px;
}
.texts a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.texts a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform 0.3s;
}
.texts a:hover::after {
  transform: scale(1, 1);
}

@media screen and (max-width: 480px) {
  h2,
  h3,
  h4 {
    font-size: 18px;
  }
  h2 {
    width: 90vw;
    margin: 0 auto;
  }
  h3 {
    text-align: center;
  }

  .title1 {
    width: 200px;
    padding-top: 80px;
    height: 150px;
  }
  .title1 p {
    font-size: 8px;
    width: initial;
    margin-top: 10px;
  }
  .title2 {
    width: 90vw;
    padding-top: 100px;
  }

  .title3 {
    width: 85vw;
  }

  .title_1 {
    width: 80px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .title_2 {
    width: 56px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .title_3 {
    width: 14px;
    height: 16px;
    background-repeat: no-repeat;
  }

  p {
    font-size: 16px;
    line-height: 25px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .naiyou {
    max-width: min(88vw, 100%);
    padding: 20px;
    margin: 20px auto;
  }

  .naiyou.company-list {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .company_cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
    margin: 20px auto;
  }

  .company-card {
    min-height: 140px;
    padding: 16px;
  }

  .company-card h3 {
    font-size: 20px;
  }

  .naiyou img {
    max-width: 100%;
    max-height: 300px;
    margin: 15px 0;
  }

  .naiyou p {
    font-size: 16px;
    line-height: 1.8;
    margin: 12px 0;
  }

  .content_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    width: min(92vw, 420px);
    margin: 0 auto;
    border-bottom: none;
  }

  .content_grid_center {
    column-gap: 12px;
  }
  .content_grid_top {
    margin: 0 auto;
  }

  .content_grid_bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    width: min(92vw, 420px);
    margin: 0 auto;
    border-bottom: none;
  }

  .company_eight {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
  }

  .company_eight h3 {
    min-height: 44px;
    font-size: 16px;
    text-align: center;
  }

  .bg {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 160 / 230;
    height: auto;
    margin: 0 auto;
    background-size: cover;
  }
  .arrow {
    position: static;
    margin: 10px auto 0;
    left: auto;
    bottom: auto;
    transform: none;
  }
  .naiyou {
    margin-top: 20px;
  }

  /* header */
}
