﻿/* ===========================
   CSS Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1e73be;
  --primary-dark: #0f4f8a;
  --accent: #1565c0;
  --accent-dark: #0d47a1;
  --text: #333333;
  --text-muted: #666666;
  --bg: #ffffff;
  --bg-gray: #f2f8ff;
  --border: #d6eaff;
  --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: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'YuGothic', 'Meiryo', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

strong {
  color: var(--primary);
}

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;
}

.about-en-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--primary);
  text-align: center;
  margin-bottom: 6px;
}

.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;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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;
  position: relative;
  overflow: hidden;
}

/* シマー */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: translateX(-180%) skewX(-15deg);
  pointer-events: none;
  z-index: 0;
}

.btn:hover::before {
  transform: translateX(320%) skewX(-15deg);
  transition: transform 0.5s ease;
}

/* 矢印（右向き三角形） */
.btn::after {
  content: '';
  display: inline-block;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 9px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  transition: transform 0.25s ease;
}

.btn:hover::after {
  transform: translateX(4px);
}

.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--line {
  background: #06C755;
  color: #fff;
  border-color: #06C755;
  gap: 8px;
}

.btn--line::after {
  display: none;
}

.btn--line:hover {
  background: #05b54d;
  border-color: #05b54d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
}

.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(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}

.nav__link--cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

.nav__link.is-active {
  color: var(--primary);
  font-weight: 700;
}

.nav__link--cta.is-active {
  color: #fff;
  background: var(--primary-dark);
}

/* ===========================
   Nav Dropdown (PC)
   =========================== */
.nav__item--has-dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
  transition: color 0.2s, background 0.2s;
}

.nav__dropdown-trigger:hover {
  color: var(--primary);
  background: rgba(30, 115, 190, 0.06);
}

.nav__dropdown-trigger.is-active {
  color: var(--primary);
  font-weight: 700;
}

.nav__dropdown-icon {
  font-size: 0.65rem;
  transition: transform 0.25s;
}

.nav__item--has-dropdown:hover .nav__dropdown-icon,
.nav__dropdown-trigger[aria-expanded="true"] .nav__dropdown-icon {
  transform: rotate(180deg);
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  min-width: 240px;
  padding: 14px 0 6px;
  z-index: 200;
}

.nav__item--has-dropdown:focus-within .nav__dropdown,
.nav__dropdown.is-open {
  display: block;
}

.nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav__dropdown-link:hover {
  background: var(--bg-gray);
  color: var(--primary);
}

.nav__dropdown-link.is-active {
  color: var(--primary);
  font-weight: 700;
}

/* ===========================
   Hamburger
   =========================== */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--bg-gray);
}

.hamburger__bar {
  display: block;
  height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}

.hamburger__bar:nth-child(1) { width: 20px; }
.hamburger__bar:nth-child(2) { width: 14px; align-self: flex-start; margin-left: 12px; }
.hamburger__bar:nth-child(3) { width: 20px; }

.hamburger.is-open .hamburger__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 20px;
}

.hamburger.is-open .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 20px;
}

/* ===========================
   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-bg-x: 0px;
  --hero-bg-y: 0px;
  --hero-bg-scale: 1.075;
  --hero-diamond-x: 0px;
  --hero-diamond-y: 0px;
  --hero-diamond-rotate: 0deg;
  --hero-diamond-scale: 1;
  --hero-diamond-opacity: 0.72;
}

.hero__img-wrap {
  position: absolute;
  inset: -28px;
  z-index: 0;
  transform: translate3d(var(--hero-bg-x), var(--hero-bg-y), 0);
  will-change: transform;
}

.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;
  transform: scale(var(--hero-bg-scale));
  transform-origin: center right;
  will-change: transform;
}

.hero__diamond {
  position: absolute;
  top: 50%;
  left: 68%;
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: var(--hero-diamond-opacity);
  transform:
    translate3d(calc(-50% + var(--hero-diamond-x)), calc(-50% + var(--hero-diamond-y)), 0)
    rotate(calc(45deg + var(--hero-diamond-rotate)))
    scale(var(--hero-diamond-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.hero__diamond::before,
.hero__diamond::after,
.hero__diamond-core,
.hero__diamond-ring {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.hero__diamond::before {
  background: linear-gradient(135deg, rgba(30, 115, 190, 0.36), rgba(68, 165, 255, 0.18));
  filter: blur(1px);
}

.hero__diamond::after {
  inset: 14%;
  border: 1px solid rgba(183, 221, 255, 0.62);
  background: rgba(30, 115, 190, 0.10);
}

.hero__diamond-core {
  inset: 30%;
  background: linear-gradient(135deg, rgba(225, 242, 255, 0.64), rgba(30, 115, 190, 0.30));
  box-shadow: 0 0 36px rgba(30, 115, 190, 0.30);
}

.hero__diamond-ring {
  border: 1px solid rgba(30, 115, 190, 0.30);
}

.hero__diamond-ring--outer {
  inset: -16%;
}

.hero__diamond-ring--inner {
  inset: 22%;
  border-color: rgba(68, 165, 255, 0.42);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
}

.hero__text {
  max-width: 600px;
}

.hero__title {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  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;
}

.hero__desc strong {
  color: var(--primary);
  font-weight: 700;
}

/* ===========================
   Trouble Section
   =========================== */
.trouble {
  padding: 80px 0;
  background: var(--bg-gray);
}

/* ===========================
   Services Section
   =========================== */
.services {
  padding: 80px 0;
  background: var(--bg);
}

/* ===========================
   Service Grid / Cards (home)
   =========================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-card__more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.55;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.service-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-card__text strong {
  color: var(--primary);
  font-weight: 700;
}

.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.service-tag {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--bg-gray);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   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__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 strong {
  color: var(--primary);
  font-weight: 700;
}

.representative__body p:last-child {
  margin-bottom: 0;
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
  padding: 80px 0;
  background: var(--bg);
}

.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;
}

.faq__more {
  text-align: center;
  margin-top: 32px;
}

.faq__more a {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.faq__more a:hover {
  border-bottom-color: var(--primary);
}

/* ===========================
   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);
}

.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: #e6e6e6;
  border-top: 3px solid var(--primary);
}

.footer__nav-wrap {
  padding: 40px 0;
  border-bottom: 1px solid #333;
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
}

.footer__copy {
  font-size: 0.8rem;
  color: #d8d8d8;
}

/* ===========================
   Page Hero (inner pages)
   =========================== */
.page-hero {
  background: #0f4f8a;
  padding: 24px 0 40px;
}

.page-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 0;
}

.page-hero__breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.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: rgba(255, 255, 255, 0.5);
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero__breadcrumb a:hover {
  color: #fff;
}

/* ===========================
   Inner Page Content
   =========================== */
.page-section {
  padding: 72px 0;
}

.page-section--gray {
  background: var(--bg-gray);
}

.page-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.page-lead strong {
  color: var(--primary);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(30, 115, 190, 0.18);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.feature-card__icon-fa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  font-size: 1.85rem;
  color: var(--primary);
  background: linear-gradient(135deg, #e6f4ff, #f5fbff);
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s ease;
}

.feature-card:hover .feature-card__icon-fa {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
  color: var(--text);
}

.feature-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.feature-card__text strong {
  color: var(--primary-dark);
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(30, 115, 190, 0.18) 60%);
  padding: 0 1px;
}

/* 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;
}

.cta-banner__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 法的ページ */
.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);
}

.related-card--current {
  border-color: var(--primary);
  background: var(--bg-gray);
  pointer-events: none;
  cursor: default;
}

.related-card--current .related-card__arrow {
  color: var(--text-muted);
}

/* ===========================
   Worry List
   =========================== */
.worry-list { list-style: none; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.worry-list__item { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 15px 20px; font-size: 0.95rem; font-weight: 500; color: var(--text); display: flex; align-items: flex-start; gap: 12px; box-shadow: var(--shadow); }
.worry-icon { color: #c53030; font-weight: 900; flex-shrink: 0; line-height: 1.8; font-size: 0.9rem; }

/* ===========================
   Diff Table
   =========================== */
.diff-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 40px; border-radius: 8px; box-shadow: var(--shadow); }
.diff-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.diff-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; }
.diff-table th, .diff-table td { padding: 14px 18px; font-size: 0.875rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.diff-table thead th { background: var(--primary); color: #fff; font-weight: 700; }
.diff-table thead th.col-ours { background: var(--primary-dark); }
.diff-table tbody tr:last-child td { border-bottom: none; }
.diff-table tbody tr:nth-child(odd) td { background: #fff; }
.diff-table tbody tr:nth-child(even) td { background: var(--bg-gray); }
.diff-table .col-bad { color: #999; }
.diff-table .col-good { color: var(--primary); font-weight: 700; }

/* ===========================
   Process Steps
   =========================== */
.process-wrap { max-width: 740px; margin: 0 auto; }
.process-step { display: flex; gap: 20px; align-items: flex-start; padding: 24px 28px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 44px; position: relative; }
.process-step:last-child { margin-bottom: 0; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -32px;
  left: 52px;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}
.process-step__num { flex-shrink: 0; width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 900; box-shadow: 0 4px 12px rgba(30,115,190,0.3); }
.process-step__title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.process-step__text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.8; margin: 0; }

/* ===========================
   Responsive – Tablet (≤ 960px)
   =========================== */
@media (max-width: 960px) {

  .representative__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .representative__img {
    height: 240px;
  }

  .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;
  }

  /* Dropdown mobile overrides */
  .nav__item--has-dropdown {
    width: 100%;
  }

  /* モバイルではトリガーをセクションラベルとして表示 */
  .nav__dropdown-trigger {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 14px 8px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: none;
    border-radius: 0;
    pointer-events: none;
    cursor: default;
  }

  .nav__dropdown-icon {
    display: none;
  }

  /* モバイルでは常に展開 */
  .nav__item--has-dropdown:hover .nav__dropdown,
  .nav__item--has-dropdown:focus-within .nav__dropdown,
  .nav__dropdown,
  .nav__dropdown.is-open {
    display: block;
  }

  .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    width: 100%;
    padding: 0;
    background: var(--bg-gray);
  }

  .nav__dropdown-link {
    padding: 12px 8px 12px 24px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__content {
    padding: 60px 20px;
  }

  .hero__diamond {
    left: 76%;
    width: 150px;
    opacity: 0.42;
  }

  /* Sections */
  .trouble,
  .services,
  .steps,
  .faq,
  .company,
  .contact {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 36px;
    font-size: 1.4rem;
  }

  /* Steps */
  .steps__grid {
    grid-template-columns: 1fr;
  }

  .steps__grid::before {
    display: none;
  }

  /* Service grid */
  .service-grid,
  .service-grid--2col {
    grid-template-columns: 1fr;
  }

  /* 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;
  }

  .legal-table tbody,
  .legal-table tr {
    display: block;
  }

  .legal-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .legal-table th {
    display: block;
    width: 100%;
    white-space: normal;
    background: var(--bg-gray);
    padding: 10px 14px;
    font-size: 0.82rem;
    border: none;
    border-bottom: 1px solid var(--border);
  }

  .legal-table td {
    display: block;
    padding: 12px 14px;
    border: none;
    font-size: 0.875rem;
    line-height: 1.85;
  }

  /* Company table */
  .company__table th {
    width: 110px;
  }

  .company__table th,
  .company__table td {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  /* Process steps */
  .process-step {
    flex-direction: column;
    gap: 14px;
  }
}

/* ===========================
   Scroll To Top Button
   =========================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(30, 115, 190, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  z-index: 900;
}
.scroll-top:not([hidden]) {
  display: flex;
}
.scroll-top[hidden] {
  display: none;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--primary-dark);
}

/* ===========================
   404 Not Found
   =========================== */
.not-found-section {
  padding: 80px 0 100px;
}

.not-found__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.not-found__message {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 36px;
}

.not-found__btn {
  display: inline-block;
  margin-bottom: 56px;
}

.not-found__links-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.not-found__link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.not-found__link-list a {
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.not-found__link-list a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
