@charset "utf-8";

/* グリッドで画像と文章を配置 */
/* グリッドの全体設定 */
.container {
  display: grid;
  /* 列を5等分 */
  grid-template-columns:
    repeat(5, 1fr);
  /* 行を12等分 */
  grid-template-rows:
    repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 20px;
  justify-content: center;
}

/* グリッド内各要素の設定 */
/* Topページ・メインコピー */
.grid_item_1 {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  padding: 35px;
  align-items: last baseline;
  vertical-align: bottom;
  text-align: center;
  background-image: url('../img/leaf_3.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 8% auto;
  margin: 30px;
}

.grid_item_1 h1 {
  margin-top: 65%;
}

.grid_item_1 span {
  display: inline-block;
}

.grid_item_1 img {
  max-width: 25%;
  height: auto;
}

.fade_up {
  animation-name: fadeUpAnime;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid_item_1 h3 {
  margin-top: 30px;
}

/* メイン画像 */
.grid_item_2 {
  grid-column: 3 / 6;
  grid-row: 1 / 2;
  background-image: url('../img/leaf_3_1.png'), url('../img/leaf_5.png'), url('../img/leaf_9.png');
  background-repeat: no-repeat;
  background-position: right top, left top, left bottom;
  background-size: 6% auto;
  margin-left: 10%;
  margin-top: 5%;
  justify-content: center;
}

.grid_item_2 h3 {
  text-align: right;
  margin-right: 8%;
  text-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3);
}

.grid_item_2 img {
  width: 100%;
  object-fit: cover;
  object-position: 0 100%;
}

.photos_instagram {
  text-align: right;
  margin-right: 8%;
  margin-top: 5%;
  font-size: smaller;
}

/* 補足説明するテキストのスタイル */
.tooltip {
  position: relative;
  cursor: pointer;
}

.description_top {
  /* ツールチップのスタイル */
  width: 200px;
  /* 横幅 */
  position: absolute;
  left: 50%;
  bottom: 80%;
  /* Y軸の位置 */
  transform: translateX(-50%);
  margin-bottom: 15px;
  /* テキストとの距離 */
  padding: 8px;
  border-radius: 10px;
  /* 角の丸み */
  background-color: #f7b439;
  font-size: 0.7em;
  color: #fff;
  text-align: center;
  visibility: hidden;
  /* ツールチップを非表示に */
  opacity: 0;
  /* 不透明度を0％に */
  z-index: 1;
  transition: 1s all;
  /* マウスオーバー時のアニメーション速度 */
  text-shadow: none;
}

.description_top::before {
  /* 吹き出しの「しっぽ」のスタイル */
  content: "";
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top: 12px solid #f7b439;
  /* 最後の値は「ツールチップの背景色」と合わせる */
  position: absolute;
  top: 99%;
  left: 50%;
  transform: translateX(-50%);
}

/* マウスオーバー時のスタイル */
.tooltip:hover .description_top {
  bottom: 100%;
  /* Y軸の位置 */
  visibility: visible;
  /* ツールチップを表示 */
  opacity: 1;
  /* 不透明度を100％に */
}


/* 清掃事業画像 */
.grid_item_3 {
  grid-column: 1 / 4;
  grid-row: 2 / 3;
  margin-left: 20px;
  background-image: url('../img/leaf_1.png'), url('../img/tool_5.png');
  background-repeat: no-repeat, no-repeat;
  background-position: left bottom, left center;
  background-size: 8% auto, 10% auto;
  text-align: center;
}

.grid_item_3 img {
  margin-left: 20%;
  max-width: 85%;
  object-fit: contain;
}

/* 新着情報メッセージ欄 */
.grid_item_4 {
  grid-column: 4 / 6;
  grid-row: 2 / 3;
  background-image: url('../img/tool_9.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 10% auto;
  margin: 20px;
}

.sub_container h2 {
  text-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3);
}

/* sub_container内・新着情報欄のデザイン設定 */
.news-list ul {
  display: flex;
  flex-direction: column;
  margin: 20px 30px;
  padding-left: 20px;
  font-size: 14px;
}

.news-list li {
  display: flex;
  justify-content: flex-start;
  padding-top: 10px;
}

.news-list dt {
  margin-left: 25px;
}

.news-list dd {
  margin-left: 80px;
  line-height: 20px;
}

.insert_mini {
  display: block;
  max-width: 10%;
  height: auto;
  margin-left: 30px;
}

.insert_mini_2 {
  display: block;
  max-width: 15%;
  height: auto;
  margin: 10px;
}

/* モバイル用の画像を非表示 */
.mobile_img_1 {
  display: none;
}

/* 事業内容の案内文章欄 */
.grid_item_5 {
  grid-column: 1 / 4;
  grid-row: 3 / 4;
  justify-content: center;
  background-image: url('../img/leaf_10.png'), url('../img/tool_6.png');
  background-size: 8% auto;
  background-position: right top, right bottom;
  background-repeat: no-repeat;
  margin-left: 10%;
}

.grid_item_5 h2 {
  margin: 40px 50px;
  text-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3);
}

.grid_item_5 h3 {
  margin: 60px;
}

.grid_item_5 h5 {
  margin: 10px;
}

.marker {
  background: linear-gradient(transparent 60%, #f7b439 40%);
  display: inline;
}

.grid_item_5 span {
  display: inline-block;
}

.grid_item_5 li {
  text-align: left;
  margin-left: 70px;
  margin-top: 15px;
}

/* 剪定事業画像 */
.grid_item_6 {
  grid-column: 4 / 6;
  grid-row: 3 / 4;
  background-image: url('../img/leaf_5.png'), url('../img/leaf_7.png');
  background-size: 8% auto, 8% auto;
  background-position: right top, right center;
  background-repeat: no-repeat;
  margin: 10px;
  text-align: center;
}

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

/* IT事業画像 */
.grid_item_7 {
  grid-column: 1 / 3;
  grid-row: 4 / 5;
  background-image: url('../img/leaf_9.png'), url('../img/leaf_4.png');
  background-repeat: no-repeat, no-repeat;
  background-position: left top, left bottom;
  background-size: 8% auto, 10% auto;
  margin: 20px;
  text-align: center;
}

.grid_item_7 img {
  max-width: 70%;
  height: auto;
  object-fit: fill;
}

/* コラム文章欄 */
.grid_item_8 {
  grid-column: 3 / 6;
  grid-row: 4 / 5;
  text-align: left;
  padding-top: 30px;
  background-image: url('../img/leaf_5.png'), url('../img/leaf_3_1.png');
  background-size: 8% auto;
  background-position: right top, right bottom;
  background-repeat: no-repeat;
  margin: 20px;
}

.sub_container_2 {
  padding-top: 10px;
}

.sub_container_2 h3 {
  text-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

/* 【モバイルサイト用CSSを記述】 */
@media (max-width: 768px) {
  .main {
    background-image: none;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 30px 20px;
  }

  .grid_item_1 {
    background-image: url('../img/leaf_3.png'), url('../img/leaf_4.png');
    background-repeat: no-repeat;
    background-position: left top, right top;
    background-size: 8% auto;
    margin: 20px;
  }

  .grid_item_1 h1 {
    position: relative;
    text-align: center;
    margin-top: 10%;
  }

  .grid_item_2 img {
    width: 100%;
    max-width: 375px;
    height: auto;
    object-fit: cover;
    object-position: 0 100%;
  }

  .text_mobile::after {
    display: block;
    content: "今年も咲き始めました、モッコウバラ。トゲがないので誘引しやすく、小さな花を沢山咲かせてくれる品種です。";
    background-color: #f7b439;
    border-radius: 5px;
    text-align: justify;
    font-size: small;
    opacity: 0.6;
    margin: 10px;
    padding: 10px;
  }

  .grid_item_3 {
    display: none;
  }

  /* 新着情報（News欄） */
  .grid_item_4 {
    margin-top: 30px;
    background-image: none;
  }

  /* スマホ表示用画像 */
  .mobile_img_1 {
    display: block;
    width: auto;
    /* max-width: 250px; */
    height: auto;
  }

  .mobile_img_1 img {
    width: 100%;
    object-fit: cover;
    /* object-position: 0 100%; */
  }

  /* 事業内容の案内文章欄 */
  .grid_item_5 {
    margin-left: 5%;
    margin-top: 30px;
  }

  .grid_item_5 h2 {
    margin: 20px 20px;
  }

  .grid_item_5 h3 {
    margin: 20%;
  }

  .grid_item_5 h5 {
    margin: 15%;
  }

  .grid_item_5 li {
    text-align: left;
    margin-left: 5%;
    margin-top: 15px;
  }

  .grid_item_6 {
    display: none;
  }

  .grid_item_8 {
    text-align: center;
  }

}