
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --n10: #1B1B1B;
  --n40: #5E5E5E;
  --n70: #ABABAB;
  --tan60: 1.7320508;
  --cut-foot: 5vw;
  --ico-wrench: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2015%27%3E%3Cpath%20d%3D%27M15.03%201.49%20L11.34%205.86%20L2.17%209.67%20L0.96%2010.54%20L0.50%2011.96%20L0.96%2013.38%20L2.17%2014.26%20L3.66%2014.26%20L13.32%2011.94%20L15.07%2011.44%20L18.28%2012.16%20L21.31%2011.51%20L23.50%2010.23%20L23.50%209.11%20L16.57%209.14%20L16.54%203.78%20L23.47%203.75%20L23.47%202.63%20L21.27%201.37%20L18.23%200.74%20Z%20M1.95%2012.28%20L1.97%2011.58%20L2.44%2011.07%20L3.13%2010.97%20L3.71%2011.34%20L3.93%2012.00%20L3.67%2012.64%20L3.06%2012.97%20L2.38%2012.82%20Z%27%20fill%3D%27%23000%27%20fill-rule%3D%27evenodd%27%2F%3E%3C%2Fsvg%3E");   
  --n90: #E2E2E2;
  --n95: #F1F1F1;
  --green50: #008767;
  --green40: #006C51;
  --max: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Noto Sans', 'Yu Gothic', sans-serif;
  font-weight: 500;
  color: var(--n10);
  background: #FFFFFF;
  line-height: 2;
  font-size: 16px;
  letter-spacing: 0.02em;
}

img { max-width: 100%; }
a { color: var(--green40); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 40px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--n90);
}
.site-header .logo { display: block; line-height: 0; text-decoration: none; }
.site-header .logo img { display: block; height: 22px; width: auto; }
.site-header nav { display: flex; gap: 28px; flex: 1; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a {
  position: relative;
  text-decoration: none;
  color: var(--n10);
  font-size: 16px;
  font-weight: 700;
  padding: 4px 0;
  transition: color 0.2s;
}
.site-header nav a .ext { font-size: 12px; }   /* 別タブで開くリンクの印（フッターと同じ） */
.site-header nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--green40);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-header nav a:hover, .site-header nav a.current { color: var(--green40); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after, .site-header nav a.current::after { transform: scaleX(1); }
.site-header nav a.current::after { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header nav a::after { transition: none; }
}
.contact-btn {
  text-decoration: none;
  color: #FFFFFF;
  background: var(--green50);
  padding: 10px 26px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s;
}
.contact-btn:hover { background: var(--green40); }

.sec-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--green40);
  margin-bottom: 10px;
}
h1 { font-weight: 800; font-size: 34px; line-height: 1.6; letter-spacing: 0.04em; }
h2 { font-weight: 800; font-size: 26px; line-height: 1.6; letter-spacing: 0.04em; margin-bottom: 28px; }
h3 { font-weight: 800; font-size: 18px; margin-bottom: 10px; }
p { margin-bottom: 18px; }

.lead { color: var(--n40); margin-bottom: 32px; }

section.band { padding: 110px 40px; }
section.band.tint { background: var(--n95); }
.inner { max-width: var(--max); margin: 0 auto; }
.inner.narrow { max-width: 800px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 0; }

.hero3d {
  --cut: 5vw;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) * var(--tan60)),
                     calc(100% - var(--cut)) 100%, 0 100%);
}
@supports (clip-path: shape(from 0 0, line to 1px 1px)) {
  .hero3d {
    clip-path: shape(
      from 0 0,
      line to 100% 0,
      line to 100% calc(100% - var(--cut) * var(--tan60)),
      line to calc(100% - var(--cut) + 18px) calc(100% - 31.18px),
      curve to calc(100% - var(--cut) - 36px) 100% with calc(100% - var(--cut)) 100%,
      line to 0 100%,
      close);
  }
}
.hero3d {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
#heroScene { position: absolute; inset: 0; will-change: transform, opacity; } 
#heroScene canvas { display: block; width: 100%; height: 100%; }
.hero3d-copy {
  position: absolute;
  left: 40px;
  bottom: 18vh;
  z-index: 2;
  pointer-events: none;
}
.hero3d-copy h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--n10);
}
.hero3d-copy.plain { left: 40px; right: calc(var(--cut) + 48px); top: auto; bottom: 4vh; text-align: left; display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; } 
.hero3d-copy.plain h1 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.45; letter-spacing: 0.05em; }
.fv-label { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.3em; color: var(--n40); margin-bottom: 20px; }
.era-switch[hidden] { display: none !important; } 
.era-switch { 
  position: relative; z-index: 3; margin: 0 0 0.35em 0; pointer-events: auto; flex: none;
  display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--n90);
  box-shadow: 0 1px 2px rgba(27, 27, 27, 0.06); 
}
.era-thumb { 
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px; background: var(--green50);
  transform: translateX(100%); 
  transition: transform 0.45s cubic-bezier(0.3, 0.015, 0.12, 1);
  pointer-events: none;
}
.era-switch[data-active="past"] .era-thumb { transform: translateX(0); }
.era-switch[data-active="now"] .era-thumb { transform: translateX(100%); }
.era-switch[data-active="future"] .era-thumb { transform: translateX(200%); }
.era-btn {
  position: relative; z-index: 1;
  appearance: none; border: 0; cursor: pointer; background: transparent;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; line-height: 1;
  padding: 11px 22px; min-width: 104px; text-align: center; border-radius: 999px;
  color: var(--n10);
  transition: color 0.3s cubic-bezier(0.3, 0.015, 0.12, 1);
}
.era-btn:hover { color: var(--green40); }
.era-btn.is-active, .era-btn.is-active:hover { color: #FFFFFF; }
.era-btn:focus-visible { outline: 2px solid var(--green40); outline-offset: -2px; }
.era-switch.is-moving .era-btn { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .era-thumb { transition: none; } }
@media (max-width: 900px) {
  .hero3d-copy.plain { left: 22px; right: 22px; bottom: 12vh; }
  .hero3d-copy.plain h1 { font-size: clamp(22px, 7.2vw, 40px); }   
}

.site-header.on-hero { position: fixed; left: 0; right: 0; background: #FFFFFF; border-bottom-color: var(--n90); } 
.site-header.on-hero.scrolled { background: #FFFFFF; border-bottom-color: var(--n90); }

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

.split { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.split-text { padding-top: 48px; }
.split-photo { position: relative; padding-bottom: 72px; }
.split-photo .photo.tall { min-height: 480px; margin: 0; }
.split-photo .photo.over {
  position: absolute;
  left: -64px;
  bottom: 0;
  width: 46%;
  min-height: 160px;
  border: 6px solid #FFFFFF; 
  margin: 0;
}

.rows.big .row-link { padding: 26px 8px; }
.rows.big .date { font-size: 16px; }
.rows.big .ttl { font-weight: 700; }

.photo {
  background: var(--n10);
  color: var(--n90);
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 32px;
}
.photo .cap { font-size: 14px; letter-spacing: 0.08em; padding: 16px 20px; color: var(--n90); }
.photo.small { min-height: 180px; }
.photo.tall { min-height: 440px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.photo-grid .photo { margin: 0; }

.board-list { display: grid; gap: 0; margin-bottom: 32px; }
.board-item { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--n90); align-items: start; }
.board-item:first-child { border-top: 1px solid var(--n90); }
.board-item .photo { margin: 0; min-height: 260px; }
.board-photo { position: relative; aspect-ratio: 1 / 1; background: var(--n95); overflow: hidden; }
.board-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.board-item h3 .role { display: block; font-size: 15px; font-weight: 500; color: var(--n40); margin-top: 6px; letter-spacing: 0.04em; }
.board-item p { font-size: 15px; line-height: 2; }
@media (max-width: 900px) {
  .board-item { grid-template-columns: 120px 1fr; gap: 20px; padding: 28px 0; }
  .board-item .photo { min-height: 220px; }
}

.statement {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  line-height: 2.1;
  letter-spacing: 0.06em;
  text-align: center;
}
.statement-note { text-align: center; color: var(--n40); font-size: 15px; margin-top: 20px; }

.rows { list-style: none; margin-bottom: 32px; }
.rows li { border-bottom: 1px solid var(--n90); }
.rows li:first-child { border-top: 1px solid var(--n90); }
.rows a.row-link, .rows .row-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 8px;
  text-decoration: none;
  color: var(--n10);
  flex-wrap: wrap;
  transition: background 0.2s;
}
.rows a.row-link:hover { background: var(--n95); }
.rows .date { color: var(--n40); font-size: 15px; letter-spacing: 0.06em; white-space: nowrap; }
.rows .cat {
  color: var(--n40);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.rows .place { color: var(--n40); font-size: 15px; white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--n90); border: 1px solid var(--n90); margin-bottom: 32px; }
.facts .fact { background: #FFFFFF; padding: 32px 24px; }
.facts .num { font-weight: 800; font-size: 34px; line-height: 1.3; letter-spacing: 0.02em; }
.facts .unit { font-size: 16px; font-weight: 800; }
.facts .desc { color: var(--n40); font-size: 15px; margin-top: 8px; margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 32px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #FFFFFF; border: 1px solid var(--n90); display: flex; flex-direction: column; }
.card .photo { margin: 0; }
.card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 16px; color: var(--n10); flex: 1; }
.card .meta { color: var(--n40); font-size: 14px; }
.card-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--green40);
  margin-bottom: 8px;
  display: block;
}

.cta {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--n10);
  border-bottom: 1px solid var(--n10);
  padding: 2px 2px 6px;
  letter-spacing: 0.06em;
  transition: color 0.2s, border-color 0.2s;
}
.cta:hover { color: var(--green40); border-bottom-color: var(--green40); }
.cta.rev { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.cta.rev:hover { color: var(--n90); border-bottom-color: var(--n90); }

.tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 48px; list-style: none; border-bottom: 1px solid var(--n90); }
.tabs a {
  display: inline-block;
  padding: 12px 22px;
  text-decoration: none;
  color: var(--n40);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tabs a.active, .tabs a:hover { color: var(--green40); border-bottom-color: var(--green40); }

table.ledger { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
table.ledger th, table.ledger td {
  border-bottom: 1px solid var(--n90);
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  font-weight: 500;
  font-size: 16px;
}
table.ledger tr:first-child th, table.ledger tr:first-child td { border-top: 1px solid var(--n90); }
table.ledger th { font-weight: 800; width: 200px; color: var(--n10); background: transparent; }

.list-controls { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; font-size: 14px; color: var(--n40); }
.list-controls label { display: inline-flex; align-items: center; gap: 8px; }
.list-controls select { font: inherit; font-size: 15px; color: var(--n10); padding: 8px 10px; border: 1px solid var(--n90); background: #FFFFFF; }
.tabs .tab-future { display: inline-block; padding: 10px 2px; color: var(--n70); }

.model-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin: 28px 0 32px; }
.model-side { border: 1px solid var(--n90); padding: 24px; }
.model-side h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.model-side p { font-size: 15px; color: var(--n40); }
.model-join { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--green40); white-space: nowrap; }
.model-note { font-size: 14px; color: var(--n40); }
@media (max-width: 760px) {
  .model-pair { grid-template-columns: 1fr; gap: 12px; }
  .model-join { text-align: center; }
}
.model-flow { list-style: none; margin-bottom: 20px; }
.model-flow li {
  border: 1px solid var(--n90);
  background: #FFFFFF;
  padding: 20px 26px;
  counter-increment: step;
  position: relative;
}
.model-flow { counter-reset: step; }
.model-flow li::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 800;
  color: var(--green40);
  margin-right: 16px;
  font-size: 15px;
  letter-spacing: 0.1em;
}
.model-flow li + li { border-top: none; }
.model-flow .goal { background: var(--n10); color: #FFFFFF; font-weight: 800; }
.model-flow .goal::before { color: #FFFFFF; }

.recruit-banner {
  background: var(--n10); 
  color: #FFFFFF;
  padding: 80px 48px;
}
.recruit-banner h3 { font-size: 24px; margin-bottom: 14px; }
.recruit-banner p { color: var(--n90); }

blockquote { border-left: 2px solid var(--n90); padding-left: 22px; margin-bottom: 28px; }

.pager { display: flex; gap: 8px; margin-bottom: 32px; list-style: none; }
.pager a {
  border: 1px solid var(--n90);
  padding: 6px 14px;
  text-decoration: none;
  color: var(--n10);
  font-size: 15px;
  transition: border-color 0.2s, color 0.2s;
}
.pager a.active, .pager a:hover { border-color: var(--green40); color: var(--green40); font-weight: 700; }

.page-head { padding: 90px 40px 70px; border-bottom: 1px solid var(--n90); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head .lead { margin: 16px 0 0; }

.site-footer { --cut: var(--cut-foot);
  margin-top: calc(var(--cut-foot) * var(--tan60) * -1);
  clip-path: polygon(0 calc(var(--cut) * var(--tan60)), var(--cut) 0, 100% 0, 100% 100%, 0 100%); background: var(--n10); color: #FFFFFF; padding: 110px 40px 40px; }
@supports (clip-path: shape(from 0 0, line to 1px 1px)) {
  .site-footer {
    clip-path: shape(
      from 0 calc(var(--cut) * var(--tan60)),
      line to calc(var(--cut) - 18px) 31.18px,
      curve to calc(var(--cut) + 36px) 0 with var(--cut) 0,
      line to 100% 0,
      line to 100% 100%,
      line to 0 100%,
      close);
  }
}
.site-footer .inner { max-width: var(--max); margin: 0 auto; }
.site-footer .tagline { font-weight: 800; font-size: 20px; letter-spacing: 0.06em; margin-bottom: 12px; }
.site-footer .addr { font-size: 15px; color: var(--n90); margin-bottom: 40px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.site-footer nav a { color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 700; }
.site-footer nav a:hover { color: var(--n90); }
.site-footer nav.legal a { font-weight: 500; color: var(--n90); }
.site-footer a.owned { color: var(--n90); }            
.meta-line .date { color: var(--n40); font-size: 15px; letter-spacing: 0.06em; margin-right: 12px; }
.meta-line .cat { color: var(--n40); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.site-footer p { font-size: 14px; color: var(--n90); margin-bottom: 8px; }
.site-footer .copyright { margin-top: 36px; letter-spacing: 0.08em; }

.fade { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .cards, .cards.three { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  section.band { padding: 72px 22px; }
  .page-head { padding: 64px 22px 48px; }
  .site-header { padding: 12px 20px 0; gap: 12px; flex-wrap: wrap; }
  .site-header .logo img { height: 18px; }
  .site-header .contact-btn { margin-left: auto; padding: 8px 16px; font-size: 15px; }
  .site-header nav {
    order: 3; flex: 0 0 100%; justify-content: flex-start; gap: 18px; flex-wrap: nowrap;
    overflow-x: auto; white-space: nowrap; padding: 6px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { font-size: 15px; }
  .hero3d { height: 86vh; min-height: 480px; }
  .hero3d-copy { left: 22px; right: 22px; bottom: 14vh; }
  .hero3d-copy.plain { flex-direction: column; align-items: stretch; gap: 22px; }   
  .era-switch { display: grid; width: 100%; margin: 0; }
  .era-btn { font-size: 14px; padding: 10px 8px; min-width: 0; }
  .hero3d-copy.plain { bottom: 4vh; }   
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-text { padding-top: 0; }
  .split-photo { padding-bottom: 0; }
  .split-photo .photo.tall { min-height: 300px; }
  .split-photo .photo.over { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  table.ledger th { width: 120px; }
.site-footer { padding: 56px 22px 36px; }
}

.hero3d.is-dark { background: #102E24; }
.hero3d.is-dark #heroScene::after { background: linear-gradient(180deg, rgba(16,46,36,0.9) 0, rgba(16,46,36,0.5) 55%, rgba(16,46,36,0) 100%); }
.hero3d.is-dark #heroScene::before { background: linear-gradient(0deg, rgba(16,46,36,0.95) 0, rgba(16,46,36,0.75) 45%, rgba(16,46,36,0) 100%); }
.hero3d.is-dark .hero3d-copy, .hero3d.is-dark .hero3d-copy h1, .hero3d.is-dark .hero3d-sub { color: #FFFFFF; }
.hero3d.is-dark .hero3d-copy h1, .hero3d.is-dark .hero3d-sub { text-shadow: none; } 
body:has(.hero3d.is-dark) .site-header nav a, body:has(.hero3d.is-dark) .site-header .nav-nut { color: #FFFFFF; }
body:has(.hero3d.is-dark) .site-header .logo img { filter: brightness(0) invert(1); }
