/* 自社プロダクト（Pegasus Housing / Hominクラウド）のリンク
   style.min.css のビルドを経由しない追加スタイル。header.php で読み込む */

/* ヘッダーのドロップダウン（既存の #headerservice 等と同じ見た目） */
#headerproduct {
  display: none;
  position: absolute;
  background: #fff;
  top: 24px;
  left: 0;
  min-width: 170px;
  border: 1px solid #f5f5f5;
}

#headerproduct li {
  list-style: none;
  padding: 5px 0 5px 5px;
}

#headerproduct li a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

#headerproducttrigger:hover #headerproduct {
  display: block;
}

/* トップページ PRODUCT 枠 */
.p-front__product {
  padding: 60px 0 30px;
}

.p-front__product__head__grid h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.75;
  color: #333;
}

.p-front__product__head__grid p {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.75;
}

.p-front__product__contents {
  margin-top: 30px;
}

.p-front__product__item {
  padding: 15px;
}

/* カードはサイト既存のトンマナ（白地・細い罫線・角丸なし・チャコールのボタン）に合わせる。
   色を持つのは製品ロゴだけ */
.c-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #DDDDDD;
  text-decoration: none;
  color: #333;
  transition: border-color 0.3s;
}

.c-product:hover {
  text-decoration: none;
  border-color: #222429;
}

.c-product__head,
.c-product__logo,
.c-product__label,
.c-product__catch,
.c-product__text {
  display: block;
}

.c-product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 36px 40px 40px;
}

.c-product__head {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #999;
}

.c-product__logo {
  margin-top: 18px;
}

.c-product__logo img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 100%;
}

.c-product__logo img.c-product__logo--homin {
  height: 50px;
  margin: 2px 0;
}

.c-product__label {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #666;
}

.c-product__catch {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #333;
}

.c-product__text {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: #333;
  margin-bottom: 28px;
}

/* サイトの c-inf-button と同じ見た目 */
.c-product__more {
  position: relative;
  display: block;
  margin-top: auto;
  padding: 16px 20px;
  background: #222429;
  border: 2px solid #222429;
  text-align: center;
  transition: 0.3s;
}

.c-product__more span {
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
}

.c-product__more::after {
  content: '→';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1.5;
  color: #fff;
}

.c-product:hover .c-product__more {
  background: #fff;
}

.c-product:hover .c-product__more span,
.c-product:hover .c-product__more::after {
  color: #222429;
}

@media (min-width: 769px) {
  .p-front__product__head__grid {
    width: 87%;
    margin: 0 auto;
  }

  .p-front__product__contents {
    display: flex;
    flex-wrap: wrap;
    width: calc(87% + 30px);
    margin-left: auto;
    margin-right: auto;
  }

  .p-front__product__item {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .p-front__product {
    padding: 60px 0 0;
  }

  .p-front__product__head__grid {
    padding: 0 30px;
  }

  .p-front__product__item {
    padding: 10px 20px;
  }

  .c-product__body {
    padding: 24px 22px 26px;
  }

  .c-product__logo img {
    height: 44px;
  }

  .c-product__logo img.c-product__logo--homin {
    height: 40px;
    margin: 2px 0;
  }

  .c-product__catch {
    font-size: 18px;
  }
}

/* メニュー項目が1つ増えた分、中間幅のPCで折り返さないよう間隔を詰める */
@media (min-width: 769px) and (max-width: 1199px) {
  .l-header {
    padding-left: 40px;
  }

  .l-header__menu__ul__li {
    margin-left: 12px;
  }
}
