@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@500;600;700&display=swap');

:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #17212a;
  --muted: #65717b;
  --line: #d8d6cf;
  --deep: #10202a;
  --accent: #2d5969;
  --accent-soft: #e6eef0;
  --max: 1180px;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 860px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--ink);
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 244, 239, .88);
  border-bottom: 1px solid rgba(216,214,207,.75);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
}
.global-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
.global-nav a { text-decoration: none; }
.nav-cta {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.menu-button { display: none; }

.hero {
  padding: 112px 0 88px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 72px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
}
.hero h1,
.section-heading h2,
.profile-intro h2,
.contact h2,
.company h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .01em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.28;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  max-width: 770px;
  margin: 34px 0 0;
  font-size: 17px;
  color: #33414b;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.button-primary { background: var(--deep); color: white; }
.button-ghost { border: 1px solid var(--ink); }
.hero-person {
  margin: 34px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.hero-person strong { color: var(--ink); font-family: var(--serif); font-size: 16px; margin-left: 6px; }

.hero-panel {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 0;
}
.panel-label {
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--muted);
}
.flow > div {
  display: grid;
  grid-template-columns: 36px 64px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  border-top: 1px solid var(--line);
}
.flow span { font-size: 10px; color: var(--muted); }
.flow strong { font-family: var(--serif); }
.flow small { color: var(--muted); }

.section { padding: 104px 0; }
.section-tight { padding: 36px 0 72px; }
.section-muted { background: #efede7; }
.section-dark { background: var(--deep); color: white; }

.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.three-cards article {
  background: var(--surface);
  padding: 28px;
}
.three-cards h2 { margin: 8px 0; font-family: var(--serif); font-size: 20px; }
.three-cards p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.card-no { margin: 0; font-size: 10px; color: var(--accent); font-weight: 700; }

.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.42;
}
.section-heading > p:last-child {
  color: var(--muted);
  max-width: 720px;
  margin: 22px 0 0;
}
.split-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: end;
}
.note { max-width: 460px !important; font-size: 12px; }

.service-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service-card,
.case-card {
  min-height: 290px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.service-card > span { font-size: 10px; color: var(--accent); font-weight: 700; }
.service-card h3,
.case-card h3 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
}
.service-card p,
.case-card p { color: var(--muted); font-size: 14px; }
.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.service-card li,
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  color: #53606a;
}
.service-card-accent { background: var(--deep); color: white; }
.service-card-accent p { color: #c8d0d5; }
.service-card-accent a { display: inline-block; margin-top: 18px; color: white; }

.case-category {
  margin: 0 !important;
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .08em;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }

.strength-list { border-top: 1px solid var(--line); }
.strength-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.strength-list span { font-size: 12px; color: var(--accent); font-weight: 700; }
.strength-list h3 { margin: 0; font-family: var(--serif); font-size: 24px; }
.strength-list p { margin: 8px 0 0; color: var(--muted); }

.light .eyebrow, .section-dark .eyebrow { color: #94b5c0; }
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #38505c;
  border-left: 1px solid #38505c;
}
.process li {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid #38505c;
  border-bottom: 1px solid #38505c;
}
.process span { color: #92aab4; font-size: 11px; }
.process strong { display: block; margin-top: 22px; font-family: var(--serif); font-size: 21px; }
.process p { color: #b7c4ca; font-size: 13px; }

.profile-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}
.profile-photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 28px;
}
.profile-role { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.profile-intro h2 { margin: 0; font-size: 52px; }
.profile-lead { margin-top: 26px; font-size: 17px; }
.profile-body { padding-top: 34px; color: #394751; }
.profile-body blockquote {
  margin: 38px 0 0;
  padding: 28px 0 0 28px;
  border-top: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 2;
  color: var(--ink);
}

.tech-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tech-groups div {
  background: var(--surface);
  padding: 24px;
}
.tech-groups strong { font-family: var(--serif); }
.tech-groups p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 0; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 38px 24px 0;
  font-family: var(--serif);
  font-size: 18px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  font-family: var(--sans);
  font-weight: 300;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 0 24px; color: var(--muted); }

.company { padding-top: 52px; }
.company-grid {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 70px;
}
.company h2 { margin: 0; font-size: 34px; }
.company dl { margin: 0; border-top: 1px solid var(--line); }
.company dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.company dt { color: var(--muted); font-size: 13px; }
.company dd { margin: 0; }

.contact {
  padding: 112px 0;
  background: #dfe8e9;
}
.contact-inner { max-width: 900px; }
.contact h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.45; }
.contact > .container > p:not(.eyebrow) { max-width: 760px; }
.contact-box {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #aabfc4;
}
.contact-box p { color: #53676f; font-size: 14px; }

.site-footer { background: var(--deep); color: white; padding: 34px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.footer-inner strong { font-family: var(--serif); }
.footer-inner p { margin: 6px 0 0; color: #9eb0b8; font-size: 12px; }
.copyright { text-align: right; }

@media (hover: hover) {
  .global-nav a:hover, .service-card-accent a:hover { opacity: .6; }
  .button:hover { transform: translateY(-1px); }
}

@media (max-width: 900px) {
  .menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    align-content: center;
    gap: 7px;
    background: none;
    border: 0;
    padding: 9px;
  }
  .menu-button span:not(.sr-only) { height: 1px; background: var(--ink); width: 100%; }
  .global-nav {
    display: none;
    position: absolute;
    inset: 74px 0 auto 0;
    padding: 24px 20px 30px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .global-nav.is-open { display: flex; }
  .hero { padding-top: 78px; }
  .hero-grid,
  .profile-grid,
  .company-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-grid,
  .case-grid,
  .tech-groups { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-logo { height: 24px; }
  .hero { padding: 64px 0 54px; }
  .hero h1 { font-size: clamp(37px, 11vw, 54px); }
  .hero-lead { font-size: 15px; }
  .button { width: 100%; }
  .section { padding: 74px 0; }
  .section-tight { padding: 22px 0 52px; }
  .three-cards,
  .service-grid,
  .case-grid,
  .tech-groups { grid-template-columns: 1fr; }
  .split-heading { display: block; }
  .note { margin-top: 20px !important; }
  .process { grid-template-columns: 1fr; }
  .process li { min-height: 150px; }
  .strength-list article { grid-template-columns: 42px 1fr; }
  .strength-list h3 { font-size: 20px; }
  .profile-intro h2 { font-size: 42px; }
  .profile-body blockquote { font-size: 17px; }
  .company dl div { grid-template-columns: 1fr; gap: 5px; }
  .footer-inner { display: block; }
  .copyright { text-align: left; margin-top: 18px !important; }
}
