/* ============================================================
   link-tohoku.co.jp — ヨーロッパ風の見た目と WCAG 2.2（AA）のための上書き
   2026-11-26 オーナー指示「サイト全体の基本構成は変えずに、WCAG 2.2 を満たしたヨーロッパスタイルに。
   PC・スマホ・タブレットでの見やすさ、文字サイズ、折り返し、積極的に表を使う」
   ・テーマ（SWELL）の CSS のあとに読みこむ。HTML の並び（構成）は変えない。
   ・色はすべて、白地で 4.5:1 以上（大きな文字・部品は 3:1 以上）になるものだけを使う。
   ============================================================ */

:root {
  /* 色：落ち着いた紺と墨。差し色は控えめに */
  --lt-ink: #1b1f24;          /* 本文の文字 17.9:1 */
  --lt-ink-2: #4a525c;        /* 補助の文字 7.6:1 */
  --lt-bg: #ffffff;
  --lt-bg-2: #f4f5f7;         /* 薄い面 */
  --lt-rule: #d5d9df;         /* 線 */
  --lt-rule-2: #8a929c;       /* 入力欄の枠（3.2:1） */
  --lt-main: #00467f;         /* 紺 9.6:1 */
  --lt-main-2: #003561;       /* 紺（濃い・押したとき） */
  --lt-accent: #0b6fb8;       /* 元のサイトの青に近い色（大きな部品だけ）5.0:1 */
  --lt-red: #b3001b;          /* 必須・エラー 7.2:1 */
  --lt-focus: #ffbf00;        /* 選んでいる場所の目印（黄） */
  --lt-radius: 2px;
  --lt-measure: 42em;         /* 1 行の長さの目安 */

  /* テーマの色を上書き */
  --color_bg: var(--lt-bg);
  --color_content_bg: var(--lt-bg);
  --color_header_bg: var(--lt-bg);
  --color_header_text: var(--lt-ink);
  --color_text: var(--lt-ink);
  --color_main: var(--lt-main);
  --color_link: var(--lt-main);
  --color_htag: var(--lt-main);
  --color_footer_bg: #111418;
  --color_footer_text: #ffffff;
  --color_gray: var(--lt-ink-2);
  --color_border: var(--lt-rule);
}

/* ---------- 文字（大きさ・行間・折り返し） ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  color: var(--lt-ink);
  background: var(--lt-bg);
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt" 0;
  /* 日本語の折り返し：行頭禁則を守り、長い英数字・URL ははみ出さずに折り返す */
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: normal;
}
/* 文節で折り返す（対応しているブラウザだけ。見出しと短い文が読みやすくなる） */
h1, h2, h3, h4, .c-pageTitle, .c-postTitle__ttl, .p-postList__title, th, .wp-block-button__link, .c-gnav a { word-break: auto-phrase; }
@media (min-width: 600px) and (max-width: 1024px) { body { font-size: 17px; } }
@media (max-width: 599px) { body { font-size: 16px; line-height: 1.8; } }

.post_content { font-size: 1em; line-height: 1.9; }
.post_content p { margin-bottom: 1.4em; }
.post_content > p, .post_content > ul, .post_content > ol, .post_content .wp-block-media-text__content > p { max-width: var(--lt-measure); }
.has-text-align-center.post_content, .post_content .has-text-align-center { margin-left: auto; margin-right: auto; }
small, .u-fz-xs, .u-fz-s, .p-postList__meta, .c-postTimes, .p-breadcrumb { font-size: max(13px, .8em) !important; }
.p-postList__excerpt { font-size: max(14px, .85em); color: var(--lt-ink-2); line-height: 1.75; }

/* 見出し：飾りの背景を外し、大きさと細い線で区切る */
.post_content h2, .post_content h3, .post_content h4,
.c-pageTitle, .c-postTitle__ttl, .l-topTitleArea .c-pageTitle { font-weight: 700; letter-spacing: .03em; line-height: 1.45; color: var(--lt-ink); }
.post_content h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  margin: 2.6em 0 1em; padding: 0 0 .45em;
  background: none !important; border: 0; border-bottom: 2px solid var(--lt-ink); border-radius: 0; color: var(--lt-ink);
}
.post_content h2::before, .post_content h2::after,
.post_content h3::before, .post_content h3::after { display: none !important; }
.post_content h3 {
  font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  margin: 2.2em 0 .8em; padding: 0 0 0 .8em;
  background: none !important; border: 0; border-left: 4px solid var(--lt-main); border-radius: 0;
}
.post_content h4 { font-size: 1.1rem; margin: 1.8em 0 .6em; padding: 0; border: 0; background: none; }
.post_content h4::before { display: none !important; }
/* カバー画像の上の見出しは白のまま（下に暗い面を敷いて読みやすく） */
.wp-block-cover .post_content h2, .wp-block-cover h2, .wp-block-cover h3, .wp-block-cover p { color: #fff !important; border-color: #fff !important; }

/* ---------- リンク ---------- */
a { color: var(--lt-main); }
.post_content a:not([class]), .post_content p a, .post_content li a, .post_content td a, .l-footer a:not([class*="c-iconList"]) {
  color: var(--lt-main); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.post_content a:not([class]):hover, .post_content p a:hover { color: var(--lt-main-2); text-decoration-thickness: 2px; }
.l-footer a { color: #fff !important; }

/* ---------- キーボードで選んでいる場所（WCAG 2.4.7・2.4.11・2.4.13） ---------- */
:focus-visible { outline: 3px solid var(--lt-ink) !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px var(--lt-focus) !important; border-radius: var(--lt-radius); }
.l-footer :focus-visible, .l-header__bar :focus-visible { outline-color: #fff !important; box-shadow: 0 0 0 6px var(--lt-focus) !important; }
/* 上に固定されるヘッダーの下に、選んだ場所が隠れないように（2.4.11） */
html { scroll-padding-top: 110px; }
@media (max-width: 959px) { html { scroll-padding-top: 80px; } }

/* 本文へ移動（キーボードで最初に Tab を押すと出る。2.4.1） */
.lt-skip { position: absolute; left: 8px; top: -200px; z-index: 100001; padding: .8em 1.2em; background: var(--lt-ink); color: #fff !important; font-weight: 700; text-decoration: underline; }
.lt-skip:focus { top: 8px; }
.lt-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- ヘッダー ---------- */
.l-header { background: var(--lt-bg) !important; border-bottom: 1px solid var(--lt-rule); box-shadow: none !important; }
.l-header__bar { background: var(--lt-ink) !important; }
.l-header__bar, .l-header__bar a, .l-header__barInner .c-catchphrase { color: #fff !important; font-size: 13px !important; letter-spacing: .06em; }
.c-gnav > .menu-item > a { color: var(--lt-ink) !important; padding-left: 1em; padding-right: 1em; }
.c-gnav > .menu-item > a .ttl { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.c-gnav > .menu-item > a .c-smallNavTitle, .c-gnav .desc { font-size: 12px !important; color: var(--lt-ink-2) !important; opacity: 1 !important; }
.c-gnav > .menu-item > a::after { background: var(--lt-main) !important; height: 3px !important; }
.c-gnav > .current-menu-item > a, .c-gnav > .menu-item > a:hover { background: var(--lt-bg-2) !important; }
.c-gnav .sub-menu { background: var(--lt-bg) !important; border: 1px solid var(--lt-rule); box-shadow: 0 8px 24px rgba(0,0,0,.08) !important; }
.c-gnav .sub-menu a { color: var(--lt-ink) !important; font-size: 15px; padding: .9em 1.2em !important; }
.c-gnav .sub-menu a:hover { background: var(--lt-bg-2) !important; }
.l-fixHeader { background: rgba(255,255,255,.97) !important; border-bottom: 1px solid var(--lt-rule); }
.p-spMenu__inner { background: var(--lt-bg) !important; }
.c-spnav a { color: var(--lt-ink) !important; font-size: 16px; padding-top: .9em !important; padding-bottom: .9em !important; border-bottom: 1px solid var(--lt-rule) !important; }

/* ページの題（写真の上）：暗い面を敷いて、白い文字を読みやすく（1.4.3） */
.l-topTitleArea { min-height: 200px; }
.l-topTitleArea::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,24,.72), rgba(10,16,24,.35)); pointer-events: none; }
.l-topTitleArea__body { position: relative; z-index: 1; }
.l-topTitleArea .c-pageTitle { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: .08em; }
.p-breadcrumb { background: var(--lt-bg) !important; border-bottom: 1px solid var(--lt-rule); }
.p-breadcrumb__text, .p-breadcrumb__item a { color: var(--lt-ink-2) !important; }

/* トップの大きな写真の文字 */
.p-mainVisual__slideTitle, .p-mainVisual__slideText { text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* ---------- ボタン・押せる部品（2.5.8：24px 以上。ここでは 44px を目安） ---------- */
.wp-block-button__link, .swell-block-button__link, .c-pagination .page-numbers, .smf-button-control__control, .lt-popup__ok {
  border-radius: var(--lt-radius) !important;
}
.swell-block-button__link, .wp-block-button__link {
  min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center;
  background: var(--lt-main) !important; color: #fff !important; border: 2px solid var(--lt-main) !important;
  box-shadow: none !important; font-weight: 700; letter-spacing: .06em; padding: .7em 1.8em !important;
}
.swell-block-button__link:hover, .wp-block-button__link:hover { background: var(--lt-main-2) !important; border-color: var(--lt-main-2) !important; }
.is-style-btn_line .swell-block-button__link, .is-style-outline .wp-block-button__link { background: #fff !important; color: var(--lt-main) !important; }
.c-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--lt-rule); color: var(--lt-ink); }
.c-pagination .page-numbers.current { background: var(--lt-main); border-color: var(--lt-main); color: #fff; }
.c-iconList__link, .c-iconBtn, .c-plainBtn, .p-breadcrumb__item a { min-width: 24px; min-height: 24px; }
#pagetop, .c-fixBtn { min-width: 44px; min-height: 44px; border-color: var(--lt-main) !important; color: var(--lt-main) !important; background: #fff !important; }

/* ---------- 記事の一覧（カード） ---------- */
.p-postList.-type-card .p-postList__link { border: 1px solid var(--lt-rule); background: #fff; height: 100%; display: flex; flex-direction: column; box-shadow: none !important; transition: border-color .15s; }
.p-postList.-type-card .p-postList__link:hover { border-color: var(--lt-main); }
.p-postList.-type-card .p-postList__body { padding: 1em 1.1em 1.2em; }
.p-postList__title { font-size: 1.02rem !important; line-height: 1.55 !important; color: var(--lt-ink); }
.c-postThumb__cat { background: var(--lt-main) !important; color: #fff !important; font-size: 12px !important; border-radius: 0 !important; }
.c-postThumb__figure { border-radius: 0 !important; }

/* ---------- 表（積極的に使う。PC・タブレットは表、スマホは縦に並べる） ---------- */
.post_content table, .lt-table table {
  width: 100%; border-collapse: collapse; border: 0; background: #fff;
  font-size: .95em; line-height: 1.75; margin: 0;
}
.post_content th, .post_content td, .lt-table th, .lt-table td {
  border: 0; border-bottom: 1px solid var(--lt-rule); padding: .9em 1em; vertical-align: top; text-align: left;
}
.post_content thead th, .lt-table thead th { background: var(--lt-ink) !important; color: #fff !important; font-weight: 700; border-bottom: 0; letter-spacing: .04em; }
.post_content tbody th, .lt-table tbody th, .post_content tbody td:first-child.lt-rowhead { background: var(--lt-bg-2); font-weight: 700; color: var(--lt-ink); width: 30%; }
.post_content table tr:first-child th, .post_content table tr:first-child td { border-top: 2px solid var(--lt-ink); }
.post_content thead + tbody tr:first-child th, .post_content thead + tbody tr:first-child td { border-top: 0; }
.post_content figure.wp-block-table, .lt-table { margin: 1.6em 0 2em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post_content figure.wp-block-table:focus-visible, .lt-table:focus-visible { outline-offset: 4px !important; }
.lt-table caption, .post_content table caption { caption-side: top; text-align: left; font-weight: 700; font-size: 1.05em; padding: 0 0 .6em; color: var(--lt-ink); }
.lt-table .lt-num { width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; color: var(--lt-ink-2); }
.lt-table .lt-note { color: var(--lt-ink-2); font-size: .95em; }
/* スマホ：行ごとに縦に並べる（横にすべらせなくても読める。1.4.10） */
@media (max-width: 599px) {
  .lt-table--stack table, .lt-table--stack thead, .lt-table--stack tbody, .lt-table--stack tr, .lt-table--stack th, .lt-table--stack td,
  .post_content figure.wp-block-table:not(.lt-keep) table, .post_content figure.wp-block-table:not(.lt-keep) tbody,
  .post_content figure.wp-block-table:not(.lt-keep) tr, .post_content figure.wp-block-table:not(.lt-keep) td, .post_content figure.wp-block-table:not(.lt-keep) tbody th { display: block; width: 100% !important; }
  .lt-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lt-table--stack tr { border-bottom: 1px solid var(--lt-rule); padding: .6em 0; }
  .lt-table--stack th, .lt-table--stack td { border: 0; padding: .25em .2em; }
  .lt-table--stack td[data-label]::before { content: attr(data-label); display: block; font-size: .82em; font-weight: 700; color: var(--lt-ink-2); }
  .lt-table--stack .lt-num { text-align: left; width: auto; }
  .lt-table--stack tbody th { background: none; width: auto; font-size: 1.02em; }
  .post_content figure.wp-block-table:not(.lt-keep) td { border-bottom: 0; }
  .post_content figure.wp-block-table:not(.lt-keep) tr { border-bottom: 1px solid var(--lt-rule); }
  .post_content figure.wp-block-table:not(.lt-keep) td:first-child, .post_content figure.wp-block-table:not(.lt-keep) tbody th { background: var(--lt-bg-2); font-weight: 700; padding-bottom: .4em; }
}

/* ---------- 箇条書き・囲み ---------- */
.post_content ul, .post_content ol { padding-left: 1.4em; }
.post_content li { margin-bottom: .45em; }
.post_content .is-style-border_sg, .post_content .is-style-bg_gray, .post_content .has-border, .p-blogCard__inner {
  border-radius: 0 !important; border-color: var(--lt-rule) !important;
}
.post_content .is-style-bg_gray { background: var(--lt-bg-2) !important; }
.swell-block-accordion__title { background: var(--lt-bg-2) !important; color: var(--lt-ink) !important; font-weight: 700; min-height: 44px; border-radius: 0 !important; }
.swell-block-accordion__item { border: 1px solid var(--lt-rule) !important; border-radius: 0 !important; }
.swell-block-step__number { background: var(--lt-main) !important; color: #fff !important; border-radius: 0 !important; }
.swell-block-step__title { font-weight: 700; color: var(--lt-ink) !important; }
.c-infoBar, .p-blogCard { border-radius: 0 !important; }

/* 入力欄（お問い合わせ・検索） */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
  border: 1px solid var(--lt-rule-2) !important; border-radius: var(--lt-radius) !important; background: #fff !important; color: var(--lt-ink) !important; font-size: 16px !important; min-height: 44px;
}
.c-searchForm__submit { min-width: 44px; background: var(--lt-main) !important; }

/* ---------- ニュースの流れる文字・スライド ---------- */
.pjnt-border { border-color: var(--lt-ink) !important; background: var(--lt-ink) !important; border-radius: 0 !important; font-family: inherit !important; }
.pjnt-label { font-weight: 700; letter-spacing: .1em; }
.pjnt-item, .pjnt-item a { color: var(--lt-ink) !important; }
.lt-motion { display: flex; justify-content: flex-end; margin: .6em auto; max-width: var(--container_size, 1200px); padding: 0 var(--swl-pad_container, 4vw); }
.lt-motion__btn { display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: .3em 1em; border: 1px solid var(--lt-ink); background: #fff; color: var(--lt-ink); font-size: 14px; font-weight: 700; cursor: pointer; border-radius: var(--lt-radius); }
.lt-motion__btn:hover { background: var(--lt-bg-2); }
.lt-motion__btn[aria-pressed="true"]::before { content: "▶"; font-size: .8em; }
.lt-motion__btn[aria-pressed="false"]::before { content: "❚❚"; font-size: .8em; letter-spacing: -.1em; }

/* ---------- フッター ---------- */
.l-footer { background: #111418 !important; color: #fff !important; }
.l-footer__foot { background: #0a0c0f !important; }
.l-footer .c-iconList__link { color: #fff !important; }
.l-footer__nav a { font-size: 14px; padding: .4em .9em !important; display: inline-block; min-height: 24px; }
.w-footer, .l-footer__widgetArea { color: #fff; }

/* ---------- 動きを減らす設定の人（2.3.3） ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 印刷 ---------- */
@media print {
  .l-header, .l-fixHeader, .l-footer, .p-breadcrumb, .lt-motion, #pagetop, .c-shareBtns { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .post_content a::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* ---------- 2026-11-26 見た目の確認での直し ---------- */
/* ヘッダーを白くしたので、ロゴはいつも黒い方を出す（白いロゴが見えなくなるため） */
.c-headLogo__img.-top { display: none !important; }
.c-headLogo__img.-common { display: block !important; opacity: 1 !important; visibility: visible !important; }
.l-header, .l-header .c-gnav > .menu-item > a { color: var(--lt-ink) !important; }
/* 元のサイトの明るい青の帯 → 紺（白い文字が読めるように。4.5:1 以上） */
[style*="background-color:#0181d7"], .has-swl-main-background-color { background-color: var(--lt-main) !important; }
/* 写真の上の文字：暗い面を敷く（1.4.3） */
.wp-block-cover__background, .wp-block-cover .has-background-dim { background-color: #0a1018 !important; opacity: .55 !important; }
.wp-block-cover .wp-block-cover__inner-container { position: relative; z-index: 1; }
.wp-block-cover p, .wp-block-cover .wp-block-heading { text-shadow: 0 1px 6px rgba(0,0,0,.55); }
/* 表の番号の欄 */
.lt-table th.lt-num, .lt-table td.lt-num { width: 3.6em; white-space: nowrap; text-align: center; }
.lt-table caption { font-size: 1em; }
@media (max-width: 599px) {
  .lt-table--stack caption { display: block; width: 100%; }
  .lt-table--stack table { width: 100% !important; table-layout: auto; }
  .lt-table--stack tbody { width: 100%; }
}
/* 写真の上の文・中央寄せの短い文も、文節で折り返す */
.wp-block-cover p, .has-text-align-center, .swell-block-fullWide p { word-break: auto-phrase; }
@media (max-width: 599px) {
  .lt-table--stack td.lt-num { text-align: left; font-weight: 700; color: var(--lt-main); padding-bottom: 0; }
  .lt-table--stack td.lt-num[data-label]::before { display: inline; content: "No. "; font-size: 1em; color: var(--lt-main); }
}
/* 角は丸めない（落ち着いた見た目） */
.post_content .wp-block-image img, .swell-block-column, .post_content .wp-block-media-text__media img, .p-blogCard__inner, .c-balloon__text { border-radius: 0 !important; }
/* 点検での直し：色の薄い差し色の文字・小さな押す部品 */
.has-swl-deep-04-color, .has-swl-deep-03-color, .has-swl-deep-02-color { color: var(--lt-main) !important; }
.has-swl-deep-01-color { color: var(--lt-red) !important; }
.swiper-pagination-bullet { width: 24px !important; height: 24px !important; margin: 0 4px !important; opacity: .75 !important;
  background: radial-gradient(circle, #fff 0 5px, rgba(0,0,0,.5) 5.5px 7px, transparent 7.5px) !important; }
.swiper-pagination-bullet-active { opacity: 1 !important; background: radial-gradient(circle, #fff 0 7px, rgba(0,0,0,.6) 7.5px 9px, transparent 9.5px) !important; }
.pjnt-item a { display: inline-block; padding: 4px 0; min-height: 24px; line-height: 1.6; }
.metaslider .flex-control-nav li a { width: 24px !important; height: 24px !important; }
.metaslider .flex-direction-nav a { width: 44px !important; height: 44px !important; }
.lt-was-h1 { font-size: inherit; }
.post_content blockquote { color: var(--lt-ink) !important; background: var(--lt-bg-2) !important; border: 0 !important; border-left: 4px solid var(--lt-main) !important; border-radius: 0 !important; padding: 1.2em 1.4em !important; }
.post_content blockquote::before, .post_content blockquote::after { color: var(--lt-rule-2) !important; }
.post_content blockquote * { color: inherit; }
.post_content thead td { background: var(--lt-ink) !important; color: #fff !important; font-weight: 700; }
.smf-progress-tracker__item, .smf-progress-tracker__item__text { color: var(--lt-ink-2) !important; }
.smf-progress-tracker__item__number { background: var(--lt-ink-2) !important; color: #fff !important; }
.smf-progress-tracker__item[aria-current="true"] .smf-progress-tracker__item__number { background: var(--lt-main) !important; }
.smf-progress-tracker__item[aria-current="true"], .smf-progress-tracker__item[aria-current="true"] .smf-progress-tracker__item__text { color: var(--lt-ink) !important; font-weight: 700; }
.c-pagination__dot { color: var(--lt-ink-2) !important; }
.c-categoryList__link, .c-tagList__link { display: inline-flex !important; align-items: center; min-height: 28px; padding: .2em .7em !important; }
.p-blogCard__title { display: inline-block; min-height: 24px; }
/* 記事の中の赤・緑の文字：白地で読める濃さに（元の #ff0000 は 4.0:1 で足りない。1.4.3） */
.post_content [style*="color: #ff0000"], .post_content [style*="color:#ff0000"] { color: var(--lt-red) !important; }
.post_content [style*="color: #339966"] { color: #1f6b47 !important; }
/* スマホ：選ぶ欄が画面からはみ出さないように */
select, .smf-select-control, .smf-select-control__control { max-width: 100% !important; }
.smf-select-control { display: block !important; }
.smf-select-control__control { width: 100% !important; white-space: normal; text-overflow: ellipsis; }
.l-topTitleArea .c-pageTitle { opacity: 1 !important; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.l-topTitleArea::after { z-index: 0; }
