:root {
  --ink: #1d2420;
  --paper: #f2f0e9;
  --soft: #e5e1d6;
  --green: #536858;
  --orange: #dd7148;
  --line: rgba(29, 36, 32, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 106px;
  padding: 0 4.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.28);
}
.brand { width: 132px; filter: brightness(0) invert(1); }
.global-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 52px); font-size: 13px; font-weight: 500; }
.global-nav a { transition: opacity .2s; }
.global-nav a:hover { opacity: .62; }
.nav-contact { padding: 12px 18px; border: 1px solid rgba(255,255,255,.5); }
.nav-contact span { margin-left: 20px; }
.menu-button { display: none; }

.hero { position: relative; min-height: 760px; height: 100svh; color: #fff; overflow: hidden; }
.hero-image {
  position: absolute; inset: 0;
  background: url("../img/top/slide2.jpg") center 58% / cover no-repeat;
  animation: hero-in 1.6s cubic-bezier(.22,1,.36,1) both;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,26,22,.62) 0%, rgba(19,26,22,.24) 52%, rgba(19,26,22,.12)); }
.hero-content { position: absolute; z-index: 1; left: 9vw; top: 52%; transform: translateY(-43%); }
.eyebrow, .overline, .section-label, .card-content > p, .scroll, .hero-number {
  font: 500 11px/1.4 "DM Sans", sans-serif;
  letter-spacing: .2em;
}
.hero h1 {
  margin: 24px 0 28px;
  font: 500 clamp(50px, 6.5vw, 100px)/1.24 "Noto Serif JP", serif;
  letter-spacing: .02em;
}
.hero h1 em, .contact-block h2 em { color: #f1c3a3; font-style: normal; }
.heading-line { display: block; white-space: nowrap; }
.hero-lead { margin: 0 0 42px; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .08em; }
.text-link { display: inline-flex; align-items: center; gap: 44px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 500; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.text-link.light:hover span { transform: translateY(4px); }
.scroll { position: absolute; z-index: 1; left: 4.5vw; bottom: 46px; writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; font-size: 9px; }
.scroll span { width: 1px; height: 58px; background: rgba(255,255,255,.7); }
.hero-number { position: absolute; z-index: 1; right: 4.5vw; bottom: 46px; }
.hero-number span { opacity: .5; margin: 0 8px; }

.section { padding: 150px max(6vw, 40px); }
.about { display: grid; grid-template-columns: minmax(150px, 1fr) 4fr; gap: 7vw; }
.section-label { display: flex; gap: 24px; align-items: flex-start; }
.section-label span { color: var(--orange); }
.section-label p { margin: 0; }
.about-main { max-width: 940px; }
.overline { color: var(--orange); margin: 0 0 26px; }
.about h2, .section-heading h2, .philosophy h2, .contact-block h2 {
  margin: 0;
  font: 500 clamp(38px, 4.6vw, 68px)/1.45 "Noto Serif JP", serif;
  letter-spacing: .04em;
}
.about-copy { max-width: 740px; margin: 56px 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; color: #4a514d; }
.about-copy p { margin: 0; }

.business { background: #dedbd1; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1.3fr; gap: 5vw; align-items: end; margin-bottom: 78px; }
.section-heading > p { color: #555b57; margin: 0 0 8px; font-size: 13px; }
.business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.business-card { position: relative; min-height: 450px; overflow: hidden; color: #fff; background: #62655e; }
.business-card.card-large { min-height: 690px; grid-row: span 2; }
.business-card > img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.business-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,24,20,.7), transparent 65%); }
.business-card:hover > img { transform: scale(1.035); }
.card-index { position: absolute; z-index: 2; top: 28px; left: 30px; font: 500 11px "DM Sans", sans-serif; letter-spacing: .15em; }
.card-content { position: absolute; z-index: 2; inset: auto 32px 34px; }
.card-content > p { margin: 0 0 15px; opacity: .8; }
.card-content h3 { margin: 0; font: 500 clamp(24px, 2.2vw, 34px)/1.5 "Noto Serif JP", serif; letter-spacing: .04em; }
.circle-arrow { position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; transition: background .2s, color .2s; }
.business-card:hover .circle-arrow { background: #fff; color: var(--ink); }
.card-dark { background: #33443b; }
.card-dark::after { background: linear-gradient(130deg, rgba(12,23,17,.1), rgba(12,23,17,.65)); }
.tech-pattern { position: absolute; inset: 0; opacity: .8; background: radial-gradient(circle at 75% 25%, #738b78 0 2px, transparent 3px), linear-gradient(115deg, transparent 48%, rgba(255,255,255,.06) 49%, transparent 50%); background-size: 34px 34px, 100% 100%; }
.card-dark > img { object-position: 61% center; }
.card-building { background: #706e64; }
.card-shopify {
  background:
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.18), transparent 35%),
    linear-gradient(135deg, #788b75, #344a3e);
}
.card-credit {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 30%),
    linear-gradient(135deg, #665b53, #2f2926);
}
.app-icon-cloud {
  position: absolute;
  z-index: 1;
  top: 54px;
  right: 8%;
  width: 74%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: rotate(-5deg);
}
.app-icon-cloud img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20%;
  box-shadow: 0 16px 30px rgba(14, 24, 18, .28);
}
.credit-card-stack {
  position: absolute;
  z-index: 1;
  top: 45px;
  left: 10%;
  width: 78%;
  height: 210px;
}
.credit-card-stack img {
  position: absolute;
  width: 54%;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(0,0,0,.34));
}
.credit-card-stack img:nth-child(1) { left: 0; top: 42px; transform: rotate(-8deg); }
.credit-card-stack img:nth-child(2) { left: 24%; top: 10px; z-index: 2; transform: rotate(2deg); }
.credit-card-stack img:nth-child(3) { right: 0; top: 48px; transform: rotate(10deg); }

.news { background: #f8f6f0; }
.news-heading {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 4fr;
  gap: 7vw;
  align-items: end;
  margin-bottom: 58px;
}
.news-heading .section-label { margin: 0; }
.news-heading h2 {
  margin: 0;
  font: 500 clamp(38px, 4.6vw, 68px)/1.3 "Noto Serif JP", serif;
  letter-spacing: .04em;
}
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 110px 110px 1fr 36px;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  transition: padding .25s, background .25s;
}
.news-item:hover { padding-left: 14px; background: rgba(83,104,88,.05); }
.news-item time { font: 500 12px "DM Sans", sans-serif; letter-spacing: .08em; color: #686e6a; }
.news-category { padding: 5px 8px; border: 1px solid var(--line); text-align: center; font-size: 11px; }
.news-item p { margin: 0; font-size: 14px; }
.news-arrow { text-align: right; transition: transform .2s; }
.news-item:hover .news-arrow { transform: translateX(5px); }
.news-more { margin-top: 42px; text-align: right; }

.philosophy { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 720px; }
.philosophy-image { background: url("../img/top/slide4.jpg") 55% center / cover no-repeat; }
.philosophy-panel { padding: clamp(60px, 8vw, 130px); display: flex; flex-direction: column; justify-content: center; background: #f8f6f0; }
.philosophy-panel > p:not(.overline) { max-width: 510px; margin: 42px 0; color: #555b57; }

.contact-block { padding: 150px 9vw; text-align: center; color: #fff; background: var(--ink); }
.contact-block h2 { margin-bottom: 55px; }
.contact-button { display: inline-flex; min-width: 260px; padding: 20px 24px; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.55); font-size: 14px; transition: background .2s, color .2s; }
.contact-button:hover { background: #fff; color: var(--ink); }

footer { padding: 72px 6vw 34px; background: #e5e1d6; }
.footer-brand { display: block; width: 150px; margin-bottom: 56px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 42px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.footer-meta { display: flex; justify-content: space-between; align-items: end; padding-top: 34px; color: #686e6a; }
.footer-meta p { margin: 0; font-family: "Noto Serif JP", serif; }

.news-page-hero {
  min-height: 520px;
  padding: 210px 9vw 100px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(29,36,32,.92), rgba(46,62,52,.68)),
    url("../img/top/slide4.jpg") center 60% / cover no-repeat;
}
.news-page-hero h1 {
  margin: 0 0 22px;
  font: 500 clamp(48px, 6vw, 84px)/1.3 "Noto Serif JP", serif;
  letter-spacing: .06em;
}
.news-page-hero > p:last-child { margin: 0; font-size: 14px; letter-spacing: .06em; }
.news-archive { padding-top: 110px; padding-bottom: 130px; }
.news-article {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 4fr;
  gap: 7vw;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 30px;
}
.news-article:last-child { border-bottom: 1px solid var(--line); }
.news-article-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.news-article-meta time { font: 500 12px "DM Sans", sans-serif; letter-spacing: .08em; color: #686e6a; }
.news-article h2 {
  margin: 0 0 24px;
  font: 500 clamp(24px, 2.2vw, 34px)/1.55 "Noto Serif JP", serif;
  letter-spacing: .04em;
}
.news-article p { max-width: 760px; margin: 0 0 30px; color: #555b57; }

@keyframes hero-in { from { transform: scale(1.08); opacity: .7; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 800px) {
  .site-header { position: absolute; height: 78px; padding: 0 22px; }
  .brand { width: 110px; }
  .menu-button { display: block; position: relative; z-index: 12; width: 42px; height: 42px; border: 0; background: transparent; color: #fff; }
  .menu-button span:not(.sr-only) { position: absolute; left: 8px; width: 26px; height: 1px; background: currentColor; transition: transform .3s, top .3s; }
  .menu-button span:first-child { top: 16px; }
  .menu-button span:nth-child(2) { top: 25px; }
  .menu-button[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .global-nav { position: fixed; inset: 0; z-index: 11; padding: 120px 35px 50px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); font: 500 22px/1.4 "Noto Serif JP", serif; }
  .global-nav.open { transform: translateX(0); }
  .global-nav a { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .nav-contact { margin-top: 20px; padding: 18px; font-family: "Noto Sans JP", sans-serif; font-size: 14px; }
  body.menu-open { overflow: hidden; }
  .hero { min-height: 690px; height: 100svh; }
  .hero-image { background-image: url("../img/top/slide2.jpg"); background-position: 62% center; }
  .hero-content { left: 25px; right: 25px; top: 49%; transform: translateY(-40%); }
  .hero h1 { margin: 18px 0 24px; font-size: 9.3vw; line-height: 1.42; }
  .hero-lead { font-size: 13px; line-height: 2; }
  .scroll { display: none; }
  .hero-number { right: 24px; bottom: 24px; }
  .section { padding: 90px 24px; }
  .about { display: block; }
  .section-label { margin-bottom: 44px; }
  .about h2, .section-heading h2, .philosophy h2, .contact-block h2 { font-size: 7vw; }
  .contact-block h2 { font-size: 6.3vw; }
  .about-copy { margin-top: 40px; display: block; }
  .about-copy p + p { margin-top: 22px; }
  .section-heading { display: block; margin-bottom: 46px; }
  .section-heading > p { margin-top: 30px; }
  .business-grid { display: block; }
  .business-card, .business-card.card-large { display: block; min-height: 480px; margin-top: 14px; }
  .card-content { inset: auto 22px 26px; }
  .card-content h3 { font-size: 5vw; letter-spacing: 0; white-space: nowrap; }
  .circle-arrow { width: 44px; height: 44px; }
  .philosophy { display: block; min-height: 0; }
  .philosophy-image { height: 430px; }
  .philosophy-panel { padding: 75px 25px 85px; }
  .contact-block { padding: 90px 24px; }
  .contact-block h2 { margin-bottom: 44px; }
  .contact-button { width: 100%; min-width: 0; }
  .news-heading { display: block; margin-bottom: 38px; }
  .news-heading h2 { font-size: 9vw; }
  .news-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    min-height: 0;
    padding: 22px 34px 22px 0;
  }
  .news-item:hover { padding-left: 0; }
  .news-category { justify-self: start; padding: 3px 7px; }
  .news-item p { grid-column: 1 / -1; font-size: 13px; line-height: 1.7; }
  .news-arrow { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
  .news-item:hover .news-arrow { transform: translate(4px, -50%); }
  .news-more { text-align: left; }
  footer { padding: 58px 24px 28px; }
  .news-page-hero { min-height: 420px; padding: 155px 24px 70px; }
  .news-page-hero h1 { font-size: 11vw; }
  .news-page-hero > p:last-child { font-size: 13px; }
  .news-archive { padding-top: 55px; padding-bottom: 80px; }
  .news-article { display: block; padding: 42px 0; scroll-margin-top: 10px; }
  .news-article-meta { flex-direction: row; align-items: center; margin-bottom: 20px; }
  .news-article h2 { font-size: 22px; line-height: 1.65; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .footer-links a { padding: 12px 0; }
  .footer-meta { display: block; }
  .footer-meta small { display: block; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
