@charset "UTF-8";
/* =========================================================
   サイト共通のヘッダー・フッター（ブログ用）
   ---------------------------------------------------------
   サイト本体の css/style.css・css/responsive.css から、
   ヘッダー・フッターに関係する指定だけを抜き出したものです。

   サイト本体のCSSには nav / footer / h1 など要素名だけの指定が
   あり、そのまま読み込むとブログのパンくず・ページ送り・目次・
   記事フッターまで赤くなってしまいます。そのため、ここでは
   すべて #top（ヘッダー）と body > footer（フッター）の中だけに
   効くように書いています。

   サイトのヘッダー・フッターのデザインを変えたときは、
   このファイルも同じように直してください。
   ========================================================= */

/* ---------- 共通 ---------- */
body {
  /* 固定ヘッダーの高さぶんの余白。実際の高さは ../js/common.js が測って上書きします */
  padding-top: 118px;
}

#top,
body > footer,
.toTop {
  font-family: "Zen Maru Gothic", serif;
  line-height: 1.15;
  color: #343535;
}
#top ul,
body > footer ul { margin: 0; padding: 0; list-style: none; }
#top a,
body > footer a { color: inherit; text-decoration: none; }
#top img { display: inline; max-width: 100%; height: auto; }


/* =========================================================
   ヘッダー
   ========================================================= */
#top {
  width: 100%;
  margin: 0 auto;
  background-color: white;
}

#top .headBox {
  position: fixed;
  box-sizing: content-box;
  top: 0;
  align-items: center;
  background-color: white;
  width: 100%;
  margin: 0 auto;
  z-index: 9999;
}

#top .top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px;
  margin: 0 auto;
  max-width: 1000px;
}

#top .top p { margin: auto 1%; }

/* 団体名ロゴ（サイト本体では h1。ブログではページの見出しを別に持つので p にしています） */
#top .siteName { margin: 0; }
#top .siteName img {
  margin: auto 2%;
  height: 30px;
  width: auto;
  margin-left: 40px;
}

#top nav {
  width: 100%;
  background-color: #CE0D1B;
  padding: 10px 0;
  font-size: 20px;
}

#top nav ul {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin: 0 auto;
  list-style-type: none;
  width: 100%;
  max-width: 900px;
  padding: 0 10px;
}

#top nav ul li { color: #ffffff; }

/* グローバルナビ：円が線に変化するホバー（現在地の li には current クラス） */
#top .gnavi li a {
  position: relative;
  display: block;
  padding: 0 10px 8px;
}
#top .gnavi li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 50%;
  background: #ffffff;
  transition: all .3s;
  transform: scale(0.04, 1);
  transform-origin: center bottom;
}
#top .gnavi li.menuOnly { display: none; }
#top .gnavi li.current a::after,
#top .gnavi li a:hover::after {
  height: 2px;
  border-radius: 0;
  transform: scale(0.8, 1);
}
#top .gnavi li a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ハンバーガーボタンと丸背景はPCでは非表示 */
#top .openbtn,
#top .circle-bg { display: none; }
#top .openbtn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}


/* =========================================================
   ページトップボタン（右側のお問い合わせタブはブログでは出しません）
   ========================================================= */
.toTop {
  display: inline-block;
  width: 80px;
  height: 80px;
  background-color: #fff;
  color: #329545;
  border-radius: 50%;
  text-align: center;
  line-height: 75px;
  position: fixed;
  right: 20px;
  bottom: 15px;
  z-index: 8000;
  font-weight: bolder;
  transition: 0.5s;
  opacity: 0;
  visibility: hidden;
}
.toTop img { display: inline; width: 80%; }
.toTop.active { opacity: 1; visibility: visible; }


/* =========================================================
   フッター（サイトマップ）
   ========================================================= */
body > footer {
  text-align: center;
  background-color: #CE0D1B;
  color: #ffffff;
  padding: 20px;
}

body > footer .footSitemap {
  width: 100%;
  background-color: transparent;
  padding: 10px 0 0;
  font-size: 15px;
  text-align: left;
}
body > footer .footSitemapInner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px 30px;
}
body > footer .footCol { flex: 1 1 0; min-width: 0; }
body > footer .footColTitle {
  font-weight: 700;
  font-size: 14px;
  padding-bottom: 10px;
  margin: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}
body > footer .footSitemap ul { display: block; text-align: left; }
body > footer .footSitemap li {
  color: #ffffff;
  margin-bottom: 9px;
  line-height: 1.5;
}
body > footer .footSitemap li:last-child { margin-bottom: 0; }
body > footer .footSitemap a {
  position: relative;
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding-bottom: 2px;
}
body > footer .footSitemap a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s;
}
body > footer .footSitemap a:hover::after,
body > footer .footSitemap a:focus-visible::after { transform: scaleX(1); }

body > footer .copyright {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
}


/* =========================================================
   820px以下（ハンバーガーメニュー）
   ========================================================= */
@media screen and (max-width: 820px) {
  body { padding-top: 62px; }

  :root {
    --btn-top: 10px;
    --btn-size: 50px;
    --btn-gap: 6px;
  }

  #top .headBox {
    position: fixed;
    top: 0;
    width: 100%;
    border-bottom: 4px solid #CE0D1B;
  }
  #top .top {
    max-width: 100%;
    min-height: calc(var(--btn-top) + var(--btn-size) + var(--btn-gap));
    padding: 4px 66px 4px 12px;
    align-items: center;
  }
  #top .top p { flex-shrink: 0; margin: 0; }
  #top .top p img { height: 40px; width: auto; }

  #top .top p.siteName {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 12px;
  }
  #top .siteName img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 22px;
    margin: 0;
    object-fit: contain;
    object-position: left center;
  }

  #top nav {
    width: 100%;
    padding: 0;
    background-color: transparent;
  }

  /* ---- ボタン ---- */
  #top .openbtn {
    display: block;
    position: fixed;
    top: var(--btn-top);
    right: 12px;
    z-index: 10000;
    width: var(--btn-size);
    height: var(--btn-size);
    cursor: pointer;
  }
  #top .openbtn span {
    display: inline-block;
    position: absolute;
    left: 12px;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background-color: #CE0D1B;
    transition: all 0.4s;
  }
  #top .openbtn span:nth-of-type(1) { top: 15px; }
  #top .openbtn span:nth-of-type(2) { top: 24px; }
  #top .openbtn span:nth-of-type(3) { top: 33px; }
  #top .openbtn.active span { background-color: #ffffff; }
  #top .openbtn.active span:nth-of-type(1) { top: 18px; left: 14px; width: 24px; transform: translateY(6px) rotate(-45deg); }
  #top .openbtn.active span:nth-of-type(2) { opacity: 0; }
  #top .openbtn.active span:nth-of-type(3) { top: 30px; left: 14px; width: 24px; transform: translateY(-6px) rotate(45deg); }

  body.nav-open #top .headBox { background-color: transparent; border-bottom-color: transparent; }
  body.nav-open #top .top { opacity: 0; visibility: hidden; }

  /* ---- 広がる丸背景 ---- */
  #top .circle-bg {
    display: block;
    position: fixed;
    z-index: 9100;
    pointer-events: none;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #CE0D1B;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
    transform: scale(0);
    transition: all 0.6s;
  }
  #top .circle-bg.circleactive { transform: scale(30); pointer-events: auto; }

  /* ---- ナビゲーション ---- */
  #top #g-nav.panelactive {
    position: fixed;
    z-index: 9500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
  }
  #top #g-nav-list {
    display: none;
    position: fixed;
    z-index: 9500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #top #g-nav.panelactive #g-nav-list { display: block; }
  #top #g-nav ul {
    opacity: 0;
    display: block;
    position: absolute;
    z-index: 9500;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: none;
    padding: 0;
    transform: translate(-50%, -50%);
  }
  #top #g-nav.panelactive ul { opacity: 1; }
  #top #g-nav.panelactive ul li {
    opacity: 0;
    animation-name: gnaviAnime;
    animation-duration: 1s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
  }
  @keyframes gnaviAnime {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  #top #g-nav li { list-style: none; text-align: center; }
  #top #g-nav .gnavi li.menuOnly { display: block; }
  #top #g-nav li a {
    display: block;
    padding: 14px 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-decoration: none;
  }
  #top #g-nav li a:hover { opacity: 0.7; }
  #top .gnavi li a::after { content: none; }

  /* ---- 右側のタブ・ページトップ ---- */
  .toTop {
    right: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
    line-height: 52px;
    font-size: 12px;
  }

  /* ---- フッター：4列 → 2列 ---- */
  body > footer { padding: 16px; font-size: 12px; line-height: 1.6; }
  body > footer .footSitemap { padding: 6px 0 0; font-size: 14px; }
  body > footer .footSitemapInner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
    padding: 0 6px 22px;
  }
  body > footer .footColTitle { font-size: 14px; padding-bottom: 8px; margin-bottom: 10px; }
  body > footer .footSitemap li { margin-bottom: 8px; }
  body > footer .footSitemap a { padding: 4px 0; }
  body > footer .copyright { padding-top: 14px; font-size: 11px; }
}


/* =========================================================
   480px以下（小さいスマホ）
   ========================================================= */
@media screen and (max-width: 480px) {
  body { padding-top: 54px; }
  #top .top { padding: 4px 66px 4px 10px; }
  #top .top p img { height: 30px; }
  #top .top p.siteName { margin-left: 10px; }
  #top .siteName img { max-height: 16px; }
  body > footer .footSitemapInner { grid-template-columns: 1fr; gap: 18px; }
}
