@charset "utf-8";
/**************************************
 tidie 公式サイト ページ共通部品
 prefix: pg_

 - 2026-11 のコンテンツ改修（RENEWAL.md）で作成。content-common.css の後継。
 - 使い方と部品の一覧は design-templates/components.html を見る。
 - すべての部品は .pg（ページのルート要素）の中で使う。
 - ページ固有の <style> は原則書かない。足りない部品はこのファイルに追加し、
   components.html にも見本を足す。

 読み込み順: base.css → font.css → page.css
**************************************/

/* ==========================================================
   0. ルートと色・サイズの定義
   ========================================================== */
.pg {
    --pg-green: #16857d;        /* 文字・リンク・見出しの強調 */
    --pg-green-dark: #08736b;   /* ホバー */
    --pg-brand: #1CA097;        /* 線・アイコンなどの飾り */
    --pg-tint: #eef8f6;         /* 薄い緑の背景 */
    --pg-bg: #f6f9f8;           /* セクションの背景 */
    --pg-orange: #e94609;       /* 主CTA（無料で始める）。ヘッダーの登録ボタンと同じ色 */
    --pg-orange-dark: #d13900;
    --pg-orange-tint: #fff4ec;  /* 要点3行の背景 */
    --pg-text: #222;
    --pg-muted: #5b6563;
    --pg-border: #d7e1df;
    --pg-dark: #12332f;         /* 業種ページのヒーローなど暗い背景 */
    --pg-radius: 12px;
    --pg-wrap: 1120px;
    --pg-wrap-narrow: 860px;

    width: 100%;
    background: #fff;
    color: var(--pg-text);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: .04em;
}

.pg *,
.pg *::before,
.pg *::after {
    box-sizing: border-box;
}

.pg a {
    color: var(--pg-green);
}

.pg a:hover {
    color: var(--pg-green-dark);
}

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

/* ==========================================================
   1. レイアウト
   ========================================================== */
.pg_wrap {
    width: 100%;
    max-width: var(--pg-wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.pg_wrap--narrow {
    max-width: var(--pg-wrap-narrow);
}

/* セクション。背景つきと交互に並べる */
.pg_sec {
    padding: 72px 0;
}

.pg_sec--tint {
    background: var(--pg-bg);
}

/* 直前のセクションと続けて見せるとき（上の余白なし） */
.pg_sec--flush {
    padding-top: 0;
}

/* 記事＋サイドバー（コラム・事例・テンプレート配布） */
.pg_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: start;
    padding: 32px 0 80px;
}

.pg_side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

/* 汎用のグリッド。子要素の最小幅で自動的に折り返す */
.pg_grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 28px;
}

.pg_grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg_grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pg_grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================
   2. 文字
   ========================================================== */
/* 見出しの上の小さなラベル（「鍵の管理」「機能｜貸出・返却」など） */
.pg_eyebrow {
    margin: 0 0 12px;
    color: var(--pg-green);
    font-size: 14px;
    font-weight: 700;
}

.pg_h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
}

.pg_h2--sm {
    font-size: 22px;
}

/* 見出し直後の1〜2文の説明 */
.pg_lead {
    margin: 0;
    color: var(--pg-muted);
    font-size: 16px;
    line-height: 1.9;
}

.pg_note {
    margin: 8px 0 0;
    color: var(--pg-muted);
    font-size: 13px;
}

/* 「〜の機能を見る」などのテキストリンク */
.pg_more {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.pg_more::after {
    content: " →";
}

/* ==========================================================
   3. ボタン
   ========================================================== */
.pg_btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pg .pg_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 2px solid var(--pg-orange);
    border-radius: 8px;
    background: var(--pg-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}

.pg .pg_btn:hover {
    border-color: var(--pg-orange-dark);
    background: var(--pg-orange-dark);
    color: #fff;
}

/* 従のボタン（機能を見る、ヘルプを見る など） */
.pg .pg_btn--sub {
    border-color: var(--pg-green);
    background: #fff;
    color: var(--pg-green);
}

.pg .pg_btn--sub:hover {
    border-color: var(--pg-green-dark);
    background: var(--pg-tint);
    color: var(--pg-green-dark);
}

.pg .pg_btn--sm {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

.pg .pg_btn--block {
    width: 100%;
}

/* 暗い背景・緑の背景の上で使う従のボタン */
.pg .pg_btn--on-dark {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.pg .pg_btn--on-dark:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ボタンの下の注記（無料の条件など） */
.pg_btn_note {
    margin: 10px 0 0;
    color: var(--pg-muted);
    font-size: 13px;
}

/* ==========================================================
   4. WordPress のテーマとの調整
   ページタイトルの帯とパンくず（#breadcrumb）はテーマが出す。
   テーマのパンくずの下の余白（幅の5%）が大きいので、新しいページでだけ詰める。
   ========================================================== */
.content:has(.pg) #breadcrumb {
    margin-bottom: 24px;
}

/* ==========================================================
   5. ヒーロー（ページ冒頭）
   tidie の名前と「無料で始める」を必ずここに置く
   ========================================================== */
.pg_hero {
    padding: 36px 0 64px;
    background: var(--pg-bg);
}

.pg_hero_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.pg_hero h1 {
    margin: 0 0 20px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
}

.pg_hero .pg_lead {
    margin-bottom: 24px;
}

/* 業種ページ用。暗い背景で管理対象ページと見分ける */
.pg_hero--dark {
    background: var(--pg-dark);
    color: #fff;
}

.pg_hero--dark .pg_eyebrow,
.pg_hero--dark .pg_lead,
.pg_hero--dark .pg_btn_note {
    color: #d5e6e3;
}

/* 画像なし・1カラムのヒーロー（比較ページなど） */
.pg_hero--single .pg_hero_grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--pg-wrap-narrow);
}

/* 丸い小さなラベル（「無料プランを含む全プランで利用可能」など） */
.pg_badge {
    display: inline-block;
    margin: 0 0 24px;
    padding: 6px 14px;
    border: 1px solid var(--pg-border);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================================
   6. 画像
   ========================================================== */
.pg_img {
    display: block;
    width: 100%;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.pg_figure {
    margin: 0;
}

.pg_figure figcaption {
    margin-top: 8px;
    color: var(--pg-muted);
    font-size: 13px;
    text-align: center;
}

/* 画像ができるまでの仮置き（本番ページには残さない） */
.pg_ph {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 16px;
    border: 1.5px dashed #9fb2ad;
    border-radius: var(--pg-radius);
    background: #f3f7f6;
    color: var(--pg-muted);
    font-size: 14px;
    text-align: center;
}

/* ==========================================================
   7. カード
   ========================================================== */
.pg_card {
    padding: 24px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
}

.pg_card_title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.pg_card_text {
    margin: 0;
    color: var(--pg-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* カードの上の小さなラベル（「課題」「POINT 1」など） */
.pg_card_label {
    margin: 0 0 8px;
    color: var(--pg-green);
    font-size: 13px;
    font-weight: 700;
}

/* 機能カード：画像＋機能名＋説明＋リンク */
.pg_feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg_feature .pg_img,
.pg_feature .pg_ph {
    min-height: 140px;
    box-shadow: none;
}

/* 画面の縦横比がばらばらでも、カードの画像の高さをそろえる（切り取らずに縮める） */
.pg_feature .pg_img {
    aspect-ratio: 16 / 9;
    min-height: 0;
    padding: 8px;
    object-fit: contain;
}

.pg_feature .pg_more {
    margin-top: auto;
}

/* 課題と解決の1対1（業種ページ）：横長カード */
.pg_solution {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.pg_solution .pg_card_label {
    color: var(--pg-orange);
}

/* ==========================================================
   8. 説明と画面の交互配置（機能詳細）
   ========================================================== */
.pg_rows {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.pg_row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.pg_row--reverse .pg_row_media {
    order: 2;
}

.pg_row .pg_h2 {
    font-size: 24px;
}

/* ==========================================================
   9. ステップ
   ========================================================== */
/* 丸数字（はじめ方の3ステップ） */
.pg_steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 28px 0 0;
    padding: 0;
    counter-reset: pg-step;
}

.pg_steps > li {
    display: flex;
    gap: 16px;
    counter-increment: pg-step;
}

.pg_steps > li::before {
    content: counter(pg-step);
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pg-green);
    color: #fff;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}

/* カード型（移行の手順など、各ステップの説明が長めのとき） */
.pg_steps--card > li {
    display: block;
    padding: 24px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
}

.pg_steps--card > li::before {
    content: "STEP " counter(pg-step);
    display: block;
    height: auto;
    margin-bottom: 8px;
    border-radius: 0;
    background: none;
    color: var(--pg-green);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

/* 縦に進むステップ（導入の流れなど、5つ前後の手順を順に読ませるとき）
   旧サイトの導入の流れ（base.css の .flow_step）のデザインを引き継いだもの。番号は自動。 */
.pg_timeline {
    position: relative;
    max-width: 760px;
    margin: 36px auto 0;
    padding: 0;
    list-style: none;
    counter-reset: pg-timeline;
}

/* 左の縦の帯 */
.pg_timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 14px;
    border-radius: 20px;
    background: #e9eeed;
}

.pg_timeline > li {
    position: relative;
    padding-left: 80px;
    counter-increment: pg-timeline;
}

.pg_timeline > li + li {
    margin-top: 52px;
}

/* 帯の上の点 */
.pg_timeline > li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pg-brand);
}

/* 点から番号へ伸びる破線 */
.pg_timeline > li::after {
    content: "";
    position: absolute;
    top: 23px;
    left: 14px;
    width: 52px;
    border-bottom: 1px dashed #9aa5a3;
}

.pg_timeline_title {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 0 0 10px;
    color: var(--pg-green);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
}

/* 番号の丸 */
.pg_timeline_title::before {
    content: counter(pg-timeline);
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--pg-brand);
    color: #fff;
    font-size: 20px;
    line-height: 46px;
    text-align: center;
}

.pg_timeline_text {
    margin: 0;
}

.pg_timeline_text + .pg_timeline_text {
    margin-top: 4px;
}

/* ==========================================================
   10. 定義リスト・サマリ表（事例）
   ========================================================== */
/* 2列の項目：値（事例カード、団体概要） */
.pg_dl {
    display: grid;
    grid-template-columns: 9.5em minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0 0 16px;
    font-size: 14px;
}

.pg_dl dt {
    color: var(--pg-muted);
}

.pg_dl dd {
    margin: 0;
}

/* サマリ表：項目を4列で並べる（導入事例の冒頭） */
.pg_summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    overflow: hidden;
    background: #fff;
}

/* 外枠と重なる右端・下端の線は、はみ出させて overflow で隠す */
.pg_summary > div {
    margin: 0 -1px -1px 0;
    padding: 16px 20px;
    border-right: 1px solid var(--pg-border);
    border-bottom: 1px solid var(--pg-border);
}

.pg_summary dt {
    margin-bottom: 4px;
    color: var(--pg-muted);
    font-size: 12px;
    font-weight: 700;
}

.pg_summary dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

/* 事例カード：写真＋見出し＋pg_dl */
.pg_case {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
}

/* ==========================================================
   11. 表
   ========================================================== */
.pg_table_wrap {
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
}

.pg_table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
}

.pg_table th,
.pg_table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--pg-border);
    text-align: left;
    vertical-align: top;
}

.pg_table tr:last-child th,
.pg_table tr:last-child td {
    border-bottom: 0;
}

.pg_table thead th {
    background: var(--pg-bg);
    font-weight: 700;
}

.pg_table tbody th {
    width: 22%;
    font-weight: 700;
}

/* tidie の列を目立たせる */
.pg_table .is-tidie {
    background: var(--pg-tint);
}

.pg_table thead .is-tidie {
    background: var(--pg-green);
    color: #fff;
}

/* 結論を先に（比較ページ）：2列の向き・不向き */
.pg_verdict {
    padding: 28px;
}

.pg_verdict_title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}

/* ==========================================================
   12. チェックリスト・箇条書き
   ========================================================== */
.pg_check {
    margin: 0;
    padding: 0;
}

.pg_check > li {
    position: relative;
    padding: 6px 0 6px 32px;
}

.pg_check > li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--pg-brand);
    border-radius: 4px;
}

.pg_check > li::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 10px;
    width: 5px;
    height: 9px;
    border: solid var(--pg-green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pg_dots {
    margin: 0;
    padding-left: 1.3em;
}

.pg_dots > li {
    list-style: disc;
    margin: 4px 0;
}

/* ==========================================================
   13. 記事（コラム・事例本文・テンプレート配布の解説）
   ========================================================== */
.pg_article > h2 {
    margin: 56px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pg-border);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.pg_article > h3 {
    margin: 32px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--pg-brand);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

.pg_article > p {
    margin: 0 0 16px;
    line-height: 1.95;
}

.pg_article > ul,
.pg_article > ol {
    margin: 0 0 16px;
    padding-left: 1.4em;
}

.pg_article > ul > li { list-style: disc; margin: 4px 0; }
.pg_article > ol > li { list-style: decimal; margin: 4px 0; }

.pg_article h1 {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
}

/* 公開日・更新日 */
.pg_meta {
    margin: 0 0 24px;
    color: var(--pg-muted);
    font-size: 13px;
}

.pg_meta span + span {
    margin-left: 1.5em;
}

/* タグ */
.pg_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.pg .pg_tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--pg-bg);
    color: var(--pg-text);
    font-size: 12px;
    text-decoration: none;
}

.pg .pg_tag--main {
    background: var(--pg-green);
    color: #fff;
    font-weight: 700;
}

/* 要点3行（記事冒頭）。本文を読まなくても結論がわかるように */
.pg_keypoints {
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: var(--pg-radius);
    background: var(--pg-orange-tint);
}

.pg_keypoints_title {
    margin: 0 0 8px;
    font-weight: 700;
}

.pg_keypoints ul {
    margin: 0;
    padding-left: 1.3em;
}

.pg_keypoints li {
    list-style: disc;
    margin: 2px 0;
}

/* 目次 */
.pg_toc {
    margin: 24px 0;
    padding: 20px 24px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
}

.pg_toc_title {
    margin: 0 0 8px;
    font-weight: 700;
}

.pg_toc ol {
    margin: 0;
    padding-left: 1.4em;
}

.pg_toc li {
    list-style: decimal;
    margin: 4px 0;
}

/* ポイントボックス：読み飛ばされたくない注意点 */
.pg_box {
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: var(--pg-radius);
    background: var(--pg-bg);
}

.pg_box_title {
    margin: 0 0 6px;
    color: var(--pg-green);
    font-weight: 700;
}

.pg_box p:last-child {
    margin-bottom: 0;
}

/* 用語ボックス：用語のひとこと説明 */
.pg_box--term {
    padding: 14px 20px;
    border: 1px solid var(--pg-border);
    background: #fff;
    font-size: 14px;
}

/* 引用（事例の印象的な一言） */
.pg_quote {
    margin: 28px 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--pg-brand);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.7;
}

/* 利用者の声（業種ページ） */
.pg_voice {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 32px;
}

.pg_voice blockquote {
    margin: 0;
}

.pg_voice blockquote p {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}

.pg_voice cite {
    color: var(--pg-muted);
    font-size: 13px;
    font-style: normal;
}

/* ==========================================================
   14. FAQ
   ========================================================== */
.pg_faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.pg_faq details {
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
}

.pg_faq summary {
    position: relative;
    padding: 18px 56px 18px 24px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.pg_faq summary::-webkit-details-marker {
    display: none;
}

.pg_faq summary::before {
    content: "Q.";
    margin-right: 8px;
    color: var(--pg-green);
}

.pg_faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 24px;
    color: var(--pg-green);
    font-size: 22px;
    transform: translateY(-50%);
}

.pg_faq details[open] summary::after {
    content: "−";
}

.pg_faq_answer {
    padding: 0 24px 20px;
    color: var(--pg-muted);
    font-size: 15px;
}

.pg_faq_answer p {
    margin: 0;
}

/* ==========================================================
   15. CTA
   ========================================================== */
/* CTA帯：ページ末尾。緑の帯に主ボタン */
.pg_cta_band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 40px;
    border-radius: 16px;
    background: var(--pg-green);
    color: #fff;
}

.pg_cta_band_title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
}

.pg_cta_band_text {
    margin: 0;
    font-size: 15px;
}

/* 記事中のCTA：本文の途中に1つ */
.pg_cta_inline {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin: 32px 0;
    padding: 24px;
    border: 2px solid var(--pg-green);
    border-radius: var(--pg-radius);
    background: #fff;
}

.pg_cta_inline--text {
    grid-template-columns: minmax(0, 1fr);
}

.pg_cta_inline_title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.pg_cta_inline .pg_btn_note {
    margin: 0 0 12px;
}

/* 選べるCTA：目的別の添え書きつきで2〜3択 */
.pg_cta_choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.pg .pg_cta_choice a {
    display: block;
    padding: 24px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
    text-decoration: none;
}

.pg .pg_cta_choice a:hover {
    border-color: var(--pg-green);
}

.pg_cta_choice_sub {
    display: block;
    margin-bottom: 4px;
    color: var(--pg-muted);
    font-size: 13px;
}

.pg_cta_choice_main {
    display: block;
    color: var(--pg-green);
    font-size: 20px;
    font-weight: 700;
}

.pg .pg_cta_choice a.is-primary {
    border-color: var(--pg-orange);
    background: var(--pg-orange);
}

.pg .pg_cta_choice a.is-primary:hover {
    background: var(--pg-orange-dark);
}

.pg_cta_choice a.is-primary .pg_cta_choice_sub,
.pg_cta_choice a.is-primary .pg_cta_choice_main {
    color: #fff;
}

/* サイドバーのCTA */
.pg_side_cta {
    border: 2px solid var(--pg-green);
}

/* ==========================================================
   16. 回遊（相互リンク）
   ========================================================== */
/* タイル：ほかの管理対象・ほかの機能 */
.pg_tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
}

.pg .pg_tiles a {
    display: block;
    padding: 16px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
    color: var(--pg-text);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.pg .pg_tiles a:hover {
    border-color: var(--pg-green);
    color: var(--pg-green);
}

/* 現在のページ（リンクにしない） */
.pg_tiles .is-current {
    display: block;
    padding: 16px;
    border-radius: var(--pg-radius);
    background: var(--pg-tint);
    color: var(--pg-green);
    font-weight: 700;
    text-align: center;
}

/* リンクの箇条書き（この機能がよく使われるモノ／事例／コラム） */
.pg_links_title {
    margin: 0 0 12px;
    font-weight: 700;
}

.pg_links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

/* 関連記事カード：画像＋タイトル */
.pg .pg_related {
    display: block;
    overflow: hidden;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
    color: var(--pg-text);
    text-decoration: none;
}

.pg .pg_related:hover {
    border-color: var(--pg-green);
}

.pg_related img {
    display: block;
}

.pg_related img,
.pg_related .pg_ph {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
}

.pg_related_title {
    margin: 0;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.pg_related_sub {
    display: block;
    margin-bottom: 2px;
    color: var(--pg-muted);
    font-size: 12px;
    font-weight: 400;
}

/* ==========================================================
   16-2. 料金プランのカード（料金ページ）
   .pg_plans ＞ .pg_plan（.pg_plan--free / --starter / --basic / --plus / --pro）
   プランが上がるほど見出しの緑を濃くする。フリーは主CTAと同じオレンジで「まずはここから」を示す。
   ========================================================== */
.pg_plans {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-top: 28px;
}

.pg_plan {
    --plan-color: var(--pg-green);
    --plan-text: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
    box-shadow: 0 6px 20px rgba(18, 51, 47, .06);
}

/* 白い文字が読めるよう、いちばん明るいスターターでもブランド色より少し濃くする */
.pg_plan--starter { --plan-color: #1b9188; }
.pg_plan--basic   { --plan-color: var(--pg-green); }
.pg_plan--plus    { --plan-color: #0f6b64; }
.pg_plan--pro     { --plan-color: #0b4c47; }

.pg_plan--free {
    --plan-color: var(--pg-orange-tint);
    --plan-text: var(--pg-orange);
    border: 2px solid var(--pg-orange);
    box-shadow: 0 10px 28px rgba(233, 70, 9, .14);
}

.pg_plan_badge {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--pg-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.8;
}

.pg_plan_head {
    padding: 20px 18px 16px;
    background: var(--plan-color);
    color: var(--plan-text);
}

.pg_plan_name {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .06em;
}

.pg_plan_catch {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.6;
    opacity: .92;
}

.pg_plan_body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.pg_plan_price {
    margin: 0;
    color: var(--pg-text);
    line-height: 1.2;
    white-space: nowrap;
}

.pg_plan_amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .01em;
    font-variant-numeric: tabular-nums;
}

.pg_plan_unit {
    margin-left: 2px;
    color: var(--pg-muted);
    font-size: 13px;
    font-weight: 700;
}

.pg_plan_tax {
    margin: 4px 0 0;
    color: var(--pg-muted);
    font-size: 12px;
}

.pg_plan_specs {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--pg-border);
}

.pg_plan_specs li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--pg-border);
    font-size: 14px;
    line-height: 1.5;
}

.pg_plan_specs li span {
    color: var(--pg-muted);
    font-size: 13px;
}

.pg_plan_specs li strong {
    text-align: right;
}

.pg_plan_specs .is-all strong {
    color: var(--pg-green);
}

.pg_plan_specs .is-all strong::before {
    content: "✓ ";
}

.pg_plan_note {
    margin: 12px 0 0;
    color: var(--pg-muted);
    font-size: 12px;
    line-height: 1.6;
}

.pg_plan_cta {
    margin-top: auto;
    padding-top: 18px;
}

/* カードの幅が狭いので、ボタンの左右の余白を詰めて1行に収める */
.pg .pg_plan_cta .pg_btn {
    padding: 0 12px;
    white-space: nowrap;
    text-align: center;
}

/* エンタープライズなど、横長で別扱いにするプラン */
.pg_plan_wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 16px;
    padding: 28px 32px;
    border-radius: var(--pg-radius);
    background: var(--pg-dark);
    color: #fff;
}

.pg_plan_wide .pg_plan_name {
    color: #fff;
}

.pg_plan_wide .pg_plan_catch {
    color: #bfd7d3;
    font-size: 14px;
}

.pg_plan_wide p:last-child {
    margin-bottom: 0;
}

.pg_plan_wide_text {
    margin: 10px 0 0;
    color: #e3efed;
    font-size: 14px;
}

/* ==========================================================
   17. スマホ・タブレット
   ========================================================== */
@media screen and (max-width: 1020px) {
    .pg_plans {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pg_layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg_side {
        position: static;
    }

    .pg_grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .pg_summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 767px) {
    .pg {
        font-size: 15px;
    }

    .pg_wrap {
        padding: 0 16px;
    }

    .pg_sec {
        padding: 48px 0;
    }

    .pg_sec--flush {
        padding-top: 0;
    }

    .pg_h2 {
        font-size: 22px;
    }

    .pg_hero {
        padding: 20px 0 44px;
    }

    .pg_hero h1 {
        font-size: 26px;
    }

    .pg_hero_grid,
    .pg_row,
    .pg_solution,
    .pg_case,
    .pg_voice,
    .pg_cta_inline,
    .pg_grid--2,
    .pg_grid--3,
    .pg_grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg_hero_grid,
    .pg_row {
        gap: 24px;
    }

    .pg_row--reverse .pg_row_media {
        order: 0;
    }

    .pg_rows {
        gap: 44px;
    }

    .pg_row .pg_h2 {
        font-size: 20px;
    }

    .pg_case,
    .pg_voice {
        padding: 24px;
    }

    .pg_voice .pg_ph,
    .pg_voice img {
        max-width: 120px;
    }

    .pg_summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg_btns .pg_btn {
        width: 100%;
    }

    .pg_cta_band {
        padding: 32px 20px;
    }

    .pg_cta_band_title {
        font-size: 21px;
    }

    .pg_cta_band .pg_btns {
        width: 100%;
    }

    .pg_article h1 {
        font-size: 24px;
    }

    .pg_article > h2 {
        margin-top: 44px;
        font-size: 20px;
    }

    .pg_article > h3 {
        font-size: 17px;
    }

    .pg_tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 縦に進むステップ：左の余白を詰める */
    .pg_timeline > li {
        padding-left: 44px;
    }

    .pg_timeline > li + li {
        margin-top: 40px;
    }

    .pg_timeline > li::before {
        top: 16px;
    }

    .pg_timeline > li::after {
        top: 19px;
        width: 22px;
    }

    .pg_timeline_title {
        gap: 10px;
        font-size: 18px;
    }

    .pg_timeline_title::before {
        width: 38px;
        height: 38px;
        font-size: 17px;
        line-height: 38px;
    }

    /* 料金プラン：1列に。見出しと料金を横に並べて縦の長さを抑える */
    .pg_plans {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .pg_plan_head {
        padding: 16px 18px 12px;
    }

    .pg_plan_body {
        padding: 14px 18px 18px;
    }

    .pg_plan_specs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        margin-top: 12px;
    }

    .pg_plan_wide {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 20px;
    }

    .pg_plan_wide .pg_btn {
        width: 100%;
    }
}
