:root {
  --navy: #0b3a68;
  --navy-900: #062848;
  --teal: #16b89f;
  --teal-700: #109985;
  --mint: #e9fbf7;
  --sky: #eef6fb;
  --ink: #17283a;
  --muted: #5c6d7f;
  --line: #d9e7ef;
  --bg: #fbfefd;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 45, 82, .10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(22,184,159,.12), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(11,58,104,.10), transparent 30%),
    var(--bg);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 254, 253, .82);
  border-bottom: 1px solid rgba(217,231,239,.8);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand img { height: 32px; width: 32px; border-radius: 6px; flex: 0 0 auto; }
.brand-sub { display: block; font-size: 10px; color: var(--teal-700); letter-spacing: .16em; font-weight: 700; line-height: 1.2; }
.nav-toggle { display: none; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 700;
}
.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-700);
  background: rgba(22,184,159,.09);
}
.nav-cta {
  background: var(--navy) !important;
  color: white !important;
  padding-inline: 18px !important;
  box-shadow: 0 10px 24px rgba(11,58,104,.16);
}
.nav-cta:hover { background: var(--navy-900) !important; }

main { overflow: hidden; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.hero { padding: 92px 0 72px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--teal);
  border-radius: 99px;
}
.hero h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.page-hero h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.hero h1 .accent,
.page-hero h1 .accent { color: var(--teal-700); }
.lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 2;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: white; box-shadow: 0 16px 36px rgba(11,58,104,.18); }
.btn-primary:hover { background: var(--navy-900); }
.btn-secondary { background: white; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { box-shadow: var(--shadow); }
.btn-ghost { color: var(--navy); background: rgba(11,58,104,.06); }

.hero-panel {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(217,231,239,.9);
  box-shadow: var(--shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(22,184,159,.18), rgba(11,58,104,.10));
}
.logo-card {
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
}
.hero-logo { width: 100%; border-radius: 18px; }
.check-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--teal-700); font-weight: 900; }

.section-head { max-width: 780px; margin: 0 0 34px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(7,45,82,.06);
}
.card h3 { margin: 12px 0 10px; color: var(--navy-900); font-size: 21px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); }
.icon-pill {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  color: var(--teal-700);
  background: var(--mint);
  font-weight: 900;
}
.card-link { display: inline-flex; margin-top: 18px; color: var(--teal-700); font-weight: 800; }

.sub-label { margin: 26px 0 8px; font-weight: 800; color: var(--navy-900); font-size: 14px; letter-spacing: .02em; }
.service-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.service-list--2col { grid-template-columns: 1fr 1fr; }
.service-list li { display: flex; gap: 10px; color: var(--muted); }
.service-list li::before { content: ""; margin-top: .72em; width: 7px; height: 7px; border-radius: 99px; background: var(--teal); flex: 0 0 auto; }

.band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy));
  color: white;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 54px);
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(22,184,159,.18);
  pointer-events: none;
}
.band .btn { position: relative; z-index: 1; }
.band h2, .band h3 { color: white; margin: 0; }
.band p { color: rgba(255,255,255,.76); }
.band .btn-secondary { color: var(--navy); }

.work-card { overflow: hidden; padding: 0; }
.work-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.work-body { padding: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag { font-size: 12px; font-weight: 800; color: var(--teal-700); background: rgba(22,184,159,.10); padding: 5px 9px; border-radius: 999px; }

.process { counter-reset: step; }
.process .card { position: relative; }
.process .card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: var(--navy);
  font-weight: 900;
}

.page-hero { padding: 72px 0 42px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a { color: var(--teal-700); font-weight: 800; }

.feature-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row h3 { margin: 0; color: var(--navy-900); }
.feature-row p { margin: 0 0 14px; color: var(--muted); }

.profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: start;
}
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  transition: box-shadow .16s ease, color .16s ease;
}
.profile-link:hover { box-shadow: var(--shadow); color: var(--teal-700); }
.personal-card { background: linear-gradient(135deg, rgba(22,184,159,.05), rgba(11,58,104,.04)); }
.personal-card p + p { margin-top: 12px; }
.profile .section-head h2 { font-size: clamp(20px, 2.5vw, 26px); }
.profile-photo {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--mint), var(--sky));
  align-self: start;
}
.profile-photo img { width: 100%; height: auto; display: block; border-radius: 0; }

.form {
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; color: var(--navy-900); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 180px; resize: vertical; }
.form-note { color: var(--muted); font-size: 14px; }

.article-card .date { color: var(--teal-700); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.article-card h3 { margin-top: 8px; }

.card-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card-title-row h3 { margin: 0; }

.field-optional { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }

.work-price {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.work-price-label { font-weight: 800; color: var(--navy-900); margin-right: 4px; }

.doc-card { max-width: 780px; }
.doc-card h3 { margin: 28px 0 10px; font-size: 17px; color: var(--navy-900); }
.doc-card h3:first-child { margin-top: 0; }
.doc-card p { color: var(--muted); margin: 0 0 10px; }
.doc-card .service-list { margin-bottom: 10px; }

.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { width: 200px; color: var(--navy-900); font-weight: 800; white-space: nowrap; background: rgba(22,184,159,.04); }
.legal-table td { color: var(--muted); }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .legal-table thead, .legal-table tbody, .legal-table th, .legal-table td, .legal-table tr { display: block; }
  .legal-table th { width: 100%; white-space: normal; padding-bottom: 4px; border-bottom: none; background: none; }
  .legal-table td { padding-top: 4px; padding-left: 18px; }
}

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-box p { margin-bottom: 0; }

.work-thumb { position: relative; cursor: pointer; overflow: hidden; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.work-thumb img { display: block; width: 100%; transition: transform 0.25s; }
.work-thumb:hover img { transform: scale(1.03); }
.gallery-badge { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px 5px 8px; border-radius: 20px; display: flex; align-items: center; gap: 5px; pointer-events: none; }

.work-card-featured { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0; gap: 0; }
.work-card-featured .work-thumb { order: 2; min-height: 280px; display: flex; align-items: center; justify-content: center; background: #f0f3f5; }
.work-card-featured .work-thumb img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: contain; }
.work-card-featured .work-body { order: 1; padding: 36px; }

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 2000; display: none; align-items: center; justify-content: center; gap: 16px; }
.lightbox.is-open { display: flex; animation: lb-fade 0.18s ease; }
.lightbox-img-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-img-wrap img { max-width: calc(100vw - 160px); max-height: 88vh; object-fit: contain; border-radius: 4px; display: block; }
.lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: rgba(255,255,255,.85); cursor: pointer; font-size: 32px; line-height: 1; padding: 2px 8px; }
.lightbox-close:hover { color: #fff; }
.lightbox-counter { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.65); font-size: 13px; white-space: nowrap; font-weight: 600; }
.lightbox-btn { flex-shrink: 0; background: rgba(255,255,255,.15); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 28px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.lightbox-btn:hover { background: rgba(255,255,255,.3); }
@media (max-width: 900px) {
  .work-card-featured { grid-template-columns: 1fr; }
  .work-card-featured .work-thumb { min-height: 200px; }
  .work-card-featured .work-thumb img { height: auto; }
}
@media (max-width: 640px) {
  .lightbox { gap: 8px; }
  .lightbox-btn { width: 38px; height: 38px; font-size: 22px; }
  .lightbox-img-wrap img { max-width: calc(100vw - 110px); }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  background: rgba(255,255,255,.68);
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--teal-700); }
.copyright { color: var(--muted); font-size: 13px; margin-top: 10px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .profile { grid-template-columns: 1fr; }
  .grid-4 { gap: 16px; }
  .header-inner { height: 68px; }
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 800;
  }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .hero { padding-top: 54px; }
  .section { padding: 64px 0; }
  .feature-row { grid-template-columns: 1fr; gap: 10px; }
  .cta-box { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .hero-actions, .form-row { flex-direction: column; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .card { padding: 20px; }
  .footer-inner { flex-direction: column; }
  .hero-panel { padding: 18px; }
}
