/* u-tire.jp ベーステーマ用 CSS  */

/* リセット・ベース -------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f5f5f5;
}

/* リンク */
a {
  color: #006bb3;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* レイアウト枠 ------------------------------------------ */
#page,
.site {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

/* ヘッダー ---------------------------------------------- */
.site-header,
#masthead,
#site-header {
  background: #222;
  color: #fff;
  padding: 12px 20px;
}

.site-title,
.site-title a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.site-description {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #ddd;
}

/* グローバルナビ ---------------------------------------- */
.main-navigation,
#site-navigation,
.navbar {
  margin-top: 8px;
}

.main-navigation ul,
#site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-navigation li,
#site-navigation li {
  margin: 0;
}

.main-navigation a,
#site-navigation a {
  display: block;
  padding: 6px 12px;
  border-radius: 3px;
  color: #fff;
  font-size: 0.9rem;
}

.main-navigation a:hover,
#site-navigation a:hover,
.main-navigation .current-menu-item > a,
#site-navigation .current-menu-item > a {
  background: #ff9900;
  text-decoration: none;
}

/* メインコンテンツ -------------------------------------- */
#content,
.site-content {
  padding: 20px;
}

/* 2カラムっぽく見せる（サイドバーがあれば） */
.content-area,
#primary {
  width: 100%;
}
.widget-area,
#secondary {
  width: 100%;
  margin-top: 24px;
}

/* PCサイズで2カラム */
@media (min-width: 960px) {
  .site-content-inner,
  .content-wrapper,
  .content-sidebar-wrap {
    display: flex;
    align-items: flex-start;
    gap: 24px;
  }
  .content-area,
  #primary {
    flex: 1 1 auto;
  }
  .widget-area,
  #secondary {
    flex: 0 0 260px;
    margin-top: 0;
  }
}

/* 投稿・固定ページ -------------------------------------- */
.hentry,
.post,
.page {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.entry-title,
.page-title,
.post-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 600;
}

.entry-meta {
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #777;
}

.entry-content,
.page-content {
  font-size: 0.95rem;
}

.entry-content h2,
.page-content h2 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-size: 1.2rem;
  border-left: 4px solid #ff9900;
  padding-left: 8px;
}
.entry-content h3,
.page-content h3 {
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  font-size: 1.05rem;
}

.entry-content p,
.page-content p {
  margin-top: 0;
  margin-bottom: 0.8em;
}

/* テーブル */
.entry-content table,
.page-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.2em;
}
.entry-content th,
.entry-content td,
.page-content th,
.page-content td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  font-size: 0.9rem;
}
.entry-content th,
.page-content th {
  background: #fafafa;
}

/* 画像 */
.entry-content img,
.page-content img {
  max-width: 100%;
  height: auto;
}

/* サイドバー・ウィジェット ------------------------------ */
.widget {
  margin-bottom: 20px;
  padding: 12px;
  background: #fafafa;
  border-radius: 4px;
  border: 1px solid #eee;
}
.widget-title {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
}

/* フッター ---------------------------------------------- */
.site-footer,
#colophon {
  margin-top: 24px;
  background: #333;
  color: #eee;
  padding: 12px 20px;
  font-size: 0.8rem;
  text-align: center;
}
.site-footer a {
  color: #fff;
}

/* ヘッダー画像の簡易対応（header_gothic3_xx が無くても崩れないように） */
.header-image,
#header-image,
.site-header-image {
  width: 100%;
  height: 200px;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
}

/* contact-simple セクション ------------------------------ */
.contact-simple {
  padding: 16px;
  margin: 16px 0;
  background: #fffaf0;
  border: 1px solid #ffe0a8;
  border-radius: 4px;
}
.contact-simple h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
.contact-simple a {
  font-weight: 600;
}

/* ナビゲーション（ページ送りなど） ------------------------- */
.nav-links,
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0;
}
.nav-links a,
.pagination a,
.pagination span {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  background: #fff;
}
.nav-links .current,
.pagination .current {
  background: #ff9900;
  border-color: #ff9900;
  color: #fff;
}

/* 汎用ユーティリティ -------------------------------------- */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 4px !important;
}
.mt-2 {
  margin-top: 8px !important;
}
.mt-3 {
  margin-top: 16px !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 4px !important;
}
.mb-2 {
  margin-bottom: 8px !important;
}
.mb-3 {
  margin-bottom: 16px !important;
}
/* ====== 文字かぶり対策：inlineのmarginを上書き ====== */
.entry-content p,
.page-content p,
.entry-content li,
.page-content li {
  margin: 0 0 0.5em !important;  /* ← inlineの-19pxなどを潰す */
  line-height: 1.8;
}

/* ====== 新着情報のスクロールボックス #recent_post3 ====== */
#recent_post3 {
  max-height: 180px;          /* ボックス全体の高さ */
  overflow-y: auto;           /* この中だけスクロール */
  padding: 8px 10px;
  background: #fafafa;
  border: 1px solid #ddd;
}

#recent_post3 p {
  margin: 0 0 6px !important;
}

#recent_post3 ul {
  margin: 0;
  padding-left: 1.4em;
  list-style: disc;
  height: auto !important;    /* inlineのheight:130pxを打ち消す */
}

#recent_post3 li {
  margin: 0 0 2px;
  font-size: 0.9rem;
}
/* ====== TOP タイルレイアウト flex-container を2列レイアウトに ====== */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

/* 子div（左ブロック・右ブロック）を2列に */
.flex-container > div {
  flex: 1 1 50%;
  min-width: 260px;
}

/* 中の .inline_box は横幅100%で縦に並べる */
.flex-container .inline_box {
  width: 100% !important;
}

/* タイル内の余白調整 */
.flex-container .inline_box p {
  margin: 0 0 0.7em !important;
}
