@charset "UTF-8";

/* =========================================================
   CHINO Article Common
   お役立ち情報 共通CSS (新版)

   Version: 1.3.0 (internal)
   Filename: new-article-style.css
   Updated: 2026-07-17

   ---------------------------------------------------------
   CHANGELOG (1.2.0 -> 1.3.0)
   ---------------------------------------------------------
   [ADDED]  `.article-figure-narrow`
            アスペクト比を強制せず、幅だけ控えめに絞りたい場合の
            バリエーション。`.article-figure-rect-*` / `-square-*` は
            16:9 や 1:1 を強制するため、実際の縦横比が不明な写真
            (例: 縦長のサイロ写真など)に使うとトリミングされる恐れが
            ある。本クラスはそのリスクを避けつつ、記事幅いっぱいに
            広がるのを防ぎたい場合に使う。

   ---------------------------------------------------------
   CHANGELOG (1.1.0 -> 1.2.0)
   ---------------------------------------------------------
   [ADDED]  `.article-text-warning` / `.article-text-danger`
            インライン文中の数値強調(危険度レベル等)用。
            旧記事で `<span style="color:rgb(...); text-decoration:underline">`
            のように直書きされていた箇所の置き換え先。
            デザイントークン(--article-warn/--article-danger)を使うため、
            色の一元管理が可能になる。

   ---------------------------------------------------------
   CHANGELOG (1.0.0 -> 1.1.0)
   ---------------------------------------------------------
   [FIXED]  `.article-section` 直下に `h2` を直接置いた場合、
            `.article-section` と `.article-layout h2` の両方が
            border-top / padding-top を持つため、罫線が二重に出る
            バグを修正。`.article-section > h2` で自動的に相殺する。
            (`.article-section-header` で囲んだ場合は従来どおり
            `.article-section-header h2` が優先される)
   [CHANGED] `.article-tool-grid` を3カラム固定から
            `repeat(auto-fit, minmax(160px, 1fr))` に変更。
            2項目・3項目など、ツールの入力数に応じて自然に
            カラム数が決まるようにした。
   [ADDED]  `.article-disclaimer` を新設。`.article-note` (背景色付き
            囲みボックス)とは別に、注釈・免責文など「箱にしたくない
            小さな控えめテキスト」用の軽量クラス。
   [IMPROVED] `.article-cta` に `cursor:pointer` / `appearance:none` を
            追加。`<a>` だけでなく `<button>` に適用された場合の
            見た目のブレを防ぐ。

   方針:
   - #0072c5 はアクセントとして使用
   - 白背景、余白、細い罫線、フラット表現を基本
   - 影は原則使わない
   - HeartCore側の切替に合わせ、レスポンシブは 768px で分岐
   - 768px以上はPC扱い、767px以下はスマホ扱い
   - 記事固有のクラスは必ず `.article-` 接頭辞を付ける
     (CMS共通CSS: template.css / style.css / edit.css との命名衝突防止)

   ---------------------------------------------------------
   このファイルについて
   ---------------------------------------------------------
   旧ファイル article-common-v3.css を使っている既存記事には
   影響しない、独立した新規ファイルです。そのため article-common-v3.css
   で必要だった「旧クラス名(.d-flex 等)の互換ブロック」は持たず、
   最初からクリーンな命名(.article-flex 等)のみで構成しています。

   新規記事は本ファイルを読み込み、Body側のクラス名も
   本ファイルの命名規則に合わせて記述すること。
   (旧クラス名 .d-flex / .area-anchorlinks / .area-notes / .link-pdf /
    .pc-banner / .mobile-banner は本ファイルには存在しません)
========================================================= */

:root {
  --article-blue: #0072c5;
  --article-ink: #202833;
  --article-body: #425466;
  --article-muted: #66788a;
  --article-line: #d8e1ea;
  --article-soft: #eaf4fb;
  --article-soft-2: #f5f8fb;
  --article-white: #ffffff;
  --article-warn: #b7791f;
  --article-warn-soft: #fbf3e4;
  --article-danger: #b42318;
  --article-danger-soft: #fbeae8;
  --article-radius: 6px;
  --article-max: 1120px;
  --article-transition: 0.18s ease;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* =========================================================
   HeartCore / Page Safety
========================================================= */

.bg-triangle-gradation {
  display: none !important;
}

h1.ttl-basic,
.ttl-basic {
  box-sizing: border-box;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  line-height: 1.45;
}

h1.ttl-basic::before,
h1.ttl-basic::after,
.ttl-basic::before,
.ttl-basic::after {
  max-width: 100% !important;
}

/* =========================================================
   Base
========================================================= */

.article-layout {
  box-sizing: border-box;
  color: var(--article-ink);
  line-height: 1.8;
  width: 100%;
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 20px 64px;
  overflow-x: visible;
}

.article-layout *,
.article-layout *::before,
.article-layout *::after {
  box-sizing: border-box;
  min-width: 0;
}

.article-layout img,
.article-layout picture,
.article-layout iframe,
.article-layout video,
.article-layout svg {
  max-width: 100%;
}

.article-layout picture {
  display: block;
}

.article-layout p {
  color: var(--article-body);
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 1.1em;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-layout li,
.article-layout td,
.article-layout th {
  overflow-wrap: break-word;
  word-break: normal;
}

.article-layout a {
  color: var(--article-blue);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.article-layout a:hover,
.article-layout a:focus {
  text-decoration: underline;
}

.article-layout strong {
  color: var(--article-ink);
  font-weight: 800;
}

.article-layout mark {
  background: var(--article-soft);
  color: var(--article-ink);
  padding: 0 0.25em;
}

/* =========================================================
   Meta (更新日など)
========================================================= */

.article-updated {
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* =========================================================
   Heading
========================================================= */

.article-layout h2,
.article-layout h3,
.article-layout h4 {
  color: var(--article-ink);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-layout h2 {
  border-top: 1px solid var(--article-line);
  font-size: clamp(24px, 3vw, 34px);
  margin: 56px 0 18px;
  padding-top: 34px;
}

.article-layout h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}

.article-layout h4 {
  font-size: 17px;
  margin: 22px 0 10px;
}

.article-kicker {
  color: var(--article-blue) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.5 !important;
  margin: 0 0 12px !important;
}

/* =========================================================
   Hero
========================================================= */

.article-hero {
  background: var(--article-white);
  border-bottom: 1px solid var(--article-line);
  padding: 30px 0 34px;
}

.article-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;
  align-items: center;
}

.article-hero-body {
  width: 100%;
  max-width: 100%;
}

.article-hero-title {
  border-top: 0 !important;
  color: var(--article-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 14px !important;
  padding-top: 0 !important;
}

.article-lead {
  color: var(--article-body);
  font-size: 16px !important;
  line-height: 1.95 !important;
  margin-bottom: 18px !important;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

.article-tag-list li {
  background: var(--article-soft);
  border: 1px solid var(--article-line);
  border-radius: 999px;
  color: var(--article-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 !important;
  padding: 0 !important;
}

.article-tag-list li::before {
  display: none !important;
}

.article-tag-list a {
  color: var(--article-ink) !important;
  display: block;
  padding: 7px 12px;
  text-decoration: none !important;
}

.article-tag-list a:hover,
.article-tag-list a:focus {
  color: var(--article-blue) !important;
  text-decoration: none !important;
}

/* =========================================================
   Banner
========================================================= */

.article-layout .banner,
.banner {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  background: #f2f6fa;
  border-radius: var(--article-radius);
}

.article-layout .banner picture,
.banner picture {
  display: block;
  width: 100%;
}

.article-layout .banner img,
.article-layout .main-banner,
.banner img,
.main-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.article-index .article-index-banner {
  width: 400px;
  max-width: 100%;
  margin: 0;
  justify-self: end;
}

/* =========================================================
   Figure / Image Size
   既定基準は 1600x900（16:9）
========================================================= */

.article-figure {
  margin: 24px auto;
}

.article-figure-image {
  display: block;
  width: 100%;
  height: auto;
}

/* フォールバック: figure-image クラスの付け忘れがあっても
   最低限崩れないようにする保険 */
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
  text-align: center;
}

.article-figure-rect-large {
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  margin-left: auto;
  margin-right: auto;
}

.article-figure-rect-medium {
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  margin-left: auto;
  margin-right: auto;
}

.article-figure-rect-small,
.article-figure-small {
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin-left: auto;
  margin-right: auto;
}

.article-figure-square-large {
  max-width: 1200px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
}

.article-figure-square-small {
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
}

/* アスペクト比を強制せず、幅だけ控えめに絞りたい場合。
   縦横比が不明/不揃いな写真の切れ・引き伸ばしを避けたいときに使う。 */
.article-figure-narrow {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* PC/SPの出し分けは CMS標準の .only-pc / .only-sp を使用すること。
   本ファイルでは独自の .pc-banner / .mobile-banner は提供しない。 */

/* =========================================================
   Section
========================================================= */

.article-section {
  border-top: 1px solid var(--article-line);
  margin: 44px 0 0;
  padding-top: 34px;
}

.article-hero + .article-section {
  margin-top: 34px;
}

.article-section-header {
  margin: 0 0 22px;
  max-width: 920px;
}

.article-section-header h2 {
  border-top: 0;
  margin: 0 0 12px;
  padding-top: 0;
}

.article-section-header p:last-child {
  margin-bottom: 0;
}

/* `.article-section-header` を使わず h2 を直接 `.article-section` 直下に
   置いた場合の保険。親の `.article-section` が既に border-top / padding-top
   を持つため、子の h2 側は相殺してゼロにする。
   (`.article-section-header` で囲んだ場合は `.article-section-header h2` が
   優先され、こちらは効かない) */
.article-section > h2 {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

/* =========================================================
   Card
========================================================= */

.article-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
}

.article-card {
  background: var(--article-white);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  padding: 20px;
  scroll-margin-top: 88px;
}

.article-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.article-card p {
  margin-bottom: 12px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.article-card-label {
  color: var(--article-blue) !important;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.5 !important;
  margin: 0 0 8px !important;
}

.article-loop-section .article-card {
  border-top: 3px solid var(--article-blue);
}

/* =========================================================
   Tool / Interactive widget
   記事内埋め込みのインタラクティブUI用 (単位換算ツールなど)
========================================================= */

.article-tool-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 18px 0;
}

.article-tool-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--article-ink);
}

.article-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  background: var(--article-white);
  color: var(--article-ink);
  font-size: 16px;
  padding: 10px 12px;
  transition: border-color var(--article-transition);
}

.article-input:focus {
  outline: none;
  border-color: var(--article-blue);
}

@media (max-width: 767px) {
  .article-tool-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Links
========================================================= */

.article-link-list {
  list-style: none !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}

.article-link-list li {
  margin: 8px 0 !important;
  padding-left: 18px !important;
  position: relative;
}

.article-link-list li::before {
  color: var(--article-blue);
  content: "›";
  font-weight: 800;
  left: 0;
  position: absolute;
  top: 0;
}

.article-link-pdf::before {
  color: var(--article-blue);
  content: "PDF";
  border: 1px solid var(--article-blue);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
  padding: 1px 4px;
}

.article-link-panel {
  background: var(--article-white);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
  overflow: hidden;
}

.article-link-column {
  background: var(--article-white);
  padding: 22px;
}

.article-link-column + .article-link-column {
  border-left: 1px solid var(--article-line);
}

.article-product-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   Table
========================================================= */

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0;
}

.article-table-wrap .article-table {
  margin: 0;
}

.article-table {
  border-collapse: collapse;
  margin: 22px 0;
  width: 100%;
}

.article-table th,
.article-table td {
  border: 1px solid var(--article-line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: var(--article-soft);
  color: var(--article-ink);
  font-weight: 800;
}

/* =========================================================
   Notes / Callout
========================================================= */

.article-note,
.article-callout {
  background: var(--article-soft);
  border: 1px solid var(--article-line);
  border-left: 4px solid var(--article-blue);
  border-radius: var(--article-radius);
  margin: 24px 0;
  padding: 18px 20px;
}

.article-note p:last-child,
.article-callout p:last-child {
  margin-bottom: 0;
}

.article-note--warning {
  background: var(--article-warn-soft);
  border-color: var(--article-warn);
  border-left-color: var(--article-warn);
}

.article-note--danger {
  background: var(--article-danger-soft);
  border-color: var(--article-danger);
  border-left-color: var(--article-danger);
}

/* 箱にしたくない、控えめな注釈・免責文用。
   `.article-note` (背景色+枠線付きの囲みボックス)とは役割が異なる。 */
.article-disclaimer {
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0 0;
}

/* 文中の数値・語句を強調したい場合のインライン用。
   囲みボックスの .article-note--warning/--danger とは別に、
   地の文の中で使う軽量版。 */
.article-text-warning {
  color: var(--article-warn);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--article-warn);
}

.article-text-danger {
  color: var(--article-danger);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--article-danger);
}

/* =========================================================
   Checklist
========================================================= */

.article-check-list {
  background: var(--article-soft);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  padding: 22px 24px;
}

.article-check-list ul {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-left: 1.2em;
}

/* =========================================================
   CTA
========================================================= */

.article-cta-panel {
  background: var(--article-soft);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  margin: 56px 0 0;
  padding: 30px;
}

.article-cta-body h2 {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.article-cta {
  appearance: none;
  background: var(--article-blue);
  border: 1px solid var(--article-blue);
  border-radius: var(--article-radius);
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 12px;
  padding: 13px 22px;
  text-decoration: none !important;
  transition: background var(--article-transition), border-color var(--article-transition);
}

.article-cta:hover,
.article-cta:focus {
  background: #005f9f;
  border-color: #005f9f;
  color: #fff !important;
  text-decoration: none !important;
}

/* =========================================================
   Flex utility (記事本文専用)
========================================================= */

.article-flex {
  display: flex;
  gap: 22px;
}

.article-flex .item {
  flex: 1 1 0;
}

@media (max-width: 767px) {
  .article-flex {
    flex-direction: column;
  }
}

/* =========================================================
   Mock / Anchor List
========================================================= */

.ttl-mock {
  color: var(--article-muted);
  font-size: 13px;
  font-weight: 800;
  margin: 26px 0 12px;
}

.article-anchorlinks {
  background: var(--article-soft-2);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 20px 0 34px;
  padding: 16px 18px;
}

.article-anchorlinks li {
  margin: 0;
}

.article-toc {
  margin: 34px 0 0;
  padding-top: 0;
  border-top: 0;
}

.article-hero + .article-toc {
  margin-top: 34px;
}

.article-toc.article-section {
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
}

.article-toc .article-section-header h2 {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

/* =========================================================
   Responsive
   HeartCoreの基本挙動に合わせ、768pxで切り替える
========================================================= */

@media (min-width: 768px) {
  .article-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
    align-items: center;
  }

  .article-index .article-index-banner {
    width: 400px;
    max-width: 100%;
    justify-self: end;
    margin: 0;
  }
}

@media (max-width: 767px) {
  h1.ttl-basic {
    font-size: 22px !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
  }

  .article-layout {
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 48px;
    overflow-x: hidden;
  }

  .article-hero {
    padding: 24px 0 28px;
  }

  .article-hero-inner {
    display: block;
  }

  .article-kicker {
    margin-bottom: 10px !important;
  }

  .article-hero-title {
    font-size: 22px;
    line-height: 1.55;
    margin: 0 0 12px !important;
  }

  .article-lead {
    max-width: 100%;
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  .article-tag-list {
    gap: 7px;
    margin-top: 16px !important;
  }

  .article-tag-list a {
    font-size: 12px;
    padding: 6px 10px;
  }

  .article-index .article-index-banner {
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
    justify-self: stretch;
  }

  .article-card-grid,
  .article-link-panel,
  .article-product-links,
  .article-check-list ul {
    grid-template-columns: 1fr !important;
  }

  .article-link-column + .article-link-column {
    border-left: 0;
    border-top: 1px solid var(--article-line);
  }

  .article-section {
    margin-top: 40px;
    padding-top: 32px;
  }

  .article-flex {
    flex-direction: column;
  }
}

/* =========================================================
   Print
========================================================= */

@media print {
  .article-layout {
    color: #000;
    max-width: none;
    padding: 0;
  }

  .article-cta-panel,
  .article-cta {
    display: none;
  }

  .article-card,
  .article-link-panel,
  .article-note,
  .article-callout {
    break-inside: avoid;
  }
}

/* =========================================================
   Article hero visual
========================================================= */

.article-hero-visual {
  width: 360px;
  max-width: 100%;
  margin: 0;
  justify-self: end;
}

.article-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  object-position: center center;
  border-radius: var(--article-radius);
}

@media (max-width: 767px) {
  .article-hero-visual {
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
  }

  .article-hero-image {
    width: 100%;
    max-height: none;
    height: auto;
  }
}


