p3 {
    font-size: 28px;
    font-weight: bold;
}

h1 {
    color: #ffffff;
    font-size: 72px;
    font-weight: 600;
    font-weight: bold;
    margin: 0px 0px 24px 0px;
    justify-content: flex-start;
    font-family: 'Arial', sans-serif;
}


header {
    text-align: left;
    padding: 192px 48px 192px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: block;
    unicode-bidi: isolate;
}

.no-marker {
  list-style-type: none;
}

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

ol {
  list-style-type: none;
}

body{
  background-color: #f4f4f4;
}

.article-wrapper {
  padding: 60px 132.333px;
  max-width: 1000px;
  background-color: #f4f4f4;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-category {
  display: inline-block;
  background-color: #0051a8;
  color: white;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  margin-right: 15px;
}

.article-date {
  font-size: 14px;
  color: #666;
}

.article-title {
  font-size: 28px;
  margin-top: 20px;
  line-height: 1.4;
  color: #222;
}

.article-box {
  background: #fff;
  padding: 80px 50px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  display: flex; /* 追加 */
  flex-direction: column; /* 追加 */
  align-items: center; /* 必要に応じて追加：水平方向中央揃え */
}

.article-image {
  width: auto; /* 変更：自動調整 */
  max-width: 80%; /* 追加：カードの幅に合わせて調整 */
  border-radius: 8px;
  margin-bottom: 30px; /* 既存：下の margin は維持 */
  margin-left: 20px; /* 追加：水平方向中央揃え */
  margin-right: 20px; /* 追加：水平方向中央揃え */
  margin-top: 30px;
  object-fit: cover;
}

.article-body h2 {
  font-size: 22px;
  margin-top: 30px;
  color: #333;
}

.article-body p {
  font-size: 16px;
  color: #555;
  margin: 20px 0px 20px 0px;
}




.videocontainer {
  text-align: center; /* 追加：iframe要素を中央寄せ */
  margin: 20px 0; /* 変更：上下のマージンを調整 */
  position: relative; /* 相対配置の基準 */
  text-align: center; /* placeholderを中央に */
}

.video-placeholder {
  position: absolute; /* 絶対配置でiframeの上に重ねる */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0; /* 背景色 (任意) */
  color: #999;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc; /* 枠線 (任意) */
}

/* iframeが読み込まれたらplaceholderを隠す (JavaScriptで制御) */
.videocontainer.loaded .video-placeholder {
  display: none;
}

/* iframeのスタイル (初期は非表示) */
.videocontainer iframe {
  width: 560px; /* 元の幅に固定 */
  height: 315px; /* 元の高さに固定 */
  max-width: none; /* 不要な最大幅を解除 */
  max-height: none; /* 不要な最大高さを解除 */
}



.browser-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap; /* スマホで縦並び */

}

#pagination_navi a{
  text-decoration: none;
  display: inline-block;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #002b66;
  text-align: center;
  padding: 8px 14px 8px 10px;
  border: 1px solid #8297b4;
  transition: all 0.4s cubic-bezier(0.03, 0.36, 0.18, 1) 0s;
}

#pagination_navi a:hover {
  border: 1px solid #002b66;
  background: #002b66;
  color: #fff;
}

.pagination_back a {
  background: #002b66;
  color: #fff;
  border: none;
}
.pagination_back a:hover {
  background: #004499;
}

#pagination2_navi a{
  text-decoration: none;
  background: #002b66;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  color: #ffff;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  text-indent: 10px;
  padding: 17px 65px;
  position: relative;
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.2s ease;
  transform: scale(1);
}

#pagination2_navi a:hover {
  transform: scale(1.1); /* ホバー時に拡大 */
}

#pagination2_navi a:active {
  transform: scale(0.8); /* クリック時に少し縮む */
}

hr{
    border-bottom: 0px solid #cccccc;
    border-left: 0px solid #cccccc;
    border-right: 0px solid #cccccc;
    border-top: 1px solid #cccccc;
    margin: 20px 0px 20px 0px;
}
