/*
Theme Name: SWELL Child
Template: swell
*/

/* ---- 「トップに戻る」ボタンをreCAPTCHAバッジと被らない位置にずらす ---- */
.p-fixBtnWrap {
    bottom: 80px !important;
}

/* ---- reCAPTCHAバッジがフッター等の背後に隠れないようにする ---- */
.grecaptcha-badge {
    z-index: 999 !important;
}

/* ---- セミナー一覧 ---- */
.p-seminarItem {
    padding: 32px 0;
}

.p-seminarItem__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.p-seminarItem__title a {
    color: var(--color_main);
    text-decoration: none;
}

.p-seminarItem__title a:hover {
    text-decoration: underline;
}

.p-seminarItem__meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.p-seminarItem__content {
    font-size: 15px;
    line-height: 1.8;
}

.p-seminarItem__more {
    margin-top: 16px;
    text-align: right;
}

.p-seminarItem__more a {
    display: inline-block;
    padding: 6px 20px;
    background: var(--color_main);
    color: #fff;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
}

.p-seminarItem__more a:hover {
    opacity: 0.8;
}

.p-seminarItem__divider {
    border: none;
    border-top: 1px solid #dce8ec;
    margin: 0;
}

.p-seminarItem__divider:last-of-type {
    display: none;
}

.p-seminarPager {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.p-seminarPager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    background: #e8e8e8;
    color: #333;
    transition: background 0.15s, color 0.15s;
}

.p-seminarPager .page-numbers:hover {
    background: var(--color_main);
    color: #fff;
}

.p-seminarPager .page-numbers.current {
    background: var(--color_main);
    color: #fff;
    font-weight: 700;
}

.p-seminarPager .page-numbers.dots {
    background: transparent;
    cursor: default;
}

/* ---- サイドバー：セクション見出し ---- */
#sidebar h2 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: none;
    padding: 0 0 8px 0;
    margin: 0 0 12px 0;
    border-radius: 0;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

/* 左側の太い短い線 */
#sidebar h2::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30%;
    height: 2px;
    background: #333;
    z-index: 1;
}

#sidebar .c-widget__title.-side {
    margin-bottom: 12px;
}

/* ---- サイドバー：ナビメニュー（h2直下ul / c-listMenu / widget_nav_menu 共通）---- */
#sidebar > ul li a,
#sidebar .c-listMenu a,
#sidebar .widget_nav_menu ul li a {
    display: block !important;
    padding: 12px 12px 12px 28px !important;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    position: relative;
    border-bottom: 1px solid #ddd !important;
    line-height: 1.5;
    transition: color 0.15s, padding-left 0.15s;
    background-color: transparent !important;
}

/* 文頭アイコン（›） */
#sidebar > ul li a::before,
#sidebar .c-listMenu a::before,
#sidebar .widget_nav_menu ul li a::before {
    content: "›" !important;
    font-family: inherit !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #333 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: auto !important;
}

/* ホバー */
#sidebar > ul li a:hover,
#sidebar .c-listMenu a:hover,
#sidebar .widget_nav_menu ul li a:hover {
    color: var(--color_main) !important;
    padding-left: 32px !important;
    background-color: transparent !important;
}

#sidebar > ul li a:hover::before,
#sidebar .c-listMenu a:hover::before,
#sidebar .widget_nav_menu ul li a:hover::before {
    color: var(--color_main) !important;
}

/* 現在のページをハイライト */
#sidebar > ul li.current-menu-item > a,
#sidebar > ul li.current_page_item > a,
#sidebar .widget_nav_menu ul li.current-menu-item > a,
#sidebar .widget_nav_menu ul li.current_page_item > a {
    color: var(--color_main) !important;
    font-weight: 700;
}

#sidebar > ul li.current-menu-item > a::before,
#sidebar > ul li.current_page_item > a::before,
#sidebar .widget_nav_menu ul li.current-menu-item > a::before,
#sidebar .widget_nav_menu ul li.current_page_item > a::before {
    color: var(--color_main) !important;
    font-weight: 700 !important;
}

/* 子ページ（サブメニュー）は文頭を1文字分下げる */
#sidebar > ul .sub-menu a,
#sidebar .c-listMenu .sub-menu a,
#sidebar .widget_nav_menu .sub-menu a {
    padding-left: 44px !important;
}

#sidebar > ul .sub-menu a::before,
#sidebar .c-listMenu .sub-menu a::before,
#sidebar .widget_nav_menu .sub-menu a::before {
    left: 26px !important;
}

#sidebar > ul .sub-menu a:hover,
#sidebar .c-listMenu .sub-menu a:hover,
#sidebar .widget_nav_menu .sub-menu a:hover {
    padding-left: 48px !important;
}

/*
.c-postThumb__cat[data-cat-id="41"] {
    background-color: #004f9d;
}
*/

/* トップページ フルワイドブロック対応 */
.l-mainContent.l-article {
    overflow: visible;
}
.post_content .wp-block-group.alignfull,
.post_content .wp-block-cover.alignfull,
.post_content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ---- グローバルメニュー：背景色 ---- */
#gnav {
    background-color: #4586B2;
}

/* ---- グローバルメニュー：アイコン ---- */
#gnav .c-gnav > li > a {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    color: #fff;
    transition: background-color 0.2s, color 0.2s;
}

#gnav .c-gnav > li > a:hover,
#gnav .c-gnav > li.current-menu-item > a,
#gnav .c-gnav > li.current_page_item > a,
#gnav .c-gnav > li.current-menu-parent > a,
#gnav .c-gnav > li.current-menu-ancestor > a {
    background-color: #fff;
    color: #4586B2;
}

#gnav .c-gnav a::after {
    background: #4586B2;
    height: 4px;
}

#gnav .c-gnav > li > a::before,
#fix_header .c-gnav > li > a::before {
    content: "\e921";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background-color: #fff;
    color: #4586B2;
    font-family: icomoon !important;
    font-size: 11px;
    line-height: 1;
    font-style: normal;
    font-weight: 700;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke: 0.6px #4586B2;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s, -webkit-text-stroke-color 0.2s;
}

#gnav .c-gnav > li:first-child > a::before,
#fix_header .c-gnav > li:first-child > a::before {
    content: "\e922";
    font-size: 18px;
    background-color: transparent;
    -webkit-text-stroke: 0;
}

#gnav .c-gnav > li:first-child > a::before {
    color: #fff;
}

#fix_header .c-gnav > li:first-child > a::before {
    color: #4586B2;
}

#fix_header .c-gnav > li > a {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

#fix_header .c-gnav > li > a::before {
    background-color: #4586B2;
    color: #fff;
    -webkit-text-stroke-color: #fff;
}

#gnav .c-gnav > li > a:hover::before,
#gnav .c-gnav > li.current-menu-item > a::before,
#gnav .c-gnav > li.current_page_item > a::before,
#gnav .c-gnav > li.current-menu-parent > a::before,
#gnav .c-gnav > li.current-menu-ancestor > a::before {
    background-color: #4586B2;
    color: #fff;
    -webkit-text-stroke-color: #fff;
}

#gnav .c-gnav > li:first-child.current-menu-item > a::before,
#gnav .c-gnav > li:first-child.current_page_item > a::before {
    background-color: transparent;
    color: #4586B2;
}

#gnav .c-gnav > li:first-child > a:hover::before {
    background-color: transparent;
    color: #4586B2;
}

#fix_header .c-gnav > li > a {
    color: #333;
}

#fix_header .c-gnav a::after {
    background: #4586B2;
    height: 4px;
}

/* ---- ヘッダーボタン（お問合せ・ご入会）---- */
.w-header,
.l-header.-parallel .w-header {
    position: absolute !important;
    width: auto !important;
    top: 12px;
    left: auto !important;
    right: max(16px, calc((100vw - 1200px) / 2)) !important;
    z-index: 10;
}

.header-btns {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.header-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s;
    white-space: nowrap;
}

.header-btn:hover {
    opacity: 0.8;
    color: #fff;
}

.header-btn--contact {
    background-color: #215ca8;
}

.header-btn--join {
    background-color: #3aaa35;
}

/* ---- 固定ページ下部ナビボタン ---- */
.p-page-nav-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #ddd;
}

.p-page-nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #225ca8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #225ca8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, color 0.2s;
}

.p-page-nav-btn:hover {
    background-color: #225ca8;
    color: #fff;
}

.p-page-nav-btn.-current {
    background-color: #aaa;
    border-color: #aaa;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

/* ---- スマホメニュー：第一カテゴリ背景色 ---- */
#sp_menu .c-spnav > li > a,
#sp_menu .c-spnav > li > .c-listMenu__itemBtn {
    background-color: #eef4f8 !important;
    font-weight: 700 !important;
}

/* ---- スマホメニュー下部ボタン ---- */
#sp_menu .header-btn {
    color: #fff !important;
}

/* フッター直前ウィジェット センター寄せ */
#before_footer_widget .l-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Contact Form 7 スタイリング ---- */
.wpcf7 p {
    margin: 0 0 1.2em;
}
.wpcf7 p:has(> .wpcf7-form-control-wrap),
.wpcf7 p:has(> input[type="submit"]) {
    margin-bottom: 1.6em;
}

/* ラベル */
.wpcf7 p:not(:has(.wpcf7-form-control)) {
    font-size: 0.9em;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.3em;
}

/* テキスト・メール・TEL 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    width: 100%;
    padding: 0.65em 0.9em;
    border: 1px solid #c8d8dc;
    border-radius: 4px;
    font-size: 1em;
    color: #333;
    background: #f9fcfd;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus {
    outline: none;
    border-color: var(--color_main);
    box-shadow: 0 0 0 3px rgba(0,120,100,0.1);
    background: #fff;
}

/* テキストエリア */
.wpcf7 textarea {
    width: 100%;
    padding: 0.65em 0.9em;
    border: 1px solid #c8d8dc;
    border-radius: 4px;
    font-size: 1em;
    color: #333;
    background: #f9fcfd;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color_main);
    box-shadow: 0 0 0 3px rgba(0,120,100,0.1);
    background: #fff;
}

/* ラジオボタン */
.wpcf7 .wpcf7-list-item {
    display: block;
    margin: 0.3em 0;
}
.wpcf7 .wpcf7-list-item input[type="radio"] {
    accent-color: var(--color_main);
    margin-right: 0.4em;
    transform: scale(1.2);
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0.5em auto 0;
    padding: 0.8em 2em;
    background: #225ca8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.2s;
}
.wpcf7 input[type="submit"]:hover {
    opacity: 0.85;
}

/* バリデーションエラー */
.wpcf7 .wpcf7-not-valid {
    border-color: #e05555 !important;
}
.wpcf7 .wpcf7-not-valid-tip {
    font-size: 0.82em;
    color: #e05555;
    margin-top: 0.3em;
    display: block;
}

/* 送信結果メッセージ */
.wpcf7 .wpcf7-response-output {
    margin: 1em 0 0;
    padding: 0.7em 1em;
    border-radius: 4px;
    font-size: 0.9em;
    border: none;
}
.wpcf7-form.sent .wpcf7-response-output {
    background: #eaf6f0;
    color: #2a7a50;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background: #fdf0f0;
    color: #c0392b;
}

/* カード型投稿リスト 左右パディング調整 */
.-type-card .p-postList__item {
    padding: 0 1.25em;
}

/* フッターコピーライトの回り込み解除 */
.l-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
}
p.copyright {
    clear: both;
    display: block;
    width: 100%;
    text-align: center;
}

/* フルワイドブロック left: 0 上書き */
@media not all and (min-width: 960px) {
    .alignwide, .l-content .alignfull {
        left: 0;
    }
}

@media (min-width: 960px) {
    .alignwide, .l-content .alignfull {
        left: 0;
    }
}

@media (max-width: 599px) {
    .l-footer__nav {
        margin-bottom: 8px;
    }
    .l-footer__nav a {
        padding: 0 .4em;
        line-height: 2;
    }
    .l-footer__nav a::before {
        content: "\e921";
        font-family: icomoon !important;
        font-style: normal;
        font-weight: 400;
        font-size: 1.1em;
        color: #225ca8;
        margin-right: .3em;
        vertical-align: middle;
        line-height: 1;
    }
}

/* サブメニュー展開ボタンの枠を丸に変更 */
.c-submenuToggleBtn::after {
    border-radius: 50% !important;
    width: 80% !important;
    height: 80% !important;
    top: 10% !important;
    left: 10% !important;
}

/* ---- トップページ：スライダー下の余白を詰める ---- */
.top #content {
    padding-top: 2em;
}

/* ---- スクロール追従ヘッダーの背景色 ---- */
#fix_header.l-fixHeader::before {
    background: #E4E4E4;
}

/* ---- ページ最上部の帯 ---- */
#body_wrap {
    border-top: 5px solid #4586B2;
}

.swell-block-button__link {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s;
}

.swell-block-button__link:hover {
    background-color: #4586B2 !important;
}

.shadow_on > .wp-block-column {
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 6px 8px -4px rgba(0,0,0,.2);
}

.is-style-clmn-shadow > .swell-block-columns__inner > .swell-block-column {
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 6px 8px -4px rgba(0,0,0,.2);
}

/* ---- 文字に暗い光彩をつける（ブロックの「追加CSSクラス」に text-glow-dark を指定） ---- */
.text-glow-dark {
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.post_content dd>:last-child,
.post_content div>:last-child,
.post_content>:last-child {
    background: none;
}

.post_content div.c-postThumb__cat,
.post_content .c-postThumb__cat {
    background-color: var(--color_main) !important;
}

.post_content .bluebox {
    background-color: rgba(69, 134, 178, 0.7) !important;
}
