/*
Theme Name: mytheme
*/

/* 全体リセット */
* { box-sizing: border-box!important; }
html, body { height: 100%; margin:0; padding:0; font-family: sans-serif; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  font-size: 16px;
}


/* 色 */
:root {
  /* ===== 基本色（HEX） ===== */
  --color-black:   #333333;
  --color-red:     #c90505;
  --color-blue:    #005286;
  --color-yellow:  #d9a24a;
  --color-green:   #008487;
  --color-pink:    #e47570;
  --color-purple:  #6f5fa6;
  --color-orange:  #d07a2d;
  --color-white:   #ffffff;
  --color-palegreen:  #e4f1f3;

  /* ===== 透過用（RGB） ===== */
  --color-black-rgb:   51, 51, 51;
  --color-white-rgb:  255, 255, 255;
  --color-red-rgb:    201, 5, 5;
  --color-blue-rgb:   0, 82, 134;
  --color-yellow-rgb: 217, 162, 74;
  --color-green-rgb:  0, 132, 135;
  --color-pink-rgb:   228, 117, 112;
  --color-purple-rgb: 111, 95, 166;
  --color-orange-rgb: 208, 122, 45;
}

/* 下マージン */
:root {
  --space-md: 1.5em;
}

/* 文字サイズ大 */
:root {
  --wp--preset--font-size--large: 26px;
}


/* =========================
   ★★★基本（PC基準）
========================= */
body {
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Yu Gothic UI",
    Meiryo,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;

  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-black);
  letter-spacing: 0.02em;
}

article{
  padding: 20px;
}

a {
  color: #0066cc;
}
a:hover {
  color: #c0392b;
}
a:active {
  color: #c0392b;
}
a:visited {
  color: #663399;
}


/* 見出しは詰めすぎない */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 0.6em;
  display:block;
}

h1.site-name{
  font-family: "fot-tsukuardgothic-std", sans-serif;
}

/* ===== H2（ピンク帯）===== */

h2 {
  font-size: 1.35rem;
  color:white;
  background-color: var(--color-pink);
  border-radius: 0 0 26px 26px;
  padding: 20px 30px;
  font-weight: 500;
}

/* ===== H3（左ライン）===== */
h3:not(.event-title) {
  position: relative;
  background: #f7f9fa;
  padding: 12px 16px 12px 20px;
  border-radius: 8px;
  font-size: 1.2em;
  margin: 32px 0 16px;
}

/* 緑の帯 */
h3:not(.event-title)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background:var(--color-green);
  border-radius: 8px 0 0 8px;
}

h3.contents-list-title {
  position: relative;
  background:var(--color-green);
  color: var(--color-white);
  border-radius: 14px;
}

/* 緑の帯 */
h3.contents-list-title::before {
  content:none;
}

/* ===== H4（●付き）===== */
h4 {
  font-size: 1.1em;
  margin: 24px 0 8px;
}
h4::before {
  content: "●";
  color:var(--color-blue);
  margin-right: 6px;
}


/* ===== H5===== */
h5 {
  font-size: 1.05em;
  margin: 24px 0 8px;
  color:var(--color-blue);
}




.wp-block-list,
ul,
ol {
  margin-bottom: var(--space-md);
}

.wp-block-list li {
  margin-bottom: 0.5em;
}

.left-col .site-name {display:block; font-size: 27px; text-align: center;line-height:1.2em; margin-bottom: 0;}
.left-col .site-name span {display:block; font-size:15px;}
.left-col .site-name img{margin-bottom:7px;}
.left-col .site-name a {display: block; color: inherit; text-decoration: none; cursor: pointer;}
.right-col .site-name {font-size: 32px;line-height:1em;}
.right-col .site-name a {display: block; color: inherit; text-decoration: none;}
.right-col .site-name span {margin-left:3px; font-size: 19px;}
.right-col .site-name img{float: left; margin-right:15px; margin-top:7px; width:90px;}


/* 段落の基本 */

p {
  margin: 0 0 1em;
}

/* スマホ専用改行 */
@media (max-width: 768px) {
  br.spbr {
    display: block;
  }
}

/* デスクトップでは非表示 */
@media (min-width: 769px) {
  br.spbr {
    display: none;
  }
}

/* -------------------------
   影付き
------------------------- */
.shadow-wrapper {
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
}


/* ===============================
   レイアウト全体（左＋右）
=============================== */

.layout {
  display: flex;
  flex: 1;              
  min-height: auto;  
}

/* ===============================
   ひだりカラム
=============================== */

.left-col {
    width: 280px;
    flex-shrink: 0;
    overflow: visible;
    z-index: 500;
    margin-bottom:20px;
}

.left-col-inner{
  position: sticky;
  top: 20px;
  left: 0;
}

.left-element-wrapper {
  padding: 20px 0;
  margin: 20px 0;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  background: white;
}

/* -------------------------
   サイドナビ
------------------------- */

.side-nav {
  background:var(--color-green);
  box-sizing: border-box;
  width:100%;
}

.side-menu,
.side-menu ul {
  list-style: none;
  margin: 0;
  padding:25px 0;
}

/* li 自体はナビ内のpaddingでクリック範囲確保 */
.side-menu li {
  position: relative;
  padding: 0 40px 0 20px;       /* ナビ内側の余白 */
}

/* a は幅100% + ボーダー内側 */
.side-menu li a {
  display: block;
  width: 100%;            /* liのpadding内で全幅 */
  height: 3em;
  line-height: 3em;
  box-sizing: border-box;
  color:white;
  text-decoration: none;
  border-bottom: 1px dotted #fff;
  position: relative;
  /* ボーダーは li の padding 内側に寄せる */
  margin: 0;              
  padding-right: 40px;    /* 矢印用スペース */
}

/* 最後の li は下ボーダー */
.side-menu li:first-child a {
  border-top: 1px dotted #fff;
}

.side-menu li .sub-menu li:first-child a {
  border-top:none;
}
.side-menu li .sub-menu li:last-child a {
  border-bottom:none;
}


/* 矢印はボーダー内、右端に固定 */
.side-menu li a::after {
  content: "\f061";           /* Font Awesome 矢印 */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;               /* a内の右端 */
  top: 50%;
  transform: translateY(-50%);
  color:white;
}

.side-menu li a::after {
  content: "\f061";           /* Font Awesome 矢印 */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;               /* a内の右端 */
  top: 50%;
  transform: translateY(-50%);
  color:white;
}


.side-nav li a:hover::after {
  color: #fccf00;
}

/* サイドナビ子メニュー */
.side-menu li .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;       /* 最低幅は確保 */
  width: auto;             /* 長さに合わせて横に伸びる */
  background: rgba(var(--color-green-rgb), 0.8);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  padding:0;   
  margin: 0;
  
}

.side-menu li .sub-menu li {
  width: 100%;
  white-space: nowrap;     /* 折り返さず横に伸ばす */     
}

.side-menu li .sub-menu li:hover {
  background-color: var(--color-green);
}


/* 表示時 */
.side-menu li .sub-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------
   組織情報
------------------------- */
.org-info {
  font-family: "fot-tsukuardgothic-std", sans-serif;
  padding: 0 20px;
  line-height: 1.2;
}

/* 団体名 */
.org-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* 住所 */
.org-address {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* 連絡先 */
.org-contact {
  font-size: 16px; 
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 4px;
}


/* スマホ用スライドメニュー */
  .slide-nav {
    display: none;
  }

/* ===============================
   右カラム
=============================== */

.right-col {
  flex: 1;
  display: flex; 
  justify-content: center; 
  padding: 20px 20px 100px;
  box-sizing: border-box;
}

.right-inner {
  max-width: 900px;
  width: 100%;
  margin-left: 13%;  /* 左マージンを常に全体の13%に */
  margin-right: auto; /* 右は自動で残りを使う */
}

@media (max-width: 1240px) {
  .right-inner {
    margin-left:auto;
    margin-right:auto;
  }
}


/* コンテンツヘッド */
.content-head {
  max-width: 100%;
  display: flex;
  align-items: flex-start; 
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* タイトル */
.content-head .page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  color: var(--color-black);
  white-space: nowrap;       /* 折り返したくなければ */
}

/* 検索エリア */
.search-form {
  width: 100%;
  max-width: 320px; /* 好きに調整 */
}

.search-wrapper {
  display: flex;
  align-items: stretch;
}

.search-field {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 6px 0 0 6px;
  outline: none;
  box-sizing: border-box;
}

.search-field::placeholder {
  color: #999;
}

.search-submit {
  width: 48px;
  border: 1px solid #ccc;
  border-left: none;
  background: var(--color-green);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: var(--color-blue);
}

.search-toggle {
  display: none;
}

/* コンテンツ */
.content {
  max-width: 100%;       /* 画面が狭い時に右カラム幅に合わせる */
  box-sizing: border-box;
  text-align: left;
}



/* =========================
 * 投稿
 * ========================= */

.custom-tabs-wrap {
    margin-top: 30px;
}

/* タブ（ボックス外） */
.tab-buttons {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* タブ */
.tab-buttons .tab-btn {
    padding: 10px 24px 0;
    cursor: pointer;
    font-weight: 600;
    border-radius: 14px 14px 0 0;

    /* 非アクティブは少し下げる */
    margin-top: 5px;
    padding: 5px 24px 5px;
    background:var(--color-palegreen);
    box-shadow:
        0 -5px 5px rgba(0, 0, 0, 0.03),
        -5px 0 5px rgba(0, 0, 0, 0.03),
         5px 0 5px rgba(0, 0, 0, 0.03);
    transition: all .2s ease;
}

/* アクティブタブ（フォルダのフタ） */
.tab-buttons .tab-btn.active {
    margin-top: 0;
    background: #fff;
    position: relative;
}


/* 下影を打ち消す白いマスク */
.tab-buttons .tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;      /* ボックスと重なる位置 */
    width: 100%;
    height:4px; 
    background: #fff;
    pointer-events: none;
}


/* ボックス（中身） */
.custom-tabs {
    background: #fff;
    margin-top: 0px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

/* コンテンツ */
.tab-content {
    padding: 24px;
}

/* 投稿リスト */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dotted #bbb;
}

.post-item:last-child {
    border-bottom: none;
}

/* 投稿日 */
.post-date {
    min-width: 70px;
    color: #666;
    font-family: monospace;
}

/* カテゴリ & エリアチップ */
.cat-chip,
.area-chip {
    padding: 0 10px;
    border-radius: 999px;
    font-size:0.8rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

/* slugごとに色指定 */

.cat-chip[data-post="post-cat01"] { background: var(--color-yellow); }/*地域包括ケア*/
.cat-chip[data-post="post-cat02"] { background:#8B5E3C; }/*医療介護連携*/
.cat-chip[data-post="post-cat03"] { background: var(--color-purple); }/*認知症対策*/
.cat-chip[data-post="post-cat04"] { background: var(--color-red); }/*生活支援*/
.cat-chip[data-post="post-cat05"] { background: var(--color-blue); }/*介護予防*/
.cat-chip[data-post="post-cat06"] { background: var(--color-green); }/*推進会議*/


.area-chip { background: var(--color-black); }


/* 投稿タイトル */
.post-title {
    position: relative;
    color: var(--color-black);
    text-decoration: none;
    display: inline-block; /* 文字幅に合わせる */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: unset; /* flex:1 を解除 */
}

.post-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;           /* 太さ */
    width: 0;               /* 初期は0 */
    background:currentColor;
    transition: width 0.3s ease;
    z-index: 1;
}

.post-title:hover::after {
    width: 100%; /* 文字幅いっぱいに伸びる */
}



/* ページネーション */
.tab-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tab-pagination a,
.tab-pagination span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:var(--color-palegreen);
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.tab-pagination a:hover {
    background:var(--color-green);
    color: #fff;
}

.tab-pagination .current {
    background:var(--color-green);
    color: #fff;
}

/* ===== 数字：四角 ===== */
.tab-pagination .page-numbers:not(.prev):not(.next) {
    border-radius: 4px;
}

/* ===== 前へ・次へ：円 ===== */
.tab-pagination .page-numbers.prev,
.tab-pagination .page-numbers.next {
    border-radius: 50%;
    font-size: 18px;
}

/* =========================
 * 直通カード
 * ========================= */

/* ===== 全体ラップ ===== */
.direct-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 常に2列 */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  font-family: "fot-tsukuardgothic-std", sans-serif;
}

/* ===== カード ===== */
.direct-card {
  display: flex;
  align-items: center;
  padding: 30px 25px;
  border-radius: 26px;
  color: var(--color-black);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.direct-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  background-color: rgba(var(--color-blue-rgb), 0.1);
  color: var(--color-black);
}

.direct-card:visited {
  color: var(--color-black);
}

/* ===== アイコン ===== */
.direct-card .icon {
  flex-shrink: 0;
  margin-right:20px;
}

.direct-card .icon img {
  width: 60px;
  height: auto;
  max-height:65px;
  display: block;
}

/* ===== テキスト ===== */
.direct-card .text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.direct-card .small {
  font-size: 16px;
}

.direct-card .large {
  font-size: 25px;
  font-weight: 600;
}

/* =========================
 * 目次リストデザイン
 * ======================= */

.contents-list {
  list-style: none;
  padding-left: 10px;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
}

.contents-list li {
  margin: 0;
}

.contents-list a {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color:var(--color-black);
  text-decoration: none;
  padding-left: 25px; /* ■のスペース */
}

/* ■ */
.contents-list a::before {
  content: "\f13d"; /* fa-anchor */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* solid用 */
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.85rem;
}

/* ホバー線アニメーション */
.contents-list a::after {
  content: "";
  position: absolute;
  left: 22px; /* ■の分だけずらす */
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color:var(--color-black);
  transition: width 0.3s ease;
}

.contents-list a:hover::after {
  width: calc(100% - 18px);
}

@media (max-width: 768px) {
  .contents-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   リンク集デザイン
========================= */

.wp-link-list {
  list-style: none;
  padding:1em 0 0 1em;
  margin: 0;
}

.wp-link-list li {
  margin: 20px 0; /* 広めの上下余白 */
}

.wp-link-list a {
  position: relative;
  display: inline-block;
  font-size: 1.2em;
  color: #333;
  text-decoration: none;
  padding-left: 32px;
  transition: color 0.3s ease;
}

/* Font Awesome アイコン（四角に矢印） */
.wp-link-list a::before {
  content: "\f35d"; /* square-arrow-up-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ホバー時 左→右ラインアニメーション */
.wp-link-list a::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #333;
  transition: width 0.3s ease;
}

.wp-link-list a:hover::after {
  width: calc(100% - 32px);
}


/* ===============================
   フッター
=============================== */

footer.footer {
  height: auto;
  box-sizing: border-box;
  background:var(--color-pink);
  color:white;
  padding: 30px 0 0;
  font-family: sans-serif;
  text-align: center;
  margin-top: auto;
}

/* -------------------------
   フッターナビ（4カラム段組）
------------------------- */
.footer-nav {
  margin: 0 auto;
  padding: 0;
  width: 70%;
  max-width: 1000px;
}


/* ul を4カラム段組に */
.footer-nav .foot-menu {
  column-count:4;
  column-gap: 20px;
  height: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.3em!important;
}

/* li は途中で分断しない */
.footer-nav .foot-menu > li {
  break-inside: avoid;
  margin-bottom: 16px;
  text-align: left; /* ← 各カラム内 左揃え */
}

/* 親リンク */
.foot-menu > li > a {
  display: inline-block;
  font-size:0.9em;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 6px;
  position: relative;
  word-break: break-word;
  color:white;
}

/* 子メニュー */
.foot-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding-left: 12px;
}

.foot-menu .sub-menu li {
  break-inside: avoid;
  margin-bottom: 2px;
}

/* 子リンク */
.foot-menu .sub-menu a {
  display: inline-block;
  font-size: 0.8em;
  text-decoration: none;
  position: relative;
  word-break: break-word;
  color:white;
}

/* フッターナビホバー */
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background:white;
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}
/* -------------------------
   組織情報（フット）
------------------------- */
.footer-org{
  display: none;
}

/* -------------------------
   コピーライト
------------------------- */
footer.footer p {
  display:block;
  padding: 20px 0;
  font-size: 14px;
  text-align: center;
}

/* -------------------------
   ハンバーガー
------------------------- */

.hamburger {
    display: none;
    position: fixed;
    top: 0;
    right: 5px;
    width: 55px;
    height:60px;
    padding: 5px 0;
    background:var(--color-green);
    border: none;
    border-radius: 0 0 14px 14px;
    z-index: 1001;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.hamburger span {
    display: block;
    width: 70%; /* ここで線の長さを調整 */
    margin: 4px auto; /* 中央に配置 */
    height: 3px;
    background:white;
    border-radius: 2px;
}

.hamburger::after {
    content: "メニュー";
    display: block;
    color:white;
    font-size: 9px;
    margin-top: 2px;
    font-weight: bold;
    white-space: nowrap;
}





/* =========================
   ★★★Tablet
========================= */
@media (max-width: 1024px) {


}



/* =========================
   ★★★Smartphone
========================= */

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;  /* 約16.8px */
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

h1, h2, h3 {
  line-height: 1.4;
  letter-spacing: 0.01em;
}


.right-col .site-name {font-size:18px;line-height:1em;}
.right-col .site-name span {margin-left:0; font-size:11px;}
.right-col .site-name img{float: left; margin-right:5px; margin-top:7px; width:40px;}

h2 {
  border-radius: 0 0 14px 14px;
  padding: 10px 18px;
  font-weight: 500;
}


/* ハンバーガー */
  .hamburger {
    display: block;
  }

  .left-col {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-green);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .left-col.is-open {
    transform: translateX(0);
  }

/* -------------------------
  大きなレイアウト
------------------------- */

  .left-col,
  .footer-nav {
    display: none;
  }


.right-col {
    flex-direction: column;
    padding:10px; /* スマホでは左右の余白を調整 */
    justify-content: flex-start; /* 上寄せ */
    align-items: stretch; /* 幅いっぱいに広げたい場合 */
    margin-left: auto;
  }

  .right-inner {
  width:100%;
  }
  .content-head {
    max-width: 100%;
    display:block;
  }

footer.footer {
  height:auto;
  padding: 0;
}

footer.footer p {
  margin: 0 auto;
} 

/* -------------------------
   スマホ用slide-nav
------------------------- */
.slide-nav {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #008487;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.slide-nav.is-open {
  transform: translateX(0);
}

/* ulリスト全体 */
.slide-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 親メニューli */
.slide-nav ul li {
  position: relative;
}

/* 親リンク */
.slide-nav > ul > li > a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px 12px 0; /* 右に矢印スペース */
  font-size: 16px;
  word-wrap: break-word;
  position: relative;
}

/* 子メニューul */
.slide-nav ul.sub-menu {
  list-style: none;
  padding-left: 15px;
  margin: 0;
}

/* 子メニューli */
.slide-nav li a,
.slide-nav ul.sub-menu li a {
  border-bottom: 1px dotted rgba(255,255,255,0.6);
  position: relative;
}

/* 子リンク */
.slide-nav ul.sub-menu li a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 20px 8px 0; /* 右に矢印スペース */
  word-wrap: break-word;
  position: relative;
}

/* 矢印（親・子ともに） */
.slide-nav > ul > li > a::after,
.slide-nav ul.sub-menu li a::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  transition: color 0.3s;
}

/* ホバーで矢印色変更 */
.slide-nav > ul > li > a:hover::after,
.slide-nav ul.sub-menu li a:hover::after {
  color: #fccf00;
}


/* -------------------------
   スマホ用検索窓
------------------------- */
  /* フォームは初期非表示 */
  .search-form {
    display: none;
    position: absolute;   /* 位置を自由に指定可能 */
    top: 10px;            /* ボタンから下にずらす */
    right: 130px;
    width: 250px;
    z-index: 999;
  }



  /* ボタン表示 & 位置調整 */
  .search-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 65px;
    width: 55px; /* ハンバーガーに合わせる */
    height: 60px; /* 高さはハンバーガーに合わせて微調整可能 */
    background-color: #e4f1f3;
    color: #008487;
    border: none;
    border-radius: 0 0 14px 14px; /* 左下右下だけ丸める */
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    padding: 5px 0; /* アイコンと文字の間 */
    box-sizing: border-box;
  }

  .search-toggle i {
    font-size: 22px;
    color: #008487;
    display: block;
  }

  .search-label {
    font-size: 12px;
    color: #008487;
    line-height: 1;
    margin-top: 2px; /* アイコンとの間隔 */
    display: block;
  }

  /* フォーム内スタイル微調整 */
  .search-wrapper {
    flex-direction: row;
  }

/* -------------------------
   組織情報（フット）
------------------------- */
.footer-org{
  display: block;
  text-align: left;
  padding-top: 15px;
}

.org-info {
  font-family:inherit;
  padding: 0 20px;
  line-height: 1.2;
}

/* 団体名 */
.org-name {
  font-family: "fot-tsukuardgothic-std", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* 住所 */
.org-address {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* 連絡先 */
.org-contact {
  font-size: 16px; 
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 0;
}

br.pcbr{
  display:inline-block;
  margin-left: 0.7em;
}


/* -------------------------
   投稿
------------------------- */
.custom-tabs-wrap{
  margin-top: 20px;
  line-height: 1.4em;
}
  /* タブ自体をスリム化 */
  .tab-buttons .tab-btn {
    padding: 10px;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
    line-height: 1.1em;
    text-align: center;
  }


  /* 投稿1件を横フローに戻す */
  .post-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  /* 日付を小さく */
  .post-date {
    font-size:10px;
    min-width: auto;
    flex-shrink: 0;
  }

  /* カテゴリ・エリアを横並びに固定 */
  .post-categories,
  .post-taxonomies {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    width: auto; 
    
  }

  /* カテゴリ & エリアチップ */
  .cat-chip,
  .area-chip {
      font-weight:500;
  }

  /* タイトルだけ改行させる */
  .post-title {
    margin-top: 4px;
    line-height: 1.5;
    white-space: normal;
    flex-basis: 100%;
  }

  .post-title::after {
      content:none;
  }


/* -------------------------
   直通カード
------------------------- */

  /* 直通カード全体ラップ */
  .direct-nav {
    gap: 12px; /* カード間の隙間 */
  }

  /* カード本体 */
  .direct-card {
    flex-direction: column; /* 縦並びに */
    align-items: center;    /* 中央寄せ */
    padding: 16px;
    border-radius: 14px;    /* 角丸を小さく */
    text-align: center;     /* 文字中央揃え */
  }

  /* アイコン */
  .direct-card .icon {
    margin-right: 0;        /* 横余白をなくす */
    margin-bottom: 10px;    /* 下に隙間 */
    align-self: center;     /* 中央寄せ */
  }

  .direct-card .icon img {
    width: 40px;            /* 小さく */
    height: auto;
  }

  /* 文字部分 */
  .direct-card .text {
    flex-direction: column;
    justify-content: center; /* 縦中央 */
    align-items: center;     /* 横中央 */
  }

  /* smallはスマホでは非表示 */
  .direct-card .small {
    display: none;
  }

  /* largeを少し小さくして行間を狭く */
  .direct-card .large {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;       /* 行間を狭める */
  }

/* -------------------------
   リンク集
------------------------- */

.wp-link-list a {
  font-size: 1.1em;
  padding-left: 24px;
}


}

/* =========================
 * オリジナルブロックスタイル
 * ========================= */


/* ===== チラシ等引用 ===== */
.wp-block-group.is-style-external-material {
  max-width: 420px;
  margin: 32px auto;
  padding: 0;
  background: none;
  border: none;
  text-align: center;
}

.wp-block-group.is-style-external-material img,
.wp-block-group.is-style-external-material iframe,
.wp-block-group.is-style-external-material embed {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  background: #fff;
}


@media (max-width: 768px) {
  .wp-block-group.is-style-external-material {
    max-width: 100%;
    padding: 0 8px;
  }

  .wp-block-group.is-style-external-material img,
  .wp-block-group.is-style-external-material iframe,
  .wp-block-group.is-style-external-material embed {
    border-radius: 4px;
  }
}

/* ===== チラシ（小サイズ） ===== */
.wp-block-group.is-style-external-material-small {
  max-width: 240px;
  margin: 32px auto;
  padding: 0;
  background: none;
  border: none;
  text-align: center;
}

.wp-block-group.is-style-external-material-small img,
.wp-block-group.is-style-external-material-small iframe,
.wp-block-group.is-style-external-material-small embed {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  background: #fff;
}

/* ===== 段落 - 角丸ボックス（カスタマイズ対応版） ====== */

.is-style-rounded-box {
  background-color: var(--box-bg, var(--color-palegreen));
  border: var(--box-border-width, 0px) solid var(--box-border-color, transparent);
  border-radius: 25px;
  padding: var(--box-padding, 30px);
  box-shadow: var(--box-shadow, none);
  transition: 0.3s ease;
  margin: 15px auto;
  box-sizing: border-box;
}

/* スマホ */
@media (max-width: 768px) {
  .is-style-rounded-box {
    padding: var(--box-padding-sp, 15px 20px);
  }
}

/* 影パターン */

.shadow-none {
  --box-shadow: none;
}

.shadow-light {
  --box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.shadow-normal {
  --box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.shadow-strong {
  --box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* 枠線カラー */

.border-blue {
  --box-border-color: #005286;
}

.border-pink {
  --box-border-color:#e47570;
}

.border-green {
  --box-border-color: #008487;
}

/* 枠線太さのみ変更（色と併用可） */

.border-1 { --box-border-width: 1px; }
.border-2 { --box-border-width: 2px; }
.border-4 { --box-border-width: 4px; }



/* 背景色パターン */

.bg-white {
  --box-bg: #ffffff;
}

.bg-lightgray {
  --box-bg: #e8edef;
}

.bg-navy {
  --box-bg: #e2edfa;
}

.bg-yellow {
  --box-bg: #fff8e1;
}

.bg-pink {
  --box-bg: #ffeaed;
}


/* パディングパターン */

.padding-small {
  --box-padding: 15px 20px;
}

.padding-medium {
  --box-padding: 25px 30px;
}

.padding-large {
  --box-padding: 40px;
}

/* ギャップパターン */
.gap-small { gap: 10px; }
.gap-medium { gap: 20px; }
.gap-large { gap: 40px; }
.gap-xl { gap: 60px; }

/* 画像角丸 */
.wp-block-image.is-style-rounded-image img {
  border-radius: 20px !important;
}


/* =========================
   Gutenberg「ファイル」ブロック調整
========================= */

/* 全体 */
.wp-block-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* スマホ対応 */
  border-bottom: 1px dotted #999;
  padding-bottom: 10px;
  padding-top: 10px;
  padding-left: 1em;
  margin-bottom: 0;
}

.wp-block-file:not(.wp-block-file + .wp-block-file) {
  border-top: 1px dotted #999;  
}

/* ファイル名 */
.wp-block-file > a:first-child {
  font-size: 1rem;
  text-decoration: none;
}

/* ダウンロードボタン */
.wp-block-file__button {
  font-size: 1rem;
  padding: 7px 20px;
  background-color: var(--color-blue);
  color: #fff;
  border-radius: 30px;
  transition: 0.3s;
  text-decoration: none;
  margin-left: auto; /* 右寄せ */
  position: relative;
}

/* アイコン追加 */
.wp-block-file__button::before {
  content: "\f019"; /* fa-download */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* solid */
  margin-right: 8px;
}

/* ホバー時 */
.wp-block-file__button:hover {
  color: #ffff9a;
}

/* クリック後 */
.wp-block-file__button:visited {
  color: #ffffff;
}

/* ファイル名リンクを無効化 */
.wp-block-file > a:first-child {
  pointer-events: none;  /* クリック不可 */
  cursor: default;       /* 手マーク消す */
  color: #000;           /* 黒文字 */
  text-decoration: none; /* 下線消す */
}

@media (max-width: 768px) {

  .wp-block-file {
    flex-direction: column;   /* 縦並びにする */
    align-items: stretch;     /* 横幅いっぱいに */
    gap: 8px;                 /* 行間を詰める */
  }

  .wp-block-file__button {
  padding: 5px 15px;
}

  .wp-block-file > a:first-child {
    line-height: 1.3;         /* 行間少し縮める */
  }

  .wp-block-file__button {
    align-self: flex-end;     /* ← これで確実に右寄せ */
    margin-left: 0;           /* 念のためリセット */
  }

}

/* =========================
   Gutenberg「ボタン」ブロック調整
========================= */

.wp-block-button__link,
.wp-block-button__link:visited{
  background-color: var(--color-blue);
  color: #fff;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  margin-bottom: 1em;
}

/* ホバー */
.wp-block-button__link:hover {
  color: #ffff9a;
}

@media (max-width: 768px) {

.wp-block-button.wp-block-button__width-25,
.wp-block-button.wp-block-button__width-50 {
    width: 75% !important;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-button.wp-block-button__width-25 .wp-block-button__link,
.wp-block-button.wp-block-button__width-50 .wp-block-button__link {
    width: 100%;
    display: block;
}

}

/* Gutena Accordion */

.wp-block-gutena-accordion,
.wp-block-gutena-accordion * {
  font-family: "Noto Sans JP", sans-serif !important;
}

/* =========================
  カスタムCSS
========================= */
.width-80{width:80%!important; margin:auto!important}

.share-buttons {
  display: flex;
  gap: 14px;
  margin: 40px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  transition: 0.3s;
}

.share-btn:hover {
  transform: translateY(-3px);
  opacity: 0.85;
	color: #fff;
}

/* ブランドカラー */
.share-btn.x        { background: #000; }
.share-btn.facebook { background: #1877F2; }
.share-btn.line     { background: #06C755; }
.share-btn.hatena   { background: #00A4DE; font-weight: bold; }
.share-btn.pocket   { background: #EF4056; }



/* カレンダー調整 */
.mc-main h2 {
  display: none;
}

th.sat{
	color:#005286!important
}

/* PDF投稿のバッジ */
.pdf-badge {
  display: inline-block;
  background: #333;
  color: #fff;
  font-size: 0.7em;
  font-weight: bold;
  padding: 0 6px;
  margin-left: 5px;
  margin-bottom: 4px;
  border-radius: 3px;
  vertical-align: middle;
}

.hidden-post{
display:none;
}