:root {
  --background: #fcfdfb;
  --foreground: #17211f;
  --muted: #f2f6f3;
  --muted-foreground: #64716d;
  --card: #ffffff;
  --border: #dce6e1;
  --accent: #087d70;
  --accent-dark: #075f57;
  --accent-soft: #e8f4f0;
  --care: #2d9d86;
  --warm: #e4a857;
  --navy: #183a46;
  --shadow: 0 18px 44px rgba(26, 59, 52, 0.11);
  --shadow-soft: 0 8px 24px rgba(26, 59, 52, 0.07);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 230, 225, 0.92);
  background: rgba(252, 253, 251, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 26px;
}

.brand { display: flex; align-items: center; flex: 1; }

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name, .brand-sub { display: none; }

.nav-links { display: flex; align-items: stretch; gap: 2px; }

.nav-links a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 0 13px;
  color: #374641;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: -1px;
  left: 13px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent-dark); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 6px;
  background: var(--accent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--foreground); }

.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background: linear-gradient(90deg, #fcfdfb 0 62%, #eef6f3 62% 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: calc((100vw - min(100vw - 48px, var(--max))) / 2);
  width: 1px;
  height: 100%;
  background: rgba(8, 125, 112, 0.12);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label::before { content: ""; width: 28px; height: 2px; background: var(--warm); }

.hero h1,
.page-hero h1,
.section-title {
  margin: 18px 0 0;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0;
}

.hero h1 { max-width: 650px; font-size: clamp(42px, 4.5vw, 62px); }
.page-hero h1 { max-width: 840px; font-size: clamp(36px, 4vw, 52px); }
.section-title { max-width: 760px; font-size: clamp(30px, 3vw, 42px); }

.gradient-text { color: var(--accent); background: none; -webkit-text-fill-color: initial; }

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #53615d;
  font-size: clamp(16px, 1.45vw, 18px);
}

.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 21px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button::after { content: "›"; margin-left: 12px; font-size: 20px; font-weight: 400; line-height: 1; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--accent-dark); border-color: #bed4cc; background: transparent; }
.button-secondary:hover { border-color: var(--accent); background: #fff; }

.hero-media { position: relative; }
.hero-image { overflow: hidden; aspect-ratio: 5 / 6; border-radius: 4px 4px 40px 4px; box-shadow: var(--shadow); }
.hero-image img, .image-card img, .wide-image img, .case-photo img { width: 100%; height: 100%; object-fit: cover; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
}

.stat { min-width: 0; padding: 21px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--navy); font-size: 22px; line-height: 1.3; }
.stat span { color: var(--muted-foreground); font-size: 12px; }

.section { padding: 82px 0; }
.section.alt { background: var(--muted); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 38px;
}

.section-head p { margin: 0; padding-bottom: 4px; color: var(--muted-foreground); }

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

.card {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-3px); border-color: #b8d4ca; box-shadow: var(--shadow-soft); }

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent-dark);
  font-weight: 900;
  border-radius: 50%;
  background: var(--accent-soft);
}

.card h3 { margin: 20px 0 10px; font-size: 20px; line-height: 1.45; }
.card p, .page-card p { margin: 0; color: var(--muted-foreground); }
.card-link { display: inline-flex; align-items: center; margin-top: 22px; color: var(--accent-dark); font-size: 14px; font-weight: 800; }
.card-link::after { content: "→"; margin-left: 9px; }

.feature-band { color: var(--foreground); background: #eaf4f0; }
.feature-band .section-label { color: var(--accent-dark); }
.feature-band p, .feature-band .muted { color: #586762; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid #bdd6cd; }

.step { position: relative; padding: 28px 26px 8px 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: -1px; right: 24px; width: 38px; height: 1px; background: var(--accent); }
.step b { display: block; margin-bottom: 14px; color: var(--accent); font-size: 13px; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; font-size: 14px; }

.image-card { overflow: hidden; aspect-ratio: 16 / 11; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.wide-image { overflow: hidden; aspect-ratio: 16 / 7; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

.page-hero {
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(105deg, #f5f9f6 0 70%, #e5f1ed 70% 100%);
}

.page-hero .section-label { margin-top: 24px; }
.about-hero { padding: 58px 0 64px; }
.about-hero + .section { padding-top: 76px; }

.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: end; }

.about-hero-card {
  padding: 26px;
  border-left: 3px solid var(--warm);
  background: rgba(255, 255, 255, 0.72);
}

.about-hero-card strong, .about-hero-card span { display: block; }
.about-hero-card strong { color: var(--muted-foreground); font-size: 12px; }
.about-hero-card span { margin-top: 6px; color: var(--navy); font-size: 27px; font-weight: 800; line-height: 1.3; }
.about-hero-card p { margin: 12px 0 0; color: var(--muted-foreground); font-size: 14px; }

.about-intro { display: grid; grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr); gap: 58px; align-items: center; }
.about-intro p { color: #53615d; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: stretch; }
.profile-cards { display: grid; gap: 12px; }

.mini-card { display: grid; align-content: center; min-height: 110px; padding: 22px; border-left: 3px solid var(--accent); background: #fff; }
.mini-card b { color: var(--accent-dark); font-size: 12px; }
.mini-card span { margin-top: 6px; font-size: 17px; font-weight: 800; line-height: 1.5; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.breadcrumbs a { color: var(--accent-dark); }

.page-grid { display: grid; grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr); gap: 42px; align-items: start; }

.page-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }

.info-list { display: grid; gap: 0; margin: 0; }
.info-list div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.info-list div:first-child { padding-top: 0; }
.info-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.info-list dt { color: var(--muted-foreground); font-size: 13px; font-weight: 700; }
.info-list dd { margin: 0; }

.pill-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pill { padding: 6px 11px; color: var(--accent-dark); font-size: 12px; font-weight: 800; border-radius: 999px; background: var(--accent-soft); }

.case-list { display: grid; gap: 0; }
.case-item { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; align-items: center; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.case-item:first-child { padding-top: 0; }
.case-photo { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; }
.case-item h3 { margin: 0 0 8px; font-size: 21px; }
.case-item p { margin: 0; color: var(--muted-foreground); }
.case-meta { color: var(--accent-dark); font-size: 14px; font-weight: 800; }
.case-meta::after { content: "  →"; }

.article { max-width: 900px; }
.article .wide-image { margin-bottom: 52px; }
.article h2 { margin: 44px 0 14px; padding-left: 16px; border-left: 3px solid var(--accent); font-size: 25px; line-height: 1.45; }
.article p { color: #53615d; }

.quote { margin: 34px 0; padding: 24px 28px; border-left: 3px solid var(--warm); background: #f7f9f7; color: #31423d; font-size: 18px; font-weight: 600; }

.contact-layout { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: 32px; align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 800; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--foreground);
  border: 1px solid #cbd8d2;
  border-radius: 5px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { min-height: 158px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 125, 112, 0.1); }
.form-status { display: none; padding: 14px 16px; color: #075f57; font-weight: 800; background: var(--accent-soft); }
.form-status.show { display: block; }

.news-list { display: grid; gap: 0; max-width: 920px; }
.news-item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.news-item time { color: var(--accent-dark); font-size: 13px; font-weight: 800; }

.site-footer { color: rgba(255, 255, 255, 0.7); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; gap: 56px; padding: 56px 0 40px; }
.site-footer h2, .site-footer h3 { margin: 0 0 16px; color: #fff; }
.site-footer h2 { font-size: 20px; }
.site-footer h3 { font-size: 14px; }
.site-footer p { margin: 7px 0; font-size: 13px; }
.footer-links { display: grid; gap: 7px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 11px; }
.credits { color: rgba(255, 255, 255, 0.48); font-size: 11px; }

.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { min-height: 68px; }
  .brand-mark { width: 48px; height: 48px; }
  .nav-links { position: fixed; inset: 68px 0 auto; display: none; flex-direction: column; align-items: stretch; padding: 10px 20px 22px; border-bottom: 1px solid var(--border); background: rgba(252, 253, 251, 0.99); }
  body.menu-open .nav-links { display: flex; }
  .nav-links a { display: block; min-height: auto; padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .hero { background: linear-gradient(180deg, #fcfdfb 0 55%, #eef6f3 55% 100%); }
  .hero-grid, .page-grid, .contact-layout, .about-hero-grid, .about-intro, .profile-layout, .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .hero-image { aspect-ratio: 16 / 10; border-radius: 4px 4px 28px 4px; }
  .stats, .grid-3, .process { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: 0; }
  .stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .about-hero-grid { gap: 30px; }
  .about-hero-card { max-width: 520px; }
  .case-item { grid-template-columns: 160px minmax(0, 1fr); }
  .case-meta { grid-column: 2; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 38px; }
  .page-hero h1 { font-size: 34px; }
  .section-title { font-size: 30px; }
  .lead { font-size: 16px; }
  .hero-actions, .button-row { flex-direction: column; }
  .button { width: 100%; }
  .hero-image { aspect-ratio: 4 / 3; }
  .stats { margin-top: 38px; }
  .stat { padding: 17px 14px; }
  .stat strong { font-size: 19px; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 28px; }
  .grid-3, .process, .footer-grid { grid-template-columns: 1fr; }
  .process { border-top: 0; }
  .step { padding: 20px 0; border-top: 1px solid #bdd6cd; }
  .step:not(:last-child)::after { display: none; }
  .page-hero, .about-hero { padding: 42px 0 48px; background: #f3f8f5; }
  .about-hero-card { padding: 20px; }
  .case-item { grid-template-columns: 104px 1fr; gap: 16px; padding: 20px 0; }
  .case-item h3 { font-size: 17px; }
  .case-item p { font-size: 13px; }
  .case-meta { grid-column: 2; font-size: 13px; }
  .wide-image { aspect-ratio: 4 / 3; }
  .article .wide-image { margin-bottom: 38px; }
  .article h2 { margin-top: 36px; font-size: 22px; }
  .quote { padding: 20px; font-size: 16px; }
  .info-list div, .news-item { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { gap: 32px; padding-top: 44px; }
  .footer-bottom { flex-direction: column; }
}
