:root {
  --yellow: #ffc600;
  --navy: #1a2b5f;
  --green: #4ba65c;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e0ea;
  --soft: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(26, 43, 95, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  background: var(--white);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--white);
  background: var(--navy);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(26, 43, 95, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

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

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
}

.brand img {
  width: 104px;
  height: auto;
}

.brand span {
  font-size: 1.05rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
}

.desktop-nav a[aria-current="page"]::after,
.mobile-nav a[aria-current="page"]::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 99px;
  background: var(--yellow);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-inner {
  display: grid;
  gap: 14px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 22px;
  color: var(--navy);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 22px rgba(75, 166, 92, 0.26);
}

.btn-secondary {
  color: var(--navy);
  background: var(--yellow);
}

.btn-outline {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--white);
}

.phone-button {
  white-space: nowrap;
  color: var(--white);
  background: var(--navy);
}

.phone-compact {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  padding: 64px 0 44px;
  overflow: hidden;
  background-color: #f7f9fc;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 37%, rgba(255, 255, 255, 0.68) 58%, rgba(255, 246, 202, 0.55) 100%), url("../images/hero-bg-ai.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@supports (background-image: image-set(url("../images/hero-bg-ai.webp") type("image/webp"))) {
  .hero {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 37%, rgba(255, 255, 255, 0.68) 58%, rgba(255, 246, 202, 0.55) 100%), image-set(url("../images/hero-bg-ai.webp") type("image/webp"), url("../images/hero-bg-ai.jpg") type("image/jpeg"));
  }
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: var(--yellow);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 34px;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--navy);
  font-weight: 800;
}

.eyebrow::before {
  width: 28px;
  height: 4px;
  border-radius: 99px;
  background: var(--yellow);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.page-title {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.15rem, 5.7vw, 4.35rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.35;
}

.lead {
  max-width: 760px;
  color: #344054;
  font-size: 1.09rem;
}

.nowrap {
  white-space: nowrap;
}

.hero-copy .lead {
  font-size: clamp(1.02rem, 2.5vw, 1.28rem);
}

.price-highlight {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 24px;
  font-weight: 800;
  color: var(--navy);
}

.price-highlight span {
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 198, 0, 0.26);
}

.hero-actions,
.cta-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-product {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-product picture {
  display: block;
  aspect-ratio: 1 / 0.9;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.hero-product p {
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--navy);
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--soft);
}

.section-yellow {
  background: linear-gradient(90deg, #fff7d0 0%, #ffffff 100%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.spec-list li,
.plain-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before,
.spec-list li::before,
.plain-list li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--green);
  font-weight: 900;
  content: "✓";
}

.grid-3,
.grid-4,
.product-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.product-card,
.case-card,
.step-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(26, 43, 95, 0.07);
}

.card,
.step-card,
.info-panel {
  padding: 24px;
}

.feature-card img,
.scene-card img {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
}

.feature-card p,
.scene-card p,
.step-card p,
.case-card p {
  margin-bottom: 0;
  color: #475467;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 230px;
  background: #f9fafb;
}

.product-media img {
  max-height: 220px;
  object-fit: contain;
  padding: 16px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-code {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-price {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 900;
}

.product-body .btn {
  margin-top: auto;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 198, 0, 0.24);
  font-size: 0.86rem;
  font-weight: 800;
}

.spec-list,
.plain-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 18px;
  list-style: none;
}

.scene-card {
  text-align: center;
}

.scene-card img {
  margin-left: auto;
  margin-right: auto;
}

.steps {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 64px;
}

.step-card::before {
  position: absolute;
  top: 20px;
  left: 24px;
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 900;
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
}

.step-card::after {
  position: absolute;
  top: 32px;
  left: 78px;
  width: 36px;
  height: 5px;
  border-radius: 99px;
  background: var(--yellow);
  content: "";
}

.page-hero {
  padding: 74px 0 48px;
  background: linear-gradient(100deg, #fff8d9 0%, #ffffff 58%, #eef3f8 100%);
}

.breadcrumbs {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.comparison {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--white);
  background: var(--navy);
}

tr:last-child td {
  border-bottom: 0;
}

.choice-flow {
  display: grid;
  gap: 14px;
}

.choice-node {
  padding: 18px;
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(26, 43, 95, 0.07);
}

.choice-node strong {
  color: var(--navy);
}

.case-card {
  padding: 28px;
}

.case-image {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.case-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card h3 {
  font-size: 1.45rem;
}

.case-card .tag {
  margin-bottom: 12px;
}

.mini-cta {
  margin-top: 18px;
}

.faq-group {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-left: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  text-align: center;
  line-height: 24px;
  content: "+";
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: #475467;
}

.faq-answer.is-open {
  display: block;
}

.company-table {
  max-width: 850px;
  border-top: 1px solid var(--line);
}

.company-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-row dt {
  color: var(--navy);
  font-weight: 900;
}

.company-row dd {
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.phone-large {
  display: block;
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

label {
  color: var(--navy);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--white);
}

textarea {
  min-height: 144px;
  resize: vertical;
}

.required {
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 800;
}

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

.site-cta {
  padding: 54px 0;
  color: var(--white);
  background: var(--navy);
}

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

.cta-box h2 {
  margin-bottom: 8px;
  color: var(--white);
}

.cta-box p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.cta-note {
  margin-top: 12px;
  font-size: 0.88rem;
}

.site-footer {
  padding: 44px 0 28px;
  color: #d8deec;
  background: #111d42;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
}

.footer-logo {
  width: 112px;
  padding: 6px;
  border-radius: 6px;
  background: var(--white);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.footer-nav a:hover,
.legal-links a:hover {
  color: var(--yellow);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.copyright {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .desktop-nav,
  .phone-button {
    display: none;
  }

  .menu-toggle,
  .phone-compact {
    display: inline-flex;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 84px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-grid,
  .contact-grid,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-products,
  .grid-3,
  .grid-4,
  .product-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    display: block;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .container,
  .footer-inner,
  .mobile-nav-inner {
    width: min(100% - 24px, 1120px);
  }

  .brand span {
    font-size: 0.92rem;
  }

  .hero-actions,
  .cta-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-products {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-product p {
    font-size: 0.88rem;
  }

  .card,
  .product-body,
  .case-card,
  .step-card,
  .info-panel {
    padding: 20px;
  }
}
