/* ============================================
   format.css
   BFGホールディングス株式会社 コーポレートサイト
============================================ */

:root {
  --color-primary: #12294f;
  --color-primary-dark: #0c1b33;
  --color-accent: #c9a66b;
  --color-text: #000000;
  --color-text-sub: #000000;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f6f8;
  --color-border: #e3e6ea;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --header-height: 110px;
  --header-height-scrolled: 80px;
  --inner-width: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 400;
}

body.is-noscroll {
  overflow: hidden;
}

a {
  transition: opacity 0.2s ease, color 0.2s ease;
}

.sp-only {
  display: none;
}

a:hover {
  opacity: 0.7;
}

.inner {
  width: 100%;
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 見出し共通 ---------- */

.section {
  padding: 120px 0;
}

.section--soft {
  background-color: #fdf1e4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  text-align: left;
  margin-bottom: 64px;
}

.section__en {
  order: 2;
  margin-left: 4px;
  font-size: 16px;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  font-weight: 600;
}

.section__head::after {
  content: "";
  order: 3;
  flex: 1 1 auto;
  align-self: center;
  height: 1px;
  margin-left: 16px;
  background: rgba(18, 41, 79, 0.3);
}

.section__title {
  font-size: 26px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.04em;
}

.section__title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-right: 12px;
  vertical-align: middle;
}

.section__lead {
  margin-top: 20px;
  color: var(--color-text-sub);
  font-size: 18px;
}

/* ---------- ヘッダー ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  transition: height 0.3s ease;
  z-index: 1000;
}

.header.is-scrolled {
  height: var(--header-height-scrolled);
}

.header__inner {
  width: 100%;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.gnav__list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gnav__list a {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  position: relative;
}

.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.gnav__list a:hover {
  opacity: 1;
}

.gnav__list a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  position: relative;
  width: 32px;
  height: 22px;
  z-index: 1100;
}

.menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 10px; }
.menu-btn span:nth-child(3) { top: 20px; }

/* ---------- メインビジュアル ---------- */

.mv {
  position: relative;
  width: 95%;
  margin: var(--header-height) auto 0;
  height: 80vh;
  border-radius: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.mv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 51, 0.15);
}

.mv__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 32px;
  color: #fff;
  text-align: center;
}

.mv__en {
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  margin-bottom: 24px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.mv__title {
  font-size: 47px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.mv__text {
  margin: 28px auto 0;
  font-size: 18px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.mv__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 1);
  font-size: 11px;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mv__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  animation: scrollLine 1.8s ease infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- お知らせ ---------- */

.news {
  width: 95%;
  margin: 60px auto -20px;
  padding: 120px 0;
  border-radius: 20px;
  overflow: hidden;
  background-color: #e9ebee;
}

.news .inner {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.news .section__head {
  margin-bottom: 24px;
}

.news__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news__item {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.news__date {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
}

.news__text {
  font-size: 16px;
  color: #000;
}

/* ---------- ごあいさつ ---------- */

.message__body {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.message__aside {
  order: 2;
  flex: 0 0 200px;
  width: 200px;
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: flex-start;
}

.message__figure {
  width: 200px;
}

.message__figure img {
  width: 100%;
  height: auto;
}

.message__content p {
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--color-text);
}

.message__content .message__catch {
  font-size: 40px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.03em;
  line-height: 1.4;
  border-left: 6px solid var(--color-primary);
  padding-left: 25px;
  margin-bottom: 28px;
}

.message__name {
  margin-top: 30px;
  font-size: 13px;
  color: #000;
  text-align: center;
}

.message__name strong {
  display: block;
  font-size: 20px;
  margin-top: 0;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.message__name-title {
  font-size: 17px;
}

/* ---------- ロゴマークについて ---------- */

.logomark {
  position: relative;
  width: 95%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.logomark .section__en {
  color: rgba(255, 255, 255, 0.7);
}

.logomark .section__title {
  color: #fff;
}

.logomark .section__title::before {
  background: #fe8a05;
}

.logomark .section__head::after {
  background: rgba(255, 255, 255, 0.25);
}

.logomark__watermark {
  position: absolute;
  left: 0;
  bottom: -8%;
  width: 80%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.logomark > .inner {
  position: relative;
  z-index: 1;
}

.logomark__body {
  display: flex;
  gap: 64px;
  align-items: center;
}

.logomark__figure {
  order: 2;
  flex: 0 0 320px;
  width: 320px;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logomark__figure img {
  width: 100%;
  height: auto;
}

.logomark__content p {
  margin-bottom: 22px;
  font-size: 18px;
  color: #fff;
  line-height: 1.95;
}

.logomark__content p:last-child {
  margin-bottom: 0;
}

/* ---------- 会社概要 ---------- */

.about {
  position: relative;
  overflow: hidden;
}

.about__watermark {
  position: absolute;
  right: 0;
  bottom: -8%;
  width: 70%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.about > .inner {
  position: relative;
  z-index: 1;
}

.about__table th,
.about__table td {
  text-align: left;
  padding: 22px 16px;
  font-size: 18px;
  vertical-align: top;
}

.about__table th {
  width: 220px;
  color: #000;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.about__table td {
  color: var(--color-text-sub);
}

/* ---------- 経営理念 ---------- */

.philosophy {
  width: 95%;
  margin: 0 auto 60px;
  padding: 120px 0;
  border-radius: 20px;
  overflow: hidden;
  background-color: #e9ebee;
  background-image: none;
}

.philosophy .section__head {
  margin-bottom: 32px;
}

.philosophy__statement {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
}

.philosophy__brand {
  max-width: 760px;
  margin: 0 auto;
}

.philosophy__brand-title {
  font-size: 24px;
  font-weight: 700;
  color: #fe8a05;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 24px;
}

.philosophy__brand-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #fe8a05;
  margin: 16px auto 0;
}

.philosophy__brand-lead {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #000;
  margin-bottom: 28px;
}

.philosophy__brand p:not([class]) {
  font-size: 18px;
  line-height: 1.95;
  text-align: center;
  color: var(--color-text-sub);
  margin-bottom: 50px;
}

.philosophy__brand-narrow {
  max-width: 550px;
  margin: 0 auto 50px;
  font-size: 18px;
  line-height: 1.95;
  text-align: center;
  color: var(--color-text-sub);
}

.philosophy__brand-block {
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 50px;
}

.philosophy__brand-block p:last-child {
  margin-bottom: 0;
}

.philosophy__brand-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #fe8a05;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 24px;
}

.philosophy__brand-subtitle::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #fe8a05;
  margin: 16px auto 0;
}

.philosophy__brand-heading2 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 24px;
}

.philosophy__brand-diagram {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

.philosophy__brand-statement {
  font-size: 20px;
  line-height: 1.8;
  font-weight: bold;
  text-align: center;
  color: #000;
  margin-bottom: 28px;
}

.philosophy__brand-logo {
  display: block;
  width: 240px;
  margin: 0 auto 28px;
}

/* ---------- グループ会社 ---------- */

.group {
  background-color: #e9ebee;
  background-image: none;
}

.banner__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.banner__list--single {
  grid-template-columns: 1fr;
  max-width: 360px;
  margin: 0;
}

.banner__item {
  display: flex;
}

.banner__item a,
.banner__item .banner__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.banner__item img {
  width: auto;
  max-width: 70%;
  height: auto;
  max-height: 60px;
}

.banner__item--dark a,
.banner__item--dark .banner__link {
  background: #d70000;
  border-color: #d70000;
}

.group__subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: left;
  margin: 20px 0 10px;
}

.banner__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-sub);
}

/* ---------- フッター ---------- */

.footer {
  background: var(--color-primary-dark);
  color: #b6bbc2;
  padding: 15px 0;
}

.footer__inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.footer__copy {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #ffffff;
}
