@charset "utf-8";
/* 思ったことを書く：gplusDark.css に足した分（左メニューの開け閉め、シェアボタン、一覧、検索、スマホ表示） */

/* 記事タイトル（h1）は今までの h2 と同じ見た目。サイト名（左メニュー）は今までの h1 と同じ見た目 */
.entrybody h1 {
  margin: 0 0 10px;
  padding: 10px 15px 8px;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: 15px solid #ccc;
  border-radius: 5px/5px;
  background: #3f3f3f;
  color: #ccc;
  font-weight: bolder;
  font-size: 110%;
}
.site_title {
  padding: 5px;
  color: #ccc;
  font-weight: bold;
  font-size: 1.4rem;
}
.site_title a {
  text-decoration: none;
}
.entrybody h2.sub_h {
  margin-top: 20px;
}

/* 左メニュー：カテゴリ別・年別（開け閉め式） */
.menu_group {
  padding: 5px 10px 8px;
}
.menu_head {
  margin: 5px 0 3px;
  padding: 0 5px 4px;
  border-bottom: 1px solid #666;
  color: #bbb;
  font-weight: bold;
  font-size: 0.85rem;
}
.menu_group details {
  margin: 0;
  border-bottom: 1px dotted #555;
}
.menu_group details:last-child {
  border-bottom: none;
}
.menu_group summary {
  padding: 0.45rem 5px;
  color: #ccc;
  cursor: pointer;
  list-style-position: inside;
}
.menu_group summary:hover {
  color: #f6c;
}
.menu_group .n {
  color: #888;
}
.menu_group details ul {
  margin: 0 0 6px;
}
.menu_group details ul li {
  margin-left: 15px;
}
.menu_group li.all a {
  color: #999;
}
.menu_group a.here {
  color: #f6c;
  font-weight: bold;
}

/* 左メニューの検索 */
.menu_search form {
  display: flex;
  gap: 6px;
  padding: 0 5px 5px;
}
.menu_search input,
.archive_search input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #2a2a2a;
  color: #ddd;
  font-family: inherit;
  font-size: 0.9rem;
}
.menu_search button {
  padding: 5px 12px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #2a2a2a;
  color: #ddd;
  font-family: inherit;
  cursor: pointer;
}
.menu_search button:hover {
  border-color: #aaa;
  color: #fff;
}

/* 記事の下：カテゴリ・追記日 */
.entry_info {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px dotted #666;
  color: #999;
  font-size: 0.8rem;
}

/* 新しい記事／HOME／古い記事 */
.page_nav {
  margin: 1rem 0 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.page_nav span {
  color: #666;
}

/* 目次（トップの最近の記事・カテゴリ） */
.toc_box {
  padding-top: 1rem;
}
.toc {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li {
  padding: 0.35rem 0;
  border-bottom: 1px dotted #555;
}
.toc .d {
  color: #999;
  font-size: 0.8rem;
}
.toc .c {
  color: #999;
  font-size: 0.75rem;
}
.more_link {
  margin-top: 0.8rem;
  text-align: right;
  font-size: 0.85rem;
}

/* 全ての記事と検索 */
.archive_search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 1rem 0;
}
#arc_count {
  color: #999;
  font-size: 0.85rem;
}
.archive_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.archive_table td {
  padding: 0.35rem 0.3rem;
  border-bottom: 1px dotted #555;
  vertical-align: top;
}
.archive_table .arc_date {
  width: 6.5em;
  color: #999;
  white-space: nowrap;
}
.archive_table .arc_cat {
  font-size: 0.75rem;
}

/* シェアボタン */
.share_buttons {
  margin: 1.5rem 0 0.5rem;
  font-size: 13px;
}
.share_buttons .share_label {
  display: block;
  margin-bottom: 6px;
  color: #999;
}
.share_buttons a,
.share_buttons a:visited,
.share_buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 30px;
  margin: 0 6px 6px 0;
  padding: 0 12px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #2a2a2a;
  color: #ddd;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  cursor: pointer;
}
.share_buttons a:hover,
.share_buttons button:hover {
  border-color: #aaa;
  background: #383838;
  color: #fff;
  text-decoration: none;
}
.share_buttons .share_x { border-color: #777; }
.share_buttons .share_fb { border-color: #3b5998; }
.share_buttons .share_hb { border-color: #00a4de; }
.share_buttons .share_line { border-color: #06c755; }
.share_buttons .share_bsky { border-color: #1185fe; }
.share_buttons .share_th { border-color: #999; }
.share_buttons .share_copy { border-color: #888; }
.share_buttons .share_copy.done { border-color: #8d8; color: #8d8; }
.share_buttons.share_top {
  margin-top: 1.5rem;
  text-align: center;
}

/* スマホ・狭い画面：左メニューと本文を縦に並べる（パソコンの見た目は今までどおり） */
@media (max-width: 960px) {
  .container {
    box-sizing: border-box;
    width: auto;
    max-width: 600px;
    padding: 0 8px;
  }
  #left_menu,
  .entrybody {
    display: block;
    box-sizing: border-box;
    width: auto;
  }
  .menu_box,
  .menu_rss,
  .menu_directory,
  .menu_search,
  .menu_list {
    margin-left: 0;
    margin-right: 0;
  }
  .entrybody {
    padding: 6px;
    border-width: 4px;
  }
  .entrytext {
    padding: 0.5rem 0.9rem 1.2rem;
  }
  .entrytext img {
    max-width: 100%;
    height: auto;
  }
  /* スマホでは本文を先に、メニューを後に */
  .container {
    display: flex;
    flex-direction: column;
  }
  .entrybody {
    order: 1;
  }
  #left_menu {
    order: 2;
  }
}
