@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* =========================================================
   guide.css
   公開コンテンツ共通スタイル（TOPの公開ハブセクション + /guide/* 配下）。
   既存の .card（base.css）を文章ブロックの土台として再利用し、
   ここでは「ガイド一覧グリッド」「関連リンク」「CTA」「パンくず」など
   base.css に無い部品だけを追加する。
========================================================= */

/* TOPと公開ガイドだけ、丸くてやさしい書体にする */
.page--public,
.page--guide {
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-weight: 500;
}

.page--public .card,
.page--guide .card {
    letter-spacing: 0.015em;
}

.page--public .card h2,
.page--guide .card h1,
.page--guide .card h2 {
    font-weight: 700;
}

/* 重要な言葉を、強すぎないマーカーで拾いやすくする */
.page--public .card strong,
.page--guide .card strong,
.text-marker {
    font-weight: 700;
    color: #754052;
    background: linear-gradient(transparent 58%, #ffe48c 58%);
    padding: 0 0.08em;
}

/* 見出し内の、そのページを表す大事な言葉 */
.heading-accent {
    color: #c43f70;
    font-weight: 700;
    background: linear-gradient(transparent 64%, #ffe48c 64%);
    padding: 0 0.06em;
}

.point-box {
    margin: 14px 0;
    padding: 13px 15px;
    background: #fff9dc;
    border: 1px solid #f3d97c;
    border-radius: 14px;
    color: #674f20;
    font-size: 14px;
    line-height: 1.75;
}

/* 見出し横の案内アイコン */
.heading-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 7px;
}

.page--public .card h2:has(.heading-icon) {
    display: flex;
    align-items: center;
}

/* パンくず */
.breadcrumb {
    width: 92%;
    max-width: 540px;
    margin: 12px auto 0;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #684b58;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 143, 185, 0.28);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(100, 43, 73, 0.08);
    backdrop-filter: blur(5px);
}

.breadcrumb a {
    color: #ae2f61;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb__sep {
    color: #9c7d89;
}

/* ガイドページのヒーロー（キャラ + リード文） */
.guide-hero {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.guide-hero__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    margin-top: 4px;
}

.guide-hero__lead {
    color: #666;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

/* 「ましゅる」からの一言（安心感の断定を避け、控えめな注意書き用） */
.guide-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff6f9;
    border: 1px solid rgba(255, 143, 185, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 18px 0;
}

.guide-note__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.guide-note p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: #555;
}

/* ガイド一覧グリッド（TOPのハブ用） */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0;
}

@media (min-width: 480px) {
    .guide-grid {
        /* minmax(0, 1fr) にして、長い文が列幅を押し広げないようにする */
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.guide-grid__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
    padding: 16px 16px 14px;
    background: #fff6f9;
    border: 1.5px solid rgba(255, 143, 185, 0.3);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.guide-grid__icon {
    width: 62px;
    height: 62px;
    object-fit: contain;
    align-self: center;
    margin-bottom: 2px;
}

.guide-grid__item:hover {
    background: #ffeef4;
    border-color: #ff8fb9;
    transform: translateY(-2px);
}

.guide-grid__item:focus-visible {
    outline: 3px solid #ff6f91;
    outline-offset: 2px;
}

.guide-grid__title {
    font-size: 15.5px;
    font-weight: bold;
    color: #d94b72;
    /* 「ガイ／ド」のように単語の途中で改行されるのを防ぐ */
    word-break: keep-all;
    overflow-wrap: break-word;
}

.guide-grid__desc {
    font-size: 13px;
    line-height: 1.7;
    color: #777;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* 関連ガイド（各ガイドページ下部） */
.related-guides {
    margin-top: 8px;
}

.related-guides h2 {
    /* .card h2 の既存スタイル（左ボーダー）を継承 */
}

/* .card ul（base.css）と同じ詳細度のため、guide.cssの読み込み順に頼らず
   .card を含めて明示的に上書きする */
.card .related-guides ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-guides a {
    display: block;
    padding: 12px 14px;
    background: #fff6f9;
    border: 1.5px solid rgba(255, 143, 185, 0.3);
    border-radius: 12px;
    color: #d94b72;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.related-guides a:hover {
    background: #ffeef4;
    border-color: #ff8fb9;
}

/* CTA（求人検索・確認フォームへの導線） */
.guide-cta {
    text-align: center;
    margin: 26px 0 6px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 170, 200, 0.25);
}

.guide-cta p {
    font-size: 13.5px;
    color: #888;
    margin: 0 0 12px;
}

.guide-cta .btn {
    /* base.css の .btn をそのまま利用 */
    display: inline-block;
}

/* 確認フォームへ戻るリンク（ガイド末尾の副CTA） */
.guide-cta__sub {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 7px 10px;
    font-size: 13px;
    color: #a95b76;
    text-decoration: none;
    border-radius: 8px;
}

.guide-cta__sub::before {
    content: "↑";
}

/* 別ページへ進むリンク用（「↑」は上へ戻る意味になってしまうため矢印の向きを変える） */
.guide-cta__sub--forward::before {
    content: "→";
}

.guide-cta__sub:hover {
    background: #fff0f5;
    text-decoration: underline;
}

/* チェックリスト（安全に探すための確認事項など） */
/* .card ul（base.css）が list-style:disc を持ち、.guide-checklist 単体では
   詳細度で負けてしまうため、.card を含めた詳細度で確実に上書きする */
.card .guide-checklist {
    margin: 10px 0 16px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-checklist li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.guide-checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6f91;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 13px;
}

/* TOPのハブセクション全体を .confirm-box から少し切り離すための余白調整 */
.top-hub {
    margin-top: 10px;
}

.top-hub .card:first-of-type {
    margin-top: 30px;
}

/* =========================================================
   子記事ツリー化にともなう追加パーツ
   （/guide/ 目次ページ・親ページの子記事導線・記事間の前後リンク）
========================================================= */

/* 親ページ：子記事3本への案内カード（.guide-grid と似た見た目で統一） */
.guide-children {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0;
}

@media (min-width: 480px) {
    .guide-children {
        grid-template-columns: repeat(3, 1fr);
    }
}

.guide-children__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* grid内でtitleの内容量に応じて列幅が広がりカードからはみ出すのを防ぐ */
    padding: 14px 14px 12px;
    background: #fff6f9;
    border: 1.5px solid rgba(255, 143, 185, 0.3);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.guide-children__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    align-self: center;
    margin-bottom: 2px;
}

.guide-children__item:hover {
    background: #ffeef4;
    border-color: #ff8fb9;
    transform: translateY(-2px);
}

.guide-children__item:focus-visible {
    outline: 3px solid #ff6f91;
    outline-offset: 2px;
}

.guide-children__num {
    font-size: 11px;
    font-weight: 700;
    color: #ff8fb9;
}

.guide-children__title {
    font-size: 14.5px;
    font-weight: bold;
    color: #d94b72;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 子記事：兄弟記事（前後）ナビ */
.guide-siblings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0 6px;
}

@media (min-width: 480px) {
    .guide-siblings {
        flex-direction: row;
    }
}

.guide-siblings a {
    flex: 1 1 0;
    display: block;
    padding: 12px 14px;
    background: #fff6f9;
    border: 1.5px solid rgba(255, 143, 185, 0.3);
    border-radius: 12px;
    color: #d94b72;
    font-weight: bold;
    font-size: 13.5px;
    line-height: 1.6;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.guide-siblings a:hover {
    background: #ffeef4;
    border-color: #ff8fb9;
}

.guide-siblings__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #ff8fb9;
    margin-bottom: 2px;
}

/* 子記事：親ガイドへ戻るリンク（パンくずと重複しない、本文末の分かりやすい導線） */
.guide-back-parent {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #a95b76;
    text-decoration: none;
}

.guide-back-parent::before {
    content: "←";
}

.guide-back-parent:hover {
    text-decoration: underline;
}

/* /guide/ 目次ページ：カテゴリごとのグループ見出し＋子記事一覧 */
.guide-toc-group {
    margin: 22px 0;
}

.guide-toc-group__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.guide-toc-group__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.guide-toc-group__title {
    font-size: 16px;
    font-weight: bold;
    color: #d94b72;
    margin: 0;
}

.guide-toc-group__parent-link {
    font-size: 12.5px;
    margin-left: auto;
    white-space: nowrap;
}

.card .guide-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-toc-list a {
    display: block;
    padding: 11px 14px;
    background: #fff6f9;
    border: 1.5px solid rgba(255, 143, 185, 0.3);
    border-radius: 12px;
    color: #d94b72;
    font-weight: bold;
    font-size: 13.5px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.guide-toc-list a:hover {
    background: #ffeef4;
    border-color: #ff8fb9;
}

/* LINEで送る質問文の例：ふきだし風のボックス */
.card .guide-example {
    margin: 10px 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-example li {
    position: relative;
    padding: 12px 14px;
    background: #fff9dc;
    border: 1px solid #f3d97c;
    border-radius: 4px 14px 14px 14px;
    color: #674f20;
    font-size: 14px;
    line-height: 1.75;
}

/* LINE応募の手順 */
.card .guide-line-steps {
    margin: 14px 0 22px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-line-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #fff7fa;
    border: 1.5px solid rgba(255, 111, 145, 0.28);
    border-radius: 16px;
}

.guide-line-steps__number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    background: #ff6f91;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.guide-line-steps strong {
    display: inline;
    font-size: 15px;
}

.guide-line-steps p {
    margin: 5px 0 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #66525a;
}

/* サポート範囲の「できる／できない」を明確に示すボックス */
.guide-scope {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-scope__block {
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.8;
}

.guide-scope__block--can {
    background: #f2fbf3;
    border: 1px solid #b9e6bd;
    color: #2f6b3a;
}

.guide-scope__block--cannot {
    background: #fdf2f2;
    border: 1px solid #f0b8b8;
    color: #8a3a3a;
}

.guide-scope__block strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
    background: none;
    color: inherit;
    padding: 0;
}

/* =========================================================
   TOP（index.php）だけのPC最適化。
   サイト全体はモバイル利用（LINEでの直接問い合わせ導線）が前提のため、
   横幅を大きく使う一般的なデスクトップ化はしない。
   ここでは confirm-box と top-hub のカード幅を完全に揃えたうえで、
   デスクトップ幅では余白・文字サイズにだけ少し余裕を持たせ、
   「崩れていない」ではなく「デスクトップとして整っている」状態にする。
   .page--public は index.php の <body> のみに付くクラスなので、
   他ページ（ガイド・規約系）の見た目には影響しない。
========================================================= */
@media (min-width: 1024px) {
    .page--public .confirm-box {
        padding: 40px 40px 34px;
    }

    .page--public .confirm-box__icon {
        width: 76px;
    }

    .page--public .confirm-box h2 {
        font-size: 23px;
    }

    .page--public .confirm-box__lead {
        font-size: 15.5px;
    }

    .page--public .confirm-check {
        max-width: 400px;
    }

    .page--public .confirm-check__item {
        padding: 15px 18px;
        font-size: 15.5px;
    }

    .page--public .btn-start {
        padding: 16px 34px;
        font-size: 19px;
    }

    .page--public .confirm-box__about {
        font-size: 14px;
    }

    .page--public .top-hub .card {
        padding: 34px 42px;
    }

    .page--public .top-hub .card h1,
    .page--public .top-hub .card > h2 {
        font-size: 20px;
    }

    .page--public .top-hub .card p,
    .page--public .top-hub .card li {
        font-size: 15.5px;
    }

    /* TOPカードはPCでも最大540px。3列では各カードが狭すぎるため2列を維持する。 */
    .page--public .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
