@charset "UTF-8";

/* ==========================================================================
   下層ページ メインビジュアル（ヘッダー下バナー）※共通パーツ
   ========================================================================== */
.sub-mv {
  margin-top: 80px; /* ヘッダー高さ分 */
  width: 100%;
  height: 260px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.sub-mv-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

@media screen and (max-width: 768px) {
  .sub-mv {
    margin-top: 60px;
    height: 180px;
  }
}

/* ==========================================================================
   下層ページ ヘッダータイトル ＆ 区切り線
   ========================================================================== */
.sub-page-header {
  margin-bottom: 6rem;
}

.sub-page-header .header-line {
  width: 80px;
  height: 3px;
  background-color: #555555;
  margin: 2rem auto 0;
}

.section-divider {
  border: none;
  border-top: 2px solid #555555;
  width: 100%;
  margin: 8rem 0 0;
}

@media screen and (max-width: 768px) {
  .sub-page-header {
    margin-bottom: 4rem;
  }
  .section-divider {
    margin: 5rem 0 0;
  }
}

/* ==========================================================================
   WORKS 2カラム グリッド一覧
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 4rem;
}

.works-card {
  background-color: #ffffff;
}

.works-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* カード画像：角丸にして美しく配置 */
.works-card-thumb {
  margin-bottom: 1.8rem;
  border-radius: 12px; /* デザイン画像の少し丸めな角丸を再現 */
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.works-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.works-card-link:hover .works-card-thumb img {
  transform: scale(1.04);
}

/* カードタイトル：太字で力強く */
.works-card-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #222222;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

/* 診療科目・エリア情報 */
.works-card-client-info {
  font-size: 1.3rem;
  color: #666666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* 制作内容タグ（ピルバッジ） */
.works-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.tag-pill {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
}

/* 詳しく見るリンク（黒丸矢印アイコン） */
.works-card-btn {
  margin-top: auto;
}
.btn-works-more {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #222222;
  transition: opacity 0.3s ease;
}
.btn-works-more .arrow-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  background-color: #222222;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.works-card-link:hover .btn-works-more {
  opacity: 0.7;
}
.works-card-link:hover .btn-works-more .arrow-circle {
  transform: translateX(4px);
  background-color: #444444;
}

/* タブレット・スマートフォン向けレスポンシブ（1カラム化） */
@media screen and (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }
  .works-card-title {
    font-size: 2.0rem;
  }
  .works-card-thumb {
    border-radius: 8px;
    margin-bottom: 1.4rem;
  }
}

/* ==========================================================================
   下層ページ共通：導線アイコン一覧（フッター直上 6連ナビゲーション）
   ========================================================================== */
.sub-nav-icons {
  padding: 5rem 0 6rem;
  background-color: #ffffff;
}

.nav-icons-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  text-align: center;
}

.nav-icons-list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 6px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.nav-icons-list li a:hover {
  transform: translateY(-4px);
  background-color: #f9f9f9;
  opacity: 1;
}

.nav-icons-list .icon-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-bottom: 1.2rem;
}
.nav-icons-list .icon-img img {
  max-height: 40px;
  width: auto;
}

.nav-icons-list .icon-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.3;
}

@media screen and (max-width: 1024px) {
  .nav-icons-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .sub-nav-icons {
    padding: 3rem 0 5rem;
  }
  .nav-icons-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .nav-icons-list li a {
    padding: 1.2rem 0.5rem;
    border: 1px solid #eeeeee;
    background-color: #fafafa;
  }
  .nav-icons-list .icon-img {
    height: 40px;
    margin-bottom: 0.8rem;
  }
  .nav-icons-list .icon-img img {
    max-height: 32px;
  }
  .nav-icons-list .icon-text {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   CONTACT（お問い合わせエリア）
   ========================================================================== */
.contact {
  background-color: #00B7CE;
  color: #ffffff;
}

.contact-title {
  font-size: 5.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.contact-sub {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-text {
  font-size: 1.5rem;
  margin-bottom: 4rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 260px;
  padding: 1.6rem 2rem;
  background-color: #222222;
  color: #ffffff;
  font-size: 1.5rem;
  border-radius: 4px;
}
.btn-contact:hover {
  background-color: #444444;
}

@media screen and (max-width: 768px) {
  .contact-title { font-size: 3.6rem; }
  .contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .btn-contact {
    width: 100%;
    max-width: 320px;
  }
}