/* =========================================
   Reset & Base (Inherited from index.html)
   ========================================= */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
}

:root {
    --color-primary: #333333;
    --color-accent-brand: #4CB5A2;
    /* ブランド戦略室 */
    --color-accent-data: #2C5282;
    /* データ分析室 */
    --color-accent: #4CB5A2;
    /* フローティングCTA用 */
    --color-bg-gray: #F5F5F5;
    --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.6;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
    background-color: #fff;
}

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 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Utility Classes */
.u-mb-80 {
    margin-bottom: 80px;
}

.u-mb-60 {
    margin-bottom: 60px;
}

.u-mb-40 {
    margin-bottom: 40px;
}

.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 Utilities */
.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);
}

.js-scroll-child-stagger .js-scroll-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.js-scroll-child-stagger.is-show .js-scroll-child {
    opacity: 1;
    transform: translateY(0);
}

.js-scroll-child-stagger.is-show .js-scroll-child:nth-child(1) {
    transition-delay: 0.1s;
}

.js-scroll-child-stagger.is-show .js-scroll-child:nth-child(2) {
    transition-delay: 0.2s;
}

.js-scroll-child-stagger.is-show .js-scroll-child:nth-child(3) {
    transition-delay: 0.3s;
}

.js-scroll-child-stagger.is-show .js-scroll-child:nth-child(4) {
    transition-delay: 0.4s;
}

/* =========================================
   Header (Copied from index.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 {
    width: 180px;
    display: block;
}

.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;
    position: relative;
    display: block;
}

.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;
}

.c-header-btn {
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    background-color: #F5F5F5;
    color: #333;
    padding: 10px 24px;
    transition: all 0.3s;
}

.c-header-btn:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
    opacity: 1;
}

.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;
    z-index: 1001;
    margin-left: 10px;
}

.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;
}

.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;
    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;
}

/* =========================================
   Breadcrumb (Added)
   ========================================= */
.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;
}

/* =========================================
   Page Header (MV)
   ========================================= */
.p-page-header {
    background-color: #fff;
    padding: 5rem 0 7rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.p-page-title {
    font-size: 3.6rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.p-page-title-en {
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: #666;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 32px;
}

.p-page-lead {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================================
   Document List Section
   ========================================= */
.section-docs {
    padding: 80px 0 100px;
    background-color: var(--color-bg-gray);
}

/* Category Header (New) */
.doc-category-header {
    margin-bottom: 40px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 16px;
}

.doc-category-title {
    font-size: 2.8rem;
    font-weight: 900;
}

.doc-category-title-en {
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: #666;
    font-weight: 700;
}

.doc-category-block {
    margin-bottom: 100px;
    /* セクション間の余白 */
}

.doc-category-block:last-child {
    margin-bottom: 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.c-doc-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    height: 100%;
    position: relative;
}

.c-doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.c-doc-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.c-doc-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.c-doc-card:hover .c-doc-card__thumb img {
    transform: scale(1.05);
}

/* Label (Overlaid on Image or Inside Body) */
.c-doc-card__label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.c-doc-card__label--cat-corp,
.c-doc-card__label--corp {
    background-color: #555;
}

.c-doc-card__label--cat-brand,
.c-doc-card__label--brand {
    background-color: var(--color-accent-brand);
}

.c-doc-card__label--cat-data,
.c-doc-card__label--data {
    background-color: var(--color-accent-data);
}

/* Body */
.c-doc-card__body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.c-doc-card__title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #333;
}

.c-doc-card__desc {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes button to bottom */
}

/* Download Button */
.c-doc-dl-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.c-doc-dl-btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    opacity: 1;
}

.c-doc-dl-icon {
    font-size: 1.6rem;
    line-height: 1;
}

/* =========================================
   Footer CTA (Reused)
   ========================================= */
.footer-cta-area {
    background-color: #fff;
    padding: 100px 0;
    text-align: center;
}

.cta-consult-box {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 60px 40px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cta-h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 24px;
}

.cta-p {
    font-size: 1.6rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn-cta-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 60px;
    background: #333;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-cta-primary:hover {
    background-color: #555;
    transform: translateY(-2px);
    opacity: 1;
}

/* =========================================
   Site Footer (Copied from index.html)
   ========================================= */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 80px 0 20px;
    font-size: 1.3rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo img {
    width: 200px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-family: var(--font-en);
    font-size: 1.2rem;
    opacity: 0.6;
}

/* =========================================
   Floating CTA (from dlform.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);
        /* SPでは余白なしで画面下部に固定 */
    }

    .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;
    }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {

    .p-header__nav,
    .c-header-btn {
        display: none;
    }

    .c-hamburger {
        display: block;
    }

    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    body {
        font-size: 1.5rem;
    }

    .p-header {
        padding: 0 16px;
    }

    .p-header__logo img {
        width: 140px;
    }

    .p-page-header {
        padding: 60px 0 40px;
    }

    .p-page-title {
        font-size: 2.8rem;
    }

    .section-docs {
        padding: 40px 0 60px;
    }

    .doc-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 24px;
        border-width: 1px;
    }

    .doc-category-title {
        font-size: 2.2rem;
    }

    .docs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Footer Responsive */
    .footer-row {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 40px;
    }

    /* Floating CTA SP */
    .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: 20px 16px 28px;
    }

    .p-floating-cta__close {
        display: none;
    }

    .u-pc-only {
        display: none;
    }

    .p-floating-cta__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -36px;
        right: 10px;
        width: 40px;
        height: 36px;
        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;
    }

    .cta-consult-box {
        padding: 40px 20px;
    }
}