.page-shell {
    min-height: 60vh;
    padding: 150px 18px 72px;
}

.page-shell__inner {
    width: min(100%, 960px);
    margin: 0 auto;
}

.page-breadcrumb {
    margin: 0 0 18px;
}

.page-breadcrumb .breadcrumb {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.page-breadcrumb .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: normal;
}

.page-breadcrumb .breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--muted, #6b7280);
    font-size: 12px;
    font-weight: 800;
}

.page-breadcrumb .breadcrumb li + li::before {
    content: "›";
    color: rgba(31, 41, 51, 0.32);
    font-size: 14px;
    font-weight: 900;
}

.page-breadcrumb .breadcrumb a,
.page-breadcrumb .breadcrumb li > span {
    display: inline-flex;
    align-items: center;
    max-width: min(58vw, 340px);
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink, #1f2933);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-breadcrumb .breadcrumb a span {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    text-overflow: inherit;
}

.page-breadcrumb .breadcrumb li:last-child > span {
    max-width: min(52vw, 320px);
    padding-right: 2px;
    padding-left: 2px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-weight: 900;
}

.page-content-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: var(--radius, 22px);
    box-shadow: var(--soft-shadow, 0 8px 20px rgba(17, 24, 39, 0.07));
    padding: clamp(24px, 4vw, 48px);
}

.page-content-card > article {
    margin: 0;
}

.page-body {
    width: 100%;
}

.page-content-card .post-content {
    color: var(--ink, #1f2933);
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif);
    line-height: 1.85;
}

.page-content-card .post-content > *:first-child {
    margin-top: 0;
}

.page-content-card .post-content > *:last-child {
    margin-bottom: 0;
}

.page-content-card h1,
.page-content-card h2,
.page-content-card h3 {
    color: var(--ink, #1f2933);
    line-height: 1.35;
}

.page-content-card h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 0 0 24px;
}

.page-content-card h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin: 40px 0 16px;
}

.page-content-card h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    margin: 28px 0 12px;
}

.page-content-card p {
    margin: 0 0 1.2em;
}

.page-content-card a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.page-shell .ad {
    margin: 24px auto;
}

.ad-page-bottom {
    width: min(100%, 960px);
}

/* 目次のスタイル */
.table-of-contents {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f7f6;
    border-radius: 5px;
    font-size: 14px;
}

.table-of-contents h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 5px;
}

.table-of-contents a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    text-decoration: underline;
    color: #005f8d;
}



/* フォーム */
/* ------------------------------ */
.contact-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-page .form-group {
    margin-bottom: 15px;
}

.contact-page label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-page input,
.contact-page textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-page input:focus,
.contact-page textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

.contact-page button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.contact-page button:hover {
    background-color: #005f8d;
}

/* メイン画像 */
.page .post-thumbnail,
.common-page .post-thumbnail {
    text-align: center;
    margin-bottom: 20px;
}

.page .post-thumbnail img,
.common-page .post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .page-shell {
        padding: 116px 14px 48px;
    }

    .page-content-card {
        border-radius: 18px;
        padding: 22px 18px;
    }

    .page-breadcrumb {
        margin-bottom: 14px;
    }

    .contact-page {
        width: calc(100% - 24px);
        padding: 16px;
        box-sizing: border-box;
        box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
    }

    .contact-page h1 {
        font-size: 1.5rem;
    }

    .contact-page button {
        min-height: 44px;
    }
}
