/*
  Theme Name: JIDOKA Child
  Template: swell
  Author: JIDOKA Inc
  Version: 1.0
*/

/* =========================
   Base Typography
========================= */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Noto Sans JP", "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;

    font-weight: 400;
    line-height: 1.7;
    color: #222;

    /* 長文・URL対策 */
    overflow-wrap: anywhere;
    word-break: normal;

    /* 日本語禁則（業務文書向け） */
    line-break: strict;

    /* 和文中の英数字余白（対応ブラウザのみ） */
    text-autospace: normal;
}

@media not all and (min-width: 960px) {
    /* .swell-block-fullWide__inner.l-article {
        --swl-fw_inner_pad: 60px !important;
    } */
    .c-headLogo {
        height: 70px !important;
    }
}

/* text margin */
.post_content h2 {
    margin: 2em 0 2em;
}

.bg-main {
    background-color: var(--color_main) !important;
}

/* =========================
   Header
========================= */
@media (max-width: 767px) {
    .l-header__inner {
        height: 90px !important;
    }
}

/* ロゴ上下左右中央 */
.c-headLogo__link {
    display: flex;
    align-items: center;
}

/* グローバルナビ 全体を太字に */
.c-gnav {
    font-weight: 700;
    font-size: 1.2em;
}

/* メニューの間隔を調整する */
.c-gnav > .menu-item > a {
    padding: 0 1.2em;
}

/* ヘッダーナビは pointer-events を通常に戻す */
#gnav .c-gnav a,
#gnav .c-gnav a * {
    pointer-events: auto;
}

/* 最後のメニュー項目（お問い合わせ） */
.c-gnav > li:last-child > a span {
    background-color: var(--jidoka-accent, var(--color_main));
    color: #fff;
    padding: 1em 1.6em;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0.4, 0, 1);
    transition: background-color 0.3s cubic-bezier(0.4, 0.4, 0, 1), color 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

/* 最後のメニューだけ hover 時に黒背景・白文字 */
.c-gnav > li:last-child > a:hover span {
    background-color: #000;
    color: #fff;
}

/* 最後のメニューだけ hover 時に下線削除 */
.c-gnav > li:last-child > a::after {
    display: none !important;
}

/* 最後のメニュー hover 時の赤下線を完全に無効化 */
@media (min-width: 960px) {
    .-parallel .l-header__gnav .c-gnav > li > a::after {
        background-color: #fdfa25;
        height: 3px;
    }
}

/* 追従のナビバー色 hover 時の下線の色変更 */
.c-gnav a::after {
    background: #ef3f56;
    height: 3px;
}

/* =========================
   Page Title
========================= */

.home .l-content {
    margin-bottom: 0 !important;
}

.flex-start {
    display: flex;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

/* =========================
   Page Title
========================= */
.l-topTitleArea__body {
    /* color: var(--color_main); */
    color: #222;
}

.l-topTitleArea.c-filterLayer::before {
    /* content: none !important; */
    opacity: 0.05;
}

.c-pageTitle .page-slug {
    font-family: "Lato", Arial, sans-serif;
    display: block;
    font-size: 3.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color_main);
}

.c-pageTitle .page-title {
    font-family: "Noto Sans JP", sans-serif;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #222;
}
.text-white {
    color: #fff !important;
}

/* =========================
   Headings
========================= */

h1,
h2,
h3,
h4 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* =========================
   English / UI / Numbers
========================= */

.en,
.ui-text,
.ui-number {
    font-family: "Lato", Arial, sans-serif;
    font-weight: 600;
}

/* =========================
   Block Divider
========================= */

.list-news {
    min-height: 200px;
}

.post_content hr {
    border-bottom: 2px solid var(--color_main) !important;
    margin: 0 auto 2.5em 0 !important;
}

.post_content .section-title {
    font-family: "Lato", Arial, sans-serif;
    display: block;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color_main);
    margin-bottom: 1rem !important;
}
@media (max-width: 767px) {
    .post_content .section-title {
        font-size: 2.4rem;
        letter-spacing: 0.05em;
        margin-bottom: 1rem !important;
    }
}

/* 縦 divider コンテナ */
.vertical-divider-wrap {
    position: relative;
    height: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
}

/* 縦線本体 */
.vertical-divider {
    width: 1px;
    background-color: #fff;
}

@media (max-width: 767px) {
    .vertical-divider-wrap {
        width: 100%;
        height: auto;
        justify-content: stretch;
        padding: 2rem 0;
    }
    .vertical-divider {
        width: 100px;
        height: 1px;
    }
}

.list-services .p-postList__subTitle {
    font-family: "Lato", Arial, sans-serif;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color_main);
    text-transform: uppercase;
    margin-bottom: 0.25em !important;
}

.list-services .p-postList__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25em !important;
}

.list-services .p-postList__text {
    font-size: 1rem;
    margin-bottom: 0.25em !important;
}

.list-services .service-image {
    background-color: #fff5f5;
    border-radius: 50px;
}

/* =========================
   More Button
========================= */

.jidoka-more-link {
    margin-top: 2rem;
}

/* link全体 */
.jidoka-link {
    display: inline-flex !important;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    pointer-events: auto;
}

/* More Button 内だけ hover 判定を親に集約 */
.jidoka-more-link .jidoka-link__icon,
.jidoka-more-link .jidoka-link__text {
    pointer-events: none;
}

/* アイコン外枠（基準） */
.jidoka-link__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--jidoka-accent, var(--color_main));
    color: #fff;
    font-size: 24px;

    transition: transform 0.3s cubic-bezier(0.4, 0.4, 0, 1), box-shadow 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

/* テキスト */
.jidoka-link__text {
    color: #222;
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

/* =========================
   Hover Animation（確実に効く）
========================= */

/* 円が拡大 */
.jidoka-more-link:hover .jidoka-link__icon {
    transform: scale(1.15);
    box-shadow: 0 10px 26px rgba(221, 51, 51, 0.28);
}

/* テキストが右へスライド */
.jidoka-more-link:hover .jidoka-link__text {
    transform: translateX(12px);
}

/* =========================
   Dark Mode
========================= */

.dark .jidoka-link__text {
    color: #fff !important;
}

.dark .jidoka-link__icon {
    background: var(--jidoka-accent, #fff) !important;
    color: var(--color_main) !important;
}

/* =========================
   News Post Style
========================= */

.p-postList__meta {
    margin-bottom: 8px !important;
}
.p-postList__cat {
    background-color: var(--color_main) !important;
    color: #fff !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 100px !important;
}

.p-postList__times {
    font-weight: 500;
    color: #888;
}

/* =========================
   Footer
========================= */

.l-footer .post_content :where(ul:not([type])),
.l-footer .post_content ol ul,
.l-footer .post_content ul ul {
    list-style: none;
}

.wp-block-list {
    list-style: none; /* デフォルトのドットを消す */
    padding-left: 0;
}

.wp-block-list li {
    position: relative;
    padding-left: 1em;
}

.wp-block-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #fff;
}

/* .l-footer__nav li:first-child a,
.l-footer__nav li a {
    border-left: 0;
    border-right: 0;
}
@media (max-width: 960px) {
    .l-footer__nav {
        display: flex;
        flex-direction: column;
        align-items: start;
    }
}
.l-footer .post_content :where(ul:not([type])),
.l-footer .post_content ol ul,
.l-footer .post_content ul ul {
    list-style: none;
}
.l-container.w-footer {
    max-width: 90%;
}

.l-footer__foot {
    margin: 0 auto;
    padding-left: var(--swl-pad_container, 0);
    padding-right: var(--swl-pad_container, 0);
}

.l-footer__foot .l-container {
    max-width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}
@media (max-width: 960px) {
    .l-footer__foot .l-container {
        flex-direction: column;
    }
}

.l-footer .copyright {
    text-align: left;
} */

/* =========================
   Pagenation
========================= */
.c-pagination .page-numbers:first-child {
    margin-top: 4px !important;
}

.c-pagination .page-numbers:last-child {
    margin-bottom: 4px !important;
}

/* =========================
   Contents
========================= */
/* カテゴリファイルアイコン削除 */
.widget_categories > ul > .cat-item > a:before,
.wp-block-categories-list > li > a:before {
    content: "";
}
.widget_categories > ul > .cat-item > a,
.wp-block-categories-list > li > a {
    padding-left: 0;
}
/* パンクズ全文 */
.single .p-breadcrumb__item:last-child > span.p-breadcrumb__text {
    display: none;
}

.p-breadcrumb__item:last-child > span.p-breadcrumb__text {
    color: var(--color_main) !important;
    font-weight: 700;
}

/* メインビジュアル */
.main-visual-wrap.swell-block-fullWide {
    padding-bottom: 0 !important;
}
.main-visual-wrap .post_content > * {
    margin-bottom: 0 !important;
}
@media not all and (min-width: 960px) {
    .main-visual-wrap .post_content .sp-py-40 {
        padding-bottom: 0 !important;
    }
}

.mv {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    margin-bottom: 0 !important;
}

/* テキスト */
.mv .mv__text {
    padding-top: 60px !important;
    color: var(--color_main);
    font-size: 60px;
    font-weight: bold;
    line-height: 1.3;
}

/* 画像 */
.mv__image {
    width: 120%;
    height: auto;
    animation: float 4s ease-in-out infinite;
    margin-top: -20px;
}

/* ふわふわアニメーション */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* レスポンシブ対応（任意） */
@media (max-width: 768px) {
    .mv .mv__text {
        font-size: 40px;
        margin-bottom: 20px;
    }
    .mv .mv__image {
        width: 200%;
        max-width: none !important;
        margin-top: 0;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    @keyframes float {
        0% {
            transform: translateX(-50%) translateY(0);
        }
        50% {
            transform: translateX(-50%) translateY(-13px);
        }
        100% {
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* Section Image */
.relative {
    position: relative;
}
.section-image {
    min-height: 400px;
}
.section-image-01 {
    width: 100% !important;
    height: 400px !important;
    position: absolute;
    left: calc((100% - 1280px) / 2) !important;
}
.section-image-01 img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover;
    border-radius: 50px 0 0 50px;
    background-color: var(--color_main);
    border: 1px solid #fff5f5;
}
@media (max-width: 768px) {
    .section-image .wp-block-column:first-child {
        flex-basis: 1px !important;
    }
    .section-image-01 {
        position: relative;
        left: 0 !important;
        padding-left: 20px;
    }
    .section-image-01 img {
        width: 600px !important;
        height: 300px !important;
        max-width: none !important;
    }
}
