/* ===========================
   Reset / Base
=========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    color: #1a1a1a;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Header
=========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 96vw;
    border-radius: 0 0 50px 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    min-width: 0;
}

/* ---- Logo ---- */
.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

/* ---- PC Nav ---- */
.header-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0 2px;
    min-width: 0;
}

.nav-link {
    display: inline-block;
    padding: 8px 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #091852;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #005bac;
    background: rgba(9, 24, 82, 0.06);
}

/* CTAボタン（2つ並ぶためコンパクトに。通常リンクとの間隔は li の margin で調整） */
.nav-link_cta,
.nav-link--cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8c313;
    color: #091852 !important;
    padding: 10px 16px;
    border-radius: 56px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.26);
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    margin-left: 0;
}

/* テキストリンクのあとに続く CTA ブロックの左余白 */
.nav-list > .nav-item:has(.nav-link_cta):nth-last-child(2) {
    margin-left: 10px;
}

.nav-list > .nav-item:has(.nav-link_cta):nth-last-child(1) {
    margin-left: 6px;
}

.nav-link_cta:hover,
.nav-link--cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ---- Hamburger (SP only) ---- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    z-index: 1100;
    position: relative;
}

.hamburger__line {
    display: block;
    width: 26px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* ハンバーガー → ✕ アニメーション */
.hamburger.is-active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   SP フルスクリーンメニュー
=========================== */
.sp-menu {
    width: 100vw;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sp-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.sp-menu__nav {
    width: 100%;
    padding: 24px;
}

.sp-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.sp-menu__item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sp-menu__item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sp-menu__link {
    display: block;
    text-align: center;
    padding: 20px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.04em;
    transition: color 0.2s, background 0.2s;
}

.sp-menu__link:hover {
    color: #005bac;
    background: rgba(0, 91, 172, 0.04);
}

.sp-menu__link--cta {
    margin-top: 28px;
    background: #005bac;
    color: #fff;
    border-radius: 8px;
    padding: 18px 40px;
    border-top: none !important;
    font-size: 1.05rem;
}

.sp-menu__item:has(.sp-menu__link--cta) {
    border: none;
    margin-top: 28px;
}

.sp-menu__link--cta:hover {
    background: #0047a0;
    color: #fff;
}

/* アイテムごとのフェードインアニメーション */
.sp-menu__item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sp-menu.is-open .sp-menu__item {
    opacity: 1;
    transform: translateY(0);
}

.sp-menu.is-open .sp-menu__item:nth-child(1) { transition-delay: 0.08s; }
.sp-menu.is-open .sp-menu__item:nth-child(2) { transition-delay: 0.13s; }
.sp-menu.is-open .sp-menu__item:nth-child(3) { transition-delay: 0.18s; }
.sp-menu.is-open .sp-menu__item:nth-child(4) { transition-delay: 0.23s; }
.sp-menu.is-open .sp-menu__item:nth-child(5) { transition-delay: 0.28s; }
.sp-menu.is-open .sp-menu__item:nth-child(6) { transition-delay: 0.33s; }

/* PCヘッダー：CTAが2つ並んでも横はみ出しを防ぐ */
@media (max-width: 1320px) {
    .header-inner {
        padding: 0 16px;
    }

    .nav-link:not(.nav-link_cta, .nav-link--cta) {
        padding: 6px 5px;
        font-size: 0.875rem;
    }

    .nav-link_cta,
    .nav-link--cta {
        padding: 8px 12px;
        font-size: 0.8125rem;
        gap: 4px;
    }

    .nav-list > .nav-item:has(.nav-link_cta):nth-last-child(2) {
        margin-left: 6px;
    }

    .nav-list > .nav-item:has(.nav-link_cta):nth-last-child(1) {
        margin-left: 4px;
    }
}

@media (max-width: 1080px) {
    .nav-link:not(.nav-link_cta, .nav-link--cta) {
        padding: 6px 3px;
        font-size: 0.8125rem;
    }

    .nav-link_cta,
    .nav-link--cta {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1080px) {
    .header-inner {
        padding: 0 16px;
        height: 60px;
    }

    .logo-img {
        height: 28px;
    }

    /* PC ナビを非表示 */
    .header-nav {
        display: none;
    }

    /* ハンバーガーを表示 */
    .hamburger {
        display: flex;
        flex-shrink: 0;
    }

    /* SPメニューをflexで使えるように */
    .sp-menu {
        display: flex;
    }

    main {
        overflow-x: hidden;
    }
}

/* ===========================
   Case Swiper（導入事例スライダー）
=========================== */
.case-swiper {
    /* ドット用下部余白 + カードの box-shadow が Swiper の overflow で欠けないよう内側に余白 */
    padding: 20px 20px 48px !important;
    box-sizing: border-box;
    /* ライブラリ既定の overflow:hidden 内でシャドウ用の描画領域を確保 */
    overflow: hidden;
}

.case-swiper__pagination {
    bottom: 0 !important;
}

.case-swiper__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #c5cdd6;
    opacity: 1;
}

.case-swiper__pagination .swiper-pagination-bullet-active {
    background: #005bac;
}

/* 3件以下のグリッドレイアウト */
.case-wrap:not(.swiper-wrapper) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .case-wrap:not(.swiper-wrapper) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .case-wrap:not(.swiper-wrapper) {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Logo Slider（無限自動スクロール）
=========================== */
.logo-slider {
    background: #fff;
    padding: 16px 0 28px;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
}

.logo-slider__heading {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 16px;
}

.logo-slider__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c1f21;
    margin-bottom: 4px;
}

/* logo-slider__title はセクション共通h2スタイルを上書き */
.logo-slider__title::after {
    display: none;
}

.logo-slider__note {
    font-size: 1rem;
    color: #1c1f21;
    font-weight: 400;
}

.logo-slider__track-wrap {
    overflow: hidden;
    /* 左右をグラデーションでフェードアウト */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.logo-slider__track {
    display: flex;
    align-items: center;
    gap: 56px;
    /* 10ロゴ分の幅: 220px×10 + gap56px×9 = 2704px */
    width: max-content;
    animation: logo-marquee 30s linear infinite;
    will-change: transform;
}

.logo-slider__item {
    flex-shrink: 0;
    width: 220px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slider__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes logo-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-2704px); }
}

/* SP: 140px×10 + gap36px×9 = 1724px */
@keyframes logo-marquee-sp {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-1724px); }
}

/* アクセシビリティ：アニメーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
    .logo-slider__track {
        animation: none;
    }
}

@media (max-width: 768px) {
    .logo-slider {
        padding: 28px 0;
    }

    .logo-slider__track {
        gap: 36px;
        animation-name: logo-marquee-sp;
        animation-duration: 22s;
    }

    .logo-slider__item {
        width: 140px;
        height: 56px;
    }
}

/* ===========================
   Utility
=========================== */
._inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
}

._btn_yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5a623;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 40px;
    border-radius: 6px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

._btn_yellow:hover {
    opacity: 0.85;
}

._btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #005bac;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 40px;
    border-radius: 6px;
    border: 2px solid #005bac;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

._btn:hover {
    background: #005bac;
    color: #fff;
}

/* ===========================
   MV（メインビジュアル）
=========================== */
.mv {
    position: relative;
    background: linear-gradient(to right, #0034ac, #008cff);
    /* max-height: 480px; */
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
    padding: 0 0 0 40px;
    overflow: hidden;
}

/* ---- MV ウェーブ背景 ---- */
.mv-wave-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mv-wave-svg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -5%;
}
@media screen and (min-width: 1080px) {
    .mv-wave-svg {
        position: absolute;
        width: 110%;
        height: auto;
        top: -75%;
        left: 0;
    }
}

.mv-wave-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: mv-wave-draw 2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes mv-wave-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-wave-path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.mv-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.mv-label {
    display: inline-block;
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

.mv h1 {
    font-size: clamp(2.4rem, 4vw, 5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.35;
    letter-spacing: 0.04em;
}

.mv-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mv-flex-btn_yellow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8c313;
    color: #1c1f21;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 32px 14px 16px;
    border-radius: 56px;
    box-shadow: 10px 10px 40px rgba(27, 37, 147, 0.66);
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.mv-flex-btn_yellow:hover { transform: translateY(-2px); }

/* ===== ホバー：中心から丸が広がる ===== */
.mv-flex-btn_yellow > *,
.price-cta-btn--yellow > *,
.footer-cta-btn--yellow > * {
    position: relative;
    z-index: 1;
}

.mv-flex-btn_yellow::after,
.price-cta-btn--yellow::after,
.footer-cta-btn--yellow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.mv-flex-btn_yellow:hover::after,
.price-cta-btn--yellow:hover::after,
.footer-cta-btn--yellow:hover::after {
    transform: translate(-50%, -50%) scale(3);
}

/* ===== キラン シャインアニメーション ===== */
.mv-flex-btn_yellow::before,
.price-cta-btn--yellow::before,
.footer-cta-btn--yellow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 2;
    animation: btnShine 4s ease-in-out infinite;
}

.price-cta-btn--yellow::before { animation-delay: 0.6s; }
.footer-cta-btn--yellow::before { animation-delay: 1.2s; }

@keyframes btnShine {
    0%   { transform: translateX(-100%); }
    18%  { transform: translateX(400%); }
    100% { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
    .mv-flex-btn_yellow::before,
    .price-cta-btn--yellow::before,
    .footer-cta-btn--yellow::before {
        animation: none;
    }
}

.badge-30sec-img {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    display: block;
}

/* Figma material-symbols:download-rounded（無料資料ダウンロード） */
.icon-download-rounded {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.mv-flex-btn_white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #091852;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 20px 32px;
    border-radius: 56px;
    box-shadow: 10px 10px 40px rgba(27, 37, 147, 0.66);
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.mv-flex-btn_white:hover { opacity: 0.9; transform: translateY(-2px); }

.mv-right {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.mv-person {
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

/* ===========================
   Stats Bar（実績バー）
=========================== */
.stats-bar {
    background: #091852;
    padding: 18px 40px;
    position: relative;
}

.stats-bar-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-laurel {
    flex-shrink: 0;
    width: 22px;
    height: auto;
    display: block;
    object-fit: contain;
}

.stats-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.stats-number {
    font-family: 'DIN Alternate', 'Arial Black', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #a57123 1.7%, #d6b160 14.8%, #eed17e 24.1%, #e9cb78 25.2%, #cca453 32.4%, #b68839 39.7%, #a97728 44.8%, #a57123 50%, #a87527 54.1%, #b28234 59.3%, #c39949 64.5%, #dbb866 69.7%, #eed17e 72.8%, #eed17e 85.2%, #a57123 101.7%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stats-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.stats-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.stats-no1 {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stats-no1 img {
    height: 64px;
    width: auto;
}

.stats-attention {
    position: absolute;
    text-align: right;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    bottom:18px;
    left:90%;
}

@media screen and (max-width: 1310px) {
    .mv{
       padding: 60px 40px 0;
    }
    .mv-content{
        padding-bottom:24px ;
    }
}
@media screen and (max-width: 1080px) {
    .stats-bar-inner {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    .stats-attention {
        position: static;
        font-size: 8px;
    }
}

@media (max-width: 768px) {
    .stats-attention{
        position: static;
        font-size: 8px;
    }
    .logo-slider__heading{
        text-align: center;
        flex-direction: column;
    }
}

/* ===========================
   Case Archive（実績カード）
=========================== */
.case-archive {
    --ca-gap: 28px;
    --ca-slides: 4;
    background: #0150c6;
    padding: 40px 80px 32px;
}

.case-archive-slider {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto 20px;
    overflow: hidden;
    container-type: inline-size;
    container-name: case-archive;
    cursor: grab;
}

.case-archive-slider.is-dragging {
    cursor: grabbing;
}

.case-archive-slider.is-dragging,
.case-archive-slider.is-dragging * {
    user-select: none;
    -webkit-user-select: none;
}

.case-archive-slider img {
    -webkit-user-drag: none;
}

.case-archive-track {
    display: flex;
    align-items: stretch;
    gap: var(--ca-gap);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.case-archive-card {
    flex: 0 0 calc((100cqi - (var(--ca-slides) - 1) * var(--ca-gap)) / var(--ca-slides));
    box-sizing: border-box;
    min-height: 0;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 上：写真。行内の最も高いテキストに合わせてカード高が揃い、テキスト短いカードは写真に余白が乗る／テキストが増えると写真が割り当て高を失う（object-fit: cover） */
.case-archive-card__media {
    position: relative;
    flex: 1 1 0;
    min-height: 132px;
    overflow: hidden;
}

.case-archive-card__cover {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px 8px 0 0;
}

/* 施設名・アバターを写真上（Figma: left 14px, top 18px） */
.ca-hotel--overlay {
    position: absolute;
    left: 14px;
    top: 18px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 28px);
    pointer-events: none;
}

.ca-hotel--overlay .ca-avatar {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.ca-hotel--overlay .ca-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* 下：白地テキスト（Figma: gap 6px, sub #888 16px medium） */
.case-archive-card-body {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%;
    padding: 16px;
    box-sizing: border-box;
    min-height: 170px;
}

.ca-result {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

/* 実際の折り返し結果で分岐（JS が付与） */
.ca-result.ca-result--single-line {
    align-items: center;
}

.ca-result.ca-result--wrapped {
    align-items: flex-start;
}

.ca-check-icon {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    margin-top: 0;
    line-height: 0;
}

.ca-result.ca-result--single-line .ca-check-icon {
    margin-top: 1px;
}

.ca-result.ca-result--wrapped .ca-check-icon {
    margin-top: 2px;
}

.ca-check-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.ca-headline {
    font-size: 16px; /* 20px */
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.ca-headline span {
    color: #0150c6;
    font-size: 24px; /* 30px - 数値の強調 */
    line-height: 1.15;
}

.ca-headline small {
    font-size: 1rem;
    color: #1c1f21;
    font-weight: 500;
}

.ca-desc {
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    line-height: 1.4;
    margin: 0;
    width: 100%;
    padding-left: 0;
}

/* 旧：カード下に並べる施設行（上記オーバーレイに置き換え） */
.ca-hotel:not(.ca-hotel--overlay) {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ca-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ca-name {
    font-size: 1rem;
    font-weight: 700;
    color: #23242e;
}

.ca-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.ca-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ca-dot:hover,
.ca-dot:focus-visible {
    background: rgba(255, 255, 255, 0.75);
    outline: none;
}

.ca-dot--active {
    background: #fff;
    transform: scale(1.15);
}

@media (max-width: 1024px) {
    .case-archive {
        --ca-slides: 2;
    }
}

@media (max-width: 600px) {
    .case-archive {
        --ca-slides: 1;
        padding: 32px 20px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .case-archive-track {
        transition-duration: 0.01ms;
    }
}

/* ===========================
   Section Heading Common
=========================== */
#solution h2,
#feature h2,
#service h2,
#price h2,
#case h2,
#flow h2,
#faq h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

#solution h2::after,
#feature h2::after,
#service h2::after,
#case h2::after,
#flow h2::after,
#faq h2::after {
    display: none;
}

/* ===========================
   Solution（課題）
=========================== */
#solution {
    background: #ececec;
    padding: 48px 0 80px;
    position: relative;
}

.solution-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

#solution h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1c1f21;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.08em;
}


.solution-wrap {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 課題カード：初期状態（非表示） */
.solution-wrap-card {
    background: #454555;
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    flex: 1;
    opacity: 0;
    transform: translateY(48px) scale(0.92);
    min-width: 260px;
    max-width: 420px;
    /* 吹き出し尻尾（左下） */
}

.solution-wrap-card::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 38px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 22px 16px 0 0;
    border-color: #454555 transparent transparent transparent;
}

/* 課題カード：アニメーション発火 */
.solution-wrap-card.is-visible {
    animation: solutionCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.solution-wrap-card:nth-child(1) { animation-delay: 0s; }
.solution-wrap-card:nth-child(2) { animation-delay: 0.15s; }
.solution-wrap-card:nth-child(3) { animation-delay: 0.30s; }

@keyframes solutionCardIn {
    0%   { opacity: 0; transform: translateY(48px) scale(0.92); }
    65%  { opacity: 1; transform: translateY(-8px) scale(1.03); }
    82%  { transform: translateY(4px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .solution-wrap-card {
        opacity: 1;
        transform: none;
    }
}

.solution-card-icon {
    flex-shrink: 0;
    width: 90px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-card-icon img {
    width: 90px;
    height: 82px;
    object-fit: contain;
}

.solution-card-text {
    flex: 1;
    padding: 0;
}

.solution-card-text h3 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.solution-card-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.solution-card-num img {
    width: 22px;
    height: 21px;
    display: block;
    object-fit: contain;
}

.solution-card-text p {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    font-weight: 400;
}

/* 下部の三角矢印 */
.solution-arrow {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 225px;
    line-height: 0;
    z-index: 1;
}

.solution-arrow svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .solution-wrap {
        flex-direction: column;
        align-items: center;
    }

    .solution-wrap-card {
        max-width: 100%;
        width: 100%;
    }
}

/* ===========================
   Feature（選ばれる5つの理由）
=========================== */
#feature {
    padding-top: 20px;
    padding-bottom: 80px;
    background: #fff;
}

.feature-heading {
    text-align: center;
    padding: 40px 0 0;
}

#feature h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1c1f21;
    text-align: center;
    margin-bottom: 0;
}


/* タブ行 */
.feature-tabs {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 40px;
    padding-left: 0;
}

.feature-tab {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 32px 20px;
    border-radius: 24px 24px 0 0;
    cursor: pointer;
    min-width: 260px;
}

.feature-tab--active {
    background: #ecf5f8;
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* プログレスバー：アクティブタブ底辺に表示 */
.feature-tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: #0150c6;
    border-radius: 0 2px 0 0;
}

.feature-tab--active.feature-tab--progress::after {
    animation: featureTabProgress 6s linear forwards;
}

@keyframes featureTabProgress {
    from { width: 0; }
    to   { width: 100%; }
}

.feature-tab-spacer {
    flex: 1;
    height: 72px;
    border-radius: 24px 24px 0 0;
}

.feature-tab-reason {
    font-size: 1rem;
    font-weight: 700;
    color: #abc7d0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-tab-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0150c6;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* コンテンツボックス */
.feature-box {
    background: #ecf5f8;
    border-radius: 0 24px 24px 24px;
    padding: 48px 63px 63px;
}

.feature-box-inner {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 61px;
    align-items: start;
}

/* Reason 01 大カード */
.feature-main {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.feature-main-img {
    border-radius: 8px;
    overflow: hidden;
}

.feature-main-img img {
    width: 100%;
    height: 428px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.feature-main-img img.feature-fading {
    opacity: 0;
}

.feature-main-img img.feature-main-img--contain,
.feature-grid-item img.feature-main-img--contain {
    object-fit: contain;
}

.feature-main-desc {
    font-size: 1rem;
    font-weight: 500;
    color: #52525b;
    line-height: 1.625;
    transition: opacity 0.2s ease;
}

.feature-main-desc.feature-fading {
    opacity: 0;
}

/* Reason 02〜05 グリッド */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    margin: -8px;
    transition: background 0.2s;
}

.feature-grid-item:hover {
    background: rgba(1, 80, 198, 0.06);
}

/* 左上のグリッドアイテム＝次にメインになる項目 */
.feature-grid-item--next {
    position: relative;
}

.feature-reason-label {
    font-size: 12px;
    font-weight: 700;
    color: #abc7d0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
}

.feature-reason-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0150c6;
    letter-spacing: -0.03em;
    line-height: 2;
    margin-bottom: 4px;
}

.feature-grid-item img {
    width: 100%;
    height: 116px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 4px;
}

.feature-grid-item p {
    font-size: 1rem;
    font-weight: 500;
    color: #52525b;
    line-height: 1.5;
}

@media (min-width: 769px) {
    .feature-grid-item p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 1100px) {
    .feature-box-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-main-img img {
        height: 260px;
    }

    .feature-grid {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .feature-box {
        padding: 32px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid-item img{
        height: auto;
    }
}

/* ===========================
   Service（サービス内容）
=========================== */
#service {
    padding: 88px 0 58px;
    background: #eceff7;
    overflow: hidden;
    margin-bottom: 80px;
}

.service-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.service-wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1199px;
}

.service-wrap-card {
    display: flex;
    gap: 40px;
    align-items: center;
    border-radius: 20px;
    padding: 49px;
}

.service-wrap-card--white {
    background: #fff;
}

.service-wrap-card--dark {
    background: #091852;
}

.service-wrap-card--blue {
    background: #0150c6;
}

.service-card-text {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ededed;
    border-radius: 1000px;
    padding: 8px 24px 8px 12px;
    align-self: flex-start;
}

.service-card-tag svg {
    flex-shrink: 0;
}

/* サービスカード チェックマーク 描画アニメーション */
.svc-cat-circle,
.svc-cat-check {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.service-wrap-card.is-drawn .svc-cat-circle {
    animation: svcCatDraw 0.55s ease-out 0.1s forwards;
}

.service-wrap-card.is-drawn .svc-cat-check {
    animation: svcCatDraw 0.4s ease-out 0.55s forwards;
}

@keyframes svcCatDraw {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .svc-cat-circle,
    .svc-cat-check {
        stroke-dashoffset: 0;
        animation: none;
    }
}

.service-card-tag p {
    font-size: 1rem;
    font-weight: 700;
    color: #1c1f21;
    margin: 0;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card-text h3 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.31;
    color: #1c1f21;
    margin: 0;
}

.service-wrap-card--dark .service-card-text h3,
.service-wrap-card--blue .service-card-text h3 {
    color: #fff;
}

.service-card-body > p {
    font-size: 1rem;
    line-height: 1.42;
    color: #1c1f21;
    opacity: 0.8;
    margin: 0;
}

.service-wrap-card--dark .service-card-body > p,
.service-wrap-card--blue .service-card-body > p {
    color: #fff;
}

.service-wrap-card > img {
    flex: 1 1 auto;
    min-width: 0;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.service-wrap-card:nth-child(1) > img {
    object-fit: contain;
}

.service-watermark {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(60px, 10vw, 140px);
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.02em;
    background: linear-gradient(to right, transparent 5.91%, rgba(255,255,255,0.45) 50%, transparent 94%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    line-height: 1;
    margin: 0;
    pointer-events: none;
}


/* ===========================
   Price（料金プラン）
=========================== */
#price {
    padding: 88px 0;
    background: #f8f2f4;
}

.price-title {
    display: flex;
    align-items: baseline;
    gap: 48px;
    margin-bottom: 48px;
}

#price h2 {
    color: #1c1f21;
    white-space: nowrap;
    margin-bottom: 0;
    text-align: left;
}


.price-title p {
    color: #1c1f21;
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.85;
}

.price-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 56px;
}

/* スタンダード 人気バッジ */
.price-standard-wrapper {
    position: relative;
}

.price-popular-badge {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #e7191c;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 28px 10px;
    border-radius: 24px;
    white-space: nowrap;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.price-popular-badge.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .price-popular-badge {
        transition: none;
    }
}

.price-wrap-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid #0150c6;
}

.price-card-header {
    background: #0150c6;
    padding: 28px 12px;
    text-align: center;
}

.price-card-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.price-card-body {
    padding: 24px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 340px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-amount--range {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.price-amount-line {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-num {
    font-size: 36px;
    font-weight: 700;
    color: #1c1f21;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.price-unit {
    font-size: 18px;
    font-weight: 700;
    color: #1c1f21;
}

.price-contact-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c1f21;
    text-align: center;
    padding-top: 8px;
}

.price-divider {
    width: 100%;
    height: 1px;
    background: #ddd;
    flex-shrink: 0;
}

.price-category {
    font-size: 1rem;
    color: #1c1f21;
    text-align: center;
    margin: 0;
}

.price-tier-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.price-tier-label {
    font-size: 1rem;
    font-weight: 700;
    color: #0150c6;
    text-align: center;
    margin: 0;
}

.price-plus-badge {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(to left, #008cff, #0034ac);
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.price-tag-item {
    background: #018afd;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.price-tag-etc {
    font-size: 14px;
    color: #1c1f21;
    padding: 2px 4px;
}

.price-note {
    font-size: 14px;
    color: #1c1f21;
    text-align: center;
    margin: 0;
}

.price-bottom {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px 0 10px;
    height: 72px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
    box-shadow: 10px 10px 21px rgba(0,0,0,0.16);
}

.price-cta-btn--white:hover {
    opacity: 0.85;
}

.price-cta-btn--yellow {
    background: #f8c313;
    color: #1c1f21;
    position: relative;
    overflow: hidden;
}

.price-cta-btn--white {
    background: #fff;
    color: #091852;
    padding: 0 36px;
}


@media (max-width: 900px) {
    .price-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-title {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===========================
   Case（導入事例）
=========================== */
#case {
    padding: 80px 0;
    background: #f8f2f4;
    /* 子の box-shadow がセクション外へ出ても横で切れにくくする */
    overflow-x: visible;
}

#case .case-inner {
    overflow: visible;
}

.case-wrap-card {
    background: #f8f2f4;
    border-radius: 21px;
    /* hidden だと同一要素の box-shadow が欠けるため visible（角丸は子で確保） */
    overflow: visible;
    box-shadow: 10px 10px 21px rgba(0,0,0,0.16);
    transition: transform 0.25s, box-shadow 0.25s;
}

a.case-wrap-card.case-wrap-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.case-wrap-card.case-wrap-card--link:focus-visible {
    outline: 2px solid #005bac;
    outline-offset: 4px;
}

.case-wrap-card:hover {
    transform: translateY(-4px);
    box-shadow: 14px 14px 28px rgba(0,0,0,0.2);
}

.case-card-img-wrap {
    position: relative;
    aspect-ratio: 433/253;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 21px 21px 0 0;
}

.case-card-img-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card-logo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 84px;
    background: #fff;
    border-top-left-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.case-card-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.case-card-text {
    padding: 34px 35px 40px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    border-radius: 0 0 21px 21px;
    overflow: hidden;
}

.case-card-tag {
    display: flex;
    gap: 0 17px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.case-card-tag span {
    font-size: 1rem;
    font-weight: 500;
    color: #f8f2f4;
    background: #1642e3;
    border-radius: 25px;
    padding: 4px 14px;
    white-space: nowrap;
}

.case-wrap-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #091852;
    line-height: 1.36;
    margin: 0;
}

.case-name {
    font-size: 1rem;
    font-weight: 500;
    color: #091852;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-empty {
    text-align: center;
    color: #888;
    padding: 40px;
    width: 100%;
}

/* ===========================
   Flow（導入までの流れ）
=========================== */
#flow {
    padding: 80px 0 100px;
    background: #fff;
}

.flow-note {
    text-align: center;
    font-size: 1rem;
    color: #1c1f21;
    margin-top: -28px;
    margin-bottom: 56px;
}

.flow-wrap {
    display: flex;
    justify-content: center;
    gap: 63px;
    align-items: flex-start;
}

.flow-wrap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
    flex: 0 0 30%;
}

.flow-wrap-item > p {
    font-family: 'DIN Alternate', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0;
    text-align: center;
    margin: 0;
    background: linear-gradient(to left, #008cff, #0034ac);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    line-height: 1;
}

.flow-wrap-item > p .flow-step-label {
    font-size: 2rem;
    font-style: normal;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
}

.flow-wrap-item > p span {
    font-size: 2.625rem;
    font-weight: 700;
    display: inline-block;
    line-height: 1;
    margin-left: 4px;
}

.flow-wrap-item-card {
    background: #eceff7;
    border-radius: 20px;
    padding: 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-height: 252px;
    justify-content: center;
    box-sizing: border-box;
}

.flow-wrap-item-card img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    flex-shrink: 0;
}

.flow-wrap-item-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c1f21;
    margin: 0;
    line-height: 1.2;
}

.flow-wrap-item-card p {
    font-size: 1rem;
    font-weight: 500;
    color: #52525b;
    line-height: 1.375;
    margin: 0;
}

.flow-card-text {
    display: flex;
    flex-direction: column;
    gap: 21px;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .flow-wrap {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .flow-wrap-item {
        flex: none;
        width: 100%;
        max-width: 351px;
    }

    .flow-wrap-item-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* legacy — kept for compat */
    .flow-wrap::before {
        display: none;
    }
}

/* ===========================
   FAQ（よくある質問）
=========================== */
#faq {
    padding: 80px 0 100px;
    background: #f2f2f2;
    position: relative;
    overflow: hidden;
}

#faq h2 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 700;
    color: #1c1f21;
    letter-spacing: 0;
}

.faq-bg-ribbon {
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    width: min(142vw, 2800px);
    pointer-events: none;
    z-index: 0;
    line-height: 0;
}

.faq-bg-ribbon__img {
    display: block;
    width: 100%;
    height: auto;
}

/* リボンパスの描画アニメーション：初期は非表示、画面内に入ったら1回だけ描画 */
.faq-ribbon-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.faq-bg-ribbon.is-visible .faq-ribbon-path {
    animation: faqRibbonDraw 8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes faqRibbonDraw {
    0%   { stroke-dashoffset: 1; }
    100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-ribbon-path {
        stroke-dashoffset: 0;
    }
}

.faq-inner {
    position: relative;
    z-index: 1;
}

.faq-block-wrap {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.faq-brock {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-brock-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to left, #008cff, #0034ac);
    border-radius: 64px;
    padding: 3px 9px 3px 9px;
    align-self: flex-start;
}

.faq-brock-category svg {
    flex-shrink: 0;
}

/* FAQカテゴリーSVG 描画アニメーション */
.faq-cat-circle,
.faq-cat-check {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.faq-brock.is-drawn .faq-cat-circle {
    animation: faqCatDraw 0.55s ease-out 0.1s forwards;
}

.faq-brock.is-drawn .faq-cat-check {
    animation: faqCatDraw 0.4s ease-out 0.55s forwards;
}

@keyframes faqCatDraw {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-cat-circle,
    .faq-cat-check {
        stroke-dashoffset: 0;
        animation: none;
    }

    .faq-wrap-item {
        transition-duration: 0.01ms;
    }

    .faq-item-answer {
        transition-duration: 0.01ms;
    }

    .faq-toggle::after {
        transition-duration: 0.01ms;
    }
}

.faq-brock-category span {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    line-height: 1.75;
}

.faq-wrap-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 10px 10px 21.17px rgba(0, 0, 0, 0.16);
    display: grid;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 0.48s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq-wrap-item.is-open {
    grid-template-rows: auto 1fr;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 23px 24px;
    cursor: pointer;
    user-select: none;
}

.faq-q {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0150c6;
    flex-shrink: 0;
    line-height: 1.2;
}

.faq-question > p {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1c1f21;
    line-height: 1.56;
    margin: 0;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
}

.faq-toggle::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 0;
    width: 24px;
    height: 2px;
    background: #0150c6;
    border-radius: 10px;
}

.faq-toggle::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 2px;
    height: 24px;
    background: #0150c6;
    border-radius: 10px;
    transition:
        opacity 0.2s cubic-bezier(0.33, 1, 0.68, 1),
        transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq-wrap-item.is-open .faq-toggle::after {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item-answer {
    margin: 0 24px;
    padding: 0;
    border-top: 0 solid transparent;
    min-height: 0;
    overflow: hidden;
    transition:
        padding 0.48s cubic-bezier(0.33, 1, 0.68, 1),
        border-top-width 0.2s ease,
        border-top-color 0.2s ease;
}

.faq-wrap-item.is-open .faq-item-answer {
    padding: 16px 0 24px;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #d9d9d9;
}

.faq-item-answer p {
    font-size: 1rem;
    font-weight: 500;
    color: #1c1f21;
    line-height: 1.625;
    margin: 0;
}
.faq-item-answer p a{
    text-decoration: underline;
    color: #0150c6;
}

/* ===========================
   Footer
=========================== */
.site-footer {
    background: #23242e;
    color: #fff;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px 56px;
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.footer-left {
    flex: 0 0 auto;
    max-width: 560px;
}

.footer-left h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3.2px;
    margin-bottom: 28px;
    text-align: left;
    white-space: nowrap;
}


.footer-adress {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-adress p {
    font-size: 12px;
    color: #fff;
    line-height: 1.9;
    letter-spacing: 1.2px;
}

.footer-divider {
    flex: 0 0 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.25);
    min-height: 387px;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 39px;
}

/* フッター横並びバナー（本番 footer_btn_layout / footer-cv と同等） */
.footer_btn_layout.footer-cv {
    display: flex;
    gap: 27px;
    align-items: stretch;
    margin-bottom: 41px;
}

.footer_btn_layout.footer-cv .btn {
    display: block;
    text-decoration: none;
}

.footer_btn_layout.footer-cv .btn img {
    height: 121px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-btn {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px 0 10px;
    height: 76px;
    border-radius: 100px;
    font-size: 1.375rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 10px 10px 21px rgba(0,0,0,0.25);
    transition: opacity 0.2s;
}

.footer-cta-btn--white:hover {
    opacity: 0.88;
}

.footer-cta-btn--yellow {
    background: #fff;
    color: #1c1f21;
    border: 2px solid #0150c6;
    position: relative;
    overflow: hidden;
}

.footer-cta-btn--white {
    background: #fff;
    border: 2px solid #f8c313;
    color: #091852;
    padding: 0 24px;
}


.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.footer-nav a {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px 32px;
}

.footer-rule {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.copylight {
    font-family: 'DIN Alternate', 'Inter', sans-serif;
    font-size: 12px;
    color: #fff;
    text-align: center;
}

/* ===========================
   Tablet / Small Desktop
=========================== */
@media (max-width: 1080px) {
    ._inner {
        padding: 0 24px;
    }

    /* 固定ヘッダー分を確保（1080以下はヘッダー高60px） */

    .mv {
        grid-template-columns: 1fr;
        gap: 20px;
        max-height: none;
        padding: 60px 24px 32px;
    }

    .mv-right {
        display: none;
    }

    .mv-label {
        font-size: clamp(1rem, 2.1vw, 1.3rem);
        letter-spacing: 0.08em;
    }

    .mv h1 {
        font-size: clamp(1.8rem, 4.2vw, 3rem);
        line-height: 1.3;
    }

    .mv-flex {
        gap: 12px;
    }

    .mv-flex-btn_yellow,
    .mv-flex-btn_white {
        justify-content: center;
    }

    .solution-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-wrap-card {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 32px 24px;
    }

    .service-card-text {
        flex: unset;
        width: 100%;
        gap: 20px;
    }

    .service-wrap-card > img {
        width: 100%;
        height: auto;
        max-height: 320px;
        object-fit: contain;
    }

    .price-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .price-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .case-card-logo {
        width: clamp(140px, 25vw, 180px);
        height: 72px;
        padding: 0 12px;
    }

    .case-card-text {
        padding: 24px 20px 28px;
    }

    .footer-inner {
        padding: 40px 24px;
        gap: 24px;
        flex-direction: column-reverse;
    }

    .footer-divider {
        display: none;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
        width: 100%;
    }

    .footer-left h2 {
        white-space: normal;
        letter-spacing: 0.08em;
    }

    .footer_btn_layout.footer-cv {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
    }

    .footer_btn_layout.footer-cv .btn {
        width: calc(50% - 6px);
    }

    .footer_btn_layout.footer-cv .btn img {
        width: 100%;
        height: auto;
    }

    .footer-btn {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    ._inner {
        padding: 0 20px;
    }

    .mv {
        grid-template-columns: 1fr;
        padding: 48px 60px 40px 20px;
        min-height: auto;
    }

    .mv-right {
        display: none;
    }

    .mv h1 {
        font-size: 2rem;
    }

    .mv-flex {
        flex-direction: column;
        gap: 12px;
    }

    .mv-flex-btn_yellow,
    .mv-flex-btn_white {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .stats-bar {
        padding: 16px 20px;
    }

    .stats-number {
        font-size: 2rem;
    }

    .stats-laurel {
        width: 18px;
    }

    .stats-divider {
        display: none;
    }

    .stats-no1 img {
        height: 64px;
    }

    #solution,
    #feature,
    #service,
    #price,
    #case,
    #flow,
    #faq {
        padding: 60px 0;
    }

    #solution h2,
    #feature h2,
    #service h2,
    #price h2,
    #case h2,
    #flow h2,
    #faq h2 {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .case-swiper {
        padding: 16px 12px 48px !important;
    }

    #service {
        padding: 60px 0 40px;
    }

    #price {
        padding: 60px 0;
    }

    .price-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .price-title {
        flex-direction: column;
        gap: 8px;
    }

    .service-wrap-card {
        flex-direction: column;
        padding: 32px 24px;
    }

    .service-card-text {
        flex: unset;
        width: 100%;
    }

    .service-wrap-card > img {
        width: 100%;
        height: 200px;
    }

    .footer-inner {
        flex-direction: column-reverse;
        gap: 24px;
        padding: 40px 20px;
    }

    .footer-divider {
        display: none;
    }

    .footer-left {
        max-width: 100%;
    }
    .footer-left h2{
        font-size: 18px;
    }

    .footer-right {
        gap: 20px;
    }

    .footer-btn {
        flex-direction: column;
        gap: 10px;
    }

    .footer-cta-btn {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
        height: 64px;
    }

    .footer-nav {
        gap: 8px 20px;
    }

    .footer-nav a {
        font-size: 1rem;
    }

    .footer-bottom {
        padding: 0 20px 24px;
    }
}

@media (max-width: 768px) {
    /* Feature タブ */
    .feature-tabs {
        gap: 4px;
        overflow-x: auto;
        padding:0;
    }

    .feature-tab {
        min-width: auto;
        flex: 1;
        padding: 14px 20px 16px;
    }
    .feature-box{
        border-radius: 0 0 24px 24px;
        padding: 16px 20px;
    }

    .feature-tab-title {
        font-size: 1.2rem;
    }

    .feature-tab-spacer {
        min-width: 0;
        flex: 0 0 0;
    }

    /* Feature: SP ではローテーションアニメーション無効 */
    .feature-tab--active::after {
        display: none;
    }

    .feature-main-img img,
    .feature-main-desc {
        transition: none;
    }

    /* Case Archive */
    .case-archive {
        padding: 32px 20px 24px;
    }

    /* Price ボタン */
    .price-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .price-cta-btn {
        justify-content: center;
        width: 100%;
    }
    .footer_btn_layout.footer-cv{
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .footer_btn_layout.footer-cv .btn{
        width: 48%;
    }
}

@media (max-width: 480px) {
    /* 料金プラン 1カラム */
    .price-wrap {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   FAQ アコーディオン JS
=========================== */
