:root {
  --bg: #f3f7f9;
  --bg-soft: #e7eef2;
  --surface: rgba(255, 255, 255, 0.72);
  --ink: #172026;
  --ink-muted: #5a6872;
  --accent: #1a6b78;
  --accent-soft: #d7ebef;
  --warm: #f0a35e;
  --line: rgba(23, 32, 38, 0.12);
  --shadow: 0 18px 50px rgba(26, 70, 86, 0.08);
  --font-display: "Syne", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --max: 44rem;
  --wide: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(26, 107, 120, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 5%, rgba(240, 163, 94, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 40%, var(--bg-soft) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 251, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 251, 0.92);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand-lockup img {
  width: 2rem;
  height: 2rem;
}

.brand-lockup span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 46rem);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(26, 107, 120, 0.1), transparent 45%);
  pointer-events: none;
  animation: sheen 10s ease-in-out infinite;
}

@keyframes sheen {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(2%);
  }
}

.hero-inner {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 7rem) 1.25rem clamp(3rem, 8vw, 5rem);
  width: 100%;
}

.hero-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.2vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.2s forwards;
}

.hero-brand .en {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.45rem;
  text-transform: none;
}

.hero-lead {
  margin: 0;
  max-width: 28em;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.7;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

.hero-sub {
  margin: 1.1rem 0 0;
  max-width: 32em;
  color: var(--ink-muted);
  font-size: 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.65s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

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

.btn-primary:hover {
  background: #145762;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-mark,
  .hero-brand,
  .hero-lead,
  .hero-sub,
  .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}

.section-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.section-body {
  max-width: var(--max);
}

.section-body p {
  margin: 0 0 1.1rem;
}

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

.divider {
  height: 1px;
  max-width: var(--wide);
  margin: 0 auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.service-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem 2rem;
  max-width: 36rem;
}

@media (min-width: 640px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
  }
}

.service-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--warm);
}

.company {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45) 12%, rgba(255, 255, 255, 0.45) 88%, transparent);
}

.company-panel {
  max-width: 42rem;
}

.profile {
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.profile-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.profile-row dt {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-row dd {
  margin: 0;
  font-weight: 500;
}

.profile-row dd a {
  font-weight: 600;
}

.address {
  line-height: 1.7;
}

.site-footer {
  padding: 2.5rem 1.25rem 6.5rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.footer-copy {
  margin: 0;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.45s var(--ease);
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-actions button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.cookie-accept {
  background: var(--accent);
  color: #fff;
}

.cookie-reject {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero-brand {
    max-width: none;
  }
}
