@charset "UTF-8";
/* ============================================================
   bk-site.css（2026-11）ブログのヘッダー・記事タイトルをトップページに揃える
   - 値はトップページの /css/variables.css・/css/top.css（.site-header ほか）から写した。
     top.css をそのまま読まないのは、要素全体の初期化（h1〜p の margin:0、ul の list-style:none、img の display:block、
     html の font-size:62.5% など）が記事本文の表示を変えてしまうため。
   - テーマ（Twenty Thirteen 派生）の .site-header・.nav-toggle と衝突しないよう、クラス名は bk- で始める。
   - テーマの html は font-size:100% なので、rem ではなく px で書く。
   ============================================================ */
.bk-header {
  --bk-primary: #073061;
  --bk-sub: #dfe1e3;
  --bk-accent: #E58600;
  --bk-line: #06c755;
  --bk-font: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Yu Gothic", "Segoe UI", sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--bk-sub);
  font-family: var(--bk-font);
  line-height: 1.7;
}

/* ログイン中の管理バー（WordPress）の下に固定する */
.admin-bar .bk-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .bk-header { top: 46px; }
}
@media screen and (max-width: 600px) {
  .admin-bar .bk-header { top: 0; }
}

.bk-header *,
.bk-header *::before,
.bk-header *::after {
  box-sizing: border-box;
}

.bk-header-inner {
  max-width: 1030px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.bk-logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.bk-logo img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}

.bk-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* 電話・LINE・メール（トップの .header-icon-btn と同じ形。指で押しやすいよう高さも 44px 確保） */
.bk-header a.bk-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 44px;
  min-height: 44px;
  color: var(--bk-primary);
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.bk-header a.bk-icon-btn:hover {
  background: #f1f4f8;
  color: var(--bk-primary);
  text-decoration: none;
}

.bk-header .bk-icon-btn .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}


.bk-icon-label {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

/* メニューボタン（トップの .nav-toggle と同じ形） */
.bk-header .bk-nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 0 0 5px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--bk-sub);
  border-radius: 5px;
  cursor: pointer;
  box-shadow: none;
}

.bk-header .bk-nav-toggle:hover,
.bk-header .bk-nav-toggle:focus {
  background: #f1f4f8;
}

.bk-nav-toggle span,
.bk-nav-toggle span::before,
.bk-nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bk-primary);
  position: absolute;
  transition: all 0.25s;
}

.bk-nav-toggle span::before { top: -7px; }
.bk-nav-toggle span::after { top: 7px; }
.bk-nav-toggle.is-active span { background: transparent; }
.bk-nav-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.bk-nav-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

/* キーボード操作のときの枠 */
.bk-header a:focus-visible,
.bk-header button:focus-visible {
  outline: 2px solid var(--bk-accent);
  outline-offset: 2px;
}

/* メニュー（トップの .global-nav と同じ、PC・スマホ共通のドロップダウン）。
   閉じているときは visibility:hidden にして、Tab キーで見えないリンクに移らないようにする */
.bk-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  background: var(--bk-primary);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.35s;
}

.bk-nav.is-open {
  max-height: calc(100vh - 66px);
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}

.bk-nav ul {
  max-width: 1030px;
  margin: 0 auto;
  padding: 8px 0;
  list-style: none;
}

.bk-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bk-header .bk-nav a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bk-nav li:last-child a { border-bottom: none; }

.bk-header .bk-nav a:hover,
.bk-header .bk-nav a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

/* 幅の狭いスマホ（〜389px）: ロゴを小さくして並びを保つ。〜339px はメールを外す（メニューの外のフッターなどに連絡先あり） */
@media screen and (max-width: 389px) {
  .bk-header-inner { padding: 10px 12px; }
  .bk-logo img { width: 128px; }
}

@media screen and (max-width: 339px) {
  .bk-header a.bk-icon-btn--mail { display: none; }
}

@media screen and (min-width: 641px) {
  .bk-actions { gap: 5px; }
  .bk-header .bk-nav-toggle { margin-left: 10px; }
}

@media screen and (min-width: 769px) {
  .bk-header-inner { padding: 14px 30px; }
}

/* ============================================================
   記事ページ（single）: タイトルと写真を早く見せる
   - 旧電話バナーがなくなった分の上の余白を整える
   - スマホ: タイトル → アイキャッチ の順に並べる（HTML の順は変えない。一覧・カテゴリーには適用しない）
   ============================================================ */
/* 記事の上の余白（テーマの .hentry は上下 40px）。左右の位置・幅はテーマのまま */
.single #content .hentry {
  padding-top: 20px;
}

.single #content .entry-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.single #content .entry-header .entry-title {
  order: -1;
  margin: 0 0 12px;
  padding: 0;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #073061;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

.single #content .entry-header .entry-thumbnail {
  margin: 0 0 12px;
}

.single #content .entry-header .entry-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 8px;
}

.single #content .entry-header .entry-meta {
  margin: 0;
  font-size: 13px;
  color: #666;
}

@media screen and (min-width: 769px) {
  .single #content .hentry {
    padding-top: 32px;
  }
  .single #content .entry-header .entry-title {
    font-size: 28px;
    line-height: 1.45;
  }
}

/* ============================================================
   スマホ下部の固定電話ボタン（footer.php の .footer_area。テーマの style.css で 640px 以下のときだけ下に固定）
   - トップの .mobile-fixed-cta に合わせて、白い帯にオレンジのボタン。320px でも1行
   - メニューを開いている間は隠す（header.php のスクリプトが html に .bk-nav-open を付ける）
   - 管理画面の「追加 CSS」（wp-custom-css）が .footer_area の背景を透明、.inquiry_btn の幅 95%・min-height 40px・影を !important で指定しているため、
     詳細度を上げて !important で上書きする（追加 CSS 自体は変えない）
   ============================================================ */
@media screen and (max-width: 640px) {
  html body .footer_area {
    background: rgba(255, 255, 255, 0.97) !important;
    border-top: 1px solid #dfe1e3;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  }
  html body .footer_area .footer_area_inner {
    padding: 8px 12px;
  }
  html body .footer_area a.inquiry_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    box-shadow: none !important;
    padding: 10px 8px;
    background: #E58600;
    border-radius: 8px;
    color: #fff !important;
    font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Yu Gothic", "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
  }
  html body .footer_area a.inquiry_btn:hover,
  html body .footer_area a.inquiry_btn:focus {
    background: #C26F00;
    color: #fff !important;
    text-decoration: none;
  }
  html body .footer_area a.inquiry_btn .material-symbols-outlined {
    color: #fff;
    font-size: 22px;
    line-height: 1;
  }
  html.bk-nav-open body .footer_area {
    display: none;
  }
}
