/* ==========================================================================
   Header
   ========================================================================== */
.header {
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-sm);
    max-width: var(--container-width);
    margin: 0 auto;
}

.header__logo img {
    height: 50px;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__nav-list a {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile Menu */
.header__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__hamburger span:nth-child(3) { bottom: 0; }

.header__hamburger.is-active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .header__hamburger {
        display: block;
    }

    .header__cta-item {
        margin-top: 16px;
    }
}
/* ==========================================================================
   Full Screen Navigation
   ========================================================================== */
   @media (max-width: 900px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--color-primary);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    /* メニュー展開時 */
    .header__nav.is-active {
        opacity: 1;
        visibility: visible;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px; /* メニューの間隔を広げる */
        text-align: center;
    }

    .header__nav-list a {
        color: var(--color-white);
        font-size: 1.5rem; /* テキストを大きく */
        font-weight: 700;
    }

    /* ハンバーガーアイコンの色を白に変更（展開時） */
    .header__hamburger.is-active span {
        background-color: var(--color-white);
    }

    /* 展開時に背景のスクロールを防止（JSで制御するのが一般的） */
    body.is-nav-open {
        overflow: hidden;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    margin-top: var(--header-height);
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* スライドのはみ出しをカット */
    color: var(--color-white);
    text-align: center;
}

/* スライドの外枠 */
.hero__slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* コンテンツの後ろに配置 */
}

/* 各スライドの共通設定 */
.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* 初期状態は透明 */
    animation: fadeSlider 15s infinite; /* 15秒で1ループ（5秒×3枚） */
    
    /* 重なりと暗度を調整するオーバーレイ */
    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(19, 51, 78, 0.7); /* メインカラーでオーバーレイ */
    }
}

/* 各スライドの画像と開始タイミング */
.hero__slide:nth-child(1) {
    background-image: url('/company/images/top/company_bg1.webp');
    animation-delay: 0s;
}

.hero__slide:nth-child(2) {
    background-image: url('/company/images/top/company_bg2.webp');
    animation-delay: 5s; /* 5秒後に開始 */
}

.hero__slide:nth-child(3) {
    background-image: url('/company/images/top/company_bg3.webp');
    animation-delay: 10s; /* 10秒後に開始 */
}

/* フェードアニメーションの定義 */
@keyframes fadeSlider {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; transform: scale(1.05); } /* 少し拡大させながら消える（ズーム効果） */
    100% { opacity: 0; }
}

.hero__content {
    width: 100%;
    position: relative;
    z-index: 10;
    text-align: left;
}

.hero__text-box {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards; /* 浮き上がりアニメーション */
}

.hero__label {
    display: inline-block;
    color: var(--color-white);
    background-color: var(--color-accent);
    padding: 4px 12px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero__catch {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 文字の影で可読性UP */
    margin-bottom: var(--spacing-sm);
}

.u-highlight {
    color: var(--color-tertiary);
    background: linear-gradient(transparent 60%, rgba(3, 114, 189, 0.8) 60%);
    display: inline-block;
    padding: 0 4px;
}

.hero__sub {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.hero__sub strong {
    font-size: 1.8rem;
    color: var(--color-tertiary);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero__content {
        text-align: center;
    }
    .hero__text-box {
        margin: 0 auto;
    }
    .hero__catch {
        font-size: 2.2rem;
        line-height: 1.5em;
    }
    .hero__sub {
        font-size: 1.1rem;
        border-left: none;
        padding-left: 0;
    }
    .hero__sub strong {
        font-size: 1.3rem;
    }
}
@media (max-width: 380px) {
    .hero__catch {
        font-size: 2rem;
    }
}
/* ==========================================================================
   Hero Category Items
   ========================================================================== */
.hero__categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.hero__cat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.hero__cat-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hero__categories {
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 300px;
    }
    
    .hero__cat-item {
        max-width: calc(50% - 4px); /* スマホでは2列に */
        padding: 8px 12px;
    }

    .hero__cat-text {
        font-size: 0.85rem;
    }
}
/* ==========================================================================
   Hero Main Visual CV Buttons
   ========================================================================== */
   .hero__btn-unit {
    margin-top: 30px;
    width: 100%;
}

.hero-cv-group {
    display: flex;
    align-items: flex-end; /* 中央のメインボタンを目立たせる */
    justify-content: flex-start; /* 左寄せ（メインビジュアルの構成に合わせる） */
    gap: 12px;
}

/* ヒーローボタン共通 */
.hero-btn {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    position: relative;
}

.hero-btn__label {
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 2px;
    opacity: 0.9;
}

.hero-btn__text {
    font-size: 1rem;
    font-weight: 700;
}

/* 1. 無料サンプル（メイン）: オレンジで強力に差別化 */
.hero-btn--primary {
    background: var(--color-tertiary);
    color: var(--color-text);
    width: 280px;
    padding: 20px 15px 10px;
    box-shadow: 0 8px 0 #c4b000, 0 10px 10px rgba(255, 152, 0, 0.3);
    z-index: 2;
}

.hero-btn--primary .hero-btn__text {
    font-size: 1.15rem;
}

.hero-btn--primary .hero-btn__badge {
    position: absolute;
    top: -10px;
    background: var(--color-white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 #c4b000, 0 20px 40px rgba(255, 152, 0, 0.4);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .hero-cv-group {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .hero-btn {
        width: 100% !important;
        height: auto !important;
        padding: 18px !important;
    }

    .hero-btn--primary {
        padding: 18px 18px 5px !important;
    }
}
/* ==========================================================================
   Logo Carousel
   ========================================================================== */
.logo-carousel {
    background-color: var(--color-white);
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden; /* はみ出た部分を隠す */
}

.logo-carousel__title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-weight: 700;
}

.logo-carousel__wrap {
    display: flex;
    width: max-content; /* 修正後: 親要素の幅に関係なく中身の最大幅を確保 */
    flex-wrap: nowrap;  /* 追加: 強制的に横一列に並べ、折り返しを防ぐ */
    animation: loopSlide 40s linear infinite;
}

/* hover時にアニメーションを一時停止する場合（任意） */
/*
.logo-carousel__wrap:hover {
    animation-play-state: paused;
}
*/

.logo-carousel__track {
    display: flex;
    align-items: center;
    gap: 40px; /* ロゴ間の余白 */
    padding-right: 40px; /* セット間の余白 */
}

.logo-carousel__track li {
    flex-shrink: 0; /* ロゴが縮まないようにする */
}

.logo-carousel__track img {
    height: 50px; /* ロゴの高さを統一 */
    width: auto;
    transition: all 0.3s;
}


/* アニメーション定義 */
@keyframes loopSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 2セットあるうちの1セット分（50%）移動したら瞬時に0に戻ることでループに見せる */
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo-carousel {
        padding: 16px 0;
    }
    .logo-carousel__track {
        gap: 24px;
        padding-right: 24px;
    }
    .logo-carousel__track img {
        height: 32px; /* スマホでは少し小さく */
    }
    /* スマホでは少し速くする */
    .logo-carousel__wrap {
        animation-duration: 25s;
    }
}

/* ==========================================================================
   Card Grid (Common)
   ========================================================================== */
.card-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.card-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}
.card-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}
.card-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .card-grid--2col {
        grid-template-columns: 1fr;
    }
    .card-grid--3col {
        grid-template-columns: 1fr;
    }
    .card-grid--4col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Problem Cards
   ========================================================================== */
.onayami-icon img {
    max-width: 300px;
    height: auto;
}
.card--problem {
    background: var(--color-white) !important;
    padding: var(--spacing-md);
    border-radius: 8px !important;
}

.card__icon {
    width: 100px;
    height: 50px;
    margin: 0 auto var(--spacing-sm);
}

.card__icon img {
    border-radius: 50%;
}

.card__title {
    font-size: 1.2rem;
    margin: var(--spacing-sm) 0;
    color: var(--color-primary);
    text-align: justify;
}

.card__text {
    font-size: 0.925rem;
    color: var(--color-text-light);
    text-align: justify;
}

/* ==========================================================================
   Features
   ========================================================================== */
.feature-layout {
    display: grid;
    gap: 20px;
    margin-bottom: var(--spacing-lg);
}

.feature-layout .feature-block {
    margin-bottom: 0;
}
.feature-block {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 38, 76, 0.08);
    border: none;
    height: auto;
}
.feature-block__header {
    background: var(--color-bg-tertiary);
    padding:  18px 10px 5px;
    text-align: center;
}
.feature-block__content {
    background: rgba(255, 249, 196, 0.15);
    padding: 20px 40px;
}
.feature-block__body-grid {
    display: flex;
    align-items: center; 
    gap: 30px; 
}
.feature-block__text-area {
    flex: 1;
    min-width: 0;
}
.feature-block__image-area {
    flex: 0 0 30%;
    max-width: 450px;
}

.feature-block__image-area img {
    width: 100%;
    height: auto;
}


/* ナンバリング装飾 */
.feature-block__number {
    display: inline-block;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.feature-block__title {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.feature-block__title strong {
    color: var(--color-accent);
}

.feature-block__lead {
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.feature-block__list {
    margin-top: 20px;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.feature-block__list li {
    list-style: disc;
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    .feature-block__content {
        padding: 30px 24px 10px;
    }

    .feature-block__body-grid {
        flex-direction: column;
        gap: 10px;
    }
    .feature-block__image-area {
        flex: auto;
        width: 70%;
        max-width: none;
    }
}

/* プロセスの図解パーツ */
/* ==========================================================================
   Process Visual (7 Steps Update)
   ========================================================================== */
.process-visual--7steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding: 20px 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #ccc;
    gap: 3px;
}
.process-visual--7steps .process-visual__step {
    width: 77px;
    height: 77px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
    color: var(--color-primary);
    padding: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.process-visual--7steps .process-visual__step.is-active {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(3, 114, 189, 0.3);
}

/* 矢印 */
.process-visual--7steps .process-visual__arrow {
    flex: 1;
    height: 1px;
    background: #ddd;
    position: relative;
    min-width: 5px;
}

.process-visual--7steps .process-visual__arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -7px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #ddd;
}
/* タブレット・スマホ対応：7項目は横並びが厳しいため縦並びへ */
@media (max-width: 800px) {
    .process-visual--7steps {
        flex-direction: column;
        padding: 15px;
        gap: 7px;
    }

    .process-visual--7steps .process-visual__step {
        width: 100%;
        max-width: 250px; /* スマホでは横長の座布団型に */
        height: auto;
        border-radius: 30px; /* 丸みのある長方形 */
        padding: 5px 20px;
        font-size: 0.88rem;
    }
    .process-visual--7steps .process-visual__arrow::after {
        right: auto;
        left: -12px;
        top: -4px;
        bottom: 0;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 8px solid #ddd;
    }
}
.feature-block__img {
    text-align: center;
}
.feature-block__img img {
    width: 90%;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: center;
    margin-top: var(--spacing-md);
}

.feature-block__text p {
    margin-bottom: 1em;
}

.feature-block strong {
    color: var(--color-primary);
    background: linear-gradient(transparent 70%, #ffeb3b 70%); /* Marker style */
}
@media (max-width: 900px) {
    .feature-layout {
        flex-direction: column; /* 縦並びに戻す */
        gap: var(--spacing-sm);
    }
}
@media (max-width: 768px) {
    .feature-block {
        padding: 30px 20px;
    }
    .feature-block__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    .section-title--left {
        text-align: center; /* Center titles on mobile for balance */
    }
}

/* ==========================================================================
   Supervisor Profile
   ========================================================================== */
.supervisor {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--color-bg-light);
    border-radius: 8px;
}

.supervisor__inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.supervisor__img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.supervisor__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* 丸形にして柔らかい印象に */
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.supervisor__label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.supervisor__name {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.supervisor__en {
    font-size: 0.9rem;
    font-family: var(--font-en);
    color: var(--color-text-light);
    font-weight: 400;
}

.supervisor__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.supervisor__text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .supervisor__inner {
        flex-direction: column;
    }

    .supervisor__img {
        width: 100px;
        height: 100px;
    }

    .supervisor__name {
        justify-content: center;
        flex-direction: column;
        gap: 0;
    }

    .supervisor {
        border-left: none;
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* ==========================================================================
   Lineup
   ========================================================================== */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* グリッド内で高さを揃える */
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.service-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: var(--spacing-md);
}

.service-card__cat {
    display: inline-block;
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.service-card__text {
    margin-bottom: 24px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card__action {
    margin-top: auto;
    text-align: center;
}

.service-card__action .btn {
    width: 100%;
}

.service-card__target,
.service-card__price {
    font-size: 0.9rem;
    color: var(--color-text);
}
.service-card__target > span,
.service-card__price > span {
    font-weight: 700;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 12px 0 0;
}
/* ==========================================================================
   Graphical Comparison Table
   ========================================================================== */
   .comparison-wrapper {
    margin-top: 50px;
    overflow-x: auto; /* スマホでの横スクロール対応 */
    padding-bottom: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* ヘッダー・セル共通 */
.comparison-table th,
.comparison-table td {
    padding: 24px 15px;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
}

/* 比較軸の列 */
.col-axis, .row-axis {
    width: 120px;
    background: var(--color-bg-tertiary) !important;
    color: var(--color-primary);
    font-weight: 700;
    text-align: left !important;
    padding-left: 30px !important;
}

.comparison-table thead th {
    font-size: 1.1rem;
    border-top: 1px solid #eef2f6;
}

.col-ours {
    background: var(--color-bg-tertiary) !important;
    color: var(--color-primary);
    position: relative;
    border-left: 1px solid #eef2f6;
    border-right: 1px solid #eef2f6;
}

.comparison-table td {
    border-left: 1px solid #eef2f6;
    border-right: 1px solid #eef2f6;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}

.comparison-table tr:last-child td:first-child {
    border-radius: 0 0 0 16px;
}

.comparison-table thead th:first-child {
    border-radius: 16px 0 0 0;
}

.comparison-table tr:last-child td:last-child {
    border-radius: 0 0 16px 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 16px 0 0;
}

/* アイコンとテキスト */
.comp-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-primary);
}
/* スマホ対応 */
@media (max-width: 600px) {
    .comparison-table {
        width: 550px; /* 横スクロールさせるために幅を固定 */
    }
}
/* ==========================================================================
   Awards Section
   ========================================================================== */
   .award-service-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.award-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.award-icon img {
    max-width: 140px;
    height: auto;
}

/* ==========================================================================
   Implementation Cases (Card Design)
   ========================================================================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    display: flex;
    flex-direction: column;
}

/* お悩み吹き出し */
.case-bubble {
    position: relative;
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 20px;
    line-height: 1.4;
}

.case-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-top: 10px solid var(--color-bg-light);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.case-card__body {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.case-card__body > * {
    padding: 0 15px;
}

.case-card__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.1rem;
    min-height: 3.2em;
    line-height: 1.4;
    padding: 15px;
}
.case-card__icon {
    flex-shrink: 0; 
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-light); 
    border-radius: 6px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-card__icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.case-card__title-text {
    flex: 1;
    font-weight: 700;
    color: var(--color-primary);
}
/* 人数・期間・費用 */
.case-spec {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.case-spec dt {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.case-spec dd {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-left: 0;
}

/* カード内ミニフロー図 */
.mini-flow {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.mini-flow__step {
    flex: 1;
    height: 80px;
    background: #eef2f6;
    color: var(--color-primary);
    font-size: 0.78rem; 
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px 0 12px; /* 矢印の形状に合わせて左パディングを調整 */
    margin-left: -8px; /* 前の矢印と重ねる */
    clip-path: polygon(
        calc(100% - 10px) 0%, 
        100% 50%, 
        calc(100% - 10px) 100%, 
        0% 100%, 
        10px 50%, 
        0% 0%
    );
}
.mini-flow__step:first-child {
    margin-left: 0;
    padding-left: 8px;
    clip-path: polygon(
        calc(100% - 10px) 0%, 
        100% 50%, 
        calc(100% - 10px) 100%, 
        0% 100%, 
        0% 50%, 
        0% 0%
    );
}
.mini-flow__step.is-blue {
    background: var(--color-blue);
    color: #fff;
}
.mini-flow__step.is-green {
    background: var(--color-green);
    color: #fff;
}
.mini-flow__step.is-orange {
    background: var(--color-orange);
    color: #fff;
}
.mini-flow__step.is-skyblue {
    background: var(--color-skyblue);
    color: var(--color-text);
}

.mini-flow__step {
    border-right: 1px solid #fff;
}
@media (max-width: 900px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-card {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .case-card__title {
        min-height: auto; 
        gap: 10px;
    }
    .case-card__icon img {
        width: 36px;
        height: 36px;
    }

    /* ミニフロー図のスマホ調整 */
    .mini-flow {
        flex-wrap: nowrap; 
        overflow: hidden;
    }
    .mini-flow__step {
        padding: 0 2px 0 10px;
    }
    .case-spec dd {
        font-size: 0.85rem;
    }
}


/* ==========================================================================
   Cases & Columns (Standard Card)
   ========================================================================== */
.card {
    background: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card__img {
    padding: 0;
}

.card__img img {
    width: 100%;
    max-height: 170px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card__body {

    display: flex;
    flex-direction: column;
    flex: 1;
}
.card__action {
    margin-top: auto; 
    padding: 15px 15px 30px;
}

#columns .card__body {
    background: var(--color-white);
    padding: 15px;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.card__meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
/* セクション下部のボタンエリア */
.section-footer {
    text-align: center;
    margin-top: var(--spacing-lg); /* グリッドとの間隔 */
}

.btn--wide {
    min-width: 280px; /* PCでの存在感を出すための最小幅 */
    padding-left: 48px;
    padding-right: 48px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .section-footer {
        margin-top: var(--spacing-md);
    }
    
    .btn--wide {
        width: 100%; /* スマホでは押しやすいように全幅 */
        min-width: auto;
    }
}

/* ==========================================================================
   Individual Users Section
   ========================================================================== */
   .individual-users {
    padding: var(--spacing-lg) 0; /* FAQとの間隔を少し調整 */
}

.individual-card {
    background-color: var(--color-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.individual-card__title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.individual-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5em;
}

.individual-card__text:last-of-type {
    margin-bottom: 0;
}

.individual-card__action {
    flex-shrink: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .individual-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }

    .individual-card__title {
        font-size: 1.25rem;
    }

    .individual-card__action {
        width: 100%;
    }

    .individual-card__action .btn {
        width: 100%;
    }
}

/* ==========================================================================
   High-Conversion CTA Section
   ========================================================================== */
.section--cta {
    padding-bottom: 120px;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4b82 100%);
    border-radius: 24px;
    padding: 60px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 38, 76, 0.25);
}

.cta-card__content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
}
.cv-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    width: 100%;
}
.cta-card__text-area {
    flex: 1.2;
}

.cta-card__label {
    display: inline-block;
    font-family: var(--font-en);
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.cta-card__title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 800;
}

.btn-cv {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: 20px;
}
.btn-cv__label {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.8;
}
.btn-cv__text {
    font-size: 1.1rem;
    font-weight: 700;
}

/* 1. 無料サンプル（メイン） */
.btn-cv--primary {
    background: var(--color-tertiary);
    color: var(--color-text);
    width: 320px;
    padding: 32px 20px 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 0 #c4b000, 0 10px 10px rgba(255, 152, 0, 0.3);
}

.btn-cv--primary .btn-cv__text {
    font-size: 1.3rem;
}
/* 2 & 3. 資料請求・お問い合わせ（サブ） */
.btn-cv--secondary,
.btn-cv--tertiary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid #fff;
    width: 240px;
    height: 90px;
    position: relative;
}
.btn-cv--secondary:hover,
.btn-cv--tertiary:hover {
    background: #fff;
    color: var(--color-primary);
}

.btn-cv--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 #c4b000, 0 20px 40px rgba(255, 152, 0, 0.4);
}

.btn-cv--primary:active {
    transform: translateY(4px);
    box-shadow: 0 12px 0 #c4b000, 0 20px 40px rgba(255, 152, 0, 0.4);
}
.btn-cv__badge {
    position: absolute;
    top: -12px;
    background: var(--color-white);
    color: var(--color-text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* 装飾用のドット（ポップ感を演出） */
.cta-card__deco-dots {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 1;
}

/* スマホ対応 */
@media (max-width: 900px) {
    .cta-card {
        padding: 40px 30px;
    }
    .cta-card__content {
        flex-direction: column;
        gap: 40px;
    }
    .cta-card__title {
        font-size: 1.6rem;
    }
    .cta-card__benefits {
        flex-direction: column;
        gap: 10px;
    }
    .cv-group {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    
    .btn-cv {
        width: 100% !important; /* 横幅いっぱいに */
        height: auto !important;
        padding: 20px !important;
    }
    
    .btn-cv--primary {
        order: -1; /* スマホではメインを一番上に */
        padding: 24px !important;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    font-size: 0.9rem;
}

.footer__inner {
    text-align: center;
}

.footer__logo {
    margin-bottom: 16px;
    height: 60px;
    object-fit: contain;
}

.footer__links {
    margin: 24px 0;
}

.footer__links a {
    display: inline-block;
    margin: 0 12px;
}

.footer__copyright {
    display: block;
    color: rgba(255,255,255, 0.6);
}