/* STUDIO移行時の基準値。レイアウトは通常フローとFlex / Gridを中心に構成。 */
:root {
  --page-bg: #edf1eb;
  --white: #fff;
  --text: #000;
  --green: #30910e;
  --green-dark: #2a650d;
  --line: #a1a99d;
  --tag-bg: #dfecd8;
  --panel-bg: #d6e6cd;
  --surface-muted: #f5f5f5;
  --content-width: 1240px;
  --page-gutter: clamp(32px, 6.944vw, 100px);
  --section-space: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
dl,
dd {
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 5px;
}
.button-primary:focus-visible,
.contact-section a:focus-visible {
  outline-color: #80c65d;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}
.section-space {
  padding-bottom: var(--section-space);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--green-dark);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.menu-layer,
.navigation-panel {
  display: contents;
}
.mobile-menu-heading,
.menu-backdrop {
  display: none;
}
.site-header {
  position: fixed;
  z-index: 10;
  inset: 24px 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1360px, calc(100% - 80px));
  min-height: 94px;
  margin-inline: auto;
  padding: 16px 16px 16px 40px;
  border-radius: 8px;
  background: var(--white);
}
.brand {
  display: block;
  flex-shrink: 0;
  width: 380px;
}
.brand img {
  width: 100%;
  height: auto;
}
.site-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.site-navigation > a:not(.button) {
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: 38px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.button-primary {
  background: var(--green);
  color: white;
}
.header-contact {
  min-height: 62px;
  margin-left: 23px;
  white-space: nowrap;
}
.button-outline {
  min-height: 47px;
  padding-block: 10px;
  border-color: var(--green);
  color: var(--green);
}
.button-white {
  background: white;
  color: black;
}
.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.mobile-contact {
  display: none;
}

/* Hero */
.hero-copy {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 213px;
  padding-bottom: 24px;
}
.hero-eyebrow {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.hero h1 {
  color: var(--green);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  font-feature-settings: "liga" 0;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.hero h1 span {
  display: block;
}
.hero-strip {
  --hero-image-width: 334px;
  --hero-gap: 24px;
  --hero-origin: 933px;
  --hero-cycle: calc((var(--hero-image-width) + var(--hero-gap)) * 4);
  --hero-duration: 40s;
  position: relative;
  overflow: hidden;
}
.hero-track {
  position: relative;
  left: min(0px, calc(50% - var(--hero-origin)));
  display: flex;
  align-items: flex-start;
  width: max-content;
  animation: hero-flow var(--hero-duration) linear infinite paused;
}
.hero-sequence {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: var(--hero-gap);
  padding-right: var(--hero-gap);
}
.hero-track img {
  width: var(--hero-image-width);
  height: 251px;
  max-width: none;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}
.hero-track img:nth-child(odd) {
  margin-top: 40px;
}
.hero-strip.is-animated .hero-track {
  animation-play-state: running;
}
.hero-strip.is-paused .hero-track {
  animation-play-state: paused;
}
.hero-motion-toggle {
  position: absolute;
  right: var(--page-gutter);
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgb(42 101 13 / 20%);
  border-radius: 50%;
  background: rgb(255 255 255 / 94%);
  color: var(--green-dark);
  /* 操作名はaria-labelで伝え、画面上はアイコンのみ表示。 */
  font-size: 0;
  line-height: 1;
}
.hero-motion-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 16px;
  border-inline: 5px solid currentColor;
}
.hero-strip.is-paused .hero-motion-toggle::before {
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right: 0;
  border-left: 13px solid currentColor;
  transform: translate(calc(-50% + 2px), -50%);
}
@keyframes hero-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--hero-cycle)));
  }
}

/* Shared section heading */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-label {
  color: var(--green-dark);
}
.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 48px;
  padding-block: 12px;
  color: var(--green);
  font-weight: 500;
  line-height: 1.5;
}
.text-link img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.chevron {
  width: 10px;
  height: 16px;
  flex: 0 0 10px;
}
.chevron-small {
  width: 7px;
  height: 11px;
  flex: 0 0 7px;
}

/* About */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 120px;
  align-items: center;
  padding-block: 100px;
}
.about-copy {
  min-height: 314px;
}
.about-description {
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.75;
}
.about-image {
  width: 380px;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

/* Services */
.services-intro {
  margin-top: 40px;
}
.services-intro p {
  margin-top: 8px;
}
.services-intro .text-link {
  margin-top: 16px;
}
.services-subheading {
  margin-top: 40px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  min-height: 207px;
  padding: 32px;
  border-radius: 16px;
  background: white;
  transition: background-color 160ms ease;
}
.service-icon {
  width: 70px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.service-card-copy {
  width: 100%;
}
.service-card h4 {
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-card p {
  font-size: 16px;
}

/* Cases */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.case-card {
  overflow: hidden;
  border-radius: 8px;
  background: white;
}
.case-card > a {
  display: block;
  height: 100%;
}
.case-card > a:focus-visible {
  outline-offset: -4px;
}
.case-image {
  width: 100%;
  height: 288px;
  object-fit: cover;
}
.case-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags li {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--tag-bg);
  color: #505050;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.case-copy h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* News / company */
.news-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.news-list > li,
.company-links > li {
  border-bottom: 1px solid var(--line);
}
.news-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 24px;
}
.news-list time {
  display: block;
}
.company-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
}
.company-image {
  width: 100%;
  height: 100%;
  min-height: 419px;
  object-fit: cover;
  border-radius: 16px;
}
.company-links {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.company-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

/* Stats */
.stats-section {
  padding-block: 60px;
  background: var(--green-dark);
  color: white;
}
.stats-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  text-align: center;
}
.stats-inner > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  width: 280px;
}
.stats-inner dt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.stats-inner dd {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: Sora, "Noto Sans JP", sans-serif;
  line-height: 1.25;
}
.stats-inner strong {
  font-size: 48px;
  font-weight: 800;
}
.stats-inner dd span {
  font-size: 18px;
  font-weight: 700;
}

/* Contact */
.contact-section {
  padding-block: 80px;
  background:
    linear-gradient(rgb(0 0 0 / 64%), rgb(0 0 0 / 64%)),
    url("assets/contact-renovation.jpg") center / cover;
  color: white;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-inline: 16px;
  text-align: center;
}
.contact-block:first-child {
  border-right: 1px solid rgb(255 255 255 / 50%);
}
.contact-block h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}
.contact-block p {
  font-size: 16px;
  line-height: 1.5;
}
.line-qr {
  display: block;
  padding: 8px;
  border-radius: 8px;
  background: white;
}
.line-qr img {
  width: 76px;
  height: 70px;
  object-fit: cover;
}

/* Footer */
.footer-main {
  padding: 60px 80px;
  background: white;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1280px;
  margin-inline: auto;
}
.footer-information {
  width: 390px;
  flex-shrink: 0;
  text-align: center;
}
.footer-logo {
  width: 390px;
  height: auto;
}
.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.footer-contact-details > p {
  line-height: 1.5;
}
.footer-numbers a {
  white-space: nowrap;
}
.footer-numbers {
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.5;
}
.footer-numbers a {
  font-size: 38px;
}
.footer-numbers p {
  font-size: 22px;
}
.opening-hours {
  font-size: 24px;
}
.footer-navigation {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding-block: 16px;
  font-size: 15px;
  line-height: 1.25;
}
.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-link-group > * {
  white-space: nowrap;
}
.copyright {
  padding: 16px;
  background: var(--green-dark);
  color: white;
  text-align: center;
  line-height: 1.5;
}
.copyright small {
  font-size: 14px;
}

/* Intermediate widths: the same content adapts without fixed page coordinates. */
@media (max-width: 1399px) {
  .site-header {
    padding-left: 24px;
    gap: 16px;
  }
  .brand {
    width: 315px;
  }
  .site-navigation > a:not(.button) {
    padding-inline: 12px;
    font-size: 14px;
  }
  .header-contact {
    margin-left: 12px;
    padding-inline: 24px;
    font-size: 14px;
  }
  .about-section,
  .company-section {
    gap: 64px;
  }
  .footer-main {
    padding-inline: 40px;
  }
  .footer-inner {
    gap: 40px;
  }
  .footer-navigation {
    gap: 32px;
  }
  .service-card {
    padding: 24px;
  }
}

@media (max-width: 1199px) {
  html {
    scroll-padding-top: 132px;
  }
  .site-header {
    width: calc(100% - 48px);
    min-height: 76px;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 18px 12px 20px;
    flex-wrap: wrap;
  }
  .js .menu-toggle {
    display: block;
  }
  .site-navigation {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-navigation > a:not(.button) {
    padding: 14px 8px;
    border-top: 1px solid var(--page-bg);
    font-size: 16px;
  }
  .header-contact {
    margin: 12px 0 8px;
    min-height: 52px;
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(38px, 4.167vw, 60px);
  }
  .about-section {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr);
    gap: 40px;
  }
  .about-image {
    width: 100%;
    height: auto;
    aspect-ratio: 380 / 350;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-image {
    height: auto;
    aspect-ratio: 403 / 288;
  }
  .case-copy {
    padding: 20px;
  }
  .company-section {
    gap: 48px;
  }
  .company-image {
    min-height: 0;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-navigation {
    gap: 64px;
  }
}

/* SP_Design_home (430px): device status bar belongs to the browser, not the page. */
@media (max-width: 767px) {
  :root {
    --page-gutter: 24px;
    --section-space: 100px;
  }
  html {
    scroll-padding-top: 108px;
    scroll-padding-bottom: 100px;
  }
  .site-header {
    top: 16px;
    width: calc(100% - 16px);
    min-height: 68px;
    max-height: calc(100dvh - 32px);
    padding: 12px 18px 12px 20px;
    column-gap: 16px;
  }
  .brand {
    width: min(252px, calc(100% - 60px));
  }
  .hero-copy {
    gap: 24px;
    min-height: 318px;
    padding-top: 138px;
    padding-bottom: 19px;
  }
  .hero-eyebrow {
    font-size: 18px;
  }
  .hero h1 {
    font-size: 38px;
    line-height: 1.25;
  }
  .hero-strip {
    --hero-image-width: 274px;
    --hero-origin: 883px;
  }
  .hero-track img {
    height: 206px;
  }
  .hero-track img:nth-child(odd) {
    margin-top: 24px;
  }
  .about-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 80px;
  }
  .about-copy {
    min-height: 0;
  }
  .about-description {
    margin-top: 24px;
  }
  .about-image {
    width: min(380px, 100%);
    height: auto;
    align-self: flex-start;
    aspect-ratio: 380 / 350;
  }
  .services-intro {
    margin-top: 24px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 0;
    padding: 24px;
  }
  .service-card:first-child .service-card-copy {
    min-height: 88px;
  }
  .service-icon {
    height: 52px;
  }
  .case-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .case-image {
    height: 288px;
    aspect-ratio: auto;
  }
  .case-copy {
    padding: 24px;
  }
  .news-list {
    margin-top: 24px;
  }
  .company-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 120px;
  }
  .company-image {
    width: 100%;
    height: auto;
    aspect-ratio: 382 / 282;
  }
  .company-links {
    margin-top: 24px;
  }
  .company-links a {
    font-size: 20px;
  }
  .stats-section {
    padding: 40px;
  }
  .stats-inner {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 40px;
  }
  .stats-inner > div {
    width: auto;
  }
  .stats-inner strong {
    font-size: 40px;
  }
  .contact-section {
    padding-block: 64px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .contact-block {
    gap: 16px;
  }
  .contact-block:first-child {
    border: 0;
  }
  .contact-block p {
    font-size: 15px;
  }
  .footer-main {
    padding: 40px 24px;
  }
  .footer-inner {
    gap: 24px;
    align-items: stretch;
  }
  .footer-information {
    width: 100%;
  }
  .footer-logo {
    width: 100%;
  }
  .footer-navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding-block: 16px;
  }
  .footer-link-group {
    display: contents;
  }
  .footer-reasons {
    display: none;
  }
  .copyright {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
  .copyright small {
    font-size: 12px;
  }
  .mobile-contact {
    position: fixed;
    z-index: 9;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 50%;
    display: inline-flex;
    transform: translateX(-50%);
    min-height: 54px;
    max-width: calc(100% - 32px);
    padding: 14px 40px;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgb(20 55 8 / 12%);
  }
}

@media (max-width: 389px) {
  .hero-eyebrow {
    font-size: 16px;
  }
  .hero h1 {
    font-size: clamp(28px, 8.6vw, 34px);
  }
  .service-card h4 {
    gap: 12px;
  }
  .service-card {
    padding: 24px 20px;
  }
  .case-copy {
    padding: 24px 20px;
  }
  .footer-contact-details > p {
    font-size: 14px;
  }
  .footer-numbers a {
    font-size: 32px;
  }
  .opening-hours {
    font-size: 21px !important;
  }
  .stats-section {
    padding-inline: 24px;
  }
  .stats-inner {
    column-gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-track {
    animation: none;
  }
  .hero-motion-toggle {
    display: none;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Shared accessibility and inline links */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.inline-link {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Mobile navigation: fixed panel, backdrop and keyboard focus stay together. */
@media (max-width: 1199px) {
  .navigation-panel {
    display: block;
    width: 100%;
  }
  .js .site-header {
    overflow: visible;
    flex-wrap: nowrap;
  }
  .js .menu-layer {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 280ms;
  }
  .js .menu-is-open .menu-layer {
    visibility: visible;
    pointer-events: auto;
  }
  .js .navigation-panel {
    position: absolute;
    z-index: 2;
    inset: 0 0 0 auto;
    display: flex;
    flex-direction: column;
    width: min(440px, calc(100% - 24px));
    height: 100%;
    padding: max(24px, env(safe-area-inset-top)) 32px
      max(32px, env(safe-area-inset-bottom));
    background: var(--page-bg);
    box-shadow: -16px 0 48px rgb(0 0 0 / 12%);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(105%);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js .mobile-menu-heading {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding-bottom: 28px;
    color: var(--green-dark);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }
  .menu-dismiss {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    color: var(--green-dark);
    font-size: 32px;
    line-height: 1;
  }
  .js .site-navigation {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 0;
  }
  .js .site-navigation > a:not(.button) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 4px;
    border-top: 1px solid #d0d9ca;
    font-size: 20px;
    font-weight: 500;
    white-space: normal;
  }
  .js .site-navigation > a:not(.button)::after {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 16px;
    background: url("assets/chevron.svg") center / contain no-repeat;
  }
  .js .header-contact {
    margin: 32px 0 0;
    padding: 20px 24px;
    min-height: 62px;
    font-size: 16px;
    white-space: normal;
  }
  .js .menu-backdrop {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    background: rgb(19 33 13 / 44%);
    opacity: 0;
    transition: opacity 220ms ease;
  }
  .js .menu-is-open .navigation-panel {
    transform: translateX(0);
    visibility: visible;
  }
  .js .menu-is-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
  }
  .menu-is-open .mobile-contact {
    visibility: hidden;
  }
}
@media (max-width: 374px) {
  .js .navigation-panel {
    padding-inline: 24px;
  }
  .js .site-navigation > a:not(.button) {
    font-size: 18px;
  }
}

/* 1440〜1800pxでは滑らかに拡張し、それ以上は読みやすい幅を保つ。 */
@media (min-width: 1440px) {
  :root {
    --content-width: 1600px;
  }
  .site-header {
    width: min(1720px, calc(100% - 80px));
  }
  .footer-inner {
    max-width: 1640px;
  }
  .about-section {
    grid-template-columns: minmax(0, 1fr) clamp(380px, 26.389vw, 475px);
  }
  .about-image {
    width: 100%;
    height: auto;
    aspect-ratio: 380 / 350;
  }
  .case-image {
    height: auto;
    aspect-ratio: 403 / 288;
  }
  .hero-strip {
    --hero-image-width: clamp(334px, 23.194vw, 418px);
    --hero-origin: clamp(933px, 64.792vw, 1166px);
  }
  .hero-track img {
    height: auto;
    aspect-ratio: 334 / 251;
  }
}

/* 初期配置・画面幅変更・履歴復帰では閉じる動きを再生しない。 */
@media (max-width: 1199px) {
  .js:not(.menu-motion-enabled) .menu-layer,
  .js:not(.menu-motion-enabled) .navigation-panel,
  .js:not(.menu-motion-enabled) .menu-backdrop {
    transition: none;
  }
}

/* スマホのフッターは文字と間隔をコンパクトに、リンクの押しやすさは維持。 */
@media (max-width: 767px) {
  .contact-section { padding-block: 48px; }
  .contact-inner { gap: 40px; }
  .contact-block h2 { font-size: 22px; }
  .contact-block p { font-size: 14px; line-height: 1.7; }
  .contact-block .button { font-size: 14px; min-height: 48px; }
  .footer-contact-details { margin-top: 24px; gap: 12px; }
  .footer-contact-details > p { font-size: 14px; line-height: 1.7; }
  .footer-numbers a { font-size: 30px; display: inline-block; min-height: 44px; }
  .footer-numbers p { font-size: 15px; font-weight: 500; }
  .footer-contact-details .opening-hours { font-size: 14px; }
  .footer-navigation { font-size: 13px; gap: 4px 20px; line-height: 1.5; }
  .footer-navigation a { display: inline-flex; align-items: center; min-height: 44px; white-space: normal; }
  .copyright small { font-size: 11px; }
}

.about-description > p + p { margin-top: 20px; }
.news-title-date { display: inline-block; max-width: 100%; text-wrap: balance; }

/* 実際の業務写真は手元まで見える元の横長比率を保つ。 */
img[src*="assets/work/"] {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* 計画表や公募資料は全体を読めるよう切り抜かない。 */
img[src$="repair-cost-plan.jpg"],
img[src$="contractor-announcement.jpg"],
img[src$="survey-report.jpg"] {
  object-fit: contain;
  background: #fff;
}

/* 集合写真は全員が入る元の横長比率で表示する。 */
.company-image[src$="6R8A1574.jpg"] { height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
