/* 関連記事 */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.related-post {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-post:hover {
    transform: scale(1.02);
    top: -2%;
}

.related-post a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-post-thumbnail {
    width: 100%;
    height: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

.related-post-title {
    padding: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .background-gray {
        padding: 20px 20px;
    }
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .related-post-title {
        padding: 0px 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        width: calc(100% - 20px);
    }
}

/*カテゴリリンクのスタイル*/
.category-links {
    margin: 20px 0;
}

.category-links h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.category-button {
    display: inline-block;
    padding: 4px 20px 6px;
    margin: 0 5px 0 0;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-button a {
    color: #fff;
    text-decoration: none;
}

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

.category-button a:hover {
    color: #fff;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* SNS links */
.sns-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.sns-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    background: #1e6aa8;
    color: #fff;
}

.sns-btn:hover {
    opacity: .92;
    filter: brightness(1.05);
}

.sns-btn i {
    font-size: 16px;
}

.sns-text {
    font-size: 14px;
    white-space: nowrap;
}

.single .sns-buttons {
    margin-top: 0;
    gap: 8px;
}

.single .sns-btn {
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line, #e5e7eb);
    background: var(--card-bg, #fff);
    color: var(--ink, #1f2933);
    box-shadow: none;
}

.single .sns-btn:hover {
    opacity: 1;
    filter: none;
    background: var(--soft-card, #f9fafb);
    transform: translateY(-1px);
}

.single .sns-btn i {
    color: var(--muted, #6b7280);
}

.sns-youtube {
    background: #ff0033;
    color: #fff;
}

.sns-x {
    background: #111111;
    color: #fff;
}

.sns-instagram {
    background: #c13584;
    color: #fff;
}

.sns-line {
    background: #06C755;
    color: #fff;
}

.sns-shop {
    background: #2b7a3d;
    color: #fff;
}

.sns-liberty {
    background: #2f6f6f;
    color: #fff;
}

.sns-marshmallow {
    background: #6b5cff;
    color: #fff;
}

.single .sns-buttons .sns-btn {
    border: 1px solid var(--line, #e5e7eb);
    background: var(--card-bg, #fff);
    color: var(--ink, #1f2933);
}

/* 次前ナビゲーション */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 20px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    width: 40%;
    text-align: center;
    border-radius: 5px;
    padding: 10px 4%;
    font-size: 0.8rem;
    border: 1px solid #ddd;
}

.nav-previous i, .nav-next i {
    margin-right: 8px;
    vertical-align: middle;
}

.nav-previous i {
    margin-left: 8px;
    margin-right: 0;
}

.nav-next i {
    margin-right: 8px;
    margin-left: 0;
}

.nav-thumbnail img {
    width: 100px;
    height: 100px;
}

/*パンくずリスト*/
.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.breadcrumb li {
    display: inline;
}

/* Single content blocks */
.single-answer-box,
.single-how-to,
.single-faq,
.single-youtube-video,
.single-youtube-channel-cta,
.single-related-videos,
.cta-download-support {
    margin: 24px 0;
}

.single-answer-box,
.single-how-to,
.single-youtube-channel-cta,
.cta-download-usage,
.cta-recommended-materials {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card-bg);
}

.single-how-to,
.single-faq,
.single-youtube-video,
.single-related-videos,
.cta-download-usage,
.cta-recommended-materials {
    color: #444;
}

.single-answer-box h2,
.single-how-to h2,
.single-faq h2,
.single-youtube-video h2,
.single-youtube-channel-cta h2,
.single-related-videos h2,
.cta-download-usage h3,
.cta-recommended-materials h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
    line-height: 1.5;
}

.single-how-to-item h3,
.single-faq-item h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
}

.single-how-to-item p,
.single-faq-item p,
.single-youtube-channel-cta p {
    margin-bottom: 0;
}

/* Single CTA */
.cta-download {
    margin: 18px 0;
}

.cta-download--first-view {
    margin: 18px 0 8px;
}

.cta-download--after-variations {
    margin-top: 14px;
}

.cta-download--post-bottom {
    margin-top: 20px;
}

.single .cta-download-button {
    width: 100%;
    border-radius: 8px;
    font-weight: 700;
}

.cta-download--first-view .cta-download-button,
.cta-download--post-bottom .cta-download-button {
    padding: 14px;
}

.cta-download--after-variations .cta-download-button {
    padding: 10px;
    font-size: 1rem;
    background-color: #333;
}

.cta-download-support {
    display: grid;
    gap: 16px;
}

.cta-youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.cta-youtube-embed iframe {
    width: 100%;
    height: 100%;
}

.cta-text-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}

.cta-recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cta-recommended-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.cta-recommended-thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.cta-recommended-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.cta-recommended-title {
    font-size: 14px;
    line-height: 1.5;
}

.cta-follow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 32px;
}

.cta-follow .LnkBtn,
.cta-follow .booth-button-container {
    flex: 1 1 220px;
    margin: 0;
    max-width: none;
}

.cta-follow-button {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.cta-follow-button--youtube {
    background: #ff0033;
}

.cta-follow-button--shop {
    background: #2b7a3d;
}

.cta-follow-button:hover {
    color: #fff;
    opacity: .92;
}

@media (max-width: 767px) {
    .single-answer-box,
    .single-how-to,
    .single-faq,
    .single-youtube-video,
    .single-youtube-channel-cta,
    .single-related-videos,
    .cta-download-support {
        margin: 18px 0;
    }

    .single-answer-box,
    .single-how-to,
    .single-youtube-channel-cta,
    .cta-download-usage,
    .cta-recommended-materials {
        padding: 14px;
        border-radius: 8px;
    }

    .single-answer-box h2,
    .single-how-to h2,
    .single-faq h2,
    .single-youtube-video h2,
    .single-youtube-channel-cta h2,
    .single-related-videos h2,
    .cta-download-usage h3,
    .cta-recommended-materials h3 {
        margin-bottom: 10px;
        font-size: 1rem;
        line-height: 1.45;
    }

    .single .cta-download-button,
    .cta-follow-button,
    .single-youtube-subscribe-button {
        min-height: 44px;
    }

    .cta-recommended-grid {
        grid-template-columns: 1fr;
    }
}

.single-answer-box-list {
    margin: 0;
    padding-left: 1.3em;
}

.single-answer-box-list li + li {
    margin-top: 6px;
}

.single-faq-item {
    padding: 14px 0;
    border-bottom: 1px solid #e2e2e2;
}

.single-how-to-list {
    display: grid;
    gap: 12px;
}

/* Single YouTube blocks */
.single-youtube-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.single-youtube-video-embed iframe {
    width: 100%;
    height: 100%;
}

.single-youtube-channel-cta {
    text-align: center;
}

.single-youtube-channel-cta p {
    margin: 0 0 14px;
}

.single-youtube-subscribe-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    background: #ff0033;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.single-youtube-subscribe-button:hover {
    color: #fff;
    opacity: .92;
}

.single-related-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.single-related-video-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.single-related-video-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.single-related-video-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.single-related-video-title {
    font-size: 14px;
    line-height: 1.5;
}

.youtube-thumb-gallery {
    margin: 32px 0;
}

.youtube-thumb-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.youtube-thumb-card {
    --youtube-thumb-rotate: -0.8deg;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 22px;
    background: #fff;
    color: var(--ink, #1f2933);
    box-shadow: var(--soft-shadow, 0 8px 20px rgba(17, 24, 39, 0.07));
    text-decoration: none;
    transform: rotate(var(--youtube-thumb-rotate));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.youtube-thumb-card:nth-child(2n) {
    --youtube-thumb-rotate: 0.7deg;
}

.youtube-thumb-card:nth-child(3n) {
    --youtube-thumb-rotate: -0.35deg;
}

.youtube-thumb-card:hover,
.youtube-thumb-card:focus-within {
    color: var(--ink, #1f2933);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.12);
    outline: none;
    transform: translateY(-3px) rotate(0deg);
}

.youtube-thumb-card:focus-within {
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.10), 0 16px 30px rgba(17, 24, 39, 0.12);
}

.youtube-thumb-card__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.youtube-thumb-card__main:focus-visible,
.youtube-thumb-card__channel a:focus-visible {
    outline: none;
}

.youtube-thumb-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: var(--soft-card, #f9fafb);
}

.youtube-thumb-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-thumb-card__body {
    display: grid;
    gap: 7px;
    padding: 12px 4px 4px;
}

.youtube-thumb-card__tag {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    max-width: 100%;
    min-height: 22px;
    padding: 3px 9px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: var(--soft-card, #f9fafb);
    color: var(--muted, #6b7280);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.youtube-thumb-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink, #1f2933);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.youtube-thumb-card__channel {
    display: block;
    overflow: hidden;
    margin: 0 4px 4px;
    color: var(--muted, #6b7280);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.youtube-thumb-card__channel a {
    color: inherit;
    text-decoration: none;
}

.youtube-thumb-card__channel a:hover {
    color: var(--ink, #1f2933);
}

.project-banner-slot {
    width: min(calc(100% - 32px), 1120px);
    margin: clamp(36px, 6vw, 72px) auto 24px;
}

.project-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    padding: clamp(14px, 3vw, 22px);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow, 0 8px 20px rgba(17, 24, 39, 0.07));
    color: var(--ink, #1f2933);
    text-decoration: none;
}

a.project-banner {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

a.project-banner:hover,
a.project-banner:focus-visible {
    color: var(--ink, #1f2933);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.12);
    outline: none;
    transform: translateY(-2px);
}

.project-banner__image {
    display: block;
    overflow: hidden;
    flex: 1 1 auto;
    border-radius: 20px;
    background: var(--soft-card, #f9fafb);
}

.project-banner__image img {
    display: block;
    width: 100%;
    height: auto;
}

.project-banner__text {
    flex: 0 1 320px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 900;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .single-related-videos-grid {
        grid-template-columns: 1fr;
    }

    .youtube-thumb-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .youtube-thumb-card {
        --youtube-thumb-rotate: -0.2deg;
        padding: 8px;
        border-radius: 18px;
    }

    .youtube-thumb-card:nth-child(2n) {
        --youtube-thumb-rotate: 0.2deg;
    }

    .youtube-thumb-card__thumb {
        border-radius: 13px;
    }

    .youtube-thumb-card__body {
        gap: 6px;
        padding-top: 10px;
    }

    .youtube-thumb-card__title {
        font-size: 13px;
    }

    .project-banner-slot {
        width: min(calc(100% - 24px), 1120px);
        margin-top: 36px;
    }

    .project-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border-radius: 22px;
    }

    .project-banner__image {
        border-radius: 16px;
    }

    .project-banner__text {
        flex-basis: auto;
    }
}

@media (max-width: 420px) {
    .youtube-thumb-gallery__grid {
        grid-template-columns: 1fr;
    }
}

.anonymous-request-form {
    display: grid;
    gap: 18px;
    width: min(100%, 720px);
    margin: clamp(28px, 5vw, 54px) auto;
    padding: clamp(22px, 4vw, 34px);
    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;
}

.anonymous-request-form__head {
    display: grid;
    gap: 10px;
    text-align: center;
}

.anonymous-request-form__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    min-height: 24px;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: var(--soft-card, #f9fafb);
    color: var(--muted, #6b7280);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.anonymous-request-form h2 {
    margin: 0;
    color: var(--ink, #1f2933);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
}

.anonymous-request-form__head p:not(.anonymous-request-form__eyebrow),
.anonymous-request-form__source,
.anonymous-request-form__message {
    margin: 0;
    color: var(--muted, #6b7280);
    font-size: 14px;
    line-height: 1.8;
}

.anonymous-request-form__source {
    padding: 12px 14px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    background: var(--soft-card, #f9fafb);
}

.anonymous-request-form__source strong {
    color: var(--ink, #1f2933);
}

.anonymous-request-form__message {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
}

.anonymous-request-form__message--success {
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: #f0fdf4;
    color: #166534;
}

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

.anonymous-request-form form {
    display: grid;
    gap: 16px;
}

.anonymous-request-form__field {
    display: grid;
    gap: 8px;
}

.anonymous-request-form__field--trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.anonymous-request-form label {
    color: var(--ink, #1f2933);
    font-size: 14px;
    font-weight: 900;
}

.anonymous-request-form label span {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--soft-card, #f9fafb);
    color: var(--muted, #6b7280);
    font-size: 11px;
    line-height: 1.2;
}

.anonymous-request-form input,
.anonymous-request-form select,
.anonymous-request-form textarea {
    width: 100%;
    padding: 13px 14px;
    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;
}

.anonymous-request-form 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;
}

.anonymous-request-form textarea {
    min-height: 150px;
    resize: vertical;
}

.anonymous-request-form input:focus,
.anonymous-request-form select:focus,
.anonymous-request-form 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);
}

.anonymous-request-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    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);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.anonymous-request-form button:hover,
.anonymous-request-form button:focus-visible {
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.18);
    outline: none;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .anonymous-request-form {
        padding: 18px;
        border-radius: 22px;
    }

    .anonymous-request-form__head {
        text-align: left;
    }

    .anonymous-request-form__eyebrow {
        justify-self: start;
    }

    .anonymous-request-form button {
        width: 100%;
    }
}
