/* ======================================================================
   01_base.css
   - Base elements and global behaviors
======================================================================== */
html {
  font-size: 18px;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;

  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;

  transition:
    text-decoration-color 0.18s ease,
    text-decoration-style 0.18s ease;
}

/* hover：ドット→実線（色はそのまま） */
a:hover {
  color: inherit;
  text-decoration-style: solid;
}

/* 画像リンクは下線なし */
a img {
  cursor: pointer;
  text-decoration: none;
}

/* フォーカス */
a:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}

a:focus-visible img {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}

body.is-menu-open {
  overflow: hidden;
}

body.no-transition .global-nav,
.global-nav.no-transition {
  transition: none !important;
}

/* ボタン系は下線なし */
.c-button,
.news-item,
.pager-circle,
.floating-cta__btn,
.global-nav a {
  text-decoration: none;
}

/* TOPIXは下線なし */
.hero-topix a {
  text-decoration: none !important;
}

.hero-topix a:hover {
  background: rgba(0, 0, 0, 0.04); /* ほんのり */
  border-radius: 3px;
}
/* =========================
   PDFリンク：シンプル小アイコン
========================= */

/* PDFリンクだけにアイコンを付ける */
a[href$=".pdf"] {
  display: inline-block; /* 下線を一体化させる */

  text-decoration: underline dotted;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* hover */
a[href$=".pdf"]:hover {
  text-decoration-style: solid;
}

/* アイコン */
a[href$=".pdf"]::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-left: 10px;

  background: url("../images/icon-pdf.svg") no-repeat center;
  background-size: contain;

  vertical-align: middle;
}

.c-button[href$=".pdf"]::after {
  display: none;
}
/* =========================
   PDF一覧ページではPDFアイコンを出さない
========================= */

/* a::after で付けているPDFアイコンを消す */
.pdf-page a[href$=".pdf"]::after {
  content: none !important;
}

/* news-title::after を使っている場合も消す */
.pdf-page .news-title::after {
  content: none !important;
}

/* inline-flexを使っていた場合のレイアウト戻し */
.pdf-page .news-title {
  display: inline; /* 元の状態に戻す */
}
