.box-image-text .image {
  min-height: 190px;
  max-height: 190px;
}

.box-image-text .image img {
  max-height: 190px;
  margin: auto;
}

.box-simple {
  min-height: 230px;
}
.sns_parent {
  text-align: center;
}

.sns_section {
  display: inline-block;
  text-align: left;
}

.sns_button {
  float: left;
  box-shadow: inset 0 0 0 2px #42464c;
  border-radius: 10%;
  -moz-transition: all 280ms ease;
  -o-transition: all 280ms ease;
  -webkit-transition: all 280ms ease;
  transition: all 280ms ease;
}

.sns_button a {
  display: table-cell;
  width: 44px;
  height: 44px;
  color: #42464c;
  text-align: center;
  vertical-align: middle;
  -moz-transition: all 280ms ease;
  -o-transition: all 280ms ease;
  -webkit-transition: all 280ms ease;
  transition: all 280ms ease;
}

.sns_button i {
  font-size: 20px;
  vertical-align: middle;
}

.sns_button:hover {
  background-color: #999999;
}

.sns_button+.sns_button {
  margin: 0 0 0 12px;
}

.twitter:hover a {
  color: #ffffff;
}

.facebook:hover a {
  color: #3B5999;
}

.google:hover a {
  color: #dd4b39;
}

.instagram:hover a {
  color: #2b5c84;
}

.pocket:hover a {
  color: #EE4056;
}

.hatena:hover a {
  color: #4BA3D9;
}

.fa-hatena:before {
  content: "B!";
  font-family: Verdana;
  font-weight: bold
}

#top .social svg:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}


.bar1 {
  position: relative;
  background: var(--primary-accent);
  padding: 0 0 100px;
}

.bar1.background-white {
  background: #fff;
}

.comment-head{
  border-bottom: solid 2px #555555;
  font-size: 28px;
  margin-bottom: 1em;
  color: #333;
}


.chat-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 25px;
}

.name-input {
  flex: 1;
  min-width: 100px;
  max-width: 200px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.chat-input {
  display: flex;
  align-items: center;
  flex: 3;
  border: 1px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
}

.comment-input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
}

.send-button {
  background: #007bff;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 16px;
  border-left: 1px solid #ccc;
}

.send-button:hover {
  background: #0056b3;
}

.comment-list {
  list-style-type: decimal;
  margin-left: 0px;
  padding-left: 0px;
}

.comment-item {
  border-bottom: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-name {
  font-size: 18px;
  font-weight: bold;
}

.reply-link {
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

.reply-link:hover {
  text-decoration: underline;
}


.comment-container {
  width: auto;  /* 必要に応じて調整 */
  max-height: 400px;  /* スクロールする高さを設定 */
  overflow-y: auto;  /* 必要に応じてスクロール */
  padding: 10px 20px;
  border: 1px solid #ccc;  /* 枠をつける */
  background: #f9f9f9;
  border-radius: 5px;
  box-sizing: border-box;
}

.comment-time {
  color: gray;
  font-size: 12px;
  margin-left: auto;
}

.comment-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-content {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  flex: 1;
}

.reply-button {
  background: #555; /* 濃い灰色 */
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 5px;
}

.reply-button:hover {
  background: #333; /* さらに濃い灰色 */
}



.fade-out {
  animation: fadeOut 1s ease-out forwards;
}

.iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* フッターの最新記事一覧のレスポンシブ対応 */
#footer .blog-entries .item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#footer .blog-entries .item .image {
  flex: 0 0 80px;
  height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer .blog-entries .item .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#footer .blog-entries .item .name {
  flex: 1;
  min-width: 0;
}

#footer .blog-entries .item .name h5 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

#footer .blog-entries .item .name h5 a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

#footer .blog-entries .item .name h5 a:hover {
  color: var(--primary-accent);
}

@media (max-width: 767px) {
  #footer .blog-entries .item .image {
    flex: 0 0 60px;
    height: 60px;
  }
  
  #footer .blog-entries .item .name h5 {
    font-size: 13px;
  }
}

.footer-title {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  line-height: 1.4;
  /*大文字小文字は元のままにする*/
  text-transform: none;
}

#footer .blog-entries .item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

#footer .blog-entries .item .image {
  position: relative;
  width: 80px;
  flex: 0 0 80px;
  overflow: hidden;
}

#footer .blog-entries .item .image::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9のアスペクト比をデフォルトとして設定 */
}

#footer .blog-entries .item .image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* coverからcontainに変更して元のアスペクト比を維持 */
}

@media (max-width: 767px) {
  .footer-title {
    font-size: 13px;
    -webkit-line-clamp: 3;
    max-height: 4.2em;
  }

  #footer .blog-entries .item .image {
    width: 60px;
    flex: 0 0 60px;
  }
  
  #footer .blog-entries .item {
    gap: 10px;
  }
}

.pdf-ui-container {
  max-width: 100%;
  margin: 20px auto;
  border: 1px solid #ccc;
  background: #f0f0f0;
}

/* ツールバー全体 */
.pdf-toolbar {
  /* 親要素を相対配置にして、内部の絶対配置の基準点にする */
  position: relative;
  
  display: flex;
  justify-content: center; /* メインのボタン類は中央寄せ */
  align-items: center;
  padding: 10px;
  background: #333;
  color: #fff;
  gap: 10px;
}

/* 中央のボタングループ（HTML側でdivで囲みました） */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 共通ボタンスタイル */
.pdf-toolbar button,
.pdf-toolbar .download-btn {
  background: transparent;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* ★追加: ダウンロードボタンの右寄せ */
.pdf-toolbar .download-btn.right-align {
  position: absolute; /* ツールバー内での絶対配置 */
  right: 10px;        /* 右端から10pxの位置 */
}

/* ホバー時のスタイル */
.pdf-toolbar button:hover,
.pdf-toolbar .download-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.pdf-toolbar button:active,
.pdf-toolbar .download-btn:active {
  background-color: rgba(255, 255, 255, 0.4);
}

/* コンテナ等のスタイルは変更なし */
.embed-pdf {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 80vh;
  min-height: 400px;
  background-color: #525659;
  overflow: auto; 
  -webkit-overflow-scrolling: touch; 
}

.pdf-content {
  width: 100%;
  margin: 0 auto 20px auto; 
  flex-shrink: 0;
  padding: 20px;
  padding-top: 10px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .embed-pdf {
    height: 60vh;
    min-height: 300px;
  }
}