/* Fix for swiper slides height consistency */
:root {
    color-scheme: light;

    --pc-site-canvas: #eeece6;
    --pc-canvas: #f7f7f4;
    --pc-surface: #f2f1ed;
    --pc-elevated: #fbf9f6;
    --pc-nested: #e6e5e0;
    --pc-hairline: #d8d3ca;
    --pc-ink: #262626;
    --pc-deep: #111111;
    --pc-muted: #5e5a55;
    --pc-quiet: #8b857d;
    --pc-action-outline: #f39800;
    --pc-action-hover: #c08532;
    --pc-logo-green: #13ae67;
    --pc-logo-cyan: #2ea7e0;
    --pc-logo-magenta: #e61673;
    --pc-logo-amber: #f39800;
    --pc-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
    --pc-font-display: "Cinzel", Georgia, "Times New Roman", serif;
    --pc-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --pc-width-page: 1300px;
    --pc-width-reading: 68ch;
    --pc-space-element: 8px;
    --pc-space-card: 12px;
    --pc-space-group: 16px;
    --pc-space-section: 43px;
    --pc-space-section-lg: 67px;
    --pc-radius-default: 4px;
    --pc-radius-panel: 8px;
    --pc-radius-stage: 16px;
    --pc-shadow-subtle:
        0 0 0 1px rgb(38 37 16 / 10%),
        0 18px 36px -18px rgb(0 0 0 / 18%);
}

#js-preloader.preloader,
.preloader {
    position: fixed;
    inset: 0;
    background: #111111 !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    isolation: isolate;
}

#js-preloader::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #111111;
    pointer-events: none;
}

.preloader__content {
    color: #f7f7f4;
}

#js-preloader .preloader__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#js-preloader .preloader__heading,
#js-preloader .pc-loader-line {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pc-loader-meta,
.pc-loader-line,
.preloader__counter {
    font-family: var(--pc-font-mono);
    letter-spacing: 0;
}

.pc-loader-word {
    display: inline-block;
    min-width: 9ch;
    font-family: var(--pc-font-display);
    font-weight: 400 !important;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pc-loader-word.is-scrambling,
.pc-loader-line.is-scrambling {
    text-shadow:
        0 0 12px rgba(46, 167, 224, 0.30),
        0 0 28px rgba(243, 152, 0, 0.22);
}

.pc-loader-line {
    color: rgba(247, 247, 244, 0.78);
    text-transform: none;
}

#js-spinner.spinner {
    display: none !important;
}

.pc-transition-loader {
    position: fixed;
    left: calc(clamp(18px, 3vw, 44px) + env(safe-area-inset-left));
    bottom: calc(clamp(18px, 4vh, 44px) + env(safe-area-inset-bottom));
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    max-width: calc(100vw - 36px);
    padding: 13px 15px 14px;
    border-radius: var(--pc-radius-default);
    background: rgba(17, 17, 17, 0.94);
    color: #f7f7f4;
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 8px, 0);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    pointer-events: none;
}

html.pc-is-transitioning .pc-transition-loader {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.pc-transition-loader__meta,
.pc-transition-loader__line {
    font-family: var(--pc-font-mono);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
}

.pc-transition-loader__meta {
    color: rgba(247, 247, 244, 0.78);
}

.pc-transition-loader__word {
    display: inline-block;
    min-width: 9ch;
    font-family: var(--pc-font-display);
    max-width: calc(100vw - 36px);
    font-size: clamp(24px, 3.2vw, 42px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pc-transition-loader__line {
    color: rgba(247, 247, 244, 0.66);
    text-transform: none;
}

.pc-transition-loader__word.is-scrambling,
.pc-transition-loader__line.is-scrambling {
    text-shadow:
        0 0 12px rgba(46, 167, 224, 0.28),
        0 0 28px rgba(243, 152, 0, 0.20);
}

.pc-dev-backlink {
    position: absolute;
    right: clamp(18px, 3vw, 40px);
    bottom: clamp(18px, 4vh, 44px);
    z-index: 20;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(216, 211, 202, 0.78);
    border-radius: var(--pc-radius-default);
    background: rgba(251, 249, 246, 0.72);
    color: var(--pc-ink);
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pc-dev-backlink:hover {
    color: var(--pc-deep);
    border-color: var(--pc-action-outline);
    text-decoration: none;
}

.pc-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pc-radius-default);
    border: 1px solid var(--pc-hairline);
    padding: 0 16px;
    color: var(--pc-ink);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
}

.pc-button:hover {
    color: var(--pc-deep);
    text-decoration: none;
}

.pc-button:focus-visible,
.pc-wordmark:focus-visible {
    outline: 2px solid var(--pc-action-outline);
    outline-offset: 3px;
}

.pc-button-primary {
    border-color: var(--pc-action-outline);
}

.pc-button-primary:hover {
    border-color: var(--pc-action-hover);
    background: rgba(243, 152, 0, 0.08);
}

.pc-button-secondary:hover {
    border-color: var(--pc-muted);
    background: rgba(38, 38, 38, 0.04);
}

.pc-site-header {
    top: 26px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: var(--pc-ink);
    background: transparent !important;
    padding-right: clamp(16px, 3vw, 34px);
    padding-left: clamp(16px, 3vw, 34px);
    pointer-events: none;
}

.pc-site-header .header__container {
    width: min(100%, 1540px);
    margin: 0 auto;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--pc-radius-default);
    background: rgba(251, 249, 246, 0.30);
    box-shadow: 0 16px 36px -30px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.pc-site-header .row {
    min-height: 40px;
}

.pc-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.pc-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pc-deep);
    text-decoration: none;
}

.pc-wordmark:hover {
    color: var(--pc-deep);
    text-decoration: none;
}

.pc-wordmark__mark {
    width: 40px;
    height: 32px;
    object-fit: contain;
    flex: 0 0 auto;
}

.pc-wordmark__text {
    display: block;
    color: currentColor;
    font-family: var(--pc-font-ui);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pc-header-actions .header__burger {
    display: block !important;
}

.pc-site-header .header__burger {
    margin: 0;
}

.pc-site-header .header__burger-line,
.header[data-arts-theme-text=dark] .header__burger-line {
    background-color: var(--pc-ink);
}

.pc-site-header.opened .header__burger-line {
    background-color: #fff;
}

.pc-site-header.opened .header__container {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.pc-site-header.opened .pc-wordmark {
    color: #fff;
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 767.98px) {
    .pc-site-header .header__container {
        padding: 9px 12px;
    }

    .pc-wordmark__mark {
        width: 30px;
        height: 24px;
    }

    .pc-wordmark__text {
        font-size: 20px;
    }
}

#page-wrapper .page-wrapper__content > .section-masthead:not(.parallax-hero-section) {
    padding-top: clamp(112px, 14vh, 156px) !important;
    padding-bottom: clamp(48px, 7vh, 76px) !important;
}

#page-wrapper .page-wrapper__content > .section-masthead:not(.parallax-hero-section) .section-masthead__heading h1 {
    max-width: min(100%, 980px);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(40px, 5.1vw, 72px);
    line-height: 1.14;
    letter-spacing: 0;
    color: var(--pc-ink);
}

#page-wrapper .page-wrapper__content > .section-masthead:not(.parallax-hero-section) .section-masthead__text {
    max-width: var(--pc-width-reading);
    margin-left: auto;
    margin-right: auto;
    color: var(--pc-ink);
}

@media (max-width: 767.98px) {
    #page-wrapper .page-wrapper__content > .section-masthead:not(.parallax-hero-section) {
        padding-top: 104px !important;
        padding-bottom: 42px !important;
    }

    #page-wrapper .page-wrapper__content > .section-masthead:not(.parallax-hero-section) .section-masthead__heading h1 {
        font-size: clamp(34px, 10vw, 48px);
    }
}

.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(8px, 1.8vw, 18px) 0 clamp(6px, 1.4vw, 14px);
}

.contact-page-illustration__inner {
    max-width: min(360px, 72vw);
    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;
}

/* ========================================
   Staff Guide: トーン統一 / カード整形
   ======================================== */

#page-wrapper.employee-portal {
    color: rgba(38, 38, 38, 1);
    /* スタッフ向けページは温度感を残しつつ主張しすぎないトーンにする */
    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;
}

/* 見出し / カード内の太さを揃える */
#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-family: var(--pc-font-display);
    font-size: 3.35rem !important;
    font-weight: 400 !important;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

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

/* ヒーロー：コピー本体は面を持たせず、文字だけを薄いレイヤーで支える */
.parallax-hero-section .hero-copy {
    position: absolute;
    left: calc(clamp(20px, 7vw, 96px) + env(safe-area-inset-left));
    top: calc(260px + env(safe-area-inset-top));
    z-index: 12;
    width: min(690px, calc(100vw - 48px));
    max-width: none;
    box-sizing: border-box;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: left;
    pointer-events: auto;
    isolation: isolate;
}

.parallax-hero-section .hero-copy::before {
    display: none;
}

.hero-copy-text {
    position: relative;
    z-index: 1;
    display: block;
    width: min(505px, 100%);
    box-sizing: border-box;
    padding: 20px 22px 22px;
    border-radius: var(--pc-radius-default);
    background:
        linear-gradient(
            112deg,
            rgba(251, 249, 246, 0.72) 0%,
            rgba(251, 249, 246, 0.48) 64%,
            rgba(251, 249, 246, 0.12) 100%
        );
    box-shadow:
        0 18px 46px -34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* ヒーロー：ステージ背景をそのまま見せるため、文字領域の面は持たせない */
.hero-copy-text::before {
    display: none;
}

.parallax-hero-section .hero-copy > * {
    position: relative;
    z-index: 1;
}

/* Copyの可読性：背景を塗らずに、最低限のシャドウだけ */
.parallax-hero-section .hero-title,
.parallax-hero-section .hero-subtitle-main,
.parallax-hero-section .hero-subtitle-sub {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 18px;
}

.hero-actions .pc-button {
    position: relative;
    min-width: 154px;
    min-height: 46px;
    gap: 12px;
    overflow: hidden;
    border-color: rgba(216, 211, 202, 0.88);
    padding: 0 18px 0 20px;
    background: rgba(251, 249, 246, 0.82);
    box-shadow:
        0 18px 42px -30px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        background-color 0.24s ease,
        color 0.24s ease,
        box-shadow 0.24s ease;
}

.hero-actions .pc-button-primary {
    border-color: rgba(243, 152, 0, 0.82);
    background: rgba(243, 152, 0, 0.68);
    color: var(--pc-deep);
    box-shadow:
        0 22px 46px -30px rgba(96, 58, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero-actions .pc-button:hover {
    transform: translateY(-1px);
}

.hero-actions .pc-button-primary:hover {
    border-color: var(--pc-action-hover);
    background: rgba(243, 152, 0, 0.80);
    color: var(--pc-deep);
}

.hero-actions .pc-button-secondary:hover {
    border-color: rgba(243, 152, 0, 0.70);
    background: rgba(251, 249, 246, 0.92);
}

.pc-button-label {
    position: relative;
    z-index: 1;
}

.pc-button-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.78;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.pc-button-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.hero-actions .pc-button-primary .pc-button-arrow {
    color: var(--pc-deep);
    opacity: 1;
}

.hero-actions .pc-button:hover .pc-button-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.hero-service-tags {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    max-width: min(680px, 100%);
    margin-top: 12px;
}

.hero-service-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(216, 211, 202, 0.78);
    border-radius: var(--pc-radius-default);
    background: rgba(251, 249, 246, 0.70);
    color: var(--pc-ink);
    box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
}

.pc-trust-strip {
    margin-top: 0;
    padding: var(--pc-space-section) 0;
    border: 0;
    background: var(--color-light-1) !important;
}

#page-wrapper .pc-trust-strip,
#page-wrapper .pc-trust-strip.bg-light-1 {
    position: relative;
    z-index: 3;
    background: var(--color-light-1) !important;
    background-color: var(--color-light-1) !important;
}

.pc-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 28px);
    max-width: 1000px;
    margin-inline: auto;
}

.pc-trust-item {
    position: relative;
    min-height: 150px;
    padding: 18px;
    border: 0;
    border-radius: var(--pc-radius-default);
    background: rgba(251, 249, 246, 0.92);
    box-shadow: 0 18px 34px -28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    text-align: left;
}

.pc-trust-item:nth-child(3),
.pc-trust-item:nth-child(4) {
    margin-top: 0;
    transform: none;
    z-index: 2;
}

.pc-trust-kicker {
    display: block;
    margin-bottom: 18px;
    color: var(--pc-logo-amber);
    font-family: var(--pc-font-mono);
    font-size: 12px;
    line-height: 1;
}

.pc-trust-item strong {
    display: block;
    color: var(--pc-ink);
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
}

.pc-trust-item p {
    margin: 10px 0 0;
    color: var(--pc-muted);
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 991.98px) {
    .pc-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pc-trust-item:nth-child(3),
    .pc-trust-item:nth-child(4) {
        margin-top: 0;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .hero-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 16px;
    }

    .hero-actions .pc-button {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .hero-service-tags {
        gap: 6px;
        margin-top: 10px;
    }

    .hero-service-tags span {
        min-height: 24px;
        padding: 0 8px;
        font-size: 11px;
    }

    .pc-trust-strip {
        margin-top: 0;
        padding: 42px 0;
    }

    .pc-trust-grid {
        grid-template-columns: 1fr;
    }

    .pc-trust-item {
        min-height: auto;
    }

    .pc-trust-item:nth-child(3),
    .pc-trust-item:nth-child(4) {
        margin-top: 0;
        transform: none;
    }
}

/* モバイル：右下に小さく配置 */
@media (max-width: 575.98px) {
    .parallax-hero-section .hero-copy {
        left: calc(16px + env(safe-area-inset-left));
        top: calc(188px + env(safe-area-inset-top));
        width: min(340px, calc(100vw - 32px));
        max-width: none;
        padding: 0;
        text-align: left;
    }

    .hero-copy-text {
        width: min(306px, 100%);
        padding: 14px 14px 16px;
        background:
            linear-gradient(
                112deg,
                rgba(251, 249, 246, 0.78) 0%,
                rgba(251, 249, 246, 0.56) 66%,
                rgba(251, 249, 246, 0.22) 100%
            );
    }

    .hero-copy-text::before {
        inset: -16px -14px -14px -14px;
        filter: blur(14px);
        opacity: 0.80;
    }

    .parallax-hero-section .hero-copy::before {
        inset: -20px -18px -18px -18px;
        filter: blur(8px);
        opacity: 1;
    }

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

    .hero-subtitle-main {
        font-size: 0.9rem !important;
        line-height: 1.25;
    }

    .hero-subtitle-sub {
        font-size: 0.72rem !important;
        line-height: 1.25;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 575.98px) {
        .parallax-hero-section .hero-copy {
            top: calc(186px + env(safe-area-inset-top));
        }
    }
}

/* ヒーロー：スマホだけ任意位置で改行したい時に使う */
br.u-br-mobile {
    display: none;
}

@media (max-width: 575.98px) {
    br.u-br-mobile {
        display: inline;
    }
}

/* ヒーロー：できるだけ行のバランスを整える（対応ブラウザのみ適用） */
.hero-subtitle-main span,
.hero-subtitle-sub span {
    text-wrap: balance;
}

/* スマホ横：高さが足りず「文字×スクロール矢印」が被りやすいので、文字を少し詰めて矢印は隠す */
@media (max-height: 460px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-subtitle-main {
        font-size: 1.05rem !important;
        line-height: 1.25;
    }

    .hero-subtitle-sub {
        font-size: 0.82rem !important;
        line-height: 1.25;
    }

    .parallax-hero-section .hero-copy {
        right: calc(clamp(12px, 3vw, 24px) + env(safe-area-inset-right));
        bottom: calc(clamp(14px, 3.5vh, 26px) + env(safe-area-inset-bottom));
        max-width: min(560px, 94vw);
    }
}

/* ヒーローセクションの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;
    min-height: 78vh !important;
}

.parallax-hero-section.section-fullheight,
.parallax-hero-section .section-fullheight__inner {
    min-height: 78vh !important;
}

.parallax-hero-section::after {
    display: none;
}

.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):not(.parallax-peek-section):not(.pc-trust-strip) {
    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 {
    /* Our Business ↔ Tech Blog 間は「背景なし」でステージをそのまま見せる */
    display: 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):not(.parallax-peek-section):not(.pc-trust-strip) {
    position: relative;
    z-index: 3;
}

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

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

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

#page-wrapper .page-wrapper__content > .pc-trust-strip {
    background: var(--color-light-1) !important;
    background-color: var(--color-light-1) !important;
}

/* Our Business → Tech Blog 間の“覗き込み”窓（横長で見せる） */
.parallax-peek-section .parallax-window-frame {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    min-height: clamp(280px, 55vh, 560px);
}

#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: 78vh !important;
        min-height: 78dvh !important;
    }

    .parallax-hero-section.section-fullheight,
    .parallax-hero-section .section-fullheight__inner {
        min-height: 78vh !important;
        min-height: 78dvh !important;
    }

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

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

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

@media (max-width: 575.98px) {
    .parallax-hero-section .hero-copy {
        top: calc(188px + env(safe-area-inset-top));
        width: min(340px, calc(100vw - 32px));
        max-width: none;
    }

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

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

    .hero-subtitle-sub {
        font-size: 0.76rem !important;
        line-height: 1.35;
    }
}

/* タブレット対応 */
@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:
            clamp(48px, 4.8vw, 86px)
            clamp(40px, 5.2vw, 88px)
            clamp(50px, 4.8vw, 86px);
    }

    /* 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(28px, 6vw, 42px) clamp(22px, 5.4vw, 34px);
        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;
    }
}

/* ========================================
   Error pages (401/403/404/500/503): 丸い枠線（.section__circle）を非表示
   NOTE: main.css で .section__circle に border が定義されているため、エラーページだけ上書きする
   ======================================== */
.section-404 .section__circle {
    display: none !important;
}
