/* 個人・法人ページ共通スタイル */

/* スマートフォン用改行 */
.sp-br {
  display: none;
}

@media (max-width: 640px) {
  .sp-br {
    display: block;
  }
}

/* 基本コンテナ */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローセクション */
.hero-section-wrapper {
  background-color: #f0fdff;
}

.hero-section {
  max-width: 780px;
  margin: auto;
  position: relative;
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 180px;
    background-position: center 30%;
  }
}

/* ページ紹介セクション */
.page-intro {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: #e6f7fb;
  position: relative;
}

.page-intro::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 20px solid #e6f7fb;
}

.page-intro h3 {
  color: rgba(0, 119, 139, 1);
  font-size: 26px;
  margin-bottom: 20px;
}

.page-intro p {
  font-size: 16px;
  line-height: 1.8;
}

/* スマホ表示のためのメディアクエリ */
@media (max-width: 767px) {
  .page-intro {
    padding: 30px 20px;
  }

  .page-intro h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .page-intro p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* コンタクトセクション */
.contact-section {
  background: url("../images/contact_bg3.jpg") center center;
  background-size: cover;
  padding: 60px 0;
  color: #333;
  width: 100%;
  position: relative;
}

.hojin-contact {
  background: url("../images/hojin_contact_bg.jpg") center center;
  background-size: cover;
}

.contact-container {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-title {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: bold;
  color: #333;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 15px;
}

.contact-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(0, 119, 139, 1);
}

.contact-description {
  font-size: 14px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #333;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-intro {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
}

.contact-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-tel {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #0089a1;
  padding: 15px 40px 15px 20px;
  border-radius: 60px;
  font-size: 36px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.contact-tel:hover {
  transform: scale(1.05);
  color: #333;
}

.phone-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0089a1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.phone-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.contact-hours {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .contact-container {
    padding: 40px 20px;
    margin: 10px;
  }
  .contact-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .contact-tel {
    font-size: 22px;
  }
}

/* 共通の背景装飾 */
.background-decoration {
  position: absolute;
  height: auto;
  top: 50px;
  left: 60%;
  transform: translateX(-50%);
  opacity: 0.5;
  z-index: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .background-decoration {
    left: 80%;
  }
}

.background-decoration svg {
  width: 100vw;
  min-width: 1000px;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 1/1;
}

/* 製品セクション共通の基本スタイル */
.products-section {
  position: relative;
  overflow: hidden;
}

.products-content {
  position: relative;
  z-index: 1;
}

/* 製品タイトル・説明の共通スタイル */
.products-title, .products-head-title {
  color: rgba(0, 119, 139, 1);
  font-family: Inter, sans-serif;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
  margin: 50px 0 0 0;
}

.products-description, .products-head-description {
  color: #000;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 0.8px;
  margin: 30px auto 0 auto;
  max-width: 500px;
  padding: 0 20px;
}

@media (max-width: 991px) {
  .products-title, .products-head-title {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .products-description, .products-head-description {
    font-size: 15px;
    letter-spacing: 0.7px;
  }
}

@media (max-width: 640px) {
  .products-title, .products-head-title {
    font-size: 20px;
    letter-spacing: 1.8px;
    padding: 0 20px;
  }
  .products-description, .products-head-description {
    font-size: 14px;
    letter-spacing: 0.6px;
  }
}

/* 製品カード共通スタイル */
.product-card {
  position: relative;
}

.product-image {
  width: 100%;
  object-fit: cover;
}

.product-content {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 16px 26px;
}

@media (max-width: 640px) {
  .product-content {
    padding: 16px 20px;
    bottom: 0;
  }
}

.product-title {
  color: rgba(0, 119, 139, 1);
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 3.2px;
  margin: 0 0 22px 0;
}

.product-description {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;
  margin: 0;
}

@media (max-width: 991px) {
  .product-title {
    font-size: 28px;
    letter-spacing: 2.8px;
  }
  .product-description {
    font-size: 18px;
    letter-spacing: 0.9px;
  }
}

@media (max-width: 640px) {
  .product-title {
    font-size: 24px;
    letter-spacing: 2.4px;
  }
  .product-description {
    font-size: 16px;
    letter-spacing: 0.8px;
  }
}