
/* -----------------------------------------------------------
 * 0. 特定ページの要素制御（Home表示時のメニュー非表示）
 * ----------------------------------------------------------- */
.home .nav-menu-middle {
    display: none !important;
}
									
/* WooCommerceのショップページでのみ、ロゴ横のサイトタイトル文字列を非表示にする */
.post-type-archive-product .ast-site-title-wrap {
    display: none !important;
}

/* -----------------------------------------------------------
 * 1. サイト全体の文字サイズ調整（Responsive Typography）
 * スマホでの視認性を考慮し、1.2remから1.0remへ調整
 * ----------------------------------------------------------- */
@media (max-width: 767px) {
    html, body {
        /* サイト共通設定を上書き */
        font-size: 1.0rem !important;
        letter-spacing: 0.05em !important; /* 文字の間隔を少し広げる */
    }
}

/* -----------------------------------------------------------
 * 2. 縦書きアクセント（Tategaki）
 * ----------------------------------------------------------- */
.Tategaki {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    text-orientation: upright;
    -webkit-text-orientation: upright;
    display: inline-block;
    letter-spacing: 0.3em;
    line-height: 1.5;
    height: auto;
    max-height: 100%;
}

@media (max-width: 767px) {
    .Tategaki {
        letter-spacing: 0.2em;
    }
}

/* -----------------------------------------------------------
 * 3. Elementorカルーセル高さ固定 & 左端優先表示
 * ----------------------------------------------------------- */
.custom-carousel-size .elementor-main-swiper,
.custom-carousel-size .swiper-slide img {
    height: 448px !important;
    width: 100% !important;
    object-fit: cover;
    object-position: left center;
}

.custom-carousel-size {
    height: 448px;
}

/* スマホ表示（画面幅767px以下）の時：上マージン-320pxの引っ張り上げに伴う下の空白相殺処理 */
@media (max-width: 767px) {
    .custom-carousel-size {
        /* 元の高さ448pxから、上に移動させた320pxを差し引いた「128px」を全体の占有高さに指定 */
        height: 128px !important;
    }
    .custom-carousel-size .elementor-main-swiper,
    .custom-carousel-size .swiper-slide img {
        /* 画像自体はタイトルの裏側に448pxのまま綺麗に表示させ続けるため高さを維持 */
        height: 448px !important;
    }
}

/* -----------------------------------------------------------
 * 4. スライドコメント・アニメーション
 * ----------------------------------------------------------- */
.sliding-parent {
    transition: transform 0.6s ease-out !important;
    pointer-events: auto !important;
}

.sliding-parent:hover {
    transform: translateX(340px) !important;
}

/* -----------------------------------------------------------
 * 5. 指定コンテナ内のみ：ボタン・アイコン縦並び（レスポンシブ)
 * クラス「header-btn-stack」を付与したコンテナに適用
 * ----------------------------------------------------------- */
@media (max-width: 768px) {
    .header-btn-stack .elementor-button-content-wrapper,
    .header-btn-stack .uael-button-content-wrapper,
    .header-btn-stack .uael-marketing-btn-content-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-btn-stack .elementor-button-icon,
    .header-btn-stack .uael-button-icon-wrap,
    .header-btn-stack .uael-marketing-btn-icon-wrap {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 4px !important;
    }

    .header-btn-stack .elementor-align-icon-after,
    .header-btn-stack .uael-align__after {
        margin-top: 4px !important;
        margin-bottom: 0 !important;
    }
}

/* 特商法テーブルの文字サイズ調整 */
/* 親要素のクラス経由で中のspanまで強制的にサイズ変更 */
.tbl_tokushoho table span,
.tbl_tokushoho table td {
    font-size: 14px !important;
    font-family: inherit !important;
}

/* スマートフォン表示（画面幅767px以下）の時だけ適用 */
@media (max-width: 767px) {
    
    /* H2の見出し */
    .tab_guide h2 {
        font-size: 22px !important;
    }

    /* H3の見出し */
    .tab_guide h3 {
        font-size: 15px !important;
    }

    /* 一般的なテキスト（pタグなど） */
    .tab_guide, 
    .tab_guide p, 
    .tab_guide span {
        font-size: 14px !important;
    }

    /* アイコンボックスのタイトル */
    .tab_guide .elementor-icon-box-title,
    .tab_guide .elementor-icon-box-title a {
        font-size: 22px !important;
        font-weight: 700 !important;
    }

    /* アイコンボックスの説明テキスト */
    .tab_guide .elementor-icon-box-description {
        font-size: 14px !important;
    }
}      