:root {
  --bg: #fff;
  --text: #252c37;
  --muted: #777;
  --white: #fff;
  --line: #dedede;
  --accent: #e91e63;
  --red: #d84e4e;
  --cyan: #47c3d3;
  --header-height: 72px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.brand img {
  width: 178px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  padding: 24px 0 21px;
  color: #333;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
  margin: 0 auto;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -7px;
}

.nav-toggle-lines::after {
  top: 7px;
}

.hero {
  position: relative;
  height: 70svh;
  min-height: 460px;
  max-height: 590px;
  margin-top: 0;
  background: #111 center / cover no-repeat;
}

.hero-home {
  background-image: url("/assets/hero.webp");
}

.page-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding-top: var(--header-height);
  color: var(--white);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
    url("/assets/studio.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.container,
.wide,
.narrow {
  width: min(100% - 40px, 1140px);
  margin: 0 auto;
}

.narrow {
  width: min(100% - 40px, 840px);
}

.wide {
  width: min(100% - 40px, 1020px);
}

.section-white {
  background: var(--white);
}

.features,
.about-section {
  padding: 78px 0 70px;
}

.section-title {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-title h1,
.section-title h2 {
  margin: 0 0 14px;
  color: #111;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.feature-icon img {
  width: 54px;
  height: 54px;
}

.feature-item h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.content-section {
  padding: 64px 0;
  background: var(--white);
}

.content-section .narrow {
  width: min(100% - 40px, 960px);
}

.content-section p {
  margin: 0 0 18px;
}

hr {
  border: 0;
  border-top: 1px solid #cfcfcf;
  margin: 0 0 34px;
}

.content-heading {
  margin: 0 0 30px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.content-heading.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-heading.with-icon img {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.fee-block {
  margin: 0 0 46px;
}

.fee-block h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.55;
}

.note {
  color: #666;
  font-size: 14px;
}

.center-note {
  margin: 48px 0;
  text-align: center;
}

.center-note h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--white);
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.work-card h3 {
  min-height: 86px;
  margin: 0;
  padding: 14px 16px 18px;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.work-card a:hover h3,
.work-card a:focus-visible h3 {
  color: var(--accent);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}

.outline-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid #777;
  border-radius: 999px;
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.outline-button:hover,
.outline-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.info-detail {
  margin: 18px 0;
  border: 1px solid #cfcfcf;
  background: rgba(255, 255, 255, 0.52);
}

.info-detail summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.info-detail p,
.info-detail pre {
  margin: 0 16px 16px;
}

.info-detail pre {
  overflow: auto;
  padding: 12px;
  background: #252c37;
  color: var(--white);
  white-space: pre-wrap;
}

.profile-card {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: center;
  margin: 0 auto;
  padding: 20px;
  background: var(--white);
}

.profile-image-link img {
  width: 160px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.profile-body h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.profile-role {
  margin: 0 0 12px;
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--accent);
}

.equipment-content {
  padding: 64px 0 76px;
  background: var(--white);
}

.equipment-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.equipment-content h2,
.equipment-content h3 {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.5;
}

.equipment-content p {
  margin: 0 0 24px;
}

.equipment-group {
  margin-bottom: 28px;
}

.equipment-group h3 {
  margin-bottom: 8px;
}

.site-footer {
  padding: 28px 20px;
  background: #323437;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    padding: 0 18px;
  }

  .brand img {
    width: 154px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 8px 0;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 18px;
  }

  .hero {
    height: 44svh;
    min-height: 300px;
    max-height: none;
  }

  .hero-home {
    background-position: center;
  }

  .feature-grid,
  .works-grid,
  .equipment-columns {
    grid-template-columns: 1fr;
  }

  .section-title h1,
  .section-title h2 {
    font-size: 30px;
  }

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

  .profile-image-link img {
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 15px;
  }

  .container,
  .wide,
  .narrow {
    width: min(100% - 32px, 1140px);
  }

  .hero {
    height: 38svh;
    min-height: 260px;
  }

  .page-hero {
    min-height: 270px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .features,
  .about-section,
  .content-section,
  .equipment-content {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .works-grid {
    gap: 18px;
  }

}
