* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #111;
  font-family: "LINE Seed JP", sans-serif;
}
main {
  width: 100%;
  overflow-x: hidden;
}
section {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  scroll-margin-top: 100px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1400px;
  height: 108px;
  margin: 0 auto;
  padding: 0 40px;
}
.logo img {
  display: block;
  width: 210px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 50px;
}
.nav-links a {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.3s,
    background-color 0.3s;
}
.nav-links a:hover {
  color: #0070f3;
}
.nav-links .nav-contact {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  color: #fff;
  background: #115cff;
  border-radius: 999px;
}
.nav-links .nav-contact:hover {
  color: #fff;
  background: #0047d6;
}
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 90vh;
  padding: 100px 40px 80px clamp(24px, 5vw, 80px);
  text-align: left;
  background:
    linear-gradient(rgba(225, 225, 225, 0.4), rgba(225, 225, 225, 0.4)),
    url("./images/top.png") center / cover no-repeat;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.12);
}
.hero-content {
  max-width: 900px;
}
.hero-title {
  margin: 108px 0 24px;
  color: #fff;
  font-size: clamp(4rem, 3vw, 5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.hero-title span {
  color: #111;
  font-weight: 500;
}
.contact-button {
  display: inline-block;
  margin-top: 12px;
  padding: 18px 42px;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  background: #115cff;
  border-radius: 700px;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.3s;
}
.contact-button:hover {
  color: #fff;
  background: #115cff;
  transform: translateY(-3px);
}
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.section-label {
  margin: 0 0 18px;
  color: #115cff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.section-title {
  margin: 0;
  color: #111;
  font-size: clamp(3rem, 4vw, 5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.service-section {
  padding: 160px 40px;
  background: #f5f7fa;
}
.service-lead {
  max-width: 620px;
  margin: 32px 0 64px;
  color: #555;
  font-size: 18px;
  line-height: 1.9;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-item {
  min-height: 290px;
  padding: 32px;
  background: #fff;
  border-radius: 4px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.service-item:hover {
  box-shadow: 0 16px 32px rgba(17, 92, 255, 0.12);
  transform: translateY(-8px);
}
.service-number {
  margin: 0 0 56px;
  color: #115cff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.service-item h3 {
  margin: 0 0 16px;
  color: #111;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}
.service-item > p:last-child {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}
.service-message {
  margin: 80px 0 0;
  color: #111;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
}
.flow-section {
  padding: 160px 40px;
  color: #fff;
  background: linear-gradient(135deg, #0b3fb8 0%, #115cff 55%, #2677ff 100%);
}
.flow-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 40px;
  align-items: end;
  padding-bottom: 32px;
}

.flow-heading {
  display: block;
}

.flow-label {
  margin: 0 0 18px;
  color: #bcd4ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.flow-title {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 4vw, 5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.flow-lead {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.9;
}

.flow-advisor {
  min-width: 220px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.flow-advisor-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
}

.flow-advisor-text strong {
  margin-left: 6px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.flow-item {
  min-height: 350px;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  transition:
    background-color 0.3s,
    transform 0.3s;
}
.flow-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}
.flow-number {
  margin: 0 0 72px;
  color: #bcd4ff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.flow-item h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
}
.flow-item > p:last-child {
  margin: 0;
  color: #eaf1ff;
  font-size: 15px;
  line-height: 1.9;
}
.flow-message {
  margin: 72px 0 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
}
.scope-section {
  padding: 160px 40px;
  background: #fff;
}
.scope-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  column-gap: 80px;
  margin-bottom: 72px;
}
.scope-lead {
  max-width: 500px;
  margin: 0;
  color: #555;
  font-size: 17px;
  line-height: 1.9;
}
.scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #dce3ee;
  border-left: 1px solid #dce3ee;
}
.scope-item {
  min-height: 310px;
  padding: 36px 40px;
  border-right: 1px solid #dce3ee;
  border-bottom: 1px solid #dce3ee;
  transition: background-color 0.3s;
}
.scope-item:hover {
  background: #f5f8ff;
}
.scope-number {
  margin: 0 0 44px;
  color: #115cff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.scope-item h3 {
  margin: 0 0 22px;
  color: #111;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
}
.scope-item ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scope-item li {
  position: relative;
  padding-left: 16px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}
.scope-item li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: #115cff;
  border-radius: 50%;
}
.scope-message {
  margin-top: 72px;
  padding: 40px;
  background: #f5f8ff;
  border-left: 4px solid #115cff;
}
.scope-message p {
  margin: 0 0 12px;
  color: #111;
  font-size: 26px;
  font-weight: 600;
}
.scope-message span {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}
.service-strip {
  width: 100%;
  overflow: hidden;
  color: #fff;
  background-color: #0c3155;
}
.service-strip-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  min-height: 72px;
  padding: 0 40px;
  white-space: nowrap;
}
.service-strip-track span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.service-strip-track i {
  width: 4px;
  height: 4px;
  background-color: #66d6ff;
}
.nav-divider {
  width: 1px;
  height: 28px;
  background-color: #dce3ee;
}
.site-footer {
  padding: 80px 40px 28px;
  color: #fff;
  background-color: #0c3155;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 120px;
  padding-bottom: 64px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.footer-name {
  margin: 0 0 20px;
  color: #bcd4ff;
  font-size: 14px;
  font-weight: 600;
}

.footer-company address {
  margin: 0 0 20px;
  color: #dce9ff;
  font-size: 15px;
  font-style: normal;
  line-height: 1.9;
}

.footer-company > a {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.footer-company > a:hover,
.footer-nav a:hover {
  color: #66d6ff;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-nav p {
  margin: 0 0 8px;
  color: #66d6ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-nav a {
  color: #eaf1ff;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-bottom small {
  color: #bcd4ff;
  font-size: 12px;
}

.menu-toggle {
  display: none;
}

.flow-advisor-mobile {
  display: none;
}

.flow-advisor-desktop {
  transform: translateY(48px);
}

.hero-emphasis {
  white-space: nowrap;
}

/* スマホ */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  .header-nav {
    height: 72px;
    padding: 0 20px;
  }

  .logo img {
    width: 150px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 58px;
    height: 38px;
    padding: 0;
    color: #115cff;
    background: #fff;
    border: 1px solid #115cff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .menu-toggle span {
    grid-area: 1 / 1;
  }

  .menu-close-text {
    display: none;
  }

  .menu-toggle.is-open .menu-open-text {
    display: none;
  }

  .menu-toggle.is-open .menu-close-text {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    display: grid;
    gap: 0;
    width: min(320px, 100%);
    height: calc(100vh - 72px);
    padding: 28px 24px;
    background: #fff;
    box-shadow: -12px 0 28px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.3s,
      visibility 0.3s;
  }

  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 18px 0;
    font-size: 16px;
    border-bottom: 1px solid #dce3ee;
  }

  .nav-links .nav-contact {
    justify-content: center;
    margin-top: 16px;
    border-bottom: 0;
  }

  .nav-divider {
    display: none;
  }

  .hero {
    min-height: 780px;
    padding: 170px 24px 72px;
  }

  .hero-title {
    margin-top: 50px;
    font-size: clamp(2.3rem, 9vw, 3.2rem);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    font-weight: 700;
    letter-spacing: 0;
  }

  .hero-title span {
    color: #111;
    font-family: "Arial Black", "Yu Gothic", sans-serif;
    font-weight: 900;
    letter-spacing: -0.06em;
  }

  .hero-line {
    display: block;
    white-space: nowrap;
  }

  .hero-emphasis {
    font-size: 1.15em;
    font-family: "Arial Black", "Yu Gothic", sans-serif;
    font-weight: 900;
    letter-spacing: -0.06em;
  }

  .contact-button {
    padding: 16px 30px;
  }

  .service-section,
  .flow-section,
  .scope-section {
    padding: 96px 24px;
  }

  .section-title,
  .flow-title {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .service-lead,
  .flow-lead,
  .scope-lead {
    font-size: 16px;
  }

  .service-list,
  .flow-list,
  .scope-list {
    grid-template-columns: 1fr;
  }

  .scope-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-message {
    font-size: 20px;
  }

  .flow-heading {
    display: grid;
    gap: 32px;
  }

  .flow-advisor {
    padding-left: 20px;
  }

  .service-item,
  .flow-item,
  .scope-item {
    min-height: auto;
    padding: 28px 24px;
  }

  .scope-message {
    padding: 28px 24px;
  }

  .service-strip-track {
    justify-content: flex-start;
    gap: 20px;
    min-height: 58px;
    padding: 0 24px;
    overflow-x: auto;
  }

  .service-strip-track span {
    font-size: 12px;
  }

  .site-footer {
    padding: 56px 24px 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    font-size: 12px;
  }

  .flow-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .flow-heading {
    padding: 0;
  }

  .flow-lead {
    margin: 0;
  }

  .flow-advisor {
    min-width: 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 0;
  }

  .flow-advisor-desktop {
    display: none;
  }

  .flow-advisor-mobile {
    display: block;
    width: 100%;
    margin-top: 32px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 0;
  }

  /* スマホで文章を自然に折り返す */
  p,
  h1,
  h2,
  h3,
  li,
  dt,
  dd,
  a,
  label {
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }
  .company-info dd,
  .contact-direct a,
  .contact-form input,
  .contact-form textarea {
    overflow-wrap: anywhere;
  }

  .flow-advisor {
    width: 100%;
    margin-top: 32px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 0;
  }
}

/* タブレット・小さめPC */
@media (min-width: 769px) and (max-width: 1100px) {
  header,
  .header-nav {
    height: 88px;
  }

  .header-nav {
    padding: 0 32px;
  }

  .logo img {
    width: 175px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 64px;
    height: 40px;
    padding: 0;
    color: #115cff;
    background: #fff;
    border: 1px solid #115cff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .menu-toggle span {
    grid-area: 1 / 1;
  }

  .menu-close-text {
    display: none;
  }

  .menu-toggle.is-open .menu-open-text {
    display: none;
  }

  .menu-toggle.is-open .menu-close-text {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 88px;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(360px, 100%);
    height: calc(100vh - 88px);
    padding: 24px 32px 48px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -12px 16px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 0 4px;
    border-bottom: 1px solid #e5eaf1;
    font-size: 17px;
  }

  .nav-links .nav-contact {
    justify-content: center;
    margin-top: 24px;
    border: 0;
  }

  .nav-divider {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 100px 48px 80px;
  }

  .hero-title {
    font-size: clamp(4rem, 6vw, 5rem);
  }

  .service-section,
  .flow-section,
  .scope-section {
    padding: 100px 48px;
  }

  .flow-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer {
    padding-right: 48px;
    padding-left: 48px;
  }

  .contact-section,
  .company-section,
  .news-section,
  .privacy-section {
    padding-right: 48px;
    padding-left: 48px;
  }

  .flow-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .flow-heading {
    padding: 0;
  }

  .flow-lead {
    margin: 0;
  }

  .flow-advisor {
    min-width: 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 0;
  }

  .flow-advisor {
    width: 100%;
    margin-top: 32px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 0;
  }

  .flow-advisor-desktop {
    display: none;
  }

  .flow-advisor-mobile {
    display: block;
    width: 100%;
    margin-top: 32px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 0;
  }
}
