:root {
  color-scheme: light;
  --ink: #202226;
  --muted: #62676f;
  --line: #dde2e1;
  --paper: #faf8f3;
  --white: #ffffff;
  --orange: #d34a17;
  --mint: #a8d8c4;
  --coral: #d34a17;
  --mustard: #d88a2b;
  --blue: #d34a17;
  --shadow: 0 24px 70px rgba(32, 34, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(250, 248, 243, 0.82), rgba(250, 248, 243, 0.92)),
    url("./assets/toiro-pattern.png");
  background-attachment: fixed;
  background-position: center top;
  background-size: 720px auto;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 40px rgba(32, 34, 38, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: auto;
  height: 38px;
  object-fit: contain;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

main {
  width: 100%;
  margin: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 132px max(24px, calc((100vw - 1120px) / 2)) 72px;
  background-image:
    linear-gradient(90deg, rgba(250, 248, 243, 0.98) 0%, rgba(250, 248, 243, 0.9) 42%, rgba(250, 248, 243, 0.28) 100%),
    url("./assets/toiro-hero.png");
  background-position: center right;
  background-size: cover;
  box-shadow: 0 24px 70px rgba(32, 34, 38, 0.1);
}

.hero-inner {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(32, 34, 38, 0.14);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: start;
  gap: 54px;
  border-top: 1px solid rgba(32, 34, 38, 0.12);
  border-bottom: 1px solid rgba(32, 34, 38, 0.12);
}

.intro h2 {
  max-width: 520px;
  font-size: clamp(28px, 3.35vw, 40px);
  line-height: 1.32;
}

.intro > p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 0;
  padding-top: 54px;
}

.section-heading {
  max-width: 760px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  min-height: 450px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(32, 34, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 46px rgba(32, 34, 38, 0.08);
}

.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f3f0ea;
  overflow: hidden;
}

.work-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.work-body p {
  color: var(--muted);
}

.card-actions {
  margin-top: auto;
}

.card-actions .button {
  width: 100%;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-list article {
  padding: 28px;
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 46px rgba(32, 34, 38, 0.08);
}

.service-list article:nth-child(1) {
  --accent: var(--coral);
}

.service-list article:nth-child(2) {
  --accent: var(--mint);
}

.service-list article:nth-child(3) {
  --accent: var(--mustard);
}

.service-icon {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 26px;
  font-weight: 800;
}

.service-list p {
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1120px, calc(100% - 32px));
  margin: 60px auto 80px;
  padding: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

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

.contact h2 {
  margin-bottom: 10px;
}

.contact .button {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero {
    min-height: 100svh;
    padding: 132px 22px 44px;
    background-image:
      linear-gradient(180deg, rgba(250, 248, 243, 0.98) 0%, rgba(250, 248, 243, 0.92) 52%, rgba(250, 248, 243, 0.42) 100%),
      url("./assets/toiro-hero.png");
    background-position: 62% center;
  }

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

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

@media (max-width: 520px) {
  .section,
  .site-header,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    gap: 10px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(32px, 8.7vw, 40px);
  }

  .intro > p {
    padding-top: 0;
  }

  .section {
    padding: 62px 0;
  }

  .contact {
    padding: 18px;
  }
}
