@charset "utf-8";
/* ==========================================================================
   院長夜話 サイト共通スタイルシート（1ファイルにまとめたシンプル版）
   ========================================================================== */

* { box-sizing: border-box; }

html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "游明朝", serif;
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  word-break: break-word;
  overflow-wrap: break-word;
}

a { color: #bf7878; }
a:hover { color: #895959; }

.clearfix::after { content: ""; display: table; clear: both; }

.rich_font {
  font-family: "Times New Roman", Times, "Yu Mincho", "游明朝", "游明朝体", "Hiragino Mincho Pro", serif;
}

img { max-width: 100%; height: auto; }

/* ── サイトヘッダー（文字のみ） ── */
.yawa_site_header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 0;
}
.yawa_site_header a {
  font-size: 1.3rem;
  color: #9e6060;
  letter-spacing: 2px;
  text-decoration: none;
}
.yawa_site_header a:hover { color: #895959; }

/* ── トップページ ヒーロー画像 ── */
#page_header {
  width: 100%;
}

/* ── レイアウト ── */
#main_contents { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
#main_col { padding: 50px 0 100px; }
#left_col { max-width: 830px; margin: 0 auto; }

/* ── セクション見出し（トップページ） ── */
.section_heading {
  font-size: 1.3rem;
  color: #9e6060;
  margin: 60px 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}
#main_col > .section_heading:first-child { margin-top: 40px; }

/* ── 記事一覧（トップページ） ── */
#blog_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #ddd;
  border-width: 1px 0 0 1px;
}
#blog_list .item {
  border: 1px solid #ddd;
  border-width: 0 1px 1px 0;
  padding: 18px;
}
#blog_list .image { display: block; overflow: hidden; }
#blog_list .image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s ease;
}
#blog_list .image:hover img { transform: scale(1.1); }
#blog_list .title {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.7;
  margin: 13px 0 5px;
}
#blog_list .title a { color: #333; text-decoration: none; }
#blog_list .title a:hover { color: #9e6060; }
#blog_list .meta { list-style: none; margin: 0; padding: 0; font-size: .78rem; color: #999; }
#blog_list .meta li { display: inline; }

@media screen and (max-width: 900px) {
  #blog_list { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 600px) {
  #blog_list { grid-template-columns: 1fr; border-width: 1px 0 0 0; }
  #blog_list .item {
    display: flex;
    gap: 16px;
    border-width: 0 0 1px 0;
  }
  #blog_list .image { flex: 0 0 130px; width: 130px; }
  #blog_list .title_area { flex: 1 1 auto; min-width: 0; }
  #blog_list .title { font-size: .95rem; margin-top: 0; }
}

/* ── 記事ページ ── */
#post_title {
  font-size: 1.8rem;
  color: #222;
  margin: 0 0 10px;
  line-height: 1.5;
}
#post_meta_top {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  font-size: .85rem;
  color: #999;
}
#post_meta_top li { display: inline; }

#post_image { margin-bottom: 30px; }
#post_image img { display: block; }

.post_content { font-size: .95rem; color: #555; }
.tcdce-body p { margin: 0 0 1.6em; }
.tcdce-body h1 { font-size: 1.5rem; color: #222; margin: 2.4em 0 1em; line-height: 1.6; }
.tcdce-body h2 { font-size: 1.3rem; color: #222; margin: 2.4em 0 1em; padding-bottom: .4em; border-bottom: 2px solid #eee; line-height: 1.6; }
.tcdce-body h3 { font-size: 1.15rem; color: #222; margin: 2em 0 .8em; line-height: 1.6; }
.tcdce-body h4, .tcdce-body h5, .tcdce-body h6 { font-size: 1.05rem; color: #222; margin: 1.6em 0 .6em; line-height: 1.6; }
.tcdce-body ul, .tcdce-body ol { margin: 0 0 1.6em; padding-left: 1.6em; }
.tcdce-body li { margin-bottom: .4em; }
.tcdce-body blockquote { margin: 0 0 1.6em; padding: 1em 1.4em; background: #f9f6f6; border-left: 3px solid #d8b8b8; }
.tcdce-body img { margin-bottom: 1.6em; }
.tcdce-body hr { clear: both; border: none; border-top: 1px solid #eee; margin: 2em 0; }
.tcdce-body .alignright { float: right; margin: 0 0 1em 24px; }
.tcdce-body .alignleft { float: left; margin: 0 24px 1em 0; }
.tcdce-body .aligncenter { display: block; margin: 0 auto 1.6em; }
.tcdce-body .alignnone { margin-bottom: 1.6em; }

.s_table { margin: 0 0 1.6em; overflow-x: auto; }
.s_table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.s_table td, .s_table th { border: 1px solid #ccc; padding: .6em .8em; }

.dot-text { color: #d33; font-weight: bold; }
.red { color: #ac5457; }

/* ── フッター ── */
.yawa_footer {
  text-align: center;
  padding: 24px 20px;
  margin-top: 40px;
}
.yawa_footer #copyright {
  color: #999;
  font-size: .75rem;
  line-height: 1.6;
}

/* ── ページトップへ戻るボタン ── */
#return_top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
#return_top.active { opacity: 1; visibility: visible; }
#return_top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(158,96,96,.85);
  text-decoration: none;
}
#return_top a span { display: none; }
#return_top a::before {
  content: "↑";
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

@media screen and (max-width: 600px) {
  body { font-size: 15px; }
  #post_title { font-size: 1.4rem; }
  .yawa_site_header a { font-size: 1.1rem; }
}
