:root {
  --green-950: #073d29;
  --green-800: #0d563a;
  --green-700: #176b45;
  --green-600: #1c7d51;
  --green-100: #e7f4ed;
  --green-50: #f2f8f5;
  --ink: #10231a;
  --muted: #52645b;
  --line: #d9e3de;
  --paper: #ffffff;
  --off-white: #f8faf9;
  --shadow: 0 24px 60px rgba(16, 35, 26, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  color: #fff;
  background: var(--green-700);
}

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

.section {
  padding: 112px 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--green-950);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 227, 222, 0.8);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--green-700);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.89rem;
  font-weight: 700;
}

.global-nav a {
  position: relative;
}

.global-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--green-700);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 18px;
  color: #fff;
  background: var(--green-700);
  border-radius: 999px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 84px;
  background:
    radial-gradient(circle at 88% 15%, rgba(23, 107, 69, 0.12), transparent 31%),
    linear-gradient(180deg, #fbfdfc 0%, #fff 100%);
}

.hero::before {
  position: absolute;
  top: 8%;
  left: -7%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(23, 107, 69, 0.14);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-700);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.32;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.35rem, 4.4vw, 3.9rem);
}

.hero h1 .accent {
  color: var(--green-700);
}

.keep-word {
  white-space: nowrap;
}

.hero-lead {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--green-700);
  box-shadow: 0 12px 24px rgba(23, 107, 69, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-800);
  box-shadow: 0 16px 28px rgba(23, 107, 69, 0.28);
}

.button-secondary {
  color: var(--green-800);
  background: #fff;
  border-color: var(--line);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
}

.hero-points li::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--green-700);
  border-radius: 50%;
  content: "";
  vertical-align: 1px;
}

.hero-visual {
  position: relative;
}

.portrait-card {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 28px;
}

.portrait-card img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  border: 10px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.portrait-halo {
  position: absolute;
  z-index: 1;
  inset: 8% 0 0 8%;
  border: 2px solid rgba(23, 107, 69, 0.2);
  border-radius: 50%;
}

.floating-note {
  position: absolute;
  z-index: 3;
  min-width: 180px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 227, 222, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(16, 35, 26, 0.12);
  backdrop-filter: blur(10px);
}

.floating-note strong,
.floating-note span {
  display: block;
}

.floating-note strong {
  color: var(--green-800);
  font-size: 0.94rem;
}

.floating-note span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.note-one {
  top: 16%;
  left: -7%;
}

.note-two {
  right: -4%;
  bottom: 12%;
}

.proof-strip {
  position: relative;
  z-index: 5;
  background: var(--green-950);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  color: rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}

.proof-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-item strong {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.4;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 96px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
}

.section-heading.centered {
  max-width: 780px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading.centered > p:last-child {
  margin-inline: auto;
}

.profile-body {
  max-width: 760px;
}

.profile-body p {
  margin: 0 0 24px;
  color: var(--muted);
}

.profile-body .large-text {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.8;
}

.qualification-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.qualification-row span,
.work-tags span,
.skill-cloud span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.qualification-row span {
  padding: 7px 14px;
  color: var(--green-800);
  background: var(--green-50);
  font-size: 0.86rem;
}

.section-tinted {
  background: var(--off-white);
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card:hover {
  border-color: rgba(23, 107, 69, 0.36);
  box-shadow: 0 20px 44px rgba(16, 35, 26, 0.08);
  transform: translateY(-5px);
}

.icon-box {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 15px;
}

.icon-box svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.card-number {
  position: absolute;
  top: 25px;
  right: 30px;
  margin: 0;
  color: rgba(23, 107, 69, 0.18);
  font-family: Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.service-card h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.service-card > p:not(.card-number) {
  margin: 0;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  padding: 24px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.service-card li::before {
  margin-right: 8px;
  color: var(--green-700);
  content: "✓";
  font-weight: 900;
}

.work-list {
  display: grid;
  gap: 20px;
  margin-top: 54px;
}

.work-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: 220px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  border-color: rgba(23, 107, 69, 0.34);
  box-shadow: 0 16px 40px rgba(16, 35, 26, 0.07);
}

.work-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--green-800);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.work-card:nth-child(2) .work-label {
  background: #315b4a;
}

.work-card:nth-child(3) .work-label {
  background: #214338;
}

.work-content {
  padding: 38px 44px;
}

.work-content h3 {
  margin: 0 0 12px;
  font-size: 1.42rem;
  line-height: 1.55;
}

.work-content > p {
  margin: 0;
  color: var(--muted);
}

.work-flow,
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.work-flow span {
  position: relative;
  padding: 8px 28px 8px 14px;
  color: var(--green-800);
  background: var(--green-50);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 800;
}

.work-flow span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 10px;
  content: "→";
  transform: translateY(-50%);
}

.work-tags span {
  padding: 6px 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.section-dark {
  color: #fff;
  background: var(--green-950);
}

.section-dark .eyebrow {
  color: #8ed0ad;
}

.section-dark .section-heading > p:last-child,
.timeline li > p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.career-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 96px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 42px;
  padding: 0 0 0 42px;
  margin: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 7px;
  bottom: 10px;
  left: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.24);
  content: "";
}

.timeline li {
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  left: -41px;
  width: 15px;
  height: 15px;
  background: var(--green-950);
  border: 3px solid #8ed0ad;
  border-radius: 50%;
}

.timeline-meta {
  margin: 0 0 5px;
  color: #8ed0ad;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0 0 8px;
  font-size: 1.32rem;
}

.timeline li > p:last-child {
  margin: 0;
}

.skill-cloud {
  display: flex;
  max-width: 980px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 44px auto 0;
}

.skill-cloud span {
  padding: 11px 18px;
  background: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.skill-cloud span:hover {
  color: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-2px);
}

.contact-section {
  padding-top: 32px;
}

.contact-card {
  display: grid;
  overflow: hidden;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding: 64px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 28%),
    var(--green-700);
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(23, 107, 69, 0.2);
}

.contact-card .eyebrow {
  color: #c7ead8;
}

.contact-card h2 {
  max-width: 740px;
}

.contact-card > div > p:last-child {
  max-width: 670px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  display: flex;
  min-width: 240px;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.contact-actions .button-primary {
  color: var(--green-800);
  background: #fff;
  box-shadow: none;
}

.contact-actions .button-primary:hover {
  background: var(--green-50);
}

.contact-fallback {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  text-align: center;
}

.text-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 38px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand {
  color: var(--ink);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(23, 107, 69, 0.4);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .section {
    padding: 88px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    width: min(100%, 600px);
    margin-inline: auto;
  }

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

  .proof-item:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .proof-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .split-layout,
  .career-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    width: min(100%, 320px);
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

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

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .global-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(16, 35, 26, 0.08);
  }

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

  .global-nav a {
    padding: 13px 14px;
  }

  .global-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10.4vw, 3.25rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .portrait-card {
    padding: 18px;
  }

  .portrait-card img {
    border-width: 7px;
  }

  .floating-note {
    min-width: 150px;
    padding: 10px 13px;
  }

  .note-one {
    top: 8%;
    left: -2%;
  }

  .note-two {
    right: -1%;
    bottom: 5%;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-item {
    min-height: 110px;
    padding: 20px 16px;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-label {
    align-items: center;
    min-height: 58px;
    padding: 16px 24px;
    writing-mode: horizontal-tb;
  }

  .work-content {
    padding: 28px 24px 32px;
  }

  .work-flow span {
    padding-right: 14px;
  }

  .work-flow span::after {
    display: none;
  }

  .contact-card {
    gap: 36px;
    padding: 42px 24px;
    border-radius: 26px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 72px 0;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-points {
    display: grid;
    gap: 7px;
  }

  .floating-note {
    display: none;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:last-child,
  .proof-item:nth-child(3),
  .proof-item:nth-child(4) {
    min-height: 92px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .service-card {
    padding: 28px 24px;
  }

  .section-heading.centered {
    text-align: left;
  }

  .skill-cloud {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Profile image: square source cropped into a true circular SNS-style icon. */
.portrait-card {
  aspect-ratio: 1;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.contact-email {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* Requested hero typography and horizontal work labels. */
.hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.hero-desktop-break {
  display: none;
}

.work-label {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero .eyebrow {
    margin-bottom: 16px;
    font-size: clamp(0.48rem, 2.15vw, 0.68rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: clamp(1.48rem, 7.45vw, 2.6rem);
    line-height: 1.38;
    letter-spacing: -0.035em;
  }

  .hero-line {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }

  .hero-desktop-break {
    display: none;
  }

  .work-label {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .hero .eyebrow {
    font-size: 0.47rem;
  }

  .hero h1 {
    font-size: 1.46rem;
  }
}
