@charset "UTF-8";

/* =========================================================
   LAYOUT
========================================================= */

.contents {
  background: #fff;
  margin: 0 auto;
  max-width: 1080px;
  width: 100%;
  position: relative;
  z-index: 1;
}

main {
  padding: 10px;
}

/* =========================================================
   HEADER
========================================================= */

.mainHeader {
  background: #ccefff;
  display: flex;
  min-height: 64px;
  width: 100%;
}

.siteName {
  display: flex;
  width: 25%;
}

.siteName a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 0;
}

.siteName a:hover,
.siteName a:focus {
  background-color: #e6f6ff;
  border-radius: 5px 5px 0 0;
}

.siteName .tabOn {
  background-color: #00a1e9;
  border-radius: 5px 5px 0 0;
}

.siteName img {
  display: block;
  width: 100%;
  height: auto;
}

.siteName .tabOn img {
  opacity: 0.8;
}

/* =========================================================
   NAVIGATION
========================================================= */

.tabNavigation {
  flex: 1;
}

.tabNavigation ul {
  display: flex;
  height: 100%;
  text-align: center;
}

.tabNavigation li {
  flex: 1;
}

.tabNavigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  min-height: 61px;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s;
}

.tabNavigation a:hover,
.tabNavigation a:focus {
  background-color: #e6f6ff;
  color: #00a1e9;
  border-radius: 5px 5px 0 0;
}

.tabNavigation .tabOn {
  background-color: #00a1e9;
  color: #fff;
  border-radius: 5px 5px 0 0;
}

/* =========================================================
   SUB HEADER
========================================================= */

.headF-container {
  background: #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  box-sizing: border-box;
}

.headF-item {
  box-sizing: border-box;
}

.headF-item:first-child {
  flex: 1;
  min-width: 0;
}

.headF-item:last-child {
  flex: 0 0 254px;
  margin: auto 8px;
  overflow: hidden;
}

/* =========================================================
   CALENDAR
========================================================= */

.calendarWrap {
  width: 100%;
  overflow: hidden;
}

.calendar {
  width: 100%;
}

.calendar table {
  width: 100% !important;
  table-layout: fixed;
  font-size: 0.75em;
  border-collapse: collapse;
}

.calendar td,
.calendar th {
  padding: 1px;
  text-align: center;
  word-break: break-word;
}

/* =========================================================
   COMMON LAYOUT
========================================================= */

.flex-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =========================================================
   GOOGLE MAP
========================================================= */

.gmap {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.gmap iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  top: 0;
  left: 0;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  background: #f5f5f5;
  font-size: 15px;
  margin-top: 10px;
  padding: 10px;
}

.footer-content {
  border-bottom: 1px solid #808080;
  display: flex;
  gap: 16px;
  padding-bottom: 30px;
  align-items: flex-start;
}

.footer-item {
  flex: 1;
  min-width: 0;
}

.footerTitle {
  border-bottom: 1px solid #808080;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 5px;
  color: #222;
}

.footer-header-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-kisyo {
  width: 60px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.footer-text-group {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.1;
  font-family: "Arial", "Hiragino Kaku Gothic ProN", sans-serif;
  width: fit-content;
}

.footer-text-group span {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.1;
}

.footer-text-group .zaidan-sub {
  font-size: 12px;
  color: #000;
}

.footer-text-group .zaidan-main {
  font-size: 18px;
  color: #000;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: left;
  width: auto;
}

.footer-text-group .zaidan-en {
  font-size: 12px;
  color: #000;
  white-space: nowrap;
  text-align: left;
  width: auto;
}

.footer-text-group .kouminkan-name {
  font-size: 22px;
  font-weight: bold;
  color: #000;
  letter-spacing: 2px;
  white-space: nowrap;
  text-align: left;
  width: auto;
}

.footer-text-group .zaidan-main,
.footer-text-group .kouminkan-name {
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-ideograph;
  width: 100%;
  white-space: normal;
  word-break: keep-all;
}

.holiday-list {
  margin: 0;
  padding-left: 1.5em;
}

.holiday-list li {
  list-style-type: "・";
  padding-left: 0.4em;
  margin-bottom: 0.2em;
}

.footer-item address {
  font-style: normal;
}

.footer-item p {
  margin-bottom: 8px;
}

.footer-item a {
  color: #004a80;
  text-decoration: none;
}

.footer-item a:hover {
  text-decoration: underline;
}

.footer-item.links ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.footer-item.links li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.3em;
}

.footer-item.links li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================================================
   FACEBOOK
========================================================= */

.facebook iframe {
  border: none;
  width: 100%;
  height: 130px;
}

/* =========================================================
   FOOTER INSTAGRAM BUTTON (縦並び用)
========================================================= */

.footer-sns-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 250px;
}

.footer-item.instagram {
  display: block;
  width: 100%;
  margin-top: 20px;
}

.instaBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.instaBtn:hover,
.instaBtn:focus {
  opacity: 0.85;
}

.instaBtn span {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 26px;
}

.instaBtn span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.instaBtn span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* =========================================================
   COPYRIGHT
========================================================= */

.copyright {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-top: 10px;
}

/* =========================================================
   COMMON CARD LAYOUT
========================================================= */

.flex-tayori {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.flex-tayori > .item {
  width: calc((100% - 20px) / 2);
  box-sizing: border-box;
}

/* =========================================================
   CARD IMAGE
========================================================= */

/* 共通画像 */
.item img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   EVENT CARD
========================================================= */

.flex-events .item img {
  height: 180px;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   FOOTER NAV
========================================================= */

.footer-nav-container {
  background-color: #ccefff;
  width: 100%;
  padding: 12px 0;
  margin-top: -1px;
  border-top: none !important;
  display: block;
}

#hrrchcl {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10px;
  color: #333;
  font-size: 14px;
  text-align: right;
}

#hrrchcl a {
  color: #333;
  text-decoration: none;
}

#hrrchcl a:hover,
#hrrchcl a:focus {
  color: #004a80;
  text-decoration: underline;
}

/* トップページ公民館だより */

.item.item-tayori img,
.img-tayori {
  object-fit: cover !important;
  object-position: top center !important;
}

/* =========================================================
   お知らせ枠（iframe）の干渉防止と高さ自動化リセット
========================================================= */
#oshirase-iframe {
  position: static !important; /* 絶対配置を解除して通常配置に戻す */
  height: auto;                /* 初期状態を自動にする */
  max-height: none !important; /* 最大高さの制限を完全に消す */
  overflow: hidden !important; /* お知らせ枠自体のスクロールバーを強制非表示 */
}

/* 親のセクションの高さ制限やスクロールも解除 */
.oshirase-area {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}