@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* 1. デバイスごとの出し分け（記事のStep.7相当） */
@media screen and (max-width: 959px) {
    .parent-menu-pc { display: none !important; }
}
@media screen and (min-width: 960px) {
    .parent-menu-sp { display: none !important; }
}

/* 2. PC用メガメニューの調整（記事のStep.8相当） */
/* メディアクエリで囲むことで、スマホへの干渉を物理的に遮断します */
@media screen and (min-width: 960px) {
    .parent-menu-pc {
        position: static !important;
    }
    .parent-menu-pc .sub-menu {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100vw !important; /* PCでは画面いっぱい */
        padding: 0;
        margin: 0;
    }
    .parent-menu-pc .sub-menu a:before { display: none; }
    .parent-menu-pc .sub-menu a:hover { background-color: unset; }
}

/* 3. スマホ表示の見出し調整（＞を消す） */
/* no-link または parent-menu-sp につけている見出し用 */
.p-spMenu .no-link > a::before,
.p-spMenu .no-link > a::after {
    display: none !important;
}
.p-spMenu .no-link > a {
    pointer-events: none;
    font-weight: bold;
    background-color: #f7f7f7;
    padding-left: 15px !important;
}

/* 4. その他（アイコンなど：ここは残す） */
.wp-block-categories > .cat-item-12>a::before { content: "\e915"; }
.wp-block-categories > .cat-item-14>a::before { content: "\e91d"; }
.wp-block-categories > .cat-item-7 > a::before { content: "\e91a"; }

.is-style-clmn-shadow > .swell-block-columns__inner > .swell-block-column {
    border-radius: 15px;
    overflow: hidden;
}
/*マウスホバー時のアンダーラインを削除*/
.c-gnav .parent-menu-pc a::after {
width: 0%;
}
/*角丸*/
.radius {
    border-radius: 15px; /* 角丸の半径を設定 */
    overflow: hidden; /* 角丸が正しく表示されるようにする */
}
/*余白設定*/
.zero-margin {
	margin:0px!important;
}
.zero-padding {
	padding:0px!important;
}
.post_content h3 {
	margin:1em 0;
}
#content {
	margin-bottom:0px;
}

/* --- 不要な空aタグの削除設定 --- */

/* 1. PCメニュー内 (parent-menu-pc) の空タグを掃除 */
.parent-menu-pc a:empty:not(.no-link),
.parent-menu-pc a:not(:has(*)):not(.no-link) {
    display: none !important;
}

/* 2. ブログパーツ内 (p-blogParts) で発生する空タグを掃除 */
/* スマホメニュー（.p-spMenu）には干渉しないように指定 */
.p-blogParts a:empty:not(.no-link),
.p-blogParts a:not(:has(*)):not(.no-link) {
    display: none !important;
}

/* 3. href属性が空のリンクも、上記2つのエリア内でのみ制限して消す */
.parent-menu-pc a[href=""]:not(:has(*)):not(.no-link),
.p-blogParts a[href=""]:not(:has(*)):not(.no-link) {
    display: none !important;
}
/* ブログパーツ内のaタグのpaddingを0にする */
.p-blogParts .sub-menu a,
.p-blogParts a {
    padding-left: 0 !important;
}
.menu-item-113 a {
    padding: 0px !important;
}
.menu-item-117 a {
    padding: 0px !important;
}
