/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/

/* ============================================================
   目次

   01. 変数（:root）
   02. ベース
   03. ユーティリティ
   04. レイアウト共通
       4-1 ヘッダー
       4-2 グローバルナビ / PCお問い合わせボタン
       4-3 モバイルナビ（ハンバーガー）
       4-4 フッター
       4-5 パンくず
   05. ボタン
       5-1 btn01（基本ボタン）
       5-2 btn_header-contact（ヘッダーCTA）
       5-3 underlink_btn（アンダーライン）
       5-4 cta-btn02 / CTAエリア
       5-5 ヘッダー・フッターリンクのホバー下線
   06. 見出し装飾
       6-1 TOP用（top_h2）
       6-2 下層用（h2 / h3 / h4 / main-title）
   07. カード
       7-1 service_card（事業内容）
       7-2 card01（対応領域・選ばれる理由）
       7-3 card02（代理販売）
       7-4 card03（取扱商材）
       7-5 card04（強み・選ばれる理由）
       7-6 card05（バックオフィス）
       7-7 work-card（実績一覧）
   08. リスト（list01）
   09. 枠・囲み（frame01 理念 / frame02 対応領域 / frame03 電話）
   10. テーブル（table_title / table01）
   11. FAQ（アコーディオン）
   12. ページ別
       12-1 TOP
       12-2 下層共通
       12-3 会社概要
       12-4 投稿・カスタム投稿 詳細
       12-5 お問い合わせフォーム
   13. アニメーション（TOPのみ）
       13-1 ファーストビュー（読み込み時）
       13-2 スクロールでフェードイン
       13-3 モーション軽減設定への対応
   ============================================================ */

/* ------------------------------------------------------------
   ブレークポイント（この5種類に統一）

   SP       : @media (max-width: 767.98px)
   WPカラム  : @media (min-width: 782px) / (max-width: 781.98px)
              ※ wp-block-columns が縦積みに切り替わる境界。変更不可
   ヘッダー  : @media (max-width: 899.98px)
              ※ ハンバーガー切替位置に連動
   TB以下    : @media (max-width: 991.98px)
   PC       : @media (min-width: 992px)

   ・末尾の .98 は max-width と min-width の間に隙間を作らないため
   ・CSS変数はメディアクエリ内で使えないので数値は直書き
   ・メディアクエリは各パーツの直後に置く
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   プロパティ記述順（Recess order）／ インデントは半角4スペース

   1. content
   2. 位置    position, top/right/bottom/left, inset, z-index
   3. 表示    display, visibility, flex-*, grid-*, gap, align-*, justify-*
   4. 寸法    box-sizing, width, min/max-width, height, min/max-height,
              aspect-ratio, object-fit
   5. 余白    margin, padding, overflow
   6. 文字    font-*, line-height, letter-spacing, color, text-*, white-space
   7. 装飾    background, border, border-radius, outline, box-shadow,
              opacity, filter, backdrop-filter, isolation
   8. 動き    transition, transform, transform-origin, animation
   9. その他  cursor, pointer-events, user-select, list-style

   ※ background / inset などのショートハンドは、対応する個別指定より
      必ず前に置くこと（後ろに来ると個別指定がリセットされる）
   ------------------------------------------------------------ */


/* ============================================================
   01. 変数（:root）
   ============================================================ */

:root {
    /* Color */
    --text-color: #1B3A6B;
    --blue01: #2A7AB0;
    --blue02: #B6D0E2;
    --red01: #B3402F;
    --red02: #EDD4DA;
    --gray: #E4E4E4;

    --color-accent: #D84A4A;

    /* font */
    --font-heading: 'Noto Serif JP', serif;
    --font-text: 'Noto Sans JP', sans-serif;
    --font-en: 'Marcellus', serif;
}


/* ============================================================
   02. ベース
   ============================================================ */

body {
    font-family: var(--font-base);
    line-height: 1.8;
    color: var(--color-text);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, .blog h5, .blog .postList_title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
}


/* ============================================================
   03. ユーティリティ
   ============================================================ */

.red {
    color: #B3402F;
}

.mb00 {
    margin-bottom: 0px !important;
}

.relative {
    position: relative;
}


/* ============================================================
   04. レイアウト共通
   ============================================================ */

/* ------------------------------------------------------------
   4-1 ヘッダー
   ------------------------------------------------------------ */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 0px;
    background: transparent;
    box-shadow: none;
}

.site-header-container {
    align-items: center;
    max-width: 100%;
}

.site-header-logo {
    margin-bottom: 20px;
}

.site-header-logo a {
    min-width: 200px;
    max-width: 250px;
}

.site-header-logo img {
    width: 100%;
    max-width: 250px;
    max-height: 50px;
    margin-left: 0;
}

.header_scrolled .site-header {
    background-color: rgba(239, 244, 249, 0.9);
    backdrop-filter: blur(45px);
}

.header_scrolled .site-header-logo {
    display: block;
}

.header_scrolled .site-header-logo img {
    max-width: 180px;
}

.site-header nav ul li strong {
    font-size: 16px;
}

.site-header nav ul li a {
    font-family: var(--font-heading);
    font-weight: 400;
}

.global-nav-list > li:before {
    display: none;
}

@media (min-width: 992px) {
    .site-header {
        padding: 0 20px;
    }
}

/* 900px未満のスマホ・タブレットだけ ロゴをバーに固定 */
@media (max-width: 899.98px) {
    body.header_scrolled #site-header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        width: 100%;
        box-shadow: none;
    }

    body.header_scrolled .site-header-logo {
        display: block !important;
        margin: 8px 0;
    }

    /* ハンバーガーメニューを残す */
    body.header_scrolled .vk-mobile-nav-menu-btn {
        z-index: 1001;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* ハンバーガーメニューを開いたときの×印 */
    #vk-mobile-nav-menu-btn.menu-open {
        z-index: 2200 !important;
        display: block !important;
        visibility: visible !important;
        background:
            var(--vk-mobile-nav-menu-btn-close-bg-src)
            center / 24px 24px
            no-repeat
            rgba(255, 255, 255, 0.8) !important;
        opacity: 1 !important;
    }
}

/* ------------------------------------------------------------
   4-2 グローバルナビ / PCお問い合わせボタン
   ------------------------------------------------------------ */

.vk-cols--menu .wp-block-cover {
    border-radius: 5px;
}

.global-nav-name {
    font-size: 14px !important;
}

/* お問い合わせメニュー項目 */
#global-nav .btn_header-contact {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    min-width: 100px;
}

/* タブレット・スマホでは非表示 */
@media (max-width: 991.98px) {
    .header-contact-button {
        display: none !important;
    }
}

@media (min-width: 992px) {
    #global-nav .global-nav-list {
        display: flex;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    #global-nav .global-nav-list > li {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #global-nav .global-nav-list > li:not(.btn_header-contact) > a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 16px 14px !important;
        background: transparent !important;
    }

    #global-nav .global-nav-list > li.btn_header-contact > a {
        height: auto !important;
        min-height: 0 !important;
        margin-left: 10px;
        padding: 6px 15px !important;
    }
}

/* ------------------------------------------------------------
   4-3 モバイルナビ（ハンバーガー）
   ------------------------------------------------------------ */

.vk-mobile-nav-menu-btn {
    border: none;
}

.vk-mobile-nav-menu-btn.menu-open {
    border: none;
}

.vk-mobile-nav {
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 24px), linear-gradient(180deg, #F9FBFB 0%, #f2f7fb 50%, #cddff0 100%);
}

.vk-mobile-nav nav ul li a {
    font-family: var(--font-heading);
}

/* ------------------------------------------------------------
   4-4 フッター
   ------------------------------------------------------------ */

/* Lightning デフォルトのコピーライトを隠す */
.site-footer-copyright {
    display: none;
}

.site-footer {
    padding: 40px 40px 8rem;
    color: var(--text-color);
    background:
        linear-gradient(
            110deg,
            rgba(235, 244, 252, 0.96),
            rgba(247, 250, 253, 0.98)
        );
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-top: none;
}

.site-footer::before {
    content: "RE DESIGN-CORP";
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    overflow: hidden;
    font-family: var(--font-en);
    font-size: clamp(85px, 12vw, 200px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: white;
    text-align: center;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    user-select: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    right: 5%;
    bottom: 0;
    z-index: -1;
    width: min(27vw, 660px);
    aspect-ratio: 1 / 1;
    background: url(images/logo-bg.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(400px, 1fr);
    gap: 80px;
    width: min(100%, 1400px);
    margin-inline: auto;
}

.site-footer__info p {
    margin-bottom: 12px;
}

.site-footer__logo {
    max-width: 280px;
    margin-bottom: 20px;
}

.site-footer__logo img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.site-footer__contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    margin-bottom: 48px;
}

.site-footer__nav p {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.site-footer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav li + li {
    margin-top: 12px;
}

.site-footer__button {
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff !important;
    background: linear-gradient(
        90deg,
        #0875bd,
        #244a82
    );
}

.site-footer__copyright {
    position: relative;
    width: min(100%, 1400px);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-align: right;
}

@media (max-width: 767.98px) {

    .site-footer {
        padding: 48px 20px 8rem;
    }

    .site-footer::after {
        width: min(66vw, 800px);
    }

    .site-footer__inner {
        display: block;
        width: 100%;
    }

    .site-footer__info {
        margin-bottom: 40px;
    }

    .site-footer__info p {
        margin-bottom: 10px;
    }

    .site-footer__logo {
        max-width: 280px;
        margin-bottom: 24px;
    }

    .site-footer__contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 16px;
    }

    .site-footer__nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 0;
    }

    .site-footer__nav p {
        margin-bottom: 14px;
    }

    .site-footer__nav li + li {
        margin-top: 10px;
    }

    .site-footer__copyright {
        width: 100%;
        margin-top: 20px;
        text-align: left;
    }
}

/* ------------------------------------------------------------
   4-5 パンくず
   ------------------------------------------------------------ */

.breadcrumb {
    background: #F9FBFB;
    border-top: none;
    border-bottom: none;
}

.breadcrumb .breadcrumb-list li {
    font-family: var(--font-heading);
    font-weight: 500;
}


/* ============================================================
   05. ボタン

   ※ .btn01 と .cta-btn02 は同じ詳細度。この順番を入れ替えると
      CTAボタンの見た目が変わるので 5-1 → 5-4 の順を維持すること
   ============================================================ */

/* ------------------------------------------------------------
   5-1 btn01（基本ボタン / メインビジュアル）
   ------------------------------------------------------------ */

.btn01 {
    position: relative;
}

.btn01 a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0.7rem 1.0rem 0.7rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.06em;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(110deg, #152B5E 0%, #152B5E 45%, #153a75 100%);
    border: 1px solid var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transition:
        background-color 0.45s cubic-bezier(.4, 0, .2, 1),
        color 0.45s cubic-bezier(.4, 0, .2, 1);
}

.btn01 a::after {
    content: "→";
    display: inline-block;
    font-family: serif;
    font-size: 16px;
    font-weight: 200;
    color: currentColor;
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
}

/* ホバー */
.btn01 a:hover {
    color: var(--text-color) !important;
    background: #fff;
    filter: none;
}

/* 矢印だけ右へ */
.btn01 a:hover::after {
    transform: translateX(6px);
}

/* ------------------------------------------------------------
   5-2 btn_header-contact（ヘッダーCTA）
   ------------------------------------------------------------ */

.btn_header-contact {
    margin-left: 20px;
}

.btn_header-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0.7rem 1.0rem 0.7rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 13px !important;
    letter-spacing: 0.06em;
    color: #fff !important;
    text-decoration: none;
    background-image: none !important;
    background-color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transition:
        background-color 0.45s cubic-bezier(.4, 0, .2, 1),
        color 0.45s cubic-bezier(.4, 0, .2, 1) !important;
}

/* ホバー */
.btn_header-contact a:hover {
    color: var(--text-color) !important;
    background-color: #fff;
}

/* ------------------------------------------------------------
   5-3 underlink_btn（アンダーライン）
   ------------------------------------------------------------ */

.underlink_btn {
    position: relative;
    display: flex;
    justify-content: flex-start;
}

.underlink_btn a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    gap: 10px;
    padding: 5px 3px;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid #D9D9D9;
}

.underlink_btn a::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-color);
    transition: transform 0.4s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.underlink_btn a::after {
    content: "→";
    font-family: serif;
    font-size: 14px;
    font-weight: 200;
    transition: transform 0.35s ease;
}

.underlink_btn a:hover {
    color: inherit;
}

.underlink_btn a:hover::before {
    transform: scaleX(1);
}

.underlink_btn a:hover::after {
    transform: translateX(7px);
}

/* センターよせ */
.underlink_btn.center_btn {
    display: flex;
    justify-content: center;
}

/* 右よせ */
.underlink_btn.right_btn {
    display: flex;
    justify-content: flex-end;
}

/* ------------------------------------------------------------
   5-4 cta-btn02 / CTAエリア
   ※ .btn01 とセットで使用。5-1 より後ろに置くこと
   ------------------------------------------------------------ */

.cta-title {
    margin-bottom: 10px;
    font-size: clamp(2.0rem, 4vw, 2.3rem);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.cta-btn02 a {
    padding: 1.0rem 1.0rem 1.0rem 1.8rem !important;
    letter-spacing: 0.06em;
    color: var(--text-color);
    background: #FFF !important;
}

.cta-btn02 a:hover {
    color: #FFF !important;
    background: linear-gradient(110deg, #152B5E 0%, #152B5E 45%, #153a75 100%) !important;
}

/* ------------------------------------------------------------
   5-5 ヘッダー・フッターリンクのホバー下線
   ※ ロゴ除外の指定は必ずこの順で後ろに置く
   ------------------------------------------------------------ */

header a:not([class*="btn"]), .global-nav-name,
footer a:not([class*="btn"]) {
    background-image: linear-gradient(#000, #000);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.24s;
}

header a:not([class*="btn"]):hover, .global-nav-name:hover,
footer a:not([class*="btn"]):hover {
    background-size: 100% 1px;
}

.site-header-logo > a,
.site-header-logo > a:hover {
    background-image: none !important;
    background-size: 0 !important;
}


/* ============================================================
   06. 見出し装飾
   ============================================================ */

/* ------------------------------------------------------------
   6-1 TOP用（top_h2）
   ------------------------------------------------------------ */

.top_h2, .top_h2_main_title {
    margin-bottom: 0 !important;
    font-size: clamp(28px, 4.5vw, 40px);
    font-style: normal;
    font-weight: 500 !important;
    letter-spacing: 0.15em;
    text-shadow: 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 8px rgba(255, 255, 255, 1), 0 0 12px rgba(255, 255, 255, 1);
    border: none;
}

.top_h2, .top_h2_sub_title {
    margin-bottom: 10px !important;
    font-family: var(--font-en);
    font-size: 1.2rem !important;
    letter-spacing: 0.1em;
    color: var(--blue01);
    text-shadow: 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 8px rgba(255, 255, 255, 1), 0 0 12px rgba(255, 255, 255, 1);
}

/* ------------------------------------------------------------
   6-2 下層用（h2 / h3 / h4 / main-title）
   ※ 投稿詳細ページの h2 は 12-4 にあり、詳細度が同じなので
      必ずこのセクションより後ろに置くこと
   ------------------------------------------------------------ */
/* 下層ページの装飾 h2 */
body:not(.home) .entry-body h2 {
    position: relative;
    margin: 80px 0px 25px;
    padding: 0 0px 10px 55px;
    font-size: clamp(25px, 5vw, 34px);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-color);
    border-top: none;
    border-bottom: 1px solid #d8dde2;
}
body:not(.home) .entry-body > .wp-block-group:first-child h2:first-of-type {
    margin-top: 30px;
}

/* 左の装飾 h2 */
body:not(.home) .entry-body h2::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 5px;
    width: 30px;
    height: 26px;
    background: url(images/h2blue-icon.svg) no-repeat center / contain;
    transform: translateY(-50%);
}

/* h2　装飾赤 会社概要・バックオフィス・よくある質問はアイコン赤 */
body:not(.home) .entry-body h2.redh2::before {
    top: 40%;
    left: 5px;
    width: 30px;
    height: 26px;
    background: url(images/h2red-icon.svg) no-repeat center / contain;
    transform: translateY(-50%);
}

body:not(.home) .entry-body h3 {
    margin-bottom: 20px;
    padding: 0;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: var(--text-color);
    border: none;
}
body:not(.home) .entry-body h3::after{
  display: none;
}
body:not(.home) .entry-body .ceo_name {
    font-size: clamp(18px, 4vw, 20px);
    font-weight: 600;
    color: var(--text-color);
    background: none;
    margin-top: 30px !important;
    width: 100%;
}

body:not(.home) .entry-body h4 {
    margin-top: 20px;
    margin-bottom: 20px;
    background: var(--text-color);
    padding: 4px 13px;
    font-size: clamp(15px, 5vw, 18px);
    border-radius: 3px;
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: 0.06em;
    width: fit-content;
    color: white;
    border: none;
}

body:not(.home) .entry-body h5 {
    margin-top: 20px;
    border-bottom: solid 1px var(--text-color);
    padding-bottom: 4px;
    width: fit-content;
    color: var(--text-color);
}

body:not(.home) .main-title {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-color);
}


/* ============================================================
   07. カード
   ============================================================ */

/* ------------------------------------------------------------
   7-1 service_card（事業内容）
   ------------------------------------------------------------ */

.service_card {
    position: relative;
    margin-bottom: 80px;
}

.service_card h3 {
    position: relative;
    font-size: clamp(24px, 6vw, 28px);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.service_card h3::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        #5595C0 0%,
        #ECE8E8 65%,
        #B3402F 100%
    );
}

.service_card_img {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0;
}

.service_card_img::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 13px;
    bottom: 7px;
    left: 13px;
    border: 1px solid rgba(255, 255, 255, .8);
}

.service_card_img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service_card > .service_card_body {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    margin-inline: auto;
    margin-block-start: -13px !important;
    padding: 40px 30px 50px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service_card .service_card_body h3 {
    margin-bottom: 30px !important;
}

/* 下層ページでは本文エリアを紺背景に */
body:not(.home) .service_card > .service_card_body {
    background: var(--text-color);
}

body:not(.home) .service_card .service_card_body h3,
body:not(.home) .service_card .service_card_body p {
    color: white !important;
}

@media (min-width: 992px) {
    .service_card {
        display: grid;
        grid-template-columns: 44% 8% 45%;
        align-items: center;
    }

    .service_card_img {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .service_card_body {
        grid-column: 2 / 4;
        grid-row: 1;
        width: auto;
        margin: 0;
        padding: 48px 56px;
    }

    .service_card > .service_card_body {
        padding: 48px 56px;
    }
}

/* ------------------------------------------------------------
   7-2 card01（対応領域・選ばれる理由）
   ------------------------------------------------------------ */

/* --- TOP：選ばれる理由 --- */

.home .card01 {
    position: relative;
    width: 95%;
    height: 100%;
    margin: 0 auto;
    padding: 42px 25px 40px;
    overflow: visible;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(20, 50, 90, .08);
}

.home .card01 figure {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 数字 */
.home .card_number {
    position: absolute;
    top: -22px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0;
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: #fff !important;
    transform: translateX(-50%);
}

/* ひし形 */
.home .card_number::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #8FB9D9;
    border-radius: 2px;
    box-shadow: 0 6px 14px rgba(20, 50, 90, .08);
    transform: rotate(45deg);
}

/* タイトル */
.home .card01 h3 {
    margin-bottom: 0px;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--text-color);
    text-align: center;
    border-bottom: none;
}

.home .card01 h3::after {
    display: none;
}

.home .card01 p {
    color: var(--text-color);
}

/* --- 貿易：対応領域カード --- */

.card01 {
    position: relative;
    height: 100%;
    padding: 15px 20px 20px;
    overflow: visible;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(20, 50, 90, .08);
}

/* タイトル */
.card01 h3 {
    margin-bottom: 20px;
    font-size: clamp(20px, 2vw, 24px) !important;
    text-align: center;
}

.card01 figure {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 数字 */
.card_number {
    position: absolute;
    top: -22px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0;
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: #fff;
    transform: translateX(-50%);
}

/* ひし形 */
.card_number::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--text-color);
    border-radius: 2px;
    box-shadow: 0 6px 14px rgba(20, 50, 90, .08);
    transform: rotate(45deg);
}

/* ------------------------------------------------------------
   7-3 card02（代理販売）
   ------------------------------------------------------------ */

.card02 {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 58, 94, .1);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

/* 画像ブロック */
.card02_img {
    margin: 0;
    overflow: hidden;
}

.card02_img img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
}

/* 青い帯 */
.card02_text {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    background: var(--text-color);
}

/* WordPressの余白を消す */
.card02_text > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* タイトル */
.card02_title {
    flex: 1;
    margin: 0;
    font-family: var(--font-heading);
    color: #fff;
    text-align: left;
}

/* 矢印 */
.card02_text::after {
    content: "→";
    display: inline-block;
    font-family: serif;
    font-size: 16px;
    font-weight: 200;
    color: #FFF;
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
}

.card02:hover .card02_text::after {
    transform: translateX(6px);
}

.card02:hover .card02_img img {
    transform: scale(1.06);
}

@media (max-width: 767.98px) {
    .card02_title {
        font-size: 16px;
    }
}

/* ------------------------------------------------------------
   7-4 card03（国際貿易：取扱商材）
   ------------------------------------------------------------ */

.card03 {
    position: relative;
}

.card03::before {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .9);
}

.card03 .wp-block-cover__inner-container {
    position: static;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.card03_title {
    position: absolute;
    right: 0;
    bottom: 5%;
    width: 70%;
    margin: 0 !important;
    font-family: var(--font-heading);
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.8;
    color: var(--text-color);
    background: white;
}

/* ------------------------------------------------------------
   7-5 card04（私たちの強み・選ばれる理由）
   ------------------------------------------------------------ */

.card04 .card-list {
    position: relative;
    max-width: 550px;
    height: 100%;
    margin: 0 auto;
    overflow: visible;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(20, 50, 90, .08);
}

.card04 .card-number {
    position: absolute;
    top: -22px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
    color: #fff;
    transform: translateX(-50%);
}

.card04 .card-number::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--text-color);
    border-radius: 2px;
    box-shadow: 0 6px 14px rgba(20, 50, 90, .08);
    transform: rotate(45deg);
}

.card04 .card-txt {
    padding: 20px 20px 40px;
}

.card04 .card-txt h3 {
    position: relative;
    margin-bottom: 30px !important;
    font-size: clamp(19px, 5vw, 23px) !important;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-align: center;
}

.card04 .card-txt h3::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 1px;
    margin: auto;
    background: linear-gradient(90deg, #5595C0 0%, #ECE8E8 65%, #B3402F 100%);
}

.card04 .card-img {
    position: relative;
}

.card04 .card-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.6) inset;
}

/* ------------------------------------------------------------
   7-6 card05（バックオフィス：サービス一覧）
   ------------------------------------------------------------ */

.card05 .card-list {
    position: relative;
    justify-content: space-between;
    height: 100%;
    padding: 1.8em 2.375em 1.8em;
    overflow: visible;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(20, 50, 90, .08);
}

.card05 .card-txt h3 {
    position: relative;
    margin-bottom: 7px !important;
    font-size: clamp(18px, 5vw, 20px) !important;
    font-weight: 600 !important;
}

.card05 .card-img {
    min-width: 80px;
    max-width: 120px;
}

.card05 .card-list::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        #173a70 0%,
        #657895 25%,
        #eeeeee 50%,
        #d99a91 75%,
        #b9362e 100%
    );
}

/* ------------------------------------------------------------
   7-7 work-card（実績一覧）
   ------------------------------------------------------------ */

.work-boximg {
    position: relative;
}

.work-boximg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.6) inset;
}

.work-card {
    position: relative;
    z-index: 1;
}

.work-card .card-list {
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: solid 1px #EDEDEE;
}

.work-card .card-list .list_img {
    width: 28% !important;
    min-width: 100px;
}

.work-card .card-list .list_txt .category {
    margin-bottom: 8px;
}

.work-card .card-list .list_txt .category a,
.single-category-top__links a {
    display: inline-block;
    width: fit-content;
    margin-right: 5px;
    padding: .2em .4em;
    font-size: .75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .04em;
    color: var(--text-color);
    text-decoration: none !important;
    background-color: var(--white);
    border: 1px solid var(--text-color);
}

.work-card .card-list .list_txt .category .wp-block-post-terms__separator,
.single-category-separator {
    display: none;
}

.work-card .card-list .list_txt .list_title {
    font-size: 18px;
    letter-spacing: 0.06em;
}


/* ============================================================
   08. リスト（list01）会社事業のリスト
   ============================================================ */

.list01 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin: 0;
    padding-left: 1.0rem;
    background: white;
    list-style: none;
}

.list01 li {
    position: relative;
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

/* ■マーク */
.list01 li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: 6px;
    height: 6px;
    background: #8eb8dc;
}

.list01.red-icon li::before {
    background: var(--red02);
}

/* たて並び・背景なし */
.list01.noflex {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px 30px;
    background: none;
}

@media (max-width: 767.98px) {
    .list01 {
        padding-left: 0.2rem;
    }
}
/* 横並び　paddingあり　いろネイビー*/
.list02 {
  border: 2px solid white;
  display: flex;
  padding: 18px 10px;
  margin: 0 0 15px 0px;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding-left: 1.0rem;
  background: white;
  list-style: none;
}
.list02 li {
    position: relative;
    margin: 0;
    padding-left: 20px;
    list-style: none;
}
.list02 li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--text-color);
}
/* ============================================================
   09. 枠・囲み
   ============================================================ */

/* ------------------------------------------------------------
   9-1 frame01（会社概要：理念）
   ------------------------------------------------------------ */

body:not(.home) .entry-body .frame01 {
    position: relative;
    width: 100%;
    margin: 0px auto;
    padding-top: 2.0rem !important;
    padding-bottom: 1.6rem !important;
    overflow: hidden;
    background-color: white;
    outline: rgb(159, 176, 204) solid 1px;
    outline-offset: -5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

body:not(.home) .entry-body .frame01::before {
    content: "";
    position: absolute;
    top: 64%;
    right: -30px;
    z-index: 0;
    width: min(40vw, 550px);
    aspect-ratio: 1 / 1;
    background: url(./images/logo_line.png) center / contain no-repeat;
    opacity: 0.9;
    transform: translateY(-50%) rotate(-18deg);
    pointer-events: none;
}

body:not(.home) .entry-body .frame01 > * {
    position: relative;
    z-index: 1;
}

.sub_title {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    color: var(--blue01);
}

/* ------------------------------------------------------------
   9-2 frame02（国際：対応領域）
   ------------------------------------------------------------ */

.frame02 {
    padding: 30px 0px 50px;
    background: #DFE9F4;
}

.frame02 .wp-block-columns {
    width: 90%;
}

.frame02 .card01 .main_title {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    padding: 4px 13px;
    font-size: clamp(15px, 5vw, 18px);
    border-radius: 3px;
    font-weight: 600;
    line-height: 1.8;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    width: fit-content;
    color: var(--text-color);
    border: none;
}

/* ------------------------------------------------------------
   9-3 frame03（電話でのお問い合わせ）
   ------------------------------------------------------------ */

/* .frame03 {
    box-sizing: border-box;
    width: calc(100% - 3.75rem);
    max-width: 900px;
    margin: 1rem auto;
    padding: 2.5rem 2.5rem !important;
    color: var(--text-color);
    background-color: white;
    border: 1px solid var(--text-color);
    border-radius: 0.5rem;
} */

/* お問い合わせ文 */
/* .frame03 > p:first-child {
    margin-bottom: 0.5rem !important;
} */

/* 電話番号 */
/* .frame03 .txt_title {
    margin-bottom: 0.5rem !important;
    font-size: 2.4rem !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
} */

/* .frame03 .txt_title strong {
    font-size: 1.6rem !important;
}

.frame03 .txt_title a {
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .frame03 .txt_title {
        font-size: 1.8rem !important;
    }
} */


/* ============================================================
   10. テーブル
   ============================================================ */

/* 会社概要のtable内のタイトル */
.table_title {
    display: inline-block;
    margin-top: 0px !important;
    margin-bottom: 1.0rem;
    padding: 1px 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: white;
    background: var(--text-color);
    border: solid 1.5px var(--text-color);
}

body:not(.home) .entry-body .table01 {
    width: 99%;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    opacity: 0.9;
}

body:not(.home) .entry-body .table01 tr td:first-child {
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-color);
    background: none;
}
.single-product .table01 tr {
  border-bottom-color: inherit !important;
}

body:not(.home) .entry-body .table01 tr td {
    padding: 2em;
}

.table01 .table_title:nth-of-type(2) {
    margin-top: 30px !important;
}


/* ============================================================
   11. FAQ（アコーディオン）
   ============================================================ */

.faq .top_h2 .top_h2_sub_title,
.faq .top_h2 .top_h2_main_title {
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FAQ 1項目 */
.faq-list .wp-block-details {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8ee;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(26, 61, 99, 0.12);
}

/* 質問 */
.faq-list .wp-block-details summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    margin: 0;
    padding: 15px 48px 15px 54px;
    font-family: serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: #173f75;
    cursor: pointer;
    list-style: none;
}

/* デフォルトの三角を消す */
.faq-list .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.faq-list .wp-block-details summary::marker {
    content: "";
}

/* Q */
.faq-list .wp-block-details summary::before {
    content: "Q";
    position: absolute;
    top: 50%;
    left: 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    line-height: 1;
    color: #173f75;
    transform: translateY(-50%);
}

/* 閉じている時：下向き */
.faq-list .wp-block-details summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 9px;
    height: 9px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    transition: transform 0.25s ease;
    transform: translateY(-70%) rotate(45deg);
}

/* 開いている時：上向き */
.faq-list .wp-block-details[open] summary::after {
    transform: translateY(-20%) rotate(225deg);
}

/* 回答 */
.faq-list .wp-block-details > p {
    position: relative;
    padding: 16px 16px 16px 48px;
    font-size: 14px;
    line-height: 1.8;
    color: #173f75;
    opacity: 0;
    transform: translateY(-6px);
}

/* 回答の下端グラデーションライン */
.faq-list .wp-block-details > p:last-of-type::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #173a70 0%, #657895 25%, #eeeeee 50%, #d99a91 75%, #b9362e 100%);
}

/* A */
.faq-list .wp-block-details > p:first-of-type::before {
    content: "A";
    position: absolute;
    top: 17px;
    left: 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    line-height: 1;
    color: #c9483e;
}

/* 開いている時の質問部分 */
.faq-list .wp-block-details[open] summary {
    border-radius: 5px 5px 0 0;
}

.faq-list .wp-block-details[open] > p {
    animation: faq-open 0.3s ease forwards;
}

@keyframes faq-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* キーボード操作時 */
.faq-list .wp-block-details summary:focus-visible {
    outline: 2px solid #527daf;
    outline-offset: -3px;
}

/* WPカラムの折り返し境界に合わせる（782px は変更不可） */
@media (min-width: 782px) {
    .faq .top_h2 .top_h2_sub_title,
    .faq .top_h2 .top_h2_main_title {
        text-align: left;
    }

    .faq .top_h2 .top_h2_main_title {
        letter-spacing: 0.05em;
    }

    .faq-list {
        gap: 16px;
    }

    .faq-list .wp-block-details {
        border-radius: 6px;
    }

    .faq-list .wp-block-details summary {
        min-height: 72px;
        padding: 30px 65px 30px 68px;
        font-size: clamp(17px, 2vw, 20px);
    }

    .faq-list .wp-block-details summary:hover {
        background: #f8fbfd;
    }

    .faq-list .wp-block-details summary::before {
        left: 24px;
        font-size: 30px;
    }

    .faq-list .wp-block-details summary::after {
        right: 26px;
        width: 11px;
        height: 11px;
    }

    .faq-list .wp-block-details > p {
        padding: 23px 22px 30px 60px;
        font-size: 15px;
        line-height: 2;
    }

    .faq-list .wp-block-details > p:first-of-type::before {
        top: 23px;
        left: 25px;
        font-size: 30px;
    }
}


/* ============================================================
   12. ページ別
   ============================================================ */

/* ------------------------------------------------------------
   12-1 TOP
   ------------------------------------------------------------ */

/* --- メインビジュアル --- */

.hero-title {
    margin-bottom: 30px !important;
    padding-top: 60px;
    font-family: var(--font-heading);
    font-size: clamp(40px, 5.5vw, 70px) !important;
    font-weight: 500 !important;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-shadow: 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 8px rgba(255, 255, 255, 1), 0 0 12px rgba(255, 255, 255, 1);
}

.hero-img {
    position: relative;
}

/* 下端のすりガラス帯 */
.hero-img::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 12px;
    background: rgba(251, 251, 251, 0.5);
    backdrop-filter: blur(4px) saturate(130%);
    -webkit-backdrop-filter: blur(4px) saturate(130%);
    pointer-events: none;
}

/* --- 導入コピー --- */

.home .logo-mark {
    max-width: 30px;
}

.home .copy-img {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    isolation: isolate;
}

/* 背景の大きな英字 */
.home .copy-img::before {
    content: "RE DESIGN-CORP";
    position: absolute;
    top: 90%;
    left: 50%;
    z-index: -1;
    width: 100vw;
    overflow: hidden;
    font-family: var(--font-en);
    font-size: clamp(85px, 16vw, 170px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: white;
    text-align: center;
    white-space: nowrap;
    opacity: 0.6;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}

.home .top-lead.wp-block-group {
    padding-top: clamp(4rem, 9vw, 8rem);
    padding-bottom: clamp(6rem, 9vw, 8rem);
}

.home .copy-txt {
    position: relative;
}

.home .copy-txt p {
    font-size: clamp(1.2rem, 1rem + 0.3vw, 2.0rem);
    line-height: 2.2;
    letter-spacing: 0.02em;
}

.home .copy-txt::after {
    content: "";
    position: absolute;
    top: 70%;
    right: clamp(-16rem, 9rem - 19vw, -0.125rem);
    z-index: 0;
    width: clamp(16rem, 9rem + 17vw, 42rem);
    aspect-ratio: 1 / 1;
    background: url(images/logo-bg.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.5;
}

@media (max-width: 767.98px) {
    .home .copy-txt p {
        text-align: left;
    }
}

/* --- 実績・お知らせ --- */

.works-contents {
    margin-top: -10rem !important;
}

.works-h2 {
    margin-top: -10rem !important;
}

/* ------------------------------------------------------------
   12-2 下層共通
   ------------------------------------------------------------ */

/* 下層全体背景 */
body:not(.home) .site-body {
    padding-top: 20px;
    padding-bottom: 50px;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.08) 0px,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px,
            transparent 24px
        ),
        linear-gradient(
            180deg,
            #F9FBFB 0%,
            #f2f7fb 70%,
            #EAF4FF 100%
        );
}

/* 下層メインビジュアル */
body:not(.home) .page-header {
    min-height: 25rem;
    background-image: url("images/sub-mainvisual-pc.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

body:not(.home) .page-header-title {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 400;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    color: var(--text-color);
    text-align: left;
    text-shadow: 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1), 0 0 8px rgba(255, 255, 255, 1), 0 0 12px rgba(255, 255, 255, 1);
}

/* 下層のリード（画像＋テキストの重ね） */
.service01 {
    position: relative;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 70px 0 120px;
}

/* 左画像カラム */
.service01_img {
    position: relative;
    z-index: 1;
}

.service01_img figure {
    max-width: 550px;
    margin: 0;
}

.service01_img img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.service01_body {
    width: 700px;
    max-width: none;
}

/* 右カラム */
.service01 > .wp-block-column:nth-child(2) {
    position: relative;
    z-index: 2;
    margin-left: -10% !important;
    padding-top: 4%;
}

/* 左カラム */
.service01 > .wp-block-column:first-child {
    flex: 0 0 48% !important;
    max-width: 48%;
}

/* 右カラム（上書き） */
.service01 > .wp-block-column:nth-child(2) {
    flex: 0 0 62% !important;
    margin-left: -10% !important;
    padding-top: 9%;
}

/* ------------------------------------------------------------
   12-3 会社概要
   ------------------------------------------------------------ */

/* 代表プロフィール写真 */
.ceo_img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 250px;
}

.ceo_img::after {
    content: "";
    position: absolute;
    top: 12px;      /* 下にずらす量 */
    left: 12px;     /* 右にずらす量（左にずらすならマイナス値） */
    z-index: -1;
    width: 100%;
    height: 100%;
    background: var(--red02);
}

/* ------------------------------------------------------------
   12-4 投稿・カスタム投稿 詳細
   ※ h2 は 6-2 の下層用 h2 と詳細度が同じ。必ず 6-2 より後ろに
   ------------------------------------------------------------ */

.postList_title.entry-title a {
    font-family: var(--font-heading);
    font-weight: 400;
}

.entry-header {
    margin-bottom: 0px;
}

.single-category-top {
    margin-bottom: 25px;
}

.single-category-top__label {
    display: none;
}

.entry-meta .vcard.author {
    display: none;
}


.single-product .entry-meta,.single-post .entry-meta {
    display: none;
}
/* 記事の下の日付 function.phpで追加*/
.article-dates {
  display: flex;
  gap: 20px;
	margin-top: 80px;
	font-size: 12px;
	color: #666;
}
/* 投稿・カスタム投稿の見出し h1*/
.single-post .entry-header .entry-title,
.single-product .entry-header .entry-title {
    margin: 20px 0px 10px;
    padding: 0 0px 8px 0px;
    font-size: clamp(23px, 5vw, 28px);
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-color);
    border-top: none;
    border-bottom: 2px solid var(--text-color);
}
/* 投稿・カスタム投稿の見出し h2（下層 h2 の装飾を上書き） */
body.single-post .entry-body h2,
body.single-product .entry-body h2 {
    position: relative;
    margin: 10px 0px 25px;
    padding: 0 0px 0px 33px;
    font-size: clamp(20px, 5vw, 23px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: var(--text-color);
    border-top: none;
    border-bottom: none;
}

body.single-post .entry-body h2::before,
body.single-product .entry-body h2::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 13px;
  height: 13px;
  background: none;
  background-color: var(--text-color);
  box-shadow: 3px 3px 0 rgba(0, 43, 92, 0.12);
  transform: none;
}

/* 投稿・カスタム投稿の見出し h3 */
body.single-post .entry-body h3,
body.single-product .entry-body h3{
  margin-bottom: 20px;
  background: var(--text-color);
  padding: 4px 15px;
  font-size: clamp(16px, 5vw, 20px);
  border-radius: 3px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.06em;
  width: fit-content;
  color: white;
  border: none;
}
/* 投稿・カスタム投稿の見出し h4 */
body.single-post .entry-body h4,
body.single-product .entry-body h4{
    border-bottom: solid 1px var(--text-color);
    padding-bottom: 4px;
    width: fit-content;
}

/* 投稿・カスタム投稿の下部、前後の記事 */
body.single-post .vk_posts,body.single-product .vk_posts {
  margin-top: 30px;
}
.vk_post_body.card-body {
  padding-bottom: none;
}
.vk_post .vk_post_title{
  font-size: 14px !important;
  font-weight: 400;
}

/* トップページの投稿のアイキャッチのサイズ */
.work-card .list_img {
    width: 100%;
}
.work-card .list_img img {
  aspect-ratio: 1.9 / 1 !important;
  height: auto !important;
  object-fit: cover;
  width: 100% !important;
}

/* ------------------------------------------------------------
   12-5 お問い合わせフォーム
   ------------------------------------------------------------ */

.contact-table {
    border: none !important;
}

.contact-table th,
.contact-table td {
    display: table-cell;
    box-sizing: border-box;
    width: auto;
    padding: .5rem 0rem;
    border: none !important;
}

.contact-table span.required {
    padding: 2px 6px;
    font-size: 0.85em;
    color: #fff;
    background-color: #B3402F;
    border-radius: 3px;
}

.wpcf7-form .wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .contact-table th,
    .contact-table td {
        display: block;
        width: 100%;
    }

    .contact-table th {
        padding-bottom: 0;
        text-align: left;
    }

    .contact-table th p {
        margin-bottom: 0;
    }
}


/* ============================================================
   13. アニメーション（TOPのみ）

   ・<html class="js-anim"> は functions.php の wp_head で付与する。
     JS が無効な環境ではクラスが付かないので、何も隠れずそのまま表示される
   ・スクロール検知は js/top-animation.js（IntersectionObserver）
   ・ブロックエディタの「高度な設定 → 追加CSSクラス」で個別指定できる
       js-fade    … このブロックもフェード対象にする
       js-no-fade … 自動対象から除外する
   ============================================================ */

/* ------------------------------------------------------------
   13-1 ファーストビュー（読み込み時に再生）
   ------------------------------------------------------------ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 見出しが先、少し置いてボタン */
.js-anim .home .hero-title {
    animation: fadeUp 0.9s cubic-bezier(.4, 0, .2, 1) 0.15s both;
}

.js-anim .home .hero-title + .btn01 {
    animation: fadeUp 0.9s cubic-bezier(.4, 0, .2, 1) 0.55s both;
}

/* ------------------------------------------------------------
   13-2 スクロールでフェードイン

   ごく控えめに。ずらし遅延はなし（全部いっせいに出る）。
   発火位置は top-animation.js の ROOT_MARGIN で調整する
   ------------------------------------------------------------ */

.js-anim .home .js-fade {
    opacity: 0;
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
    transform: translateY(8px);
}

.js-anim .home .js-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   13-3 モーション軽減設定への対応

   OS側で「視差効果を減らす」が有効なときは動きを止める。
   既存のホバー拡大・矢印移動もあわせて停止する
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .js-anim .home .hero-title,
    .js-anim .home .hero-title + .btn01,
    .js-anim .home .js-fade {
        opacity: 1;
        transition: none;
        transform: none;
        animation: none;
    }

    .card02:hover .card02_img img,
    .card02:hover .card02_text::after,
    .btn01 a:hover::after,
    .underlink_btn a:hover::after {
        transform: none;
    }
}
/* --------------------------------------------------
   アイキャッチ画像まわりの調整
-------------------------------------------------- */

/* 投稿本文の上に表示するアイキャッチ */
.single-eyecatch {
    margin: 0 0 1.8em;
}

.single-eyecatch img {
    display: block;
    width: 100%;
    height: auto;
}

/* 記事一覧のアイキャッチ枠を 16:9 に（Lightning標準は 62%） */
.vk_post .vk_post_imgOuter:before {
    padding-top: 56.25%;
}