/*
Theme Name: Premium Bridge Block Theme
Theme URI: https://premium-bridge.local/
Author: nanaxsa
Description: A minimal canvas theme for Premium Bridge block-editor production.
Version: 1.0.15
Text Domain: premium-bridge-block-theme
*/

html {
  scroll-behavior: smooth;
}

.pbbe-section h2.pbbt-news-title { font-size: 24px; line-height: 1.5; }
.pbbe-news-archive-page .pbbe-news-card .pbbe-number,
.pbbe-news .pbbe-news-card .pbbe-number { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.pbbt-news-image { display: block; margin-bottom: 24px; overflow: hidden; aspect-ratio: 16 / 9; text-decoration: none; }
.pbbt-news-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pbbt-news-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #f1f4f5; }
.pbbt-news-placeholder-content { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: 0.8; color: #102034; }
.pbbt-news-placeholder-mark { position: relative; display: block; width: 116px; height: 50px; overflow: hidden; margin-bottom: 4px; }
.pbbt-news-placeholder-mark img { position: absolute; width: 138%; max-width: none; height: auto; aspect-ratio: 1; object-fit: contain; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pbbt-news-placeholder-name { font-size: 20px; font-weight: 800; line-height: 1.2; }
.pbbt-news-placeholder-company { font-size: 11px; font-weight: 600; line-height: 1.5; }
.pbbt-news-title a { text-decoration: none; }
.pbbt-news-title a:hover { text-decoration: underline; text-underline-offset: 6px; }
.pbbe-news-archive-page .pagination { margin-top: 36px; }
.pbbe-news-archive-page .nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pbbe-news-archive-page .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; padding: 4px 12px; align-items: center; justify-content: center; border: 1px solid #c4a052; border-radius: 7px; text-decoration: none; }
.pbbe-news-archive-page .page-numbers.current { background: #102034; color: #fff; }
.pbbe-news-archive-page a.page-numbers:hover { background: #f1f2f3; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

[id] { scroll-margin-top: 110px; }
.pbbt-article { max-width: 820px; margin: 0 auto; padding: 64px 24px 90px; }
.pbbt-article h1 { font-size: 36px; line-height: 1.5; overflow-wrap: anywhere; }
.pbbt-article-body { line-height: 1.9; overflow-wrap: anywhere; }
.pbbt-article img { max-width: 100%; height: auto; }
.pbbt-article figure { margin-inline: 0; }
.pbbt-article-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 48px; border-top: 1px solid #dbe2ea; padding-top: 24px; }
.pbbt-reveal { animation: pbbt-reveal 650ms cubic-bezier(.2,.65,.3,1) var(--reveal-delay, 0ms) both; }
@keyframes pbbt-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pbbt-reveal { animation: none; }
}
@media (max-width: 640px) {
  .pbbt-article h1 { font-size: 26px; }
  .mobile-menu-panel { max-width: calc(100vw - 36px); }
}

body {
  margin: 0;
  background: #081a30;
  color: #102034;
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #dbe2ea;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 clamp(18px, 4vw, 60px);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 96px;
  height: 48px;
}

.brand .brand-mark img {
  position: absolute;
  width: 138%;
  max-width: none;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  color: #102034;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.brand small {
  color: #657180;
  font-size: 13px;
  font-weight: 800;
}

.global-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 30px);
}

.global-nav a {
  color: #102034;
  font-weight: 900;
  text-decoration: none;
}

.header-cta {
  border: 2px solid #c4a052;
  border-radius: 7px;
  background: #fff;
  color: #0c2038;
  font-weight: 900;
  padding: 18px 28px;
  text-decoration: none;
}

.mobile-menu {
  display: none;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.floating-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #c4a052;
  border-radius: 7px;
  background: #fff;
  color: #0c2038;
  font-size: 14px;
  font-weight: 900;
  padding: 14px 18px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(12, 32, 56, 0.2);
}

.site-main {
  background: #fff;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .header-cta,
  .floating-actions a,
  .mobile-menu summary {
    transition: background-color 180ms ease, box-shadow 220ms ease;
  }
}

@media (hover: hover) {
  .header-cta:hover,
  .floating-actions a:hover,
  .mobile-menu summary:hover {
    background: #f1f2f3;
    color: #0c2038;
    box-shadow: 0 0 16px rgba(210, 177, 95, 0.28), 0 5px 14px rgba(210, 177, 95, 0.18);
  }
}

.header-cta:focus-visible,
.floating-actions a:focus-visible,
.mobile-menu summary:focus-visible {
  background: #f1f2f3;
  box-shadow: 0 0 16px rgba(210, 177, 95, 0.28), 0 5px 14px rgba(210, 177, 95, 0.18);
  outline: 2px solid #0c2038;
  outline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: clamp(40px, 8vw, 120px);
  background: #081a30;
  color: #fff;
  padding-block: 46px;
  padding-left: max(120px, calc((100vw - 1220px) / 2 + 72px));
  padding-right: max(220px, calc((100vw - 1220px) / 2 + 210px));
}

.site-footer > div,
.site-footer > address {
  min-width: 0;
}

.site-footer > div {
  flex: 0 1 420px;
}

.site-footer > address {
  flex: 0 1 360px;
}

.site-footer p,
.site-footer address {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  line-height: 1.8;
}

.site-footer a {
  color: #fff;
  white-space: nowrap;
  hyphens: none;
}

.wp-block-query-pagination { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.wp-block-query-pagination .current { background: #102034; color: #fff; }

@media (min-width: 641px) and (max-width: 1100px) {
  .site-footer { padding: 44px 48px 110px; gap: 32px; }
}

@media (max-width: 1200px) {
  .global-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
  }

  .mobile-menu summary {
    border: 2px solid #c4a052;
    border-radius: 7px;
    background: #fff;
    color: #0c2038;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
    padding: 14px 16px;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 88px;
    right: 18px;
    display: grid;
    min-width: 220px;
    gap: 2px;
    border: 1px solid #dbe2ea;
    background: #fff;
    padding: 12px;
    box-shadow: 0 18px 48px rgba(12, 32, 56, 0.18);
  }

  .mobile-menu-panel a {
    padding: 12px;
    text-decoration: none;
  }

  .mobile-menu-panel a:hover,
  .mobile-menu-panel a:focus-visible {
    background: #f1f2f3;
    color: #102034;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 64px;
    height: 34px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    font-size: 11px;
  }

  .header-cta {
    display: none;
  }

  .site-footer {
    display: block;
    padding: 42px 22px 94px;
  }
}

@media (max-width: 360px) {
  .site-header { gap: 8px; padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 48px; height: 26px; }
  .brand strong { font-size: 15px; white-space: nowrap; }
  .brand small { font-size: 9px; white-space: nowrap; }
  .mobile-menu summary { padding: 12px 10px; font-size: 13px; }
  .site-footer address { font-size: 14px; }
}
