/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.1.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* =========================================================
   シングルページ
========================================================= */

/* 共通：カード本体 */
.single-post,
.post-type-archive-column.archive main.site-main,
.post-type-archive-news.archive main.site-main {
  background: #fff;
  width: min(100% - 32px, 1140px); /* ← 画面両端16pxずつの余白を常に確保 */
  margin: 5% auto;               /* 中央寄せ */
  padding: 5%;                   /* 内側余白 */
  border-radius: 20px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
.single-post, .post-type-archive-column.archive main.site-main, .post-type-archive-news.archive main.site-main {
    padding: 5% !important;
 }
}

/* はみ出し対策（中身がデカい要素） */
.single-post img,
.single-post table,
.single-post pre {
  max-width: 100%;
  height: auto;
  overflow-wrap: break-word;
}

/* ヘッダー */
.single-header {
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.single-header .single-title {
  margin: 0;
  color: #111;
}

/* 投稿メタ */
.post-meta {
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
}
.post-meta .post-date,
.post-meta .post-cat {
  font-weight: 500;
}

/* 本文 */
.single-content {
  margin-bottom: 50px;
}
.single-content p {
  margin-bottom: 20px;
}

/* =========================================================
   ページャー（シングル記事）
========================================================= */

.single-pager {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.single-pager a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-decoration: none;
  background: #fafafa;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.single-pager a:hover {
  background: #666;
  color: #fff;
}
.single-pager .prev-post {
  text-align: left;
}
.single-pager .next-post {
  text-align: right;
}
@media (max-width: 767px) {
  .single-pager {
    flex-direction: column;
  }
  .single-pager a {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================================
   アーカイブ共通（news / column）
========================================================= */

main.site-main {
  max-width: 100% !important;
  padding: 5% 0 !important;
}

/* ページヘッダー */
.page-header {
  text-align: center;
  margin: 0 auto 32px;
  padding: 0 16px;
  max-width: 900px;
}
.page-header .entry-title {
  font-size: 2em;
  font-weight: 600;
  color: #222;
  margin: 0;
  line-height: 1.4;
}

/* =========================================================
   アーカイブグリッド
========================================================= */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

.archive-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.archive-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* --- サムネイル／No Image --- */
.card-thumb img,
.no-thumb {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background: #f4f4f4;
}
.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  color: #999;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #eee;
  border-radius: 6px 6px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- 本文 --- */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.card-title {
  margin: 0;
  line-height: 1.5;
}
.card-title a {
  text-decoration: none;
  color: #222;
  transition: color 0.2s ease;
}
.card-title a:hover {
  color: #0073aa;
}
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9em;
  color: #666;
}
.card-excerpt {
  flex: 1 1 auto;
  color: #555;
}
.card-more a {
  text-decoration: none;
  color: #0073aa;
  font-weight: 600;
}

/* =========================================================
   ページネーション（news / column共通）
========================================================= */

.archive-pagination,
.news-pagination,
.unified-pagination {
  margin: 40px auto;
  text-align: center;
}
.archive-pagination ul,
.news-pagination ul,
.unified-pagination ul {
  display: inline-flex;
  list-style: none;
  gap: 6px;
  padding: 0;
}
.archive-pagination a,
.archive-pagination span,
.news-pagination a,
.news-pagination span,
.unified-pagination a,
.unified-pagination span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;

　background:#fff;
}
.archive-pagination a:hover,
.news-pagination a:hover,
.unified-pagination a:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
.archive-pagination .current,
.news-pagination .current,
.unified-pagination .current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* =========================================================
   コラムリンクボタン
========================================================= */

.column-archive-link {
  text-align: right;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 35px;
}
.column-archive-link a {
  text-decoration: none;
  background-color: #91C3E0;
  border-radius: 30px;
  display: inline-block;
  padding: 12px 24px;
  color: #fff;
  transition: all 0.3s;
}
.column-archive-link a:hover {
  text-decoration: none;
}

/* =========================================================
   ニュースアーカイブ
========================================================= */

.news-list ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
}
.news-item {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}
.news-item:last-child {
  border-bottom: none;
}
.news-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.news-cat a,
.news-title a,
.news-more a {
  text-decoration: none;
}

/* =========================================================
   トップページ用ニュースリスト
========================================================= */

.top-news-list .news-item {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.top-news-list .news-item:last-child {
  border-bottom: none;
}
.top-news-list .news-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.top-news-list .news-title a {
  text-decoration: none;
}
.news-archive-link {
  text-align: right;
  margin-top: 10px;
}
.news-archive-link a {
  background-color: #91C3E0;
  border-radius: 30px;
  display: inline-block;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}
.news-archive-link a:hover {
  text-decoration: none;
}

/* =========================================================
   スタッフ一覧（固定表示・リンクなし）
========================================================= */

.archive-grid.top-staff-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.archive-grid.top-staff-cards .archive-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
  box-shadow: none;
  transition: none;
}
.archive-grid.top-staff-cards .archive-card:hover {
  box-shadow: none !important;
  transform: none !important;
}
.archive-grid.top-staff-cards .card-thumb img,
.archive-grid.top-staff-cards .no-thumb {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #f4f4f4;
}
.archive-grid.top-staff-cards .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.archive-grid.top-staff-cards .card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}
.archive-grid.top-staff-cards .card-meta {
  font-size: 0.9rem;
  color: #777;
}
.archive-grid.top-staff-cards .card-excerpt {
  font-size: 0.95rem;
  color: #555;
}

/* =========================================================
   レスポンシブ
========================================================= */

@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
  }
  .card-thumb img,
  .no-thumb {
    height: 200px;
  }
}
@media (max-width: 767px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .card-thumb img,
  .no-thumb {
    height: 180px;
  }
  .page-header .entry-title {
    font-size: 20px;
  }
  .archive-grid.top-staff-cards {
    grid-template-columns: 1fr;
  }
  .archive-grid.top-staff-cards .card-thumb img,
  .archive-grid.top-staff-cards .no-thumb {
    height: 200px;
  }
}
/* =========================================================
   スタッフのカード
========================================================= */
 .archive-grid.top-staff-cards .card-thumb {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 6px;
}

.archive-grid.top-staff-cards .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-grid.top-staff-cards .no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: #999;
  font-weight: 600;
  border: 1px solid #eee;
  text-transform: uppercase;
  border-radius: 6px;
}

