/* =========================================
   Reset & Base (Matched barand_senryaku.html)
   ========================================= */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
}

:root {
    --color-primary: #333333;
    --color-accent: #4CB5A2;
    --color-accent-brand: #4CB5A2;
    --color-accent-data: #2C5282;
    --color-accent-dark: #3A8F7F;
    --color-bg-gray: #F5F5F5;
    --color-bg-dark-gray: #E0E0E0;
    --color-border: #CCCCCC;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Manrope', sans-serif;
    --header-height: 80px;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    color: var(--color-primary);
    line-height: 1.8;
    /* 記事が読みやすいように少し広め */
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility */
.u-pc-only {
    display: block;
}

.u-sp-only {
    display: none;
}

@media (max-width: 768px) {
    .u-pc-only {
        display: none;
    }

    .u-sp-only {
        display: block;
    }
}

/* Animation */
.js-scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.0s var(--ease-out-expo), transform 1.0s var(--ease-out-expo);
}

.js-scroll-fade-up.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Header Styles (From barand_senryaku.html)
   ========================================= */
.p-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.p-header__logo img {
    display: block;
    height: auto;
    width: 200px;
}

.p-header__nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.p-nav__list {
    display: flex;
    align-items: center;
}

.p-nav__item {
    position: relative;
    padding: 0 24px;
}

.p-nav__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: #ccc;
}

.p-nav__link {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    display: block;
    white-space: nowrap;
    position: relative;
}

.p-nav__link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #333;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out-expo);
}

.p-nav__link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.p-header__right-content {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.c-header-btn {
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    background-color: #F5F5F5;
    color: #333;
    padding: 10px 20px;
    display: inline-block;
    transition: all 0.3s;
    white-space: nowrap;
}

.c-header-btn:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

.c-header-btn--primary {
    background-color: #333;
    color: #fff;
}

.c-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 16px;
    z-index: 1001;
}

.c-hamburger span {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
}

.c-hamburger span:nth-of-type(1) {
    top: 12px;
}

.c-hamburger span:nth-of-type(2) {
    top: 19px;
}

.c-hamburger span:nth-of-type(3) {
    top: 26px;
}

.c-hamburger.is-active span:nth-of-type(1) {
    top: 19px;
    transform: rotate(45deg);
}

.c-hamburger.is-active span:nth-of-type(2) {
    opacity: 0;
}

.c-hamburger.is-active span:nth-of-type(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.p-mobile-header {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.p-mobile-header.is-active {
    transform: translateX(0);
}

.p-mobile-header__inner {
    padding: 20px 20px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-mobile-header__nav-item {
    border-bottom: 1px solid #eee;
}

.p-mobile-header__nav-item a {
    display: block;
    padding: 16px 0;
    font-size: 1.6rem;
    font-weight: 700;
    width: 100%;
    text-align: left;
}

.p-mobile-header__cta-area {
    margin-top: 2rem;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c-mobile-cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    line-height: 1.4;
    gap: 10px;
}

.c-mobile-cta-btn--secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
}

.c-mobile-cta-btn--primary {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Breadcrumb
   ========================================= */
.p-breadcrumb {
    background-color: var(--color-bg-gray);
    padding: 20px 0;
    font-size: 1.2rem;
    color: #666;
}

.p-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.p-breadcrumb li {
    display: flex;
    align-items: center;
}

.p-breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    font-family: var(--font-en);
}

.p-breadcrumb a:hover {
    text-decoration: underline;
}

/* =========================================
   Blog Layout (2 Columns)
   ========================================= */
.section-blog-detail {
    padding: 60px 0 100px;
    background-color: #fff;
    /* 詳細ページは背景白が見やすい */
}

.blog-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Main Content */
.blog-main {
    flex: 1;
    width: auto;
    min-width: 0;
    /* Flexbox overflow fix */
}

/* Sidebar */
.blog-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 100px;
}

/* Sidebar Widgets (Same as list page) */
.sidebar-widget {
    background-color: #fff;
    padding: 30px 24px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.widget-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent-brand);
}

.widget-cat-list li {
    border-bottom: 1px solid #f0f0f0;
}

.widget-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.3s;
}

.widget-cat-list a:hover {
    color: var(--color-accent-brand);
}

.widget-cat-list span {
    background-color: #f0f0f0;
    color: #666;
    font-size: 1.1rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font-en);
}

.widget-search-form {
    display: flex;
}

.widget-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1.4rem;
    background-color: #f9f9f9;
}

.widget-search-btn {
    background-color: var(--color-accent-brand);
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.widget-pop-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-pop-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.widget-pop-thumb {
    width: 80px;
    height: 56px;
    background-color: #eee;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.widget-pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-pop-content {
    flex: 1;
}

.widget-pop-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    display: block;
}

.widget-pop-date {
    font-size: 1.1rem;
    color: #888;
    font-family: var(--font-en);
}

/* =========================================
   Single Post Header
   ========================================= */
.p-post-header {
    margin-bottom: 50px;
}

.p-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-family: var(--font-en);
}

.p-post-cat {
    background-color: var(--color-accent-brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 4px 12px;
    border-radius: 4px;
}

.p-post-date {
    color: #666;
    font-size: 1.4rem;
}

.p-post-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 30px;
}

.p-post-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.p-post-thumbnail img {
    width: 100%;
    display: block;
}

/* =========================================
   Single Post Content (WordPress Block Styles)
   ========================================= */
.post-content {
    font-size: 1.6rem;
    line-height: 1.9;
    color: #333;
}

/* Headings */
.post-content h2 {
    font-size: 2.4rem;
    font-weight: 900;
    margin: 60px 0 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-accent-brand);
    line-height: 1.4;
}

.post-content h3 {
    font-size: 2.0rem;
    font-weight: 900;
    margin: 40px 0 24px;
    padding-left: 16px;
    border-left: 5px solid var(--color-accent-brand);
    line-height: 1.4;
}

.post-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 30px 0 20px;
}

/* Paragraphs */
.post-content p {
    margin-bottom: 24px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

/* Lists */
.post-content ul,
.post-content ol {
    margin-bottom: 30px;
    padding: 24px 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.post-content ul li {
    list-style: none;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent-brand);
}

.post-content ul li:last-child {
    margin-bottom: 0;
}

.post-content ol {
    padding-left: 50px;
    /* 番号分の余白 */
}

.post-content ol li {
    list-style: decimal;
    margin-bottom: 10px;
    padding-left: 4px;
}

/* Images (figure) */
.post-content figure {
    margin: 40px 0;
}

.post-content figcaption {
    font-size: 1.2rem;
    color: #888;
    text-align: center;
    margin-top: 8px;
}

/* Blockquote */
.post-content blockquote {
    margin: 40px 0;
    padding: 30px;
    background-color: #f0f8f6;
    /* 淡いブランドカラー */
    border-left: 4px solid var(--color-accent-brand);
    position: relative;
}

.post-content blockquote p {
    margin-bottom: 0;
    font-weight: 700;
}

.post-content blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 1.2rem;
    color: #666;
    font-style: normal;
    text-align: right;
}

/* Table */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 1.5rem;
}

.post-content th,
.post-content td {
    padding: 16px;
    border: 1px solid #ddd;
}

.post-content th {
    background-color: #f5f5f5;
    font-weight: 700;
    text-align: left;
    width: 30%;
}

/* Mobile scroll for table */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Button Block */
.wp-block-button {
    margin: 40px 0;
    text-align: center;
}

.wp-block-button__link {
    display: inline-block;
    background-color: var(--color-accent-brand);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 181, 162, 0.3);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    background-color: var(--color-accent-dark);
    color: #fff;
}

/* Marker (Highlighter) */
.marker {
    background: linear-gradient(transparent 60%, #ffe9a6 60%);
}

/* Custom Box */
.post-box {
    border: 2px solid var(--color-accent-brand);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.post-box-title {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-accent-brand);
    margin-bottom: 16px;
    display: block;
}

/* =========================================
   Post Footer (Share, Nav)
   ========================================= */
.p-post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* 【追加】記事一覧へ戻るボタン */
.p-post-back-btn {
    text-align: center;
    margin-bottom: 40px;
}

.c-back-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: #333;
    transition: opacity 0.3s;
    gap: 8px;
}

.c-back-link__icon {
    width: 32px;
    height: 32px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s;
    background-color: #fff;
}

.c-back-link:hover {
    opacity: 0.7;
}

.c-back-link:hover .c-back-link__icon {
    background-color: #333;
    color: #fff;
    transform: translateX(-4px);
}

/* Share Buttons */
.p-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.p-share-label {
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: 8px;
}

.p-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: opacity 0.3s;
}

.p-share-btn--x {
    background-color: #000;
}

.p-share-btn--fb {
    background-color: #1877f2;
}

.p-share-btn--li {
    background-color: #0077b5;
}

.p-share-btn--line {
    background-color: #00c300;
}

/* Related Posts */
.p-related-posts {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.p-related-title {
    font-size: 2.0rem;
    font-weight: 900;
    margin-bottom: 24px;
    text-align: center;
}

.p-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.p-related-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
}

.p-related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.p-related-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    background-color: #ddd;
    overflow: hidden;
}

.p-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-related-body {
    padding: 16px;
}

.p-related-item-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* =========================================
   Footer (From barand_senryaku.html)
   ========================================= */
/* Contact & Download Area */
.footer-contact-area {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.footer-contact-inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-contact-block {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contact-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 24px;
}

.footer-contact-desc {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.link-with-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    transition: opacity 0.3s;
    text-align: left;
}

.link-with-arrow span {
    margin-right: 12px;
    font-size: 2.0rem;
    border: 1px solid #333;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.link-with-arrow:hover {
    opacity: 1;
    color: #555;
}

.link-with-arrow:hover span {
    background-color: #333;
    color: #fff;
    transform: translateX(4px);
}

/* Main Footer (Dark) */
.footer-main {
    background-color: #222;
    color: #fff;
    padding: 80px 0 20px;
    position: relative;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-logo-col {
    width: 30%;
}

.footer-logo {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 32px;
    color: #fff;
}

.footer-logo img {
    display: block;
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-dark-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 240px;
    border: 1px solid #fff;
    color: #fff;
    padding: 16px 0;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s;
}

.footer-dark-btn:hover {
    background-color: #fff;
    color: #222;
    transform: translateY(-2px);
}

.footer-nav-col {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.footer-nav-list li {
    margin-bottom: 16px;
}

.footer-nav-list a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    transition: opacity 0.3s;
    position: relative;
}

.footer-nav-list a:hover {
    opacity: 0.7;
}

.footer-address-list {
    font-size: 1.4rem;
    line-height: 1.8;
}

.footer-nav-head {
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 40px;
}

.footer-sub-links {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 0;
    top: 40px;
}

.footer-sub-links a {
    font-size: 1.2rem;
    color: #fff;
}

.footer-copyright {
    font-size: 1.2rem;
    font-family: 'Manrope', sans-serif;
    color: #fff;
    margin-top: 60px;
}

.back-to-top {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48px;
    height: 48px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222;
    font-size: 2.0rem;
    transition: all 0.3s;
    text-decoration: none;
}

.back-to-top:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.back-to-top::before {
    content: '↑';
    font-family: sans-serif;
    font-weight: bold;
}

/* =========================================
   Responsive / Media Queries
   ========================================= */
@media (max-width: 1024px) {

    /* Header */
    .p-header__nav {
        display: none;
    }

    .p-header__right-content .c-header-btn {
        display: none;
    }

    .c-hamburger {
        display: block;
    }

    /* Blog Layout (Tablet) */
    .blog-layout {
        flex-direction: column;
    }

    .blog-main {
        width: 100%;
        flex: auto;
    }

    .blog-sidebar {
        width: 100%;
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        position: static;
        /* Sticky解除 */
    }

    /* Footer (Tablet) */
    .footer-nav-col {
        gap: 40px;
    }

    .footer-sub-links {
        position: static;
        margin-bottom: 20px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
    }

    .footer-copyright {
        margin-top: 20px;
    }

    .back-to-top {
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    body {
        font-size: 1.5rem;
    }

    /* Header Mobile */
    .p-header {
        padding: 0 20px;
    }

    .p-header__logo img {
        width: 160px;
    }

    /* Blog Content Mobile */
    .p-post-title {
        font-size: 2.4rem;
    }

    .post-content h2 {
        font-size: 2.1rem;
        margin: 50px 0 20px;
    }

    .post-content h3 {
        font-size: 1.8rem;
    }

    .p-related-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .p-related-posts {
        padding: 30px 20px;
    }

    /* Sidebar */
    .blog-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer Mobile */
    .footer-contact-area {
        padding: 60px 0;
    }

    .footer-contact-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-contact-block {
        width: 100%;
    }

    .footer-main {
        padding: 60px 0 20px;
    }

    .footer-top-row {
        flex-direction: column;
        gap: 60px;
        margin-bottom: 40px;
    }

    .footer-logo-col {
        width: 100%;
        text-align: left;
    }

    .footer-dark-btn {
        max-width: 100%;
    }

    .footer-nav-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
        justify-content: start;
        margin-top: 20px;
    }

    .footer-address-list {
        grid-column: 1 / -1;
        margin-top: 20px;
    }

    .footer-nav-list a {
        font-size: 1.3rem;
    }

    .footer-bottom-row {
        padding-top: 20px;
    }

    .footer-sub-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* =========================================
   Floating CTA (From barand_senryaku.html)
   ========================================= */
.p-floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    font-family: var(--font-base);
    transition: transform 0.3s var(--ease-out-expo);
}

.p-floating-cta__inner {
    background-color: #222;
    padding: 24px 20px;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
}

.p-floating-cta__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #333;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.p-floating-cta__title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.p-floating-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-floating-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s, transform 0.3s;
}

.p-floating-cta__btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.p-floating-cta__btn--primary {
    background-color: var(--color-accent);
    color: #fff;
}

.p-floating-cta__btn--secondary {
    background-color: #fff;
    color: #333;
}

.p-floating-cta__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 12px;
    position: relative;
    top: 1px;
}

.p-floating-cta__dot--green {
    background-color: var(--color-accent);
}

.p-floating-cta__toggle {
    display: none;
}

@media (max-width: 768px) {
    .p-floating-cta {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        transform: translateY(0);
    }

    .p-floating-cta.is-closed {
        transform: translateY(100%);
    }

    .p-floating-cta__inner {
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 16px 16px 24px;
    }

    .p-floating-cta__close {
        display: none;
    }

    .p-floating-cta__title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .p-floating-cta__buttons {
        flex-direction: row;
        gap: 8px;
    }

    .p-floating-cta__btn {
        font-size: 1.2rem;
        height: 44px;
    }

    .p-floating-cta__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -32px;
        right: 10px;
        width: 44px;
        height: 32px;
        background-color: #222;
        border-radius: 8px 8px 0 0;
        border: none;
        cursor: pointer;
        color: #fff;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    .p-floating-cta__toggle::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(135deg);
        transition: transform 0.3s;
        margin-top: -4px;
    }

    .p-floating-cta.is-closed .p-floating-cta__toggle::before {
        transform: rotate(-45deg);
        margin-top: 4px;
    }
}

/* サムネイルの非表示 */
.p-post-thumbnail {
  display: none !important;
}

/* 目次コンテナ */
.p-toc {
  background-color: #f2f8f6; /* 記事内のハイライトエリアと統一 */
  border: 1px solid #4cb5a2; /* アクセントカラーの枠線 */
  border-radius: 8px;
  padding: 1.8em 2em;
  margin: 2em 0 3em 0; /* タイトル下、本文上の余白を確保 */
  box-sizing: border-box;
}

/* 目次のタイトル */
.p-toc__title {
  /* font-size: 1.125rem; */
  font-weight: 700;
  color: #333;
  margin-bottom: 1.2em;
  text-align: center;
}

/* リスト全体 */
.p-toc__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* 各リストアイテム */
.p-toc__list li {
  line-height: 1.6;
  margin-bottom: 0.8em;
}

/* h2階層のスタイル */
.p-toc__list li.toc-h2 {
  font-weight: 700;
  margin-top: 1.2em;
}
.p-toc__list li.toc-h2:first-child {
  margin-top: 0;
}

/* h3階層のスタイル（インデントして控えめに） */
.p-toc__list li.toc-h3 {
  padding-left: 1.5em;
  font-size: 0.95em;
  font-weight: normal;
  position: relative;
}

/* h3の先頭装飾 */
.p-toc__list li.toc-h3::before {
  content: "・";
  position: absolute;
  left: 0.4em;
  color: #4cb5a2;
}

/* リンクスタイル */
.p-toc__list a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  display: inline-block;
}

.p-toc__list a:hover {
  color: #4cb5a2;
}

/* スマートフォン向けの調整 */
@media (max-width: 767px) {
  .p-toc {
    padding: 1.5em 1.2em;
  }
}