/* 背景 */
.background {
    background-image: url('/wp-content/themes/original/images/company/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
}


/* 中盤の背景画像セクション */
.background-section {
    position: relative;  /* slick矢印のため必須 */
    background-image: url('/wp-content/themes/original/images/company/c-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.domestic_product-title {
    color: #000;
    font-size: 35px;
    margin-right: 800px;
    margin-bottom: 50px;
    border-bottom: 0.1em solid #000;
    display: inline-block;
    line-height: 1.2;
}

.card-allarea{
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
}

/* 上段 2列 */
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* 下段 3列 */
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.card img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.card h3 {
  background: #5A57A9;
  padding: 10px;
  border-radius: 20px;
  margin: 10px 50px 5px 50px;
  text-align: center;
  color: #fff;
}

.card p {
  font-weight: bold;
  color: #555;
  text-align: left;
  margin-top: auto; /* 文章を下寄せして行内揃え */
}

.three-columns-text{
font-weight: bold;
  color: #555;

}


/* スマホ用 */
@media screen and (max-width: 768px) {
    .domestic_product-title {
      margin-right: 0px;
    }
    .card h3 {
      margin: 0px;
    }
    .two-columns {
      display: block;
    }
    .three-columns {
      display: block;
    }
    .card-allarea{
      width: 100%;
    }
}


@media screen and (max-width: 1065px) {
    .domestic_product-title {
      margin-right: 0px;
    }
}