:root {
    --cta: #0288D1;
    --cta-hover: #18a8b8;
    --cta-gray: #6b7785;
    --cta-gray-hover: #5b6571;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: "YakuHanJP", "Noto Sans JP", system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    letter-spacing: .05em;
}

.btn-cta {
    background: var(--cta)
}

.btn-cta:hover {
    background: #1c91a3
}

.shadow-header {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.shadow-card {
    box-shadow: 0 0px 18px rgba(0, 0, 0, .15);
}

.shadow-soft {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

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

.no-scrollbar::-webkit-scrollbar {
    display: none
}

.nav-link {
    position: relative;
    @apply relative inline-block pb-0.5 transition-colors duration-300;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 1px;
    width: 0;
    background-color: #0288D1;
    transition: width 0.28s ease;
}

.nav-link:hover {
    color: #0288D1;
}

.nav-link:hover::after {
    width: 100%;
}

.mv-will {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(16px);
}

.mv-wave-clip {
    clip-path: inset(0 100% 0 0);
}

.mv-wave {
    transform-box: fill-box;
    transform-origin: 0 50%;
}

.grain {
    mix-blend-mode: soft-light;
    opacity: .05;
    pointer-events: none;
}

.case-endpad {
    flex: 0 0 var(--edge-pad, 1.5rem);
}

.mv-wave-clip {
    clip-path: inset(0 100% 0 0);
}

#mv {
    background-image: linear-gradient(0deg, #f3f7f8, #ffffff);
}

/* === MV スライダー（右→左スライドイン） === */
#mvSlider {
    position: relative;
    opacity: 0;
    visibility: hidden;
}

#mvSlider .mv-slide {
    opacity: 0;
}

#mvSlider .mv-slide:first-child {
    opacity: 1;
}

.mv-dots .mv-dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(95, 95, 95, 0.65);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.mv-dots .mv-dot.is-active {
    background: var(--cta);
    transform: scale(1.2);
}

@media (max-width: 767px) {
    #mvSlider {
        flex-direction: column;
        align-items: center;
    }

    #mvSlider .mv-dots {
        flex-direction: row;
        margin-top: .5rem;
    }
}

#mv svg use:nth-of-type(2),
#mv svg use:nth-of-type(3) {
    opacity: 0.5;
}

#mv svg use:nth-of-type(2) {
    transform: rotate(6deg);
    animation-delay: 1s;
    /*animation-duration: 6s;*/
}

#mv svg use:nth-of-type(3) {
    transform: rotate(5deg);
    animation-delay: 2s;
    /*animation-duration: 4s;*/
}

.logo-marquee {
    animation: logo-marquee 28s linear infinite;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.group:hover .cta-arrow {
    animation: arrow-loop 0.45s ease-out forwards;
}

@keyframes arrow-loop {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    45% {
        transform: translateX(140%);
        opacity: 0;
    }

    55% {
        transform: translateX(-140%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.cta-contact:hover .cta-circle {
    background: #ffffff;
}

.cta-contact:hover .cta-arrow {
    color: var(--cta);
}

#news ul li a {
    position: relative;
    display: inline-block;
    padding-bottom: 1px;
}

#news ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background-color: #111111;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease-out;
}

#news ul li a:hover::after {
    transform: scaleX(1);
}

/* === SPハンバーガーボタン === */
.menu-btn {
    position: relative;
}

.menu-btn .menu-line {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    border-radius: 9999px;
    background-color: #111111;
    transform: translateX(-50%);
    transition:
        transform 0.28s ease,
        opacity 0.2s ease,
        top 0.28s ease,
        bottom 0.28s ease;
}

.menu-btn .menu-line:nth-child(1) {
    top: 12px;
}

.menu-btn .menu-line:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-btn .menu-line:nth-child(3) {
    bottom: 12px;
}

.menu-btn.is-open .menu-line:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-btn.is-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.is-open .menu-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* === SPメニューパネル === */
.menu-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        max-height 0.32s ease,
        opacity 0.26s ease,
        transform 0.32s ease;
}

.menu-panel.is-open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
}

/* === 共通フェードイン === */
.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

.fade-up,
.fade-down,
.fade-left,
.fade-right {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-up {
    transform: translateY(20px);
}

.fade-down {
    transform: translateY(-20px);
}

.fade-left {
    transform: translateX(24px);
}

.fade-right {
    transform: translateX(-24px);
}

.fade-in-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fade-delay-1 {
    transition-delay: .1s;
}

.fade-delay-2 {
    transition-delay: .2s;
}

.fade-delay-3 {
    transition-delay: .3s;
}

.fade-delay-4 {
    transition-delay: .4s;
}

/* === single-news === */

#news-single .post-content>* {
    margin-top: 1em;
}

#news-single .post-content h2 {
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.6;
}

#news-single .post-content h3 {
    margin-top: 1.6em;
    margin-bottom: 1em;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.6;
}

#news-single .post-content ul {
    list-style: disc;
    padding-left: 1em;
}

#news-single .post-content ol {
    list-style: decimal;
    padding-left: 1.5em;
}

#news-single .post-content a {
    color: #0288D1;
    text-decoration: none;
    transition: 0.4s all;
}

#news-single .post-content a:hover {
    color: #18A8B8;
}

#news-single .post-content a[href] {
    word-break: break-all;
}

#news-single .post-content .wp-block-embed {
    display: none;
}

/* === archive-news === */
.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pagination .nav-links .page-numbers {
    border: 1px solid #6B7280;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.pagination .nav-links .page-numbers.current {
    border-color: #111111;
    background-color: #111111;
    color: #ffffff;
}

.pagination .nav-links .page-numbers.prev,
.pagination .nav-links .page-numbers.next {
    border: none;
}

/* === single-case === */
#case-single .post-content>*:not(:first-child) {
    margin-top: 1.2em;
    line-height: 2;
}

#case-single .post-content h2 {
    margin-top: 1.6em;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 2;
    position: relative;
    padding-left: 1.25rem;
}

#case-single .post-content h2::before {
    content: "";
    position: absolute;
    top: 0.4em;
    bottom: 0.4em;
    left: 0;
    width: 4px;
    background: linear-gradient(to bottom, #31A2B2, #00353d);
    border-radius: 2px;
}

#case-single .post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-left: 2em;
    line-height: 1.5 !important;
}

#case-single .post-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2em;
    height: 2px;
    background-color: currentColor;
    transform: translateY(-50%);
}

#case-single .post-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

#case-single .post-content ul.case-list {
    list-style: disc;
    padding-left: 1.2em;
}

#case-single .post-content ul.case-list .case-point {
    font-weight: 700;
    font-size: 1.1em;
}

#case-single .post-content ul.case-list li+li .case-point {
    margin-top: .8em;
    display: inline-block;
}

#case-single .post-content .case-profile {
    font-weight: 700;
}

#case-single .post-content .case-profile div#ez-toc-container {
    padding: 10px 20px;
}

#case-single .post-content .case-profile div#ez-toc-container .ez-toc-title {
    padding: 10px;
}

#case-single .post-content .ez-toc-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#case-single .post-content #ez-toc-container a {
    padding: 10px;
}

@media (min-width: 768px) {
    #case-single .post-content .case-customer {
        display: flex;
    }

    #case-single .post-content .case-customer-img {
        flex-basis: 40%;
    }

    #case-single .post-content .case-customer-text {
        margin-left: 1.5em;
    }
}

#case-single .post-content .case-customer-text .case-point {
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    font-size: 1.2em;
}

#case-single .post-content .case-customer-text .case-name {
    font-weight: 700;
    display: inline-block;
    margin-top: .5rem;
    font-size: 1.1em;
}

/* === page === */
#primary .post-content>* {
    line-height: 2;
}

#primary .post-content>*:not(:first-child) {
    margin-top: 1.2em;
}

#primary .post-content h2.p-heading2 {
    margin-top: 1.6em;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 2;
    position: relative;
    padding-left: 1.25rem;
}

#primary .post-content h2.p-heading2::before {
    content: "";
    position: absolute;
    top: 0.4em;
    bottom: 0.4em;
    left: 0;
    width: 4px;
    background: linear-gradient(to bottom, #31A2B2, #00353d);
    border-radius: 2px;
}

#primary .post-content h3 {
    font-size: 1.2em;
    font-weight: 700;
    position: relative;
    padding-left: 2em;
}

#primary .post-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2em;
    height: 2px;
    background-color: currentColor;
    transform: translateY(-50%);
}

#primary .post-content ol {
    list-style: decimal;
    padding-left: 1.5em;
}

#primary .post-content ol>li+li {
    margin-top: 1em;
}

#primary .post-content ol>li ul li {
    margin-top: .5em;
}

#primary .post-content a {
    color: #0288D1;
    text-decoration: underline;
}

#case-single .toc {
    background-color: #f7f7f7;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

#case-single .toc-title {
    font-weight: bold;
    margin-bottom: 8px;
}

#case-single .toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#case-single .toc ul ul {
    padding-left: 16px;
    font-size: 0.95em;
}

#case-single .toc ul li {
    margin-bottom: 6px;
    list-style: none;
    font-size: .85rem;
    position: relative;
    padding-left: 1rem;
}

#case-single .toc ul li::before {
    content: "・";
    position: absolute;
    color: #2563eb;
    top: 0;
    left: 3px;
}

#case-single .toc a {
    color: #2563eb;
    text-decoration: none;
}

#case-single .toc a:hover {
    text-decoration: underline;
}

#case-single .toc a.active {
    font-weight: bold;
    color: #1d4ed8;
}

#case-single h2 {
    scroll-margin-top: 40px;
}

#case-single .wp-block-table {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
}

#case-single .wp-block-table td,
#case-single .wp-block-table th {
    border: none;
    padding: .1rem;
    font-size: .85rem;
}

@media (max-width: 767px) {

    #case-single .wp-block-table td,
    #case-single .wp-block-table th {
        display: block;
    }

    #case-single .wp-block-table td {
        line-height: 1.75;
    }
}

#case-single blockquote {
    position: relative;
    border-left: 3px solid #ddd;
    padding: 25px 25px 25px 15px;
    background: #f7f7f7;
    border-radius: 0 8px 8px 0;
}

#case-single blockquote:before {
    display: inline-block;
    position: absolute;
    top: 23px;
    left: 10px;
    content: "“";
    font-family: sans-serif;
    color: #ddd;
    font-size: 80px;
    line-height: 1;
}

#case-single blockquote p {
    position: relative;
    padding-left: 30px;
}

#case-single blockquote cite {
    display: block;
    font-size: 0.8rem;
    color: #a0a0a0;
    text-align: right;
}

.case-taxonomy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 23px;
}

.case-taxonomy__row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
}

.case-taxonomy__row--top {}

.case-taxonomy__row--bottom {}

.case-taxonomy__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.case-taxonomy__group-label {
    font-weight: 700;
    white-space: nowrap;
    font-size: 12px;
    color: #5a5a5a;
}

.case-taxonomy__label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #111111;
}

.case-taxonomy__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    border: 1px solid transparent;
    background: #e8f1fb;
    color: #1d4f91;
    border-color: #c8ddf5;
}

.tag-chip--industry {
    /*
    background: #e8f1fb;
    color: #1d4f91;
    border-color: #c8ddf5;
    */
}

.tag-chip--department {
    /*
    background: #e8f6ef;
    color: #216946;
    border-color: #c7e8d4;
    */
}

.tag-chip--scene {
    /*
    color: #5a5a5a;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
    */
}