:root {
  --blue: #0757a3;
  --blue-soft: #3e7db7;
  --ink: #291a2b;
  --coral: #ff624c;
  --orange: #ff972d;
  --aqua: #05bfc7;
  --green: #50b94f;
  --pink: #ef5670;
  --line: #e4edf3;
  --shadow: 0 10px 24px rgba(19, 74, 112, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--blue);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; image-rendering: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: -4rem;
  left: 1rem;
  padding: .65rem 1rem;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }
.content-grid { width: min(877px, calc(100% - 64px)); margin-inline: auto; }

/* Header — reference: y 0–55 */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 55px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 2px 10px rgba(25, 68, 102, .08);
}
.header-inner {
  width: min(877px, calc(100% - 64px));
  height: 55px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand { flex: 0 0 207px; }
.brand img { width: 207px; height: 45px; object-fit: contain; image-rendering: auto; }
.global-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #185b9c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.global-nav a { position: relative; padding: 18px 0 15px; }
.global-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 10px;
  left: 50%;
  height: 2px;
  background: var(--coral);
  transition: .2s;
}
.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a.active { color: var(--coral); }
.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a.active::after { right: 0; left: 0; }
.contact-button {
  min-width: 181px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(105deg, #ff5e46, #ff7555);
  box-shadow: 0 7px 18px rgba(255, 96, 72, .22);
  font-size: 15px;
  font-weight: 700;
}
.contact-button img { width: 25px; height: 19px; object-fit: contain; }
.menu-button { display: none; }

/* Hero — reference: y 55–382 */
.hero {
  height: 327px;
  overflow: hidden;
  background: linear-gradient(105deg, #faffed, #fff 48%, #f3fbef);
}
.hero-inner {
  width: min(941px, 100%);
  height: 327px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 40% 60%;
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 0 24px 0 48px;
  transform: translateY(14px);
}
.hero-copy h1,
.section-intro h2,
.feature-copy h2,
.support h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  letter-spacing: .035em;
}
.hero-copy h1 { margin-bottom: 5px; font-size: 41px; line-height: 1.45; white-space: nowrap; }
.hero-copy p { margin: 0 0 10px; color: #332b35; font-size: 14px; font-weight: 600; line-height: 1.55; }
.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--coral);
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.primary-button {
  width: 194px;
  height: 39px;
  gap: 24px;
  color: #fff;
  background: linear-gradient(90deg, #ff5e46, #ff7455);
  box-shadow: 0 7px 16px rgba(255, 94, 70, .2);
  font-size: 14px;
}
.primary-button:hover,
.outline-button:hover,
.contact-button:hover { transform: translateY(-2px); box-shadow: 0 10px 21px rgba(255, 94, 70, .23); }
.hero-visual {
  position: relative;
  height: 327px;
  background: url("assets/hero-team.webp") right center / cover no-repeat;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 24%);
}
.hero-message {
  position: absolute;
  top: 72px;
  right: 28px;
  margin: 0;
  padding: 9px 14px 10px;
  color: #30202f;
  background: rgba(255, 255, 255, .82);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(33, 65, 68, .12);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .06em;
  text-shadow: 0 1px 0 #fff;
  transform: rotate(-4deg);
}
.hero-future {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 199px;
  margin: 0;
  padding: 22px 18px 7px 50px;
  color: #3a2a3b;
  background: rgba(255, 255, 244, .87);
  clip-path: polygon(18% 10%, 100% 0, 100% 100%, 0 100%);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.hero-future small { display: block; color: #819765; font-family: Georgia, serif; font-size: 10px; font-style: italic; }
.hero-future b { color: var(--coral); }

/* Services — reference: y 382–789 */
.services { height: 407px; padding: 17px 0 12px; overflow: hidden; }
.service-layout {
  width: min(895px, calc(100% - 46px));
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.section-intro { padding-top: 4px; }
.service-emblem { width: 117px; height: 28px; margin-bottom: 5px; object-fit: contain; object-position: left center; }
.section-intro h2 { margin-bottom: 10px; font-size: 31.5px; line-height: 1.25; white-space: nowrap; }
.section-intro > p:last-child { margin: 0; color: #417fb7; font-size: 13px; font-weight: 700; line-height: 1.7; line-break: strict; }
.eyebrow { margin: 0; font-family: Arial, sans-serif; font-size: 13px; font-weight: 800; line-height: 1.3; }
.coral { color: var(--coral); }
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.service-card {
  height: 378px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(#fff, #edf9ff);
  box-shadow: 0 1px 0 rgba(8, 68, 113, .05);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card > a { display: block; height: 100%; }
.service-image { position: relative; height: 252px; overflow: hidden; background: #f5fbff; }
.service-photo { width: 100%; height: 252px; object-fit: cover; object-position: center; image-rendering: auto; }
.tank-photo { object-position: right center; }
.service-icon { position: absolute; top: 10px; left: 10px; width: 58px; height: 58px; object-fit: contain; }
.card-arrow { position: absolute; right: 7px; bottom: -1px; width: 42px; height: 42px; object-fit: contain; }
.card-copy { height: 126px; padding: 8px 10px 9px; }
.card-copy h3 { margin: 0 0 3px; color: #0754a0; font-size: 16px; line-height: 1.25; word-break: keep-all; text-wrap: balance; }
.card-copy p { margin: 0; color: #417bb1; font-size: 12px; font-weight: 600; line-height: 1.6; line-break: strict; }

/* Works — reference: y 789–1028 */
.works { height: 239px; padding: 14px 0 10px; overflow: hidden; background: linear-gradient(#fff, #fbfdff); }
.section-heading-row { height: 38px; display: flex; align-items: baseline; justify-content: space-between; }
.section-heading-row > div { display: flex; align-items: baseline; gap: 14px; }
.section-heading-row h2 { margin: 0; color: var(--ink); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 21px; font-weight: 500; }
.text-link { padding-bottom: 2px; border-bottom: 1px solid #8db2d1; font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-link span { margin-left: 10px; color: var(--coral); font-size: 18px; }
.work-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.work-card { height: 177px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.work-card img { width: 100%; height: 122px; object-fit: cover; }
.work-card > div { position: relative; height: 55px; padding: 6px 10px; }
.work-card h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.work-card p { margin: 0 24px 0 0; color: #5483b4; font-size: 11px; font-weight: 600; line-height: 1.45; }
.work-card span { position: absolute; top: 15px; right: 9px; color: var(--coral); font-size: 19px; }

/* Company / Consulting — reference: y 1028–1299 */
.feature-split {
  width: min(941px, 100%);
  height: 271px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-panel { min-width: 0; height: 270px; display: grid; grid-template-columns: 53% 47%; overflow: hidden; }
.feature-panel.consulting { grid-template-columns: 46% 54%; border-left: 1px solid var(--line); }
.feature-copy { z-index: 2; align-self: center; padding: 18px 12px 15px 31px; }
.consulting .feature-copy { padding-right: 0; padding-left: 24px; }
.feature-copy .eyebrow { margin-bottom: 6px; }
.feature-copy h2 { margin-bottom: 7px; font-size: 23px; line-height: 1.55; white-space: nowrap; }
.consulting .feature-copy h2 { font-size: 22px; letter-spacing: 0; }
.feature-copy > p:not(.eyebrow) { margin: 0 0 8px; color: #3f7eb5; font-size: 12px; font-weight: 600; line-height: 1.55; }
.feature-panel > img { width: 100%; height: 270px; object-fit: cover; }
.outline-button { min-width: 198px; height: 35px; gap: 22px; border: 1.5px solid var(--coral); background: rgba(255, 255, 255, .83); font-size: 14px; line-height: 1; }

/* Audience links — reference: y 1299–1485 */
.support { position: relative; height: 186px; padding: 9px 0 14px; overflow: hidden; background: linear-gradient(90deg, #fbfff8, #fff 48%, #fffaf7); }
.support::before,
.support::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 150px;
  background: url("assets/leaf-decoration.png") center / contain no-repeat;
  opacity: .7;
}
.support::before { top: -45px; left: -48px; transform: rotate(13deg); }
.support::after { right: -52px; bottom: -44px; transform: rotate(193deg); }
.support .content-grid { position: relative; z-index: 1; }
.support h2 { height: 85px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; font-size: 27px; line-height: 1.45; text-align: center; }
.support-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.support-card { min-width: 0; height: 80px; display: grid; grid-template-columns: 58px 1fr 18px; align-items: center; gap: 6px; padding: 8px 9px; border-radius: 8px; font-size: 12px; }
.support-card > span:last-child { font-size: 18px; }
.support-icon { width: 54px; height: 54px; object-fit: contain; }
.support-card.blue { color: #1595e7; background: #eff9ff; }
.support-card.orange { color: #ff712b; background: #fff8ef; }
.support-card.green { color: #16baa8; background: #effefb; }
.support-card.red { color: #ef4c61; background: #fff1f4; }

/* Footer — reference: y 1485–1672 */
.site-footer { height: 187px; padding: 16px 0 8px; overflow: hidden; color: #2161a4; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 390px 1fr; gap: 30px; }
.footer-company > img { width: 232px; height: 45px; margin-bottom: 1px; object-fit: contain; object-position: left center; image-rendering: auto; }
.footer-company h2 { margin: 0 0 1px; color: #0752a0; font-size: 12px; line-height: 1.3; }
.footer-company address { font-size: 11px; font-style: normal; font-weight: 600; line-height: 1.35; }
.footer-company p { margin: 1px 0; line-break: strict; }
.footer-company .company-name { font-weight: 800; }
.footer-company p span { display: inline-block; min-width: 21px; color: #0752a0; }
.footer-links { min-width: 0; padding-left: 20px; border-left: 1px solid #5e8dc1; }
.footer-links nav { display: flex; justify-content: space-between; padding-top: 4px; font-size: 11px; font-weight: 700; }
.footer-links nav a { padding: 0 8px; border-right: 1px solid #7ba1c7; white-space: nowrap; }
.footer-links nav a:last-child { border-right: 0; }
.access { margin: 11px 0 4px; }
.access h2 { margin: 0; font-size: 12px; }
.access p { margin: 0; font-size: 10px; font-weight: 600; line-height: 1.5; line-break: strict; }
.legal { display: flex; justify-content: flex-end; gap: 20px; font-size: 10px; font-weight: 700; }
.footer-links small { display: block; margin-top: 1px; font-size: 10px; text-align: right; }

@media (min-width: 861px) {
  .home-page main { height: 1430px; }
}

@media (max-width: 940px) and (min-width: 861px) {
  .header-inner { width: calc(100% - 36px); gap: 10px; }
  .brand { flex-basis: 190px; }
  .brand img { width: 190px; }
  .global-nav { gap: 14px; font-size: 11px; }
  .contact-button { min-width: 160px; padding-inline: 13px; font-size: 14px; }
}

@media (max-width: 860px) {
  .content-grid { width: calc(100% - 32px); }
  .site-header { height: 66px; }
  .header-inner { width: calc(100% - 28px); height: 66px; }
  .brand { flex-basis: 220px; }
  .brand img { width: 220px; height: 50px; }
  .menu-button { display: block; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 0; background: transparent; }
  .menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--blue); }
  .contact-button { display: none; }
  .global-nav { position: absolute; top: 66px; right: 0; left: 0; display: none; padding: 8px 20px 18px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 12px 20px rgba(15, 54, 87, .1); }
  .global-nav.open { display: flex; }
  .global-nav a { padding: 10px 4px; font-size: 14px; }
  .global-nav a::after { display: none; }
  .hero { height: auto; }
  .hero-inner { width: 100%; height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 38px 24px 30px; text-align: center; }
  .hero-copy h1 { font-size: clamp(40px, 9vw, 60px); }
  .hero-copy p { font-size: 16px; }
  .hero-visual { height: 360px; }
  .services { height: auto; padding: 28px 0; }
  .service-layout { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 18px; }
  .section-intro { text-align: center; }
  .service-emblem { margin-inline: auto; }
  .section-intro > p:last-child br { display: none; }
  .service-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-card { height: auto; min-height: 378px; }
  .works { height: auto; padding: 24px 0; }
  .section-heading-row { height: auto; margin-bottom: 12px; align-items: flex-start; gap: 12px; }
  .section-heading-row > div { display: block; }
  .section-heading-row h2 { display: block; font-size: 22px; }
  .work-cards { grid-template-columns: repeat(2, 1fr); }
  .work-card { height: auto; min-height: 177px; }
  .feature-split { width: 100%; height: auto; grid-template-columns: 1fr; }
  .feature-panel { height: 320px; }
  .feature-panel.consulting { border-top: 1px solid var(--line); border-left: 0; }
  .feature-panel > img { height: 320px; }
  .feature-copy h2 { font-size: 30px; white-space: normal; }
  .support { height: auto; padding: 20px 0 24px; }
  .support h2 { height: auto; margin-bottom: 16px; font-size: 25px; }
  .support-links { grid-template-columns: repeat(2, 1fr); }
  .site-footer { height: auto; padding: 22px 0 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { padding: 18px 0 0; border-top: 1px solid #5e8dc1; border-left: 0; }
  .footer-links nav { flex-wrap: wrap; justify-content: flex-start; row-gap: 8px; }
  .legal { justify-content: flex-start; }
  .footer-links small { text-align: left; }
}

@media (max-width: 560px) {
  .hero-copy { padding-inline: 18px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-visual { height: 295px; background-position: 45% center; }
  .hero-message { top: 22px; right: 4%; max-width: 250px; padding: 7px 10px; font-size: 14px; }
  .hero-future { display: none; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { height: 235px; min-height: 0; }
  .service-card > a { height: 235px; display: grid; grid-template-columns: 47% 53%; }
  .service-image { height: 235px; }
  .service-photo { height: 235px; }
  .card-copy { height: auto; align-self: center; padding: 16px; }
  .card-copy h3 { font-size: 17px; }
  .card-copy p { font-size: 13px; }
  .work-cards { grid-template-columns: repeat(2, 1fr); }
  .work-card img { height: 110px; }
  .work-card p { display: none; }
  .feature-panel { height: 315px; grid-template-columns: 58% 42%; }
  .feature-panel.consulting { grid-template-columns: 58% 42%; }
  .feature-panel > img { height: 315px; }
  .feature-copy { padding-left: 18px; }
  .consulting .feature-copy { padding-left: 18px; }
  .feature-copy h2 { font-size: 22px; }
  .feature-copy > p:not(.eyebrow) { font-size: 11px; }
  .outline-button { min-width: 0; width: 100%; gap: 7px; font-size: 12px; }
  .support h2 br { display: none; }
  .support-links { grid-template-columns: 1fr; }
  .footer-company > img { width: 245px; }
  .legal { flex-direction: column; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
