@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&family=Inter:wght@400;500;600;700&family=Caveat:wght@500;700&display=swap');

:root {
    --primary:      #4a90e2;
    --primary-dark: #357abd;
    --secondary:    #7ed6df;
    --accent-bg:    #e0f7fa;
    --text:         #333;
    --text-light:   #666;
    --white:        #fff;
    --shadow:       0 8px 24px rgba(74,144,226,0.08);
    --shadow-lg:    0 20px 50px rgba(74,144,226,0.1);
    --radius:       12px;
    --radius-lg:    20px;
    --font:         'Zen Maru Gothic', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* 大外背景：ヒーローと同系色に統一 */
html {
    background: #c4ecf8;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 16px;
}

/* White ring around body */
body::before {
    content: none;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    isolation: isolate;
    overflow-x: hidden;
    overflow-y: visible !important;
}

.bn-outer {
    background: var(--white);
    border-radius: 16px;
    isolation: isolate;
    border: 12px solid #ffffff;
}

@media (max-width: 768px) {
    .bn-mobile-btn { display: block; }
    .bn-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 16px 24px; z-index: 99; }
    .bn-nav.open { display: block; }
    .bn-nav-list { flex-direction: column; gap: 12px; }

    .bn-hero { padding: 40px 20px 40px; }
    .bn-hero-title { font-size: 1.8rem; }
    .bn-hero-cards { position: relative; bottom: auto; padding: 0 16px; margin-top: -60px; padding-bottom: 40px; }
    .bn-hero-card { width: 100%; max-width: 100%; box-sizing: border-box; }

    .bn-main { grid-template-columns: 1fr; padding: 24px 16px; }
    .bn-post { flex-direction: column; }
    .bn-post-thumb { width: 100%; }
    .bn-post-img { width: 100%; height: 200px; }

    .bn-footer-links { gap: 12px; }
    .bn-footer-copy { flex-direction: column; text-align: center; }

    .bn-logo-text { flex-direction: column; align-items: flex-start; gap: 2px; }
    .bn-logo-sub { display: none; }
    .bn-hero-sub { white-space: normal; }
}

/* ============================================================
   ヘッダー
============================================================ */
.bn-header {
    background: linear-gradient(160deg, #c4ecf8 0%, #b8e8f4 100%);
    padding: 0 2rem;
    border-bottom: 6px solid rgba(255,255,255,0.95);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bn-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.bn-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.bn-logo-img { height: 40px; width: auto; }
.bn-logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.bn-logo-main {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a5a7a;
    white-space: nowrap;
}
.bn-logo-sub {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3a7a9a;
    white-space: nowrap;
    display: none;
}
.bn-header .bn-logo a { color: #1a5a7a; }

.bn-nav-list { list-style: none; display: flex; gap: 1.5rem; }
.bn-nav-list li a { font-size: 12px; font-weight: 500; color: rgba(30,80,120,0.85); text-decoration: none; transition: color 0.3s; }
.bn-nav-list li a:hover { color: var(--primary); }

.bn-mobile-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ============================================================
   ヒーロー
============================================================ */
.bn-hero-wrap {
    position: relative;
    background:
        radial-gradient(at 0% 0%, rgba(196,236,248,1) 0%, transparent 55%),
        radial-gradient(at 100% 0%, rgba(168,223,240,0.85) 0%, transparent 55%),
        radial-gradient(at 30% 60%, rgba(157,218,236,0.7) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(204,240,228,1) 0%, transparent 55%),
        #d8f2f8;
    overflow: visible;
    padding-bottom: 60px;
}

.bn-hero {
    padding: 56px 40px 100px;
    text-align: center;
    position: relative;
}

.bn-hero-text { position: relative; z-index: 2; margin-bottom: 6px; }

.bn-hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(74,144,226,0.3);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.bn-hero-sub {
    font-size: 13px;
    color: #1a3a5c;
    margin-bottom: 24px;
    font-weight: 500;
}

.bn-services-btn {
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.92);
    color: #222;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(74,144,226,0.25), 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 4px;
}



/* 大波 */
.bn-hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0,110 C200,45 420,170 660,90 C900,10 1080,150 1200,80 L1200,200 L0,200 Z' fill='%237ed6df' opacity='0.45'/%3E%3C/svg%3E") bottom/100% 150px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0,132 C240,62 460,175 700,96 C940,16 1090,155 1200,90 L1200,200 L0,200 Z' fill='%234a90e2' opacity='0.22'/%3E%3C/svg%3E") bottom/100% 150px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0,152 C180,82 370,168 620,102 C860,30 1080,158 1200,96 L1200,200 L0,200 Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom/100% 150px no-repeat;
}

.bn-hero-waves svg { display: none; }

/* カード */
.bn-hero-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 0 40px;
    flex-wrap: wrap;
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: -40px;
    padding-bottom: 16px;
}

.bn-hero-card {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-lg);
    padding: 36px 36px;
    width: 300px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.bn-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    color: inherit;
}

.bn-hero-card-icon {
    margin-bottom: 16px;
}

.bn-hero-card-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    background: #e8f4f8;
    border-radius: 12px;
    padding: 10px;
    width: 120px;
    height: 120px;
}

.bn-hero-card:last-child .bn-hero-card-icon img {
    width: 120px;
    height: 120px;
}

.bn-hero-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin-bottom: 4px;
}

.bn-hero-card-text {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================
   パンくずリスト
============================================================ */
.bn-breadcrumb {
    background: rgba(224,247,250,0.5);
    border-bottom: 1px solid rgba(126,214,223,0.2);
    padding: 10px 0;
}

.bn-breadcrumb-inner {
    max-width: 100%;
    padding: 0 32px;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bn-breadcrumb-inner a {
    color: var(--primary);
    text-decoration: none;
}

.bn-breadcrumb-inner a:hover { text-decoration: underline; }
.bn-breadcrumb-sep { color: var(--text-light); }

/* ============================================================
   メインコンテンツ（カードの分だけ上マージン）
============================================================ */
.bn-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    padding: 40px 40px 40px;
    background: var(--white);
}

.bn-single,
.bn-page {
    padding-top: 32px !important;
}

/* ============================================================
   記事リスト
============================================================ */
.bn-post {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(126,214,223,0.2);
    transition: background 0.2s;
    border-radius: var(--radius);
}

.bn-post:hover { background: rgba(224,247,250,0.3); padding-left: 8px; padding-right: 8px; }

.bn-post-thumb { flex-shrink: 0; width: 130px; }
.bn-post-img { width: 130px; height: 95px; object-fit: cover; border-radius: var(--radius); }

.bn-post-body { flex: 1; }

.bn-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.bn-post-date { font-size: 12px; color: var(--text-light); }

.bn-post-cat {
    font-size: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.bn-post-cat:hover { background: var(--primary-dark); color: var(--white); }

.bn-post-title { font-size: 1rem; font-weight: bold; margin-bottom: 8px; line-height: 1.5; }
.bn-post-title a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.bn-post-title a:hover { color: var(--primary); }

.bn-post-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.bn-post-excerpt p { margin: 0; }

/* ページネーション */
.bn-pagination { margin-top: 32px; text-align: center; }
.bn-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bn-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    border: 1.5px solid rgba(74,144,226,0.3); color: var(--primary);
    font-size: 14px; text-decoration: none; transition: all 0.2s;
}
.bn-pagination .page-numbers.current,
.bn-pagination .page-numbers:hover { background: var(--primary); color: var(--white); border-color: transparent; }

/* ============================================================
   サイドバー
============================================================ */
.bn-sidebar { min-width: 0; }
.bn-widget {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 24px;
    border: none;
    padding: 0;
}
.bn-widget-title {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); font-size: 13px; font-weight: 600; padding: 12px 16px;
}

/* ============================================================
   個別記事・固定ページ
============================================================ */
.bn-single, .bn-page { padding-top: 40px; }

.bn-single-meta, .bn-page-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.bn-single-title { font-size: 1.6rem; font-weight: bold; color: var(--primary); margin-bottom: 24px; line-height: 1.4; }
.bn-single-thumb, .bn-page-thumb { margin-bottom: 24px; border-radius: var(--radius-lg); overflow: hidden; }
.bn-single-img, .bn-page-img { width: 100%; height: auto; }
.bn-single-content, .bn-page-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.bn-single-content h2, .bn-page-content h2 { font-size: 1.3rem; color: var(--primary); border-left: 4px solid var(--primary); padding-left: 12px; margin: 32px 0 16px; }
.bn-single-content p, .bn-page-content p { margin-bottom: 16px; }
.bn-single-content img, .bn-page-content img { border-radius: var(--radius); margin: 16px 0; }

.bn-page-title { font-size: 1.8rem; font-weight: bold; color: var(--primary); margin-bottom: 24px; border-bottom: 3px solid var(--secondary); padding-bottom: 12px; }

.bn-single-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(126,214,223,0.3); gap: 16px; }
.bn-nav-prev, .bn-nav-next { font-size: 13px; color: var(--primary); text-decoration: none; max-width: 48%; }

/* ============================================================
   フッター
============================================================ */
.bn-footer { margin-top: 2rem; }

/* フッターウィジェットエリア：白背景 */
.bn-footer-widgets {
    background: #f8fcfe;
    padding: 2rem;
    border-top: 1px solid rgba(126,214,223,0.2);
}

.bn-footer-widget { margin-bottom: 16px; }
.bn-footer-widget-title {
    font-size: 11px; font-weight: 600; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(126,214,223,0.3);
}

/* コピーライトエリア：青背景 */
.bn-footer-copy {
    background: var(--primary);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.bn-footer-copy p { font-size: 11px; color: rgba(255,255,255,0.6); }
.bn-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.bn-footer-links a { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.bn-footer-links a:hover { color: var(--white); }
.bn-footer-sns a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; }
.bn-footer-sns a:hover { color: var(--white); }

/* ============================================================
   モバイル
============================================================ */
@media (max-width: 768px) {
    .bn-mobile-btn { display: block; }
    .bn-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 16px 24px; z-index: 99; }
    .bn-nav.open { display: block; }
    .bn-nav-list { flex-direction: column; gap: 12px; }
    .bn-hero { padding: 40px 20px 0; }
    .bn-hero-title { font-size: 1.8rem; }
    .bn-hero-cards { position: relative; bottom: auto; padding: 0 16px; margin-top: 20px; }
    .bn-main { grid-template-columns: 1fr; padding: 24px 16px; }
    .bn-post { flex-direction: column; }
    .bn-post-thumb { width: 100%; }
    .bn-post-img { width: 100%; height: 200px; }
    .bn-footer-links { gap: 12px; }
    .bn-footer-copy { flex-direction: column; text-align: center; }
    .bn-logo-sub { display: none; }
    .bn-hero-card { width: 100%; max-width: 100%; box-sizing: border-box; }
}

/* 会社概要ページ - アイキャッチ非表示 */
.page-id-72 .bn-page-thumb {
    display: none;
}
