@charset "UTF-8";

/* =========================================================
   CHINO Article Common v3 - Revised
   お役立ち情報 共通CSS

   方針:
   - #0072c5 はアクセントとして使用
   - 白背景、余白、細い罫線、フラット表現を基本
   - 影は原則使わない
   - HeartCore側の切替に合わせ、レスポンシブは 768px で分岐
   - 768px以上はPC扱い、767px以下はスマホ扱い
========================================================= */

: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-danger: #b42318;
  --article-radius: 6px;
  --article-max: 1120px;
  --article-transition: 0.18s ease;
  scroll-behavior: smooth;
}

/* =========================================================
   HeartCore / Page Safety
========================================================= */

/* HeartCore背景装飾を使わない */
.bg-triangle-gradation {
  display: none !important;
}

/* HeartCore標準タイトル。
   記事本文の外にあるため、最低限の折り返しだけここで保証する。 */
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;
}

/* =========================================================
   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;
}

/* Hero shortcut tags */
.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
   body側は picture + img.main-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;
}

/* 旧コードの pc-banner / mobile-banner が残っていても崩れにくくする保険 */
.article-layout .pc-banner,
.article-layout .mobile-banner,
.pc-banner,
.mobile-banner {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .article-layout .pc-banner,
  .pc-banner {
    display: block;
  }

  .article-layout .mobile-banner,
  .mobile-banner {
    display: none;
  }
}

/* =========================================================
   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;
}

/* =========================================================
   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);
}

/* =========================================================
   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-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));
}

/* =========================================================
   Tables
========================================================= */

.article-table,
.table-basic,
.list-table-basic {
  border-collapse: collapse;
  margin: 22px 0;
  width: 100%;
}

.article-table th,
.article-table td,
.table-basic th,
.table-basic td,
.list-table-basic th,
.list-table-basic td {
  border: 1px solid var(--article-line) !important;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-table th,
.table-basic th,
.list-table-basic th {
  background: var(--article-soft) !important;
  background-color: var(--article-soft) !important;
  background-image: none !important;
  color: var(--article-ink) !important;
  font-weight: 800;
}

/* =========================================================
   Notes / Callout
========================================================= */

.article-note,
.article-callout,
.area-notes {
  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,
.area-notes p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   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 {
  background: var(--article-blue);
  border: 1px solid var(--article-blue);
  border-radius: var(--article-radius);
  color: #fff !important;
  display: inline-block;
  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;
}

/* =========================================================
   PDF / Old Utility
========================================================= */

.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;
}

.d-flex {
  display: flex;
  gap: 22px;
}

.d-flex .item {
  flex: 1 1 0;
}

/* =========================================================
   Mock / Anchor List
========================================================= */

.ttl-mock {
  color: var(--article-muted);
  font-size: 13px;
  font-weight: 800;
  margin: 26px 0 12px;
}

.area-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;
}

.area-anchorlinks li {
  margin: 0;
}

/* =========================================================
   Responsive
   HeartCoreの基本挙動に合わせ、768pxで切り替える
========================================================= */

/* PC: 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;
  }
}

/* Smartphone: 767px以下 */
@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;
  }

  .d-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,
  .area-notes {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* =========================================================
   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;
  }
}

/* =========================================================
   Article figures
   本文中の説明画像・図版用。1600x900などの画像比率を維持する。
========================================================= */

.article-figure {
  margin: 28px 0;
  width: 100%;
}

.article-figure img,
.article-figure-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: var(--article-radius);
}

/* 図版キャプション */
.article-figure figcaption {
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
}

/* 横並びカードなどの中では、画像が大きくなりすぎないようにする */
.article-card .article-figure {
  margin: 16px 0;
}

.article-card .article-figure img,
.article-card .article-figure-image {
  width: 100%;
  height: auto;
}

/* スマホでも比率維持。高さ固定はしない */
@media (max-width: 767px) {
  .article-figure {
    margin: 22px 0;
  }

  .article-figure img,
  .article-figure-image {
    width: 100%;
    height: auto;
  }
}



