@charset "UTF-8";
/* ==========================================================
   Brangista Media top — cover shelf version
   ========================================================== */
:root {
  --red: #d80b19;
  --red-dark: #b00a14;
  --ink: #1a1a1a;
  --text: #333;
  --muted: #666;
  --line: #e5e1dc;
  --head-h: 64px;
  --gutter: 24px;
  --cover-h: min(64svh, 640px);   /* 表紙の高さ（FVいっぱいに見せる） */
  --gap: clamp(16px, 2vw, 32px);
  --font: "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}
@media (max-width: 767px) {
  :root { --head-h: 56px; --gutter: 16px; --cover-h: min(64svh, 82vw * 1.414); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 500; font-size: 15px; line-height: 1.8; color: var(--text); background: #fff; overflow-x: hidden; font-feature-settings: "palt" 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(1120px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- FV ---------- */
.fv { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--red); }
.fv-head { position: relative; z-index: 20; height: var(--head-h); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); background: #fff; }

/* ヘッダーリンク */
.gnav ul { display: flex; gap: 4px; }
.gnav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 14px; font-weight: 700; color: var(--ink); border-radius: 6px;
}
.gnav a::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.gnav a:hover::before { transform: scaleX(1); }
.gnav .gnav-contact a { background: var(--red); color: #fff; padding: 0 20px; margin-left: 8px; border-radius: 999px; }
.gnav .gnav-contact a::before { display: none; }
.gnav .gnav-contact a:hover { background: var(--red-dark); }
.menu-btn { display: none; }
.drawer { display: none; }
@media (max-width: 1023px) {
  .gnav { display: none; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; cursor: pointer; border-radius: 6px;
  }
  .menu-btn span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .drawer {
    display: block; position: fixed; inset: var(--head-h) 0 0 0; z-index: 30; background: #fff; overflow-y: auto;
    padding: 8px var(--gutter) 40px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .drawer.is-open { visibility: visible; opacity: 1; }
  .drawer a {
    display: flex; align-items: center; justify-content: space-between; min-height: 56px;
    border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; color: var(--ink);
  }
  .drawer a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); }
}
body.is-locked { overflow: hidden; }
.logo a { display: flex; align-items: center; min-height: 44px; }
.logo img { width: 165px; height: auto; }
@media (max-width: 767px) { .logo img { width: 140px; } }

.shelf { position: relative; flex: 1; display: flex; align-items: center; padding: 72px 0; }
.shelf-viewport { position: relative; width: 100%; overflow: hidden; }
/* キャッチコピー（表紙の帯の上に重ねる） */
.fv-copy {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - var(--gutter) * 2);
  margin: 0; padding: 0; text-align: center; pointer-events: none;
  color: #fff; font-size: clamp(32px, 4.4vw, 64px); font-weight: 700; line-height: 1.45; letter-spacing: .06em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
/* タイトルの周りだけに黒シャドウ（文字サイズに合わせて自動で広がる。濃さは rgba の最後の数値で調整） */
.fv-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -45% -16%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, 0));
}
.fv-copy span { display: inline-block; }
.fv-copy span:first-child { display: block; }
@media (max-width: 767px) {
  .fv-copy { font-size: clamp(30px, 8.6vw, 40px); }
  .fv-copy::before { inset: -30% -14%; }
  .fv-copy span { display: block; }
}
.shelf-track { display: flex; gap: var(--gap); width: max-content; padding: 12px 0 24px; }
.shelf-track li { flex: 0 0 auto; }
.shelf-track a { display: block; border-radius: 2px; overflow: hidden; box-shadow: 0 14px 32px rgba(70, 0, 6, .35); transition: transform .3s ease, box-shadow .3s ease; }
.shelf-track img { height: var(--cover-h); width: auto; aspect-ratio: 424 / 600; object-fit: cover; }
.shelf-track a:hover, .shelf-track a:focus-visible { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(70, 0, 6, .45); }
.shelf-track a:focus-visible { outline-color: #fff; }

/* 自動スクロール（JSが有効なときだけ） */
.is-running .shelf-track { animation: shelf var(--duration, 80s) linear infinite; }
.is-running .shelf-track:hover, .is-running .shelf-track:focus-within, .is-paused .shelf-track { animation-play-state: paused; }
@keyframes shelf { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

.shelf-toggle {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 20px; min-height: 44px; padding: 0 18px 0 40px;
  border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 999px; background: transparent; color: #fff;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .2s;
}
.shelf-toggle:hover { background: rgba(255, 255, 255, .15); }
.shelf-toggle::before { /* 一時停止アイコン */
  content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 12px; transform: translateY(-50%);
  border-left: 3px solid #fff; border-right: 3px solid #fff;
}
.shelf-toggle[aria-pressed="true"]::before { /* 再生アイコン */
  width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.no-js .shelf-toggle, .shelf-toggle[hidden] { display: none; }

/* JSなし・動きを減らす設定：手動で横スクロール */
.is-static .shelf-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.is-static .shelf-track { padding-left: var(--gutter); padding-right: var(--gutter); }
.is-static .shelf-track li { scroll-snap-align: center; }

/* ---------- Footer ---------- */
.footer-main { background: var(--red); color: #fff; }
.footer-main .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 700; }
.footer-menu li:first-child a { padding-left: 0; }
.footer-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copyright { font-size: 13px; }

.footer-group { background: #fff; padding: 56px 0 40px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 2fr; gap: 32px 48px; }
.footer-cols dl { align-self: start; }
.footer-cols dt { font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.footer-cols dd a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text); word-break: keep-all; }
.footer-cols dd a:hover { color: var(--red); }
.footer-cols .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.footer-cols .two-col dt { grid-column: 1 / -1; }
.footer-corp { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-corp-logos { display: flex; align-items: center; gap: 20px; }
.footer-corp-logos a { display: flex; align-items: center; min-height: 44px; }
.footer-corp-logos img.b { width: 160px; height: auto; }
.footer-corp-logos img.j { width: 34px; height: auto; }
@media (max-width: 767px) {
  .footer-main .wrap { flex-direction: column; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
  .footer-menu ul { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .footer-menu li a { padding-left: 0; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer-cols dt { grid-column: 1 / -1; }
  .footer-cols dd a { min-height: 44px; }
  .footer-corp { flex-direction: column; text-align: center; }
}


/* ==========================================================
   下層ページ（会社概要など）
   ========================================================== */
.subpage .fv-head { position: sticky; top: 0; border-bottom: 1px solid var(--line); }
.gnav a[aria-current="page"]::before { transform: scaleX(1); }
.drawer a[aria-current="page"] { color: var(--red); }

.page-head { background: var(--red); color: #fff; }
.page-head .wrap { min-height: clamp(140px, 18vw, 220px); display: flex; align-items: center; }
.page-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: .08em; line-height: 1.3; }

.company { padding: 72px 0 96px; }
.company .wrap { max-width: calc(880px + var(--gutter) * 2); }

.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.info-table th, .info-table td { padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.8; }
.info-table th { width: 30%; padding-right: 24px; font-weight: 700; color: var(--ink); }
.info-table td { color: var(--text); }
.pmark { margin-top: 10px; width: 60px; height: 60px; }

.map-link {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink);
  vertical-align: middle; transition: border-color .2s, color .2s;
}
.map-link::before { /* ピンアイコン */
  content: ""; width: 10px; height: 10px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.5A2.5 2.5 0 1 1 8 3.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.5A2.5 2.5 0 1 1 8 3.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.map-link:hover { border-color: var(--red); color: var(--red); }

.esg { margin-top: 32px; text-align: right; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 28px;
  border: 1.5px solid var(--red); border-radius: 999px; color: var(--red); font-weight: 700; font-size: 15px; letter-spacing: .06em;
  transition: background-color .2s, color .2s;
}
.btn-outline::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn-outline:hover { background: var(--red); color: #fff; }

.branches { margin-top: 80px; }
.section-title { position: relative; padding-left: 16px; margin-bottom: 28px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.4; }
.section-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--red); }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.branch { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.branch-name { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.branch-addr { font-size: 14px; line-height: 1.8; color: var(--text); }
.branch .map-link { margin: 14px 0 0; }

.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: background-color .2s;
}
.pagetop:hover { background: var(--red-dark); }
.pagetop::before { content: ""; width: 10px; height: 10px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: translateY(2px) rotate(45deg); }

@media (max-width: 767px) {
  .company { padding: 48px 0 72px; }
  .info-table th, .info-table td { display: block; width: 100%; padding: 0; border: 0; }
  .info-table tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .info-table th { margin-bottom: 4px; font-size: 13px; color: var(--muted); }
  .map-link { min-height: 36px; }
  .esg { text-align: center; }
  .branches { margin-top: 56px; }
  .branch-grid { grid-template-columns: 1fr; gap: 12px; }
  .branch { padding: 20px; }
  .pagetop { right: 12px; bottom: 12px; width: 44px; height: 44px; }
}
.branch-addr dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.branch-addr dd { margin: 0; }

/* ---- 下層ページ共通の本文 ---- */
.page-body { padding: 72px 0 96px; }
.page-body .wrap { max-width: calc(880px + var(--gutter) * 2); }
.footer-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.prose { font-size: 15px; line-height: 2; color: var(--text); overflow-wrap: anywhere; }
.prose p { margin: 0; }
.prose .mb-24 { margin-bottom: 24px; }
.prose .mb-60 { margin-bottom: 56px; }
.prose a:not(.btn-outline) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not(.btn-outline):hover { color: var(--red-dark); }
.prose .bold { position: relative; margin: 0 0 20px; padding-left: 16px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--ink); line-height: 1.5; }
.prose .bold::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--red); }
.prose .title { margin: 32px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.prose .bold + .title { margin-top: 0; }
.prose .dates { font-size: 13px; color: var(--muted); line-height: 1.9; }
.prose .cta { margin-top: 8px; }
.policy > .mb-60 + .mb-60 { padding-top: 48px; border-top: 1px solid var(--line); }

/* 事業内容 */
#service p:first-child { font-size: clamp(16px, 1.8vw, 19px); font-weight: 700; color: var(--ink); line-height: 1.9; margin-bottom: 16px; }

/* 企業理念 */
.ph-block + .ph-block { margin-top: 80px; }
.ph-label { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--red); }
.ph-title { margin: 0 0 40px; font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; line-height: 1.5; color: var(--ink); letter-spacing: .04em; }
.vision-list { list-style: none; margin: 0; padding: 0; counter-reset: v; border-top: 2px solid var(--ink); }
.vision-list li {
  counter-increment: v; position: relative; padding: 20px 0 20px 56px; border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.6vw, 17px); font-weight: 700; color: var(--ink); line-height: 1.7;
}
.vision-list li::before {
  content: counter(v, decimal-leading-zero); position: absolute; left: 0; top: 20px;
  font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: .04em;
}

/* ESGデータ */
.esg-block + .esg-block { margin-top: 56px; }
.esg-data .info-table td { font-weight: 700; color: var(--ink); text-align: right; font-feature-settings: "tnum" 1; }
.esg-data .info-table th { width: auto; }

/* 404 */
.notfound { text-align: center; padding: 40px 0; }

@media (max-width: 767px) {
  .page-body { padding: 48px 0 72px; }
  .prose { font-size: 14px; line-height: 1.95; }
  .prose .mb-60 { margin-bottom: 40px; }
  .policy > .mb-60 + .mb-60 { padding-top: 36px; }
  .ph-block + .ph-block { margin-top: 56px; }
  .ph-title { margin-bottom: 28px; }
  .vision-list li { padding-left: 44px; }
  /* ESGは数値を右寄せのまま横並びを維持 */
  .esg-data .info-table tr { display: flex; justify-content: space-between; gap: 16px; }
  .esg-data .info-table th { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; }
  .esg-data .info-table td { width: auto; }
}
.page-title { word-break: keep-all; overflow-wrap: anywhere; }
