.newsdetailwrp {
	padding-top: 0%;
	padding-bottom:5%;
}
.news_newsdetail_wrp {
	padding-top: 150px;
	padding-bottom:150px;
}


.news-detail-container {
    position: relative;
    padding: 5% 8% 8% 8%; 
    max-width: 1100px;
    margin: 0 auto;
	margin-bottom: 5%;
    color: #fff;
    font-family: "source-han-sans-japanese", sans-serif;
    z-index: 200 !important;
    outline: none !important;
    border: 1px solid #333; 
    background-color: rgba(0,0,0,0.3); 
}


* {
    text-decoration: none !important;
    text-decoration-skip-ink: none !important;
    text-decoration-thickness: 0 !important;

}

/* タグ */
.news-tags {
    background-color: #FF3300; /* タグの背景色 */
    color: black; /* 文字色 */
    font-size: 13px;
    font-weight: 800;
    padding: 0px 10px; /* 内側の余白 */
   
    display: inline-block;
    white-space: nowrap;
  line-height: 1.5; vertical-align: middle;
}
/* 日付 */
.news-date {
    font-size: 1em;
    font-weight: 500;
    color: #bbb; /* ややグレー */
    margin-bottom: 0px;
  vertical-align: middle;
  margin-left: 8px;
}

/* 記事タイトル */
.news-detail-container h2 {
    font-size: 4rem;
    line-height: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
  letter-spacing: -0.02em;
    color: #FF3300;
  font-feature-settings: "palt" 1; 
  text-align: left;
}
/*小見出し*/
.news-heading {
    font-size: 1.7em;
    font-weight: bold;
  line-height: 1.5em;
    color: #fff;
    margin-bottom: 20px;
  text-align: left;
}


/*sectionの小見出し*/
.section-title {
   margin-top: 100px;
  display: block;
    font-size: 2.5rem; /* 大きさ調整 */
    font-weight: bold;
    color: #FF3300; /* 目立つように赤 */
    margin-bottom: 20px; 
  padding-bottom:10px;
  border-bottom:1px solid #888!important;

}

/*sectionの本文*/
.section-body {
font-size: 2rem;
  text-align: justify;
  line-height: 1.8;
}


.news-detail-container .news-image {
    width: 80%;
    display: block;
    margin: 50px auto;
    height: auto;
    margin-bottom: 50px;
    border: 1px solid #444;
}

/* 記事本文 */
.news-content {
    font-size: 2rem;
    line-height: 1.8;
    color: #fff;
	padding-left:0!important;
}

.news-detail-container a {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background-color: #FF3300;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.news-detail-container a:hover {
    background-color: #cc2900;
}



/*HTML側*/

.news-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-content strong {
  font-weight: bold;
  color: #FF3300; /* 強調色 */
}

.news-content ul {
  padding-left: 20px;
  list-style-type: disc;
}

.news-content li {
  margin-bottom: 5px;
}

.news-content h2, .news-content h3 {
  margin-top: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.news-content a {
  color: #007bff;
  text-decoration: underline;
}

.news-back {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  text-decoration: none;

}

.news-back:hover {
  background-color: #0056b3;
}

.section-body figure img {
 max-width: 85% !important; 
    display: block !important;
    margin: 20px auto !important;
}

.btt {
  position: relative;
  width: 20%;
  margin: 0 auto;
  z-index: 100;
  margin-bottom: 5%;
}



@media screen and (min-width: 320px) and (max-width: 1050px) {
  .news_newsdetail_wrp {
	padding-top: 50px;
	padding-bottom:150px;
}
  .news-detail-container h2 {
    font-size: 2.5rem;
    line-height: 1.3em;
    font-weight: 700!important;
    margin-bottom: 20px;
  letter-spacing: -0.02em;
    color: #FF3300;
  font-feature-settings: "palt" 1; 
  text-align: left;
}
  
	.newsdetailwrp {
	padding-top: 0%;
	padding-bottom:0;
		padding-left:0;
		padding-right:0;
}
.news-detail-container {
    position: relative;
    padding: 6% 5% 6% 5%; 
    max-width: 1100px;
    margin: 0 auto;
	margin-bottom: 5%;
    color: #fff;
    z-index: 200 !important;
    outline: none !important;
    border: 0px solid transparent; 
    background-color:transparent; 
}
	.btt {
  position: relative;
  width: 70%;
  margin: 15% auto;
  z-index: 100;
  margin-bottom: 25%;
}
	.news-detail-container {
  position: relative;
			padding-top: 10%;
	padding-bottom:5%;
		padding-left:5%;
		padding-right:5%;
    max-width:inherit;
    margin: 0 auto;
    color: #fff; /* 文字は白 */
    font-family: "source-han-sans-japanese", sans-serif;
  z-index: 200!important;
    outline: none !important; /* フォーカス時の青い線を消す */
padding-left:9%;
		padding-right:9%;
}
	
	/* タグ */
.news-tags {
    background-color: #FF3300; /* タグの背景色 */
    color: black; /* 文字色 */
    font-size: 13px;
    font-weight: 800;
    padding: 0px 10px; /* 内側の余白 */
   
    display: inline-block;
    white-space: nowrap;
  line-height: 1.5; vertical-align: middle;
}
/* 日付 */
.news-date {
    font-size: 1.2em!important;
    font-weight: 500;
    color: #bbb; /* ややグレー */
    margin-bottom: 0px;
  vertical-align: middle;
  margin-right: 8px;
}

/*小見出し*/
.news-heading {
	margin-top: 4%;
    font-size: 2rem;
	line-height: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0px;
  text-align: left;
}
	/* 記事本文 */
.news-content {
  font-size: 1.8rem;
  text-align: justify;
  line-height: 1.8;
}
	
.news-detail-container .news-image {
    width: 100%;
    display: block;
    margin: 30px auto;
    height: auto;
    margin-bottom: 30px;
    border: 1px solid #444;
}

/*sectionの小見出し*/
.section-title {
   margin-top: 60px;
  display: block;
		line-height: 1.3em;
    font-size: 2.5rem; /* 大きさ調整 */
    font-weight: bold;
    color: #FF3300; /* 目立つように赤 */
    margin-bottom: 20px; 
  padding-bottom:10px;
  border-bottom:1px solid #888!important;

}

  .section-body figure img{
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
    display: block !important;
  }

  /* figureもはみ出し禁止 */
  .section-body figure{
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* タブレット (768px〜1050px) の調整 */
@media screen and (min-width: 768px) and (max-width: 1050px) {
	/* 記事タイトル */
.news-detail-container h2 {
		margin-top: 3%;
    font-size: 4vw;
    line-height: 1.2em;
    font-weight: 700;
    margin-bottom: 0px;
  letter-spacing: 0em;
    color: #FF3300;
  font-feature-settings: "palt" 1; 
  text-align: left;
}
}

.news-detail-container .news-content a {
    background: none !important;
    color: #007bff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: normal !important;
    display: inline !important;
}

@media screen and (max-width: 1050px) {
  .news-content p {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }

  .news-content p a {
    margin-left: 1.5em; /* インデントして自然な見た目に */
    word-break: break-all;
  }
  
}

.news-content p {
  margin: 0 0 0.5em 0;
  line-height: 1.6;
}

.news-content br {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  height: 0;
}

.news-content a,
.news-content u {
  display: inline;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  word-break: break-all;
}


figure img {
    width: 100% !important;
    height: auto !important; 
    object-fit: contain !important; 
    display: block !important;
    margin: 0 auto !important; 
}

figure {
    width: 100% !important;
    margin: 0; 
    padding: 0; 
	margin-top: 20px;
	margin-left:0%;
}


.news-detail-container a {
    color: #007bff; /* 青文字 */
    background-color: transparent; /* 背景を透明に */
    padding: 0; /* パディングをリセット */
    font-weight: normal; /* フォントの太さを通常に */
    text-decoration: underline; /* 下線を追加 */
    border: none; /* 枠線なし */
}

.news-detail-container a:hover {
    color: #0056b3; /* ホバー時の色 */
    background-color: transparent; /* 背景はそのまま */
}

.news-detail-container a {
    color: #007bff; /* 青文字 */
    background-color: transparent; /* 背景を透明に */
    padding: 0; /* パディングをリセット */
    font-weight: normal; /* フォントの太さを通常に */
    text-decoration: underline; /* 下線を追加 */
    border: none; /* 枠線なし */
    margin-top: 0; /* 上の余白をリセット */
    margin-bottom: 0; /* 下の余白もリセット */
}

.news-detail-container p {
    margin: 0; /* pタグの余白をリセット */
}

.news-detail-container a:hover {
    color: #0056b3; /* ホバー時の色 */
    background-color: transparent; /* 背景はそのまま */
}

.news-title {
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
	color:#000;
}


/* 通常のリンク（本文内のaタグなど） */
.news-detail-container a {
  color: #007bff; /* 青文字 */
  background-color: transparent;
  padding: 0;
  font-weight: normal;
  text-decoration: underline;
  border: none;
  margin-top: 0;
  margin-bottom: 0;
}

.news-detail-container a:hover {
  color: #0056b3;
  background-color: transparent;
}

/* 段落の余白リセット */
.news-detail-container p {
  margin: 0;
}

/* ボタンラッパー（中央寄せ・上下マージン） */
.news-button-wrapper {
  text-align: center;
  margin: 2em 0;
}

/* ボタンスタイル本体（上書きを防ぐためセレクタ強化） */
.news-detail-container .news-button {
  display: inline-block;
  padding: 1% 5%;
  background: #ff3300;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.4vw;
  transition: background 0.3s ease;
  margin-top: 5%;
  width: 60%;
    white-space: normal;
  word-break: break-word;
  line-height: 1.3em;
}

/* ボタンのホバー時 */
.news-detail-container .news-button:hover {
  background: #cc2900;
  color:#fff;
}
@media screen and (max-width: 767px) {
  .news-detail-container .news-button {
    display: block;
    width: 100%;
    padding: 1em 1em;
    font-size: 4.5vw;
    margin-top: 1.5em;
    word-break: break-word;  
    white-space: normal;      
    text-align: center;  
    line-height: 1.1em;
  }

  .news-button-wrapper {
    text-align: center;
    padding: 0 5%;
  }
}
/* 画像・video は共通（iframeは含めない） */
.news-detail-body img,
.news-detail-body video{
  display: block;
  width: auto;
  max-width: 620px;
  height: auto;
  margin: 24px auto;
  margin-top: 50px!important;
  margin-bottom: 50px!important;
}

/* iframe（動画埋め込み）は専用で統一：幅制限して中央（勝ち切る） */
.news-detail-body iframe{
  display: block;
  width: min(720px, 100%) !important; /* ←ここが重要 */
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  margin: 24px auto !important;
}

/* microCMS側で width/height 属性や inline style が入っても上書き */
.news-detail-body iframe[width],
.news-detail-body iframe[height]{
  width: min(720px, 100%) !important;
  height: auto !important;
}

/* 画面が狭い時 */
@media (max-width: 1050px){
  .news-detail-body img,
  .news-detail-body video{
    max-width: 80%;
  }

  .news-category {
    font-size: 1rem;
    font-weight: bold;
    padding: 0 10px 1px 10px;
    display: inline-block;
    background-color: #FF3300;
    color: #fff!important;
    z-index: 100;
  }
}

.news-detail-body p:has(> iframe),
.news-detail-body div:has(> iframe){
  max-width: 720px;
  margin: 24px auto;
}

/* iframe自体もラッパー幅に追従させる */
.news-detail-body iframe{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

@media (max-width: 1050px){
  .news-detail-body p:has(> iframe),
  .news-detail-body div:has(> iframe){
    max-width: 100%;
    margin: 24px 0;   /* ←左右autoを消す */
  }
}

.news-excerpt {
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
