@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;
  }
}

/* ==========================================================================
   NEWS ページ全体 2カラムレイアウト（左：記事一覧 / 右：サイドバー）
   ========================================================================== */
.news-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5rem;
}

.news-main-col {
  flex: 1 1 auto;
  width: 70%;
  min-width: 0;
}

.news-sidebar {
  flex: 0 0 26%;
  width: 26%;
  min-width: 0;
}

/* ==========================================================================
   左側：記事アーカイブグリッド（2カラム並び）※トップページデザイン準拠
   ========================================================================== */
.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 3rem;
  margin-bottom: 5rem;
}

.news-card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

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

.news-thumb {
  background-color: #eaeaea;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-meta {
  padding: 1.5rem 1.8rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.news-meta time {
  font-size: 1.2rem;
  color: #888888;
}
.news-cat {
  font-size: 1.1rem;
  font-weight: 500;
  background-color: #eeeeee;
  padding: 0.2rem 0.8rem;
  border-radius: 2px;
  color: #555555;
}

.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.5rem 1.8rem 2rem;
  line-height: 1.6;
  color: #222222;
}

/* ==========================================================================
   左側下部：ページネーション（1, 2, 3 ... 4）
   ========================================================================== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pagination li {
  list-style: none;
}

.page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  font-size: 1.4rem;
  font-weight: 700;
  color: #333333;
  transition: all 0.3s ease;
}
.page-link:hover {
  background-color: #eeeeee;
  text-decoration: none;
}
.page-link.is-current {
  background-color: #222222;
  color: #ffffff;
  border-color: #222222;
}
.page-dots {
  font-size: 1.6rem;
  color: #666666;
  padding: 0 0.5rem;
}

/* ==========================================================================
   右側：サイドバー（CATEGORY ＆ NEW POST）
   ========================================================================== */
.sidebar-widget {
  margin-bottom: 5rem;
}

.widget-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #222222;
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #222222;
  letter-spacing: 0.05em;
}

/* 共通：黒い丸い矢印アイコン */
.arrow-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  background-color: #222222;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* カテゴリーリスト */
.category-list li {
  border-bottom: 1px solid #eeeeee;
}
.category-list a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  transition: opacity 0.3s ease;
}
.category-list a:hover {
  opacity: 0.7;
}
.category-list a:hover .arrow-circle {
  transform: translateX(4px);
  background-color: #555555;
}

/* 新着記事（NEW POST）4つテキストリスト */
.new-post-list li {
  border-bottom: 1px solid #eeeeee;
}
.new-post-list a {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem 0;
  color: #333333;
  transition: opacity 0.3s ease;
}
.new-post-list a:hover {
  opacity: 0.7;
}
.new-post-list a:hover .arrow-circle {
  transform: translateX(4px);
  background-color: #555555;
}
.new-post-list .post-info {
  flex-grow: 1;
}
.new-post-list .post-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.4rem;
  color: #222222;
}
.new-post-list time {
  font-size: 1.2rem;
  color: #888888;
  display: block;
}

/* ==========================================================================
   スマホ・タブレット向けレスポンシブ最適化（1カラムへの組み替え）
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .news-layout {
    gap: 3rem;
  }
  .news-main-col { width: 65%; }
  .news-sidebar { width: 31%; }
  .news-archive-grid { gap: 2.5rem 2rem; }
}

@media screen and (max-width: 768px) {
  /* スマホ時はメインとサイドバーを縦並びの1カラムにする */
  .news-layout {
    flex-direction: column;
    gap: 6rem;
  }
  .news-main-col,
  .news-sidebar {
    width: 100%;
    max-width: 100%;
  }
  /* 記事一覧をスマホに最適な1カラムへ切り替え */
  .news-archive-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }
  .news-title {
    font-size: 1.6rem;
  }
  .sidebar-widget {
    margin-bottom: 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;
  }
}