@charset "UTF-8";

/* フロント用CSS */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&family=Noto+Sans+JP:wght@500&family=Hina+Mincho&display=swap');

/* Link
------------------------------- */
a {
    transition: color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}
a:link, a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
    opacity: 0.7; /* 色を薄くする */
  filter: brightness(1.2); /* 少し明るくする */
}

/* 見出し（h1〜h6）と段落（p）内の a のみにホバーエフェクトを適用 */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, p a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #333;
  padding: 5px 0;
  transition: color 0.3s ease;
}

h1 a::after, h2 a::after, h3 a::after, h4 a::after, h5 a::after, h6 a::after, p a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #333;
  transition: width 0.3s ease, left 0.3s ease;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, p a:hover {
  color: #666;
}

h1 a:hover::after, h2 a:hover::after, h3 a:hover::after, h4 a:hover::after, h5 a:hover::after, h6 a:hover::after, p a:hover::after {
  width: 100%;
  left: 0;
}


/* Default
------------------------------- */
body {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

#body_wrap {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 30px); /* パンくず 30px */
}

.l-content {
	flex-grow: 1;
}

.l-footer {
	flex-shrink: 0;
}


#breadcrumb {
	width: 100%;
}

#breadcrumb .p-breadcrumb__list {
	margin-left: 0 !important;
	margin-right: auto !important;
	align-self: flex-start !important;
	justify-content: flex-start !important;
	text-align: left !important;
}




.l-content { /* コンテンツ下のマージン不要 */
    margin-bottom: 0 !important;
}

@media screen and (max-width: 767px) {
  .l-container { /* PC以下でpaddingが入るのを防ぐ */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


h2 {
    font-size: 1.6rem !important;
}
h3 {
    font-size: 1.2rem !important;
}
.post_content h2,
.post_content h3,
.post_content h4 {
    font-weight: 500 !important;
} 
p {
    line-height: 1.8;
}
.w-80 { /* ブロックの幅設定 */
  width: 80%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.none {
    display: none;
}




/* Global Nav
------------------------------- */
#header .c-smallNavTitle,
#fix_header .c-smallNavTitle { /* 説明文を非表示 */
    display: none !important;
}

@media (width < 600px) {
    #header {
        padding: 0.4rem 1rem;
    }
}

/* HOME
------------------------------- */
.top #content { /* 上の余白削除 */
    padding-top: 0 !important;
    margin-top: 0 !important;
}
#hero-section {
    min-height: 100vh !important;
    font-family: "Shippori Mincho B1", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 0 !important;
}
#hero-section h2 {
    font-size: 3rem !important;
}
#hero-section h3 {
    font-size: 1.4rem !important;
}
#hero-section p {
    font-size: 1.2rem !important;
}
@media (width < 600px) { /* SP */
    #hero-section h2 {
        font-size: 1.8rem !important; /* 縮小 */
        margin-bottom: 0.8rem !important;
    }
    #hero-section h3 {
        font-size: 1.1rem !important; /* 縮小 */
        margin-bottom: 1.5rem !important;
    }
    #hero-section p {
        font-size: 0.9rem !important; /* 縮小 */
        line-height: 1.8 !important; /* 行間を広げて窮屈さを解消 */
        margin-bottom: 1.2rem !important;
    }
    .de-hero-slider__content {
        padding: 1.2rem !important; /* 左右の余白を少し詰めてテキスト幅を確保 */
    }
}

/* Hero Slider
------------------------------- */
.de-hero-slider {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* 背景スライド */
.de-hero-slider__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.de-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.de-hero-slide.is-active {
    opacity: 1;
}

/* オーバーレイ（テキスト可読性確保） */
.de-hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* テキストエリア */
.de-hero-slider__content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #fff;
    text-align: center;
}

/* ナンバリングボタン */
.de-hero-slider__nav {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}
.de-hero-slider__btn {
    width: 2.8rem;
    height: 2.8rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-radius: 2px;
}
.de-hero-slider__btn.is-active,
.de-hero-slider__btn:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #333;
}

@media (width < 600px) {
    .de-hero-slider__nav {
        bottom: 1.5rem;
        right: 50%;
        transform: translateX(50%);
    }
    .de-hero-slider__btn {
        width: 2.2rem !important;
        height: 2.2rem !important;
        font-size: 0.85rem !important;
    }
}

#concept-section {
    padding: 6rem 0;
    margin: 0 !important;
}

#service-section {
    background: #e5e5e5;
    padding: 6rem 0;
    margin-bottom: 3rem;
}
.service-item {
    gap: 80px !important;
    margin-bottom: 6rem !important;
}
.service-image {
    width: 100%;
}
.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-content .wp-block-buttons {
    margin-top: 2rem;
}
.service-content .wp-block-button {
    font-size: 1rem !important;
}

@media (width < 600px) { /* SP */
    #concept-section {
        padding: 3rem 0;
    }
    #service-section {
        padding: 2rem 1rem;
        margin: 2rem auto !important;
    }
}

#updates-section {
    padding: 0 1rem;
}


#contact-section {
    background: #e5e5e5;
    padding: 0 0 6rem;
    margin-bottom: 0 !important;
}

/* 「かっこボックス」全体を中央配置に */
.wp-block-group.is-style-kakko_box {
  max-width: 500px; /* 任意。500〜700pxあたりが視認性よい */
  margin-left: auto;
  margin-right: auto;
}

/* リストのテキストは左揃えのまま */
.wp-block-list.is-style-check_list {
  text-align: left;
}



@media (width < 600px) {
  .reverse-on-mobile {
    flex-direction: column-reverse !important;
  }
  #service-section {
      margin-bottom: 6rem !important;
  }
  #service-section .wp-block-columns {
      gap: 1.5rem !important;
  }
  #service-section h3 {
      margin-bottom: 1rem;
  }
  .wp-block-group.is-style-kakko_box {
      width: 90%;
    }
}





/* 下層
------------------------------- */
.l-content.l-container {
    padding-top: 0;
}
.l-mainContent__inner>.post_content {
    margin-top: 0;
}

.c-pageTitle {
    display: none;
}

.de-signature {
    text-align: right;
    margin-bottom: 0 !important;
    line-height: 1;
}
.de-signature__company {
    font-family: "Shippori Mincho B1", serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.6em;
}
.de-signature__title {
    font-family: "Shippori Mincho B1", serif;
    font-size: 0.95rem;
    margin-right: 0.5em;
}
.de-signature__name {
    font-family: "Hina Mincho", serif;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
}

.works-section { /* 代表挨拶セクション */
    background: #e5e5e5;
    padding: 0 0 4rem !important;
    font-family: "Shippori Mincho B1", serif;
}


/* 各サポート事業 */
/* index */
.column-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.column-box > * {
    padding: 1rem 0;
}
.column-box h3 {
    text-align: center !important;
}

.column-content {
  flex: 1;
}

.column-button {
  margin-top: auto;
}

/*
.wp-block-columns {
  gap: 6rem !important;
}
*/



/* 下層 */
.section-header {
    min-height: 250px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-service {
    margin: 5rem auto;
}

.section-service-item {
    margin-bottom: 5rem;
}



.section-service h3 {
    margin: 3rem 0 1rem !important;
}
.section-service ul {
    margin-bottom: 2rem;
}
.section-service li {
    margin-bottom: 0.8rem;
}



/* 会社案内
-------------------------------- */
#company-concept-section {
    min-height: 50vh !important;
    font-family: "Shippori Mincho B1", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 6rem;
}
#company-concept-section h2 {
    font-size: 3rem !important;
}
#company-concept-section p {
    font-size: 1.1rem !important;
}

@media (width < 600px) { /* SP */
    #company-concept-section h2 {
    font-size: 2.4rem !important;
    }
    #company-concept-section p {
        font-size: 1.1rem !important;
    }
}


/* 代表挨拶以降 */
#company-info-section {
    width: 840px !important;
    margin: 4rem auto;
}

@media (width < 600px) { /* SP */
    #company-info-section {
        width: 100% !important;
        margin: 3rem auto !important;
    }
}


/* 記事関連
-------------------------------- */
.article-list {
    margin-top: 4rem;
}
h2.p-postList__title {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}
.p-termHead,
.p-termHead__desc { /* 投稿カテゴリの説明文削除 */
    display: none;
}

/* 個別記事表示 */
.l-mainContent.l-article {
    padding-top: 0;
}

.l-mainContent.l-article .post_content {
    margin-top: 0;
}

.category-news .l-mainContent {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.category-news .p-termContent {
    margin-top: 0 !important;
}
.single-post .l-content.l-container {
    padding-top: 4rem !important;
}


/* Webフォーム
-------------------------------- */
.contact-section {
    max-width: 600px; /* 任意。500〜700pxあたりが視認性よい */
    margin-left: auto;
    margin-right: auto;
}
@media (width < 600px) {
    .contact-section {
        width: 100%;
    }
}


/* Form */
.input-error {
    border: 2px solid red !important;
    background-color: #fff4f4;
}

.error-message {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}
.wpcf7-response-output {
    display: none !important;
}

.contact-info {
    margin-top: 4rem !important;
}

/* ==============================
   フォーム全体のスタイル
============================== */
.main-block .form-header {
    width: 600px;
    margin: 0 auto;
}

@media (width < 600px) {
    .main-block .form-header {
        width: 100%;
        font-size: 0.9rem;
        text-align: left !important;
    }
}

.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;

}

/* デバッグ用の赤枠（確認が終わったら削除） */
.form-container * {
    /* border: 1px solid #f00; */ /* 確認が終わったらコメントアウト */
}

/* ==============================
   各フォーム項目
============================== */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.form-group.radio {
    border-bottom: 1px solid #ccc;
}

/* ラベル */
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* 必須マークをラベルの後ろに追加 */
.form-group label.required::after {
    content: " ※";
    color: red;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
}
.required-mark {
    color: red;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0;
}

/* ラジオボタン・チェックボックス */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 5px;
}

.form-group input[type="radio"] {
    width: 2rem !important;
}

/* テキスト入力・テキストエリア */
.form-input input,
.form-input textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* テキストエリアの高さ調整 */
.form-input textarea {
    height: 150px;
    resize: vertical;
}

.form-group p {
    margin: 0.5rem;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-submit input[type="submit"] {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 0.5rem 2rem;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 2rem;
}

.form-submit input[type="submit"]:hover {
    background-color: #005bb5;
}

@media (width < 600px) {
    .form-container p {
        text-align: left;
    }
}



/* 🔄 初期状態（フェードイン対応） */
body {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

/* 🔄 ページが表示される時にフェードイン */
body.loaded {
    opacity: 1;
}

/* ページ遷移時のフェードアウト */
body.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

/* 🔄 ローディングスピナー */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

/* フェードアウト（非表示） */
#loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

/* スピナーのデザイン */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* スクロールフェードインの初期状態 */
.fade-in {
    opacity: 0;
    transform: translateY(50px); /* 下から登場 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* スクロールで表示 */
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


/* ロードフェードインの初期状態 */

.fade-in-on-load {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-load.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-100 { transition-delay: 0.1s; }
.fade-delay-300 { transition-delay: 0.3s; }
.fade-delay-500 { transition-delay: 0.5s; }
.fade-delay-700 { transition-delay: 0.7s; }
.fade-delay-1100 { transition-delay: 1.1s; }
.fade-delay-1300 { transition-delay: 1.3s; }
.fade-delay-1500 { transition-delay: 1.5s; }
.fade-delay-1700 { transition-delay: 1.7s; }



/* バグ対応
------------------------------ */
/* iOSパララックスバグ */
@supports (-webkit-touch-callout: none) {
  .wp-block-cover-image.has-parallax,
  .wp-block-cover.has-parallax,
  .wp-block-cover__image-background.has-parallax,
  video.wp-block-cover__video-background.has-parallax {
    background-attachment: scroll !important;
  }
}


/* Section Header（汎用・2パターン）
------------------------------- */
.de-section-header {
    text-align: center;
    padding: 80px 40px 50px;
}
.de-section-header.is-compact {
    padding-top: 40px;

    --de-sh-text:   #1a1f2e;
    --de-sh-label:  #5a7fa8;
    --de-sh-divider: #5a7fa8;
    --de-sh-desc:   #6b7489;
}
.de-section-header.is-dark {
    --de-sh-text:   #e8eaf0;
    --de-sh-label:  #7a9ec4;
    --de-sh-divider: #5a7fa8;
    --de-sh-desc:   #9ba3b5;
}

/* ::before リセット */
.post_content .de-section-header h2::before,
.post_content .de-section-header h3::before,
.de-section-header h2::before,
.de-section-header h3::before {
    content: none !important;
    display: none !important;
}

.post_content .de-section-header h2,
.de-section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 42px) !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em;
    color: var(--de-sh-text) !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
    margin: 0 0 16px !important;
}
.de-section-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--de-sh-label);
    margin-bottom: 16px;
}
.de-section-divider {
    width: 40px;
    height: 1px;
    background: var(--de-sh-divider);
    margin: 0 auto 20px;
}
.de-section-header p {
    font-size: 14px !important;
    color: var(--de-sh-desc);
    max-width: 480px;
    margin: 0 auto;
    letter-spacing: 0.04em;
    line-height: 1.8;
}


/* Service Section
------------------------------- */
.de-service-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #1a1f2e;
    color: #e8eaf0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;

    --de-svc-bg-section-a: #232838;
    --de-svc-bg-section-b: #2a3045;
    --de-svc-text-secondary: #9ba3b5;
    --de-svc-text-muted: #6b7489;
    --de-svc-accent: #5a7fa8;
    --de-svc-accent-light: #7a9ec4;
    --de-svc-border: rgba(255,255,255,0.06);
    --de-svc-img-placeholder: #374058;
}

/* Section Header */
/* 見出しリセット（グローバルCSS・SWELL装飾の上書き対策） */
.de-service-section h2,
.de-service-section h3,
.de-service-section h4 {
    border: none !important;
    border-left: none !important;
    padding: 0 !important;
    background: none !important;
    color: #e8eaf0 !important;
    margin: 0 !important;
}
.de-service-section h2::before,
.de-service-section h3::before,
.de-service-section h4::before {
    content: none !important;
    display: none !important;
}


/* Service Row */
.de-svc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}
.de-svc-row.de-svc-reverse .de-svc-image { order: 2; }
.de-svc-row.de-svc-reverse .de-svc-content { order: 1; }

/* Image Block */
.de-svc-image {
    position: relative;
    overflow: hidden;
    background: var(--de-svc-img-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
}
.de-svc-image .de-svc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--de-svc-text-muted);
    font-size: 13px;
    letter-spacing: 0.05em;
}
.de-svc-image .de-svc-placeholder svg { opacity: 0.3; }
.de-svc-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,31,46,0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Content Block */
.de-svc-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px clamp(40px, 6vw, 80px);
    position: relative;
}
.de-svc-row:nth-child(2) .de-svc-content { background: #2d3548; }
.de-svc-row:nth-child(3) .de-svc-content { background: #313852; }
.de-svc-row:nth-child(4) .de-svc-content { background: #2a3244; }
.de-svc-row:nth-child(5) .de-svc-content { background: #34394d; }

.de-svc-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    font-weight: 300;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: 40px;
    right: 40px;
    line-height: 1;
}
.de-svc-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--de-svc-accent-light);
    margin-bottom: 16px;
    font-weight: 500;
}
.de-svc-content h3 {
    font-size: clamp(22px, 2.5vw, 28px) !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    margin-bottom: 24px !important;
    line-height: 1.5;
}
.de-svc-content p {
    font-size: 14px !important;
    color: var(--de-svc-text-secondary);
    line-height: 2;
    margin-bottom: 32px;
    max-width: 420px;
    letter-spacing: 0.02em;
}
.de-svc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #e8eaf0;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-weight: 400;
    transition: gap 0.3s ease, color 0.3s ease;
    width: fit-content;
}
.de-svc-link:hover {
    gap: 16px;
    color: var(--de-svc-accent-light);
    opacity: 1;
}
.de-svc-link .de-svc-arrow {
    width: 32px;
    height: 1px;
    background: var(--de-svc-accent);
    position: relative;
    transition: width 0.3s ease;
}
.de-svc-link:hover .de-svc-arrow { width: 44px; }
.de-svc-link .de-svc-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--de-svc-accent);
    border-right: 1px solid var(--de-svc-accent);
    transform: rotate(45deg);
}


@media (width < 768px) {
    .de-svc-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .de-svc-row.de-svc-reverse .de-svc-image,
    .de-svc-row.de-svc-reverse .de-svc-content { order: 0; }
    .de-svc-image { min-height: 280px; }
    .de-svc-content { padding: 48px 28px; }
    .de-svc-number { display: none; }
}


/* Business Page
------------------------------- */
.de-biz-header,
.de-biz-section,
.de-biz-cta {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 5rem; /* ヘッダーとコンテンツの間の余白 */
}

@media (width < 768px) {
    .de-biz-header,
    .de-biz-section,
    .de-biz-cta {
        margin-bottom: 3rem; /* SP時は少し詰める */
    }
}

/* Page Header */
.de-biz-header {
    background: #1a1f2e;
    background-size: cover;
    background-position: center;
    padding: 40px 24px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* PC時の高さを固定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (width < 768px) {
    .de-biz-header {
        min-height: 240px; /* SP時の高さを固定 */
        padding: 40px 20px !important;
    }
}
.de-biz-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 40, 0.62);
    pointer-events: none;
}
.de-biz-header h1 {
    font-size: clamp(26px, 3.5vw, 36px) !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em;
    color: #f0f1f4 !important;
    margin-bottom: 24px !important;
    position: relative;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}
.de-biz-header h1::before { content: none !important; display: none !important; }
.de-biz-header .de-biz-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 2;
    letter-spacing: 0.03em;
    position: relative;
}

/* Business Grid */
.de-biz-section {
    background: #f5f5f3;
}
.de-biz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.de-biz-card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background 0.4s ease;
    border-right: 1px solid rgba(26,31,46,0.08);
    border-bottom: 1px solid rgba(26,31,46,0.08);
}
.de-biz-card:nth-child(2n)   { border-right: none; }
.de-biz-card:nth-child(n+3)  { border-bottom: none; }
.de-biz-card:hover           { background: #fafafa; }

/* Card Image */
.de-biz-card__image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #c8ccd6;
    background-size: cover;
    background-position: center;
}
.de-biz-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    color: #8a90a0;
    font-size: 12px;
    letter-spacing: 0.05em;
}
.de-biz-card__placeholder svg { opacity: 0.25; }
.de-biz-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,31,46,0.6) 100%);
    pointer-events: none;
}
.de-biz-card__number {
    position: absolute;
    top: 20px;
    left: 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    z-index: 1;
}
.de-biz-card__label {
    position: absolute;
    bottom: 20px;
    left: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    z-index: 1;
}

/* Card Body */
.de-biz-card__body {
    padding: 32px 28px 36px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.de-biz-card__body h3 {
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    margin-bottom: 16px !important;
    line-height: 1.5;
    color: #1a1f2e !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}
.de-biz-card__body h3::before { content: none !important; display: none !important; }
.de-biz-card__body p {
    font-size: 13.5px !important;
    color: #3a3f4e;
    line-height: 2;
    letter-spacing: 0.02em;
    flex: 1;
    margin-bottom: 28px !important;
}
.de-biz-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.de-biz-card__tags span {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #6b7489;
    background: #f5f5f3;
    padding: 5px 14px;
    font-weight: 400;
}
.de-biz-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #1a1f2e;
    text-decoration: none;
    letter-spacing: 0.08em;
    font-weight: 400;
    transition: gap 0.3s ease, color 0.3s ease;
    width: fit-content;
    margin-top: auto;
}
.de-biz-card__link:hover { gap: 16px; color: #5a7fa8; opacity: 1; }
.de-biz-card__link .de-biz-arrow {
    width: 28px;
    height: 1px;
    background: #5a7fa8;
    position: relative;
    transition: width 0.3s ease;
}
.de-biz-card__link:hover .de-biz-arrow { width: 40px; }
.de-biz-card__link .de-biz-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #5a7fa8;
    border-right: 1px solid #5a7fa8;
    transform: rotate(45deg);
}

/* CTA Banner */
.de-biz-cta__inner {
    background: #1a1f2e;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
}
.de-biz-cta__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(90,127,168,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.de-biz-cta__text { position: relative; }
.de-biz-cta__text h3 {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #f0f1f4 !important;
    letter-spacing: 0.06em;
    margin-bottom: 10px !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}
.de-biz-cta__text h3::before { content: none !important; display: none !important; }
.de-biz-cta__text p {
    font-size: 13.5px !important;
    color: #6b7489;
    letter-spacing: 0.03em;
    margin: 0 !important;
}
.de-biz-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #f0f1f4;
    padding: 14px 32px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.de-biz-cta__btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.35);
    opacity: 1;
}

@media (width < 768px) {
    .de-biz-grid { grid-template-columns: 1fr; }
    .de-biz-card { border-right: none; border-bottom: 1px solid rgba(26,31,46,0.08); }
    .de-biz-card:last-child { border-bottom: none; }
    .de-biz-card__image { height: 220px; }
    .de-biz-header { padding: 60px 24px 56px; }
    .de-biz-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
    }
}


@media (600px <= width < 1200px) {
    /* タブレット用スタイル */
}
@media (1200px <= width) {
    /* デスクトップ用スタイル */
}

/* 🔄 安全策：JS失敗時の真っ白回避 */
body {
    opacity: 1 !important;
}
#loading-spinner {
    display: none !important;
}

/* ============================================================
   📱 SP Menu: Full-Screen Overlay Customization
   ============================================================ */

/* 1. 閉じている時：完全に隠す (display:blockでopacityとvisibilityでアニメーションさせる) */
#sp_menu.p-spMenu.-right,
#sp_menu.p-spMenu.-left,
#sp_menu.p-spMenu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999999 !important;
    
    /* アニメーション：スライドを無効化しフェードインに */
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.5s !important;
    
    background: rgba(45, 53, 72, 0.85) !important; /* 指定色 #2d3548 透過度85% */
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
}

/* 2. 開いている時：全画面ジャック */
html[data-spmenu="opened"] #sp_menu.p-spMenu,
html.is-opened-sp-menu body #sp_menu.p-spMenu,
body.is-opened-sp-menu #sp_menu.p-spMenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 不要なSWELL装飾（背景、影、線）を徹底消去 */
#sp_menu.p-spMenu::before,
#sp_menu.p-spMenu .p-spMenu__inner::before,
#sp_menu.p-spMenu .p-spMenu__overlay,
#sp_menu.p-spMenu .c-widget__title.-spmenu,
#sp_menu.p-spMenu .c-smallNavTitle,
.c-overlay[data-onclick="toggleMenu"] {
    display: none !important;
    content: none !important;
}

/* 3. コンテンツの内側（中央寄せ・スクロール可能） */
#sp_menu .p-spMenu__inner {
    width: 100% !important;
    max-height: 85vh !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
    transform: none !important; /* スライド移動を強制停止 */
    position: relative !important;
}

#sp_menu .p-spMenu__body,
#sp_menu .p-spMenu__nav,
#sp_menu .p-spMenu__nav ul {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
}

/* 4. 各メニュー項目のデザイン（入場アニメーション付き） */
#sp_menu .menu-item {
    margin-bottom: 1rem !important;
    list-style: none !important;
    text-align: center !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 開いた時にふわっと順番に出す */
html[data-spmenu="opened"] #sp_menu .menu-item,
body.is-opened-sp-menu #sp_menu .menu-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#sp_menu .menu-item:nth-child(1) { transition-delay: 0.1s; }
#sp_menu .menu-item:nth-child(2) { transition-delay: 0.18s; }
#sp_menu .menu-item:nth-child(3) { transition-delay: 0.26s; }
#sp_menu .menu-item:nth-child(4) { transition-delay: 0.34s; }
#sp_menu .menu-item:nth-child(5) { transition-delay: 0.42s; }

/* 5. リンク文字と英語ラベル（data-en） */
#sp_menu .menu-item a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
}

/* 英語の添字（不要につき非表示） */
#sp_menu .menu-item a::before {
    display: none !important;
}

/* 日本語文字（ゴシック体） */
#sp_menu .menu-item a {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
}

/* 6. 「事業・実績」などの子メニュー（常に展開） */
#sp_menu .menu-item-has-children {
    margin-bottom: 1rem !important;
}

#sp_menu .sub-menu {
    display: block !important; /* 子メニューを常に表示 */
    opacity: 1 !important;
    margin-top: 0.5rem !important;
    padding: 0 !important;
    background: transparent !important;
}

#sp_menu .sub-menu .menu-item {
    margin-bottom: 0.5rem !important;
}

#sp_menu .sub-menu .menu-item a {
    font-size: 1rem !important;
    color: rgba(255,255,255,0.6) !important;
    font-weight: 400 !important;
}

#sp_menu .sub-menu .menu-item a::before {
    display: none !important; /* 子メニューには英語を出さない */
}

/* 7. 閉じる（×）ボタン：白文字で右上に固定 */
#sp_menu .p-spMenu__closeBtn,
.p-spMenu__closeBtn {
    color: #ffffff !important;
    z-index: 10000000 !important;
    top: 15px !important;
    right: 15px !important;
    width: 44px !important;
    height: 44px !important;
    position: fixed !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#sp_menu .p-spMenu__closeBtn button {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.p-spMenu__closeBtn i {
    font-size: 28px !important;
    color: #fff !important;
    display: inline-block !important;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) !important;
    transform: rotate(-180deg) !important;
}
/* 開いた時にクルッと回る */
html[data-spmenu="opened"] .p-spMenu__closeBtn i,
body.is-opened-sp-menu .p-spMenu__closeBtn i {
    transform: rotate(0deg) !important;
}


/* Back to Top (Square version)
------------------------------- */
#pagetop.c-fixBtn {
    border-radius: 0 !important; /* 四角形に */
    background: #fff !important; /* 背景は白 */
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* 極薄い線 */
    box-shadow: none !important; /* 影を消して主張を抑える */
    color: #2d3548 !important; /* 指定のネイビー系カラーをアイコンに */
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    opacity: 0.7; /* 通常時は少し透かして馴染ませる */
}

#pagetop.c-fixBtn:hover {
    opacity: 1;
    background: #f8f9fa !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

#pagetop.c-fixBtn i {
    font-size: 16px !important;
    margin: 0 !important;
}
