/* =========================================================
   PRE CONSULTING CO., LTD. — New Site Stylesheet
   静か・硬質・機密性・高級感 / navy + ivory + gold accent
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, dl, dd, dt, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; }
address { font-style: normal; }
html { -webkit-text-size-adjust: 100%; }

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0a1830;
  --navy-800: #101f3d;
  --navy-700: #162a4d;
  --navy-600: #223761;
  --ivory: #f6f4ee;
  --ivory-deep: #eeebe1;
  --white: #ffffff;
  --ink: #14213a;
  --ink-soft: #4d5872;
  --ink-faint: #8189a0;
  --gold: #a9834c;
  --gold-soft: #c9ac74;
  --gold-line: #b79760;
  --line-light: rgba(20, 33, 58, 0.12);
  --line-lighter: rgba(20, 33, 58, 0.08);
  --line-dark: rgba(246, 244, 238, 0.16);
  --line-dark-soft: rgba(246, 244, 238, 0.09);

  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HG明朝E", "MS PMincho", serif;
  --font-sans: "Yu Gothic Medium", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;

  --container: 1180px;
  --pad: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  :root { --pad: 48px; }
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.9;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  body { font-size: 16px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section[data-section] {
  padding: 72px 0;
}

@media (min-width: 900px) {
  section[data-section] { padding: 140px 0; }
}

.bg-ivory { background: var(--ivory); }
.bg-ivory-deep { background: var(--ivory-deep); }
.bg-navy {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--ivory);
}
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-white { background: var(--white); }

/* ---------- Eyebrow / heading system ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.bg-navy .eyebrow { color: var(--gold-soft); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold-line);
}

.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head h2 {
  font-size: 26px;
  letter-spacing: 0.02em;
}
.section-head .lead {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
}
.bg-navy .section-head .lead { color: rgba(246,244,238,0.72); }

@media (min-width: 900px) {
  .section-head h2 { font-size: 34px; }
}

.hairline {
  border: none;
  height: 1px;
  background: var(--line-light);
}
.bg-navy .hairline { background: var(--line-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 24, 48, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line-dark-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
}
.brand .brand-en {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
}
.brand .brand-en b { color: var(--gold-soft); font-weight: 600; }
.brand .brand-jp {
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(246,244,238,0.6);
}

.nav-desktop {
  display: none;
}
@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .nav-desktop a {
    font-size: 12.5px;
    letter-spacing: 0.14em;
    color: rgba(246,244,238,0.82);
    position: relative;
    padding: 6px 0;
  }
  .nav-desktop a:hover,
  .nav-desktop a[aria-current="page"] { color: var(--white); }
  .nav-desktop a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--gold-soft);
  }
  .nav-desktop .nav-contact {
    border: 1px solid var(--line-dark);
    padding: 9px 22px;
    letter-spacing: 0.14em;
  }
  .nav-desktop .nav-contact:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
  justify-content: center;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  top: 68px;
  background: var(--navy-900);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 90;
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile .container { padding-top: 40px; padding-bottom: 40px; }
.nav-mobile ul { display: flex; flex-direction: column; }
.nav-mobile li { border-bottom: 1px solid var(--line-dark-soft); }
.nav-mobile a {
  display: block;
  padding: 20px 4px;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--white);
}
.nav-mobile .nav-mobile-note {
  margin-top: 32px;
  font-size: 12px;
  color: rgba(246,244,238,0.55);
  line-height: 1.9;
}
.nav-mobile .nav-mobile-note a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 960px) { .nav-mobile { display: none; } }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 34px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  border: 1px solid var(--line-light);
  color: var(--ink);
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary {
  background: var(--navy-900);
  color: var(--ivory);
  border-color: var(--navy-900);
}
.btn-primary:hover { background: var(--navy-800); color: var(--gold-soft); border-color: var(--navy-800); }
.bg-navy .btn { border-color: var(--line-dark); color: var(--ivory); }
.bg-navy .btn:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 3px;
}
.text-link:hover { border-color: var(--gold); color: var(--gold); }
.text-link .arrow { transition: transform 0.25s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Hero (top of page) ---------- */
.hero {
  padding: 120px 0 90px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .hero { padding: 190px 0 140px; } }

.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: var(--white);
  font-size: 30px;
  line-height: 1.7;
}
.hero h1 .accent { color: var(--gold-soft); }
@media (min-width: 640px) { .hero h1 { font-size: 38px; } }
@media (min-width: 900px) { .hero h1 { font-size: 48px; } }

.hero .hero-sub {
  margin-top: 28px;
  font-size: 14px;
  line-height: 2;
  color: rgba(246,244,238,0.78);
  word-break: keep-all;
}
.hero .hero-sub .br-pc { display: none; }
@media (min-width: 900px) {
  .hero .hero-sub { font-size: 15.5px; }
  .hero .hero-sub .br-pc { display: inline; }
}

.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
.hero .container,
.page-hero .container { position: relative; z-index: 1; }

.scroll-cue {
  margin-top: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(246,244,238,0.5);
}
.scroll-cue .stem {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold-soft), transparent);
  animation: cue-move 2.2s var(--ease) infinite;
}
@keyframes cue-move {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.3; }
}

/* page (non-top) hero — shorter */
.page-hero { padding: 96px 0 64px; }
@media (min-width: 900px) { .page-hero { padding: 150px 0 90px; } }
.page-hero h1 { font-size: 26px; color: var(--white); }
@media (min-width: 900px) { .page-hero h1 { font-size: 36px; } }
.page-hero .hero-sub { font-size: 14px; }

/* ---------- Diagram flow (人→意思決定→企業価値) ---------- */
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 380px;
  margin: 0 auto;
}
.flow-diagram .flow-node {
  border: 1px solid var(--line-light);
  background: var(--white);
  padding: 20px 22px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.flow-diagram .flow-node.is-core {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  font-size: 16px;
  padding: 26px 22px;
}
.flow-diagram .flow-arrow {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  color: var(--gold);
}

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; gap: 32px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 48px; } }

.grid-3 { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-cards { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
@media (min-width: 640px) { .grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white);
  padding: 30px 28px;
}
.card h3 {
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; }

/* ---------- Two-assets diagram ---------- */
.assets-diagram { width: 100%; }
.assets-diagram text { font-family: var(--font-sans); }
.assets-diagram-mobile { display: none; }

/* ---------- TOP page: hero — mobile-only line break ---------- */
.hero-br-mobile { display: inline; }
@media (min-width: 640px) { .hero-br-mobile { display: none; } }

/* ---------- TOP page: Two Assets section — heading alignment (PC + mobile) ---------- */
.two-assets-eyebrow {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}
.section-head.two-assets-head { text-align: left; }

.br-mobile { display: inline; }

@media (min-width: 760px) {
  .br-mobile { display: none; }
}

/* ---------- TOP page: Two Assets diagram — mobile vertical layout ---------- */
@media (max-width: 759px) {
  .assets-diagram { display: none; }

  .assets-diagram-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .assets-diagram-mobile .adm-top {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
  }

  .assets-diagram-mobile .adm-bottom {
    font-size: 12.5px;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
  }

  .assets-diagram-mobile .adm-arrow {
    color: var(--gold);
    font-size: 16px;
    line-height: 1;
    padding: 4px 0;
  }

  .assets-diagram-mobile .adm-card {
    width: 100%;
    max-width: 400px;
    padding: 22px 20px;
    background: var(--white);
    border: 1px solid var(--line-light);
  }
  .assets-diagram-mobile .adm-card-title { font-size: 19px; font-weight: 600; color: var(--ink); }
  .assets-diagram-mobile .adm-card-tag { margin-top: 8px; font-size: 12.5px; color: var(--gold); }
  .assets-diagram-mobile .adm-card-sub { margin-top: 6px; font-size: 12px; color: var(--ink-soft); }

  .assets-diagram-mobile .adm-core {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: var(--navy-900);
    border: 1px solid var(--gold-soft);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }
}

/* ---------- Iceberg diagram ---------- */
.iceberg-diagram { width: 100%; }

.iceberg-full { display: none; }
.iceberg-compact { display: block; }
.iceberg-legend { display: block; margin-top: 28px; }

@media (min-width: 760px) {
  .iceberg-full { display: block; }
  .iceberg-compact { display: none; }
  .iceberg-legend { display: none; }
}

.iceberg-legend-row {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(246,244,238,0.78);
}
.iceberg-legend-row:first-child { margin-top: 0; }
.iceberg-legend-label {
  display: inline-block;
  margin-right: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}

/* ---------- Human Risk page: iceberg photo (WHY IT MATTERS) ---------- */
.human-risk-iceberg-figure { display: flex; align-items: center; justify-content: center; }
.human-risk-iceberg-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- TOP page: Human Risk Due Diligence section iceberg photo ---------- */
.hrdd-iceberg-figure { display: flex; align-items: flex-start; justify-content: center; align-self: start; }

@media (min-width: 760px) {
  .hrdd-iceberg-figure { margin-top: 104px; }
}
.hrdd-iceberg-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- Longevity page: Three Environments diagram ---------- */
.env-diagram { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }

.env-diagram-asset {
  display: inline-block;
  padding: 16px 44px;
  background: var(--navy-900);
  color: var(--ivory);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.env-diagram-stem { display: block; width: 1px; height: 28px; background: var(--gold-line); }

.env-diagram-relation {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin: 10px 0;
}

.env-diagram-bar { display: none; }

.env-diagram-cards {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 6px;
}

.env-diagram-col { display: flex; flex-direction: column; align-items: center; }

.env-diagram-drop { display: block; width: 1px; height: 22px; background: var(--gold-line); }

.env-diagram-card {
  width: 100%;
  max-width: 360px;
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.env-diagram-mid {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-lighter);
}

.env-diagram-sub { font-size: 13.5px; color: var(--ink-soft); letter-spacing: 0.02em; }

.env-diagram-ex {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* ---------- Longevity page: Three Environments heading — mobile-only alignment ---------- */
.three-env-eyebrow { justify-content: center; }

@media (max-width: 759px) {
  .three-env-eyebrow {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }
  .section-head.three-env-head { text-align: left; }
}

@media (min-width: 760px) {
  .env-diagram-bar {
    display: block;
    width: 66.6667%;
    height: 1px;
    background: var(--gold-line);
    margin-top: 8px;
  }

  .env-diagram-cards { flex-direction: row; margin-top: 0; }

  .env-diagram-col { flex: 1 1 0; padding: 0 16px; }

  .env-diagram-card { max-width: none; }
}

/* ---------- List with bullets (gold dash) ---------- */
.dash-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 1px;
  background: var(--gold);
}
.bg-navy .dash-list li { color: rgba(246,244,238,0.78); }

/* ---------- Definition table (company info) ---------- */
.info-table { width: 100%; border-top: 1px solid var(--line-light); }
.info-table dl {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--line-light);
  padding: 18px 0;
}
@media (min-width: 640px) {
  .info-table dl { grid-template-columns: 220px 1fr; padding: 22px 0; }
}
.info-table dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.info-table dd {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.9;
}
@media (min-width: 640px) { .info-table dd { margin-top: 0; } }

/* ---------- Note / legal box ---------- */
.note-box {
  border: 1px solid var(--line-light);
  padding: 22px 24px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.note-box strong { color: var(--ink); font-weight: 600; }

/* ---------- Philosophy page: Origin section note box — mobile-only readability ---------- */
.origin-note-br { display: inline; }
@media (min-width: 760px) { .origin-note-br { display: none; } }

@media (max-width: 759px) {
  .origin-note-box { padding: 20px 18px; }
  .origin-note-box strong {
    display: block;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 12px;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { font-size: 22px; margin-bottom: 16px; }
@media (min-width: 900px) { .cta-band h2 { font-size: 28px; } }
.cta-band .lead { max-width: 50ch; margin: 0 auto 36px; color: var(--ink-soft); font-size: 14px; }
.bg-navy.cta-band .lead { color: rgba(246,244,238,0.72); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(246,244,238,0.72);
  padding: 72px 0 32px;
}
.footer-top {
  display: grid;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark-soft);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand .brand-en { color: var(--white); font-size: 16px; letter-spacing: 0.2em; }
.footer-brand .brand-jp { margin-top: 8px; font-size: 12px; color: rgba(246,244,238,0.55); }
.footer-brand address {
  margin-top: 24px;
  font-size: 12.5px;
  line-height: 2;
  color: rgba(246,244,238,0.6);
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 13px; color: rgba(246,244,238,0.78); }
.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(246,244,238,0.42);
}
@media (min-width: 760px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-bottom nav ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(246,244,238,0.55); }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Utility ---------- */
.u-center { text-align: center; }
.u-mt-sm { margin-top: 16px; }
.u-mt-md { margin-top: 32px; }
.u-mt-lg { margin-top: 56px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 0; top: -60px;
  background: var(--navy-900); color: var(--white);
  padding: 12px 20px; z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-mobile, .scroll-cue { display: none; }
}
