:root {
  --ink: #151515;
  --muted: #696969;
  --line: #e6e3de;
  --paper: #ffffff;
  --soft: #f7f6f2;
  --smoke: #eeeeea;
  --red: #d9392f;
  --red-dark: #b42b24;
  --green: #6a8f77;
  --green-soft: #edf5ee;
  --charcoal: #262626;
  --shadow: 0 24px 80px rgba(23, 23, 23, 0.08);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(21, 21, 21, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(21, 21, 21, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.demo-ribbon {
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 8px 24px;
  text-align: center;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--red);
  transform: rotate(45deg);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.72rem;
  font-family: "Josefin Sans", Arial, sans-serif;
  letter-spacing: 0.08em;
}

.nav-check {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  place-items: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #333;
  font-size: 0.84rem;
  font-weight: 700;
}

.global-nav a {
  position: relative;
  padding: 26px 0;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.global-nav a:hover::after,
.global-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  color: #fff;
  background: var(--red);
}

.nav-contact::after {
  display: none;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 72px 0;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--red);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.section-title {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.45;
  font-weight: 900;
}

.section-lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.30) 48%, rgba(0, 0, 0, 0.18)),
    url("assets/images/hero-desk.webp") center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 36px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-kicker::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  max-width: 860px;
  margin: 36px 0 0;
  font-size: 3.5rem;
  line-height: 1.33;
  font-weight: 400;
}

.hero h1 strong {
  display: block;
  margin-top: 24px;
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 2.9rem;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-copy {
  max-width: 690px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-red {
  border-color: var(--red);
  background: var(--red);
}

.button-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-outline {
  background: #fff;
  color: var(--ink);
}

.hero-note {
  position: absolute;
  right: 72px;
  bottom: 56px;
  width: min(420px, calc(100% - 48px));
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-note span {
  display: block;
  color: var(--red);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-note strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.intro {
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.intro-grid > *,
.split > *,
.content-grid > *,
.contact-box > *,
.service-card,
.feature,
.news-card,
.case-card,
.person-card {
  min-width: 0;
}

.intro-text {
  color: var(--muted);
}

.intro-image {
  position: relative;
  min-height: 420px;
}

.intro-image img {
  width: 86%;
  height: 420px;
  object-fit: cover;
  margin-left: auto;
  box-shadow: var(--shadow);
}

.intro-image::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -28px;
  width: 58%;
  height: 58%;
  background: var(--green-soft);
  z-index: -1;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card-visual {
  position: relative;
  height: 190px;
  background: var(--soft);
  border-top: 4px solid var(--ink);
  overflow: hidden;
}

.service-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96);
}

.line-icon {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border: 8px solid var(--ink);
  background: #fff;
  font-family: "Josefin Sans", Arial, sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
}

.service-card-body {
  flex: 1;
  padding: 30px;
  background: var(--soft);
}

.service-card small {
  color: var(--red);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-card h3 {
  margin: 10px 0 14px;
  font-size: 1.35rem;
  line-height: 1.55;
}

.service-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--red);
  font-weight: 800;
  font-size: 0.92rem;
}

.feature-band {
  background: var(--soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 46px;
  background: var(--line);
}

.feature {
  min-height: 250px;
  padding: 34px 26px;
  background: #fff;
}

.feature-num {
  display: block;
  color: var(--red);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature h3 {
  margin: 18px 0 12px;
  font-size: 1.1rem;
  line-height: 1.55;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1fr 0.86fr;
}

.split-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-panel {
  padding: 48px;
  background: #fff;
  border: 1px solid var(--line);
}

.list-check {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 12px;
  height: 12px;
  background: var(--red);
  transform: rotate(45deg);
}

.news-grid,
.case-grid,
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.news-card,
.case-card,
.person-card {
  background: #fff;
  border: 1px solid var(--line);
}

.news-card {
  padding: 28px;
}

.news-card time,
.case-card small {
  display: block;
  color: var(--red);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.news-card h3,
.case-card h3 {
  margin: 12px 0 0;
  font-size: 1.04rem;
  line-height: 1.65;
}

.case-card img,
.person-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.case-card-body,
.person-card-body {
  padding: 26px;
}

.case-card p,
.person-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.faq-item {
  padding: 24px 28px;
  background: #fff;
  border-left: 5px solid var(--red);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.faq-item dt {
  font-weight: 900;
}

.faq-item dd {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.30)),
    var(--page-image) center / cover no-repeat;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.35;
  font-weight: 500;
}

.page-hero p {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
}

.breadcrumb {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.page-content {
  background: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
}

.side-index {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 26px;
  background: var(--soft);
  border-top: 4px solid var(--ink);
}

.side-index strong {
  display: block;
  font-family: "Josefin Sans", Arial, sans-serif;
  letter-spacing: 0.1em;
}

.side-index a {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-section {
  padding-bottom: 72px;
}

.article-section + .article-section {
  border-top: 1px solid var(--line);
  padding-top: 72px;
}

.article-section h2 {
  margin: 0 0 24px;
  font-size: 2rem;
  line-height: 1.45;
}

.article-section h3 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
}

.article-section p {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: #fff;
}

.detail-row dt,
.detail-row dd {
  margin: 0;
  padding: 18px 22px;
}

.detail-row dt {
  background: var(--soft);
  font-weight: 900;
}

.detail-row dd {
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.info-box {
  padding: 30px;
  background: var(--soft);
  border-top: 4px solid var(--red);
}

.info-box h3 {
  margin-top: 0;
}

.contact-band {
  color: #fff;
  background: #111;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.contact-box .section-title {
  color: #fff;
}

.contact-box p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding: 34px;
  background: var(--soft);
}

.form-note {
  padding: 16px 18px;
  color: #7d2b26;
  background: #fff5f3;
  border-left: 4px solid var(--red);
  font-size: 0.94rem;
}

.form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
}

.form-row label {
  font-weight: 900;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font: inherit;
}

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

.map {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.15);
}

.footer {
  background: var(--charcoal);
  color: #fff;
}

.footer-demo {
  padding: 14px 24px;
  background: #0c0c0c;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}

.footer h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.footer-bottom {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    padding-right: 58px;
  }

  .nav-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    display: grid !important;
    flex: 0 0 44px;
    transform: translateY(-50%);
  }

  .global-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .global-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-contact {
    margin-top: 14px;
    min-height: 50px;
  }

  .nav-check:checked ~ .global-nav {
    display: flex;
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero h1 strong {
    font-size: 2rem;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
  }

  .intro-grid,
  .split,
  .split.reverse,
  .content-grid,
  .contact-box,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .service-cards,
  .feature-grid,
  .news-grid,
  .case-grid,
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-index {
    position: static;
  }
}

@media (max-width: 640px) {
  .demo-ribbon {
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand-text span {
    font-size: 0.64rem;
  }

  .container,
  .narrow,
  .hero-inner,
  .footer-main {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .section {
    padding: 70px 0;
  }

  .section-tight {
    padding: 56px 0;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42)),
      url("assets/images/hero-desk.webp") center / cover no-repeat;
  }

  .hero h1 {
    margin-top: 28px;
    font-size: 2.05rem;
  }

  .hero h1 strong {
    font-size: 1.48rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions,
  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section-title,
  .article-section h2 {
    font-size: 1.75rem;
    overflow-wrap: anywhere;
  }

  p,
  li,
  dd {
    overflow-wrap: anywhere;
  }

  .page-hero {
    min-height: 360px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .intro-image img,
  .split-image img {
    width: 100%;
    height: 300px;
  }

  .service-cards,
  .feature-grid,
  .news-grid,
  .case-grid,
  .people-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .split-panel {
    padding: 30px 22px;
  }

  .detail-row,
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .detail-row dt,
  .detail-row dd {
    padding: 15px 18px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
