/* ============================================================
   Theme B - オーソドックス・コーポレート型
   BtoB・信頼訴求向け（士業・コンサル・地元企業・ポスティング等）

   特徴:
   - 最初から白固定ヘッダー（コーポレートサイトの標準）
   - 上部に横並びナビ＋右端常時CTAボタン
   - ヒーローは標準的な「写真背景＋中央テキスト」
   - 右サイドに縦長の常時CTAバナー（スクロール時表示）
   - 「信頼・実績・誠実」の訴求軸
   ============================================================ */

/* ===== HEADER (THEME B) ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  background-color: #fff;
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(15, 29, 51, 0.08);
}
.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header__logo {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.05em;
}

/* ===== DESKTOP NAV ===== */
.header__nav .nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-1);
  position: relative;
  padding-block: 0.5rem;
  transition: color 0.25s ease;
}
.header__nav a:hover { color: var(--c-accent); }
.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background-color: var(--c-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s ease;
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left center; }

.header__nav-cta {
  padding: 0.65rem 1.4rem;
  background-color: var(--c-accent);
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.header__nav-cta::after { display: none; }
.header__nav-cta:hover {
  background-color: var(--c-accent-dark);
  transform: translateY(-1px);
  color: #fff !important;
}

/* ===== MOBILE MENU BUTTON ===== */
.header__menu-btn {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  z-index: 105;
}
.header__menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background-color: var(--c-primary);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.header__menu-btn[aria-expanded="true"] span { background-color: #fff; }
.header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding-top: var(--header-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=2400&q=85"));
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 29, 51, 0.75) 0%, rgba(15, 29, 51, 0.5) 50%, rgba(15, 29, 51, 0.3) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  padding-block: 4rem;
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--c-accent-light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.hero__title {
  font-family: var(--f-serif);
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  color: #fff;
  max-width: 720px;
}
.hero__title-line { display: block; opacity: 0; }
.hero__title-line:nth-child(1) { animation: heroReveal 1s ease-out 0.3s forwards; }
.hero__title-line:nth-child(2) { animation: heroReveal 1s ease-out 0.55s forwards; }
.hero__subtitle {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroReveal 1s ease-out 0.85s forwards;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: heroReveal 1s ease-out 1.1s forwards;
}
.hero__actions .btn--ghost {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.hero__actions .btn--ghost:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FLOATING SIDE CTA (Desktop) ===== */
.side-cta {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.side-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.side-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 0.85rem;
  background-color: var(--c-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px 0 0 8px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: -4px 0 16px rgba(217, 115, 38, 0.3);
  transition: background-color 0.25s ease, padding-right 0.25s ease;
  min-height: 160px;
}
.side-cta__btn:hover {
  background-color: var(--c-accent-dark);
  padding-right: 1.1rem;
  color: #fff;
}
.side-cta__btn i { writing-mode: horizontal-tb; margin-top: 0.4rem; }

@media (max-width: 1023px) {
  .side-cta { display: none; }
}

/* ===== STRENGTHS GRID ===== */
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ===== SERVICES GRID ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--c-primary);
  color: rgba(255,255,255,0.6);
  padding-block: 3.5rem 1.75rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 960px;
  margin-inline: auto;
}
.footer__logo {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.footer__address {
  font-size: 0.8125rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
  font-style: normal;
}
.footer__col-title {
  font-family: var(--f-serif);
  font-size: 0.8rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__nav a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--c-accent); }
.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .strengths__grid { grid-template-columns: 1fr 1fr; }
  .strengths__grid > *:last-child { grid-column: 1 / -1; max-width: 540px; margin-inline: auto; }
  .services__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }

  .header__menu-btn { display: flex; }

  .header__nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--c-primary);
    padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 95;
    overflow-y: auto;
  }
  .header__nav.is-open { transform: translateX(0); }
  .header__nav .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header__nav a {
    color: #fff !important;
    font-size: 1.05rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .header__nav a::after { display: none; }
  .header__nav-cta {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem 1.5rem !important;
    border-bottom: none !important;
    justify-content: center;
  }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem; }
  .hero__title { font-size: clamp(1.625rem, 6vw, 2.25rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .strengths__grid { grid-template-columns: 1fr; }
  .strengths__grid > *:last-child { max-width: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}
