/* =========================================================
   株式会社バンナークエスト 会社情報ページ — company.css
   レイアウト方針: 白地に余白を取った企業ページ。ネイビーの帯を
   HEROとBRANDの2か所だけに使い、洗極（黒）との差別化と統一感を両立。
   ========================================================= */
:root {
  --navy:     #0F2747;   /* BANNAR NAVY */
  --blue:     #1E6BD6;   /* QUEST BLUE */
  --charcoal: #2E2E33;   /* CHARCOAL */
  --white:    #FFFFFF;
  --mist:     #F3F6FA;   /* 薄いネイビー寄りの面 */
  --line:     #DCE3ED;
  --muted:    #5E6675;
  --sengoku:  #06080b;   /* 洗極ブランドの黒 */

  --f-en:   "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;

  --gutter: 20px;
  --maxw: 1080px;
  --header-h: 60px;
  --sec-pad: clamp(64px, 12vw, 120px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--charcoal);
  font-family: var(--f-body); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-pad); }

/* 見出し */
.sec-head { display: grid; gap: 6px; margin-bottom: clamp(32px, 6vw, 52px); }
.sec-head__en {
  font-family: var(--f-en); font-weight: 600; font-size: clamp(26px, 6.4vw, 40px);
  letter-spacing: .14em; line-height: 1.2; color: var(--navy);
}
.sec-head__ja { font-size: 15px; font-weight: 600; color: var(--blue); letter-spacing: .14em; }
.sec-head--light .sec-head__en { color: var(--white); }
.sec-head--light .sec-head__ja { color: #8fb6ef; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: 0 1.6em; font-family: var(--f-body); font-weight: 700; font-size: 15px; letter-spacing: .08em;
  text-decoration: none; border: 1px solid var(--navy); color: var(--navy); background: var(--white);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--mist); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--primary:hover { background: #185bb8; border-color: #185bb8; }
.btn--on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--on-dark:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn .arrow { width: 18px; height: 10px; flex: none; }

/* ---------- Header ---------- */
.c-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.c-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.c-header__logo img { height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.c-nav { display: none; margin-left: auto; }
.c-nav ul { display: flex; gap: 30px; }
.c-nav a { font-family: var(--f-en); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-decoration: none; color: var(--navy); padding-block: 6px; border-bottom: 2px solid transparent; }
.c-nav a:hover { border-bottom-color: var(--blue); }
.c-header__brand {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; white-space: nowrap; flex: none;
  background: var(--sengoku); color: #e6e9ee; text-decoration: none;
  font-family: var(--f-en); font-weight: 600; font-size: 11px; letter-spacing: .14em;
}
.c-header__brand img { height: 20px; width: auto; }
.c-header__logo { flex: 0 1 auto; min-width: 0; }

/* ---------- HERO（1ブロック：白地＋ネイビーのアクセント帯） ---------- */
.c-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
}
.c-hero::after {            /* ネイビー→ブルーの細いアクセント帯 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 55%, var(--blue) 100%);
}
.c-hero__mark {             /* ブランドビジュアルの「B」を透かしとして配置 */
  position: absolute; z-index: -1; right: -12%; top: 50%; transform: translateY(-50%);
  height: 130%; width: auto; max-width: none; opacity: .07; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
.c-hero__inner { padding-block: 22px 26px; display: grid; gap: 18px; }
.c-hero__logo { width: 100%; max-width: 230px; height: auto; }
.c-hero__name { margin-top: 8px; display: grid; gap: 0; }
.c-hero__name h1 { font-size: clamp(18px, 4.6vw, 24px); font-weight: 700; letter-spacing: .1em; color: var(--navy); line-height: 1.5; }
.c-hero__name p { font-family: var(--f-en); font-weight: 500; font-size: clamp(12px, 3.1vw, 14px); letter-spacing: .16em; color: var(--muted); }
.c-hero__message { padding-left: 14px; border-left: 3px solid var(--blue); }
.c-hero__catch {
  font-family: var(--f-mincho); font-weight: 600; font-size: clamp(21px, 5.6vw, 32px);
  line-height: 1.55; letter-spacing: .08em; color: var(--navy); word-break: auto-phrase;
}
.c-hero__catch span { display: block; }
.c-hero__sub { margin-top: 6px; font-size: clamp(14px, 3.6vw, 16px); letter-spacing: .06em; color: var(--charcoal); word-break: auto-phrase; }

/* ---------- PROFILE（会社概要：一覧で読みやすい表組み） ---------- */
.profile { background: var(--white); padding-top: clamp(36px, 7vw, 64px); }
.profile__list { border: 1px solid var(--line); border-top: 3px solid var(--navy); background: var(--white); }
.profile__row { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 12px; padding: 16px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.profile__row:last-child { border-bottom: 0; }
.profile__row:nth-child(odd) { background: var(--mist); }
.profile__row dt { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.profile__row dd { font-size: 16px; color: var(--charcoal); line-height: 1.8; min-width: 0; overflow-wrap: anywhere; word-break: auto-phrase; }
.nw { white-space: nowrap; }
.profile__row dd .en { font-family: var(--f-en); letter-spacing: .04em; }
.profile__zip { display: block; font-size: 14px; color: var(--muted); }
.profile__biz { display: grid; gap: 2px; }
.profile__biz li { position: relative; padding-left: 1.1em; }
.profile__biz li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; background: var(--blue); }
.profile__brand { color: var(--blue); font-weight: 700; text-underline-offset: 4px; }

/* ---------- MEMBER ---------- */
.member { background: var(--mist); }
.member__list { display: grid; gap: 20px; }
.member-card { background: var(--white); border: 1px solid var(--line); display: grid; }
.member-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.member-card__media img.cover { width: 100%; height: 100%; object-fit: cover; }
.member-card__media--ceo img.cover { object-position: 50% 45%; opacity: .95; }
.member-card__media--eight img.cover { object-position: 45% 30%; }
.member-card__media--eight::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6,8,11,.7) 100%); }
.member-card__sign { position: absolute; left: 18px; bottom: 12px; width: 52%; max-width: 260px; z-index: 1; }
.member-card__monogram {
  position: absolute; left: 20px; bottom: 16px; z-index: 1;
  font-family: var(--f-en); font-weight: 600; font-size: 12px; letter-spacing: .24em; color: rgba(255,255,255,.85);
}
.member-card__body { padding: 24px 22px 28px; display: grid; gap: 4px; }
.member-card__role { font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.member-card__name { font-size: clamp(24px, 6.4vw, 30px); font-weight: 700; color: var(--navy); letter-spacing: .12em; line-height: 1.4; }
.member-card__en { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: .16em; color: var(--muted); line-height: 1.7; }
.member-card__en b { font-weight: 600; color: var(--charcoal); }
.member-card__tag { margin-top: 14px; font-family: var(--f-mincho); font-weight: 600; font-size: 18px; color: var(--navy); }
.member-card__text { margin-top: 6px; font-size: 15px; line-height: 1.95; }

/* ---------- BRAND（洗極） ---------- */
.c-brand { position: relative; overflow: hidden; isolation: isolate; background: var(--sengoku); color: #e6e9ee; }
.c-brand__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .45; }
.c-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,8,11,.55), rgba(6,8,11,.92)); }
.c-brand__inner { display: grid; gap: 20px; justify-items: start; }
.c-brand__logo { height: 52px; width: auto; }
.c-brand__name { font-family: var(--f-en); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: #b9c2cf; }
.c-brand__catch { font-family: var(--f-mincho); font-weight: 600; font-size: clamp(30px, 8vw, 48px); line-height: 1.4; color: #fff; letter-spacing: .06em; }
.c-brand__en { font-family: "Cinzel", "Times New Roman", serif; font-size: clamp(15px, 4vw, 20px); letter-spacing: .32em; color: #fff; margin-top: -8px; }
.c-brand__text { font-size: 16px; }
.c-brand .btn { margin-top: 8px; width: 100%; max-width: 380px; }

/* ---------- CONTACT ---------- */
.c-contact { background: var(--white); }
.c-contact__box { border: 1px solid var(--line); background: var(--mist); padding: clamp(26px, 6vw, 52px) clamp(20px, 5vw, 52px); }
.c-contact__text { font-size: 16px; }
.c-contact__topics { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.c-contact__topics li { font-size: 13px; padding: 4px 12px; background: var(--white); border: 1px solid var(--line); color: var(--charcoal); }
.c-contact__cta { margin-top: 28px; display: grid; gap: 12px; }
.c-contact__address { margin-top: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.c-contact__address b { font-weight: 600; font-size: 16px; color: var(--navy); overflow-wrap: anywhere; user-select: all; }
.c-contact__note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- FOOTER ---------- */
.c-footer { border-top: 1px solid var(--line); background: var(--white); padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); }
.c-footer__logo { width: 220px; }
.c-footer__links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 0 24px; }
.c-footer__links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--charcoal); text-decoration: none; }
.c-footer__links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.c-footer__copy { margin-top: 20px; font-family: var(--f-en); font-size: 12px; letter-spacing: .06em; color: var(--muted); }

/* Reveal（main.js と共通） */
.is-hidden { opacity: 0; transform: translateY(14px); }
.is-hidden.is-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .c-contact__cta { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  :root { --gutter: 48px; --header-h: 72px; }
  .c-header__logo img { height: 36px; }
  .c-nav { display: block; }
  .c-header__brand { margin-left: 8px; }
  /* HERO：PCは会社概要を早く見せるためコンパクトに */
  .c-hero__inner { padding-block: 44px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }
  .c-hero__logo { max-width: 340px; }
  .c-hero__name { margin-top: 12px; }
  .c-hero__message { padding-left: 28px; }
  .c-hero__sub { margin-top: 10px; }
  .c-hero__mark { right: -4%; height: 150%; opacity: .08; }
  .profile__row { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 22px 28px; }
  .profile__row dt { font-size: 15px; }
  .profile__row dd { font-size: 17px; }
  .profile .container { max-width: 960px; }
  .member__list { grid-template-columns: 1fr 1fr; gap: 28px; }
  .c-brand__inner { grid-template-columns: 1fr auto; align-items: end; column-gap: 64px; }
  .c-brand__inner > * { grid-column: 1; }
  .c-brand .btn { grid-column: 2; grid-row: 3 / span 2; }
  .c-footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .c-footer__links { margin-top: 0; justify-content: flex-end; }
}
