@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/selfon/NotoSansJP.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Load the smaller face on this page. New characters use the full face above. */
@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/selfon/NotoSansJP-page.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20-7E, U+A9, U+2193, U+2197, U+3001-3002, U+3005, U+3042, U+3044, U+3048, U+304A-304D,
    U+304F, U+3051-3055, U+3057-3059, U+305B, U+305F-3061, U+3064, U+3066-306B, U+306E-306F, U+3078, U+307E-307F,
    U+3081-3082, U+3084, U+3089-308C, U+308F, U+3092-3093, U+30A2-30A4, U+30AF-30B0, U+30B3, U+30B5, U+30B7-30B9,
    U+30BD, U+30BF, U+30C3-30C4, U+30C6-30C8, U+30CE, U+30D6, U+30DA, U+30DF-30E1, U+30EB, U+30ED,
    U+30F3, U+30FB-30FC, U+4E2D, U+4E38, U+4E8B, U+4EAC, U+4ED5, U+4F01, U+4F53, U+4F5C,
    U+4F9B, U+4FE1, U+516C, U+5177, U+5185, U+5207, U+5236, U+52D5, U+52D9, U+5316,
    U+533A, U+53CD, U+53D6, U+5408, U+540C-540D, U+54C1, U+5546, U+554F, U+5584, U+55B6,
    U+5728, U+5730, U+57DF, U+5831, U+5834, U+58F2, U+5927, U+5BB9, U+5BC4, U+5C11,
    U+5E02, U+5E74, U+5F62, U+5F79, U+5F97, U+5FDC, U+60C5, U+60F3, U+6240, U+624B,
    U+62C5, U+63A2, U+63D0, U+643A, U+6539, U+6574, U+6587, U+65E5, U+6708, U+672C,
    U+6771, U+677F, U+67FB, U+6848, U+696D, U+69CB, U+6A4B, U+6B21, U+6D41, U+6E1B,
    U+73FE, U+751F, U+7528, U+753A-753B, U+767A, U+7684, U+76F4, U+76F8, U+77E5, U+78BA,
    U+793E, U+79C1, U+79FB, U+7ACB, U+7D44, U+7D66, U+7D9A, U+8005, U+8074, U+81EA,
    U+8981, U+898B, U+8996, U+8A18, U+8A2D, U+8A8D, U+8AAD, U+8AB0, U+8ABF, U+8AC7,
    U+8CA0, U+8CA9, U+9023, U+9032, U+904B, U+90FD, U+914D, U+958B, U+95A2, U+9700,
    U+9806, U+9818, U+FF5C;
}

:root {
  color-scheme: light;
  --ink: #161a1d;
  --muted: #4e575d;
  --dark: #14191d;
  --paper: #f9f9f7;
  --line: #d9dedd;
  --gutter: clamp(24px, 5.5vw, 88px);
  --header-height: 72px;
  --section-space: clamp(64px, 9vw, 132px);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body:has(.mobile-menu[open]) { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid #4096c2; outline-offset: 5px; }
#main, main section[id] { scroll-margin-top: var(--header-height); }

.content-width {
  width: min(100%, 1520px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  background: white;
  color: var(--ink);
}

.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  background: rgb(20 25 29 / 94%);
  color: white;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1680px);
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wordmark {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 52px);
}

.desktop-navigation a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.desktop-navigation a:hover { text-decoration: underline; }
.desktop-navigation .header-contact {
  padding: 10px 19px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 24px;
}

.header-inner > .menu-toggle { display: none; }
.menu-toggle {
  padding: 10px 0 10px 12px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--dark);
  color: white;
}

.mobile-menu-inner { padding-inline: var(--gutter); }
.mobile-menu-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  background: var(--dark);
}

.mobile-navigation {
  width: min(100%, 32rem);
  padding-block: 24px 36px;
}

.mobile-navigation a {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding-block: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  font-size: clamp(1.5rem, 5.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-decoration: none;
}

.mobile-navigation a:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(580px, 100svh, 950px);
  padding-block: calc(var(--header-height) + 52px) 70px;
  overflow: hidden;
  background: #283136;
  color: white;
}

.hero-image, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: cover; object-position: center; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, rgb(10 17 22 / 77%), rgb(10 17 22 / 47%) 49%, rgb(10 17 22 / 12%));
}

.hero h1 {
  font-size: clamp(4rem, 9.4vw, 9.25rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.87;
}

.hero-lead {
  margin-block: 28px 30px;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  font-weight: 600;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.button-light:hover { background: white; color: var(--ink); }

.section { padding-block: var(--section-space); }
.section-label {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.section h2 {
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.25;
}

.section-copy {
  max-width: 38em;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 8vw, 130px);
  align-items: start;
}

.about-copy .section-copy { margin-top: 22px; }
.about-image {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 66%;
}

.service-section { background: #edf0ee; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 46px);
  margin-top: clamp(28px, 5vw, 64px);
}

.service-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card h3 {
  margin-top: 22px;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.service-card .service-name { margin-top: 8px; color: var(--ink); font-weight: 600; }
.service-card p { margin-top: 12px; color: var(--muted); font-size: 0.96rem; line-height: 1.85; }

.contact-section { background: var(--dark); color: white; }
.contact-section .section-label, .contact-section .section-copy, .contact-address { color: #d3dbde; }
.contact-section .section-copy { margin-block: 22px 26px; }
.contact-address { font-style: normal; line-height: 1.8; }
.contact-address strong { color: white; }

.site-footer { background: var(--dark); color: white; border-top: 1px solid rgb(255 255 255 / 20%); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.site-footer small { color: #d3dbde; }

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .desktop-navigation { display: none; }
  .header-inner > .menu-toggle { display: inline-block; }
  .hero { align-items: end; min-height: clamp(540px, 100svh, 780px); padding-bottom: 50px; }
  .hero-image { object-position: 54% center; }
  .hero::after { background: linear-gradient(0deg, rgb(10 17 22 / 88%), rgb(10 17 22 / 50%) 42%, rgb(10 17 22 / 6%) 83%); }
  .hero h1 { font-size: clamp(3.6rem, 12vw, 6rem); }
  .about, .service-grid { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 4 / 3; object-position: 50% 69%; }
  .service-grid { gap: 44px; }
}
