/*
 Theme Name: BorderZero Main
 Theme URI: https://www.borderzero.com/
 Author: BorderZero
 Author URI: https://www.borderzero.com/
 Description: BorderZero corporate theme (classic PHP templates) with LP template (AIO/LLMO) included.
 Version: 1.0.0
 Requires at least: 6.3
 Tested up to: 6.7
 Requires PHP: 7.4
 License: GPL-2.0-or-later
 Text Domain: borderzero-main
*/
:root{--c-text:#383847;}
body{color:var(--c-text);}
.site-wrap{max-width:1160px;margin:0 auto;padding:0 16px;}
header.site-header{padding:16px 0;border-bottom:1px solid #eee;}
footer.site-footer{padding:24px 0;margin-top:48px;border-top:1px solid #eee;font-size:.9rem;color:#666;}
a.btn{display:inline-block;padding:10px 16px;border-radius:8px;font-weight:700;text-decoration:none}
a.btn-primary{background:#00B0B9;color:#fff}
a.btn-ghost{border:1px solid #ddd;color:#333;background:#fff}

/* ===== ロゴ：縦横比を必ず維持 ===== */
.bz-header .bz-logo{display:flex;align-items:center}

/* WPのカスタムロゴ（<img class="custom-logo">）とフォールバック用の両方に効かせる */
.bz-header img.custom-logo,
.bz-header a.custom-logo-link img,
.bz-header img.bz-logo-img {
  height: 44px;                 /* ← 見た目の大きさはここで調整 */
  width: auto !important;       /* これが最重要。横方向の引き伸ばしを防ぐ */
  max-width: none !important;   /* 他の汎用CSSが max-width:100% を当てている場合に打ち消す */
  object-fit: contain;
  display: block;
  line-height: 0;
}

/* ロゴのリンク要素が高さで伸びないように */
.bz-header a.custom-logo-link,
.bz-header .bz-logo-link { 
  line-height: 0; 
  display: flex; 
  align-items: center; 
}

/* SPで少しだけ小さく */
@media (max-width: 768px) {
  .bz-header img.custom-logo,
  .bz-header a.custom-logo-link img,
  .bz-header img.bz-logo-img {
    height: 36px;
  }
}


/* ====== HERO ====== */
.bz-hero{
  --hero-bg: url('/wp-content/uploads/hero-bg.jpg'); /* ← インラインstyleを使わない場合はここを書き替える */
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,25,47,.72) 0%, rgba(7,25,47,.48) 40%, rgba(7,25,47,0) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: left bottom; /* 東京タワーが左下に来る想定 */
  padding: 96px 0 120px;
}

.bz-hero__overlay{
  position:absolute; inset:0;
  pointer-events:none;
}

.bz-hero__inner{
  position: relative;
  display: flex;
  align-items: center;
}

/* ← PCはコンテンツを右側へ寄せる（テキストは左揃え維持） */
.bz-hero--right .bz-hero__inner{
  justify-content: flex-end;
}

/* コンテンツ幅。右側に寄せつつ読みやすい幅を確保 */
.bz-hero__copy{
  max-width: 640px;
  text-align: left;
}

/* タイポ/余白（既存に合わせて必要なら微調整） */
.bz-hero__title{
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.25;
  margin: 0 0 20px;
  font-weight: 800;
}
.bz-hero__lead{
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 28px;
  opacity: .95;
}
.bz-hero__cta .btn{ margin-right: 12px; }
.bz-hero__cta .btn:last-child{ margin-right: 0; }

/* スマホ/タブレットでは左に戻す（読み順優先 & ボタンタップ性） */
@media (max-width: 1024px){
  .bz-hero{ padding: 64px 0 84px; }
  .bz-hero__inner{ min-height: 0; }
  .bz-hero--right .bz-hero__inner{ justify-content: flex-start; }
  .bz-hero__title{ font-size: clamp(24px, 6vw, 36px); }
}

/* 必要なら：背景の東京タワーが近すぎる場合、少し右へ逃がす */
@media (min-width: 1200px){
  .bz-hero{ background-position: left -40px bottom; } /* -40pxで微オフセット */
}

/* 小さなユーティリティ */
.sp-hide{ display: inline; }
@media (max-width: 768px){ .sp-hide{ display: none; } }

@media (max-width: 768px){
  .bz-hero--right .bz-hero__inner {
    justify-content: center;
    text-align: center;
  }
  .bz-hero__copy {
    text-align: center;
  }
  .bz-hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

