@charset "utf-8";
* {
  caret-color: transparent;
}
/* ▼▼ 投稿 ▼▼ */

#Wrapper .sub_inner {
    position: relative;
    width: 100%;
    height: 100vh !important;
    /* padding: 3.7% 20% 0 0; */
    overflow: hidden;
}

.news-detail{
	padding: 100px 0 0;
}
.news-detail {
	/*outline:2px solid red;*/
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 120px);
  line-height: 1.8;
  font-size: 16px;
  box-sizing: border-box;
}

.news-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.5em;
  text-align: left;
  letter-spacing: 0.03em;
}
.news-content p {
  font-size: 16px;
  line-height: 1.9;
}
.news-content a { text-decoration: underline; }
.news-content img { 
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto; }


.news-backlink {
  margin-top: 60px;
  text-align: center;
}

.news-backlink a {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #aaa;
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.news-content p:has(a[href$=".pdf"]) {
  margin-top: 1em; /* ← 1行分くらいの余白 */
}

.pdf-icon {
  display: inline-block;
  width: 21px;
  height: 21px;
  background: url('/wp/wp-content/themes/bento-smiles/img/icon-pdf.png') no-repeat center center;
  background-size: contain;
  margin-left: 4px;      /* テキストとの隙間を少し狭めに */
  vertical-align: -3px;  /* 文字のベースラインより少し下げるとバランス◎ */
}
.news-date{
	padding-bottom: 1em;
}

/* ▲▲ 投稿 ▲▲ */


.c-news-item { position: relative; }
.c-news-pdflink {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
}
@media (max-width: 767px) {
  .c-news-pdflink {
    position: static;
    transform: none;
    margin-top: 6px;
    display: inline-block;
  }
}


/* 共通ラッパ（他ページのラッパ名があればそれに合わせて） */
.l-container {
  max-width: 1080px;    /* 他ページの最大幅に合わせる */
  margin: 0 auto;
  padding: 0 24px;      /* サイドの呼吸 */
}

/* ニュース一覧の余白（ヘッダーや縦書きナビと被らないよう上部を広めに） */
.c-news-index {
  padding-top: 64px;
  padding-bottom: 120px;
}

/* h1の見た目を他ページに寄せる（フォントサイズなどはサイト基準に合わせて調整） */
.c-page-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 24px;
  letter-spacing: .05em;
}

/* リストの行間と区切り */
.c-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-news-item {
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}
.c-news-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.c-news-date { white-space: nowrap; }

/* ページネーションの位置を左寄せ→中央に */
.c-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

/* 既存の縦書きナビ（左側）が絶対配置で重なる場合の回避
   左にナビ幅があるなら、そのぶんだけ余白を足す（値は実際のナビ幅に合わせて調整） */
@media (min-width: 1024px) {
  .c-news-index {
    padding-left: 80px;   /* ← 縦ナビが被るなら調整。不要なら削除 */
    padding-right: 80px;  /* 右の筆文字ロゴなどの余白が要る場合も調整 */
  }
}

/* スマホ調整 */
@media (max-width: 767px) {
  .c-news-index { padding-top: 40px; padding-bottom: 80px; }
  .c-news-link { grid-template-columns: 100px 1fr;}
}


.c-news-item {
  position: relative;
}

/* アイコン分の“避けスペース”をタイトル側に確保 */
.c-news-link{
  padding-right: 40px;   /* ← アイコン21px + 余白で 36〜44px 目安。好みで調整 */
}

/* 既にある absolute 固定はそのまま活かす */
.c-news-item{ position: relative; }
.c-news-pdflink{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
}

/* スマホも同様に右側固定＋同じ余白を確保 */
@media (max-width: 767px){
  .c-news-link{ padding-right: 40px; }

  /* ※ここに残っている古い指定を削除/無効化してください
     例: .c-news-pdflink { position: static; ... } は不要 */
}