.hero {
  height: clamp(520px, calc(100vh - 180px), 680px);
  min-height: 0;
  aspect-ratio: auto;
  background: #faf9f6;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/hero-sky-panorama-v1.png') 42% 50% / cover no-repeat;
  animation: sky-drift 32s ease-in-out infinite alternate;
}

@keyframes sky-drift {
  from { background-position: 42% 50%; }
  to { background-position: 58% 50%; }
}

.banner-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .word, .hero .copy { display: none; }

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 5vw, 96px);
  bottom: clamp(36px, 8vh, 84px);
  color: #171717;
  text-shadow: 0 1px 18px rgba(255, 255, 255, .9);
}

.hero-copy p {
  margin: 0 0 8px;
  font: 800 clamp(14px, 1.15vw, 19px)/1 Manrope;
  letter-spacing: .13em;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(23px, 2.1vw, 35px);
  line-height: 1.4;
}

.hero-copy span {
  display: block;
  margin-top: 12px;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 500;
  line-height: 1.8;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  font: 800 15px/1 Manrope;
  letter-spacing: .16em;
}

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

header .brand,
header nav button,
.contact-trigger {
  border: 0;
  cursor: pointer;
}

header .brand {
  background: transparent;
  color: #171717;
  padding: 0;
}

header nav {
  display: flex;
  align-items: center;
  gap: 23px;
}

header nav button {
  background: transparent;
  padding: 0;
  color: #171717;
  font: 700 10px Manrope;
  letter-spacing: .1em;
}

header nav button:hover,
header nav button[aria-expanded="true"] { color: #a6782a; }

.contact-trigger { background: #a6782a; color: #fff; padding: 8px 20px; font: 700 10px Manrope; }
.menu-panel[hidden], .menu-section[hidden] { display: none; }
.news-only, .contact-only { padding: 34px 8%; border-bottom: 1px solid #ddd9d0; }
.news-only p { border-bottom: 1px solid #ddd9d0; padding: 14px 0; }
.news-scroll { height: 252px; margin-top: 10px; overflow: hidden; }
.news-track { animation: news-scroll-up 30s linear infinite; }
.news-list p { margin: 0; border-bottom: 1px solid #ddd9d0; padding: 14px 0; white-space: nowrap; }
.news-scroll:hover .news-track { animation-play-state: paused; }
@keyframes news-scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .news-track { animation: none; } }
.company-page { padding: 0 0 76px; }
.company-content { max-width: 1180px; margin: 0 auto; padding: 58px 6% 0; }
.company-head { display: block; height: auto; padding: 0 0 35px; border: 0; font: inherit; letter-spacing: normal; }
.company-head h2, .company-block h3 { margin: 10px 0 0; font: 800 clamp(28px, 3vw, 46px)/1.2 Manrope; letter-spacing: -.03em; }
.company-head p { max-width: 620px; margin: 18px 0 0; font-size: 15px; line-height: 1.9; }
.company-block { padding: 34px 0; border-top: 1px solid #ddd9d0; }
.company-block > label { display: block; margin-bottom: 10px; }
.company-message { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 48px; margin-top: 24px; }
.company-message h3 { margin: 0; font-size: clamp(25px, 3vw, 44px); }
.company-message p { margin: 0 0 18px; font-size: 14px; line-height: 2; }
.company-message .company-sign { margin-top: 38px; font: 700 clamp(17px, 1.55vw, 23px)/1.75 Manrope; letter-spacing: .05em; }
.company-profile { display: grid; grid-template-columns: 180px 1fr; margin: 25px 0 0; border-top: 1px solid #ddd9d0; }
.company-profile dt, .company-profile dd { margin: 0; padding: 16px 0; border-bottom: 1px solid #ddd9d0; font-size: 14px; line-height: 1.9; }
.company-profile dt { color: #a6782a; font: 700 12px/1.9 Manrope; letter-spacing: .05em; }
.company-access p { max-width: 620px; margin: 18px 0 0; font-size: 14px; line-height: 2; }
.recruit-page { max-width: 1180px; margin: 0 auto; padding: 58px 6% 76px; }
.recruit-head { display: block; height: auto; padding: 0 0 35px; border: 0; font: inherit; letter-spacing: normal; }
.recruit-head h2, .recruit-block h3 { margin: 10px 0 0; font-size: clamp(28px, 3vw, 46px); font-weight: 700; line-height: 1.2; }
.recruit-head p, .recruit-intro { max-width: 660px; margin: 18px 0 0; font-size: 15px; line-height: 1.9; }
.recruit-block { padding: 34px 0; border-top: 1px solid #ddd9d0; }
.recruit-block > label { display: block; margin-bottom: 10px; }
.recruit-values, .recruit-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border-top: 1px solid #ddd9d0; }
.recruit-process { grid-template-columns: 1fr; }
.recruit-values article, .recruit-process article { padding: 22px 18px 22px 0; border-bottom: 1px solid #ddd9d0; }
.recruit-values h4, .recruit-process h4, .position h4 { margin: 0; font-size: 18px; line-height: 1.6; }
.recruit-values p, .recruit-process p, .position > p { margin: 10px 0 0; font-size: 13px; line-height: 1.9; }
.position { padding: 30px 0; border-top: 1px solid #ddd9d0; }
.position:first-of-type { margin-top: 28px; }
.position > label { display: block; margin-bottom: 8px; }
.position dl { display: grid; grid-template-columns: 155px 1fr; margin: 22px 0 0; border-top: 1px solid #ddd9d0; }
.position dt, .position dd { margin: 0; padding: 13px 0; border-bottom: 1px solid #ddd9d0; font-size: 13px; line-height: 1.8; }
.position dt { color: #a6782a; }
.recruit-page > button { margin-top: 28px; padding: 10px 20px; }
body, body * { font-family: 'Noto Serif JP', 'Yu Mincho', YuMincho, serif !important; }
body > header { position: sticky; top: 0; z-index: 100; background: #faf9f6; }
.about.about-visual { height: auto; min-height: 0; align-self: stretch; aspect-ratio: auto; padding: 0; overflow: hidden; background: #eef2f1; }
.about.about-visual img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: left center; }
.contact-only h2 { font-size: 24px; margin: 14px 0 8px; }
.contact-only p { font-size: 14px; }
.contact-only button { margin-top: 16px; padding: 8px 20px; }
.recruit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 28px; margin-top: 22px; }
.recruit-grid p { margin: 0; padding: 15px 0; border-top: 1px solid #d9d5ce; }
body { min-height: 0; }
main { flex: none; }
.hero .copy h1 { white-space: nowrap; font-size: clamp(19px, 2vw, 34px); }

.service-card {
  display: block;
  padding: 18px 12px;
  min-height: 145px;
  border-right: 1px solid #ddd9d0;
  color: #a6782a;
  font-size: 26px;
  text-decoration: none;
}
.service-card b, .service-card p { color: #171717; }
.service-card b { display: block; font-size: 12px; margin-top: 16px; }
.service-card p { font-size: 10px; line-height: 1.6; }
.service-card:hover { background: #f3efe7; }
.service-page { padding: 42px 8% 70px; border-bottom: 1px solid #ddd9d0; }
.service-rows { margin-top: 22px; border-top: 1px solid #d9d5ce; }
.service-row { display: grid; grid-template-columns: 72px minmax(230px, 1.25fr) 1.5fr 32px; align-items: center; min-height: 112px; padding: 18px 0; border: 0; border-bottom: 1px solid #d9d5ce; background: transparent; color: #171717; text-decoration: none; }
.service-row span { color: #a6782a; font: 800 17px Manrope; }
.service-row strong { font-size: clamp(18px, 2.1vw, 28px); }
.service-row p { margin: 0; font-size: 14px; line-height: 1.7; }
.service-row i { color: #a6782a; font: 700 22px Manrope; font-style: normal; text-align: right; }
a.service-row:hover { padding-left: 18px; padding-right: 18px; background: #f3efe7; }
.service-row { grid-template-columns: minmax(230px, 1.25fr) 1.5fr 32px; position: relative; transition: background .2s, padding .2s; }
.hover-cats { display: none; grid-column: 1 / -1; margin-top: 22px; }
.service-row:hover .hover-cats, .service-row:focus-within .hover-cats { display: grid; }
.web-cats { grid-template-columns: repeat(3, 1fr); gap: 8px 20px; color: #a6782a; font: 800 16px Manrope; letter-spacing: .02em; }
.real-cats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.real-cat { min-height: 118px; padding: 17px 18px; border: 1px solid #ded9d0; background: #faf9f6; }
.real-cat b { display: block; color: #a6782a; font: 800 13px Manrope; letter-spacing: .03em; }
.real-cat em, .real-cat small { display: none; }
.real-cat:hover { background: #fff; }
.real-cat:hover em { display: block; margin-top: 10px; font-size: 15px; font-style: normal; }
.real-cat:hover small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.7; }
.back-link { margin-left: auto; color: #171717; text-decoration: none; font: 700 10px Manrope; letter-spacing: .1em; }
.service-detail { max-width: 1180px; margin: 0 auto; padding: 90px 6% 110px; }
.eyebrow { color: #a6782a; font: 700 12px Manrope; letter-spacing: .12em; }
.service-detail h1 { margin: 18px 0 14px; font: 800 clamp(45px, 8vw, 120px)/.86 Manrope; letter-spacing: -.08em; }
.lead { margin: 0 0 52px; font-size: 16px; }
.service-list { border-top: 1px solid #d9d5ce; }
.service-item { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(160px, .7fr) 1.9fr; align-items: start; width: 100%; padding: 23px 0; border: 0; border-bottom: 1px solid #d9d5ce; background: transparent; color: #171717; text-align: left; cursor: pointer; }
.service-item span { font: 800 clamp(22px, 3vw, 38px)/1 Manrope; letter-spacing: -.05em; }
.service-item em { font-style: normal; font-size: 14px; padding-top: 5px; }
.service-item p { display: none; margin: 4px 0 0; font-size: 14px; line-height: 1.8; }
.service-item:hover, .service-item:focus-visible, .service-item.is-open { background: #f3efe7; padding-left: 18px; padding-right: 18px; outline: none; }
.service-item:hover p, .service-item:focus-visible p, .service-item.is-open p { display: block; }
.mobile-menu-toggle, .mobile-contact-item { display: none; }

@media (max-width: 800px) {
  body > header { padding: 0 12px; justify-content: space-between; }
  header nav { display: none; position: fixed; top: 66px; left: 0; right: 0; z-index: 999; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px 20px 22px; border-bottom: 1px solid #ddd9d0; background: #faf9f6; overflow: visible; }
  body.mobile-menu-open header nav { display: flex; }
  header nav button { padding: 14px 0; border-bottom: 1px solid #ddd9d0; font-size: 15px; text-align: left; }
  .brand span { display: none; }
  .contact-trigger { display: none; }
  .mobile-contact-item { display: block; }
  .mobile-menu-toggle { display: grid; width: 46px; height: 46px; padding: 12px; border: 1px solid #a6782a; background: #fff; place-content: center; gap: 5px; cursor: pointer; }
  .mobile-menu-toggle span { display: block; width: 22px; height: 1px; background: #a6782a; transition: transform .2s, opacity .2s; }
  body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .service-detail { padding: 55px 7% 75px; }
  .service-item { grid-template-columns: 1fr; gap: 8px; }
  .service-item p { grid-row: 3; }
  .service-page { padding: 30px 7% 48px; }
  .service-row { grid-template-columns: 1fr 24px; min-height: 0; gap: 7px; padding: 18px 0; }
  .service-row p { grid-column: 1 / 3; font-size: 12px; }
  .hover-cats { grid-column: 1 / 3; }
  .web-cats, .real-cats { grid-template-columns: 1fr; }
  .service-row:hover .hover-cats { display: none; }
  .about.about-visual { height: auto; min-height: 0; }
  .about.about-visual img { min-height: 280px; object-fit: cover; }
}

.hero .copy {
  top: 16%;
  left: 3.1%;
  width: 20%;
  min-width: 210px;
  color: #171717;
}

.hero .copy h1 { font-size: clamp(22px, 2.3vw, 38px); }
.hero .copy h2 { font-size: clamp(12px, 1.1vw, 16px); }
.hero .copy p { font-size: clamp(10px, .8vw, 12px); }

@media (max-width: 800px) {
  .hero { height: clamp(460px, 55vh, 500px); aspect-ratio: auto; min-height: 0; }
  .banner-art { object-fit: cover; object-position: center; }
  .hero-copy { left: 7%; bottom: 9%; }
  .company-page { padding-bottom: 56px; }
  .company-content { padding: 38px 7% 0; }
  .company-message { grid-template-columns: 1fr; gap: 20px; }
  .company-profile { grid-template-columns: 1fr; }
  .company-profile dt { padding-bottom: 3px; border-bottom: 0; }
  .company-profile dd { padding-top: 3px; }
  .recruit-page { padding: 38px 7% 56px; }
  .recruit-values, .recruit-process { grid-template-columns: 1fr; }
  .position dl { grid-template-columns: 1fr; }
  .position dt { padding-bottom: 2px; border-bottom: 0; }
  .position dd { padding-top: 2px; }
  body > header { position: fixed; inset: 0 0 auto; height: 66px; z-index: 1000; }
  main { padding-top: 66px; }
  .service-row { cursor: pointer; }
  .service-row.is-open .hover-cats { display: grid; }
  .real-cat { min-height: 0; cursor: pointer; }
  .real-cat.is-open { background: #fff; }
  .real-cat.is-open em { display: block; margin-top: 10px; font-size: 15px; font-style: normal; }
  .real-cat.is-open small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.7; }
}

/* Mobile-only hero artwork and compact brand lockup. */
@media (max-width: 800px) {
  header .brand { gap: 8px; }
  header .brand img { width: 31px; height: 31px; }
  header .brand span { display: inline; font-size: 13px; letter-spacing: .11em; white-space: nowrap; }
  .hero { height: min(720px, calc(100svh - 66px)); }
  .banner-art { content: url('/hero-mobile-v1.png'); object-fit: cover; object-position: center; }
}

@media (max-width: 800px) {
  .service-page, .service-row { overflow-anchor: none; }
  .service-row { transition: background .18s ease; }
  .service-row.is-open { padding-left: 0; padding-right: 0; }
  .service-row.is-open .hover-cats { margin-top: 14px; }
}
