*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #0e2433;
  --blue: #0076a8;
  --ink: #1c2833;
  --muted: #5c6b7a;
  --line: #e3e8ee;
  --gray: #f4f7f9;
  --max: 1120px;
  --header: 72px;
}

body {
  padding-top: var(--header);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0.02em;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.eyebrow span {
  display: inline-block;
  margin-left: 10px;
  color: var(--navy);
  letter-spacing: 0.12em;
}

.page-mark {
  display: block;
  width: 88px;
  height: 22px;
  margin-bottom: 14px;
  color: var(--blue);
}

.lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.prose {
  max-width: 40em;
  font-size: 16px;
  line-height: 1.95;
}

.prose + .prose {
  margin-top: 1em;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
}

/* Header */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 -1px 0 rgba(14, 36, 51, 0.06);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 -1px 0 rgba(14, 36, 51, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 30px;
  width: auto;
}

.gnav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.gnav a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.gnav a.is-current::after,
.gnav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--blue);
}

.header-end {
  display: flex;
  align-items: center;
  margin-left: 28px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lang-switch a {
  color: var(--navy);
  opacity: 0.4;
}

.lang-switch a:hover,
.lang-switch a.is-active {
  opacity: 1;
}

.lang-switch a.is-active {
  font-weight: 500;
  pointer-events: none;
}

.lang-switch span {
  opacity: 0.35;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: 48px 0 0;
  background: linear-gradient(180deg, #f3f7fa 0%, #fff 72%);
}

.site-mountain {
  margin: 36px 0 0;
  line-height: 0;
}

.site-mountain img {
  display: block;
  width: 100%;
  height: auto;
}

.site-mountain .is-narrow {
  display: none;
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.3;
}

.hero-lead {
  max-width: 36em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: #005e86;
  border-color: #005e86;
  color: #fff;
}

.btn-ghost:hover {
  background: var(--blue);
  color: #fff;
}

/* Buttons and links */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.text-link:hover {
  color: #005e86;
}

.more-link {
  margin-top: 28px;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.section-intro {
  margin-top: 16px;
}

.about-digest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.service-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-item,
.tech-grid li {
  display: block;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: inherit;
}

.service-item:hover {
  border-top-color: var(--blue);
}

.service-item h3,
.tech-grid h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.tech-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.service-item p,
.tech-grid p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.tech-grid p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.tech-grid .tech-names {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.work-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
}

a.work-card:hover {
  border-color: var(--blue);
}

.work-cat {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
}

:lang(ja) .work-cat,
:lang(ja) .work-meta dt {
  letter-spacing: 0.04em;
}

.work-card h3 {
  font-size: 22px;
  line-height: 1.45;
}

.work-desc {
  flex: 1;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.work-meta {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.work-meta div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.work-meta dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cta-band {
  padding: 88px 0;
  background: var(--gray);
}

.cta-band h2 {
  max-width: 12em;
  font-size: clamp(28px, 3vw, 40px);
}

.cta-band .lead {
  margin: 16px 0 28px;
}


/* Inner pages */

.page-head {
  padding: 64px 0 8px;
}

.page-head h1 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 48px);
}

.page-head .lead {
  margin-top: 16px;
}

.strength-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 28px;
}

.strength-list li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.strength-list h3 {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.5;
}

.strength-list p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.service-block,
.work-card {
  scroll-margin-top: 88px;
}

.service-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px 20px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.service-block:last-child {
  border-bottom: 1px solid var(--line);
}

.service-en {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.service-block h2 {
  margin: 6px 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
}

.service-block p {
  max-width: 40em;
  font-size: 16px;
  line-height: 1.9;
}

.service-tech {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.company-list {
  max-width: 860px;
}

.company-list > div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.8;
}

.company-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
}

.contact-form {
  max-width: 640px;
}

.contact-form label {
  display: block;
  margin: 28px 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid #c5ced6;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--blue);
  outline: none;
}

.contact-form input:disabled,
.contact-form textarea:disabled,
.contact-form input[readonly],
.contact-form textarea[readonly] {
  color: var(--ink);
  opacity: 1;
}

.req {
  margin-left: 4px;
  color: #b42318;
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.contact-form .btn,
.confirm-actions {
  margin-top: 36px;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.work-detail {
  padding-bottom: 96px;
}

.work-detail h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
}

.work-figure {
  margin: 36px 0 12px;
}

.work-figure img,
.work-gallery img {
  width: 100%;
}

.work-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 920px;
  margin-bottom: 12px;
}

.detail-block {
  max-width: 40em;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.detail-block h2 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.detail-block p {
  font-size: 16px;
  line-height: 1.9;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 28px;
}

/* Footer */

.site-footer {
  padding: 64px 0 28px;
  background: var(--blue);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-name {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.footer-en {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.footer-desc {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.82;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-cta {
  color: #fff;
}

.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.footer-nav a:hover,
.footer-cta:hover {
  color: #b9dff0;
}

.footer-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.footer-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-bottom a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .gnav {
    position: fixed;
    z-index: 99;
    top: var(--header);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 32px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  body.nav-open .gnav {
    transform: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .gnav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .gnav a::after {
    display: none;
  }

  .gnav a.is-current {
    color: var(--blue);
  }

  .header-end {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }
}

.section.is-follow {
  padding-top: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: 36px 0 0;
  }

  .about-digest,
  .strength-list,
  .work-grid,
  .work-grid.cols-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: min(var(--max), calc(100% - 32px));
  }

  .logo img {
    height: 26px;
  }

  .eyebrow span {
    display: block;
    margin: 6px 0 0;
  }

  .service-grid,
  .tech-grid,
  .work-gallery,
  .company-list > div,
  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block {
    gap: 8px;
  }

  body {
    line-height: 2;
  }

  .hero h1 {
    line-height: 1.45;
  }

  .hero-lead,
  .lead {
    font-size: 15px;
    line-height: 2.05;
  }

  .section {
    padding: 56px 0;
  }

  .section h2,
  .page-head h1,
  .cta-band h2 {
    line-height: 1.5;
  }

  .section-intro {
    margin-top: 12px;
  }

  .service-grid,
  .tech-grid,
  .work-grid,
  .work-grid.cols-2 {
    gap: 32px;
    margin-top: 28px;
  }

  .work-card {
    padding: 22px 18px 20px;
  }

  .tech-names {
    line-height: 1.9;
  }

  .site-mountain .is-wide {
    display: none;
  }

  .site-mountain .is-narrow {
    display: block;
  }

  .hero-actions,
  .confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cta-band,
  .page-head {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
