/* === PonEdit ベーススタイル（初期構成） === */
html {
  font-size: 16px;
  line-height: 1.6;
  /*font-family: "Noto Sans JP", sans-serif;*/
  background-color: #ffffff;
  color: #222;
}

body {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #fdfdfd;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2b6cb0;
}
h1 {
  font-size: 1.8em;
}
h2 {
  font-size: 1.5em;
}
h3 {
  font-size: 1.3em;
}
h4 {
  font-size: 1.2em;
}
h5 {
  font-size: 1em;
}
h6 {
  font-size: 1em;
}
p {
  margin-bottom: 1.2em;
}

a {
  color: #2b6cb0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  color: #555;
  margin: 1.5em 0;
}
/*
body {
  font-family: sans-serif;
  padding: 2rem;
  background: #fdfdfd;
  color: #333;
}
*/
h1 {
  color: #2b6cb0;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin: 0.5em 0;
}
/*カスタム*/
/*@font-face {
  font-family: 'NotoSansJP-Regular';
  src: url('fonts/NotoSansJP-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
p {
  font-family: 'NotoSansJP-Regular', sans-serif;
}
*/
.bubble-left,
.bubble-right {
  display: block;
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 12px;
  line-height: 1.5;
  word-wrap: break-word;
  margin: 4px 0;
}

/* 左寄せのグレーバブル（チャッピー側） */
.bubble-left {
  background: #F1F1F1;
  margin-right: auto;
}

/* 右寄せのグリーンバブル（ぽんさん側） */
.bubble-right {
  background: #DCF8C6;
  margin-left: auto;
  clear: both; /* 下の段落が巻き込まれないように */
}

pre code {
  display: block;
  padding: 1em;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.9em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

pre {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 3px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: #555;
}

.copy-btn:hover svg {
  stroke: #2b6cb0;
}
svg.copy-icon {
  position: absolute;
  top: 2px;
  right: -14px;
}
summary {
  color: #4f4fd0;
  font-size: 0.8em;
}
details {
  background-color: #f7f7f7;
  border-radius: 12px;
  padding: 8px 12px;
}
.article-index {
  font-size: 0.8rem;
  color: #555;
}
li.post a {
  font-size: 1.2rem;
}
.search-box{margin-bottom:1em;}
.search-box input {
  width: 100%;
  padding: .5em;
  font-size: 1em;
  box-sizing: border-box;
  background-color: aliceblue;
}
h1#title {
  font-size: 1.5em;
}
hr#article-end {
  margin: 1em 0;
  color: #bbb;
}
@media(max-width:768px){
    .video-embed {
    width: 100%;
    max-width: 100%;
  }

  .video-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16; /* 縦長動画の場合 */
    max-width: 100%;
  }
  h1#title {
    font-size: 1.2em;
  }
  .container {
    flex-direction: column;
  }
  .sidebar {
    display: none;
    order: 2;
    background: #f9f9f9;
    padding: 1em;
    border: 1px solid #ccc;
    margin-bottom: 1em;
  }
  .sidebar.show {
    display: block;
  }
  .main {
    order: 1;
  }
  #toggleBtn {
    display: block;
    margin: 1em auto;
    padding: 0.5em 1em;
    background: #eee;
    border: 1px solid #ccc;
    text-align: center;
    cursor: pointer;
  }
}
