@charset "UTF-8"; /* CSS変数の宣言 */
/* サブページで、テンプレートで対応しきれないスタイルをこちらに記入します。ASのみ書き込み可能 */
/*参考資料*/
ul.list-disc {
  margin-left: 5em;
  line-height: 2.2;
}

ul.list-disc li {
  list-style-type: disc !important;
}
@media (max-width: 767.999px) {
  .list-design4 > ul.list-disc {
    width: 95%;
  }
  ul.list-disc {
    margin-left: 2em;
    line-height: 1.8;
  }
}

/*sectionのh4*/
[class^="list-design"] > h4,
[class^="container"] h4 {
  position: relative;
  font-size: 1.8em;
  padding: 0.3em 0;
  /*left:10px;
  left:50px;*/
  left: 25px;
  z-index: 3;
  margin-top: 2.5rem;
}

[class^="list-design"] > h3::before,
[class^="container"] h3::before {
  position: absolute;
  content: "";
  top: 10px;
  /*left:-55px;*/
  left: -25px;
  width: 8px;
  height: 40px;
  background: rgba(var(--secondaccentColorRGB), 0.5);
  z-index: -1;
  margin: rem;
  color: red;
}

.intro-red {
  color: red;
}

.intro-txt {
  margin-top: -2em;
}

.intro-txt {
  margin-bottom: -3em;
}

#cont4 {
  margin-bottom: 0.7em;
} /* 那須町の見どころの下部余白を調整 */

.container.link h4 {
  margin-top: 0.3em; /* h4の上部余白を調整 */
}

h2.rindou {
  line-height: 1.5;
  padding: 0.5em;
  display: flex;
  align-items: center; /* 見出し文字を縦中央配置 */
}

h2.rindou::before {
  content: "";
  display: inline-block;
  width: 70px; /* 画像の大きさ */
  height: 70px; /* 画像の大きさ */
  background-image: url("../images/rindou_icon.png");
  background-position: center middle; /* 画像の配置 */
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 1rem; /* 画像と見出し文字を少し離す */
}

#cont4 {
  color: #265706;
}

h2.heading-left {
  color: #262626;
}

/* 「関連サイト　那須町の見どころ」見出しに短い太線 */
#cont4 {
  position: relative;
  padding-bottom: 0.2em; /* 見出し文字と線の距離：0.35–0.7emで微調整 */
  margin-bottom: 1em; /* 見出し下の余白：周囲の要素との間隔 */
}

/* 左寄せの短い太線（アクセントライン） */
#cont4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* 見出しのボトムに接する */
  width: 100%; /* 線の長さ：120–200pxで調整。全幅なら 100% */
  height: 1px; /* 線の太さ：3–5px 推奨（見出しの太さに合わせて） */
  background-color: #265706; /* 線の色 */
  /* 角丸が欲しい場合のみ有効化：
  border-radius: 2px;
  */
}

/*（任意）小さい画面では少し短く・細くする */
@media (max-width: 480px) {
  #cont4::after {
    width: 100%;
    height: 3px;
  }
}

#cont4 ~ ul {
  margin-left: 4em;
}

/* h2 見出しに短い太線を追加 */
h2.heading-left.rindou {
  position: relative;
  padding-bottom: 0.2em; /* 文字と線の距離：0.35–0.7emで調整 */
  margin-bottom: 1em; /* 見出し下の余白 */
}

/* 左寄せの短い赤い太線 */
h2.heading-left.rindou::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%; /* 線の長さ：120–200px で微調整。全幅なら 100% */
  height: 1px; /* 線の太さ：3–5px 推奨 */
  background-color: #265706; /* 
  /* 少し柔らかくしたい時：
  border-radius: 2px;
  */
}

.item h4 {
  color: #265706;
}

h4 {
  font-weight: bold;
}

/* h4 だけ小さくする */
.container.link h4 {
  font-size: 1.5em; /* 好きなサイズに調整 */
}

/* リストは通常サイズに戻す（h4 の継承を打ち消す） */
.container.link ul.list-disc {
  font-size: 1em; /* ここを変えればリストの大きさも調整可能 */
}

.container.link h4 {
  font-weight: normal;
}

.heading-green {
  position: relative;
  padding-left: 14px; /* お知らせ　外部リンク　縦棒の分だけ余白 */
  margin-bottom: 1em;
  border-bottom: 1px solid #3a8b3a; /* 緑の下線 */
  line-height: 1.4; /* 縦棒の高さ調整に重要 */
}

.heading-green::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0; /* h3 の上端に合わせる */
  width: 4px; /* 縦棒の太さ */
  height: 100%; /* 行の高さに合わせる → 確実に見える */
  background-color: #3a8b3a;
}
