.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-content-card .youtube-thumb-intro {
    max-width: 780px;
    margin: 0 auto 34px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 24px;
    background: var(--soft-card, #f9fafb);
}

.page-content-card .youtube-thumb-intro h1 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.12;
}

.page-content-card .youtube-thumb-intro h2 {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.page-content-card .youtube-thumb-intro p {
    color: var(--muted, #6b7280);
    font-size: 15px;
    line-height: 1.95;
}

.page-content-card .youtube-thumb-intro p:first-of-type {
    color: var(--ink, #1f2933);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    line-height: 1.75;
}

.page-content-card .youtube-thumb-intro + .youtube-thumb-gallery,
.page-content-card .youtube-thumb-intro + p + .youtube-thumb-gallery {
    margin-top: 28px;
}

.page-content-card .youtube-thumb-gallery {
    margin-right: auto;
    margin-left: auto;
}

.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 */
.contact-shell__inner {
    width: min(100%, 1040px);
}

.contact-content-card {
    display: grid;
    gap: 28px;
    overflow: visible;
}

.contact-intro {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0 0 14px;
    padding: 4px 12px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: var(--soft-card, #f9fafb);
    color: var(--muted, #6b7280);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.contact-intro h1 {
    margin: 0 0 18px;
    color: var(--ink, #1f2933);
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.12;
}

.contact-lead {
    margin: 0 auto 14px;
    color: var(--ink, #1f2933);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.65;
}

.contact-description,
.contact-reply-note {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted, #6b7280);
    font-size: 15px;
    line-height: 1.9;
}

.contact-reply-note {
    margin-top: 12px;
    font-weight: 700;
}

.contact-guide,
.contact-helper {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 22px;
    background: var(--soft-card, #f9fafb);
}

.contact-guide h2,
.contact-helper h2,
.contact-page h2 {
    margin: 0 0 16px;
    color: var(--ink, #1f2933);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.4;
}

.contact-guide__list,
.contact-helper ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-guide__list li,
.contact-helper li {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: #fff;
    color: var(--ink, #1f2933);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.contact-page-content {
    width: min(100%, 760px);
    margin: 0 auto;
}

.contact-page-content:empty {
    display: none;
}

.contact-page {
    width: min(100%, 680px);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow, 0 8px 20px rgba(17, 24, 39, 0.07));
    box-sizing: border-box;
}

.contact-page form {
    display: grid;
    gap: 18px;
}

.contact-page .form-group {
    margin: 0;
}

.contact-page label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink, #1f2933);
    font-size: 14px;
    font-weight: 900;
}

.contact-page input,
.contact-page select,
.contact-page textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 14px;
    background: var(--soft-card, #f9fafb);
    color: var(--ink, #1f2933);
    box-sizing: border-box;
    font: inherit;
    line-height: 1.6;
}

.contact-page select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted, #6b7280) 50%), linear-gradient(135deg, var(--muted, #6b7280) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.contact-page textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-page input:focus,
.contact-page select:focus,
.contact-page textarea:focus {
    border-color: rgba(17, 24, 39, 0.42);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.contact-page .required,
.contact-page .optional {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.contact-page .required {
    background: var(--accent, #111827);
    color: #fff;
}

.contact-page .optional {
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: var(--soft-card, #f9fafb);
    color: var(--muted, #6b7280);
}

.contact-form-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.contact-form-message--error {
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: #fff5f5;
    color: #991b1b;
}

.contact-page button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    border: 1px solid var(--accent, #111827);
    border-radius: 999px;
    background: var(--accent, #111827);
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.14);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-page button::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 18px;
    height: 18px;
    border-bottom-left-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0 50%, rgba(229, 231, 235, 0.95) 51% 100%);
    opacity: 0;
    transform: translate(4px, -4px) scale(0.72);
    transform-origin: 100% 0;
    transition: opacity 0.2s ease, transform 0.22s ease;
    pointer-events: none;
}

.contact-page button:hover,
.contact-page button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.18);
}

.contact-page button:hover::after,
.contact-page button:focus-visible::after {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.contact-thanks {
    display: grid;
    gap: 18px;
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow, 0 8px 20px rgba(17, 24, 39, 0.07));
    box-sizing: border-box;
    text-align: center;
}

.page-content-card .contact-thanks h1,
.contact-thanks h1 {
    margin: 0;
    color: var(--ink, #1f2933);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
}

.contact-thanks p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted, #6b7280);
    font-size: 15px;
    line-height: 1.9;
}

.contact-thanks__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-height: 48px;
    margin-top: 8px;
    padding: 13px 20px;
    border: 1px solid var(--accent, #111827);
    border-radius: 999px;
    background: var(--accent, #111827);
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.14);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-thanks__button::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 18px;
    height: 18px;
    border-bottom-left-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0 50%, rgba(229, 231, 235, 0.95) 51% 100%);
    opacity: 0;
    transform: translate(4px, -4px) scale(0.72);
    transform-origin: 100% 0;
    transition: opacity 0.2s ease, transform 0.22s ease;
    pointer-events: none;
}

.contact-thanks__button:hover,
.contact-thanks__button:focus-visible {
    color: #fff;
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.18);
    outline: none;
    transform: translateY(-2px);
}

.contact-thanks__button:hover::after,
.contact-thanks__button:focus-visible::after {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* メイン画像 */
.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;
    }

    .page-content-card .youtube-thumb-intro {
        margin-bottom: 24px;
        padding: 20px 18px;
        border-radius: 18px;
    }

    .page-content-card .youtube-thumb-intro h1 {
        font-size: 2rem;
    }

    .page-content-card .youtube-thumb-intro h2 {
        margin-top: 26px;
        padding-top: 20px;
    }

    .page-content-card .youtube-thumb-intro p {
        font-size: 14px;
    }

    .contact-content-card {
        gap: 22px;
    }

    .contact-intro {
        text-align: left;
    }

    .contact-intro h1 {
        font-size: 2rem;
    }

    .contact-description,
    .contact-reply-note {
        font-size: 14px;
    }

    .contact-guide,
    .contact-helper {
        padding: 18px;
        border-radius: 18px;
    }

    .contact-guide__list,
    .contact-helper ul {
        gap: 8px;
    }

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

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

    .contact-thanks {
        padding: 24px 18px;
        border-radius: 20px;
        text-align: left;
    }

    .contact-thanks p {
        font-size: 14px;
    }

    .contact-thanks__button {
        justify-self: stretch;
        width: 100%;
        box-sizing: border-box;
    }
}
