
body {
  background-color: #012415; /* こいグリーン系 */
  font-family: 'Open Sans';
  margin: 0 !important;
}
.backgreen{
  background-color: #e6f0e6; /* 背景色 */
  margin: 0px 40px;/* 左右に余白を */
}

/* 中央に左右2カラムを並べる */
.container {
  justify-content: flex-start; /* 左寄せ */
  align-items: flex-start;
  gap: 40px; /* 左右の間隔 */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  margin: 0;                   /* 中央寄せをやめる */

}
.single-container {
  display: flex;
  justify-content: flex-start; /* 左寄せ */
  align-items: flex-start;
  gap: 20px; /* 左右の間隔 */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  margin: 0;                   /* 中央寄せをやめる */

}
.error-container {
  display: flex;
  justify-content: flex-start; /* 左寄せ */
  align-items: flex-start;
  gap: 10px; /* 左右の間隔 */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  margin: 0;                   /* 中央寄せをやめる */

}

.header {
  position: relative;
 text-align: center;
  color: white;
  height: 200px; /* ヘッダーの高さを固定 */
  overflow: hidden; /* はみ出した部分を隠す */
}

a {
  text-decoration: none;
  color: #000;
}
.header img {
  width: 100%;
  height: 100%; /* 親要素に合わせる */
  object-fit: cover; /* 画像の縦横比を保ちながらはみ出した部分をカット */
  object-position: top; /* 上側を優先して表示 */
  /* filter: brightness(0.6);  画像を暗くして文字を見やすく */
}

.header-text,
.header-text a{
  font-family: 'Playfair Display', serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 72px;
  color: #fff;
  font-weight: bold;
}
    .carousel-caption {
  background: rgba(0, 64, 0, 0.5); /* 半透明グリーン */
  border-radius: 10px;
  padding: 1rem;
    }
#socjCarousel {
  height: 300px; /* 全スライド共通の高さ */
  width : 80%:
}

#socjCarousel .carousel-item img {
  height: 100%;   /* 親の高さに合わせる */
  object-fit: cover; /* はみ出した部分はカット */
}

.slider-container {
  max-width: 800px; /* 好きな幅に調整 */
  height: 420px; /* 好きな最大高さ */
  margin: 20px auto; /* 上下左右の余白を均等に */
  border: 1px solid #ccc; /* 枠線 */
  padding: 10px; /* 内側の余白 */
  border-radius: 8px; /* 角を丸くする場合 */
  text-align: center;     /* 画像を中央揃え */
}
.carousel-inner img {
  width: 100%;
  max-height: 400px; /* 好きな最大高さ */
 width: auto;   /* 自動で幅調整 */
  height: auto;  /* 自動で高さ調整 */
  margin: 0 auto;    /* 中央に配置 */
  border-radius: 8px; /* 画像の角を丸くしたい場合 */
  object-fit: contain; /* 枠内に収める */
}

/* 左ボタンを少し内側に */
.carousel-control-prev {
    left: -15px; /* デフォルトは 0 */
}

/* 右ボタンを少し内側に */
.carousel-control-next {
    right: -15px; /* デフォルトは 0 */
}
/* 上下の位置も変えたい場合 */
.carousel-control-prev,
.carousel-control-next {
    top: 70%; /* デフォルトは 50% */
    transform: translateY(-50%); /* 縦中央 */
}

/* 本文 */
.main-content {
  padding: 20px;
}

.main-box-txt {
  background-color: #fff;      /* 白背景 */
  padding: 20px;           /* 内側余白 */
  border-radius: 8px;      /* 角丸 */
  box-shadow: 0 0 10px rgba(0,0,0,0.05); /* ほんのり影 */
  flex: 0 0 70%;               /* 幅を70%に固定 */
/*  margin: 0 ;                   不要な余白を削除 */
    margin-bottom: 20px;
}

.single-box-txt {
  background-color: #fff;      /* 白背景 */
  padding: 20px;           /* 内側余白 */
  border-radius: 8px;      /* 角丸 */
  box-shadow: 0 0 10px rgba(0,0,0,0.05); /* ほんのり影 */
  flex: 0 0 68%;               /* 幅を70%に固定 */
   margin: 20px 5px ;                   不要な余白を削除 */
}
.info_name {
  font-family: "M PLUS 2", sans-serif;
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2.search_word,
h2.search_word a{
  font-family: "M PLUS 2", sans-serif;
  font-size: 24px;
  line-height: 44px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #012415;
}

h2,
h2 a{
  font-family: "M PLUS 2", sans-serif;
  font-size: 24px;
  line-height: 44px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #fff;
}
h3,
h3 a{
  font-family: "M PLUS 2", sans-serif;
  font-size: 24px;
  line-height: 44px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #012415;
}
/*ボタン*/
.more_read{
  display: inline-block;
  padding: 0 25px;
  border: 1px solid;
  font-size: 13px;
  line-height: 40px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  color: #012415;
  text-decoration: none;
}

.more_read:hover {
  background-color: #012415;
  color: #fff;
}
.old-post-link {	/*使ってない */
  background-color: #fff;
  display: block;       /* 横幅いっぱい */
  text-align: center;   /* 中央寄せ */
  margin-top: 20px;     /* 上余白 */
}

/* page 遷移 */
/* ページネーション全体 */
.pagination {
  display: flex;
  flex-wrap: wrap;        /* ← 折り返し許可 */
  justify-content: center; /* ← 中央揃え */
  gap: 8px;               /* ← 適度な隙間を追加 */
  margin: 30px 0;
  padding: 0 10px;
}
/* ページ番号リンク */
.pagination a.page-numbers,
.pagination .current,
.pagination .dots {
  display: flex;               /* 中央寄せのために flex に変更 */
  align-items: center;
  justify-content: center;
  padding: 1px 12px;
  min-width: 38px;
  height: 40px;
  border: 1px solid;
  color: #012415;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  background-color: #fff;
  text-decoration: none;
  margin-top: 10px;
  box-sizing: border-box;
}

.pagination .current {
  background-color: #ECF8EA;
}

.pagination a.next,
.pagination a.prev {
  font-weight: bold;
}
/* ホバー時 */
.pagination a.page-numbers:hover {
  background-color: #012415;
  color: #fff;
}

/* 現在のページ */
.pagination .current {
}

/* 「古い記事」「新しい記事」リンク用 */
.pagination a.next,
.pagination a.prev {
  font-weight: bold;
}

.post-categories,
.post-categories a {
/*    display: inline-block;*/
    text-align: center;
    font-size: 12px;
    color: #012415;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.post-title{
    font-family: "M PLUS 2", sans-serif;
    text-align: center;
    font-size: 40px;
    line-height: 44px;
    letter-spacing: 0.5px;
    color: #012415;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.post-meta{
   padding-bottom: 15px;
}
.post-date{
    color: #a1a1a1;
    font-weight: 400;
    text-align: center;
    font-style: italic;
}
.post-content{
   padding-bottom: 15px;
}
.post-navigation {
  display: flex;
  justify-content: flex-start;  /* 左寄せ */
  gap: 20px;                    /* 前後リンクの間隔 */
  margin-top: 20px;             /* 白い枠との余白 */
  flex-basis: 70%;              /* 左カラム幅と合わせる */
}

.post-navigation a {
  color: #006400;               /* 濃い緑リンク */
  text-decoration: none;
  transition: color 0.2s;
}

.post-navigation a:hover {
  color: #009900;               /* ホバー時に明るく */
}
/* 右メニュー */
.sidebar {
  flex: 0 0 28%;               /* 幅を30%に */
}
.widget_block {
  position: relative;
  padding: 5px 0 10px 5px;
  background-image: url('https://socj.jp/blog/wp-content/themes/socj/images/cate_backg.webp');
  background-size: 100% 100%;
  z-index: 0;
  overflow: hidden;
}

/* input text */
.wp-block-search__inside-wrapper {
  display: flex;       /* 横並びにする */
  align-items: flex-end;    /* 下ぞろえ */
  justify-content: center;      /* 中央に寄せる */
}

.search__input {
  width: 75%;
  padding: 12px;
  font-size: 14px;
  border-width: 1px;
  border-style: solid;
  background-color: #ffffff;
  color: #464646;
  margin-right: 1px;    /* ボタンとの間に1px空ける */
  box-sizing: border-box;
}

.search-button {
  color: #ffffff;
  background-color: #333333;
  padding: 12px 10px;       /* 高さを合わせたいとき調整 */
  width: 60px;
  border: 0;
  -webkit-appearance: button;
  word-break: normal;
  text-transform: none;
  margin: 0;
  box-sizing: border-box;
  outline: 0 !important;
  position: static;     /* absoluteを解除 */
}

.right_side_menu_white{
  padding: 5px 0 5px 5px;
  position: relative;
  background-image: url('https://socj.jp/blog/wp-content/themes/socj/images/cate_backg.webp');
  background-size: 100% 100%;
  z-index: 0;
  overflow: hidden;
  box-sizing: inherit;
  outline: 0 !important;
  line-height: 24.6px;
}
.right_side_menu_green{
  padding: unset;
  margin: unset;
}

.right_side_title{
  background-image: url('https://socj.jp/blog/wp-content/themes/socj/images/title_bg_bar.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: auto;
  height: 25px;
  font-size: 14px;
  font-weight: bold;
  color: #FFF !important;
  padding: 4px 0 0 12px;
  display: block;
  line-height: 1;
  margin-right: 5px;
}
.list-group {
  list-style: none;   /* 黒丸を消す */
  padding-left: 0;    /* 左側の余白も消す */
  margin: 0;      /* 必要なら余白調整 */
}
.group-list-box{
  color: #012415 !important;
  font-size: 12px;
  margin-right: 8px;
  padding-right: 8px;
  text-decoration: none;
  margin: 2px 5px 1px 4px;
}
.side-ul{
  margin: 8px;

}
.side-menu-link {
  text-decoration: none; /* アンダーライン消す */
  color: #333; /* 通常時の文字色 */
  transition: color 0.2s ease; /* 色が変わる時に滑らかに */
}

.side-menu-link:hover {
  color: #000; /* 濃い色にする */
  /* font-weight: bold;  太字にしたい場合はここを追加 */
}

.footer {
  background-color: #012415; /* 背景色 */
  color: #fff;      /* 文字色 */
  width: 100%;       /* 横幅いっぱい */
  font-size: 13px;
  padding: 15px 20px;    /* 余白 */
  text-align: right;     /* 中身右寄せ */
}

.footer a {
  color: #fff;       /* リンクも白に */
  text-decoration: none;
}
.footer-copyright{
  margin-bottom: 15px;
  margin-right: 10px;
}

#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: rgba(70, 70, 70, 0.3);
  color: white;
  font-size: 30px;
  width: 60px;
  height: 60px;
  border: none;
  display: none;
  z-index: 1000;
  transition: opacity 0.3s, background-color 0.3s;;
}

#backToTopBtn:hover {
  background-color: rgba(70, 70, 70, 0.6);
}

/* エラー */
        .error-box-txt {
            background: #012415; /* ダークグリーン */
            color: #e6f0e6; /* 明るいグリーン系 */
            height: 100vh;
           padding: 20px;           /* 内側余白 */
           flex: 0 0 70%;               /* 幅を70%に固定 */
            align-items: center;
            text-align: center;
            font-family: 'Segoe UI', sans-serif;
	}

        .error-code {
            font-size: 10rem;
            font-weight: bold;
            color: #FFD700; /* 黄色アクセント */
        }
        .error-message {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            color: #ffffff;
        }
        .btn-home {
            background: #FFD700; /* 黄色 */
            color: #012415; /* ダークグリーン文字 */
            font-weight: bold;
            border: none;
            padding: 0.75rem 2rem;
        }
        .btn-home:hover {
            background: #e6e600; /* 少し濃い黄色 */
        }
        .planet {
            width: 100px;
            margin: 2rem auto 0;
            animation: float 3s infinite ease-in-out;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
        }
@media screen and (max-width: 768px) {
   .header {
     height: 150px;
  }
  .header img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    /* object-fit: cover; ← contain → cover に変更 */

  }
.header-text,
.header-text a{
    font-size: 34px;
  }
  #socjCarousel {
    height: 200px;
  }

  #socjCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
  }
    .slider-container {
        height: auto;
        padding: 0; /* 余白を詰めたい場合 */
    }

    .slider-container .carousel-item img {
        height: auto;
        object-fit: contain;
        padding: 5px; /* 余白 */

    }
.carousel-caption {
    height: 100px;
    font-size: 10px
}
  h2, h2 a {
    font-size: 12px;
    line-height: 12px;
  }
  .container {
    flex-direction: column;
    gap: 20px;
  }
/* 本文 */
  h3, h3 a,
.post-title {
    font-size: 14px;
    line-height: 14px;
  }
.main-content {
    font-size: 12px;
}
.post-date {
    font-size: 12px;
}
.post-content{
   overflow-wrap: break-word;
   word-break: break-word; /* Safari対応 */

    font-size: 12px;
    text-align: justify;
}
.post-navigation a {
    font-size: 12px;
}
  .main-box-txt, .sidebar {
   overflow-wrap: break-word;
   word-break: break-word; /* Safari対応 */
    flex: 1 1 auto;
    width: 100%;
  }
  .single-container {
    flex-direction: column;
    gap: 20px;
  }
}
