@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
*/

/* ==========================================================
   HEADER
   ========================================================== */

/* ヘッダー全体（SWELLのdata-spfix="1"によるfixed上書きを防ぐため属性セレクタで同等以上の詳細度） */
.l-header,
.l-header[data-spfix="1"],
[data-scrolled="true"] .l-header[data-spfix="1"],
[data-scrolled="false"] .l-header[data-spfix="1"] {
    background: #fff !important;
    border-bottom: none !important;
    box-shadow: none !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    transform: none !important;
    transition: none !important;
}

/* 管理バー表示中（ログイン時）：top を管理バー分ずらす */
.admin-bar .l-header,
.admin-bar .l-header[data-spfix="1"] {
    top: 32px !important;
}

@media (max-width: 782px) {
    .admin-bar .l-header,
    .admin-bar .l-header[data-spfix="1"] {
        top: 46px !important;
    }
}

/* 固定ヘッダーは非表示（メインヘッダーをstickyで代用） */
#fix_header {
    display: none !important;
}

/* ヘッダー内レイアウト：ロゴ中央・メニューボタン右 */
.l-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 20px;
    /* ロゴ3行(22px×1.4×3行) + ONLINE + 余白 */
    min-height: 110px;
}

/* ロゴエリアを上寄せ配置 */
.l-header__logo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.l-header__logo a,
.l-header__logo .c-headLogo {
    pointer-events: auto;
}

/* テキストロゴのスタイル */
.c-headLogo__link {
    display: block !important;
    font-size: 22px !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    color: #333 !important;
    text-align: center;
    white-space: normal !important;
    word-break: break-all !important;
    /* letter-spacing無し: 全角4文字 = 4em で折り返し */
    width: 4.1em;
    padding: 0 !important;
    margin: 0 !important;
}

/* CSSで「ONLINE」をロゴ下に追加 */
.c-headLogo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.c-headLogo::after {
    content: "ONLINE";
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    text-align: center;
    color: #333;
    font-weight: 400;
    margin: 5px 0;
}

/* SWELLのキャッチフレーズ（::afterで追加するため非表示） */
.c-catchphrase {
    display: none !important;
}

/* グローバルナビを非表示（ドロワーのみ使用） */
.l-header__gnav {
    display: none !important;
}

/* カスタムボタンエリアを非表示 */
.l-header__customBtn {
    display: none !important;
}

/* ハンバーガーメニューボタンを右上に配置 */
.l-header__menuBtn {
    margin-left: auto;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 2;
    width: auto !important;
    height: auto !important;
}

/* ハンバーガーボタンを黒丸スタイルに */
.l-header__menuBtn .c-iconBtn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.l-header__menuBtn .c-iconBtn .c-iconBtn__icon {
    font-size: 18px;
    color: #fff;
}

/* ==========================================================
   SINGLE（個別記事）
   ========================================================== */

/* 記事本文 見出し */
.post_content h2,
.post_content h3,
.post_content h4,
.post_content h5,
.post_content h6 {
    border: none !important;
    background: none !important;
    color: #000 !important;
    font-weight: 700 !important;
}

.post_content h2::before,
.post_content h2::after,
.post_content h3::before,
.post_content h3::after,
.post_content h4::before,
.post_content h4::after,
.post_content h5::before,
.post_content h5::after,
.post_content h6::before,
.post_content h6::after {
    display: none !important;
    border: none !important;
    background: none !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
}

/* 目次 */
.p-toc {
    background: #fff !important;
    border: 1px solid #222 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.p-toc__ttl {
    text-align: left !important;
}

/* 個別記事のl-content上部余白：ロゴ上の余白(top:10px)に合わせる */
.single .l-content {
    padding-top: 10px !important;
}

/* アイキャッチ：全幅・余白なし（SP） */
.p-single__thumb {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* アイキャッチ：PC はコンテンツ幅の2/3・中央寄せ */
@media (min-width: 768px) {
    .p-single__thumb {
        width: 66.67%;
        left: auto;
        transform: none;
        margin: 0 auto;
    }
}

.p-single__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* タイトル・メタ：中央寄せ */
.p-single__head {
    text-align: center;
    padding: 24px var(--swl-pad_container, 4vw) 16px;
    max-width: 640px;
    margin: 0 auto;
}

.p-single__title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin: 0 0 12px;
}

.p-single__meta {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.05em;
}

/* ==========================================================
   SLIDER（メインビジュアル）
   ========================================================== */
#main_visual {
    margin-bottom: 50px;
}

/* ズームアニメーション */
@keyframes mv-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* 全スライド：ズーム済み状態をデフォルトに */
.p-mainVisual__img {
    transform: scale(1.08);
}

/* アクティブになったスライドだけアニメーション */
.swiper-slide-active .p-mainVisual__img {
    animation: mv-zoom 8s linear forwards;
}

/* --- スライド全体 --- */
.p-mainVisual__slide {
    display: block !important;
    position: relative !important;
    overflow: visible !important;
}

/* 画像エリア：正方形 */
.p-mainVisual__imgLink {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.p-mainVisual__imgLayer {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.p-mainVisual__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* テキストエリア */
.p-mainVisual__textLayer {
    display: block !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 75% !important;
    height: auto !important;
    z-index: 3;
    background: transparent !important;
    border: none !important;
    margin: -40px auto 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    color: inherit;
    clip-path: inset(-3px 100% -3px -3px);
    will-change: clip-path;
}

/* カテゴリ | 日付：タブ部分（上・左・右ボーダー） */
.p-mv__meta {
    display: block;
    margin-bottom: -2px;
    /* slideTitleのborder-topにmetaを1px重ねて隠す */
    font-size: 0;
    position: relative;
    z-index: 1;
    /* slideTitleのborder-topより前面に */
}

#mv-meta-inner {
    display: inline-block;
    background: #fff;
    padding: 3px 10px;
    border: 1.5px solid #222;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #888;
    letter-spacing: 0.05em;
}

/* タイトルコンテナ：本体ボックス（全辺ボーダー・上左角だけ角なし） */
.p-mainVisual__slideTitle {
    display: block !important;
    overflow: hidden !important;
    height: calc(22px * 1.4 * 2) !important;
    margin: 0 !important;
    padding: 0 10px !important;
    background: #fff !important;
    border: 1.5px solid #222 !important;
    border-radius: 0 10px 10px 10px !important;
    box-sizing: border-box !important;
}

#mv-title {
    display: block !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #222 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.5px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

/* fixLineBreakで挿入したnowrapスパン */
#mv-title span[style] {
    white-space: nowrap;
}

/* ページネーション：テキストの下・シンプルな丸ドット */
#mv-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    z-index: 4;
}

#mv-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    opacity: 1;
    margin: 0 !important;
    transition: background 0.3s;
}

#mv-pagination .swiper-pagination-bullet-active {
    background: #333;
}

/* ==========================================================
   POST LIST（記事一覧）
   ========================================================== */

/* SP：1カラム */
.p-postList {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 var(--swl-pad_container, 4vw) !important;
}

/* PC：2カラム */
@media (min-width: 768px) {
    .p-postList {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 -4px !important;
    }

    .p-postList__item {
        width: 50% !important;
        box-sizing: border-box !important;
        padding: 4px !important;
    }

    /* サイドバーを細く・メインとの余白を詰める */
    :root {
        --swl-sidebar_width: 200px !important;
        --swl-sidebar_margin: 40px !important;
    }

    /* l-contentの上下余白を詰める */
    .l-content {
        padding-top: 1em !important;
        margin-bottom: 3em !important;
    }

    /* 記事一覧エリアの上マージンを詰める */
    .p-homeContent {
        margin-top: 16px !important;
    }
}

.p-postList__item {
    list-style: none !important;
}

/* カードリンク */
.p-postList__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 画像を正方形・角丸に */
.p-postList__thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
}

.c-postThumb__figure {
    margin: 0;
    height: 100%;
}

.c-postThumb__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s ease;
}

/* ホバーで画像ズーム */
.p-postList__link:hover .c-postThumb__img {
    transform: scale(1.05);
}

/* テキストレイヤー：画像と同じ幅・縦位置はそのまま */
.p-postList__textLayer {
    width: 100%;
    margin: -44px 0 0 0;
    position: relative;
    z-index: 2;
}

/* メタタブ */
.p-postList__metaTab {
    display: block;
    margin-bottom: -2px;
    font-size: 0;
    position: relative;
    z-index: 1;
}

.p-postList__metaInner {
    display: inline-block;
    background: #fff;
    padding: 3px 8px;
    border: 1.5px solid #222;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #888;
    letter-spacing: 0.05em;
}

/* タイトルボックス */
.p-postList__titleBox {
    background: #fff;
    border: 1.5px solid #222;
    border-radius: 0 10px 10px 10px;
    padding: 5px 10px;
    box-sizing: border-box;
}

.p-postList__title {
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    color: #222 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* body/meta/excerpt は使わないので非表示 */
.p-postList__body,
.p-postList__meta,
.p-postList__excerpt {
    display: none !important;
}

/* 関連記事：2カラム（SP） */
.p-relatedPosts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 -4px !important;
}

.p-relatedPosts .p-postList__item {
    width: 50% !important;
    box-sizing: border-box !important;
    padding: 4px !important;
}

/* 関連記事：4カラム1行（PC） */
@media (min-width: 768px) {
    .p-relatedPosts .p-postList__item {
        width: 25% !important;
    }
}

/* タイトルのみのタイトルボックス（メタタブなし） */
.p-postList__titleBox.-related {
    border-radius: 10px !important;
}

.p-relatedPosts .p-postList__textLayer {
    margin-top: -22px !important;
}

.p-relatedPosts .p-postList__title {
    font-size: 14px !important;
}

/* VIEW MORE ボタン */
#load-more-wrap {
    text-align: center;
    margin: 40px 0 20px;
}

#load-more-btn {
    display: inline-block;
    background: transparent;
    color: #222;
    border: 1.5px solid #222;
    border-radius: 999px;
    padding: 10px 40px;
    font-size: 12px;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#load-more-btn:hover {
    background: #222;
    color: #fff;
}

#load-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ==========================================================
   PC：メインビジュアル 2カラム
   ========================================================== */
@media (min-width: 768px) {
    #main_visual {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        margin-bottom: 60px;
        max-width: var(--swl-width_container, 1200px);
        margin-left: auto;
        margin-right: auto;
    }

    /* 右：画像 60% */
    .p-mainVisual__inner {
        order: 2;
        width: 60%;
        flex-shrink: 0;
        padding-right: 40px;
        box-sizing: border-box;
    }

    /* 画像：正方形 */
    .p-mainVisual__imgLink {
        aspect-ratio: 1 / 1 !important;
        height: auto;
    }

    /* 左：テキスト 40% */
    .p-mainVisual__textLayer {
        order: 1;
        width: 40% !important;
        margin: 0 !important;
        padding: 40px 40px 60px !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        clip-path: inset(-3px 100% -3px -3px);
    }

    /* タイトルボックスの幅をフルに */
    .p-mainVisual__slideTitle {
        height: auto !important;
    }

    #mv-title {
        font-size: 24px !important;
        -webkit-line-clamp: 4 !important;
        line-clamp: 4 !important;
    }

    /* ページネーション：2カラムの下・中央 */
    #mv-pagination {
        position: static !important;
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 16px 0;
    }
}

/* デスクトップでもハンバーガーボタンを表示 */
@media (min-width: 768px) {
    .l-header__menuBtn {
        display: flex !important;
    }

    .l-header__inner {
        min-height: 160px;
        padding: 20px 32px;
    }

    .l-header__logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .c-headLogo__link {
        display: block !important;
        font-size: 26px !important;
        width: 4.1em;
        word-break: break-all !important;
    }

    .c-headLogo::after {
        font-size: 10px;
        letter-spacing: 3px;
        margin: 5px 0;
    }

    .l-header__menuBtn {
        top: 24px;
        right: 32px;
    }

    .l-header__menuBtn .c-iconBtn {
        width: 44px;
        height: 44px;
    }

    .l-header__menuBtn .c-iconBtn .c-iconBtn__icon {
        font-size: 20px;
    }
}

/* ==========================================================
   SP MENU（ハンバーガーメニューオーバーレイ）
   ========================================================== */

/* ヘッダー下から画面いっぱいを覆うフルスクリーンパネル */
#sp_menu.p-spMenu {
    display: block !important;
    top: var(--swl-headerH, 110px) !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100dvh - var(--swl-headerH, 110px)) !important;
    background: #fff !important;
    transition: opacity 0.35s ease, transform 0.35s ease !important;
}

/* 閉じているとき：フェード＋少し上に */
[data-spmenu="closed"] #sp_menu.p-spMenu {
    opacity: 0 !important;
    transform: translateY(-12px) !important;
    pointer-events: none !important;
    transition-delay: 0s !important;
}

/* 開いているとき：フェードイン＋定位置へ */
[data-spmenu="opened"] #sp_menu.p-spMenu {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition-delay: 0s !important;
}

/* innerをフルサイズ・スライドなしに */
.p-spMenu__inner {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    background: #fff !important;
    overflow-y: auto;
}

[data-spmenu="opened"] .p-spMenu__inner {
    transform: none !important;
}

/* innerの疑似要素（背景オーバーレイ）を非表示 */
.p-spMenu__inner::before {
    display: none !important;
}

/* 背景オーバーレイ・内部の閉じるボタンは不要 */
.p-spMenu__overlay {
    display: none !important;
}

.p-spMenu__closeBtn {
    display: none !important;
}

/* メニューが開いているとき：ハンバーガーアイコンを×に変える */
[data-spmenu="opened"] .l-header__menuBtn .c-iconBtn__icon::before {
    content: "\e920" !important;
}

.p-spMenu__body {
    position: relative !important;
    z-index: 1 !important;
    height: auto !important;
    overflow-y: visible !important;
    padding: 0 var(--swl-pad_container, 4vw) 4vw !important;
}

.p-spMenu__nav .c-spnav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.p-spMenu__nav .c-spnav li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #222;
    text-decoration: none;
    letter-spacing: 0.02em;
}

/* ==========================================================
   PAGINATION
   ========================================================== */
.c-pagination {
    display: none !important;
}

/* ==========================================================
   SIDEBAR
   ========================================================== */

/* 不要ウィジェットを非表示 */
.l-sidebar .widget_search,
.l-sidebar .widget_recent_entries,
.l-sidebar .widget_recent_comments,
.l-sidebar [class*="recent_entries"],
.l-sidebar [class*="recent_comments"],
.l-sidebar [class*="recent-posts"],
.l-sidebar [class*="recent-comments"],
.l-sidebar .wp-block-latest-posts,
.l-sidebar .wp-block-latest-comments {
    display: none !important;
}

/* カテゴリーをアーカイブの上に */
.l-sidebar {
    display: flex;
    flex-direction: column;
}

.l-sidebar .widget_categories {
    order: 1;
}

.l-sidebar .widget_archive {
    order: 2;
}

/* ==========================================================
   FOOTER
   ========================================================== */

/* フッターロゴ：SP（縦積み） */
.l-footer__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.l-footer__logoLink {
    font-size: 22px;
    letter-spacing: 0;
    line-height: 1.2;
    font-weight: 400;
    color: inherit;
    text-align: center;
    white-space: normal;
    width: 4.1em;
    text-decoration: none;
    word-break: break-all;
}

.l-footer__online {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    text-align: center;
    font-weight: 400;
    margin: 5px 0 0;
}

/* SP：PC用グループを非表示 */
.l-footer__pcLeft,
.l-footer__pcRight {
    display: none;
}

/* PC：フッター1行レイアウト */
@media (min-width: 768px) {
    .l-footer__foot,
    .l-footer__foot * {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        line-height: 1 !important;
    }

    .l-footer__foot .l-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 32px !important;
    }

    /* SNSアイコンのリストの余白も除去 */
    .l-footer__pcLeft .c-iconList {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .l-footer__pcLeft .c-iconList__item {
        display: flex;
        align-items: center;
    }

    .l-footer__pcLeft .c-iconList__link {
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        height: auto !important;
        display: flex;
        align-items: center;
    }

    .l-footer__spOnly {
        display: none !important;
    }

    /* 左：ロゴ + ONLINE + SNS */
    .l-footer__pcLeft {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .l-footer__logo {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 0;
    }

    .l-footer__logoLink {
        white-space: nowrap;
        width: auto;
        font-size: 11px;
        text-align: left;
        letter-spacing: 0.05em;
    }

    .l-footer__online {
        display: inline;
        font-size: 11px;
        letter-spacing: 0.05em;
        margin: 0;
    }

    /* SNSアイコンもフォントサイズ統一 */
    .l-footer__pcLeft .u-fz-28 {
        font-size: 11px !important;
    }

    /* 右：about | contact */
    .l-footer__pcRight {
        display: flex;
        align-items: center;
        gap: 0;
        font-size: 11px;
        letter-spacing: 0.05em;
    }

    .l-footer__pcLink {
        color: inherit;
        text-decoration: none;
    }

    .l-footer__pcLink:hover {
        text-decoration: underline;
    }

    .l-footer__pcSep {
        margin: 0 6px;
        color: #aaa;
    }

    /* コピーライトはPC非表示（1行に収めるため） */
    .l-footer__foot .copyright {
        display: none !important;
    }
}

/* SNSアイコンを倍サイズ（u-fz-28 クラス） */
.u-fz-28 {
    font-size: 28px;
}

/* フッターリンク（aboutとお問い合わせ） */
.l-footer__contact {
    margin: 20px 0 0;
    text-align: center;
}

.l-footer__contact+.l-footer__contact {
    margin-top: 1px;
}

.l-footer__contact+.copyright {
    margin-top: 20px;
}

.l-footer__contact a {
    font-size: 11px;
    letter-spacing: 0.05em;
    color: inherit;
    text-decoration: none;
}

/* コピーライト */
.copyright {
    font-size: 9px !important;
    letter-spacing: 0.05em;
}

/* アイコン円の余白調整 */
.l-footer__foot .c-iconList__link {
    margin: 6px;
    padding: 8px;
}

