@charset "UTF-8";
/*
Theme Name: 長生広域様サイト
Description: 長生広域様サイト用子テーマ
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/
/* ============================================
   全体背景
   ============================================ */
/* 全体背景テクスチャー */
body {
  background-image: url(/wp-content/uploads/2020/03/p0113_s.jpg);
}

/* ============================================
   ヘッダー
   ============================================ */
/* ヘッダーのパディング調整 */
header .inside-header {
  padding-block: 0;
}

/* 投稿ヘッダー：アイキャッチを表示しない */
.single .featured-image.page-header-image-single {
  display: none !important;
}

/* ============================================
   ナビゲーション
   ============================================ */
.main-navigation .main-nav ul li a {
  font-weight: 600;
}

/* ============================================
   見出しスタイル（h1〜h5 一元管理 / main内のみ適用）
   ============================================ */
/* ----- h1 -----（レスポンシブ: 小画面で小さく・大画面で2em） */
main h1 {
  background: #595cff;
  padding: 0.5rem;
  font-size: clamp(1.125rem, 4vw + 1rem, 2em);
  font-weight: 700;
  color: #fff;
  border-radius: 25px 0px 0px 25px;
}

/* テーマの .entry-title a { color: var(--contrast); } を main 内で無効化 */
main .entry-title a {
  color: inherit !important;
}

main h1::before {
  content: "●";
  color: white;
  margin-right: 8px;
}

/* モバイル時は h1 をもう一回り小さく */
@media (max-width: 768px) {
  main h1,
  .category-nyusatu .page-title.entry-title {
    font-size: clamp(0.9375rem, 3.5vw + 0.75rem, 1.35em);
  }
}
/* ----- h2 -----（レスポンシブ） */
main h2 {
  position: relative;
  padding: 0.6rem !important;
  font-size: clamp(1.05rem, 2.5vw + 0.9rem, 1.4em);
  font-weight: 600;
  color: #494949;
  line-height: 1.5;
  margin-block: 2rem 1rem;
  margin-bottom: 1rem;
  border-left: solid 8px #7db4e6;
  background: linear-gradient(transparent 94%, #7db4e6 70%);
}

/* Elementor の .elementor-heading-title { line-height:1; margin:0; padding:0; } を上書き */
.elementor-heading-title {
  line-height: 1.5 !important;
  margin-bottom: 1rem !important;
}

/* ----- h3 -----（レスポンシブ） */
main h3 {
  font-size: clamp(1rem, 1.5vw + 0.85rem, 1.2em);
  font-weight: 600;
  color: #494949;
  margin-block: 1.3rem 0.8rem;
  padding: 0.3rem 0.5rem;
  padding-left: 0.6rem !important;
  border-left: solid 5px #7db4e6;
}

/* ----- h4 -----（レスポンシブ） */
main h4 {
  font-size: clamp(0.95rem, 1vw + 0.85rem, 1.1em);
  font-weight: 600;
  color: #494949;
  margin-block: 1.2rem 0.6rem;
  padding: 0.2rem 0.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #7db4e6;
}

/* ----- h5 -----（レスポンシブ） */
main h5 {
  font-size: clamp(0.9rem, 0.5vw + 0.9rem, 1em);
  font-weight: 600;
  color: #595cff;
  margin-block: 1rem 0.5rem;
}

/* ============================================
   カテゴリーページ (nyusatu) のスタイル
   ============================================ */
/* h1.page-title に entry-title クラスを追加（レスポンシブ） */
.category-nyusatu .page-title.entry-title {
  clear: none;
  margin: 0 0 0.3em;
  font-size: clamp(1.125rem, 4vw + 1rem, 2rem);
  font-weight: bolder;
}

/* 投稿メタ（投稿者など）を非表示 */
.category-nyusatu .entry-meta {
  display: none;
}

/* アイキャッチ画像を非表示 */
.category-nyusatu .post-image {
  display: none;
}

/* ============================================
   投稿・コンテンツ
   ============================================ */
/* post-title, post-meta, post-excerpt のスタイル（レスポンシブ） */
.post-title {
  clear: none;
  margin: 0 0 0.3em;
  font-size: clamp(0.9375rem, 1vw + 0.8rem, 1rem);
  font-weight: 700;
  padding: 0;
  border-left: none;
  background: none;
}

.post-title::after,
.post-title::before {
  display: none;
}

.post-meta {
  margin-bottom: 0.7em;
  font-size: 0.8em;
  opacity: 0.6;
}

.post-excerpt p {
  margin: 1em 0;
}

.post-excerpt > :last-child {
  margin-bottom: 0 !important;
}

.post-content {
  margin-bottom: 1.75em;
}

/* コンテナのパディング */
.separate-containers .inside-article,
.separate-containers .page-header,
.separate-containers .paging-navigation {
  padding-inline: 20px;
  padding-block: 10px;
}

/* ============================================
   サイドバー
   ============================================ */
/* 左カラム（サイドバー）のフォントを全体的に2px上げる ＋ 幅の上限 */
.sidebar,
.widget-area,
.inside-left-sidebar,
.inside-right-sidebar {
  font-size: calc(1rem + 2px);
  max-width: 310px;
}

.widget-area .widget {
  padding: 10px;
}

.widget-title {
  padding-inline: 10px;
  padding-block: 3px !important;
}

/* サイドバーのh2 */
aside h2 {
  margin-bottom: 5px !important;
  margin-top: 0.5em;
  font-weight: 600 !important;
  background: #595cff !important;
  color: #fff !important;
}

/* text-5 ウィジェット内のリスト */
aside#text-5 ul li {
  text-align: center;
}

.inside-right-sidebar .wright {
  text-align: right !important;
  padding-right: 0px !important;
}

.inside-right-sidebar table td {
  padding: 0px !important;
}

.inside-right-sidebar #block-7 div,
.inside-right-sidebar #block-8 div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* wp-block-media-text（mediaWidth:15 等）の img: unset で巨大化するため 50px に固定 */
.wp-block-media-text .wp-block-media-text__media img,
.wp-block-media-text .wp-block-media-text__media video {
  max-width: 50px !important;
}

/* インラインで grid-template-columns があるブロック内も同じ */
.wp-block-media-text[style*=grid-template-columns] .wp-block-media-text__media img,
.wp-block-media-text[style*=grid-template-columns] .wp-block-media-text__media video {
  max-width: 50px !important;
}

aside ul li,
aside dl dd {
  font-size: 0.8rem;
  padding-bottom: 5px;
  border-bottom: 1px solid #e0e0e0;
}

.nav_in_btn ul li {
  padding-bottom: 0 !important;
}

/*
 * モバイル時：ヘッダーウィジェットを非表示にし、フッター直上（コンテンツ最下部）に同じブロックを表示
 */
.nav-in-btn-mobile-placeholder {
  display: none;
}

@media (max-width: 768px) {
  /* ヘッダー内のウィジェットは非表示（同じ内容をフッター直上に表示するため） */
  .site-header .header-widget {
    display: none !important;
  }
  /* フッター直上のプレースホルダーを表示（JS でクローンが入る） */
  .nav-in-btn-mobile-placeholder.is-visible {
    display: block !important;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .nav-in-btn-mobile-placeholder .header-widget {
    margin: 0;
    padding: 0;
  }
}
/*
 * .nav_in_btn（ヘッダー／フッター直上）のモバイル対応
 * 768px 以下で折り返し・幅を可変にして収める。
 */
@media (max-width: 768px) {
  .header-widget .nav_in_btn ul,
  .nav-in-btn-mobile-placeholder .nav_in_btn ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-widget .nav_in_btn ul li,
  .nav-in-btn-mobile-placeholder .nav_in_btn ul li {
    width: 50%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }
  .header-widget .nav_in_btn ul li a,
  .nav-in-btn-mobile-placeholder .nav_in_btn ul li a {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  /* 2列になったとき、1行目と2行目の間に区切り線 */
  .header-widget .nav_in_btn ul li:nth-child(1),
  .header-widget .nav_in_btn ul li:nth-child(2),
  .nav-in-btn-mobile-placeholder .nav_in_btn ul li:nth-child(1),
  .nav-in-btn-mobile-placeholder .nav_in_btn ul li:nth-child(2) {
    border-bottom: solid 1px #fff;
  }
  /* モバイル時はフォントを少し縮小（ウィジェットの 12px / 30px を可変に） */
  .header-widget .nav_in_btn ul li,
  .nav-in-btn-mobile-placeholder .nav_in_btn ul li {
    font-size: clamp(0.65rem, 2.5vw, 12px);
  }
  .header-widget .nav_in_btn ul li a,
  .nav-in-btn-mobile-placeholder .nav_in_btn ul li a {
    font-size: clamp(0.65rem, 2.5vw, 12px);
  }
  .header-widget .nav_in_btn ul li i,
  .nav-in-btn-mobile-placeholder .nav_in_btn ul li i {
    font-size: clamp(1.25rem, 6vw, 30px);
  }
}
/* サイドバーのテーブル */
.sidebar table th,
.sidebar table td {
  border: none !important;
  padding-block: 3px;
}

aside table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.7em;
  line-height: 1.8;
}

aside table td {
  padding: 6px 0px;
  vertical-align: top;
}

aside table .wright {
  text-align: right !important;
  padding-right: 0px !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

aside table .wleft {
  text-align: left;
  padding-left: 0px;
  white-space: nowrap;
}

aside table tr td:only-child {
  padding: 8px 0;
  border-top: 1px solid #ddd;
  border-bottom: none;
  text-align: center;
}

aside table td:empty {
  width: auto;
  min-width: 10px;
}

aside table td:first-child {
  padding-right: 10px;
}

aside table td:nth-child(2):empty {
  width: 20px;
}

aside table tr td:first-child:empty + td {
  padding-left: 20px;
}

aside table tr td:first-child:not(:empty):not([style*=border]) {
  font-weight: normal;
}

/* ============================================
   Elementor
   ============================================ */
/* タブの横幅を均等に配置 */
.elementor-tabs-wrapper .elementor-tab-title {
  width: 25%;
  text-align: center;
}

/* 非アクティブなタブの背景色を薄いグレーに */
.elementor-tabs-wrapper {
  background-color: #f5f5f5;
}

.elementor-tabs-wrapper .elementor-tab-title:not(.elementor-active) {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

/* アクティブなタブの背景色 */
.elementor-tabs-wrapper .elementor-tab-title.elementor-active {
  background-color: #ffffff;
}

/* ============================================
   検索フォーム
   ============================================ */
form.search-form {
  position: relative;
}

.search-form .search-field {
  background: #fff;
  padding: 11px 50px 11px 10px;
  width: 100%;
  font-size: 14px;
  border: 1px solid #ccc;
}

.search-form .search-submit {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 45px;
  padding: 0;
  background-color: #3c74ad;
  border-left: none;
  border-radius: 0 3px 3px 0;
}

/* Google カスタム検索ボックス */
.gsc-input-box table {
  margin-top: 0 !important;
}

.gsc-search-box .gsc-input {
  margin-left: 10px;
}

/* ============================================
   その他のユーティリティ
   ============================================ */
/* フォントサイズのスタイル */
.fontsize.large {
  font-size: 1.2em;
}

.wp-image-18107,
.wp-image-18108 {
  max-width: 50px;
}

#gs_id50 {
  border: none !important;
}

/* copyright-bar内でcopyright以外を非表示 */
.copyright-bar {
  font-size: 0;
}

.copyright-bar > *:not(.copyright) {
  display: none;
}

.copyright-bar .copyright {
  font-size: 1rem;
  display: inline-block;
}

/* ============================================
   特定ページのスタイル
   ============================================ */
/* ページID 570: entry-header を非表示 */
.page-id-570 .entry-header {
  display: none;
}

/* 特定ページの背景画像を無効化 */
.page-id-8966,
.page-id-2553,
.page-id-2702,
.page-id-2709,
.page-id-1491,
.page-id-1495 {
  background-image: none;
  background-color: #fff !important;
}

/* ============================================
   テーブルのスタイル
   ============================================ */
/* 聖苑 使用料テーブルの列幅調整 */
.th1 {
  width: 20%;
}

.th2 {
  width: 20%;
}

/* ============================================
   アーカイブリンクウィジェット
   ============================================ */
/* archive/category/dateページ以外では非表示 */
.archive-links-widget {
  display: none;
}

/* archive/category/dateページでのみ表示 */
.archive .archive-links-widget,
.category .archive-links-widget,
.date .archive-links-widget,
body.blog .archive-links-widget,
body.category .archive-links-widget,
body.date .archive-links-widget {
  display: block;
}

/* archiveページのnav-linksをcenter寄せ */
.archive .nav-links,
.archive .paging-navigation,
.archive .navigation,
.category .nav-links,
.category .paging-navigation,
.category .navigation,
.date .nav-links,
.date .paging-navigation,
.date .navigation {
  text-align: center;
}

/* archive/category/dateページのmain背景をwhiteに */
.archive main,
.category main,
.date main {
  background-color: white;
}

/* archive/category/dateページのh2からmain h2のスタイルを全て除外 */
.archive main h2,
.category main h2,
.date main h2 {
  position: static !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  margin-block: 0 !important;
  margin: 0 !important;
  border-left: none !important;
  background: none !important;
}

/* blogページのh2に.post-titleと同じスタイルを適用（レスポンシブ） */
.blog main h2 {
  clear: none;
  margin: 0 0 0.3em;
  font-size: clamp(0.9375rem, 1vw + 0.8rem, 1.125rem);
  font-weight: 700;
  padding: 0;
  border-left: none;
  background: none;
}

/* archive/blogページでpost-imageを非表示 */
.archive .post-image,
.blog .post-image {
  display: none !important;
}

/* archive/blogページでauthor-nameを非表示 */
.archive .author-name,
.blog .author-name,
.archive .byline,
.blog .byline {
  display: none !important;
}

/* archive/blogページのmain背景をwhiteに */
.archive main,
.blog main {
  background-color: white !important;
}

/* archive/blogページのentry-summaryのmargin-topを0に */
.archive .entry-summary,
.blog .entry-summary {
  margin-top: 0 !important;
}

/* 全ループで「続きを読む」は非表示（タイトルからリンクするため） */
.archive .read-more,
.blog .read-more,
.archive .read-more-container,
.blog .read-more-container,
.category-list .read-more,
.custom-post-loop .read-more {
  display: none !important;
}

/* archive/blogページのentry-metaのmargin-topを0に */
.archive .entry-meta,
.blog .entry-meta {
  margin-top: 0 !important;
}

/* archive/blogページのarticleにborder-bottomを追加（左右10%は非表示） */
.archive article,
.blog article {
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.archive article::after,
.blog article::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 10%;
  height: 1px;
  background-color: white;
}

.archive article::before,
.blog article::before {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 10%;
  height: 1px;
  background-color: white;
}

/* archive/blogページのタイトルリンク（記事へのリンク）にホバーでふわっと transition */
.archive .entry-title a,
.blog .entry-title a {
  transition: opacity 0.3s ease;
}

.archive .entry-title a:hover,
.blog .entry-title a:hover {
  opacity: 0.5;
}

/* カテゴリー一覧ショートコード等の記事タイトルリンクも同様に transition */
.category-list .post-title a,
.custom-post-loop .post-title a {
  transition: opacity 0.3s ease;
}

.category-list .post-title a:hover,
.custom-post-loop .post-title a:hover {
  opacity: 0.7;
}

/* ========================================
   修正2026/01/30
   ======================================== */
.inside-right-sidebar table {
  border: none !important;
  color: #1e73be;
}
.inside-right-sidebar .border-bottom-dashed {
  border-bottom: 1px dashed #1e73be !important;
}
.inside-right-sidebar .textwidget p {
  margin-top: 1rem;
  font-size: 1rem;
  color: #1e73be;
}
.inside-right-sidebar aside ul li {
  padding-block: 0.5rem;
}
.inside-right-sidebar aside ul li a {
  text-decoration: none;
}

.custom-post-loop {
  overflow: scroll;
  max-height: 530px;
}

blockquote {
  border-left: none;
}

.elementor-1317 h2 {
  font-size: clamp(1rem, 1.5vw + 0.85rem, 1.2em);
  font-weight: 600;
  color: #494949;
  margin-block: 1.3rem 0.8rem;
  padding: 0.3rem 0.5rem;
  padding-left: 0.6rem !important;
  border-left: solid 5px #7db4e6;
}

p {
  line-height: 1.8em;
}

main table {
  border-collapse: collapse;
}
main table td,
main table th {
  border: 1px solid #ccc;
  padding-block: 0.5rem;
}
main table th {
  background-color: #f9f9f9;
}

/* ============================================
   パンくずリスト（サイト全体）
   ============================================ */
.breadcrumb {
  margin-bottom: 1rem;
  padding: 0.5rem 0 0.5rem 20px;
  font-size: clamp(0.8125rem, 1vw + 0.75rem, 0.9em);
  color: #666;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb-item a {
  color: #595cff;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-item .breadcrumb-current {
  color: #333;
  font-weight: 500;
}

.breadcrumb-sep {
  color: #999;
  user-select: none;
  pointer-events: none;
}

/* ============================================
   投稿記事下：関連記事・前の記事／次の記事
   ============================================ */
.related-posts-same-category {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
}

.related-posts-title {
  font-size: clamp(1rem, 1.5vw + 0.85rem, 1.2em);
  font-weight: 600;
  color: #494949;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.related-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-posts-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  border-left: 3px solid #7db4e6;
}
.related-posts-list li a {
  text-decoration: none;
  color: inherit;
}
.related-posts-list li a:hover {
  text-decoration: underline;
}
.related-posts-list .related-posts-date {
  font-size: clamp(0.8125rem, 1vw + 0.7rem, 0.9em);
  color: #666;
  margin-left: 0.5rem;
}

/* 前の記事・次の記事（子テーマで出力・矢印付き・横並び） */
.single .post-navigation.post-navigation-below {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}
.single .post-navigation.post-navigation-below .nav-previous,
.single .post-navigation.post-navigation-below .nav-next {
  flex: 1 1 0;
  min-width: 0;
}
.single .post-navigation.post-navigation-below .nav-previous a,
.single .post-navigation.post-navigation-below .nav-next a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  text-decoration: none;
  color: inherit;
}
.single .post-navigation.post-navigation-below .nav-previous a:hover,
.single .post-navigation.post-navigation-below .nav-next a:hover {
  text-decoration: underline;
}
.single .post-navigation.post-navigation-below .nav-previous .nav-arrow,
.single .post-navigation.post-navigation-below .nav-next .nav-arrow {
  font-size: 1.2em;
  font-weight: bold;
  color: #595cff;
  flex-shrink: 0;
}
.single .post-navigation.post-navigation-below .nav-previous a {
  flex-direction: row;
}
.single .post-navigation.post-navigation-below .nav-next {
  text-align: right;
}
.single .post-navigation.post-navigation-below .nav-next a {
  flex-direction: row-reverse;
  margin-left: auto;
  justify-content: flex-end;
}
.single .post-navigation.post-navigation-below .nav-empty {
  flex: 1 1 0;
  min-width: 0;
}

.single .footer-entry-meta {
  margin-top: 0.5rem;
}

/*# sourceMappingURL=style.css.map */
