/* --------------------------------------------------
Theme: Moina
Card Layout: Horizontal article card (Moina demo style)
-------------------------------------------------- */

body {
  font-size: 16px;
  line-height: 2;
  color: #333;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
.site-branding{
    white-space: nowrap !important;
}
.site-title a{
  font-size: 18px;
}
.site-description{
  font-size: 14px;
}
.menu{
  margin-top: 14px;
}

/* ------------------ */
/* HORIZONTAL CARD LAYOUT */
/* ------------------ */
.post.horizontal-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
}

.post.horizontal-card .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
}

.thumbnail-wrap {
  padding: 0;
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.content-wrap {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-card .entry-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.horizontal-card .entry-title a {
  color: #222;
  text-decoration: none;
}

.horizontal-card .entry-title a:hover {
  text-decoration: underline;
}

.horizontal-card .entry-content {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.horizontal-card .entry-meta {
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #aaa;
  margin-top: auto;
}

.horizontal-card .read-more {
  font-weight: bold;
  color: #e94e3b;
  border-bottom: 2px solid #e94e3b;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
}

.horizontal-card .read-more:hover {
  opacity: 0.85;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .post.horizontal-card .row {
    flex-direction: column;
  }

  .thumbnail-wrap img {
    min-height: auto;
  }

  .content-wrap {
    padding: 1rem;
  }

  .horizontal-card .entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.breadcrumb-area {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb li::after {
  content: '>';
  margin: 0 0.5rem;
  color: #aaa;
}

.breadcrumb li:last-child::after {
  content: none;
}

.breadcrumb a {
  color: #007acc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===============================
   共通見出しスタイル（h2, h3）
   =============================== */

/* h2：セクションの主見出し */
.single-area h2,
.page-area h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 1em;
  border-left: 4px solid #ff6600;
  padding-left: 10px;
  background-color: #fef9f5;
  line-height: 1.6;
}

/* ===============================
   共通見出しスタイル h2〜h5（ボーダー装飾付き）
   =============================== */

.single-area h2,
.page-area h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2em 0 1em;
  padding-left: 12px;
  border-left: 4px solid #ff6600;
  background-color: #fef9f5;
  line-height: 1.6;
}

.single-area h3,
.page-area h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.8em 0 0.8em;
  padding-left: 10px;
  border-left: 3px solid #ffa500;
  background-color: #fffaf0;
  line-height: 1.5;
}

.single-area h4,
.page-area h4 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1.5em 0 0.7em;
  padding-left: 8px;
  border-left: 3px solid #cccccc;
  background-color: #f9f9f9;
  line-height: 1.4;
}

.single-area h5,
.page-area h5 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.2em 0 0.6em;
  padding-left: 8px;
  border-left: 2px solid #dddddd;
  background-color: #fcfcfc;
  line-height: 1.4;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .single-area h2,
  .page-area h2 {
    font-size: 1.15rem;
  }

  .single-area h3,
  .page-area h3 {
    font-size: 1.05rem;
  }

  .single-area h4,
  .page-area h4 {
    font-size: 1rem;
  }

  .single-area h5,
  .page-area h5 {
    font-size: 0.95rem;
  }
}
.related-post-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-thumbnail {
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.related-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.related-post-title {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.widget_block ul li a {
  display: block;
  padding: 6px 10px;
  color: #333;
  text-decoration: underline;
  font-weight: 500;
  transition: background 0.3s;
}

.widget_block ul li a:hover {
  background: #f9f9f9;
  color: #ff6600;
  text-decoration: none;
}
h1.entry-title, .single-post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 768px) {
  h1.entry-title, .single-post-title {
    font-size: 1.4rem;
    line-height: 1.5;
    word-break: break-word;
  }
}

.wp-block-preformatted img{
    margin: 0 auto;
}

/* -------------------------------
   Single Post のリストデザイン
-------------------------------- */
.single-area .entry-content ol,
.single-area .entry-content ul {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.single-area .entry-content ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.single-area .entry-content ul {
  list-style-type: disc;
  list-style-position: outside;
}

.single-area .entry-content li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.6em;
  padding-left: 0.3em;
  color: #333;
}

/* ネストしたリストのデザイン調整 */
.single-area .entry-content ul ul,
.single-area .entry-content ol ol {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
  padding-left: 1.2em;
  font-size: 0.95rem;
}

.single-area .entry-content li::marker {
  color: #ff6600;
}

/* Moina + Bootstrap 用ページネーションカスタム */
.custom-pagination {
  margin: 3rem 0 0;
  text-align: center;
}
.custom-pagination .pagination {
  justify-content: center;
  gap: 8px;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
.custom-pagination .page-item {
  margin: 0;
}
.custom-pagination .page-link {
  color: #333;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  transition: background-color 0.2s ease;
}
.custom-pagination .page-link:hover {
  background-color: #f5f5f5;
  color: #000;
}
.custom-pagination .page-item.active .page-link {
  background-color: #ff6600;
  color: #fff;
  font-weight: 600;
}

.related-title,
.popular-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-left: 6px solid #ff6600;
    padding-left: 0.75rem;
}

.related-post-card,
.popular-post-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.related-post-card:hover,
.popular-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-post-title,
.popular-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.related-post-card:hover .related-post-title,
.popular-post-card:hover .popular-post-title {
    color: #ff6600;
    text-decoration: underline;
}

.related-thumbnail img,
.popular-thumbnail img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.breadcrumbs-area{
  margin-bottom: 0 !important;
}

.entry-content a{
  text-decoration: underline;
}
.widget-area a{
  text-decoration: underline;
}

.image-credit small {
  display: block;
  font-size: 0.6rem;
  color: #666;
  margin-top: .5rem;
  text-align: center;
}

/* ぱんたロイド 吹き出しスタイル - サイト配色対応 */
.balloon-box {
    display: flex;
    align-items: flex-start;
    margin: 3em auto;
    max-width: 600px !important;
}

.balloon-box.left {
    flex-direction: row;
}

.balloon-box.right {
    flex-direction: row-reverse;
}

.balloon-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 25%;
    margin-right: 20px;
}

.balloon-text {
    background: #fffbea;
    border: 2px solid #ffd26b;
    border-radius: 12px;
    padding: 1em;
    position: relative;
    max-width: 100%;
    font-size: 0.8em;
    line-height: 2.4;
    color: #333;
    max-width: 420px !important;
}

.balloon-box.left .balloon-text::before {
    content: "";
    position: absolute;
    top: 1em;
    left: -16px;
    border: 8px solid transparent;
    border-right: 8px solid #ffd26b;
}

.balloon-box.left .balloon-text::after {
    content: "";
    position: absolute;
    top: 1em;
    left: -13px;
    border: 7px solid transparent;
    border-right: 7px solid #fffbea;
}

.balloon-box.right .balloon-text::before {
    content: "";
    position: absolute;
    top: 1em;
    right: -16px;
    border: 8px solid transparent;
    border-left: 8px solid #ffd26b;
}

.balloon-box.right .balloon-text::after {
    content: "";
    position: absolute;
    top: 1em;
    right: -13px;
    border: 7px solid transparent;
    border-left: 7px solid #fffbea;
}

/* ▼ スマホ表示対応 ▼ */
@media screen and (max-width: 768px) {
    .balloon-box {
        flex-direction: column !important;
        align-items: center;
    }

    .balloon-icon img {
        margin: 0 0 1em 0;
        width: 100px;
        height: 100px;
        object-fit: contain;
    }

    .balloon-text {
        font-size: 0.9em;
        line-height: 1.8;
    }

    .balloon-text::before,
    .balloon-text::after {
        display: none;
    }
}
.blog-area{
  padding-top: 20px;
}