/* Base */
:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --surface-alt: #f0ede7;
  --text: #1d1d1b;
  --muted: #67665f;
  --line: #ddd8cf;
  --accent: #1f6f5f;
  --accent-weak: #e8f2ef;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  opacity: 0.85;
}

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

.narrow {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol,
table {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 1.2em;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-heading {
  margin-bottom: 28px;
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221, 216, 207, 0.9);
}

.site-header .container {
  width: calc(100% - 120px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.global-nav ul,
.footer-nav {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.global-nav a,
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.global-nav .is-current {
  color: var(--accent);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle-bar {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle::before {
  top: 14px;
}

.menu-toggle-bar {
  top: 21px;
}

.menu-toggle::after {
  top: 28px;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 76px 0 56px;
}

.hero-grid,
.split,
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-points,
.check-list {
  margin-top: 20px;
}

.hero-image-card,
.info-panel,
.contact-form-card,
.contact-info,
.card,
.service-card,
.note-box,
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image-card {
  padding: 18px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
}

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

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.hero-video-section {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 120px 0 88px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.62) 0%, rgba(17, 17, 17, 0.48) 38%, rgba(17, 17, 17, 0.30) 100%);
  z-index: -1;
}

.hero-content-wrap {
  width: 100%;
  padding-left: 64px;
}

.hero-copy {
  max-width: 640px;
  color: #fff;
}

.hero-video-section .eyebrow,
.hero-video-section .lead,
.hero-video-section .hero-points {
  color: rgba(255, 255, 255, 0.92);
}

.hero-video-section .hero-points {
  padding-left: 1.15em;
}

.hero-video-section .button.primary {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-video-section .button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.hero-video-section .button.secondary:hover,
.hero-video-section .button.primary:hover {
  opacity: 0.92;
}

/* Cards */
.card-grid,
.service-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.service-card {
  overflow: hidden;
}

.service-card-body {
  padding: 20px;
}

/* Page hero */
.page-hero {
  padding: 64px 0 24px;
}

/* Content */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.info-table th {
  width: 28%;
  background: #faf8f4;
}

.content-block {
  margin-top: 28px;
}

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

.flow-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.cta-box {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.prose h2 {
  margin-top: 32px;
}

/* Contact */
.contact-layout {
  align-items: start;
}

.contact-info,
.contact-form-card {
  padding: 24px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.form-message {
  min-height: 24px;
  color: var(--accent);
  font-size: 0.96rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #f3f0ea;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 20px;
}

.footer-brand {
  font-weight: 700;
}

.footer-bottom {
  padding: 0 0 28px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contact-layout,
  .card-grid,
  .service-grid,
  .cta-box,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-box,
  .footer-inner {
    display: grid;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 8px;
  }

  .info-table td {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .site-header .container {
    width: calc(100% - 24px);
  }

  .menu-toggle {
    display: inline-block;
  }

  .global-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
  }

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

  .global-nav ul,
  .footer-nav {
    display: grid;
    gap: 10px;
  }

  .section,
  .hero {
    padding: 56px 0;
  }

  .hero-video-section {
    min-height: 72vh;
    padding: 108px 0 64px;
  }

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

}


/* One page */
.anchor-section {
  scroll-margin-top: 96px;
}

.two-col-copy,
.section-stack {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

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

.cta-box-singlepage {
  align-items: center;
}

.compact-list {
  margin-bottom: 0;
}

.hero-title-custom {
  font-size: 32px;
}

@media (max-width: 900px) {
  .two-col-copy,
  .section-stack,
  .service-grid-singlepage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .anchor-section {
    scroll-margin-top: 84px;
  }

  #top .hero-title-custom {
    font-size: 27px !important;
    line-height: 1.4;
  }
    .hero-content-wrap {
    padding-left: 20px;
  }
}
