:root {
  --navy: #062b57;
  --blue: #1f66e5;
  --blue-deep: #0e4fc4;
  --blue-soft: #edf5ff;
  --blue-pale: #f6f9ff;
  --text: #17324e;
  --muted: #61758b;
  --line: #dbe6f3;
  --white: #fff;
  --shadow: 0 18px 50px rgba(20, 73, 140, .08);
  --radius: 8px;
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-deep); }

@media (prefers-reduced-motion: no-preference) {
  body { animation: page-fade-in .8s ease both; }
  @keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
section { scroll-margin-top: calc(var(--header-height) + 24px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.container--narrow { width: min(1040px, calc(100% - 64px)); }
.container--policy { width: min(880px, calc(100% - 64px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1200px, calc(100% - 64px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-logo {
  color: var(--navy);
  font-family: "Mandali", sans-serif;
  font-size: 31px;
  line-height: 1;
  letter-spacing: .16em;
  text-decoration: none;
}
.global-nav { display: flex; align-items: center; gap: 32px; }
.global-nav > a:not(.button), .text-link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.global-nav > a:not(.button) {
  position: relative;
  transition: color .2s ease;
}
.global-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.global-nav > a:not(.button).is-active { color: var(--blue); }
.global-nav > a:not(.button).is-active::after { transform: scaleX(1); }
.menu-button { display: none; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2f7df4);
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(31, 102, 229, .18);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button::after { content: "\2192"; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(31, 102, 229, .24); }
.button:hover::after { transform: translateX(3px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(31,102,229,.35);
  outline-offset: 3px;
}
.button--small { min-height: 42px; padding: 8px 20px; font-size: 14px; }

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assets/images/hero-visual.jpg') center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6,43,87,.92) 0%, rgba(6,43,87,.66) 42%, rgba(6,43,87,.2) 75%, rgba(6,43,87,0) 100%);
}
.hero-grid { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.eyebrow, .section-label {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #9dc4ff; }
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.28;
  letter-spacing: .02em;
}
.hero-subcopy {
  margin: 22px 0 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.hero-description { max-width: 620px; margin: 0 0 32px; color: rgba(255,255,255,.82); }

.section { padding: 104px 0; }
.section--tint { background: linear-gradient(180deg, #f7faff 0%, #eef5ff 100%); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal-ready .section.is-visible { opacity: 1; transform: translateY(0); }

  /* service-card は個別に左右スライドするため、セクション単位の縦フェードは適用しない */
  .reveal-ready #services.section { opacity: 1; transform: none; transition: none; }

  .reveal-ready .service-card {
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal-ready .service-card[data-reveal="right"] { transform: translateX(72px); }
  .reveal-ready .service-card[data-reveal="left"] { transform: translateX(-72px); }
  .reveal-ready .service-card.is-visible { opacity: 1; transform: translateX(0); }

  /* issue-list / strength-item は項目ごとにスタッガー表示するため、セクション単位の縦フェードは適用しない */
  .reveal-ready #issues.section, .reveal-ready #strengths.section { opacity: 1; transform: none; transition: none; }

  .reveal-ready .issue-list li, .reveal-ready .strength-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal-ready #issues.is-visible .issue-list li,
  .reveal-ready #strengths.is-visible .strength-item {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-ready .issue-list li:nth-child(1) { transition-delay: 0s; }
  .reveal-ready .issue-list li:nth-child(2) { transition-delay: .07s; }
  .reveal-ready .issue-list li:nth-child(3) { transition-delay: .14s; }
  .reveal-ready .issue-list li:nth-child(4) { transition-delay: .21s; }
  .reveal-ready .issue-list li:nth-child(5) { transition-delay: .28s; }
  .reveal-ready .issue-list li:nth-child(6) { transition-delay: .35s; }
  .reveal-ready .strength-item:nth-of-type(1) { transition-delay: 0s; }
  .reveal-ready .strength-item:nth-of-type(2) { transition-delay: .1s; }
  .reveal-ready .strength-item:nth-of-type(3) { transition-delay: .2s; }
  .reveal-ready .strength-item:nth-of-type(4) { transition-delay: .3s; }
}
.section--contact { background: linear-gradient(135deg, #f2f7ff 0%, #e8f2ff 100%); }
.section-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.4;
  letter-spacing: .02em;
}
.section-title--center { text-align: center; }
.section-intro { margin-bottom: 52px; }
.section-intro--split { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: end; }
.section-intro--split > p { margin: 0; color: var(--muted); }

.issue-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}
.issue-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 10px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.item-number { color: var(--blue); font-size: 27px; line-height: 1.4; font-weight: 300; }
.issue-list h3, .strength-item h3, .flow-list h3 { margin: 2px 0 0; color: var(--navy); font-size: 17px; line-height: 1.65; }
.issue-list p { grid-column: 2; margin: 8px 0 0; color: var(--muted); }

.service-stack { display: grid; gap: 22px; }
.service-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 420px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-card--reverse { grid-template-columns: .85fr 1.15fr; }
.service-card--reverse .service-content { order: 2; }
.service-card--reverse .service-diagram { order: 1; }
.service-content { position: relative; padding: 58px 58px 52px 94px; }
.service-number {
  position: absolute;
  left: 26px;
  top: 34px;
  color: rgba(31,102,229,.11);
  font-size: 78px;
  line-height: 1;
  font-weight: 300;
}
.service-content h3 { position: relative; margin: 0 0 20px; color: var(--navy); font-size: 24px; }
.service-content p { position: relative; margin: 0 0 14px; color: var(--muted); }
.service-content h4 { margin: 26px 0 8px; color: var(--navy); font-size: 14px; }
.service-content ul { margin: 0; padding-left: 1.2em; color: var(--text); }
.service-content li { margin: 5px 0; }
.service-diagram {
  background: #eef5ff center / cover no-repeat;
  transition: transform .5s ease;
}
.service-card:hover .service-diagram { transform: scale(1.05); }
.service-diagram--planning {
  background-image: url('/assets/images/service_01.jpg');
}
.service-diagram--delivery {
  background-image: url('/assets/images/service_02.jpg');
}
.service-diagram--pmo {
  background-image: url('/assets/images/service_03.jpg');
}

.strength-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 58px;
  align-items: start;
}
.strength-item { padding: 24px 0; }
.strength-item p { margin: 10px 0 0; color: var(--muted); }

.flow-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 62px 0 0;
  padding: 0;
  list-style: none;
}
.flow-list::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 29px;
  height: 2px;
  background: linear-gradient(90deg, #aec9fa, var(--blue));
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .flow-list::before {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.1s ease .3s;
  }
  .reveal-ready #flow.is-visible .flow-list::before { transform: scaleX(1); }
}
.flow-list li { position: relative; text-align: center; }
.flow-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border: 2px solid #8fb8fb;
  border-radius: 50%;
  font-weight: 800;
}
.flow-list li:last-child > span { color: #fff; background: var(--blue); border-color: var(--blue); }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; }
.contact-intro p:not(.section-label) { color: var(--muted); }
.contact-form-wrap { padding: 36px; background: rgba(255,255,255,.78); border: 1px solid rgba(168,199,246,.7); border-radius: var(--radius); }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 20px; }
.form-field { min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 14px; font-weight: 800; }
.required { color: var(--blue); font-size: 12px; }
.optional { color: var(--muted); font-size: 12px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cddbec;
  border-radius: 3px;
  background: #fff;
  color: var(--text);
}
input, select { min-height: 48px; padding: 10px 12px; }
textarea { min-height: 180px; padding: 12px; resize: vertical; }
.field-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.form-consent label { display: flex; align-items: flex-start; justify-content: center; gap: 10px; font-weight: 400; }
.form-consent input { width: 18px; min-height: 18px; margin-top: 5px; }
.form-actions { text-align: center; }
.button--submit { min-width: 280px; border: 0; }
.form-status { margin-bottom: 24px; padding: 18px 20px; border-radius: 4px; white-space: normal; }
.form-status--success { color: #164d37; background: #edf8f2; border: 1px solid #b8dfca; }
.form-status--error { color: #7b2d2d; background: #fff1f1; border: 1px solid #efc2c2; }

.site-footer { padding: 28px 20px; color: rgba(255,255,255,.72); background: var(--navy); text-align: center; }
.site-footer p { margin: 0; font-size: 12px; }

.policy-page { padding: 86px 0 110px; }
.policy-page h1 { margin: 0 0 28px; color: var(--navy); font-size: clamp(38px, 5vw, 56px); }
.policy-page section { margin-top: 52px; }
.policy-page h2 { margin: 0 0 14px; color: var(--navy); font-size: 24px; }
.policy-page p, .policy-page li { color: var(--muted); }
.policy-date { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); text-align: right; }
.policy-date p { margin: 2px 0; }

@media (max-width: 1023px) {
  .container, .container--narrow, .container--policy, .header-inner { width: min(100% - 64px, 920px); }
  .hero { min-height: 600px; }
  .service-card { grid-template-columns: 1fr; }
  .service-card--reverse .service-content, .service-card--reverse .service-diagram { order: initial; }
  .service-diagram { min-height: 230px; }
  .strength-layout { gap: 20px 44px; }
  .flow-list { grid-template-columns: repeat(5, minmax(130px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 767px) {
  :root { --header-height: 64px; }
  html { scroll-padding-top: var(--header-height); }
  .container, .container--narrow, .container--policy, .header-inner { width: calc(100% - 40px); }
  .site-header { position: fixed; width: 100%; }
  body { padding-top: var(--header-height); }
  .site-logo { font-size: 27px; }
  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .menu-button__line { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
  .menu-button[aria-expanded="true"] .menu-button__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-button__line:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] .menu-button__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .global-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(18,45,77,.09);
  }
  .global-nav.is-open { display: flex; }
  .global-nav > a:not(.button) { padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .global-nav .button { width: 100%; margin-top: 14px; }
  .text-link { font-size: 13px; }

  .hero { min-height: auto; padding: 72px 0 76px; background: #fff; }
  .hero-visual, .hero-overlay { display: none; }
  .hero-copy { max-width: none; }
  .eyebrow { font-size: 11px; }
  .hero .eyebrow { color: var(--blue); }
  .hero h1 { color: var(--navy); font-size: clamp(40px, 12vw, 54px); line-height: 1.35; }
  .hero-subcopy { color: var(--navy); margin-top: 18px; font-size: 19px; }
  .hero-description { color: var(--muted); margin-bottom: 28px; }
  .hero .button { width: 100%; }

  .section { padding: 72px 0; }
  .section-title { font-size: 31px; }
  .section-intro--split { display: block; }
  .section-intro--split > p { margin-top: 22px; }

  .issue-list { display: block; margin-top: 34px; }
  .issue-list li { grid-template-columns: 48px 1fr; padding: 22px 0; }
  .item-number { font-size: 23px; }

  .service-stack { gap: 18px; }
  .service-card { display: block; min-height: 0; border-radius: 5px; box-shadow: none; }
  .service-content { padding: 34px 24px 32px; }
  .service-number { position: static; display: block; margin-bottom: 8px; color: var(--blue); font-size: 22px; font-weight: 400; }
  .service-content h3 { font-size: 21px; }
  .service-diagram { display: none; }

  .strength-layout { display: block; }
  .strength-item { padding: 27px 0; border-bottom: 1px solid var(--line); }
  .strength-item:last-child { border-bottom: 0; }

  .flow-list { display: block; margin-top: 38px; overflow: visible; }
  .flow-list::before { left: 28px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .flow-list li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: center; margin-bottom: 22px; text-align: left; }
  .flow-list li > span { margin: 0; }
  .flow-list h3 { margin: 0; }
  .reveal-ready .flow-list::before { transform-origin: top; transform: scaleY(0); }
  .reveal-ready #flow.is-visible .flow-list::before { transform: scaleY(1); }

  .contact-form-wrap { padding: 24px 18px; }
  .contact-form { display: block; }
  .form-field { margin-bottom: 20px; }
  .form-consent label { justify-content: flex-start; }
  .button--submit { width: 100%; min-width: 0; }

  .policy-page { padding: 64px 0 86px; }
}

@media (max-width: 359px) {
  .container, .container--narrow, .container--policy, .header-inner { width: calc(100% - 32px); }
  .hero h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
