@charset "utf-8";

/* mainエリアはflexレイアウト */

.division_flex {
  display: flex;
  flex-direction: column;
}

/* グリッドの全体設定 */
.flex_1_grid_clean {
  display: grid;
  /* 列を4等分 */
  grid-template-columns:
    repeat(5, 1fr);
  /* 行を5等分 */
  grid-template-rows:
    repeat(5, 1fr);
  column-gap: 10px;
  row-gap: 10px;
  justify-content: center;
  padding: 15px 15px;
  margin-left: 10%;
}

/* イラスト列 */
.grid_A {
  grid-column: 1 / 6;
  grid-row: 1 / 2;
  margin-bottom: 15%;
}

/* イラスト列の横並び設定 */
.icon_lines {
  display: flex;
  justify-content: space-evenly;
  max-width: 75%;
  margin-bottom: 15%;
}

.icon_lines img {
  width: 50px;
  max-width: 100%;
  height: auto;
}

/* 事業紹介タイトルと文章エリア */
.grid_B {
  grid-column: 1 / 4;
  grid-row: 2 / 4;
  padding-top: 80px;
  padding-left: 50px;
}

.mini_icon {
  max-width: 10%;
  height: auto;
  transform: scaleX(-1);
  margin-right: 20px;
}

.grid_B h4,
h5 {
  padding: 20px 20px;
}

/* 文字列の自動改行 */
.inline span {
  display: inline-block;
}

/* メイン画像エリア */
.grid_C {
  grid-column: 4 / 6;
  grid-row: 2 / 4;
  /* 画像サイズの調整（モバイル用切り取り設定）などを追加する */
  align-self: center;
}

.main_img {
  max-width: 100%;
  height: auto;
  object-fit: fill;
}

.grid_D {
  grid-column: 1 / 2;
  grid-row: 4 / 6;
}

.grid_E {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
}

.grid_E_2 {
  grid-column: 2 / 3;
  grid-row: 5 / 6;
}

.mini2_img {
  max-width: 100%;
  height: auto;
  object-fit: fill;
}

.grid_F {
  grid-column: 3 / 5;
  grid-row: 4 / 6;
}

.mini_img {
  max-width: 80%;
  height: auto;
  object-fit: fill;
}

.grid_G {
  grid-column: 5 / 6;
  grid-row: 4 / 6;
  background-image: url(../img/tool_1.png);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 50% auto;
}

/* 園芸事業エリア */
/* グリッドの全体設定 */
.flex_2_grid_green {
  display: grid;
  /* 列を4等分 */
  grid-template-columns:
    repeat(4, 1fr);
  /* 行を5等分 */
  grid-template-rows:
    repeat(5, 1fr);
  column-gap: 10px;
  row-gap: 30px;
  justify-content: center;
  margin-top: 50px;
  margin-left: 10%;
}

/* イラスト列 */
.grid2_A {
  grid-column: 1 / 5;
  grid-row: 1 / 2;
  margin-top: 15%;
  margin-bottom: 10%;
}

/* イラスト列の横並び設定 */
.icon_lines {
  display: flex;
  justify-content: space-evenly;
  max-width: 85%;
  margin-bottom: 15%;
}

.icon_lines img {
  width: 100%;
  max-width: 50px;
  height: auto;
}

/* 画像の角度調整 */
.leaf_rotate {
  transform: rotate(-45deg);
}

.scissors_rotate {
  transform: rotate(45deg);
}

.leaf_rotate2 {
  transform: rotate(45deg);
}

.scissors_rotate2 {
  transform: rotate(45deg)
}

/* メイン画像エリア */
.grid2_B {
  grid-column: 1 / 3;
  grid-row: 2 / 5;
  padding: 10px 10px;
  /* 画像サイズの調整（モバイル用切り取り設定）などを追加する */
  align-self: center;
}


.grid2_B img {
  max-width: 85%;
  height: auto;
}

/* 事業紹介タイトルと文章エリア */
.grid2_C {
  grid-column: 3 / 5;
  grid-row: 2 / 4;
}

.grid2_C h4,
h5 {
  padding: 20px 20px;
}

.mini_icon2 {
  display: inline-block;
  max-width: 15%;
  height: auto;
  transform: scaleX(-1);
  margin-right: 20px;
}

.title {
  display: inline-block;
  /* vertical-align: top; */
}

/* 隙間エリア */
.grid2_D {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}

.mini_img_2_D {
  max-width: 85%;
  height: auto;
  object-fit: fill;
  transform: scaleX(-1);
}

/* ミニ画像エリア */
.grid2_E {
  grid-column: 4 / 5;
  grid-row: 4 / 5;
}

.grid2_E img {
  transform: scaleY(-1);
}

/* 仕切りイラストエリア */
.grid2_F {
  grid-column: 1 / 5;
  grid-row: 5 / 6;
  margin-top: 15%;
  margin-bottom: 10%;
}

/* イラスト列の横並び設定 */
.icon_lines {
  display: flex;
  justify-content: space-evenly;
  max-width: 85%;
  margin-bottom: 15%;
}

/* IT事業エリア */
.flex_3_it {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.img_it {
  max-width: 50%;
  height: auto;
  object-fit: contain;
}

.explain {
  margin-left: 10%;
}

.inline span {
  display: inline-block;
}

.underline {
  text-decoration: underline solid orange 2px;
}


/* 【モバイルサイト用CSSを記述】 */
@media (max-width: 768px) {
  .division_flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    flex-basis: auto;
    /* flexアイテムの幅を自動で調整 */
    margin-bottom: 30px;
  }

  .flex_1_grid_clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* 
  .grid_A,
  .grid2_A,
  .grid2_F {
    display: block;
    width: 100%;
    height: auto;
  } */

  /* イラスト列の横並び設定 */
  .icon_lines {
    display: flex;
    justify-content: space-evenly;
    max-width: 75%;
    margin-bottom: 15%;
  }

  .icon_lines img {
    max-width: 100%;
    height: auto;
    object-fit: fill;
    margin-left: 20px;
  }

  .grid_D,
  .grid_E_2,
  .grid_F {
    display: none;
  }

  .flex_2_grid_green {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .grid2_B,
  .grid2_E {
    display: none;
  }

  .flex_3_it {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}