:root {
  --ink: #0b0d10;
  --ink-soft: #1d2026;
  --paper: #ffffff;
  --paper-soft: #f5f5f7;
  --muted: #6e737c;
  --line: rgba(11, 13, 16, 0.12);
  --accent: #0071e3;
  --accent-2: #30d158;
  --warm: #ff9f0a;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 clamp(18px, 4vw, 44px);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(160%);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: rgba(15, 18, 24, 0.9);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
}

.brand-name,
.brand-sub {
  display: block;
  line-height: 1.18;
}

.brand-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.brand-sub {
  font-size: 0.66rem;
  opacity: 0.7;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 6px 13px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 6px auto;
  background: currentColor;
}

.panel-dark {
  color: #fff;
  background: #050607;
}

.panel-light {
  background: var(--paper-soft);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 94px 18px 64px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20sada%20chinkabashi.jpg?width=1800")
      center / cover;
  transform: scale(1.04);
  filter: saturate(0.84) contrast(1.08);
}

.hero-shade {
  background:
    radial-gradient(circle at 74% 44%, rgba(0, 113, 227, 0.26), transparent 26%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.2), #050607 92%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.62), rgba(5, 6, 7, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 36px));
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
}

.eyebrow.dark {
  color: var(--accent);
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3.6rem, 9.5vw, 8.8rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero-lead {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.75;
  line-break: anywhere;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.3;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

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

.button-light {
  color: #111;
  background: #fff;
}

.button-dark {
  color: #fff;
  background: #111;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.text-link.light {
  color: #fff;
}

.text-link::after {
  content: ">";
  margin-left: 7px;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 10px);
  }
}

.intro {
  padding: clamp(90px, 13vw, 180px) 18px;
  background: #fff;
}

.intro-inner,
.section-head,
.craft-inner,
.contact-inner,
.journal-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.intro h2,
.section-head h2,
.craft h2,
.contact h2,
.journal h2 {
  font-size: clamp(2.15rem, 5vw, 5.7rem);
  line-height: 1.08;
  font-weight: 800;
}

.showcase {
  padding: clamp(24px, 4vw, 48px);
}

.feature {
  width: min(1320px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.feature-large {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  min-height: 720px;
  padding: clamp(34px, 7vw, 84px);
  background: #fff;
}

.feature-copy h2 {
  max-width: 620px;
  font-size: clamp(2.1rem, 4.2vw, 4.6rem);
  line-height: 1.08;
  font-weight: 800;
}

.feature-copy p:last-child {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
}

.device-mock {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(233, 237, 243, 0.9)),
    #f2f4f7;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  gap: 8px;
  height: 36px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9ced6;
}

.browser-bar span:nth-child(1) {
  background: #ff5f57;
}

.browser-bar span:nth-child(2) {
  background: #ffbd2e;
}

.browser-bar span:nth-child(3) {
  background: #28c840;
}

.mock-hero {
  height: 238px;
  margin: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.62), rgba(48, 209, 88, 0.3)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20River%20%285279082249%29.jpg?width=1200")
      center / cover;
}

.mock-lines {
  display: grid;
  gap: 14px;
  margin: 0 28px;
}

.mock-lines span {
  height: 18px;
  border-radius: 999px;
  background: #dfe4ea;
}

.mock-lines span:nth-child(1) {
  width: 68%;
  height: 28px;
  background: #1f2329;
}

.mock-lines span:nth-child(2) {
  width: 86%;
}

.mock-lines span:nth-child(3) {
  width: 54%;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  width: min(1320px, 100%);
  margin: clamp(18px, 3vw, 28px) auto 0;
}

.story-tile {
  min-height: 560px;
  border-radius: 8px;
  padding: clamp(30px, 5vw, 62px);
  overflow: hidden;
}

.story-tile h3 {
  max-width: 560px;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
}

.story-tile p:last-child {
  max-width: 500px;
  margin-top: 20px;
  font-size: 1.04rem;
}

.tile-dark {
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(0, 113, 227, 0.46), transparent 34%),
    linear-gradient(145deg, #111318, #020304);
}

.tile-dark p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.tile-image {
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20River%20incised%20meander%20Aerial%20Photograph.jpg?width=1300")
      center / cover;
}

.tile-image p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.service,
.works,
.flow,
.area-profile {
  padding: clamp(90px, 12vw, 170px) 18px;
  background: #fff;
}

.section-head {
  margin-bottom: clamp(34px, 7vw, 76px);
}

.section-head > p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-item {
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
}

.service-item span {
  display: block;
  margin-bottom: 92px;
  color: var(--accent);
  font-weight: 800;
}

.service-item h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
}

.service-item p {
  margin-top: 18px;
  color: var(--muted);
}

.craft {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: end;
  padding: 120px 18px;
  overflow: hidden;
}

.craft-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), #050607),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20River%20%285279082249%29.jpg?width=2200")
      center / cover;
  opacity: 0.62;
}

.craft-inner {
  position: relative;
  z-index: 1;
}

.craft-inner p:last-child,
.contact-inner p,
.journal-inner p {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
}

.works {
  background: var(--paper-soft);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
}

.work-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.08);
}

.work-visual {
  min-height: 320px;
  background-position: center;
  background-size: cover;
}

.visual-site {
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.28), rgba(0, 0, 0, 0.08)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20sada%20chinkabashi.jpg?width=1000");
}

.visual-renewal {
  background:
    linear-gradient(135deg, rgba(48, 209, 88, 0.2), rgba(0, 0, 0, 0.18)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20River%20%285279082249%29.jpg?width=1000");
}

.visual-tool {
  background:
    linear-gradient(135deg, rgba(255, 159, 10, 0.26), rgba(0, 0, 0, 0.16)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20River%20incised%20meander%20Aerial%20Photograph.jpg?width=1000");
}

.work-copy {
  padding: 28px;
}

.work-copy p {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}

.work-copy h3 {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.2;
}

.work-copy span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.area-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(18px, 3vw, 28px);
  background: #fff;
}

.area-card,
.profile-card {
  min-height: 560px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 8px;
}

.area-card {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.78)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20sada%20chinkabashi.jpg?width=1400")
      center / cover;
}

.profile-card {
  background: var(--paper-soft);
}

.area-card h2,
.profile-card h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.08;
  font-weight: 800;
}

.area-card p,
.profile-card p {
  max-width: 720px;
  margin-top: 22px;
  font-size: 1.04rem;
}

.area-card p {
  color: rgba(255, 255, 255, 0.78);
}

.profile-card p {
  color: var(--muted);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.area-list li {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 0.88rem;
}

.journal {
  padding: clamp(90px, 12vw, 160px) 18px;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.82) 52%, rgba(255, 255, 255, 0.18)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20sada%20chinkabashi.jpg?width=1900")
      center / cover;
}

.journal-inner p {
  color: #4d535d;
}

.journal .button {
  margin-top: 30px;
}

.flow {
  background: #fff;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  width: min(1320px, calc(100% - 36px));
  padding: 0;
  margin: 0 auto;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.flow-list li {
  min-height: 250px;
  padding: 28px;
  background: #fff;
}

.flow-list span {
  display: block;
  margin-bottom: 72px;
  color: var(--accent);
  font-weight: 800;
}

.flow-list strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.25;
}

.flow-list p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  padding: clamp(110px, 15vw, 210px) 18px;
  background:
    radial-gradient(circle at 74% 24%, rgba(0, 113, 227, 0.28), transparent 32%),
    linear-gradient(145deg, #0d1118, #020304);
}

.contact-inner p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.68);
  background: #050607;
  font-size: 0.9rem;
}

.photo-credit {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
  line-height: 1.6;
}

.photo-credit a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

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

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

  .scroll-cue span {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .feature-large,
  .tile-grid,
  .works-grid,
  .area-profile {
    grid-template-columns: 1fr;
  }

  .service-strip,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-tile {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 52px;
  }

  .brand-sub {
    display: none;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 8px;
    right: 14px;
  }

  .site-nav {
    position: absolute;
    top: 52px;
    left: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    align-items: end;
    min-height: 92vh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 6, 7, 0.08), #050607 82%),
      linear-gradient(90deg, rgba(5, 6, 7, 0.74), rgba(5, 6, 7, 0.2));
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13.5vw, 4rem);
    line-height: 1.04;
  }

  .hero-lead {
    font-size: 1rem;
    max-width: 96%;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .button {
    width: 100%;
  }

  .text-link {
    text-align: center;
  }

  .intro h2,
  .section-head h2,
  .craft h2,
  .contact h2,
  .journal h2,
  .feature-copy h2,
  .story-tile h3 {
    font-size: clamp(2.2rem, 10vw, 3.45rem);
    line-height: 1.12;
  }

  .feature-large {
    min-height: 0;
    padding: 36px 20px;
  }

  .device-mock {
    min-height: 350px;
  }

  .mock-hero {
    height: 170px;
    margin: 18px;
  }

  .mock-lines {
    margin: 0 18px;
  }

  .service-strip,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .service-item,
  .flow-list li {
    min-height: 0;
  }

  .area-card,
  .profile-card {
    min-height: 0;
  }

  .service-item span,
  .flow-list span {
    margin-bottom: 34px;
  }

  .craft {
    min-height: 680px;
    padding: 88px 18px;
  }

  .journal {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74)),
      url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Shimanto%20sada%20chinkabashi.jpg?width=1400")
        center / cover;
  }

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