/* Fix for swiper slides height consistency */
.slider-services .swiper-slide {
    height: auto !important;
}

.slider-services .figure-service {
    height: 100%;
}

.slider-services .figure-service .row {
    height: 100%;
}

.slider-services .figure-service__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    /* Set a minimum height for all slides */
}

.slider-services .figure-service__header {
    flex: 1;
}

.slider-services .figure-service__text {
    display: flex;
    flex-direction: column;
}

/* Ensure the footer stays at the bottom */
.slider-services .figure-service__footer {
    margin-top: auto;
}

.blog-card {
    transition: all 0.3s ease;
    background-color: #f7f6f3;
    border-radius: 4px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-card-inner {
    background-color: #f7f6f3;
    color: #111111;
}

.blog-image {
    height: 200px;
    background-color: #f7f6f3;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-image img.blog-image__fallback {
    /* イラスト系はトリミングより “全体が見える” を優先 */
    object-fit: contain;
    box-sizing: border-box;
    padding: var(--illus-index-card-pad, 18px);
    background-color: var(--color-light-3);
}

.empty-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f6f3;
    color: #111111;
    padding: 15px;
    text-align: center;
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #111111;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    z-index: 2;
}

.blog-content {
    padding: 15px;
    background-color: #f7f6f3;
}

.blog-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #111111;
}

.blog-text {
    font-size: 14px;
    color: #111111;
    line-height: 1.5;
}

/* ブログ・ニュース一覧ページの改善 */
.figure-post__excerpt {
    line-height: 1.5;
}

.figure-post__media img {
    /* LazyLoad(components.js)がwidth/heightから比率を計算してレイアウトを作るため、
       img自体は親(.lazy)の領域にフィットさせる */
    object-fit: cover;
}

/* ==========================================
   Illustrations（static/images/illustrations）
   目標: トップページのカードと同じ「余白あり・引きで見える」表現に全体統一
   - モバイルは余白を減らして見やすく
   ========================================== */

:root {
    --illus-frame-bg: #f7f6f3;
    /* トップページ基準の余白感（Desktop） */
    --illus-frame-pad: clamp(14px, 3.2vw, 44px);
    /* 大きめの画像（2カラム等） */
    --illus-frame-pad-lg: clamp(18px, 4vw, 64px);
    /* 背景イラストの見せるサイズ（Desktop） */
    --illus-bg-hero: clamp(220px, 42%, 520px) auto;
    --illus-bg-section: clamp(220px, 50%, 600px) auto;
    --illus-bg-slider: clamp(240px, 56%, 640px) auto;
    /* Hover Zoom（見切れを抑える） */
    --illus-hover-zoom: 1.06;
    --illus-hover-inner: 0.97;

    /* トップ（Site Mapカード）は全体より少し“寄り”で見せる */
    --illus-index-card-pad: clamp(10px, 2.2vw, 28px);
}

@media (max-width: 767.98px) {
    :root {
        /* モバイルは余白を減らして小さくなりすぎないように */
        --illus-frame-pad: clamp(10px, 4.8vw, 28px);
        --illus-frame-pad-lg: clamp(12px, 5.6vw, 36px);
        /* モバイルは背景イラストを大きめに */
        --illus-bg-hero: clamp(220px, 78%, 620px) auto;
        --illus-bg-section: clamp(220px, 86%, 720px) auto;
        --illus-bg-slider: clamp(220px, 92%, 760px) auto;
        --illus-index-card-pad: clamp(10px, 4.6vw, 24px);
    }
}

/* トップページ（Site Map 3カラム）のイラストは cover だとトリミングが強くなるため、contain＋余白で見せる */
.index-sitemap-illustration {
    object-fit: contain !important;
    object-position: center center !important;
    box-sizing: border-box;
    padding: var(--illus-index-card-pad);
    background-color: var(--illus-frame-bg);
}

/* トップページ：Introductionの3枚重なりを解消（サイズ差を付けつつ“非重なり”で配置） */
.index-intro-images {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(12px, 2vw, 18px);
    align-items: start;
}

.index-intro-images .section-demo__stacked-image {
    margin: 0 !important;
}

.index-intro-images .section-demo__stacked-image:nth-child(1) {
    grid-row: 1 / span 2;
}

.index-intro-images .section-demo__stacked-image:nth-child(2) {
    transform: translateY(clamp(0px, 1vw, 10px));
}

.index-intro-images .section-demo__stacked-image:nth-child(3) {
    transform: translateY(clamp(8px, 1.8vw, 18px));
}

@media (max-width: 991.98px) {
    .index-intro-images {
        grid-template-columns: 1fr;
    }

    .index-intro-images .section-demo__stacked-image:nth-child(1) {
        grid-row: auto;
    }

    .index-intro-images .section-demo__stacked-image:nth-child(2),
    .index-intro-images .section-demo__stacked-image:nth-child(3) {
        transform: none;
    }
}

/* トップページ：Contactの背景イラストは小さめ＆見切れ回避 */
.index-contact-bg .lazy-bg[data-src*="images/illustrations/"] {
    background-size: clamp(220px, 46%, 520px) auto !important;
    background-position: right 8% bottom 12% !important;
}

/* =========
   Illustrations（static/images/illustrations）共通：枠に対して大きすぎる/トリミングされる問題を抑制
   - img: cover を contain に統一（必要箇所のみ余白）
   - lazy-bg / swiper background: cover を contain に統一
   ========= */

/* 1) <img>：基本は contain（inline画像への影響は最小限） */
img[src*="images/illustrations/"],
img[data-src*="images/illustrations/"] {
    object-fit: contain !important;
    object-position: center center !important;
}

/* 2) 枠にハメる系（カード/サムネ/固定アスペクト）だけ余白と背景を追加 */
.lazy img[data-src*="images/illustrations/"],
.figure-image__wrapper-img img[src*="images/illustrations/"],
.figure-image__wrapper-img img[data-src*="images/illustrations/"],
.figure-post__media img[src*="images/illustrations/"],
.figure-post__media img[data-src*="images/illustrations/"],
.post__media img[src*="images/illustrations/"],
.post__media img[data-src*="images/illustrations/"] {
    box-sizing: border-box;
    padding: var(--illus-frame-pad);
    background-color: var(--illus-frame-bg);
}

/* 3) 背景画像（lazy-bg） */
.lazy-bg[data-src*="images/illustrations/"] {
    background-size: var(--illus-bg-section) !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: var(--illus-frame-bg);
}

/* 4) Swiper の背景（data-background） */
.slider__bg[data-background*="images/illustrations/"],
.swiper-lazy[data-background*="images/illustrations/"] {
    background-size: var(--illus-bg-slider) !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: var(--illus-frame-bg);
}

/* 5) 大きいセクション背景もトップページ同様「引き」で見せる */
.section-demo__bg .lazy-bg[data-src*="images/illustrations/"] {
    background-size: var(--illus-bg-section) !important;
}

.section-masthead__background .lazy-bg[data-src*="images/illustrations/"],
.section-image__wrapper-background.lazy-bg[data-src*="images/illustrations/"] {
    background-size: var(--illus-bg-hero) !important;
}

/* section-image（高さ大きめの背景画像）も引きで */
.section-image .lazy-bg[data-src*="images/illustrations/"] {
    background-size: var(--illus-bg-section) !important;
}

/* 6) サービススライダーの背景 */
.slider__bg[data-background*="images/illustrations/"],
.swiper-lazy[data-background*="images/illustrations/"] {
    background-size: var(--illus-bg-slider) !important;
}

/* 7) 左右2カラムの大きいイメージは余白を増やして引きで見せる */
.section-content__image .lazy>img[src*="images/illustrations/"],
.section-content__image .lazy>img[data-src*="images/illustrations/"] {
    padding: var(--illus-frame-pad-lg) !important;
}

/* 9) お問い合わせページのイメージは控えめに（フォームの邪魔をしないサイズ） */
.contact-page-illustration {
    padding: clamp(12px, 3vw, 28px) 0;
}

.contact-page-illustration__inner {
    max-width: 560px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f6f3;
}

/* 8) イラストは見切れが目立つのでホバーズーム量を弱める */
.hover-zoom:hover:not(:focus) .hover-zoom__zoom {
    transform: scale(var(--illus-hover-zoom));
}

.hover-zoom:hover:not(:focus) .hover-zoom__inner {
    transform: scale(var(--illus-hover-inner));
}

.post__media img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.post__content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.25em auto;
    border-radius: 6px;
}

.post__content figure {
    margin: 1.5em 0;
}

.figure-post__excerpt p {
    margin-bottom: 0;
    color: var(--color-dark-4);
}

.figure-post__meta {
    margin-top: 10px;
}

.figure-post__categories a {
    color: var(--color-gray-1);
    text-decoration: none;
    font-weight: 400;
}

.figure-post__categories a:hover {
    color: var(--color-dark-2);
    text-decoration: none;
}

.figure-post__categories a.active {
    color: var(--color-dark-2);
    font-weight: 400;
}

.figure-post__tags {
    margin-top: 8px;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.badge-outline-primary {
    color: var(--color-dark-2);
    border: 1px solid rgba(128, 128, 128, 0.3);
    background-color: transparent;
}

.badge-outline-primary:hover {
    color: var(--color-dark-2);
    background-color: var(--color-light-4);
    text-decoration: none;
}

.badge-primary {
    color: var(--color-dark-2);
    background-color: var(--color-light-4);
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.figure-post__read-more {
    margin-top: 15px;
}

.btn-outline-primary {
    color: var(--color-dark-2);
    border: 1px solid rgba(128, 128, 128, 0.3);
    background-color: transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    color: var(--color-dark-2);
    background-color: var(--color-light-4);
    border-color: rgba(128, 128, 128, 0.3);
    text-decoration: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.775rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* タグクラウドの現在のタグハイライト */
.tag-cloud-link.active {
    background-color: var(--color-light-4);
    color: var(--color-dark-2);
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-weight: 400;
}

.tag-cloud-link.active:hover {
    background-color: var(--color-light-4);
    color: var(--color-dark-2);
    text-decoration: none;
}

/* カテゴリリストの現在のカテゴリハイライト */
.cat-item.current-cat a {
    color: var(--color-dark-2);
    font-weight: 400;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .figure-post__meta {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .figure-post__meta span {
        margin-top: 5px;
    }

    .figure-post__tags {
        margin-top: 10px;
    }

    .badge {
        margin-bottom: 3px;
        margin-right: 3px;
    }
}

/* カードレイアウトの改善 */
.section-blog .figure-post {
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
    background-color: var(--color-light-2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-blog .figure-post:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}

.figure-post__media {
    position: relative;
    overflow: hidden;
}

.figure-post__media img {
    transition: transform 0.3s ease;
}

.figure-post:hover .figure-post__media img {
    transform: scale(1.05);
}

.figure-post__header {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.figure-post__read-more {
    margin-top: auto;
    padding-top: 10px;
}

/* 画像のアスペクト比を統一 */
.figure-post__media {
    height: 240px;
    overflow: hidden;
}

.figure-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 空の状態のメッセージスタイル */
.section-blog__posts .text-center.my-5 {
    padding: 3rem 1rem;
    background-color: var(--color-light-2);
    border: 1px solid rgba(38, 38, 38, 0.08);
    border-radius: 0.5rem;
    margin: 2rem 0 !important;
}

.section-blog__posts .text-center.my-5 .h5 {
    color: rgba(38, 38, 38, 0.62);
    margin-bottom: 1rem;
}

.section-blog__posts .text-center.my-5 p {
    color: rgba(38, 38, 38, 0.62);
    margin-bottom: 0;
}

/* セクション見出しのスタイル改善 */
.section-blog .section-heading {
    color: var(--color-dark-2);
    font-weight: 400;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem !important;
}

/* News/Blog/Category/Tag: タグクラウドは太字・大文字を使わない */
.section-blog .tagcloud a,
.section-blog .widget .tagcloud a {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.04em;
}

/* News/Blog/Category/Tag: Bootstrap の text-muted をサイトの階調に寄せる */
.section-blog .text-muted {
    color: var(--color-gray-1) !important;
}

/* 著者情報のスタイル */
.figure-post__meta .text-muted {
    font-style: italic;
    font-size: 0.8rem;
}

/* ページ説明文のスタイル */
.section-masthead__text {
    /* サイト全体のトーンに合わせて“カード化”しない */
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
    color: rgba(0, 0, 0, 0.62);
    line-height: 1.9;
}

/* 太文字を使わない方針（サイト全体） */
strong,
b {
    font-weight: inherit;
}

/* ========================================
   Employee Portal（従業員様向け）: トーン統一・カード整形
   ======================================== */

#page-wrapper.employee-portal {
    color: rgba(38, 38, 38, 1);
    /* 従業員ページは“温かい”が主張しすぎないトーンに（CSS定義済みの色のみ） */
    background-color: var(--color-light-3) !important;
}

/* 上部ヘッダー（各ページ共通） */
#page-wrapper.employee-portal .employee-portal__masthead {
    background-color: var(--color-light-3) !important;
    color: rgba(38, 38, 38, 1);
    /* デスクトップでも“上に余白”を作る */
    padding-top: clamp(84px, 9vh, 140px);
    padding-bottom: clamp(54px, 6vh, 96px);
}

/* masthead の上部（背景画像レイヤー）も同色で揃えて“色の境目”を消す */
#page-wrapper.employee-portal .employee-portal__masthead .section-masthead__background-inner {
    background-color: var(--color-light-3);
}

#page-wrapper.employee-portal .employee-portal__masthead .overlay.overlay_light {
    background-color: var(--color-light-3);
    opacity: 0.72;
}

#page-wrapper.employee-portal .section-masthead__background_halfscreen {
    height: 18vh;
    max-height: 140px;
}

@media (max-width: 768px) {
    #page-wrapper.employee-portal .section-masthead__background_halfscreen {
        height: 12vh;
        max-height: 96px;
    }

    /* モバイルは“タイトル上が空きすぎ”を解消 */
    #page-wrapper.employee-portal .employee-portal__masthead {
        padding-top: 44px;
        padding-bottom: 52px;
    }
}

/* ========================================
   Employee Portal Home（/employee/）: 余白と色のつながりを調整
   - ヘッダーの白っぽい“余白”を分断させず、bg-light-4 に揃える
   - モバイルはカード見出し上の余白を詰める
   ======================================== */

#page-wrapper.employee-portal-home {
    background: var(--color-light-3);
}

/* パララックス用のグローバル背景上書きが効いてしまうため、/employee/ だけは明示的に揃える */
#page-wrapper.employee-portal-home .page-wrapper__content > section {
    background-color: var(--color-light-3);
}

/* ヘッダー上部の“白”を消して同色で繋ぐ */
#page-wrapper.employee-portal-home .employee-portal__masthead .section-masthead__background-inner {
    background-color: var(--color-light-3);
}

#page-wrapper.employee-portal-home .employee-portal__masthead .overlay.overlay_light {
    background-color: var(--color-light-3);
    opacity: 0.72;
}

/* 文章周り：デスクトップは呼吸、モバイルは詰める */
#page-wrapper.employee-portal-home .employee-portal__masthead {
    /* /employee/ はカードがすぐ続くので、下の余白を少し抑える */
    padding-top: clamp(92px, 9vh, 150px);
    padding-bottom: clamp(44px, 5vh, 84px);
}

/* 背景画像の高さを控えめにして、余白が間延びしないように */
#page-wrapper.employee-portal-home .section-masthead__background_halfscreen {
    height: 18vh;
    max-height: 140px;
}

@media (max-width: 768px) {
    #page-wrapper.employee-portal-home .employee-portal__masthead {
        padding-top: 44px;
        padding-bottom: 48px;
    }

    #page-wrapper.employee-portal-home .section-masthead__background_halfscreen {
        height: 12vh;
        max-height: 96px;
    }

    /* カード見出し（caption）上の余白が大きく見えるので少し詰める */
    #page-wrapper.employee-portal-home .employee-portal-links .section-image__caption {
        margin-top: 0.6em;
    }

    /* セクション自体の上余白も詰める */
    #page-wrapper.employee-portal-home .employee-portal-links {
        padding-top: calc(1 * (var(--distance-min-small) * 1px));
    }
}

/* /employee/ 配下：関連リンクのセクション背景を統一（オレンジを薄く） */
#page-wrapper.employee-portal .employee-portal-links {
    background-color: var(--color-light-3) !important;
}

/* /employee/ 配下の本文セクションも背景を揃える（bg-light-2 などの差を消す） */
#page-wrapper.employee-portal .section-blog {
    background-color: var(--color-light-3) !important;
}

/* /employee/ 配下：カード画像が“小さく見える”ので、中身を少し寄せて見せる */
#page-wrapper.employee-portal .employee-portal-links .figure-image__wrapper-img {
    background-color: var(--color-light-3);
}

#page-wrapper.employee-portal .employee-portal-links .figure-image__wrapper-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.12);
}

/* /employee/（ホーム）側は lazy ラッパーがあるので高さを合わせる */
#page-wrapper.employee-portal.employee-portal-home .employee-portal-links .figure-image__wrapper-img .lazy {
    height: 100%;
}

#page-wrapper.employee-portal.employee-portal-home .employee-portal-links .figure-image__wrapper-img .lazy img {
    height: 100%;
}

/* カード見出し（caption）と画像の距離を詰める（モバイルの“上が空きすぎ”対策） */
#page-wrapper.employee-portal .employee-portal-links .section-image__caption {
    margin-top: 0.75em;
}

@media (max-width: 768px) {
    #page-wrapper.employee-portal .employee-portal-links .section-image__caption {
        margin-top: 0.55em;
    }
}

/* “最初の文章”の余白が詰まりすぎないように（デスクトップ/モバイル共通で少し増やす） */
#page-wrapper.employee-portal .employee-portal__masthead .section-content__text {
    margin-top: 1.1rem !important;
}

/* 見出し・カード内の“太さ”を揃える（インラインの font-weight も上書き） */
#page-wrapper.employee-portal .post__content h3,
#page-wrapper.employee-portal .post__content h4,
#page-wrapper.employee-portal .post__content h5,
#page-wrapper.employee-portal .post__content .h3,
#page-wrapper.employee-portal .post__content .h4,
#page-wrapper.employee-portal .post__content .h5 {
    font-weight: 400 !important;
}

/* ボタンは“戻る”と同じトーンに（従業員ページ内は過度に主張しない） */
#page-wrapper.employee-portal .button {
    font-weight: 400;
    letter-spacing: 0.08em;
    padding: 14px 32px;
    border-radius: 56px;
    text-transform: none;
}

/* 箇条書きの「点」を出さない（従業員ページ内のみ） */
#page-wrapper.employee-portal .post__content ul,
#page-wrapper.employee-portal .post__content ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

#page-wrapper.employee-portal .post__content li {
    margin-bottom: 0.35rem;
}

/* img(data-src) の padding-bottom ハックで見切れやすいので、従業員ページの本文だけ解除して “全体が見える” を優先 */
#page-wrapper.employee-portal .post__content .lazy {
    padding-bottom: 0 !important;
    overflow: visible !important;
}

#page-wrapper.employee-portal .post__content img {
    position: static !important;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Employee links grid（カード高さ揃え） */
#page-wrapper.employee-portal .employee-portal-links .grid__item,
#page-wrapper.employee-portal .employee-portal-links .section-grid__item,
#page-wrapper.employee-portal .employee-portal-links .figure-image {
    height: auto;
}

/* Masonry(Grid) を壊さず、見出しの高さだけを揃えて“揃って見える”を作る */
#page-wrapper.employee-portal .employee-portal-links .figure-image__caption {
    margin-top: 14px;
}

#page-wrapper.employee-portal .employee-portal-links .figure-image__wrapper-caption {
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#page-wrapper.employee-portal .employee-portal-links .figure-image__wrapper-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* フォーム（スタッフ登録）をフラットに見せる */
#page-wrapper.employee-portal .post__content .card {
    border-radius: 0 !important;
    border: 1px solid rgba(38, 38, 38, 0.08) !important;
    background: transparent !important;
}

#page-wrapper.employee-portal .post__content .card [style*="background-color: #f8f8f8"],
#page-wrapper.employee-portal .post__content .card [style*="background-color:#f8f8f8"] {
    background: transparent !important;
}

/* フォーム（スタッフ登録）：ボタンは「枠線のみ」（<button> のデフォルト背景色を消す） */
#page-wrapper.employee-portal .post__content button.button {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

/* Firefox の inner padding をリセット */
#page-wrapper.employee-portal .post__content button.button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* フォーム（スタッフ登録）：type="date" はブラウザ表示（年/月/日）とラベルが重なるため、常にラベルを上に退避 */
#page-wrapper.employee-portal .post__content .input-float__input[type="date"] + .input-float__label {
    transform: scale(0.8571) translateY(-1.75rem);
}

/* サイトマップ（2段組リンク） */
.sitemap__card {
    padding: 1.25rem 1.25rem;
    border: 1px solid rgba(38, 38, 38, 0.08);
    background: transparent;
    height: 100%;
}

.sitemap__links {
    display: grid;
    gap: 0.6rem;
}

.sitemap__link {
    position: relative;
    display: block;
    color: rgba(38, 38, 38, 0.92);
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(38, 38, 38, 0.08);
}

.sitemap__link:hover {
    color: rgba(38, 38, 38, 1);
    text-decoration: none;
}

.sitemap__link::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 0.25rem;
    opacity: 0.55;
}

/* News/Blog サイドバー検索：大きなボタンを使わず、軽い導線にする */
.sidebar .widget_search .sidebar-search__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.65em;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(38, 38, 38, 0.92);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: none;
    cursor: pointer;
}

.sidebar .widget_search .sidebar-search__submit::after {
    content: "→";
    opacity: 0.65;
}

.sidebar .widget_search .sidebar-search__submit:hover {
    opacity: 0.75;
}

/* ヒーローセクションのテキストスタイル */
.hero-title {
    color: #000000 !important;
    font-size: 3.5rem !important;
}

.hero-subtitle-main {
    color: #000000 !important;
    font-size: 1.8rem !important;
}

.hero-subtitle-sub {
    color: #333333 !important;
    font-size: 1.1rem !important;
}

/* ヒーローセクションのThree.js要素スタイル */
.hero-shape-container {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ========================================
   パララックス ステージ背景
   ======================================== */

/* 固定背景レイヤー - ステージが常に後ろに表示される */
.parallax-stage-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background: var(--color-light-1);
}

.parallax-stage-background #hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ヒーローセクション - 透明な窓でステージを見せる */
.parallax-hero-section {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

.parallax-hero-section .parallax-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

/* コンテンツセクション - 不透明背景でステージを隠す */
.parallax-hero-section~section,
.parallax-hero-section~div:not(.parallax-stage-background) {
    position: relative;
    z-index: 2;
    background-color: inherit;
}

/* page-wrapperの背景を調整 */
#page-wrapper {
    position: relative;
    z-index: 2;
    background: transparent;
}

#page-wrapper.bg-light-1 {
    background: transparent !important;
}

#page-wrapper .page-wrapper__content {
    background: transparent;
}

#page-wrapper .page-wrapper__content>section:not(.parallax-hero-section):not(.parallax-section-intro):not(.parallax-section-contact) {
    position: relative;
    z-index: 3;
    background-color: var(--color-light-1);
}

#page-wrapper .page-wrapper__content>div:not(.parallax-section-intro):not(.parallax-section-contact):not(.section) {
    position: relative;
    z-index: 3;
    background-color: var(--color-light-1);
}

/* パララックス窓セクション - スクロール時にステージが見える */
.parallax-peek-section {
    position: relative;
    z-index: 1;
    background: transparent !important;
    overflow: hidden;
}

.parallax-peek-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            rgba(255, 255, 255, 0.3) 70%,
            rgba(255, 255, 255, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.parallax-peek-section>* {
    position: relative;
    z-index: 2;
}

/* ヒーローセクション以降のセクションに背景色を確実に適用 */
#page-wrapper .page-wrapper__content>.section:not(.parallax-hero-section):not(.parallax-section-intro):not(.parallax-section-contact) {
    position: relative;
    z-index: 3;
}

/* bg-light系クラスの背景を確実に不透明に（パララックスセクション以外） */
#page-wrapper .bg-light-1:not(.parallax-hero-section):not(.parallax-section-intro):not(.parallax-section-contact) {
    background-color: var(--color-light-1) !important;
}

#page-wrapper .bg-light-2:not(.parallax-hero-section):not(.parallax-section-intro):not(.parallax-section-contact) {
    background-color: var(--color-light-2) !important;
}

#page-wrapper .bg-light-3:not(.parallax-hero-section):not(.parallax-section-intro):not(.parallax-section-contact) {
    background-color: var(--color-light-3) !important;
}

#page-wrapper .bg-white:not(.parallax-hero-section) {
    background-color: #ffffff !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .parallax-stage-background {
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height for mobile */
    }

    .parallax-hero-section {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle-main {
        font-size: 1.3rem !important;
    }

    .hero-subtitle-sub {
        font-size: 0.9rem !important;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .parallax-stage-background {
        height: 100vh;
    }
}


/* ========================================
   パララックス窓セクション (Introduction & Contact)
   ======================================== */

/* Introduction セクション - 右側に窓 */
.parallax-section-intro {
    position: relative;
    z-index: 2;
    background: transparent !important;
    overflow: visible !important;
}

/* NOTE:
   以前は ::before で「画面左50%」を塗っていたが、セクションの実レイアウトとズレると
   右側カラム（窓）まで覆ってしまい“細い縦スリット”になる。
   → 背景は“左カラムそのもの”に付けて、窓側は確実に透明にする。 */
.parallax-section-intro::before {
    display: none;
}

/* Contact セクション - 左側に窓 */
.parallax-section-contact {
    position: relative;
    z-index: 2;
    background: transparent !important;
    overflow: visible !important;
}

.parallax-section-contact::before {
    display: none;
}

/* Desktop: カラム背景（Intro左/Contact右） */
@media (min-width: 992px) {
    .parallax-section-intro .row > .col-lg-6:first-child {
        background-color: var(--color-light-1, #f8f9fa);
    }

    .parallax-section-contact .row > .col-lg-6.offset-lg-6 {
    background-color: var(--color-light-2, #f1f1f1);
    }

    /* Intro: 上下の余白を増やして“詰まり感”を解消（棒線を消した分、呼吸を作る） */
    .parallax-section-intro .section-demo__content {
        padding-top: clamp(24px, 3.2vw, 64px);
        padding-bottom: clamp(28px, 3.8vw, 78px);
    }

    /* Contact: 文字背景をIntro同様に（読みやすさ優先・フラット） */
    .parallax-section-contact .section-demo__content {
        background: var(--color-light-2, #f1f1f1);
        padding-left: clamp(18px, 2.6vw, 34px);
        padding-right: clamp(18px, 2.6vw, 34px);
        border-radius: 0;
        box-shadow: none;
    }
}

/* パララックス窓フレーム */
.parallax-window-frame {
    position: relative;
    width: 100%;
    min-height: 450px;
    border-radius: 16px;
    overflow: visible;
    border: 3px solid rgba(51, 51, 51, 0.15);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.05);
    background: transparent;
}

.parallax-window-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.parallax-window-label {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact用パララックス窓 */
.parallax-window-contact {
    background: transparent !important;
    position: relative;
}

.parallax-window-contact .parallax-window-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* セクション内のコンテンツ背景 */
.parallax-section-intro .section-demo__content,
.parallax-section-contact .section-demo__content {
    position: relative;
    z-index: 2;
    /* background は各ブレイクポイント/セクション側で制御する（ここで透明固定すると上書きしてしまう） */
}

.parallax-section-intro .section-demo,
.parallax-section-contact .section-demo {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* 内部コンテナも透明に */
.parallax-section-intro .container-fluid,
.parallax-section-contact .container-fluid,
.parallax-section-intro .row,
.parallax-section-contact .row {
    background: transparent !important;
}

/* 窓側のカラム（右側/左側）を透明に */
.parallax-section-intro .col-lg-6:last-child,
.parallax-section-contact .col-lg-6:first-child {
    background: transparent !important;
}

/* 背景装飾を透明に */
.parallax-section-intro .section-demo__bg,
.parallax-section-contact .section-demo__bg {
    background: transparent !important;
}

/* 窓フレームの位置調整 */
.parallax-section-intro .parallax-window-frame,
.parallax-section-contact .parallax-window-contact {
    position: relative;
    z-index: 1;
}

/* モバイル・タブレット対応 */
@media (max-width: 991px) {

    .parallax-section-intro,
    .parallax-section-contact {
        /* モバイルでも“窓”からステージを見せるため、セクション自体は透明にする */
        background: transparent !important;
    }

    .parallax-section-intro::before,
    .parallax-section-contact::before {
        display: none;
    }

    /* モバイルは「浮いて見える」演出をやめ、フラットに可読性だけ確保 */
    .parallax-section-intro .section-demo__content,
    .parallax-section-contact .section-demo__content {
        background: rgba(248, 249, 250, 0.92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        padding: clamp(18px, 4.2vw, 28px);
        box-shadow: none;
    }

    .parallax-section-contact .section-demo__content {
        background: rgba(241, 241, 241, 0.92);
    }

    .parallax-window-frame {
        min-height: 300px;
        margin-top: 30px;
        background: transparent;
        /* 枠で囲わず自然に見せる */
        border: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .parallax-window-contact {
        /* Contactもモバイルで表示（main.css側でposition:relative化される） */
        display: block;
        min-height: 300px;
        margin-top: 30px;
        border-radius: 0;
        overflow: visible;
        border: none;
        box-shadow: none;
        background: transparent !important;
    }

    /* モバイルでは窓内ラベル（ボタンっぽく見える）を表示しない */
    .parallax-window-label {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .parallax-window-frame,
    .parallax-window-contact {
        min-height: 250px;
    }
}

/* ========================================
   About Us（/about/）: 余白とモバイル画像サイズ調整
   ======================================== */

/* Aboutページだけ、各セクション下部の“呼吸”を増やす */
.about-page .page-wrapper__content > section.section:not(.section-masthead) {
    padding-top: clamp(32px, 5vw, 120px);
    padding-bottom: clamp(28px, 4vw, 92px);
}

/* Aboutページ：タブレット以下でもイラストが大きすぎる問題を抑える */
@media (max-width: 991.98px) {
    .about-page .section-about .section-image.section_h-800 {
        height: clamp(280px, 42vh, 520px);
        max-height: none;
    }

    .about-page .section-content__image {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 正方形イラスト等で .lazy の padding-bottom(=100%) が効くと画面を埋めがち。
       Aboutページのタブレット以下は、画像セクションの高さを上限付きで固定して破綻を防ぐ。 */
    .about-page .section-content__image .lazy {
        padding-bottom: 0 !important;
        height: clamp(240px, 36vh, 420px);
    }
}

/* Aboutページ：モバイルでイラストが大きすぎる問題を抑える */
@media (max-width: 767.98px) {
    /* イラストの“余白(フレーム)”を増やして、見た目のサイズ感を抑える */
    .about-page {
        --illus-frame-pad: clamp(16px, 6.2vw, 34px);
        --illus-frame-pad-lg: clamp(18px, 7.2vw, 40px);
    }

    /* 1枚目（高さ固定800）だけは、モバイルで高さを抑える */
    .about-page .section-about .section-image.section_h-800 {
        height: clamp(240px, 38vh, 380px);
        max-height: none;
    }

    /* 画像カラムを少しだけ“詰めて”見せる（フル幅すぎを回避） */
    .about-page .section-content__image {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 正方形イラスト等で .lazy の padding-bottom(=100%) が効くと画面を埋めがち。
       Aboutページのモバイルだけ、画像セクションの高さを上限付きで固定して破綻を防ぐ。 */
    .about-page .section-content__image .lazy {
        padding-bottom: 0 !important;
        height: clamp(200px, 32vh, 320px);
    }
}

/* ========================================
   Services / Business（事業内容・配下）: 画像サイズと見え方を最適化
   ======================================== */

/* /services/ スライダー：4カードの高さを揃える（デスクトップ） */
@media (min-width: 992px) {
    #page-wrapper.services-page .slider-services .figure-service {
        height: clamp(560px, 62vh, 720px);
    }

    #page-wrapper.services-page .slider-services .figure-service .row {
        height: 100%;
    }

    #page-wrapper.services-page .slider-services .figure-service .col-lg-5 {
        height: 100%;
    }

    #page-wrapper.services-page .slider-services .figure-service__content {
        justify-content: space-between;
    }
}

/* Business配下の見出し画像・挿絵は「全体が見える」方が情報として分かりやすい */
@media (min-width: 992px) {
    /* デスクトップは高さを抑えて、コンテンツが先に進むリズムにする */
    #page-wrapper.business-page .section-image.section_h-900 {
        height: clamp(520px, 58vh, 720px);
        max-height: none;
    }

    #page-wrapper.business-page .section-image.section_h-800 {
        height: clamp(460px, 52vh, 660px);
        max-height: none;
    }
}

@media (max-width: 991.98px) {
    #page-wrapper.business-page .lazy-bg {
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: transparent;
    }

    #page-wrapper.business-page .section-image.section_h-900 {
        height: clamp(320px, 48vh, 560px);
        max-height: none;
    }

    #page-wrapper.business-page .section-image.section_h-800 {
        height: clamp(280px, 42vh, 520px);
        max-height: none;
    }

    /* “余白”が出たときの見た目を整える（白背景のイラスト向け） */
    #page-wrapper.business-page .section-image__wrapper {
        background: var(--color-light-1);
    }
}

@media (max-width: 767.98px) {
    /* servicesスライダーのイラストも、モバイルでは切らずに見せる */
    #page-wrapper.services-page .slider-services .slider__bg {
        background-size: contain;
        background-color: #ffffff;
    }

    #page-wrapper.business-page .section-image.section_h-900 {
        height: clamp(280px, 42vh, 480px);
    }

    #page-wrapper.business-page .section-image.section_h-800 {
        height: clamp(240px, 38vh, 440px);
    }
}

/* ========================================
   Contact CTA（共通）：文章を追加した時の見た目
   ======================================== */
.section-cta__lead {
    margin-top: 12px;
    margin-bottom: 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

@media (max-width: 991.98px) {
    .section-cta__lead {
        margin-bottom: 18px;
    }
}