/* ============================================================
   B-son（ブライソン経営研究所）共通スタイルシート
   v1.0 - 2026-03-13
   ============================================================ */

/* ---------- Google Fonts ---------- */
/* index.htmlの<head>で読み込み:
   https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700
   &family=Noto+Serif+JP:wght@400;700
   &family=Montserrat:wght@700&display=swap
*/

/* ---------- CSS Variables ---------- */
:root {
  --blue:   #2B8FD0;
  --pink:   #E060C0;
  --teal:   #29ABD4;
  --navy:   #1A4A6A;
  --dark:   #1A4A6A;
  --light:  #F0F9FD;
  --white:  #fff;
  --text:   #1A2A4A;
  --border: #C8E8F0;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(41,171,212,.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

/* ロゴ */
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-name-block { display: flex; flex-direction: column; }
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}
.logo-b   { color: var(--blue); }
.logo-son { color: var(--pink); }
.logo-company-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.58rem;
  color: #5a8aaa;
  margin-top: 3px;
  white-space: nowrap;
}

/* PC ナビゲーション */
nav#main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav#main-nav a {
  font-size: 0.84rem;
  color: #1A3A5C;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
nav#main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .2s;
}
nav#main-nav a:hover { color: var(--teal); }
nav#main-nav a:hover::after { width: 100%; }
nav#main-nav .btn-contact {
  background: var(--teal);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
}
nav#main-nav .btn-contact:hover {
  background: #1A9CC2;
  transform: translateY(-1px);
}
nav#main-nav .btn-contact::after { display: none; }

/* ハンバーガーボタン（SP時のみ表示） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A3A5C;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 画像URLはJSでKVから取得してセット */
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}
.hero-content-box {
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 16px;
  padding: 36px 44px 40px;
  max-width: 560px;
}
.hero-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: .06em;
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1A3A5C;
  line-height: 1.3;
  margin-bottom: 14px;
}
.hero-title em {
  font-style: normal;
  color: var(--blue);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #2A4A6C;
  margin-bottom: 28px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #1A9CC2; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #1A3A5C;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid #1A3A5C;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn-outline:hover {
  background: #1A3A5C;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
  transition: gap .15s;
}
.btn-link:hover { gap: 8px; }

/* ---------- Section 共通 ---------- */
section { padding: 72px 48px; }

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 10px;
}
.section-title span { color: var(--teal); }

.section-sub {
  text-align: center;
  color: #666;
  font-size: .95rem;
  margin-bottom: 46px;
}

.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--pink));
  margin: 10px auto 46px;
  border-radius: 2px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* 奇数セクション背景 */
section:nth-child(odd) { background: var(--light); }
section:nth-child(even) { background: var(--white); }

/* ---------- News & Seminar ---------- */
.news-section { background: var(--white); }
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.news-block h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  color: var(--navy);
  border-left: 4px solid var(--teal);
  padding-left: 12px;
  margin-bottom: 20px;
}
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.news-date {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
  padding-top: 2px;
}
.news-title {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
/* KVコンテンツ読み込み中プレースホルダー */
.kv-loading { color: #aaa; font-size: 0.85rem; }

/* ---------- Happiness Loop ---------- */
.happiness-section { background: var(--light); }
.happiness-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.happiness-lead {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.8;
}
.happiness-image-wrap {
  margin: 32px auto;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f4fb;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.happiness-image-wrap img { width: 100%; }
.happiness-image-placeholder {
  color: #aaa;
  font-size: 0.85rem;
}

/* ---------- Service Cards ---------- */
.service-section { background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 24px;
}
.service-row2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow .2s, transform .15s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(41,171,212,.18);
  transform: translateY(-4px);
}
.service-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.service-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #e8f4fb;
}
.service-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: #e8f4fb;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
}
.service-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ---------- Achievement ---------- */
.achievement-section {
  background: var(--light);
  padding: 64px 48px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.achievement-item {}
.achievement-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.achievement-label {
  font-size: 0.9rem;
  color: var(--navy);
}

/* ---------- Partner (dark section) ---------- */
.partner-section {
  background: var(--dark);
  color: var(--white);
  padding: 72px 48px;
}
.partner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.partner-text h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}
.partner-text h2 span { color: var(--teal); }
.partner-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}
.partner-visual {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Office ---------- */
.office-section { background: var(--white); }
.office-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.office-card {
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.office-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #ddeef7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
}
.office-card-body { padding: 16px; }
.office-card-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.office-card-body p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 48px;
}
.cta-section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 0.95rem;
  opacity: .9;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  background: var(--white);
  color: var(--teal);
  font-size: 1rem;
  padding: 15px 40px;
}
.cta-section .btn-primary:hover { background: #e8f9fd; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 56px 48px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-text { font-size: 1.3rem; }
.footer-brand .logo-company-name { color: rgba(255,255,255,.5); }
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  margin-top: 12px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: .06em;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
}

/* ---------- Page Hero (サブページ共通) ---------- */
.page-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,74,106,.55);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px;
  color: var(--white);
}
.page-hero-inner h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-hero-inner .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,.7);
}
.page-hero-inner .breadcrumb a { color: var(--teal); }

/* ---------- Content Loading States ---------- */
.kv-placeholder {
  background: linear-gradient(90deg, #e8f4fb 25%, #d0e8f5 50%, #e8f4fb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent;
  min-height: 1em;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1023px) {
  header { padding: 0 24px; }
  .news-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid { grid-template-columns: repeat(2, 2fr); gap: 24px; }
  .partner-inner { grid-template-columns: 1fr; gap: 32px; }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Responsive: SP ---------- */
@media (max-width: 767px) {
  header { padding: 0 16px; }

  /* ハンバーガーメニュー */
  nav#main-nav {
    display: none;
    position: fixed;
    top: 68px;
    right: 0;
    width: 280px;
    height: calc(100vh - 68px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    z-index: 200;
    overflow-y: auto;
    gap: 0;
  }
  nav#main-nav.open { display: flex; }
  nav#main-nav a {
    font-size: 1rem;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  nav#main-nav a::after { display: none; }
  nav#main-nav .btn-contact {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    border-radius: 6px;
  }
  .hamburger { display: flex; }
  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero { min-height: 480px; }
  .hero-inner { padding: 60px 16px; }
  .hero-content-box { padding: 24px 20px; max-width: 100%; }
  .hero-title { font-size: 1.6rem; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  /* Sections */
  section { padding: 48px 16px; }
  .section-title { font-size: 1.5rem; }

  /* Service */
  .service-grid { grid-template-columns: 1fr; }
  .service-row2 { grid-template-columns: 1fr; max-width: 100%; }

  /* Achievement */
  .achievement-section { padding: 48px 16px; }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }

  /* Office */
  .office-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section { padding: 48px 16px; }
  .cta-section h2 { font-size: 1.5rem; }

  /* Footer */
  footer { padding: 40px 16px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Page Hero */
  .page-hero-inner { padding: 40px 16px; }
  .page-hero-inner h1 { font-size: 1.6rem; }
}
