/*
 * style.css（旧WPテーマ）を変更せずに、読みやすさだけを整える上書き。
 * 配色・レイアウト構成・ロゴは変えない。
 */

/* 本文の行間と折り返し */
html {
  line-height: 1.75;
}

body {
  color: #1c1f26;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  letter-spacing: 0.04em;
  text-rendering: optimizeLegibility;
}

html[lang='en'] body {
  letter-spacing: 0.01em;
}

/* 見出し・ラベルは詰め気味に */
h1,
h2,
h3,
.p-headline__ja,
.p-list-access__info .info-ttl,
.l-single-news .l-single__title .title-txt,
.l-single-product .l-single__title {
  line-height: 1.5;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* 英字の大見出しは元の詰まった行間を保つ */
.p-mainvisual__home__ttl,
.l-cta__txt {
  line-height: 1.3;
}

a {
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid #0041ff;
  outline-offset: 3px;
}

/* NEWS一覧 */
.p-list-news a {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.p-list-news a:hover {
  color: inherit;
  background: #f3f6ff;
}

.p-list-news a span {
  border-radius: 4px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.p-list-news a p {
  line-height: 1.6;
}

/* 記事本文 */
.l-single__body * {
  line-height: 1.9;
}

.l-single__body p {
  margin: 1.25em 0;
}

.l-single-news .l-single__title .title-data {
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25em;
}

/* 会社概要などの表 */
.p-table__normal th,
.p-table__normal td {
  line-height: 1.8;
}

.p-table__normal th {
  color: #3a4150;
  font-weight: 700;
  letter-spacing: 0.06em;
}

@media screen and (min-width: 768px) {
  .p-table__normal th,
  .p-table__normal td {
    padding: 20px 16px;
  }
}

.p-table__normal td ul {
  margin-top: 0.25em;
}

/* アクセス */
.p-list-access__info .info-txt-icon {
  border-radius: 6px;
}

.p-list-access__info .info-txt-data {
  line-height: 1.7;
  padding-top: 4px;
}

/* ボタン・CTA */
.c-button-link {
  transition: opacity 0.2s ease;
}

.c-button-link:hover {
  opacity: 0.8;
}

.l-cta__link li a {
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.l-cta__link li a:hover {
  color: inherit;
}

.l-cta__link__inner p {
  line-height: 1.4;
}

/* フッター */
.l-footer__company .company-info__inner {
  line-height: 1.8;
}

/* 製品カードの名称は3行固定の高さなので元の行間を保つ */
.p-list-product__txt {
  line-height: 1.2;
}

@media screen and (min-width: 768px) {
  .p-list-product__txt {
    line-height: 1.4;
  }
}
