:root {
  --ink: #262626;
  --muted: #666;
  --line: #e8e2d8;
  --paper: #fffaf1;
  --white: #fff;
  --accent: #f8b62d;
  --accent-dark: #d88700;
  --green: #2f7d64;
  --shadow: 0 20px 55px rgba(34, 30, 24, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 78px;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(38, 38, 38, .08);
  backdrop-filter: blur(18px);
}
@media (max-width: 800px) {
  .header { background: rgba(255, 255, 255, .92); }
}
.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { width: 178px; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}
.nav a:hover { color: var(--accent-dark); }
.nav .contact-link {
  color: #fff;
  background: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
}
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #171717;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.28) 100%),
    url("../../../images/service/w_kanban2.jpg") center / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.04);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.62));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 116px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 48px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-collage {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}
.hero-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #222;
  box-shadow: 0 24px 58px rgba(0,0,0,.34);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 62%, rgba(0,0,0,.82) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 62%, rgba(0,0,0,.82) 78%, transparent 100%);
}
.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.22));
}
.hero-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23,23,23,.78);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.56));
}
.hero-shot-main {
  top: 34px;
  right: 40px;
  width: min(52%, 330px);
  height: 330px;
  z-index: 3;
}
.hero-shot-wide {
  left: 0;
  top: 4px;
  width: 46%;
  height: 192px;
  z-index: 2;
}
.hero-shot-small {
  left: 64px;
  bottom: 10px;
  width: 34%;
  height: 178px;
  z-index: 4;
}
.hero-shot-tall {
  right: 0;
  bottom: 0;
  width: 38%;
  height: 220px;
  z-index: 1;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
h1, h2, h3 { letter-spacing: 0; }
h1 {
  max-width: 860px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
}
.hero p:not(.kicker) {
  max-width: 720px;
  margin: 0;
  font-size: clamp(17px, 2.1vw, 22px);
}
.category-nav {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: -34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.category-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
  text-align: center;
}
.category-nav a:hover { color: var(--accent-dark); transform: translateY(-2px); }
section { padding: 96px 0; }
.section-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.22;
}
.lead { max-width: 560px; margin: 0; color: var(--muted); font-size: 17px; }
.work-section:nth-of-type(odd) { background: var(--paper); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.work-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  box-shadow: 0 14px 42px rgba(20,20,20,.09);
}
.work-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 618px;
}
.work-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.work-card:hover img { transform: scale(1.045); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72));
}
.work-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
}
.work-caption strong { display: block; font-size: 20px; line-height: 1.35; }
.work-caption span { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.78); }
.case-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.note {
  padding: 22px;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20,20,20,.07);
}
.note strong { display: block; margin-bottom: 6px; }
.note p { margin: 0; color: var(--muted); font-size: 14px; }
.cta {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(248,182,45,.95), rgba(47,125,100,.9)),
    url("../../../images/service/p_kanban.jpg") center / cover no-repeat;
}
.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}
.cta h2 { color: #fff; }
.cta p { max-width: 720px; margin: 16px 0 0; font-size: 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  font-weight: 900;
}
.footer {
  padding: 58px 0 28px;
  background: #171717;
  color: #fff;
}
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer-brand img {
  width: 176px;
  margin-bottom: 18px;
}
.footer-brand p {
  max-width: 430px;
  margin: 0;
  color: rgba(255,255,255,.72);
}
.footer-contact {
  margin-top: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.footer-contact a { color: var(--accent); font-weight: 800; }
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-column h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .08em;
}
.footer-column a,
.footer-column span {
  display: block;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.footer-column a + a,
.footer-column span + span { margin-top: 8px; }
.footer-column a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-top: 22px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { min-height: auto; }
  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 104px 0 78px;
  }
  .hero-copy { max-width: 720px; }
  .hero-collage {
    min-height: 320px;
    width: min(620px, 100%);
  }
  .hero-shot-main { right: 8%; width: 46%; height: 250px; }
  .hero-shot-wide { width: 48%; height: 156px; }
  .hero-shot-small { left: 8%; width: 30%; height: 136px; }
  .hero-shot-tall { width: 34%; height: 172px; }
  .category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .cta-box { display: block; }
  .footer-main,
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .footer-links { display: none; }
  .lead { margin-top: 14px; }
  .work-grid, .case-notes { grid-template-columns: 1fr; }
  .work-card, .work-card.featured { grid-column: auto; grid-row: auto; min-height: 300px; }
  .cta .button { margin-top: 22px; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 68px; }
  .logo img { width: 142px; }
  .hero-inner { padding: 94px 0 64px; gap: 26px; }
  .hero-collage { min-height: 260px; }
  .hero-shot { border-radius: 7px; }
  .hero-shot figcaption { left: 10px; bottom: 10px; font-size: 11px; }
  .hero-shot-main { top: 26px; right: 0; width: 54%; height: 192px; }
  .hero-shot-wide { top: 0; left: 0; width: 52%; height: 122px; }
  .hero-shot-small { left: 7%; bottom: 2px; width: 38%; height: 116px; }
  .hero-shot-tall { right: 2%; bottom: 0; width: 38%; height: 132px; }
  .category-nav { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
  .work-card, .work-card.featured { min-height: 260px; }
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ink, #262626);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 12px 28px rgba(20,20,20,.16);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }
.popko-top {
  position: fixed;
  right: clamp(14px, 2.6vw, 30px);
  bottom: clamp(14px, 2.6vw, 28px);
  z-index: 60;
  width: 92px;
  height: 170px;
  display: grid;
  place-items: end center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.96);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
body.show-popko-top .popko-top {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.popko-top img {
  position: relative;
  z-index: 1;
  width: 64px;
  filter: drop-shadow(0 10px 16px rgba(20,20,20,.22));
  transition: transform .22s ease;
}
.popko-top span {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 2;
  min-width: 54px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent, #f8b62d);
  color: #171717;
  box-shadow: 0 10px 24px rgba(20,20,20,.16);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}
.popko-top:hover img { transform: translateY(-5px); }
.popko-top:focus-visible,
.menu-toggle:focus-visible {
  outline: 4px solid rgba(248,182,45,.45);
  outline-offset: 5px;
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 78px 16px auto 16px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(38,38,38,.08);
    box-shadow: var(--shadow, 0 20px 55px rgba(34,30,24,.14));
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  body.menu-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px 0 28px;
    border-radius: 8px;
    background: #fffaf6;
    overflow: hidden;
  }
  .nav a::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 999px;
    background: var(--accent, #f8b62d);
  }
  .nav .contact-link {
    justify-content: center;
    padding-left: 14px;
    background: var(--accent, #f8b62d);
    color: #171717;
  }
  .nav .contact-link::before { display: none; }
}
@media (max-width: 520px) {
  .nav { inset: 68px 12px auto 12px; }
  .popko-top { width: 76px; height: 142px; }
  .popko-top img { width: 54px; }
  .popko-top span { min-width: 48px; font-size: 12px; padding: 6px 9px; }
}
/* スマホでの横スクロール・左右の揺れを防止 */
html { overflow-x: hidden; }
body { max-width: 100%; overflow-x: clip; }
main, header, footer, section { min-width: 0; }
iframe { max-width: 100%; }
