:root {
  --ink: #17201c;
  --ink-soft: #2e3a35;
  --muted: #6c746f;
  --line: #ddd6ca;
  --paper: #f6f1e8;
  --panel: #fffaf0;
  --accent: #0f4d3f;
  --accent-strong: #092f28;
  --gold: #b88a44;
  --sage: #dbe5d7;
  --line-green: #06c755;
  --wechat-green: #07c160;
  --shadow: 0 26px 70px rgba(23, 32, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 77, 63, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 77, 63, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 80px 80px, 80px 80px, auto;
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.86);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0.9rem auto 0;
  padding: 0.45rem;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(221, 214, 202, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 28, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.45rem;
  padding: 0 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  width: 0.56rem;
  height: 0.56rem;
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 0.28rem rgba(34, 197, 94, 0.18), 0 0 18px rgba(34, 197, 94, 0.42);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.5rem 0.82rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.82rem;
  right: 0.82rem;
  bottom: 0.42rem;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-panel,
.message-inner {
  animation: rise-in 600ms ease both;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  min-height: calc(100vh - 6.5rem);
  margin-top: 1rem;
  padding: clamp(2rem, 7vw, 6.8rem);
  align-items: end;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(15, 77, 63, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.88));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 77, 63, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 77, 63, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.hero::after {
  content: "SHIRAKAWA";
  position: absolute;
  right: -0.16em;
  bottom: -0.22em;
  color: rgba(15, 77, 63, 0.05);
  font-size: clamp(5.5rem, 17vw, 15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.hero-copy,
.hero-metrics,
.hero-profile,
.hero-body {
  position: relative;
}

.hero-metrics {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  top: clamp(1.25rem, 4vw, 3rem);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(42rem, calc(100% - 2.5rem));
}

.hero-metrics div {
  position: relative;
  display: grid;
  gap: 0.15rem;
  min-height: 3.5rem;
  padding: 0.25rem clamp(0.85rem, 2vw, 1.25rem);
}

.hero-metrics div:first-child {
  padding-left: 0;
}

.hero-metrics div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: rgba(15, 77, 63, 0.18);
}

.hero-metrics strong {
  color: var(--accent);
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  margin-right: 0.75rem;
  vertical-align: middle;
  background: currentColor;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 8.2em;
  color: var(--ink);
  font-family: "Noto Sans JP", "Inter", sans-serif;
  font-size: clamp(2.55rem, 6.3vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.42rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero-subtitle + .hero-subtitle {
  margin-top: 0.35rem;
}

.hero-subtitle-zh {
  color: var(--accent);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.7rem;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.38rem 0.78rem;
  color: #fffaf0;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-profile {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.72));
  border: 1px solid rgba(221, 214, 202, 0.82);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.profile-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #102820;
  outline: 1px solid rgba(255, 250, 240, 0.4);
  outline-offset: -0.45rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card figcaption {
  display: grid;
  gap: 0.22rem;
}

.profile-card strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.2;
}

.profile-card span,
.profile-card small {
  color: var(--muted);
  font-weight: 800;
}

.profile-card small {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.hero-body {
  display: grid;
  gap: 1.05rem;
  padding: 1.2rem 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: clamp(0.98rem, 1.3vw, 1.07rem);
}

.hero-body p,
.text-columns p,
.focus-grid p,
.project-feature p,
.contact p {
  margin: 0;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(1.5rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.32);
}

.brand-strip span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-height: 5rem;
  padding: 1rem 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease;
}

.brand-strip span::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  margin-bottom: 0.55rem;
  background: var(--gold);
}

.brand-strip span + span {
  border-left: 1px solid var(--line);
}

.brand-strip span:hover {
  color: #fffaf0;
  background: var(--accent);
}

.brand-strip span:hover em {
  color: rgba(255, 250, 240, 0.72);
}

.brand-strip strong,
.brand-strip em {
  display: block;
  width: 100%;
  font-style: normal;
}

.brand-strip em {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

section {
  margin: clamp(2rem, 5vw, 4.5rem) 0;
}

.concept,
.projects,
.contact {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.25rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  position: sticky;
  top: 5.2rem;
  align-self: start;
}

.section-heading::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  margin-bottom: 1.2rem;
  background: var(--gold);
}

.section-heading h2,
.message h2,
.contact h2 {
  margin: 0;
  max-width: 10em;
  color: var(--ink);
  font-size: clamp(1.9rem, 4.2vw, 3.55rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.section-heading > p[lang="zh-Hant"] {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-weight: 800;
}

.text-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  color: var(--muted);
}

.text-columns p + p {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

[lang="zh-Hant"] {
  line-height: 1.85;
}

.focus {
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.focus-grid article {
  min-height: 19rem;
  padding: 1.45rem;
  background: rgba(255, 250, 240, 0.78);
  animation: rise-in 600ms ease both;
  transition: background 180ms ease, transform 180ms ease;
}

.focus-grid article:hover {
  background: #fffaf0;
  transform: translateY(-2px);
}

.focus-grid article::before {
  content: "";
  display: block;
  width: 3rem;
  height: 0.22rem;
  margin-bottom: 1.45rem;
  background: var(--gold);
}

.focus-grid span {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.focus-grid h3,
.project-feature h3 {
  margin: 0 0 1rem;
  font-size: 1.32rem;
  line-height: 1.3;
}

.focus-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.focus-grid p + p {
  margin-top: 0.85rem;
}

.project-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-feature {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(184, 138, 68, 0.1), transparent 44%),
    #17201c;
  overflow: hidden;
  transition: transform 180ms ease, filter 180ms ease;
}

.project-feature:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.project-feature::after {
  content: attr(data-project);
  position: absolute;
  right: 1.2rem;
  top: -0.45rem;
  color: rgba(255, 250, 240, 0.055);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.project-feature > * {
  position: relative;
  z-index: 1;
}

.project-feature p {
  color: rgba(255, 250, 240, 0.72);
}

.project-feature p + p {
  margin-top: 0.9rem;
}

.project-label {
  color: #d7b778;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-title-en {
  color: #d8e4d2;
  font-weight: 800;
}

.brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.brand-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.62rem;
  color: rgba(255, 250, 240, 0.84);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.4rem;
  padding: 0.72rem 1.18rem;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid #fffaf0;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button-link:hover {
  color: #fffaf0;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.project-text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.1rem;
  color: #d7b778;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.project-text-link:hover {
  color: #fffaf0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.contact-actions .button-link {
  gap: 0.45rem;
  min-width: 8.2rem;
  margin-top: 0;
  color: #fff;
}

.contact-actions .button-link span {
  width: 0.55rem;
  height: 0.55rem;
  background: currentColor;
  border-radius: 999px;
}

.line-link {
  background: var(--line-green);
  border-color: var(--line-green);
}

.line-link:hover {
  background: #05b64d;
  border-color: #05b64d;
}

.wechat-link {
  background: var(--wechat-green);
  border-color: var(--wechat-green);
}

.wechat-link:hover {
  background: #06ad56;
  border-color: #06ad56;
}

.message {
  margin-inline: calc(50% - 50vw);
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 240, 0.055) 1px, transparent 1px),
    #17201c;
  background-size: 80px 80px;
}

.message-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.8rem) 0;
  color: #fffaf0;
}

.message .eyebrow {
  color: #d7b778;
}

.message h2 {
  color: #fffaf0;
}

.message .text-columns {
  margin-top: 2rem;
  color: rgba(255, 250, 240, 0.72);
}

.message .text-columns p + p {
  border-top-color: rgba(255, 250, 240, 0.16);
}

.contact {
  align-items: center;
}

.site-footer {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero,
  .concept,
  .projects,
  .contact,
  .project-feature,
  .focus-grid,
  .brand-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 7.25rem;
    padding-bottom: 4rem;
    align-items: start;
  }

  .hero::after {
    right: -0.28em;
    bottom: -0.12em;
    font-size: clamp(4.8rem, 20vw, 9rem);
  }

  .hero-metrics {
    left: 1.25rem;
    right: 1.25rem;
    top: 1.25rem;
    width: auto;
  }

  .profile-card {
    grid-template-columns: minmax(8rem, 10rem) 1fr;
  }

  .section-heading {
    position: static;
  }

  .focus-grid,
  .project-list {
    gap: 1px;
  }

  .brand-strip span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  main {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    padding: 0.7rem;
  }

  .hero {
    padding: 10.5rem 1.25rem 1.25rem;
  }

  .hero .eyebrow::before {
    width: 1.4rem;
    margin-right: 0.5rem;
  }

  .hero::after {
    opacity: 0.65;
  }

  .concept,
  .projects,
  .contact {
    padding: 1.25rem 0;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.55rem);
  }

  .section-heading h2,
  .message h2,
  .contact h2 {
    font-size: 1.8rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: 2.8rem;
    padding: 0.35rem 0;
  }

  .hero-metrics div + div {
    border-top: 1px solid rgba(15, 77, 63, 0.16);
  }

  .hero-metrics div + div::before {
    display: none;
  }

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

  .contact-actions .button-link {
    flex: 1 1 100%;
  }
}
