/* ===========================
   CSS Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1e73be;
  --primary-dark: #1557a0;
  --accent: #e8a32a;
  --accent-dark: #cf8e25;
  --text: #333333;
  --text-muted: #666666;
  --bg: #ffffff;
  --bg-gray: #f7f7f7;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --header-h: 70px;
  --container: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* ===========================
   Utility
   =========================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-title--white {
  color: #fff;
}

.section-title--white::after {
  background: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  line-height: 1.4;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 163, 42, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

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

.btn--white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ===========================
   Header
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  height: var(--header-h);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo img {
  height: 44px;
  width: auto;
}

/* ===========================
   Navigation
   =========================== */
.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav__link {
  display: block;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--primary);
  background: rgba(30, 115, 190, 0.06);
}

.nav__link--cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}

.nav__link--cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.nav__link.is-active {
  color: var(--primary);
  font-weight: 700;
}

/* ===========================
   Hamburger
   =========================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--bg-gray);
}

.hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Overlay
   =========================== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.is-visible {
  display: block;
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f9f9f9;
}

.hero__img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.90) 42%,
    rgba(255, 255, 255, 0.10) 100%
  );
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
}

.hero__text {
  max-width: 600px;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 520px;
}

/* ===========================
   Trouble Section
   =========================== */
.trouble {
  padding: 80px 0;
  background: var(--bg-gray);
}

.trouble__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trouble__item {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trouble__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trouble__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.trouble__item p {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
}

/* ===========================
   Services Section
   =========================== */
.services {
  padding: 80px 0;
  background: var(--bg);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border);
}

.service:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service--reverse {
  direction: rtl;
}

.service--reverse > * {
  direction: ltr;
}

.service__img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s;
}

.service__img-wrap:hover .service__img {
  transform: scale(1.03);
}

.service__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.service__text {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ===========================
   Customers Section
   =========================== */
.customers {
  padding-bottom: 80px;
  background: var(--bg-gray);
}

.customers__banner {
  width: 100%;
  overflow: hidden;
  margin-bottom: 48px;
}

.customers__banner-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
}

.customers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.customer-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.customer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.customer-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.customer-card__body {
  padding: 20px;
}

.customer-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.customer-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================
   Pricing Section
   =========================== */
.pricing {
  padding: 80px 0;
  background: var(--bg);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding-top: 20px;
}

.pricing__card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.pricing__card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing__card--featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(30, 115, 190, 0.15);
}

.pricing__card--featured::before {
  content: '\304A\3059\3059\3081';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.pricing__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pricing__amount-wrap {
  margin-bottom: 20px;
}

.pricing__amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text);
}

.pricing__unit {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  text-align: left;
}

/* ===========================
   Steps Section
   =========================== */
.steps {
  padding: 80px 0;
  background: var(--bg-gray);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps__grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: var(--primary);
  opacity: 0.2;
}

.step {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 32px 20px;
  box-shadow: var(--shadow);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(30, 115, 190, 0.35);
}

.step__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.step__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===========================
   Representative Section
   =========================== */
.representative {
  padding: 80px 0;
  background: var(--bg);
}

.representative__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: center;
}

.representative__img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.representative__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.representative__title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 24px;
  padding-bottom: 16px;
  line-height: 1.5;
}

.representative__title::after {
  left: 0;
  transform: none;
}

.representative__body p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.representative__body p:last-child {
  margin-bottom: 0;
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
  padding: 80px 0;
  background: var(--bg-gray);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  transition: background 0.2s;
}

.faq__q:hover {
  background: rgba(30, 115, 190, 0.04);
}

.faq__q[aria-expanded="true"] {
  color: var(--primary);
  background: rgba(30, 115, 190, 0.04);
}

.faq__q-text {
  flex: 1;
}

.faq__icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s;
  font-size: 0.85rem;
}

.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 24px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__a:not([hidden]) {
  max-height: 600px;
  padding: 0 24px 20px;
}

.faq__a[hidden] {
  display: block !important;
}

.faq__a p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ===========================
   Company Section
   =========================== */
.company {
  padding: 80px 0;
  background: var(--bg);
}

.company__table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.company__table th,
.company__table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.company__table tr:last-child th,
.company__table tr:last-child td {
  border-bottom: none;
}

.company__table th {
  background: var(--bg-gray);
  font-weight: 700;
  width: 160px;
  color: var(--text);
}

.company__table td {
  background: #fff;
  color: var(--text-muted);
}

.company__table td a {
  color: var(--primary);
}

.company__table caption {
  caption-side: top;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
  padding: 0 0 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
  padding: 80px 0;
  background: var(--primary);
}

.contact__lead {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form__required {
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.form__input,
.form__textarea {
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 163, 42, 0.2);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  text-align: center;
  margin-top: 8px;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: #222;
  color: #aaa;
  border-top: 3px solid var(--primary);
}

.footer__nav-wrap {
  padding: 40px 0;
  border-bottom: 1px solid #333;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}

.footer__links a {
  font-size: 0.85rem;
  color: #aaa;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
}

.footer__copy {
  font-size: 0.8rem;
  color: #777;
}

/* ===========================
   Page Hero (inner pages)
   =========================== */
.page-hero {
  background: var(--bg-gray);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.page-hero__breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.page-hero__breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
}

.page-hero__breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  color: var(--text-muted);
}

.page-hero__breadcrumb a {
  color: var(--text-muted);
}

.page-hero__breadcrumb a:hover {
  color: var(--primary);
}

/* ===========================
   Inner Page Content
   =========================== */
.page-section {
  padding: 72px 0;
}

.page-section--gray {
  background: var(--bg-gray);
}

.page-section--blue {
  background: var(--primary);
}

.page-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 2カラムコンテンツ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col__img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.two-col__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

figure { margin: 0; }
figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

.two-col__body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.two-col__body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

/* CTA バナー */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2a8ad4 100%);
  padding: 64px 24px;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* 法的ページ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px;
  color: var(--text);
  line-height: 1.9;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.legal-table th,
.legal-table td {
  padding: 14px 18px;
  text-align: left;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-gray);
  font-weight: 700;
  width: 180px;
  white-space: nowrap;
  color: var(--text);
}

.legal-table td {
  color: var(--text-muted);
}

.legal-table caption {
  caption-side: top;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
  padding: 0 0 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===========================
   Related Content
   =========================== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.related-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.related-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.related-card__arrow {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===========================
   Responsive – Tablet (≤ 960px)
   =========================== */
@media (max-width: 960px) {
  .trouble__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service--reverse {
    direction: ltr;
  }

  .service__img {
    height: 240px;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .representative__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .representative__img {
    height: 240px;
  }

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

  .two-col {
    gap: 32px;
  }
}

/* ===========================
   Responsive – Tablet narrow (≤ 768px)
   =========================== */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   Responsive – Mobile (≤ 640px)
   =========================== */
@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  :root {
    --header-h: 60px;
  }

  /* Hamburger ON */
  .hamburger {
    display: flex;
  }

  /* Nav becomes mobile drawer */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: right 0.35s ease;
    overflow-y: auto;
    padding: calc(var(--header-h) + 20px) 0 40px;
  }

  .nav.is-open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 16px;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 14px 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    white-space: normal;
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .nav__link--cta {
    margin-top: 16px;
    text-align: center;
    border-radius: var(--radius);
    border-bottom: none;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__content {
    padding: 60px 20px;
  }

  /* Sections */
  .trouble,
  .services,
  .customers,
  .pricing,
  .steps,
  .representative,
  .faq,
  .company,
  .contact {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 36px;
    font-size: 1.4rem;
  }

  /* Trouble */
  .trouble__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Service */
  .service {
    margin-bottom: 48px;
    padding-bottom: 48px;
  }

  .service__img {
    height: 200px;
  }

  /* Customers */
  .customers__grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps__grid {
    grid-template-columns: 1fr;
  }

  .steps__grid::before {
    display: none;
  }

  /* Inner pages */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .two-col,
  .two-col--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .two-col__img {
    height: 220px;
  }

  /* Inner page sections */
  .page-section {
    padding: 48px 0;
  }

  /* Legal / tokutei tables – stack on narrow screens */
  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-table th {
    display: block;
    width: auto;
    padding-bottom: 4px;
    border-bottom: none;
  }

  .legal-table td {
    display: block;
    padding-top: 4px;
    padding-left: 0;
  }

  /* Company table */
  .company__table th {
    width: 110px;
  }

  .company__table th,
  .company__table td {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  /* Footer */
  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
