:root{
  --bg: #f6f1e8;
  --ink: #15252a;
  --muted: rgba(21,37,42,.70);
  --card: rgba(255,255,255,.86);
  --shadow: 0 24px 70px rgba(0,0,0,.12);
  --radius: 28px;
  --accent: #0f7b84;
  --max: 1180px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x:hidden;
}

/* fixed background */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index:-2;
  background-image: url("../img/hero-ocean-flow.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: saturate(1.05) contrast(1.02);
}
body::after{
  content:"";
  position: fixed;
  inset:0;
  z-index:-1;
  background: linear-gradient(180deg, rgba(246,241,232,.12) 0%, rgba(246,241,232,.84) 60%, rgba(246,241,232,1) 100%);
}

a{ color: inherit; }
.container{ width:min(var(--max), calc(100% - 48px)); margin-inline:auto; }
@media (max-width: 640px){ .container{ width: calc(100% - 28px);} }

.site-header{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(246,241,232,.72);
  border-bottom: 1px solid rgba(21,37,42,.08);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-mark{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(15,123,132,.22), rgba(15,123,132,.04));
  border: 1px solid rgba(15,123,132,.20);
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  font-weight: 800;
}
.brand-name{ font-weight:800; letter-spacing:.02em; }

.nav{ display:flex; align-items:center; gap:18px; }
.nav ul{ list-style:none; display:flex; align-items:center; gap:18px; margin:0; padding:0; }
.nav a{ text-decoration:none; font-weight:700; color: rgba(21,37,42,.82); padding:10px 10px; border-radius:12px; }
.nav a:hover{ background: rgba(15,123,132,.08); color: rgba(21,37,42,1); }

/* stop TOPICS button styling */
.nav .btn, .nav .menu-item.btn > a, .nav a.btn{
  background: transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.cta{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:999px;
  border: 1px solid rgba(15,123,132,.18);
  background: rgba(15,123,132,.10);
  text-decoration:none; font-weight:800;
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
}
.cta:hover{ background: rgba(15,123,132,.14); }

.nav-toggle{
  display:none;
  border: 1px solid rgba(21,37,42,.12);
  background: rgba(255,255,255,.50);
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
}

@media (max-width: 900px){
  .nav-toggle{ display:inline-flex; }
  .nav{
    position: fixed;
    inset: 70px 14px auto 14px;
    background: rgba(246,241,232,.92);
    border: 1px solid rgba(21,37,42,.10);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events:none;
    transition: .18s ease;
  }
  .nav.is-open{ opacity:1; transform: translateY(0); pointer-events:auto; }
  .nav ul{ flex-direction:column; align-items:stretch; gap:8px; }
  .nav a{ display:block; padding:12px 12px; }
}

main{ padding: 34px 0 80px; }

.hero{ min-height: calc(100svh - 90px); display:grid; place-items:center; padding: 54px 0 34px; }
.hero-card{
  background: rgba(21,37,42,.18);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: 0 34px 120px rgba(0,0,0,.35);
  overflow:hidden;
}
.hero-inner{ padding: 56px 54px; text-align:center; color: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.hero h1{ margin:0 0 10px; font-size: clamp(30px, 4vw, 56px); letter-spacing: .02em; text-shadow: 0 12px 34px rgba(0,0,0,.35); }
.hero p{ margin: 0 auto 22px; max-width: 56ch; color: rgba(255,255,255,.88); text-shadow: 0 12px 28px rgba(0,0,0,.35); }
.hero-actions{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:999px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  text-decoration:none; font-weight:800;
}
.btn:hover{ background: rgba(255,255,255,.14); }
.btn.primary{ border-color: rgba(217,199,154,.55); background: rgba(217,199,154,.22); }

.section{ padding: 70px 0; }
.section-title{ text-align:center; margin:0 0 22px; font-size: clamp(24px, 3vw, 42px); letter-spacing:.02em; }
.lead{ text-align:center; margin: 0 auto; max-width: 70ch; color: var(--muted); }

.panel{
  margin: 26px auto 0;
  background: var(--card);
  border: 1px solid rgba(21,37,42,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  max-width: 920px;
}

.pillars-wrap{ margin-top: 30px; }
.pillar-slide{
  border-radius: var(--radius);
  overflow:hidden;
  position: relative;
  min-height: 420px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21,37,42,.10);
}
.pillar-bg{ position:absolute; inset:0; background-size:cover; background-position:center; transform: scale(1.02); }
.pillar-bg::after{ content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,.10) 100%); }
.pillar-content{ position:relative; padding:34px 34px 28px; color: rgba(255,255,255,.92); max-width: 680px; }
.pillar-content h3{ margin:0 0 6px; font-size: 34px; letter-spacing:.02em; }
.pillar-content .sub{ margin:0 0 14px; font-weight:800; color: rgba(255,255,255,.86); }
.pillar-content ul{ margin:0 0 16px; padding-left:18px; }
.pillar-content li{ margin:6px 0; color: rgba(255,255,255,.88); }
.pillar-cta{
  display:inline-flex; gap:10px; align-items:center;
  padding:12px 16px; border-radius:999px;
  background: rgba(15,123,132,.55);
  border: 1px solid rgba(255,255,255,.22);
  text-decoration:none; font-weight:900;
  color: rgba(255,255,255,.92);
}
.pillar-cta:hover{ background: rgba(15,123,132,.68); }

.pillars-controls{ display:flex; justify-content:center; align-items:center; gap:12px; margin-top:14px; }
.pillars-btn{
  width:44px; height:44px; border-radius:999px;
  display:grid; place-items:center;
  border: 1px solid rgba(21,37,42,.12);
  background: rgba(255,255,255,.66);
  cursor:pointer;
}
.pillars-btn:hover{ background: rgba(255,255,255,.82); }

.posts-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:26px; }
@media (max-width: 900px){ .posts-grid{ grid-template-columns: 1fr; } }
.post-card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(21,37,42,.10);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  text-decoration:none;
  color: inherit;
}
.post-card img{ width:100%; height:180px; object-fit:cover; display:block; }
.post-card .pc-body{ padding:16px 16px 18px; }
/* FIX: 見出しが白文字にならないように明示 */
.post-card h3{ margin:0 0 8px; font-size:18px; color: rgba(21,37,42,.92); }
.post-card p{ margin:0; color: rgba(21,37,42,.70); }

.page-hero{ padding:24px 0 8px; }
.page-hero .kicker{ text-transform: uppercase; letter-spacing:.14em; font-weight:800; color: rgba(21,37,42,.55); font-size:12px; }
.page-hero h1{ margin:6px 0 8px; font-size: clamp(28px, 3vw, 46px); }
.page-hero p{ margin:0; color: rgba(21,37,42,.70); max-width:78ch; }

.page-card{
  margin-top:22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(21,37,42,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.related-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; margin-top:18px; }
@media (max-width: 800px){ .related-grid{ grid-template-columns: 1fr; } }
.related-card{
  background: rgba(15,123,132,.10);
  border: 1px solid rgba(15,123,132,.18);
  border-radius: 22px;
  padding: 18px;
  text-decoration:none;
  color: rgba(21,37,42,.92);
}
.related-card p{ margin:0; color: rgba(21,37,42,.70); }

.ceo-wrap{ display:grid; grid-template-columns: 220px 1fr; gap:22px; align-items:start; }
@media (max-width: 700px){ .ceo-wrap{ grid-template-columns: 1fr; } }
.ceo-photo{
  width:220px; aspect-ratio: 1 / 1;
  border-radius:999px; overflow:hidden;
  border: 1px solid rgba(21,37,42,.10);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
  background: rgba(255,255,255,.6);
}
.ceo-photo img{ width:100%; height:100%; object-fit:cover; display:block; }

.site-footer{
  margin-top: 50px;
  padding: 54px 0 40px;
  background: linear-gradient(180deg, rgba(15,123,132,.86), rgba(15,123,132,.70));
  color: rgba(255,255,255,.90);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
}
.footer-grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:18px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer a{ color: rgba(255,255,255,.92); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }
.footer-small{ margin-top:18px; opacity:.82; font-size:13px; }
.footer-social{
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.social-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,.95);
  font-weight: 700;
}
.social-link img{
  width: 16px;
  height: 16px;
  object-fit: cover;
  display: block;
}

.entry-content p{ margin: 0 0 14px; }
.entry-content h2{ margin: 28px 0 10px; }
.entry-content h3{ margin: 22px 0 10px; }

/* =========================
   1) 固定背景をもっとクリアに
   ========================= */

/* 背景画像のフィルターを弱めて “そのまま見せる” */
body::before{
  filter: none;                 /* 既存のsaturate/contrastを無効化 */
  opacity: 1;                   /* 念のため */
}

/* 背景の白いグラデーションベールを薄くする（クリア化） */
body::after{
  background: linear-gradient(
    180deg,
    rgba(246,241,232,.04) 0%,
    rgba(246,241,232,.30) 40%,
    rgba(246,241,232,.70) 85%,
    rgba(246,241,232,1) 100%
  );
}

/* =========================
   2) ヘッダー直下のスペースを消す
   ========================= */

/* main の上余白をなくして、ヒーローを最上部へ */
main{
  padding-top: 0 !important;    /* 既存の 34px を打ち消し */
}

/* ヒーローの上パディングも消す（ヘッダー直下にぴったり） */
.hero{
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: calc(100svh - 70px); /* ヘッダー分だけ差し引き（必要なら調整） */
}

/* ヘッダーの下線余白が気になる場合（任意） */
.site-header{
  margin-bottom: 0;
}

/* =========================
   3) ヒーローカードを青系で読みやすく
   ========================= */

/* カード自体を “青みのガラス” に */
.hero-card{
  background: rgba(8, 35, 64, .55) !important;  /* 濃い青系 */
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 34px 120px rgba(0,0,0,.40);
}

/* 文字を「薄い白」→「青系でクッキリ」に */
.hero-inner{
  color: #EAF4FF !important;  /* 青みがかった白 */
}

.hero h1{
  color: #FFFFFF !important;
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.hero p{
  color: rgba(234, 244, 255, .92) !important;
  text-shadow: 0 10px 26px rgba(0,0,0,.40);
}

/* ボタンも青系に寄せる（primaryを濃い青、通常を淡い青） */
.btn{
  border: 1px solid rgba(234,244,255,.28);
  background: rgba(13, 80, 140, .18);
  color: #EAF4FF;
}

.btn:hover{
  background: rgba(13, 80, 140, .26);
}

.btn.primary{
  border-color: rgba(64, 170, 255, .55);
  background: rgba(25, 122, 210, .45);
}

.btn.primary:hover{
  background: rgba(25, 122, 210, .58);
}

/* =========================
   A) 背景画像をクリアに（白ベールを薄く）
   ※背景オーバーレイ候補を全部叩く
   ========================= */

/* まず「背景の上に乗ってる白い層」を薄くする */
body::after,
.bg-overlay,
.page-overlay,
.hero::before,
.hero::after{
  opacity: .10 !important;
}

/* 背景画像がくすむ原因のfilterを無効化（背景側候補を全部叩く） */
body::before,
.bg-fixed,
.page-bg,
.hero-bg,
.hero .bg,
.hero picture,
.hero img{
  filter: none !important;
}

/* 画像が “薄い” のは opacity が落ちてるケースがあるので戻す */
.bg-fixed,
.page-bg,
.hero-bg{
  opacity: 1 !important;
}

/* =========================
   B) ヘッダー直下の余白をゼロに（最上部に詰める）
   ========================= */

main{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.hero{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* header が sticky で下に余白を作ってる場合の保険 */
.site-header + main .hero{
  padding-top: 0 !important;
}

/* =========================
   C) ヒーローカード：文字が薄い → 青系でくっきり
   ========================= */

.hero-card{
  background: rgba(6, 40, 74, .62) !important; /* 深い青 */
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.35) !important;
}

.hero-inner,
.hero-inner p{
  color: rgba(234, 245, 255, .96) !important;
  text-shadow: 0 10px 26px rgba(0,0,0,.35) !important;
}

.hero-inner h1{
  color: #ffffff !important;
  text-shadow: 0 14px 40px rgba(0,0,0,.45) !important;
}

/* ボタンも青系に寄せて可読性UP */
.hero .btn{
  color: #EAF5FF !important;
  border-color: rgba(234,245,255,.30) !important;
  background: rgba(12, 92, 160, .18) !important;
}

.hero .btn.primary{
  background: rgba(12, 92, 160, .45) !important;
  border-color: rgba(80, 185, 255, .55) !important;
}

/* =========================
   A) 背景画像をクリアに（白ベールを薄く）
   ※背景オーバーレイ候補を全部叩く
   ========================= */

/* まず「背景の上に乗ってる白い層」を薄くする */
body::after,
.bg-overlay,
.page-overlay,
.hero::before,
.hero::after{
  opacity: .10 !important;
}

/* 背景画像がくすむ原因のfilterを無効化（背景側候補を全部叩く） */
body::before,
.bg-fixed,
.page-bg,
.hero-bg,
.hero .bg,
.hero picture,
.hero img{
  filter: none !important;
}

/* 画像が “薄い” のは opacity が落ちてるケースがあるので戻す */
.bg-fixed,
.page-bg,
.hero-bg{
  opacity: 1 !important;
}

/* =========================
   B) ヘッダー直下の余白をゼロに（最上部に詰める）
   ========================= */

main{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.hero{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* header が sticky で下に余白を作ってる場合の保険 */
.site-header + main .hero{
  padding-top: 0 !important;
}

/* =========================
   C) ヒーローカード：文字が薄い → 青系でくっきり
   ========================= */

.hero-card{
  background: rgba(6, 40, 74, .62) !important; /* 深い青 */
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.35) !important;
}

.hero-inner,
.hero-inner p{
  color: rgba(234, 245, 255, .96) !important;
  text-shadow: 0 10px 26px rgba(0,0,0,.35) !important;
}

.hero-inner h1{
  color: #ffffff !important;
  text-shadow: 0 14px 40px rgba(0,0,0,.45) !important;
}

/* ボタンも青系に寄せて可読性UP */
.hero .btn{
  color: #EAF5FF !important;
  border-color: rgba(234,245,255,.30) !important;
  background: rgba(12, 92, 160, .18) !important;
}

.hero .btn.primary{
  background: rgba(12, 92, 160, .45) !important;
  border-color: rgba(80, 185, 255, .55) !important;
}

/* =========================
   背景（ヒーロー）をヘッダー直下に詰める
   ========================= */

body{
  margin-top: 0 !important;
}

/* WPが admin-bar やテーマ側で上余白を入れているケースを潰す */
main, .site-main{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* hero自体の上余白をゼロに */
.hero{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 背景要素（テーマによって名前が違うので候補をまとめて叩く） */
.bg-fixed,
.page-bg,
.hero-bg,
.hero .bg,
.hero picture,
.hero img{
  top: 0 !important;
  margin-top: 0 !important;
}
/* ヘッダー直下の余白を殺す（保険） */
.site-header{
  margin-bottom: 0 !important;
}
.site-header + main,
.site-header + .site-main{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================
   モバイル：ハンバーガー（三本線）化
   ========================= */
@media (max-width: 1024px){
  /* 「メニュー」文字を消す（ボタン・リンク両対応） */
  .menu-toggle,
  .mobile-menu-toggle,
  .nav-toggle{
    font-size: 0 !important;
    letter-spacing: 0 !important;
  }

  /* 既存アイコンが無い場合に三本線を描画 */
  .menu-toggle::before,
  .mobile-menu-toggle::before,
  .nav-toggle::before{
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 16px !important;
    background:
      linear-gradient(rgba(10, 40, 80, .90), rgba(10, 40, 80, .90)) 0 0 / 22px 2px no-repeat,
      linear-gradient(rgba(10, 40, 80, .90), rgba(10, 40, 80, .90)) 0 7px / 22px 2px no-repeat,
      linear-gradient(rgba(10, 40, 80, .90), rgba(10, 40, 80, .90)) 0 14px / 22px 2px no-repeat !important;
    border-radius: 2px !important;
    margin: 0 auto !important;
  }

  /* 押しやすいサイズ */
  .menu-toggle,
  .mobile-menu-toggle,
  .nav-toggle{
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;
    line-height: 0 !important;
    padding: 0 !important;
  }
}

/* =========================
   3本柱カード：画像を大きく（coverでトリミング）
   ========================= */

.pillars .card img,
.pillars .project-card img,
.business-cards .card img{
  width: 100% !important;
  height: 320px !important;      /* PCの見栄え */
  object-fit: cover !important;
  border-radius: 18px !important;
  display: block !important;
}

@media (max-width: 768px){
  .pillars .card img,
  .pillars .project-card img,
  .business-cards .card img{
    height: 220px !important;    /* スマホ */
  }
}

/* =========================
   heroをヘッダー直下に完全密着
   ========================= */

main#content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* header直下の隙間を完全削除 */
.site-header + main,
.site-header + #content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* もしbodyに余白がある場合の保険 */
body {
  margin: 0 !important;
}

/* ===== 2026-02 homepage/header updates ===== */

/* ヘッダー高さを一般的なサイズへ */
.site-header{
  min-height: 64px;
}

.header-inner{
  min-height: 64px;
  padding: 8px 0;
}

@media (max-width: 1024px){
  .site-header,
  .header-inner{
    min-height: 60px;
  }
}

@media (max-width: 768px){
  .site-header,
  .header-inner{
    min-height: 56px;
  }
  .header-inner{
    padding: 6px 0;
  }
}

/* ロゴサイズ最適化: PC / Pad / Mobile */
.brand-logo{
  width: 164px;
  height: auto;
  max-width: 100%;
  display: block;
}

@media (max-width: 1024px){
  .brand-logo{
    width: 142px;
  }
}

@media (max-width: 768px){
  .brand-logo{
    width: 118px;
  }
}

/* プロジェクト画像: カード幅に合わせて縮小（見切れ防止） */
.pillar-thumb{
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  margin: 0 0 14px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.10);
}

@media (max-width: 1024px){
  .pillar-thumb{
    max-height: 156px;
  }
}

@media (max-width: 768px){
  .pillar-thumb{
    max-height: 132px;
  }
}

/* =========================
   A) 背景画像をクリアに（白ベールを薄く）
   ※ホーム画面で確実に当たるよう .home を付与
   ========================= */
.home .bg-overlay,
.home .page-overlay,
.home .hero::before,
.home .hero::after,
body.home::after{
  opacity: .10 !important;
}

.home .bg-fixed,
.home .page-bg,
.home .hero-bg,
.home .hero .bg,
.home .hero picture,
.home .hero img,
body.home::before{
  filter: none !important;
}

.home .bg-fixed,
.home .page-bg,
.home .hero-bg{
  opacity: 1 !important;
}

/* =========================
   B) ヘッダー直下の余白をゼロに（最上部に詰める）
   ※ホーム画面で確実に当たるよう .home を付与
   ========================= */
.home main,
.home main#content,
body.home main#content{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.home .hero,
body.home .hero{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.home .site-header + main .hero,
.home .site-header + #content .hero,
body.home .site-header + main .hero{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ヘッダー直下から背景を開始 */
body.home{
  margin-top: 0 !important;
}

body.home main#content{
  display: block;
}

/* =========================
   C) ヒーローカード：文字が薄い → 青系でくっきり
   ※ホーム画面で確実に当たるよう .home を付与
   ========================= */
.home .hero-card,
body.home .hero-card{
  background: rgba(6, 40, 74, .62) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.35) !important;
}

.home .hero-inner,
.home .hero-inner p,
body.home .hero-inner,
body.home .hero-inner p{
  color: rgba(234, 245, 255, .96) !important;
  text-shadow: 0 10px 26px rgba(0,0,0,.35) !important;
}

.home .hero-inner h1,
body.home .hero-inner h1{
  color: #ffffff !important;
  text-shadow: 0 14px 40px rgba(0,0,0,.45) !important;
}

.home .hero .btn,
body.home .hero .btn{
  color: #EAF5FF !important;
  border-color: rgba(234,245,255,.30) !important;
  background: rgba(12, 92, 160, .18) !important;
}

.home .hero .btn.primary,
body.home .hero .btn.primary{
  background: rgba(12, 92, 160, .45) !important;
  border-color: rgba(80, 185, 255, .55) !important;
}

/* ===== homepage final overrides (2026-02-15) ===== */

/* 1) header: dark palette to match black logo background */
.site-header{
  background: rgba(12, 16, 24, .90) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  backdrop-filter: blur(10px);
}

.nav a{
  color: rgba(238, 243, 250, .92) !important;
}

.nav a:hover{
  background: rgba(255,255,255,.10) !important;
  color: #ffffff !important;
}

.cta{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.26) !important;
  color: #f5f9ff !important;
}

/* 2) hero heading and paragraph wrapping */
.home .hero h1,
body.home .hero h1{
  font-size: clamp(24px, 3vw, 42px) !important;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0;
}

.home .hero p,
body.home .hero p{
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
}

/* 3) project image width fits card fully */
.pillar-thumb{
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover;
}

/* 4) reduce visible white gap at very top of home background */
body.home{
  background: #9ab7d1 !important;
}

body.home::after{
  background: linear-gradient(
    180deg,
    rgba(154,183,209,.32) 0%,
    rgba(154,183,209,.18) 22%,
    rgba(246,241,232,.58) 68%,
    rgba(246,241,232,1) 100%
  ) !important;
}

/* 5) hero card: taller + wider text spacing */
.home .hero-card,
body.home .hero-card{
  min-height: 560px !important;
  display: flex;
  align-items: center;
}

.home .hero-inner,
body.home .hero-inner{
  width: 100%;
  padding: 88px 72px !important;
}

.home .hero h1,
body.home .hero h1{
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
}

.home .hero p,
body.home .hero p{
  line-height: 2 !important;
  margin-bottom: 28px !important;
}

@media (max-width: 900px){
  .home .hero-card,
  body.home .hero-card{
    min-height: 500px !important;
  }
  .home .hero-inner,
  body.home .hero-inner{
    padding: 64px 28px !important;
  }
}

/* 6) pillars controls: dots pagination only */
.pillars-controls{
  justify-content: center !important;
}

.pillars-controls .pillars-btn{
  display: none !important;
}

.pillars-controls .swiper-pagination{
  position: static !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.pillars-controls .swiper-pagination-bullet{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 1;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.7);
}

.pillars-controls .swiper-pagination-bullet-active{
  background: #ffffff;
  transform: scale(1.12);
}

/* ===== contact links + mobile hero adjustments ===== */
.ext-link-icon{
  font-size: .9em;
  line-height: 1;
  margin-left: 4px;
  display: inline-block;
}

.ext-link::after{
  content: "↗";
  font-size: .85em;
  margin-left: 6px;
  vertical-align: baseline;
}

/* Header gradient: left black -> right current dark tone */
.site-header{
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.96) 0%,
    rgba(7,10,16,.94) 34%,
    rgba(12,16,24,.90) 72%,
    rgba(12,16,24,.82) 100%
  ) !important;
}

/* Philosophy card title a bit larger */
.home #philosophy .panel h3{
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.35;
}

/* Mobile: prevent clipping by allowing wrapping and smaller sizing */
@media (max-width: 768px){
  .home .hero-card,
  body.home .hero-card{
    min-height: auto !important;
  }

  .home .hero-inner,
  body.home .hero-inner{
    padding: 36px 18px !important;
  }

  .home .hero h1,
  body.home .hero h1{
    font-size: clamp(22px, 7vw, 30px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.4 !important;
  }

  .home .hero p,
  body.home .hero p{
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.8 !important;
  }

  /* Mobile buttons: stack vertically */
  .home .hero-actions,
  body.home .hero-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

.home .hero-actions .btn,
  body.home .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }
}

/* CEO image and marker underline */
.page-template-page-ceo-message .ceo-photo{
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
}

.page-template-page-ceo-message .ceo-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-template-page-ceo-message .entry-content strong{
  background-image: linear-gradient(transparent 62%, rgba(120, 205, 255, .88) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .08em;
}

/* ===== 2026-02-15 final overrides ===== */

/* Use image icon for external links */
.ext-link::after{
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 6px;
  display: inline-block;
  background-image: url("../img/external_link_icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: text-bottom;
  filter: brightness(0) invert(1);
}

/* Header left color sampled from logo background: RGB(17,17,17) */
.site-header{
  background: linear-gradient(
    90deg,
    rgba(17,17,17,.98) 0%,
    rgba(17,17,17,.96) 24%,
    rgba(7,10,16,.94) 34%,
    rgba(12,16,24,.90) 72%,
    rgba(12,16,24,.82) 100%
  ) !important;
}

/* Hero image inside card */
.home .hero-inline-image,
body.home .hero-inline-image{
  width: 100%;
  max-width: 780px;
  height: auto;
  display: block;
  margin: 0 auto 22px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.20);
}

@media (max-width: 768px){
  .home .hero-inline-image,
  body.home .hero-inline-image{
    margin-bottom: 14px;
    border-radius: 12px;
  }
}

/* Hero card as background image with text overlay */
.home .hero{
  padding-top: 28px !important;
}

.home .hero-card,
body.home .hero-card{
  background-image: url("../img/hero-image.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: hidden;
}

.home .hero-card::before,
body.home .hero-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,20,36,.35) 0%, rgba(8,20,36,.58) 100%);
  z-index: 0;
}

.home .hero-inner,
body.home .hero-inner{
  position: relative;
  z-index: 1;
  background: transparent !important;
  backdrop-filter: none;
}

@media (max-width: 768px){
  .home .hero{
    padding-top: 18px !important;
  }
}

/* Topics yearly archive cards: increase contrast */
.page-template-page-topics .related-card{
  background: rgba(8, 20, 36, .96);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.96);
}

.page-template-page-topics .related-card p{
  color: rgba(255,255,255,.86);
}

/* Business hero: avoid forced line break on desktop */
.page-template-page-business .page-hero p{
  white-space: nowrap;
}

@media (max-width: 900px){
  .page-template-page-business .page-hero p{
    white-space: normal;
  }
}

/* Ensure CEO marker underline also applies on template php body class */
.page-template-page-ceo-message-php .entry-content strong{
  background-image: linear-gradient(transparent 62%, rgba(120, 205, 255, .88) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .08em;
}

/* Company page content alignment */
.page-template-page-company .entry-content,
.page-template-page-company-php .entry-content,
.page.page-slug-company .entry-content{
  text-align: left !important;
}

/* Mobile/Pad menu contrast */
@media (max-width: 1024px){
  .nav{
    background: rgba(12,16,24,.96) !important;
    border-color: rgba(255,255,255,.20) !important;
  }
  .nav a{
    color: rgba(242,246,255,.96) !important;
  }
  .nav a:hover{
    background: rgba(255,255,255,.14) !important;
    color: #ffffff !important;
  }
}

/* Home hero redesign */
.home .hero{
  padding-top: 32px !important;
}

.home .hero-card,
body.home .hero-card{
  border-radius: 28px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  box-shadow:
    0 40px 100px rgba(0,0,0,.36),
    0 6px 24px rgba(0,0,0,.24) !important;
  isolation: isolate;
}

.home .hero-card::before,
body.home .hero-card::before{
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(47,125,255,.30) 0%, rgba(47,125,255,0) 55%),
    radial-gradient(120% 100% at 100% 100%, rgba(28,204,169,.20) 0%, rgba(28,204,169,0) 60%),
    linear-gradient(180deg, rgba(6,14,26,.44) 0%, rgba(6,14,26,.70) 100%) !important;
}

.home .hero-inner,
body.home .hero-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 82px 72px !important;
}

.home .hero-badges{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.home .hero-badges span{
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.10);
  color: rgba(245,250,255,.94);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.home .hero h1,
body.home .hero h1{
  text-wrap: balance;
  letter-spacing: .01em;
  margin-bottom: 18px !important;
}

.home .hero p,
body.home .hero p{
  max-width: 72ch !important;
  margin-inline: auto;
  color: rgba(240,247,255,.94) !important;
}

@media (max-width: 768px){
  .home .hero{
    padding-top: 20px !important;
  }
  .home .hero-inner,
  body.home .hero-inner{
    padding: 34px 18px !important;
  }
  .home .hero-badges{
    margin-bottom: 12px;
  }
}

/* Disable hero background image and badges per latest request */
.home .hero-card,
body.home .hero-card{
  background-image: none !important;
}

.home .hero-badges,
body.home .hero-badges{
  display: none !important;
}

/* Home philosophy card: match width and use background image */
.home #philosophy .panel{
  max-width: none;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-image: url("../img/hirosophy-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,.24);
}

.home #philosophy .panel::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,14,26,.48) 0%, rgba(6,14,26,.62) 100%);
  z-index: 0;
}

.home #philosophy .panel > *{
  position: relative;
  z-index: 1;
  color: rgba(245,250,255,.95);
}

/* Use attached hero image file */
.home .hero-card,
body.home .hero-card{
  background-image: url("../img/hero-image.jpg") !important;
}

/* Auto-compact nav when text wrapping/overflow is detected */
body.nav-compact .nav-toggle{
  display: inline-flex !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  line-height: 0 !important;
  place-items: center !important;
}

body.nav-compact .nav-toggle::before{
  content: "" !important;
  display: block !important;
  width: 22px !important;
  height: 16px !important;
  background:
    linear-gradient(rgba(10, 40, 80, .90), rgba(10, 40, 80, .90)) 0 0 / 22px 2px no-repeat,
    linear-gradient(rgba(10, 40, 80, .90), rgba(10, 40, 80, .90)) 0 7px / 22px 2px no-repeat,
    linear-gradient(rgba(10, 40, 80, .90), rgba(10, 40, 80, .90)) 0 14px / 22px 2px no-repeat !important;
  margin: 0 auto !important;
}

body.nav-compact .nav{
  position: fixed;
  inset: 70px 14px auto 14px;
  background: rgba(12,16,24,.96) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
}

body.nav-compact .nav.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.nav-compact .nav ul{
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

body.nav-compact .nav a{
  display: block;
  padding: 12px 12px;
  color: rgba(242,246,255,.96) !important;
}

/* ===== latest tweak: larger logo + remove white icon background feel ===== */
.brand-logo{
  width: 220px !important;
  height: auto;
}

@media (max-width: 1024px){
  .brand-logo{
    width: 188px !important;
  }
}

@media (max-width: 768px){
  .brand-logo{
    width: 156px !important;
  }
}

.footer-social .social-link img{
  width: 20px;
  height: 20px;
  background: transparent !important;
}

.footer-social .social-link img.icon-instagram{
  border-radius: 5px;
}

/* Hamburger hover cursor */
.nav-toggle,
.menu-toggle,
.mobile-menu-toggle{
  cursor: pointer !important;
}

/* Topics yearly archive page layout */
.archive-hero{
  margin-bottom: 16px;
}

.breadcrumbs{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: rgba(21,37,42,.72);
  font-weight: 700;
  font-size: 13px;
}

.breadcrumbs a{
  color: rgba(21,37,42,.86);
  text-decoration: none;
}

.breadcrumbs a:hover{
  text-decoration: underline;
}

.archive-year-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.archive-year-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21,37,42,.16);
  background: rgba(255,255,255,.78);
  color: rgba(21,37,42,.9);
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
}

.archive-year-links a:hover{
  background: rgba(255,255,255,.92);
}

.archive-year-links a.is-current{
  background: rgba(15,123,132,.18);
  border-color: rgba(15,123,132,.36);
}

.archive-posts-grid{
  margin-top: 12px;
}

/* Homepage section titles: larger */
.home #philosophy .section-title,
.home #pillars .section-title,
.home #latest .section-title{
  font-size: clamp(34px, 5vw, 56px) !important;
  line-height: 1.18;
}

/* Project slider dots: blue for higher visibility */
.pillars-controls .swiper-pagination-bullet{
  background: rgba(48, 138, 255, .55) !important;
  border-color: rgba(35, 120, 235, .92) !important;
}

.pillars-controls .swiper-pagination-bullet-active{
  background: #1f7fe8 !important;
  border-color: #1f7fe8 !important;
  box-shadow: 0 0 0 4px rgba(31, 127, 232, .22);
}

/* Topics cards: publish date */
.post-card .post-date{
  margin: 2px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(21,37,42,.58);
}

/* SDGs declaration cards */
.sdgs-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px){
  .sdgs-grid{
    grid-template-columns: 1fr;
  }
}

.sdgs-item-card{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(21,37,42,.12);
  border-radius: 18px;
  padding: 16px;
}

.sdgs-item-head{
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
}

.sdgs-item-head img{
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.sdgs-num{
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(21,37,42,.56);
}

.sdgs-item-card h3{
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  color: rgba(21,37,42,.92);
}

.sdgs-item-text{
  margin: 12px 0 0;
  color: rgba(21,37,42,.76);
}

.sdgs-goal{
  margin: 12px 0 8px;
  color: rgba(21,37,42,.82);
  font-weight: 700;
}

.sdgs-actions{
  margin: 0;
  padding: 0;
  list-style: none;
}

.sdgs-actions li{
  position: relative;
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: rgba(21,37,42,.76);
  line-height: 1.7;
}

.sdgs-actions li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f7fe8;
  font-weight: 900;
}

/* SDGs page contrast: blue container background */
.page-template-page-sdgs .page-card,
.page-template-page-sdgs-php .page-card{
  background: rgba(198, 220, 247, .58);
  border-color: rgba(46, 108, 182, .26);
}

.page-template-page-sdgs .sdgs-item-card,
.page-template-page-sdgs-php .sdgs-item-card{
  background: rgba(255,255,255,.92);
  border-color: rgba(21,37,42,.12);
}

/* Company page: section headings with blue marker underline */
.page-template-page-company .entry-content h3,
.page-template-page-company-php .entry-content h3{
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
  background-image: linear-gradient(transparent 62%, rgba(120, 205, 255, .88) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .08em .02em;
  display: inline-block;
}

/* Company page: sub copy in bold (no marker, indented one level) */
.page-template-page-company .entry-content .company-subcopy,
.page-template-page-company-php .entry-content .company-subcopy{
  display: inline-block;
  margin-left: 1em;
  font-size: 1em;
  line-height: 1.7;
  background: none !important;
  padding: 0;
}

.page-template-page-company .entry-content .company-meta-title,
.page-template-page-company-php .entry-content .company-meta-title{
  display: inline-block;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
  background-image: linear-gradient(transparent 62%, rgba(120, 205, 255, .88) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .08em .02em;
}
